Oh, bummer. I was hoping for a more compact map packing. Currently I'm 
using the following to do this:

repeated uint32 properties = 1; // key/value index pairs
repeated string keys = 2; // unique keys
repeated string values = 3; // unique values

On Thursday, December 11, 2014 2:24:09 PM UTC-5, Feng Xiao wrote:
>
> Map fields are encoded as a repeated message field. The following two 
> definitions generate the same wire format:
> message A {
>   map<string, string> values = 1;
> }
> message B {
>   message MapEntry {
>     option map_entry = true;
>     string key = 1;
>     string value = 2;
>   }
>   repeated MapEntry values = 1;
> }
>

-- 
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