Hi,
Am looking for working example for below case where data is serialized as bytes to another protobuf.
In below example streamDataArgs msg includes "data" as bytes and that is serialized with encodeData.proto. This is a very simple case and I would like to know if there is simpler way to get the working lua example for this.
serviceA.proto:
syntax = "proto3";
package export_data;
service streamDataOut { rpc streamData(stream streamDataArgs) returns(stream streamDataArgs) {}; }
message streamDataArgs { int64 Id = 1; bytes data = 2; // serialized with encodeDataInfo message from encodeData.proto }
encodeData.proto:
syntax = "proto3";
package = "encoded_data";
message encodeDataInfo { string name = 1; string val = 2; }