fieldnum

package
v2.0.0-...-d24bc72 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 20, 2019 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Overview

Package fieldnum contains constants for field numbers of fields in messages declared in descriptor.proto and any of the well-known types.

Index

Constants

View Source
const (
	Any_TypeUrl = 1 // optional string
	Any_Value   = 2 // optional bytes
)

Field numbers for google.protobuf.Any.

View Source
const (
	Api_Name          = 1 // optional string
	Api_Methods       = 2 // repeated google.protobuf.Method
	Api_Options       = 3 // repeated google.protobuf.Option
	Api_Version       = 4 // optional string
	Api_SourceContext = 5 // optional google.protobuf.SourceContext
	Api_Mixins        = 6 // repeated google.protobuf.Mixin
	Api_Syntax        = 7 // optional google.protobuf.Syntax
)

Field numbers for google.protobuf.Api.

View Source
const (
	Method_Name              = 1 // optional string
	Method_RequestTypeUrl    = 2 // optional string
	Method_RequestStreaming  = 3 // optional bool
	Method_ResponseTypeUrl   = 4 // optional string
	Method_ResponseStreaming = 5 // optional bool
	Method_Options           = 6 // repeated google.protobuf.Option
	Method_Syntax            = 7 // optional google.protobuf.Syntax
)

Field numbers for google.protobuf.Method.

View Source
const (
	Mixin_Name = 1 // optional string
	Mixin_Root = 2 // optional string
)

Field numbers for google.protobuf.Mixin.

View Source
const (
	FileDescriptorProto_Name             = 1  // optional string
	FileDescriptorProto_Package          = 2  // optional string
	FileDescriptorProto_Dependency       = 3  // repeated string
	FileDescriptorProto_PublicDependency = 10 // repeated int32
	FileDescriptorProto_WeakDependency   = 11 // repeated int32
	FileDescriptorProto_MessageType      = 4  // repeated google.protobuf.DescriptorProto
	FileDescriptorProto_EnumType         = 5  // repeated google.protobuf.EnumDescriptorProto
	FileDescriptorProto_Service          = 6  // repeated google.protobuf.ServiceDescriptorProto
	FileDescriptorProto_Extension        = 7  // repeated google.protobuf.FieldDescriptorProto
	FileDescriptorProto_Options          = 8  // optional google.protobuf.FileOptions
	FileDescriptorProto_SourceCodeInfo   = 9  // optional google.protobuf.SourceCodeInfo
	FileDescriptorProto_Syntax           = 12 // optional string
)

Field numbers for google.protobuf.FileDescriptorProto.

View Source
const (
	DescriptorProto_Name           = 1  // optional string
	DescriptorProto_Field          = 2  // repeated google.protobuf.FieldDescriptorProto
	DescriptorProto_Extension      = 6  // repeated google.protobuf.FieldDescriptorProto
	DescriptorProto_NestedType     = 3  // repeated google.protobuf.DescriptorProto
	DescriptorProto_EnumType       = 4  // repeated google.protobuf.EnumDescriptorProto
	DescriptorProto_ExtensionRange = 5  // repeated google.protobuf.DescriptorProto.ExtensionRange
	DescriptorProto_OneofDecl      = 8  // repeated google.protobuf.OneofDescriptorProto
	DescriptorProto_Options        = 7  // optional google.protobuf.MessageOptions
	DescriptorProto_ReservedRange  = 9  // repeated google.protobuf.DescriptorProto.ReservedRange
	DescriptorProto_ReservedName   = 10 // repeated string
)

Field numbers for google.protobuf.DescriptorProto.

View Source
const (
	DescriptorProto_ExtensionRange_Start   = 1 // optional int32
	DescriptorProto_ExtensionRange_End     = 2 // optional int32
	DescriptorProto_ExtensionRange_Options = 3 // optional google.protobuf.ExtensionRangeOptions
)

Field numbers for google.protobuf.DescriptorProto.ExtensionRange.

View Source
const (
	DescriptorProto_ReservedRange_Start = 1 // optional int32
	DescriptorProto_ReservedRange_End   = 2 // optional int32
)

Field numbers for google.protobuf.DescriptorProto.ReservedRange.

