Hi,
Currently I'm working with ProtoBuf at work. There's a client device that sends us messages using ProtoBuf, so we can't change the protocol. The first 3 bytes is the length of the ProtoBuf message with big endian bytes order and then after that is the message itself. However, the .proto file they sent us defines multiple types of messages.
I'm using a CodedInputStream to first read the length of the serialized message and then read this size.
My problem is that after having bytes of the message I don't know which class inside the protc generated file I should use to call the parseFrom.
Any idea?
Best Regards,