MCPcopy
hub / github.com/nats-io/nats.go / ProtoReflect

Method ProtoReflect

encoders/protobuf/testdata/pbtest.pb.go:54–64  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

52func (*Person) ProtoMessage() {}
53
54func (x *Person) ProtoReflect() protoreflect.Message {
55 mi := &file_pbtest_proto_msgTypes[0]
56 if protoimpl.UnsafeEnabled && x != nil {
57 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
58 if ms.LoadMessageInfo() == nil {
59 ms.StoreMessageInfo(mi)
60 }
61 return ms
62 }
63 return mi.MessageOf(x)
64}
65
66// Deprecated: Use Person.ProtoReflect.Descriptor instead.
67func (*Person) Descriptor() ([]byte, []int) {

Callers 2

TestEncProtoNilRequestFunction · 0.95

Calls

no outgoing calls

Tested by 2

TestEncProtoNilRequestFunction · 0.76