gapic-generator-go icon indicating copy to clipboard operation
gapic-generator-go copied to clipboard

gapic: refactor plugins to Go Protobuf v2 plugin API

Open noahdietz opened this issue 6 years ago • 4 comments

Recently, the v2 of the Go Protobuf API was released, that included improvements to the protoc plugin API. We should upgrade and refactor the Go micro-generator to use google.golang.org/protobuf/compiler/protogen (godoc). This could significantly reduce the amount of hand-spun utility code in the Go micro-generator.

This would also probably mean significant changes to all three generators: gengapic, gencli, gensample.

noahdietz avatar Mar 31 '20 17:03 noahdietz

Blog post about the new package for posterity.

noahdietz avatar Mar 31 '20 18:03 noahdietz

I can attest that the new api is 🔥

tmc avatar May 09 '20 03:05 tmc

@noahdietz Support for input on textpb format would also be super useful.

odsod avatar Jul 15 '20 15:07 odsod

@odsod would you mind opening a separate issue fro a feature request please? This issue is a backlog item to migrate protobuf APIs in the protoc plugin implementations.

noahdietz avatar Jul 15 '20 16:07 noahdietz