View Source
const (
	FieldDescriptorProto_Name         = 1  // optional string
	FieldDescriptorProto_Number       = 3  // optional int32
	FieldDescriptorProto_Label        = 4  // optional google.protobuf.FieldDescriptorProto.Label
	FieldDescriptorProto_Type         = 5  // optional google.protobuf.FieldDescriptorProto.Type
	FieldDescriptorProto_TypeName     = 6  // optional string
	FieldDescriptorProto_Extendee     = 2  // optional string
	FieldDescriptorProto_DefaultValue = 7  // optional string
	FieldDescriptorProto_OneofIndex   = 9  // optional int32
	FieldDescriptorProto_JsonName     = 10 // optional string
	FieldDescriptorProto_Options      = 8  // optional google.protobuf.FieldOptions
)

Field numbers for google.protobuf.FieldDescriptorProto.

View Source
const (
	OneofDescriptorProto_Name    = 1 // optional string
	OneofDescriptorProto_Options = 2 // optional google.protobuf.OneofOptions
)

Field numbers for google.protobuf.OneofDescriptorProto.

View Source
const (
	EnumDescriptorProto_Name          = 1 // optional string
	EnumDescriptorProto_Value         = 2 // repeated google.protobuf.EnumValueDescriptorProto
	EnumDescriptorProto_Options       = 3 // optional google.protobuf.EnumOptions
	EnumDescriptorProto_ReservedRange = 4 // repeated google.protobuf.EnumDescriptorProto.EnumReservedRange
	EnumDescriptorProto_ReservedName  = 5 // repeated string
)

Field numbers for google.protobuf.EnumDescriptorProto.

View Source
const (
	EnumDescriptorProto_EnumReservedRange_Start = 1 // optional int32
	EnumDescriptorProto_EnumReservedRange_End   = 2 // optional int32
)

Field numbers for google.protobuf.EnumDescriptorProto.EnumReservedRange.

View Source
const (
	EnumValueDescriptorProto_Name    = 1 // optional string
	EnumValueDescriptorProto_Number  = 2 // optional int32
	EnumValueDescriptorProto_Options = 3 // optional google.protobuf.EnumValueOptions
)

Field numbers for google.protobuf.EnumValueDescriptorProto.

View Source
const (
	ServiceDescriptorProto_Name    = 1 // optional string
	ServiceDescriptorProto_Method  = 2 // repeated google.protobuf.MethodDescriptorProto
	ServiceDescriptorProto_Options = 3 // optional google.protobuf.ServiceOptions
)

Field numbers for google.protobuf.ServiceDescriptorProto.

View Source
const (
	MethodDescriptorProto_Name            = 1 // optional string
	MethodDescriptorProto_InputType       = 2 // optional string
	MethodDescriptorProto_OutputType      = 3 // optional string
	MethodDescriptorProto_Options         = 4 // optional google.protobuf.MethodOptions
	MethodDescriptorProto_ClientStreaming = 5 // optional bool
	MethodDescriptorProto_ServerStreaming = 6 // optional bool
)

Field numbers for google.protobuf.MethodDescriptorProto.

View Source
const (
	FileOptions_JavaPackage               = 1   // optional string
	FileOptions_JavaOuterClassname        = 8   // optional string
	FileOptions_JavaMultipleFiles         = 10  // optional bool
	FileOptions_JavaGenerateEqualsAndHash = 20  // optional bool
	FileOptions_JavaStringCheckUtf8       = 27  // optional bool
	FileOptions_OptimizeFor               = 9   // optional google.protobuf.FileOptions.OptimizeMode
	FileOptions_GoPackage                 = 11  // optional string
	FileOptions_CcGenericServices         = 16  // optional bool
	FileOptions_JavaGenericServices       = 17  // optional bool
	FileOptions_PyGenericServices         = 18  // optional bool
	FileOptions_PhpGenericServices        = 42  // optional bool
	FileOptions_Deprecated                = 23  // optional bool
	FileOptions_CcEnableArenas            = 31  // optional bool
	FileOptions_ObjcClassPrefix           = 36  // optional string
	FileOptions_CsharpNamespace           = 37  // optional string
	FileOptions_SwiftPrefix               = 39  // optional string
	FileOptions_PhpClassPrefix            = 40  // optional string
	FileOptions_PhpNamespace              = 41  // optional string
	FileOptions_PhpMetadataNamespace      = 44  // optional string
	FileOptions_RubyPackage               = 45  // optional string
	FileOptions_UninterpretedOption       = 999 // repeated google.protobuf.UninterpretedOption
)

Field numbers for google.protobuf.FileOptions.

View Source
const (
	MessageOptions_MessageSetWireFormat         = 1   // optional bool
	MessageOptions_NoStandardDescriptorAccessor = 2   // optional bool
	MessageOptions_Deprecated                   = 3   // optional bool
	MessageOptions_MapEntry                     = 7   // optional bool
	MessageOptions_UninterpretedOption          = 999 // repeated google.protobuf.UninterpretedOption
)

