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, -- 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/11621bc9-790a-4573-a9ec-0a04b5e925a0n%40googlegroups.com.