<https://lh3.googleusercontent.com/-Y5FJtHxTNAM/VZwNXfrZgyI/AAAAAAAAAA4/ewy3EV7rl4M/s1600/protocol-map.JPG>
Ok thanks that explains - but the documentaion is misleading - see the 
attached image.

On Monday, July 6, 2015 at 9:57:14 PM UTC+1, Feng Xiao wrote:
>
> Map is a feature added in 3.0.0. You need to use 3.0.0-alpha-3 in order to 
> use map fields.
>
> On Thu, Jul 2, 2015 at 1:15 PM, <[email protected] <javascript:>> 
> wrote:
>
>> According to the Language Guide an associative map can be used in data 
>> definition https://developers.google.com/protocol-buffers/docs/proto#maps
>>
>> When I try using it on Windows 7 I am getting a compiler error on the 
>> left angle bracket in "required map<uint32, bytes> properties = 1;"    
>>
> And a map field cannot be required (no label is allowed before a map 
> field).
>  
>
>>
>> entity.proto file content:
>>
>> message EntityBuffer {
>> required map<uint32, bytes> properties = 1;    
>> }
>>
>>
>> Command:
>> protoc --java_out=. entity.proto
>>
>> Error
>> entity.proto:2:13: Expected field name.
>>
>> protoc --version returns
>> libprotoc 2.6.1
>>
>> I am a bit puzzled. 
>>
>>  -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Protocol Buffers" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> Visit this group at http://groups.google.com/group/protobuf.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to