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

Function MessageName

proto/registry.go:264–272  ·  view source on GitHub ↗

MessageName returns the full protobuf name for the given message type. Deprecated: Use protoreflect.MessageDescriptor.FullName instead.

(m Message)

Source from the content-addressed store, hash-verified

262//
263// Deprecated: Use protoreflect.MessageDescriptor.FullName instead.
264func MessageName(m Message) messageName {
265 if m == nil {
266 return ""
267 }
268 if m, ok := m.(interface{ XXX_MessageName() messageName }); ok {
269 return m.XXX_MessageName()
270 }
271 return messageName(protoimpl.X.MessageDescriptorOf(m).FullName())
272}
273
274// RegisterExtension is called from the generated code to register
275// the extension descriptor.

Callers 9

makeGoldenFunction · 0.92
TestRacyMarshalFunction · 0.92
MarshalAnyFunction · 0.92
UnmarshalAnyFunction · 0.92
IsFunction · 0.92
TestIsCornerCasesFunction · 0.92
TestEmptyCornerCasesFunction · 0.92
RegisteredExtensionsFunction · 0.85

Calls

no outgoing calls

Tested by 5

makeGoldenFunction · 0.74
TestRacyMarshalFunction · 0.74
TestIsCornerCasesFunction · 0.74
TestEmptyCornerCasesFunction · 0.74