fokenrute wrote:
Ok, so, I will likely opt for Enum Types. Thanks for answering.

I think union types are the best choice for a "small" number of possible messages. However, if you really need to support *any* type of message, you could consider adding a "header" message of a known type that includes the fully-qualified message name as returned by message->GetDescriptor()->full_name(), or some other unique "message type" indicator.

Good luck,

Evan

--
Evan Jones
http://evanjones.ca/

--
You received this message because you are subscribed to the Google Groups "Protocol 
Buffers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.

Reply via email to