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