mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2024-12-28 00:19:55 +00:00
79bfdbe45b
Descriptor methods generally return a Descriptor with no Go type information. ExtensionType's Descriptor is an exception, returning an ExtensionTypeDescriptor containing both the proto descriptor and a reference back to the ExtensionType. The pure descriptor is accessed by xt.Descriptor().Descriptor(). Rename ExtensionType's Descriptor method to TypeDescriptor to make it clear that it behaves a bit differently. Change 1/2: Add the TypeDescriptor method and deprecate Descriptor. Change-Id: I1806095044d35a474d60f94d2a28bdf528f12238 Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/192139 Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com> |
||
---|---|---|
.. | ||
bench_test.go | ||
decode_gen.go | ||
decode_test.go | ||
decode.go | ||
doc.go | ||
encode_gen.go | ||
encode_test.go | ||
encode.go | ||
equal_test.go | ||
equal.go | ||
extension_test.go | ||
extension.go | ||
isinit_test.go | ||
isinit.go | ||
merge_test.go | ||
merge.go | ||
messageset_test.go | ||
messageset.go | ||
proto_methods.go | ||
proto_reflect.go | ||
proto.go | ||
reset_test.go | ||
reset.go | ||
size_gen.go | ||
size.go | ||
wrappers.go |