I have a simple enumeration in my dot-proto as follows
message Bar {
required string name = 1;
required string device = 2;
}
enum msg State {
IDLE = 0;
BUSY = 1;
}
message Foo {
required State state = 1;
required Bar bar = 2;
}
now i set the required fields by using the helper methods provided by the
object;
the state is set to IDLE in the message.
On Receiving () - I de-serialize but nothing shows up in the msg, its as if
the required field was not set.
Then in another test case I set the state to Busy and send - nothing else
has changed,
this time I get the message and I am able to see all information.
Is this a known issue?
enum msg State {
DO_NOT_USE = 0;
IDLE = 1;
BUSY = 2;
}
IS THE WORK AROUND I AM USING
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---