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

Method New

ptypes/any.go:166–168  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

164 return dynamicAnyType{m.Message.Type()}
165}
166func (m dynamicAny) New() protoreflect.Message {
167 return dynamicAnyType{m.Message.Type()}.New()
168}
169func (m dynamicAny) Interface() protoreflect.ProtoMessage {
170 return DynamicAny{proto.MessageV1(m.Message.Interface())}
171}

Callers 15

TestGetExtensionDefaultsFunction · 0.45
text_decode.goFile · 0.45
UnmarshalTextMethod · 0.45
text_test.goFile · 0.45
extensions.goFile · 0.45
GetExtensionFunction · 0.45
writeProto3AnyMethod · 0.45
consumeGroupFunction · 0.45
deprecated.goFile · 0.45
MarshalMessageSetFunction · 0.45
UnmarshalMessageSetFunction · 0.45

Calls 1

TypeMethod · 0.80

Tested by 7

TestGetExtensionDefaultsFunction · 0.36
UnmarshalTextMethod · 0.36
TestMarshalerEncodingFunction · 0.36
TestUnmarshalFuzzFunction · 0.36
TestAnyReflectFunction · 0.36
TestUnmarshalingFunction · 0.36
TestUnmarshalNextFunction · 0.36