[protobuf] Why do field default values not get serialised?

2010-07-14 Thread mark.t.macdon...@googlemail.com
I am new and want to understand the purpose/usage of default values in the .proto file. E.g: test { optional string a 1 [default =test]; } When I create a message object and read the field value, the default will be displayed: test thing; coutthing.a(); But when I serialise, write to a file,

Re: [protobuf] Why do field default values not get serialised?

2010-07-14 Thread Jason Hsueh
On Wed, Jul 14, 2010 at 1:47 PM, mark.t.macdon...@googlemail.com mark.t.macdon...@googlemail.com wrote: I am new and want to understand the purpose/usage of default values in the .proto file. E.g: test { optional string a 1 [default =test]; } When I create a message object and read the