On Mon, Mar 30, 2015 at 11:44 AM, Kostiantyn Shchepanovskyi <
[email protected]> wrote:

> Hi,
>
> 3. Removal of extensions, which are instead replaced by a new standard
>> type called Any.
>
>
> Extensions are used for custom options definition in proto2.
>
> import "google/protobuf/descriptor.proto";
>
> extend google.protobuf.MessageOptions {
>   optional string my_option = 51234;
> }
>
> message MyMessage {
>   option (my_option) = "Hello world!";
> }
>
> How it will look in proto3?
>
Extensions to these options are explicitly allowed in proto3.


>
>  --
> 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 [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to