MCPcopy
hub / github.com/protocolbuffers/protobuf-go / Resolver

Interface Resolver

reflect/protodesc/desc.go:35–38  ·  view source on GitHub ↗

Resolver is the resolver used by [NewFile] to resolve dependencies. The enums and messages provided must belong to some parent file, which is also registered. It is implemented by [protoregistry.Files].

Source from the content-addressed store, hash-verified

33//
34// It is implemented by [protoregistry.Files].
35type Resolver interface {
36 FindFileByPath(string) (protoreflect.FileDescriptor, error)
37 FindDescriptorByName(protoreflect.FullName) (protoreflect.Descriptor, error)
38}
39
40// FileOptions configures the construction of file descriptors.
41type FileOptions struct {

Callers 5

NewMethod · 0.65
FindEnumByNameMethod · 0.65
FindExtensionByNameMethod · 0.65
FindMessageByNameMethod · 0.65
findDescriptorMethod · 0.65

Implementers 2

Filesreflect/protoregistry/registry.go
resolverOnlyinternal/impl/legacy_file.go

Calls

no outgoing calls

Tested by

no test coverage detected