We have bandied about the idea of supporting maps for some time. Past
discussion:
http://groups.google.com/group/protobuf/browse_thread/thread/5b43b26dec43bf99

At the moment, you just have to build your own map structures around the
protobuf.

On Fri, Apr 8, 2011 at 2:56 PM, Felix <gre1...@gmail.com> wrote:

> Hi all,  I am having a hardtime using protobuf when there is no Map
> like structures.  Say I want to have something like
>
> message MyStructs{
> message MyMaps{
>   required int32 bucket=1;
>   required int32 id = 2;
>   required Value value =3;
> }
>
> repeated MyMaps map =1;
> }
>
> However, the bucket could be the same value for many entries, it would
> save a lot of storage if I could do something like
>
> message MyStructs{
>
> message MyMaps{
>   required int32 id = 2;
>   required Value value =3;
> }
>
> repeated PROTOBUF_MAP<KEY, repeated MyMaps map> =1;
> }
>
> --
> You received this message because you are subscribed to the Google Groups
> "Protocol Buffers" group.
> To post to this group, send email to protobuf@googlegroups.com.
> To unsubscribe from this group, send email to
> protobuf+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/protobuf?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to protobuf@googlegroups.com.
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.

Reply via email to