mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2025-01-01 11:58:21 +00:00
2300c18725
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> |
||
---|---|---|
.. | ||
proto_test.go | ||
proto.go | ||
type.go | ||
value_pure.go | ||
value_test.go | ||
value_union.go | ||
value_unsafe.go | ||
value.go |