protobuf-go/cmd/protoc-gen-go/testdata/proto2
Damien Neil a485fbd353 reflect/protoreflect: add FieldDescriptor.DefaultEnumValue method
Default values for enums are specified by name, not number. An enum
may contain multiple values with different names but the same number.
Representing the default as a protoreflect.Value containing an EnumNumber
can discard information.

Add a method returning the EnumValueDescriptor.

Change-Id: If8beee3f81d41c4f9af45423252603b86949c7a5
Reviewed-on: https://go-review.googlesource.com/c/145158
Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com>
2018-10-29 15:59:23 +00:00
..
enum.pb.go reflect/protoreflect: add FieldDescriptor.DefaultEnumValue method 2018-10-29 15:59:23 +00:00
enum.proto reflect/protoreflect: add FieldDescriptor.DefaultEnumValue method 2018-10-29 15:59:23 +00:00
fields.pb.go cmd/protoc-gen-go: re-escape default byte values 2018-10-22 17:14:19 +00:00
fields.proto cmd/protoc-gen-go: re-escape default byte values 2018-10-22 17:14:19 +00:00
nested_messages.pb.go cmd/protoc-gen-go: special cases for MessageSet extensions 2018-09-24 17:25:31 +00:00
nested_messages.proto go.mod: rename google.golang.org/proto as github.com/golang/protobuf/v2 2018-09-24 16:11:50 +00:00
proto2.pb.go cmd/protoc-gen-go: special cases for MessageSet extensions 2018-09-24 17:25:31 +00:00
proto2.proto go.mod: rename google.golang.org/proto as github.com/golang/protobuf/v2 2018-09-24 16:11:50 +00:00