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

Method FindMessageByURL

jsonpb/json.go:35–41  ·  view source on GitHub ↗
(url string)

Source from the content-addressed store, hash-verified

33}
34
35func (r anyResolver) FindMessageByURL(url string) (protoreflect.MessageType, error) {
36 m, err := r.Resolve(url)
37 if err != nil {
38 return nil, err
39 }
40 return protoimpl.X.MessageTypeOf(m), nil
41}
42
43func (r anyResolver) FindExtensionByName(field protoreflect.FullName) (protoreflect.ExtensionType, error) {
44 return protoregistry.GlobalTypes.FindExtensionByName(field)

Callers 5

FindMessageByNameMethod · 0.95
writeProto3AnyMethod · 0.80
marshalAnyMethod · 0.80
unmarshalMessageMethod · 0.80

Calls 1

ResolveMethod · 0.65

Tested by

no test coverage detected