protobuf-go/cmd/protoc-gen-go/testdata/gen_test.go
googleberg eba8b0975f cmd/protoc-gen-go: support protobuf retention feature
This change strips out all descriptor option fields marked with [retention = RETENTION_SOURCE] before writing the FileDescriptor to the generated go code bindings.

Change-Id: Ie624d9d4b4f211a256661d80a04199ae8401662b
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/472696
Reviewed-by: Damien Neil <dneil@google.com>
Reviewed-by: Lasse Folger <lassefolger@google.com>
2023-03-07 09:24:00 +00:00

31 lines
1.7 KiB
Go

// Copyright 2019 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Code generated by generate-protos. DO NOT EDIT.
package main
import (
_ "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/annotations"
_ "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/comments"
_ "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/extensions/base"
_ "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/extensions/ext"
_ "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/extensions/extra"
_ "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/extensions/proto3"
_ "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/fieldnames"
_ "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/import_public"
_ "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/import_public/sub"
_ "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/import_public/sub2"
_ "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/imports"
_ "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/imports/fmt"
_ "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/imports/test_a_1"
_ "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/imports/test_a_2"
_ "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/imports/test_b_1"
_ "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/issue780_oneof_conflict"
_ "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/nopackage"
_ "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/proto2"
_ "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/proto3"
_ "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/retention"
)