Hi, did you solve it ?  how?

On Tuesday, June 6, 2017 at 2:48:43 AM UTC+8, R.C. wrote:
>
> Hi,
>
> I am looking to move an application written with proto2 to use proto3. I 
> understand 'extensions' is disabled in proto3 and am looking for some 
> guidance to change the below to proto3:
>
>
> ========================
> common.proto:
>
> message Vehicles {
>     extensions 1 to max
> }
>
> ========================
> car.proto:
>
> import "common.proto";
>
> message Car {
>     string type = 1;
>     string color = 2;
> }
>
> extend Vehicles {
>     optional Car CarExt  = 100;
> }
>
> ========================
>
> bike.proto:
>
> import "common.proto";
>
> message Bike {
>     string type = 1;
>     string color = 2;
> }
>
> extend Vehicles {
>     optional Bike BikeExt = 200;
> }
> ========================
>
> Since 'optional' is default i can remove the 'optional' keyword but I am 
> not sure how 'Any' can be used in such scenario in the place of 
> 'extensions'.
>
> Thanks,
> rc
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/protobuf/b0844c33-b51a-4bc5-9a4b-a7d40b33892a%40googlegroups.com.

Reply via email to