Actually in some sense this code snippet is still up to date, because
version 3.0 of protobuf supports both proto2 and proto3, and the plan is to
keep supporting both for the foreseeable future. Also, if we were to update
that snippet to be valid proto3 syntax then in addition to removing the
specified default value we would have to remove the "optional" and
"required" keywords since those do not exist in proto3.

On Thu, Sep 22, 2016 at 2:27 PM, Arpit Baldeva <abald...@gmail.com> wrote:

> Hi,
>
> The documentation here - https://developers.google.
> com/protocol-buffers/docs/overview shows following:
>
> optional PhoneType type = 2 [default = HOME];
>
>
> However, default value can no longer be specified in proto3. I'd suggest
> to remove this and keep the documentation up to date with the current
> version.
>
> Thanks.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Protocol Buffers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to protobuf+unsubscr...@googlegroups.com.
> To post to this group, send email to protobuf@googlegroups.com.
> Visit this group at https://groups.google.com/group/protobuf.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to