[protobuf] How to serializate and deserializate map more convenient and efficient.

2015-10-28 Thread
Hi,all I have a simple .proto file like this: /***/ syntax = "proto3"; package test; message RowInfo { string key = 1; map fields = 2; } /***/ My program needs to serialize RowInfo and save the serialized string into queu

[protobuf] How to use map in protobuf3 more convenient?

2015-10-28 Thread
Hi,all I hava a simple .proto file like this: test.proto### syntax = "proto3"; package test; message RowInfo { string key = 1; map fields = 2; } test.proto### But I have to assign RowInfo with mutable_fields() method which return ::google::protobuf::Ma