protobuf-go/reflect/protoreflect
Damien Neil 2300c18725 reflect/protoreflect, reflect/protoregistry: move descriptor lookup to registry
Drop the protoreflect.FileDescriptor.DescriptorByName method.
Descriptor lookup will always happen through a protoregistry.Files, which
is more generally useful (it's rare that you want to find a descriptor in a
specific file, as opposed to a package which may be composed of multiple files).

Split protoregistry.Files descriptor lookup into individual per-type functions
(enum, message, extension, service), matching the preg.Types API.

Drop the ability to look up enum values, message fields, and service methods
for now. This can be easily added later if needed, and is trivial to implement
in user code. (e.g., look up the service and then consult sd.Methods.ByName().)

Change-Id: I2b3d8ef888921a8464ba1434eddab20c7d3a458e
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/172118
Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com>
2019-04-16 06:03:04 +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, reflect/protoregistry: move descriptor lookup to registry 2019-04-16 06:03:04 +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 KnownFields.WhichOneof 2019-04-09 21:18:45 +00:00