How to determine message type in protobuf so that I can use that type.parsefrom(byte[ ])

后端 未结 2 1009
既然无缘
既然无缘 2021-02-13 02:23

I am trying to send protobuf data from cpp side to java side.

I have multiple message types defined in .proto

On Cpp side, I have enums for every message type an

2条回答
  •  情书的邮戳
    2021-02-13 02:48

    Protobuf 3 introduced a new concept, Any, that handles this. A good description can be found here.

提交回复
热议问题