Field numbers for google.protobuf.MessageOptions.

View Source
const (
	FieldOptions_Ctype               = 1   // optional google.protobuf.FieldOptions.CType
	FieldOptions_Packed              = 2   // optional bool
	FieldOptions_Jstype              = 6   // optional google.protobuf.FieldOptions.JSType
	FieldOptions_Lazy                = 5   // optional bool
	FieldOptions_Deprecated          = 3   // optional bool
	FieldOptions_Weak                = 10  // optional bool
	FieldOptions_UninterpretedOption = 999 // repeated google.protobuf.UninterpretedOption
)

Field numbers for google.protobuf.FieldOptions.

View Source
const (
	EnumOptions_AllowAlias          = 2   // optional bool
	EnumOptions_Deprecated          = 3   // optional bool
	EnumOptions_UninterpretedOption = 999 // repeated google.protobuf.UninterpretedOption
)

Field numbers for google.protobuf.EnumOptions.

View Source
const (
	EnumValueOptions_Deprecated          = 1   // optional bool
	EnumValueOptions_UninterpretedOption = 999 // repeated google.protobuf.UninterpretedOption
)

Field numbers for google.protobuf.EnumValueOptions.

View Source
const (
	ServiceOptions_Deprecated          = 33  // optional bool
	ServiceOptions_UninterpretedOption = 999 // repeated google.protobuf.UninterpretedOption
)

Field numbers for google.protobuf.ServiceOptions.

View Source
const (
	MethodOptions_Deprecated          = 33  // optional bool
	MethodOptions_IdempotencyLevel    = 34  // optional google.protobuf.MethodOptions.IdempotencyLevel
	MethodOptions_UninterpretedOption = 999 // repeated google.protobuf.UninterpretedOption
)

Field numbers for google.protobuf.MethodOptions.

View Source
const (
	UninterpretedOption_Name             = 2 // repeated google.protobuf.UninterpretedOption.NamePart
	UninterpretedOption_IdentifierValue  = 3 // optional string
	UninterpretedOption_PositiveIntValue = 4 // optional uint64
	UninterpretedOption_NegativeIntValue = 5 // optional int64
	UninterpretedOption_DoubleValue      = 6 // optional double
	UninterpretedOption_StringValue      = 7 // optional bytes
	UninterpretedOption_AggregateValue   = 8 // optional string
)

Field numbers for google.protobuf.UninterpretedOption.

View Source
const (
	UninterpretedOption_NamePart_NamePart    = 1 // required string
	UninterpretedOption_NamePart_IsExtension = 2 // required bool
)

Field numbers for google.protobuf.UninterpretedOption.NamePart.

View Source
const (
	SourceCodeInfo_Location_Path                    = 1 // repeated int32
	SourceCodeInfo_Location_Span                    = 2 // repeated int32
	SourceCodeInfo_Location_LeadingComments         = 3 // optional string
	SourceCodeInfo_Location_TrailingComments        = 4 // optional string
	SourceCodeInfo_Location_LeadingDetachedComments = 6 // repeated string
)

Field numbers for google.protobuf.SourceCodeInfo.Location.

View Source
const (
	GeneratedCodeInfo_Annotation_Path       = 1 // repeated int32
	GeneratedCodeInfo_Annotation_SourceFile = 2 // optional string
	GeneratedCodeInfo_Annotation_Begin      = 3 // optional int32
	GeneratedCodeInfo_Annotation_End        = 4 // optional int32
)

Field numbers for google.protobuf.GeneratedCodeInfo.Annotation.

View Source
const (
	Duration_Seconds = 1 // optional int64
	Duration_Nanos   = 2 // optional int32
)

Field numbers for google.protobuf.Duration.

View Source
const (
	Struct_FieldsEntry_Key   = 1 // optional string
	Struct_FieldsEntry_Value = 2 // optional google.protobuf.Value
)

Field numbers for google.protobuf.Struct.FieldsEntry.

View Source
const (
	Value_NullValue   = 1 // optional google.protobuf.NullValue
	Value_NumberValue = 2 // optional double
	Value_StringValue = 3 // optional string
	Value_BoolValue   = 4 // optional bool
	Value_StructValue = 5 // optional google.protobuf.Struct
	Value_ListValue   = 6 // optional google.protobuf.ListValue
)

Field numbers for google.protobuf.Value.

View Source
const (
	Timestamp_Seconds = 1 // optional int64
	Timestamp_Nanos   = 2 // optional int32
)

