Versions in this module Expand all Collapse all v1 v1.0.0 Jun 1, 2021 Changes in this version + type Cardinality cardinality + const Optional + const Repeated + const Required + func (c Cardinality) GoString() string + func (c Cardinality) IsValid() bool + func (c Cardinality) String() string + type Descriptor interface + FullName func() FullName + Index func() int + IsPlaceholder func() bool + Name func() Name + Options func() ProtoMessage + Parent func() Descriptor + ParentFile func() FileDescriptor + Syntax func() Syntax + type Enum interface + Descriptor func() EnumDescriptor + Number func() EnumNumber + Type func() EnumType + type EnumDescriptor interface + ReservedNames func() Names + ReservedRanges func() EnumRanges + Values func() EnumValueDescriptors + type EnumDescriptors interface + ByName func(s Name) EnumDescriptor + Get func(i int) EnumDescriptor + Len func() int + type EnumNumber int32 + type EnumRanges interface + Get func(i int) [2]EnumNumber + Has func(n EnumNumber) bool + Len func() int + type EnumType interface + Descriptor func() EnumDescriptor + New func(n EnumNumber) Enum + type EnumValueDescriptor interface + Number func() EnumNumber + type EnumValueDescriptors interface + ByName func(s Name) EnumValueDescriptor + ByNumber func(n EnumNumber) EnumValueDescriptor + Get func(i int) EnumValueDescriptor + Len func() int + type ExtensionDescriptor = FieldDescriptor + type ExtensionDescriptors interface + ByName func(s Name) ExtensionDescriptor + Get func(i int) ExtensionDescriptor + Len func() int + type ExtensionType interface + InterfaceOf func(Value) interface{} + IsValidInterface func(interface{}) bool + IsValidValue func(Value) bool + New func() Value + TypeDescriptor func() ExtensionTypeDescriptor + ValueOf func(interface{}) Value + Zero func() Value + type ExtensionTypeDescriptor interface + Descriptor func() ExtensionDescriptor + Type func() ExtensionType + type FieldDescriptor interface + Cardinality func() Cardinality + ContainingMessage func() MessageDescriptor + ContainingOneof func() OneofDescriptor + Default func() Value + DefaultEnumValue func() EnumValueDescriptor + Enum func() EnumDescriptor + HasDefault func() bool + HasJSONName func() bool + HasOptionalKeyword func() bool + HasPresence func() bool + IsExtension func() bool + IsList func() bool + IsMap func() bool + IsPacked func() bool + IsWeak func() bool + JSONName func() string + Kind func() Kind + MapKey func() FieldDescriptor + MapValue func() FieldDescriptor + Message func() MessageDescriptor + Number func() FieldNumber + TextName func() string + type FieldDescriptors interface + ByJSONName func(s string) FieldDescriptor + ByName func(s Name) FieldDescriptor + ByNumber func(n FieldNumber) FieldDescriptor + ByTextName func(s string) FieldDescriptor + Get func(i int) FieldDescriptor + Len func() int + type FieldNumber = protowire.Number + type FieldNumbers interface + Get func(i int) FieldNumber + Has func(n FieldNumber) bool + Len func() int + type FieldRanges interface + Get func(i int) [2]FieldNumber + Has func(n FieldNumber) bool + Len func() int + type FileDescriptor interface + Enums func() EnumDescriptors + Extensions func() ExtensionDescriptors + Imports func() FileImports + Messages func() MessageDescriptors + Package func() FullName + Path func() string + Services func() ServiceDescriptors + SourceLocations func() SourceLocations + type FileImport struct + IsPublic bool + IsWeak bool + type FileImports interface + Get func(i int) FileImport + Len func() int + type FullName string + func (n FullName) Append(s Name) FullName + func (n FullName) Name() Name + func (n FullName) Parent() FullName + func (s FullName) IsValid() bool + type Kind kind + const BoolKind + const BytesKind + const DoubleKind + const EnumKind + const Fixed32Kind + const Fixed64Kind + const FloatKind + const GroupKind + const Int32Kind + const Int64Kind + const MessageKind + const Sfixed32Kind + const Sfixed64Kind + const Sint32Kind + const Sint64Kind + const StringKind + const Uint32Kind + const Uint64Kind + func (k Kind) GoString() string + func (k Kind) IsValid() bool + func (k Kind) String() string + type List interface + Append func(Value) + AppendMutable func() Value + Get func(int) Value + IsValid func() bool + Len func() int + NewElement func() Value + Set func(int, Value) + Truncate func(int) + type Map interface + Clear func(MapKey) + Get func(MapKey) Value + Has func(MapKey) bool + IsValid func() bool + Len func() int + Mutable func(MapKey) Value + NewValue func() Value + Range func(f func(MapKey, Value) bool) + Set func(MapKey, Value) + type MapKey value + func (k MapKey) Bool() bool + func (k MapKey) Int() int64 + func (k MapKey) Interface() interface{} + func (k MapKey) IsValid() bool + func (k MapKey) String() string + func (k MapKey) Uint() uint64 + func (k MapKey) Value() Value + type Message interface + Clear func(FieldDescriptor) + Descriptor func() MessageDescriptor + Get func(FieldDescriptor) Value + GetUnknown func() RawFields + Has func(FieldDescriptor) bool + Interface func() ProtoMessage + IsValid func() bool + Mutable func(FieldDescriptor) Value + New func() Message + NewField func(FieldDescriptor) Value + ProtoMethods func() *methods + Range func(f func(FieldDescriptor, Value) bool) + Set func(FieldDescriptor, Value) + SetUnknown func(RawFields) + Type func() MessageType + WhichOneof func(OneofDescriptor) FieldDescriptor + type MessageDescriptor interface + Enums func() EnumDescriptors + ExtensionRangeOptions func(i int) ProtoMessage + ExtensionRanges func() FieldRanges + Extensions func() ExtensionDescriptors + Fields func() FieldDescriptors + IsMapEntry func() bool + Messages func() MessageDescriptors + Oneofs func() OneofDescriptors + RequiredNumbers func() FieldNumbers + ReservedNames func() Names + ReservedRanges func() FieldRanges + type MessageDescriptors interface + ByName func(s Name) MessageDescriptor + Get func(i int) MessageDescriptor + Len func() int + type MessageFieldTypes interface + Enum func(i int) EnumType + Message func(i int) MessageType + type MessageType interface + Descriptor func() MessageDescriptor + New func() Message + Zero func() Message + type MethodDescriptor interface + Input func() MessageDescriptor + IsStreamingClient func() bool + IsStreamingServer func() bool + Output func() MessageDescriptor + type MethodDescriptors interface + ByName func(s Name) MethodDescriptor + Get func(i int) MethodDescriptor + Len func() int + type Name string + func (s Name) IsValid() bool + type Names interface + Get func(i int) Name + Has func(s Name) bool + Len func() int + type OneofDescriptor interface + Fields func() FieldDescriptors + IsSynthetic func() bool + type OneofDescriptors interface + ByName func(s Name) OneofDescriptor + Get func(i int) OneofDescriptor + Len func() int + type ProtoMessage interface + ProtoReflect func() Message + type RawFields []byte + func (b RawFields) IsValid() bool + type ServiceDescriptor interface + Methods func() MethodDescriptors + type ServiceDescriptors interface + ByName func(s Name) ServiceDescriptor + Get func(i int) ServiceDescriptor + Len func() int + type SourceLocation struct + EndColumn int + EndLine int + LeadingComments string + LeadingDetachedComments []string + Next int + Path SourcePath + StartColumn int + StartLine int + TrailingComments string + type SourceLocations interface + ByDescriptor func(desc Descriptor) SourceLocation + ByPath func(path SourcePath) SourceLocation + Get func(int) SourceLocation + Len func() int + type SourcePath []int32 + func (p SourcePath) String() string + func (p1 SourcePath) Equal(p2 SourcePath) bool + type Syntax syntax + const Proto2 + const Proto3 + func (s Syntax) GoString() string + func (s Syntax) IsValid() bool + func (s Syntax) String() string + type Value value + func ValueOf(v interface{}) Value + func ValueOfBool(v bool) Value + func ValueOfBytes(v []byte) Value + func ValueOfEnum(v EnumNumber) Value + func ValueOfFloat32(v float32) Value + func ValueOfFloat64(v float64) Value + func ValueOfInt32(v int32) Value + func ValueOfInt64(v int64) Value + func ValueOfList(v List) Value + func ValueOfMap(v Map) Value + func ValueOfMessage(v Message) Value + func ValueOfString(v string) Value + func ValueOfUint32(v uint32) Value + func ValueOfUint64(v uint64) Value + func (v Value) Bool() bool + func (v Value) Bytes() []byte + func (v Value) Enum() EnumNumber + func (v Value) Float() float64 + func (v Value) Int() int64 + func (v Value) Interface() interface{} + func (v Value) IsValid() bool + func (v Value) List() List + func (v Value) Map() Map + func (v Value) MapKey() MapKey + func (v Value) Message() Message + func (v Value) String() string + func (v Value) Uint() uint64