Re: [protobuf] map support in protobuf version 2

2017-06-13 Thread Marc Gravell
It is supported in the proto2 *language*, but you'll need to use a *proto compiler version* that understands it. Depending on the implementation (i.e. which language and library you are generating for), you *may* also need to use a *library* version that has additional features to support maps.

Re: [protobuf] map support in protobuf version 2

2017-06-13 Thread Nagarjuna Reddy
Hi Marc, I am using libprotoc 2.6.1 and have to be on this version for some more time before moving protoc version 3 due to some constraints. I was wondering if the documentation is incorrect saying map is supported in version 2. Regards, Nagarjuna On Tuesday, June 13, 2017 at 4:36:29 PM

Re: [protobuf] map support in protobuf version 2

2017-06-13 Thread Marc Gravell
Oops; I meant to reply to group; email is hard... (repeats response) What protoc compiler version are you using? what does protoc --version say? It should be 3.3.0 or similar. The following works fine using protoc (note it defaults to protogen - you'll need to change the drop-down to protoc

[protobuf] map support in protobuf version 2

2017-06-13 Thread Nagarjuna Reddy
Hi, As per the below link https://developers.google.com/protocol-buffers/docs/proto#maps, I see that maps are supported in protobuf2. But when I use them I get the following error Expected "required", "optional", or "repeated". Is the feature really supported in protobuf2? As per some of the