[protobuf] Read message without knowing which message type it will be

2011-06-13 Thread fmaltman
Hello. What's the correct way to read a message from an input stream without knowing which of the defined message types it will be? I have five or six message types and don't know in which order I'll receive messages of those types. -- You received this message because you are subscribed to the

Re: [protobuf] Read message without knowing which message type it will be

2011-06-13 Thread Jason Hsueh
Does http://code.google.com/apis/protocolbuffers/docs/techniques.html#unionhelp? On Mon, Jun 13, 2011 at 8:05 AM, fmaltman frank.malt...@googlemail.comwrote: Hello. What's the correct way to read a message from an input stream without knowing which of the defined message types it will be? I