Field numbers for google.protobuf.Timestamp.

View Source
const (
	Type_Name          = 1 // optional string
	Type_Fields        = 2 // repeated google.protobuf.Field
	Type_Oneofs        = 3 // repeated string
	Type_Options       = 4 // repeated google.protobuf.Option
	Type_SourceContext = 5 // optional google.protobuf.SourceContext
	Type_Syntax        = 6 // optional google.protobuf.Syntax
)

Field numbers for google.protobuf.Type.

View Source
const (
	Field_Kind         = 1  // optional google.protobuf.Field.Kind
	Field_Cardinality  = 2  // optional google.protobuf.Field.Cardinality
	Field_Number       = 3  // optional int32
	Field_Name         = 4  // optional string
	Field_TypeUrl      = 6  // optional string
	Field_OneofIndex   = 7  // optional int32
	Field_Packed       = 8  // optional bool
	Field_Options      = 9  // repeated google.protobuf.Option
	Field_JsonName     = 10 // optional string
	Field_DefaultValue = 11 // optional string
)

Field numbers for google.protobuf.Field.

View Source
const (
	Enum_Name          = 1 // optional string
	Enum_Enumvalue     = 2 // repeated google.protobuf.EnumValue
	Enum_Options       = 3 // repeated google.protobuf.Option
	Enum_SourceContext = 4 // optional google.protobuf.SourceContext
	Enum_Syntax        = 5 // optional google.protobuf.Syntax
)

Field numbers for google.protobuf.Enum.

View Source
const (
	EnumValue_Name    = 1 // optional string
	EnumValue_Number  = 2 // optional int32
	EnumValue_Options = 3 // repeated google.protobuf.Option
)

Field numbers for google.protobuf.EnumValue.

View Source
const (
	Option_Name  = 1 // optional string
	Option_Value = 2 // optional google.protobuf.Any
)

Field numbers for google.protobuf.Option.

View Source
const (
	BoolValue_Value = 1 // optional bool
)

Field numbers for google.protobuf.BoolValue.

View Source
const (
	BytesValue_Value = 1 // optional bytes
)

Field numbers for google.protobuf.BytesValue.

View Source
const (
	DoubleValue_Value = 1 // optional double
)

Field numbers for google.protobuf.DoubleValue.

View Source
const (
	ExtensionRangeOptions_UninterpretedOption = 999 // repeated google.protobuf.UninterpretedOption
)

Field numbers for google.protobuf.ExtensionRangeOptions.

View Source
const (
	FieldMask_Paths = 1 // repeated string
)

Field numbers for google.protobuf.FieldMask.

View Source
const (
	FileDescriptorSet_File = 1 // repeated google.protobuf.FileDescriptorProto
)

Field numbers for google.protobuf.FileDescriptorSet.

View Source
const (
	FloatValue_Value = 1 // optional float
)

Field numbers for google.protobuf.FloatValue.

View Source
const (
	GeneratedCodeInfo_Annotation = 1 // repeated google.protobuf.GeneratedCodeInfo.Annotation
)

Field numbers for google.protobuf.GeneratedCodeInfo.

View Source
const (
	Int32Value_Value = 1 // optional int32
)

Field numbers for google.protobuf.Int32Value.

View Source
const (
	Int64Value_Value = 1 // optional int64
)

Field numbers for google.protobuf.Int64Value.

View Source
const (
	ListValue_Values = 1 // repeated google.protobuf.Value
)

Field numbers for google.protobuf.ListValue.

View Source
const (
	OneofOptions_UninterpretedOption = 999 // repeated google.protobuf.UninterpretedOption
)

Field numbers for google.protobuf.OneofOptions.

View Source
const (
	SourceCodeInfo_Location = 1 // repeated google.protobuf.SourceCodeInfo.Location
)

Field numbers for google.protobuf.SourceCodeInfo.

View Source
const (
	SourceContext_FileName = 1 // optional string
)

Field numbers for google.protobuf.SourceContext.

View Source
const (
	StringValue_Value = 1 // optional string
)

Field numbers for google.protobuf.StringValue.

View Source
const (
	Struct_Fields = 1 // repeated google.protobuf.Struct.FieldsEntry
)

Field numbers for google.protobuf.Struct.

View Source
const (
	UInt32Value_Value = 1 // optional uint32
)

Field numbers for google.protobuf.UInt32Value.

View Source
const (
	UInt64Value_Value = 1 // optional uint64
)

Field numbers for google.protobuf.UInt64Value.

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL