3 ms·
And v1 and v2 protos didn't even have maps. Also, why you use string as a key and not int?
by riku_iki 1y ago
And v1 and v2 protos didn't even have maps.
Also, why you use string as a key and not int?
- Arainach 1y agoproto2 absolutely supported the map type.
- riku_iki 1y agoIt could be, it looks like there was some versions misalignment: The maps syntax is only supported starting from v3.0.0. The "proto2" in the doc is referring to the syntax version, not protobuf release version. v3.0.0 supports both proto2 syntax and proto3 syntax while v2.6.1 only supports proto2 syntax. For all users, it's recommended to use v3.0.0-beta-1 instead of v2.6.1. https://stackoverflow.com/questions/50241452/using-maps-in-protobuf-v2 https://stackoverflow.com/questions/50241452/using-maps-in-p...