Re: [protobuf] [protobuff] How to set a field of "Message" type? (C++)

2010-07-07 Thread Daniel Wright
In C++ you use the mutable_ accessor to set the value. So for example, you could do: my_message.mutable_auth_resp_msg()->set_foo(1); On Tue, Jul 6, 2010 at 3:01 PM, Maxim Leonovich wrote: > I have a protocol like that: > > message MSG { >enum MessageType { >//One enum

[protobuf] [protobuff] How to set a field of "Message" type? (C++)

2010-07-07 Thread Maxim Leonovich
I have a protocol like that: message MSG { enum MessageType { //One enum value is needed for each message type AUTHORIZATION_REQUEST = 1; AUTHORIZATION_RESPONCE = 2; } required MessageType type = 1; required int32 prot