Versions in this module Expand all Collapse all v1 v1.0.0 Jun 1, 2021 Changes in this version + var SurrogateProto2 = &File + var SurrogateProto3 = &File + func DefaultValue(v pref.Value, ev pref.EnumValueDescriptor) defaultValue + type Base struct + L0 BaseL0 + func (d *Base) FullName() pref.FullName + func (d *Base) Index() int + func (d *Base) IsPlaceholder() bool + func (d *Base) Name() pref.Name + func (d *Base) Parent() pref.Descriptor + func (d *Base) ParentFile() pref.FileDescriptor + func (d *Base) ProtoInternal(pragma.DoNotImplement) + func (d *Base) Syntax() pref.Syntax + type BaseL0 struct + FullName pref.FullName + Index int + Parent pref.Descriptor + ParentFile *File + type Builder struct + FileRegistry interface{ ... } + GoPackagePath string + NumEnums int32 + NumExtensions int32 + NumMessages int32 + NumServices int32 + RawDescriptor []byte + TypeResolver interface{ ... } + func (db Builder) Build() (out Out) + type Enum struct + L1 EnumL1 + L2 *EnumL2 + func (ed *Enum) Format(s fmt.State, r rune) + func (ed *Enum) Options() pref.ProtoMessage + func (ed *Enum) ProtoType(pref.EnumDescriptor) + func (ed *Enum) ReservedNames() pref.Names + func (ed *Enum) ReservedRanges() pref.EnumRanges + func (ed *Enum) Values() pref.EnumValueDescriptors + type EnumL1 struct + type EnumL2 struct + Options func() pref.ProtoMessage + ReservedNames Names + ReservedRanges EnumRanges + Values EnumValues + type EnumRanges struct + List [][2]pref.EnumNumber + func (p *EnumRanges) CheckValid() error + func (p *EnumRanges) Format(s fmt.State, r rune) + func (p *EnumRanges) Get(i int) [2]pref.EnumNumber + func (p *EnumRanges) Has(n pref.EnumNumber) bool + func (p *EnumRanges) Len() int + func (p *EnumRanges) ProtoInternal(pragma.DoNotImplement) + type EnumValue struct + L1 EnumValueL1 + func (ed *EnumValue) Format(s fmt.State, r rune) + func (ed *EnumValue) Number() pref.EnumNumber + func (ed *EnumValue) Options() pref.ProtoMessage + func (ed *EnumValue) ProtoType(pref.EnumValueDescriptor) + type EnumValueL1 struct + Number pref.EnumNumber + Options func() pref.ProtoMessage + type EnumValues struct + List []EnumValue + func (p *EnumValues) ByName(s protoreflect.Name) protoreflect.EnumValueDescriptor + func (p *EnumValues) ByNumber(n protoreflect.EnumNumber) protoreflect.EnumValueDescriptor + func (p *EnumValues) Format(s fmt.State, r rune) + func (p *EnumValues) Get(i int) protoreflect.EnumValueDescriptor + func (p *EnumValues) Len() int + func (p *EnumValues) ProtoInternal(pragma.DoNotImplement) + type Enums struct + List []Enum + func (p *Enums) ByName(s protoreflect.Name) protoreflect.EnumDescriptor + func (p *Enums) Format(s fmt.State, r rune) + func (p *Enums) Get(i int) protoreflect.EnumDescriptor + func (p *Enums) Len() int + func (p *Enums) ProtoInternal(pragma.DoNotImplement) + type Extension struct + L1 ExtensionL1 + L2 *ExtensionL2 + func (xd *Extension) Cardinality() pref.Cardinality + func (xd *Extension) ContainingMessage() pref.MessageDescriptor + func (xd *Extension) ContainingOneof() pref.OneofDescriptor + func (xd *Extension) Default() pref.Value + func (xd *Extension) DefaultEnumValue() pref.EnumValueDescriptor + func (xd *Extension) Enum() pref.EnumDescriptor + func (xd *Extension) Format(s fmt.State, r rune) + func (xd *Extension) HasDefault() bool + func (xd *Extension) HasJSONName() bool + func (xd *Extension) HasOptionalKeyword() bool + func (xd *Extension) HasPresence() bool + func (xd *Extension) IsExtension() bool + func (xd *Extension) IsList() bool + func (xd *Extension) IsMap() bool + func (xd *Extension) IsPacked() bool + func (xd *Extension) IsWeak() bool + func (xd *Extension) JSONName() string + func (xd *Extension) Kind() pref.Kind + func (xd *Extension) MapKey() pref.FieldDescriptor + func (xd *Extension) MapValue() pref.FieldDescriptor + func (xd *Extension) Message() pref.MessageDescriptor + func (xd *Extension) Number() pref.FieldNumber + func (xd *Extension) Options() pref.ProtoMessage + func (xd *Extension) ProtoInternal(pragma.DoNotImplement) + func (xd *Extension) ProtoType(pref.FieldDescriptor) + func (xd *Extension) TextName() string + type ExtensionL1 struct + Cardinality pref.Cardinality + Extendee pref.MessageDescriptor + Kind pref.Kind + Number pref.FieldNumber + type ExtensionL2 struct + Default defaultValue + Enum pref.EnumDescriptor + IsPacked bool + IsProto3Optional bool + Message pref.MessageDescriptor + Options func() pref.ProtoMessage + StringName stringName + type Extensions struct + List []Extension + func (p *Extensions) ByName(s protoreflect.Name) protoreflect.ExtensionDescriptor + func (p *Extensions) Format(s fmt.State, r rune) + func (p *Extensions) Get(i int) protoreflect.ExtensionDescriptor + func (p *Extensions) Len() int + func (p *Extensions) ProtoInternal(pragma.DoNotImplement) + type Field struct + L1 FieldL1 + func (fd *Field) Cardinality() pref.Cardinality + func (fd *Field) ContainingMessage() pref.MessageDescriptor + func (fd *Field) ContainingOneof() pref.OneofDescriptor + func (fd *Field) Default() pref.Value + func (fd *Field) DefaultEnumValue() pref.EnumValueDescriptor + func (fd *Field) EnforceUTF8() bool + func (fd *Field) Enum() pref.EnumDescriptor + func (fd *Field) Format(s fmt.State, r rune) + func (fd *Field) HasDefault() bool + func (fd *Field) HasJSONName() bool + func (fd *Field) HasOptionalKeyword() bool + func (fd *Field) HasPresence() bool + func (fd *Field) IsExtension() bool + func (fd *Field) IsList() bool + func (fd *Field) IsMap() bool + func (fd *Field) IsPacked() bool + func (fd *Field) IsWeak() bool + func (fd *Field) JSONName() string + func (fd *Field) Kind() pref.Kind + func (fd *Field) MapKey() pref.FieldDescriptor + func (fd *Field) MapValue() pref.FieldDescriptor + func (fd *Field) Message() pref.MessageDescriptor + func (fd *Field) Number() pref.FieldNumber + func (fd *Field) Options() pref.ProtoMessage + func (fd *Field) ProtoType(pref.FieldDescriptor) + func (fd *Field) TextName() string + type FieldL1 struct + Cardinality pref.Cardinality + ContainingOneof pref.OneofDescriptor + Default defaultValue + EnforceUTF8 bool + Enum pref.EnumDescriptor + HasEnforceUTF8 bool + HasPacked bool + IsPacked bool + IsProto3Optional bool + IsWeak bool + Kind pref.Kind + Message pref.MessageDescriptor + Number pref.FieldNumber + Options func() pref.ProtoMessage + StringName stringName + type FieldNumbers struct + List []pref.FieldNumber + func (p *FieldNumbers) Format(s fmt.State, r rune) + func (p *FieldNumbers) Get(i int) pref.FieldNumber + func (p *FieldNumbers) Has(n pref.FieldNumber) bool + func (p *FieldNumbers) Len() int + func (p *FieldNumbers) ProtoInternal(pragma.DoNotImplement) + type FieldRanges struct + List [][2]pref.FieldNumber + func (p *FieldRanges) CheckOverlap(q *FieldRanges) error + func (p *FieldRanges) CheckValid(isMessageSet bool) error + func (p *FieldRanges) Format(s fmt.State, r rune) + func (p *FieldRanges) Get(i int) [2]pref.FieldNumber + func (p *FieldRanges) Has(n pref.FieldNumber) bool + func (p *FieldRanges) Len() int + func (p *FieldRanges) ProtoInternal(pragma.DoNotImplement) + type Fields struct + List []Field + func (p *Fields) ByJSONName(s string) protoreflect.FieldDescriptor + func (p *Fields) ByName(s protoreflect.Name) protoreflect.FieldDescriptor + func (p *Fields) ByNumber(n protoreflect.FieldNumber) protoreflect.FieldDescriptor + func (p *Fields) ByTextName(s string) protoreflect.FieldDescriptor + func (p *Fields) Format(s fmt.State, r rune) + func (p *Fields) Get(i int) protoreflect.FieldDescriptor + func (p *Fields) Len() int + func (p *Fields) ProtoInternal(pragma.DoNotImplement) + type File struct + L1 FileL1 + L2 *FileL2 + func (fd *File) Enums() pref.EnumDescriptors + func (fd *File) Extensions() pref.ExtensionDescriptors + func (fd *File) Format(s fmt.State, r rune) + func (fd *File) FullName() pref.FullName + func (fd *File) GoPackagePath() string + func (fd *File) Imports() pref.FileImports + func (fd *File) Index() int + func (fd *File) IsPlaceholder() bool + func (fd *File) Messages() pref.MessageDescriptors + func (fd *File) Name() pref.Name + func (fd *File) Options() pref.ProtoMessage + func (fd *File) Package() pref.FullName + func (fd *File) Parent() pref.Descriptor + func (fd *File) ParentFile() pref.FileDescriptor + func (fd *File) Path() string + func (fd *File) ProtoInternal(pragma.DoNotImplement) + func (fd *File) ProtoType(pref.FileDescriptor) + func (fd *File) Services() pref.ServiceDescriptors + func (fd *File) SourceLocations() pref.SourceLocations + func (fd *File) Syntax() pref.Syntax + type FileImports []pref.FileImport + func (p *FileImports) Format(s fmt.State, r rune) + func (p *FileImports) Get(i int) pref.FileImport + func (p *FileImports) Len() int + func (p *FileImports) ProtoInternal(pragma.DoNotImplement) + type FileL1 struct + Enums Enums + Extensions Extensions + Messages Messages + Package pref.FullName + Path string + Services Services + Syntax pref.Syntax + type FileL2 struct + Imports FileImports + Locations SourceLocations + Options func() pref.ProtoMessage + type Message struct + L1 MessageL1 + L2 *MessageL2 + func (md *Message) Enums() pref.EnumDescriptors + func (md *Message) ExtensionRangeOptions(i int) pref.ProtoMessage + func (md *Message) ExtensionRanges() pref.FieldRanges + func (md *Message) Extensions() pref.ExtensionDescriptors + func (md *Message) Fields() pref.FieldDescriptors + func (md *Message) Format(s fmt.State, r rune) + func (md *Message) IsMapEntry() bool + func (md *Message) IsMessageSet() bool + func (md *Message) Messages() pref.MessageDescriptors + func (md *Message) Oneofs() pref.OneofDescriptors + func (md *Message) Options() pref.ProtoMessage + func (md *Message) ProtoType(pref.MessageDescriptor) + func (md *Message) RequiredNumbers() pref.FieldNumbers + func (md *Message) ReservedNames() pref.Names + func (md *Message) ReservedRanges() pref.FieldRanges + type MessageL1 struct + Enums Enums + Extensions Extensions + IsMapEntry bool + IsMessageSet bool + Messages Messages + type MessageL2 struct + ExtensionRangeOptions []func() pref.ProtoMessage + ExtensionRanges FieldRanges + Fields Fields + Oneofs Oneofs + Options func() pref.ProtoMessage + RequiredNumbers FieldNumbers + ReservedNames Names + ReservedRanges FieldRanges + type Messages struct + List []Message + func (p *Messages) ByName(s protoreflect.Name) protoreflect.MessageDescriptor + func (p *Messages) Format(s fmt.State, r rune) + func (p *Messages) Get(i int) protoreflect.MessageDescriptor + func (p *Messages) Len() int + func (p *Messages) ProtoInternal(pragma.DoNotImplement) + type Method struct + L1 MethodL1 + func (md *Method) Format(s fmt.State, r rune) + func (md *Method) Input() pref.MessageDescriptor + func (md *Method) IsStreamingClient() bool + func (md *Method) IsStreamingServer() bool + func (md *Method) Options() pref.ProtoMessage + func (md *Method) Output() pref.MessageDescriptor + func (md *Method) ProtoInternal(pragma.DoNotImplement) + func (md *Method) ProtoType(pref.MethodDescriptor) + type MethodL1 struct + Input pref.MessageDescriptor + IsStreamingClient bool + IsStreamingServer bool + Options func() pref.ProtoMessage + Output pref.MessageDescriptor + type Methods struct + List []Method + func (p *Methods) ByName(s protoreflect.Name) protoreflect.MethodDescriptor + func (p *Methods) Format(s fmt.State, r rune) + func (p *Methods) Get(i int) protoreflect.MethodDescriptor + func (p *Methods) Len() int + func (p *Methods) ProtoInternal(pragma.DoNotImplement) + type Names struct + List []pref.Name + func (p *Names) CheckValid() error + func (p *Names) Format(s fmt.State, r rune) + func (p *Names) Get(i int) pref.Name + func (p *Names) Has(s pref.Name) bool + func (p *Names) Len() int + func (p *Names) ProtoInternal(pragma.DoNotImplement) + type Oneof struct + L1 OneofL1 + func (od *Oneof) Fields() pref.FieldDescriptors + func (od *Oneof) Format(s fmt.State, r rune) + func (od *Oneof) IsSynthetic() bool + func (od *Oneof) Options() pref.ProtoMessage + func (od *Oneof) ProtoType(pref.OneofDescriptor) + type OneofFields struct + List []pref.FieldDescriptor + func (p *OneofFields) ByJSONName(s string) pref.FieldDescriptor + func (p *OneofFields) ByName(s pref.Name) pref.FieldDescriptor + func (p *OneofFields) ByNumber(n pref.FieldNumber) pref.FieldDescriptor + func (p *OneofFields) ByTextName(s string) pref.FieldDescriptor + func (p *OneofFields) Format(s fmt.State, r rune) + func (p *OneofFields) Get(i int) pref.FieldDescriptor + func (p *OneofFields) Len() int + func (p *OneofFields) ProtoInternal(pragma.DoNotImplement) + type OneofL1 struct + Fields OneofFields + Options func() pref.ProtoMessage + type Oneofs struct + List []Oneof + func (p *Oneofs) ByName(s protoreflect.Name) protoreflect.OneofDescriptor + func (p *Oneofs) Format(s fmt.State, r rune) + func (p *Oneofs) Get(i int) protoreflect.OneofDescriptor + func (p *Oneofs) Len() int + func (p *Oneofs) ProtoInternal(pragma.DoNotImplement) + type Out struct + Enums []Enum + Extensions []Extension + File pref.FileDescriptor + Messages []Message + Services []Service + type PlaceholderEnum pref.FullName + func (e PlaceholderEnum) FullName() pref.FullName + func (e PlaceholderEnum) Index() int + func (e PlaceholderEnum) IsPlaceholder() bool + func (e PlaceholderEnum) Name() pref.Name + func (e PlaceholderEnum) Options() pref.ProtoMessage + func (e PlaceholderEnum) Parent() pref.Descriptor + func (e PlaceholderEnum) ParentFile() pref.FileDescriptor + func (e PlaceholderEnum) ProtoInternal(pragma.DoNotImplement) + func (e PlaceholderEnum) ProtoType(pref.EnumDescriptor) + func (e PlaceholderEnum) ReservedNames() pref.Names + func (e PlaceholderEnum) ReservedRanges() pref.EnumRanges + func (e PlaceholderEnum) Syntax() pref.Syntax + func (e PlaceholderEnum) Values() pref.EnumValueDescriptors + type PlaceholderEnumValue pref.FullName + func (e PlaceholderEnumValue) FullName() pref.FullName + func (e PlaceholderEnumValue) Index() int + func (e PlaceholderEnumValue) IsPlaceholder() bool + func (e PlaceholderEnumValue) Name() pref.Name + func (e PlaceholderEnumValue) Number() pref.EnumNumber + func (e PlaceholderEnumValue) Options() pref.ProtoMessage + func (e PlaceholderEnumValue) Parent() pref.Descriptor + func (e PlaceholderEnumValue) ParentFile() pref.FileDescriptor + func (e PlaceholderEnumValue) ProtoInternal(pragma.DoNotImplement) + func (e PlaceholderEnumValue) ProtoType(pref.EnumValueDescriptor) + func (e PlaceholderEnumValue) Syntax() pref.Syntax + type PlaceholderFile string + func (f PlaceholderFile) Enums() pref.EnumDescriptors + func (f PlaceholderFile) Extensions() pref.ExtensionDescriptors + func (f PlaceholderFile) FullName() pref.FullName + func (f PlaceholderFile) Imports() pref.FileImports + func (f PlaceholderFile) Index() int + func (f PlaceholderFile) IsPlaceholder() bool + func (f PlaceholderFile) Messages() pref.MessageDescriptors + func (f PlaceholderFile) Name() pref.Name + func (f PlaceholderFile) Options() pref.ProtoMessage + func (f PlaceholderFile) Package() pref.FullName + func (f PlaceholderFile) Parent() pref.Descriptor + func (f PlaceholderFile) ParentFile() pref.FileDescriptor + func (f PlaceholderFile) Path() string + func (f PlaceholderFile) ProtoInternal(pragma.DoNotImplement) + func (f PlaceholderFile) ProtoType(pref.FileDescriptor) + func (f PlaceholderFile) Services() pref.ServiceDescriptors + func (f PlaceholderFile) SourceLocations() pref.SourceLocations + func (f PlaceholderFile) Syntax() pref.Syntax + type PlaceholderMessage pref.FullName + func (m PlaceholderMessage) Enums() pref.EnumDescriptors + func (m PlaceholderMessage) ExtensionRangeOptions(int) pref.ProtoMessage + func (m PlaceholderMessage) ExtensionRanges() pref.FieldRanges + func (m PlaceholderMessage) Extensions() pref.ExtensionDescriptors + func (m PlaceholderMessage) Fields() pref.FieldDescriptors + func (m PlaceholderMessage) FullName() pref.FullName + func (m PlaceholderMessage) Index() int + func (m PlaceholderMessage) IsMapEntry() bool + func (m PlaceholderMessage) IsPlaceholder() bool + func (m PlaceholderMessage) Messages() pref.MessageDescriptors + func (m PlaceholderMessage) Name() pref.Name + func (m PlaceholderMessage) Oneofs() pref.OneofDescriptors + func (m PlaceholderMessage) Options() pref.ProtoMessage + func (m PlaceholderMessage) Parent() pref.Descriptor + func (m PlaceholderMessage) ParentFile() pref.FileDescriptor + func (m PlaceholderMessage) ProtoInternal(pragma.DoNotImplement) + func (m PlaceholderMessage) ProtoType(pref.MessageDescriptor) + func (m PlaceholderMessage) RequiredNumbers() pref.FieldNumbers + func (m PlaceholderMessage) ReservedNames() pref.Names + func (m PlaceholderMessage) ReservedRanges() pref.FieldRanges + func (m PlaceholderMessage) Syntax() pref.Syntax + type Service struct + L1 ServiceL1 + L2 *ServiceL2 + func (sd *Service) Format(s fmt.State, r rune) + func (sd *Service) Methods() pref.MethodDescriptors + func (sd *Service) Options() pref.ProtoMessage + func (sd *Service) ProtoInternal(pragma.DoNotImplement) + func (sd *Service) ProtoType(pref.ServiceDescriptor) + type ServiceL1 struct + type ServiceL2 struct + Methods Methods + Options func() pref.ProtoMessage + type Services struct + List []Service + func (p *Services) ByName(s protoreflect.Name) protoreflect.ServiceDescriptor + func (p *Services) Format(s fmt.State, r rune) + func (p *Services) Get(i int) protoreflect.ServiceDescriptor + func (p *Services) Len() int + func (p *Services) ProtoInternal(pragma.DoNotImplement) + type SourceLocations struct + File pref.FileDescriptor + List []pref.SourceLocation + func (p *SourceLocations) ByDescriptor(desc pref.Descriptor) pref.SourceLocation + func (p *SourceLocations) ByPath(path pref.SourcePath) pref.SourceLocation + func (p *SourceLocations) Get(i int) pref.SourceLocation + func (p *SourceLocations) Len() int + func (p *SourceLocations) ProtoInternal(pragma.DoNotImplement)