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, <adam.ko...@btinternet.com> 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 protobuf+unsubscr...@googlegroups.com.
> To post to this group, send email to protobuf@googlegroups.com.
> 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 protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to