protobuf-go/internal
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
..
cmd internal/impl: add fast-path marshal implementation 2019-05-16 22:13:43 +00:00
descopts all: change module to google.golang.org/protobuf 2019-05-14 17:28:29 +00:00
detrand internal/detrand: support disabling detrand 2018-11-29 07:49:45 +00:00
encoding all: change module to google.golang.org/protobuf 2019-05-14 17:28:29 +00:00
errors internal/errors: fix New in eliding prefix 2019-02-27 22:36:14 +00:00
fieldnum internal/fieldnum: generate field numbers for the google.protobuf package 2019-03-21 00:57:40 +00:00
fileinit types: consistently name generated protos 2019-05-16 21:55:40 +00:00
flags
impl internal/impl: add fast-path marshal implementation 2019-05-16 22:13:43 +00:00
legacy types: consistently name generated protos 2019-05-16 21:55:40 +00:00
mapsort all: change module to google.golang.org/protobuf 2019-05-14 17:28:29 +00:00
pragma
prototype types: consistently name generated protos 2019-05-16 21:55:40 +00:00
scalar
set internal/set: remove Int32s, Int64s, and Strings 2019-04-03 22:53:35 +00:00
testprotos cmd/protoc-gen-go: generate Enum method even on proto3 2019-05-17 06:27:54 +00:00
typefmt all: change module to google.golang.org/protobuf 2019-05-14 17:28:29 +00:00
value internal/prototype: support dynamic enum and message types in extension 2019-05-16 00:50:46 +00:00