Hello,
I am new to protobuf. I read the document and came to know that the oneof
field is similar to union in c or c++. I have the below messages to send
and receive. Can come one please send me the sending side and receiving
side parser to get the particular message type and process it.
essage Message1 {
string a = 1;
string b = 2;}
message Message2 {
int64 id = 1;
string data = 2;}
message WrapperMessage { oneof msg {
Message1 m1 = 2;
Message2 m2 = 3;
} }
rgds
Simon
--
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 view this discussion on the web visit
https://groups.google.com/d/msgid/protobuf/680e98dd-0f05-4575-ad70-5d7c9b190f76%40googlegroups.com.