protobuf-go/cmd/protoc-gen-go/testdata/imports
Joe Tsai dbab6c06ee cmd/protoc-gen-go: generate Enum method even on proto3
A proto2 message can reference a proto3 enum. It is currently cumbersome
to set proto3 enums in proto2 messages. Add the Enum method in all situations
to support this situation. It also removes yet another point of divergence
between proto2 and proto3.

We could consider removing this method if Go ever gets generics,
but that hypothetical future is long ways away.

Change-Id: Ib83bc87e46b49f3271b90bacb2893bb8e278e4f2
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/177257
Reviewed-by: Damien Neil <dneil@google.com>
2019-05-17 06:27:54 +00:00
..
fmt all: change module to google.golang.org/protobuf 2019-05-14 17:28:29 +00:00
test_a_1 cmd/protoc-gen-go: generate Enum method even on proto3 2019-05-17 06:27:54 +00:00
test_a_2 all: change module to google.golang.org/protobuf 2019-05-14 17:28:29 +00:00
test_b_1 all: change module to google.golang.org/protobuf 2019-05-14 17:28:29 +00:00
test_import_a1m1.pb.go all: change module to google.golang.org/protobuf 2019-05-14 17:28:29 +00:00
test_import_a1m1.proto all: change module to google.golang.org/protobuf 2019-05-14 17:28:29 +00:00
test_import_a1m2.pb.go all: change module to google.golang.org/protobuf 2019-05-14 17:28:29 +00:00
test_import_a1m2.proto all: change module to google.golang.org/protobuf 2019-05-14 17:28:29 +00:00
test_import_all.pb.go all: change module to google.golang.org/protobuf 2019-05-14 17:28:29 +00:00
test_import_all.proto all: change module to google.golang.org/protobuf 2019-05-14 17:28:29 +00:00