protobuf-go/reflect/protoreflect
Joe Tsai 0fc49f8225 reflect/protoreflect: add Descriptor specific methods
Added methods:
	Enum.Descriptor
	Message.Descriptor
	EnumType.Descriptor
	MessageType.Descriptor
	ExtensionType.Descriptor
	Message.New

All functionality is switched over to use those methods instead of
implicitly relying on the fact that {Enum,Message}Type implicitly
implement the associated descriptor interface.

This CL does not yet remove {Enum,Message}.Type or prevent
{Enum,Message,Extension}Type from implementating a descriptor.
That is a subsequent CL.

The Message.New method is also added to replace functionality
that will be lost when the Type methods are removed.

Change-Id: I7fefde1673bbd40bfdac489aca05cec9a6c98eb1
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/174918
Reviewed-by: Damien Neil <dneil@google.com>
Reviewed-by: Herbie Ong <herbie@google.com>
2019-05-13 19:34:41 +00:00
..
proto_test.go reflect/protoreflect: initial commit 2018-08-10 19:59:50 +00:00
proto.go reflect/protoreflect: clarify documentation 2019-01-09 21:05:02 +00:00
type.go reflect/protoreflect: add Descriptor specific methods 2019-05-13 19:34:41 +00:00
value_pure.go all: add appengine build tag 2018-12-19 00:36:57 +00:00
value_test.go all: rename Vector as List 2018-11-14 23:03:53 +00:00
value_union.go reflect/protoreflect: drop the ProtoEnum type 2019-01-09 00:40:35 +00:00
value_unsafe.go all: add appengine build tag 2018-12-19 00:36:57 +00:00
value.go reflect/protoreflect: add Descriptor specific methods 2019-05-13 19:34:41 +00:00