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

Function MessageV2

proto/proto.go:60–62  ·  view source on GitHub ↗

MessageV2 converts either a v1 or v2 message to a v2 message. It returns nil if m is nil.

(m GeneratedMessage)

Source from the content-addressed store, hash-verified

58// MessageV2 converts either a v1 or v2 message to a v2 message.
59// It returns nil if m is nil.
60func MessageV2(m GeneratedMessage) protoV2.Message {
61 return protoimpl.X.ProtoMessageV2Of(m)
62}
63
64// MessageReflect returns a reflective view for a message.
65// It returns nil if m is nil.

Callers 11

UnmarshalTextFunction · 0.85
CloneFunction · 0.85
MergeFunction · 0.85
EqualFunction · 0.85
SizeFunction · 0.85
marshalAppendFunction · 0.85
UnmarshalMergeFunction · 0.85
MarshalMethod · 0.85
MergeMethod · 0.85
SizeMethod · 0.85
UnmarshalMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected