The proto file I defined is as follows.
``` syntax = "proto3"; package live; message Op{ string cmd = 1; bool rsp = 2; map<string, string> args = 3; } ``` The above proto file was converted to javascript using PROTOC. And the converted file contains the following functions: ``` proto.live.Op.toObject = function(includeInstance, msg) {} proto.live.Op.deserializeBinary = function(bytes) {}; proto.live.Op.deserializeBinaryFromReader = function(msg, reader) {}; proto.live.Op.prototype.serializeBinary = function() {}; proto.live.Op.serializeBinaryToWriter = function(message, writer) {}; proto.live.Op.prototype.getCmd = function() {}; proto.live.Op.prototype.setCmd = function(value) {}; proto.live.Op.prototype.getRsp = function() {}; proto.live.Op.prototype.setRsp = function(value) {}; proto.live.Op.prototype.getArgsMap = function(opt_noLazyCreate) {}; proto.live.Op.prototype.clearArgsMap = function() {}; ``` Referring to the example shown in GitHub, it can be seen that setCmd() and setRsp() are used to encode messages. However, no function such as "setArgs()" was found for data of the map type. The getArgsMap() function seems to be for decoding. How can I encode the message including the data of the map type. * example for encoding message (shown in GitHub) ``` var message = new MyMessage(); message.setName("John Doe"); message.setAge(25); message.setPhoneNumbers(["800-555-1212", "800-555-0000"]); var bytes = message.serializeBinary(); ``` -- 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 protobuf+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/protobuf/87cfa9d5-3639-4f24-89e6-c5b7e4334fb1o%40googlegroups.com.