You have several options, the following protobuf fragment should be 
instructive.

message Node {
    required string key;
    optional string value;
}

message Map {
    repeated Node node;
}


On Wednesday, June 26, 2013 12:22:10 AM UTC-5, Minxuan Zhuang wrote:
>
> I have a c++ program, wrapping a List type, it looks like python list: type 
> of element is arbitrary within a list. So with the Map : both key and 
> value are arbitrary type, how can I describe them in protobuf?
>
>

-- 
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/groups/opt_out.


Reply via email to