You have several options, the following protobuf fragment should be 

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 post to this group, send email to
Visit this group at
For more options, visit

Reply via email to