->PB

The ->PB function serializes a MAP as a Protocol Buffers message.

The ->PB function needs a description of the format of the target message in the form of a PROTO instance as returned by PROTOC.

Signature

Examples

// // Loads the definition of the following .proto as produced by // protoc --include_imports --descriptor_set_out=out in.proto // // in.proto: // // syntax = "proto3"; // // message TestMessage { // int64 id = 1; // string comment = 2; // } // 'CkwKCXRzdC5wcm90byI3CgtUZXN0TWVzc2FnZRIOCgJpZBgBIAEoA1ICaWQSGAoHY29tbWVudBgCIAEoCVIHY29tbWVudGIGcHJvdG8z' B64-> PROTOC 'proto' STORE { 'id' 42 'comment' 'Hello, Protobuf!' } $proto 'TestMessage' ->PB