mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2025-01-04 02:38:50 +00:00
05828dba44
The bespoke text-serialization of field descriptors in protoc-gen-go is also used in the legacy implementation of protobuf reflection to derive a protoreflect.FieldDescriptor from legacy messages and also to convert to/from protoreflect.ExtensionDescriptor and protoV1.ExtensionDesc. Centralize this logic in a single place: * to avoid reimplementing the same logic in internal/impl * to keep the marshal and unmarshal logic co-located Change-Id: I634c5afbb9dc6eda91d6cb6b0e68dbd724cb1ccb Reviewed-on: https://go-review.googlesource.com/c/146758 Reviewed-by: Herbie Ong <herbie@google.com> Reviewed-by: Damien Neil <dneil@google.com> |
||
---|---|---|
.. | ||
json | ||
pack | ||
tag | ||
text | ||
wire |