mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2024-12-29 12:17:48 +00:00
dbab6c06ee
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> |
||
---|---|---|
.. | ||
fmt | ||
test_a_1 | ||
test_a_2 | ||
test_b_1 | ||
test_import_a1m1.pb.go | ||
test_import_a1m1.proto | ||
test_import_a1m2.pb.go | ||
test_import_a1m2.proto | ||
test_import_all.pb.go | ||
test_import_all.proto |