MCPcopy
hub / github.com/golang/protobuf / MessageReflect

Function MessageReflect

proto/proto.go:66–68  ·  view source on GitHub ↗

MessageReflect returns a reflective view for a message. It returns nil if m is nil.

(m Message)

Source from the content-addressed store, hash-verified

64// MessageReflect returns a reflective view for a message.
65// It returns nil if m is nil.
66func MessageReflect(m Message) protoreflect.Message {
67 return protoimpl.X.MessageOf(m)
68}
69
70// Marshaler is implemented by messages that can marshal themselves.
71// This interface is used by the following functions: Size, Marshal,

Callers 13

ProtoReflectMethod · 0.92
DiscardUnknownFunction · 0.85
SetDefaultsFunction · 0.85
HasExtensionFunction · 0.85
ClearExtensionFunction · 0.85
ClearAllExtensionsFunction · 0.85
GetExtensionFunction · 0.85
GetExtensionsFunction · 0.85
SetExtensionFunction · 0.85
SetRawExtensionFunction · 0.85
ExtensionDescsFunction · 0.85
marshalMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected