[protobuf] What is the default value for a message used as a field type within another message?

2010-06-04 Thread Jax
This should be pretty straightforward, but I couldn't find it in any of the documentation on default values. A slight change from some example code in the google documentation: message SearchResponse { optional Result result = 1; } message Result { required string url = 1; optional

Re: [protobuf] What is the default value for a message used as a field type within another message?

2010-06-04 Thread Jason Hsueh
No, protobuf accessors never return null. For message fields, you get the default instance of the message type. On Fri, Jun 4, 2010 at 9:32 AM, Jax jax...@gmail.com wrote: This should be pretty straightforward, but I couldn't find it in any of the documentation on default values. A slight