Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
955 changes: 918 additions & 37 deletions activity/v1/message.pb.go

Large diffs are not rendered by default.

1,679 changes: 1,679 additions & 0 deletions activity/v1/message_protoopaque.pb.go

Large diffs are not rendered by default.

996 changes: 917 additions & 79 deletions batch/v1/message.pb.go

Large diffs are not rendered by default.

1,890 changes: 1,890 additions & 0 deletions batch/v1/message_protoopaque.pb.go

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions cmd/protogen/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ func runProtoc(ctx context.Context, cfg genConfig, protoDirs []string) error {
}
if cfg.outputDescriptorPath == "" {
args = append(args, fmt.Sprintf("--go_out=paths=source_relative:%s", cfg.outputDir))
// Enable Hybrid API for gradual migration to Opaque API
// See: https://go.dev/blog/protobuf-opaque
args = append(args, "--go_opt=default_api_level=API_HYBRID")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the only manual change.

} else {
args = append(args, "--include_imports")
args = append(args, "--include_source_info")
Expand Down
10 changes: 5 additions & 5 deletions cmd/proxygenerator/interceptor.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading