The error text i get is:

Error the .proto-file is invalid, content:               optional bool
getA = 1 [default = true];, line number: 2


On Mar 16, 3:25 pm, Jason Hsueh <jas...@google.com> wrote:
> On Wed, Mar 16, 2011 at 12:17 PM, steph <preston....@gmail.com> wrote:
> > I want to have a bool value default to true but I cant seem to make it
> > do that. As stated in the protocol buffer documentation bools default
> > to false. However since i'm able to set default values on types i want
> > to set the defautl value of my bool types to true.
>
> > Here is what i've tried:
>
> > optional bool getA = 1 [default = true];
>
> This first one should work. What did you observe when using this?
>
>
>
>
>
> > optional bool getA = 1 [default = TRUE];
>
> > optional bool getA = 1 [default = 1];
>
> > none of these worked for me. How can i set the bool to default to
> > true?
>
> > thanks,
> > steph
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Protocol Buffers" group.
> > To post to this group, send email to protobuf@googlegroups.com.
> > To unsubscribe from this group, send email to
> > protobuf+unsubscr...@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/protobuf?hl=en.- Hide quoted text -
>
> - Show quoted text -

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to protobuf@googlegroups.com.
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.

Reply via email to