Re: [protobuf] Optional,Repated fields and Submessages

2011-06-02 Thread Pherl Liu
On Wed, Jun 1, 2011 at 3:45 PM, aara aara.cool...@gmail.com wrote: I actually have 3 questions. 1.When we specify default values for optional fields,the default value gets assigned automatically when we ourselves dont assign it a value. But why doesnt the has_member field get set to 1??? It

Re: [protobuf] Optional,Repated fields and Submessages

2011-06-02 Thread AARADHANA SRIDHARAN
I am working on a C code base... INIT functions are used in this case instead of a constructor in C++. Thanks for your reply. On Thu, Jun 2, 2011 at 3:33 PM, Pherl Liu liuj...@google.com wrote: On Wed, Jun 1, 2011 at 3:45 PM, aara aara.cool...@gmail.com wrote: I actually have 3 questions.