Versions in this module Expand all Collapse all v1 v1.26.0 Jan 20, 2021 Changes in this version + var NotFound = errors.New("not found") + type ExtensionTypeResolver interface + FindExtensionByName func(field protoreflect.FullName) (protoreflect.ExtensionType, error) + FindExtensionByNumber func(message protoreflect.FullName, field protoreflect.FieldNumber) (protoreflect.ExtensionType, error) + type Files struct + var GlobalFiles *Files = new(Files) + func (r *Files) FindDescriptorByName(name protoreflect.FullName) (protoreflect.Descriptor, error) + func (r *Files) FindFileByPath(path string) (protoreflect.FileDescriptor, error) + func (r *Files) NumFiles() int + func (r *Files) NumFilesByPackage(name protoreflect.FullName) int + func (r *Files) RangeFiles(f func(protoreflect.FileDescriptor) bool) + func (r *Files) RangeFilesByPackage(name protoreflect.FullName, f func(protoreflect.FileDescriptor) bool) + func (r *Files) RegisterFile(file protoreflect.FileDescriptor) error + type MessageTypeResolver interface + FindMessageByName func(message protoreflect.FullName) (protoreflect.MessageType, error) + FindMessageByURL func(url string) (protoreflect.MessageType, error) + type Types struct + var GlobalTypes *Types = new(Types) + func (r *Types) FindEnumByName(enum protoreflect.FullName) (protoreflect.EnumType, error) + func (r *Types) FindExtensionByName(field protoreflect.FullName) (protoreflect.ExtensionType, error) + func (r *Types) FindExtensionByNumber(message protoreflect.FullName, field protoreflect.FieldNumber) (protoreflect.ExtensionType, error) + func (r *Types) FindMessageByName(message protoreflect.FullName) (protoreflect.MessageType, error) + func (r *Types) FindMessageByURL(url string) (protoreflect.MessageType, error) + func (r *Types) NumEnums() int + func (r *Types) NumExtensions() int + func (r *Types) NumExtensionsByMessage(message protoreflect.FullName) int + func (r *Types) NumMessages() int + func (r *Types) RangeEnums(f func(protoreflect.EnumType) bool) + func (r *Types) RangeExtensions(f func(protoreflect.ExtensionType) bool) + func (r *Types) RangeExtensionsByMessage(message protoreflect.FullName, f func(protoreflect.ExtensionType) bool) + func (r *Types) RangeMessages(f func(protoreflect.MessageType) bool) + func (r *Types) RegisterEnum(et protoreflect.EnumType) error + func (r *Types) RegisterExtension(xt protoreflect.ExtensionType) error + func (r *Types) RegisterMessage(mt protoreflect.MessageType) error