Generating .proto file from proto-plus (or vice versa) #420
Labels
priority: p3
Desirable enhancement or fix. May not be included in next release.
type: feature request
‘Nice-to-have’ improvement, new feature or different behavior or design.
Thanks for stopping by to let us know something could be better!
Is your feature request related to a problem? Please describe.
We want to use the proto-plus library for our own protobuf types, but these protobufs need to work across platform (e.g. C++). It doesn't seem possible to either go from .proto to proto-plus nor the reverse. So today, our only option is to effectively write the definition twice - once for the .proto, and then manually re-implement it in proto-plus to match the .proto definition.
Describe the solution you'd like
Ideally, protoc has an option to emit proto_plus classes, not just the low level classes. We'd also be ok with the reverse - using proto-plus as the source of truth, but have a slight preference for .proto. I have to imagine you have some tool at Google that can do this, as you ship proto-plus implementations for some of the cloud offerings and there are also .proto files.
Describe alternatives you've considered
Manual re-implementation, so we're writing the protos effectively twice.
The text was updated successfully, but these errors were encountered: