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;
optional Map map = 2;
}
----
Alok
On 06/16/2011 01:26 PM, Marco Mistroni wrote:
HI all
sorry i hijacked a previous thread ..
Is it possibel to define Maps in protobuff?
i have some serverside code which returns a Map<String, 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 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.