I'm new to protobuf, and I'm trying to convert JSON object into protobuf 
messages in c#.
My question is, my .proto file contain several messages types. is there a 
way to find the messages type dynamically or my only shot is by trying all 
possible options?

I mean, if I know this is a Version message, then I simply write:
 ver = encoder.Parse<Version>(data);

but if it can be one of two options, like 'Version' and 'SysParams'

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to