I'm new to PB and I would ask a simple thing...
I've already read the 'Techniques' page but, if I want to do the following:
required FileDescriptorSet proto_files = 1;
required string type_name = 2;
required EMessages opCode = 3;
required MsgHeader Header = 1;
* // Here would be nice to do*
* Header.opCode = MSG_FIRST;*
required int MyData = 2;
Is there a way to assign a constant to a message field?
Thanks in advance,
You received this message because you are subscribed to the Google Groups
"Protocol Buffers" group.
To view this discussion on the web visit
To post to this group, send email to firstname.lastname@example.org.
To unsubscribe from this group, send email to
For more options, visit this group at