[protobuf] Maps in protobuf / 2

2011-06-16 Thread Marco Mistroni
HI all sorry i hijacked a previous thread .. Is it possibel to define Maps in protobuff? i have some serverside code which returns a MapString, Double, and i was wondering if there was a way in protobuf to define a Map could anyone help ? w/kindest regards marco -- You received this message

Re: [protobuf] Maps in protobuf / 2

2011-06-16 Thread Alok Singh
Haven't found a direct way to create a map, but, we use the following to serialize map like data structures. - message KeyValue{ required string key = 1; required string value = 2; } message Map { repeated KeyValue items = 1; } message Foo { required string id = 1;