Dictionary in protocol buffers

ibz picture ibz · Nov 16, 2010 · Viewed 30.7k times · Source

Is there any way to serialize a dictionary using protocol buffers, or I'll have to use Thrift if I need that?

Answer

Flassari picture Flassari · Nov 14, 2016

For future answer seekers, ProtoBuf now supports Maps natively:

message MapMessage
{
    map<string, string> MyMap = 1;
}