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

Method Interface

ptypes/any.go:169–171  ·  ptypes/any.go::dynamicAny.Interface
()

Source from the content-addressed store, hash-verified

167 return dynamicAnyType{m.Message.Type()}.New()
168}
169func (m dynamicAny) Interface() protoreflect.ProtoMessage {
170 return DynamicAny{proto.MessageV1(m.Message.Interface())}
171}
172
173type dynamicAnyType struct{ protoreflect.MessageType }
174

Callers 15

TestGetExtensionDefaultsFunction · 0.80
unmarshalMessageMethod · 0.80
newPropertiesFunction · 0.80
GetExtensionFunction · 0.80
SetExtensionFunction · 0.80
marshalMethod · 0.80
writeProto3AnyMethod · 0.80
writeSingularValueMethod · 0.80
DebugPrintMethod · 0.80
goTypeForFieldFunction · 0.80
messageGoTypeFunction · 0.80

Calls 1

MessageV1Function · 0.92

Tested by 4

TestGetExtensionDefaultsFunction · 0.64
TestAnyReflectFunction · 0.64
TestUnmarshalingFunction · 0.64
TestUnmarshalNextFunction · 0.64