Back to godoc.org

Package descriptorpb

v1.25.0
Latest Go to latest

The latest major version is .

Published: Jun 22, 2020 | License: BSD-3-Clause | Module: google.golang.org/protobuf

Index

Constants

const (
	Default_MethodDescriptorProto_ClientStreaming = bool(false)
	Default_MethodDescriptorProto_ServerStreaming = bool(false)
)

Default values for MethodDescriptorProto fields.

const (
	Default_FileOptions_JavaMultipleFiles   = bool(false)
	Default_FileOptions_JavaStringCheckUtf8 = bool(false)
	Default_FileOptions_OptimizeFor         = FileOptions_SPEED
	Default_FileOptions_CcGenericServices   = bool(false)
	Default_FileOptions_JavaGenericServices = bool(false)
	Default_FileOptions_PyGenericServices   = bool(false)
	Default_FileOptions_PhpGenericServices  = bool(false)
	Default_FileOptions_Deprecated          = bool(false)
	Default_FileOptions_CcEnableArenas      = bool(true)
)

Default values for FileOptions fields.

const (
	Default_MessageOptions_MessageSetWireFormat         = bool(false)
	Default_MessageOptions_NoStandardDescriptorAccessor = bool(false)
	Default_MessageOptions_Deprecated                   = bool(false)
)

Default values for MessageOptions fields.

const (
	Default_FieldOptions_Ctype      = FieldOptions_STRING
	Default_FieldOptions_Jstype     = FieldOptions_JS_NORMAL
	Default_FieldOptions_Lazy       = bool(false)
	Default_FieldOptions_Deprecated = bool(false)
	Default_FieldOptions_Weak       = bool(false)
)

Default values for FieldOptions fields.

const (
	Default_MethodOptions_Deprecated       = bool(false)
	Default_MethodOptions_IdempotencyLevel = MethodOptions_IDEMPOTENCY_UNKNOWN
)

Default values for MethodOptions fields.

const (
	Default_EnumOptions_Deprecated = bool(false)
)

Default values for EnumOptions fields.

const (
	Default_EnumValueOptions_Deprecated = bool(false)
)

Default values for EnumValueOptions fields.

const (
	Default_ServiceOptions_Deprecated = bool(false)
)

Default values for ServiceOptions fields.

Variables

var (
	FieldDescriptorProto_Type_name = map[int32]string{
		1:  "TYPE_DOUBLE",
		2:  "TYPE_FLOAT",
		3:  "TYPE_INT64",
		4:  "TYPE_UINT64",
		5:  "TYPE_INT32",
		6:  "TYPE_FIXED64",
		7:  "TYPE_FIXED32",
		8:  "TYPE_BOOL",
		9:  "TYPE_STRING",
		10: "TYPE_GROUP",
		11: "TYPE_MESSAGE",
		12: "TYPE_BYTES",
		13: "TYPE_UINT32",
		14: "TYPE_ENUM",
		15: "TYPE_SFIXED32",
		16: "TYPE_SFIXED64",
		17: "TYPE_SINT32",
		18: "TYPE_SINT64",
	}
	FieldDescriptorProto_Type_value = map[string]int32{
		"TYPE_DOUBLE":   1,
		"TYPE_FLOAT":    2,
		"TYPE_INT64":    3,
		"TYPE_UINT64":   4,
		"TYPE_INT32":    5,
		"TYPE_FIXED64":  6,
		"TYPE_FIXED32":  7,
		"TYPE_BOOL":     8,
		"TYPE_STRING":   9,
		"TYPE_GROUP":    10,
		"TYPE_MESSAGE":  11,
		"TYPE_BYTES":    12,
		"TYPE_UINT32":   13,
		"TYPE_ENUM":     14,
		"TYPE_SFIXED32": 15,
		"TYPE_SFIXED64": 16,
		"TYPE_SINT32":   17,
		"TYPE_SINT64":   18,
	}
)

Enum value maps for FieldDescriptorProto_Type.

var (
	FieldDescriptorProto_Label_name = map[int32]string{
		1: "LABEL_OPTIONAL",
		2: "LABEL_REQUIRED",
		3: "LABEL_REPEATED",
	}
	FieldDescriptorProto_Label_value = map[string]int32{
		"LABEL_OPTIONAL": 1,
		"LABEL_REQUIRED": 2,
		"LABEL_REPEATED": 3,
	}
)

Enum value maps for FieldDescriptorProto_Label.

var (
	FileOptions_OptimizeMode_name = map[int32]string{
		1: "SPEED",
		2: "CODE_SIZE",
		3: "LITE_RUNTIME",
	}
	FileOptions_OptimizeMode_value = map[string]int32{
		"SPEED":        1,
		"CODE_SIZE":    2,
		"LITE_RUNTIME": 3,
	}
)

Enum value maps for FileOptions_OptimizeMode.

var (
	FieldOptions_CType_name = map[int32]string{
		0: "STRING",
		1: "CORD",
		2: "STRING_PIECE",
	}
	FieldOptions_CType_value = map[string]int32{
		"STRING":       0,
		"CORD":         1,
		"STRING_PIECE": 2,
	}
)

Enum value maps for FieldOptions_CType.

var (
	FieldOptions_JSType_name = map[int32]string{
		0: "JS_NORMAL",
		1: "JS_STRING",
		2: "JS_NUMBER",
	}
	FieldOptions_JSType_value = map[string]int32{
		"JS_NORMAL": 0,
		"JS_STRING": 1,
		"JS_NUMBER": 2,
	}
)

Enum value maps for FieldOptions_JSType.

var (
	MethodOptions_IdempotencyLevel_name = map[int32]string{
		0: "IDEMPOTENCY_UNKNOWN",
		1: "NO_SIDE_EFFECTS",
		2: "IDEMPOTENT",
	}
	MethodOptions_IdempotencyLevel_value = map[string]int32{
		"IDEMPOTENCY_UNKNOWN": 0,
		"NO_SIDE_EFFECTS":     1,
		"IDEMPOTENT":          2,
	}
)

Enum value maps for MethodOptions_IdempotencyLevel.

var File_google_protobuf_descriptor_proto protoreflect.FileDescriptor

type DescriptorProto

type DescriptorProto struct {
	Name           *string                           `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	Field          []*FieldDescriptorProto           `protobuf:"bytes,2,rep,name=field" json:"field,omitempty"`
	Extension      []*FieldDescriptorProto           `protobuf:"bytes,6,rep,name=extension" json:"extension,omitempty"`
	NestedType     []*DescriptorProto                `protobuf:"bytes,3,rep,name=nested_type,json=nestedType" json:"nested_type,omitempty"`
	EnumType       []*EnumDescriptorProto            `protobuf:"bytes,4,rep,name=enum_type,json=enumType" json:"enum_type,omitempty"`
	ExtensionRange []*DescriptorProto_ExtensionRange `protobuf:"bytes,5,rep,name=extension_range,json=extensionRange" json:"extension_range,omitempty"`
	OneofDecl      []*OneofDescriptorProto           `protobuf:"bytes,8,rep,name=oneof_decl,json=oneofDecl" json:"oneof_decl,omitempty"`
	Options        *MessageOptions                   `protobuf:"bytes,7,opt,name=options" json:"options,omitempty"`
	ReservedRange  []*DescriptorProto_ReservedRange  `protobuf:"bytes,9,rep,name=reserved_range,json=reservedRange" json:"reserved_range,omitempty"`
	// Reserved field names, which may not be used by fields in the same message.
	// A given name may only be reserved once.
	ReservedName []string `protobuf:"bytes,10,rep,name=reserved_name,json=reservedName" json:"reserved_name,omitempty"`
	// contains filtered or unexported fields
}

Describes a message type.

func (*DescriptorProto) Descriptor

func (*DescriptorProto) Descriptor() ([]byte, []int)

Deprecated: Use DescriptorProto.ProtoReflect.Descriptor instead.

func (*DescriptorProto) GetEnumType

func (x *DescriptorProto) GetEnumType() []*EnumDescriptorProto

func (*DescriptorProto) GetExtension

func (x *DescriptorProto) GetExtension() []*FieldDescriptorProto

func (*DescriptorProto) GetExtensionRange

func (x *DescriptorProto) GetExtensionRange() []*DescriptorProto_ExtensionRange

func (*DescriptorProto) GetField

func (x *DescriptorProto) GetField() []*FieldDescriptorProto

func (*DescriptorProto) GetName

func (x *DescriptorProto) GetName() string

func (*DescriptorProto) GetNestedType

func (x *DescriptorProto) GetNestedType() []*DescriptorProto

func (*DescriptorProto) GetOneofDecl

func (x *DescriptorProto) GetOneofDecl() []*OneofDescriptorProto

func (*DescriptorProto) GetOptions

func (x *DescriptorProto) GetOptions() *MessageOptions

func (*DescriptorProto) GetReservedName

func (x *DescriptorProto) GetReservedName() []string

func (*DescriptorProto) GetReservedRange

func (x *DescriptorProto) GetReservedRange() []*DescriptorProto_ReservedRange

func (*DescriptorProto) ProtoMessage

func (*DescriptorProto) ProtoMessage()

func (*DescriptorProto) ProtoReflect

func (x *DescriptorProto) ProtoReflect() protoreflect.Message

func (*DescriptorProto) Reset

func (x *DescriptorProto) Reset()

func (*DescriptorProto) String

func (x *DescriptorProto) String() string

type DescriptorProto_ExtensionRange

type DescriptorProto_ExtensionRange struct {
	Start   *int32                 `protobuf:"varint,1,opt,name=start" json:"start,omitempty"` // Inclusive.
	End     *int32                 `protobuf:"varint,2,opt,name=end" json:"end,omitempty"`     // Exclusive.
	Options *ExtensionRangeOptions `protobuf:"bytes,3,opt,name=options" json:"options,omitempty"`
	// contains filtered or unexported fields
}

func (*DescriptorProto_ExtensionRange) Descriptor

func (*DescriptorProto_ExtensionRange) Descriptor() ([]byte, []int)

Deprecated: Use DescriptorProto_ExtensionRange.ProtoReflect.Descriptor instead.

func (*DescriptorProto_ExtensionRange) GetEnd

func (x *DescriptorProto_ExtensionRange) GetEnd() int32

func (*DescriptorProto_ExtensionRange) GetOptions

func (x *DescriptorProto_ExtensionRange) GetOptions() *ExtensionRangeOptions

func (*DescriptorProto_ExtensionRange) GetStart

func (x *DescriptorProto_ExtensionRange) GetStart() int32

func (*DescriptorProto_ExtensionRange) ProtoMessage

func (*DescriptorProto_ExtensionRange) ProtoMessage()

func (*DescriptorProto_ExtensionRange) ProtoReflect

func (x *DescriptorProto_ExtensionRange) ProtoReflect() protoreflect.Message

func (*DescriptorProto_ExtensionRange) Reset

func (x *DescriptorProto_ExtensionRange) Reset()

func (*DescriptorProto_ExtensionRange) String

func (x *DescriptorProto_ExtensionRange) String() string

type DescriptorProto_ReservedRange

type DescriptorProto_ReservedRange struct {
	Start *int32 `protobuf:"varint,1,opt,name=start" json:"start,omitempty"` // Inclusive.
	End   *int32 `protobuf:"varint,2,opt,name=end" json:"end,omitempty"`     // Exclusive.
	// contains filtered or unexported fields
}

Range of reserved tag numbers. Reserved tag numbers may not be used by fields or extension ranges in the same message. Reserved ranges may not overlap.

func (*DescriptorProto_ReservedRange) Descriptor

func (*DescriptorProto_ReservedRange) Descriptor() ([]byte, []int)

Deprecated: Use DescriptorProto_ReservedRange.ProtoReflect.Descriptor instead.

func (*DescriptorProto_ReservedRange) GetEnd

func (x *DescriptorProto_ReservedRange) GetEnd() int32

func (*DescriptorProto_ReservedRange) GetStart

func (x *DescriptorProto_ReservedRange) GetStart() int32

func (*DescriptorProto_ReservedRange) ProtoMessage

func (*DescriptorProto_ReservedRange) ProtoMessage()

func (*DescriptorProto_ReservedRange) ProtoReflect

func (x *DescriptorProto_ReservedRange) ProtoReflect() protoreflect.Message

func (*DescriptorProto_ReservedRange) Reset

func (x *DescriptorProto_ReservedRange) Reset()

func (*DescriptorProto_ReservedRange) String

func (x *DescriptorProto_ReservedRange) String() string

type EnumDescriptorProto

type EnumDescriptorProto struct {
	Name    *string                     `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	Value   []*EnumValueDescriptorProto `protobuf:"bytes,2,rep,name=value" json:"value,omitempty"`
	Options *EnumOptions                `protobuf:"bytes,3,opt,name=options" json:"options,omitempty"`
	// Range of reserved numeric values. Reserved numeric values may not be used
	// by enum values in the same enum declaration. Reserved ranges may not
	// overlap.
	ReservedRange []*EnumDescriptorProto_EnumReservedRange `protobuf:"bytes,4,rep,name=reserved_range,json=reservedRange" json:"reserved_range,omitempty"`
	// Reserved enum value names, which may not be reused. A given name may only
	// be reserved once.
	ReservedName []string `protobuf:"bytes,5,rep,name=reserved_name,json=reservedName" json:"reserved_name,omitempty"`
	// contains filtered or unexported fields
}

Describes an enum type.

func (*EnumDescriptorProto) Descriptor

func (*EnumDescriptorProto) Descriptor() ([]byte, []int)

Deprecated: Use EnumDescriptorProto.ProtoReflect.Descriptor instead.

func (*EnumDescriptorProto) GetName

func (x *EnumDescriptorProto) GetName() string

func (*EnumDescriptorProto) GetOptions

func (x *EnumDescriptorProto) GetOptions() *EnumOptions

func (*EnumDescriptorProto) GetReservedName

func (x *EnumDescriptorProto) GetReservedName() []string

func (*EnumDescriptorProto) GetReservedRange

func (x *EnumDescriptorProto) GetReservedRange() []*EnumDescriptorProto_EnumReservedRange

func (*EnumDescriptorProto) GetValue

func (x *EnumDescriptorProto) GetValue() []*EnumValueDescriptorProto

func (*EnumDescriptorProto) ProtoMessage

func (*EnumDescriptorProto) ProtoMessage()

func (*EnumDescriptorProto) ProtoReflect

func (x *EnumDescriptorProto) ProtoReflect() protoreflect.Message

func (*EnumDescriptorProto) Reset

func (x *EnumDescriptorProto) Reset()

func (*EnumDescriptorProto) String

func (x *EnumDescriptorProto) String() string

type EnumDescriptorProto_EnumReservedRange

type EnumDescriptorProto_EnumReservedRange struct {
	Start *int32 `protobuf:"varint,1,opt,name=start" json:"start,omitempty"` // Inclusive.
	End   *int32 `protobuf:"varint,2,opt,name=end" json:"end,omitempty"`     // Inclusive.
	// contains filtered or unexported fields
}

Range of reserved numeric values. Reserved values may not be used by entries in the same enum. Reserved ranges may not overlap.

Note that this is distinct from DescriptorProto.ReservedRange in that it is inclusive such that it can appropriately represent the entire int32 domain.

func (*EnumDescriptorProto_EnumReservedRange) Descriptor

func (*EnumDescriptorProto_EnumReservedRange) Descriptor() ([]byte, []int)

Deprecated: Use EnumDescriptorProto_EnumReservedRange.ProtoReflect.Descriptor instead.

func (*EnumDescriptorProto_EnumReservedRange) GetEnd

func (x *EnumDescriptorProto_EnumReservedRange) GetEnd() int32

func (*EnumDescriptorProto_EnumReservedRange) GetStart

func (x *EnumDescriptorProto_EnumReservedRange) GetStart() int32

func (*EnumDescriptorProto_EnumReservedRange) ProtoMessage

func (*EnumDescriptorProto_EnumReservedRange) ProtoMessage()

func (*EnumDescriptorProto_EnumReservedRange) ProtoReflect

func (x *EnumDescriptorProto_EnumReservedRange) ProtoReflect() protoreflect.Message

func (*EnumDescriptorProto_EnumReservedRange) Reset

func (x *EnumDescriptorProto_EnumReservedRange) Reset()

func (*EnumDescriptorProto_EnumReservedRange) String

func (x *EnumDescriptorProto_EnumReservedRange) String() string

type EnumOptions

type EnumOptions struct {

	// Set this option to true to allow mapping different tag names to the same
	// value.
	AllowAlias *bool `protobuf:"varint,2,opt,name=allow_alias,json=allowAlias" json:"allow_alias,omitempty"`
	// Is this enum deprecated?
	// Depending on the target platform, this can emit Deprecated annotations
	// for the enum, or it will be completely ignored; in the very least, this
	// is a formalization for deprecating enums.
	Deprecated *bool `protobuf:"varint,3,opt,name=deprecated,def=0" json:"deprecated,omitempty"`
	// The parser stores options it doesn't recognize here. See above.
	UninterpretedOption []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option,json=uninterpretedOption" json:"uninterpreted_option,omitempty"`
	// contains filtered or unexported fields
}

func (*EnumOptions) Descriptor

func (*EnumOptions) Descriptor() ([]byte, []int)

Deprecated: Use EnumOptions.ProtoReflect.Descriptor instead.

func (*EnumOptions) ExtensionRangeArray

func (*EnumOptions) ExtensionRangeArray() []protoiface.ExtensionRangeV1

Deprecated: Use EnumOptions.ProtoReflect.Descriptor.ExtensionRanges instead.

func (*EnumOptions) GetAllowAlias

func (x *EnumOptions) GetAllowAlias() bool

func (*EnumOptions) GetDeprecated

func (x *EnumOptions) GetDeprecated() bool

func (*EnumOptions) GetUninterpretedOption

func (x *EnumOptions) GetUninterpretedOption() []*UninterpretedOption

func (*EnumOptions) ProtoMessage

func (*EnumOptions) ProtoMessage()

func (*EnumOptions) ProtoReflect

func (x *EnumOptions) ProtoReflect() protoreflect.Message

func (*EnumOptions) Reset

func (x *EnumOptions) Reset()

func (*EnumOptions) String

func (x *EnumOptions) String() string

type EnumValueDescriptorProto

type EnumValueDescriptorProto struct {
	Name    *string           `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	Number  *int32            `protobuf:"varint,2,opt,name=number" json:"number,omitempty"`
	Options *EnumValueOptions `protobuf:"bytes,3,opt,name=options" json:"options,omitempty"`
	// contains filtered or unexported fields
}

Describes a value within an enum.

func (*EnumValueDescriptorProto) Descriptor

func (*EnumValueDescriptorProto) Descriptor() ([]byte, []int)

Deprecated: Use EnumValueDescriptorProto.ProtoReflect.Descriptor instead.

func (*EnumValueDescriptorProto) GetName

func (x *EnumValueDescriptorProto) GetName() string

func (*EnumValueDescriptorProto) GetNumber

func (x *EnumValueDescriptorProto) GetNumber() int32

func (*EnumValueDescriptorProto) GetOptions

func (x *EnumValueDescriptorProto) GetOptions() *EnumValueOptions

func (*EnumValueDescriptorProto) ProtoMessage

func (*EnumValueDescriptorProto) ProtoMessage()

func (*EnumValueDescriptorProto) ProtoReflect

func (x *EnumValueDescriptorProto) ProtoReflect() protoreflect.Message

func (*EnumValueDescriptorProto) Reset

func (x *EnumValueDescriptorProto) Reset()

func (*EnumValueDescriptorProto) String

func (x *EnumValueDescriptorProto) String() string

type EnumValueOptions

type EnumValueOptions struct {

	// Is this enum value deprecated?
	// Depending on the target platform, this can emit Deprecated annotations
	// for the enum value, or it will be completely ignored; in the very least,
	// this is a formalization for deprecating enum values.
	Deprecated *bool `protobuf:"varint,1,opt,name=deprecated,def=0" json:"deprecated,omitempty"`
	// The parser stores options it doesn't recognize here. See above.
	UninterpretedOption []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option,json=uninterpretedOption" json:"uninterpreted_option,omitempty"`
	// contains filtered or unexported fields
}

func (*EnumValueOptions) Descriptor

func (*EnumValueOptions) Descriptor() ([]byte, []int)

Deprecated: Use EnumValueOptions.ProtoReflect.Descriptor instead.

func (*EnumValueOptions) ExtensionRangeArray

func (*EnumValueOptions) ExtensionRangeArray() []protoiface.ExtensionRangeV1

Deprecated: Use EnumValueOptions.ProtoReflect.Descriptor.ExtensionRanges instead.

func (*EnumValueOptions) GetDeprecated

func (x *EnumValueOptions) GetDeprecated() bool

func (*EnumValueOptions) GetUninterpretedOption

func (x *EnumValueOptions) GetUninterpretedOption() []*UninterpretedOption

func (*EnumValueOptions) ProtoMessage

func (*EnumValueOptions) ProtoMessage()

func (*EnumValueOptions) ProtoReflect

func (x *EnumValueOptions) ProtoReflect() protoreflect.Message

func (*EnumValueOptions) Reset

func (x *EnumValueOptions) Reset()

func (*EnumValueOptions) String

func (x *EnumValueOptions) String() string

type ExtensionRangeOptions

type ExtensionRangeOptions struct {

	// The parser stores options it doesn't recognize here. See above.
	UninterpretedOption []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option,json=uninterpretedOption" json:"uninterpreted_option,omitempty"`
	// contains filtered or unexported fields
}

func (*ExtensionRangeOptions) Descriptor

func (*ExtensionRangeOptions) Descriptor() ([]byte, []int)

Deprecated: Use ExtensionRangeOptions.ProtoReflect.Descriptor instead.

func (*ExtensionRangeOptions) ExtensionRangeArray

func (*ExtensionRangeOptions) ExtensionRangeArray() []protoiface.ExtensionRangeV1

Deprecated: Use ExtensionRangeOptions.ProtoReflect.Descriptor.ExtensionRanges instead.

func (*ExtensionRangeOptions) GetUninterpretedOption

func (x *ExtensionRangeOptions) GetUninterpretedOption() []*UninterpretedOption

func (*ExtensionRangeOptions) ProtoMessage

func (*ExtensionRangeOptions) ProtoMessage()

func (*ExtensionRangeOptions) ProtoReflect

func (x *ExtensionRangeOptions) ProtoReflect() protoreflect.Message

func (*ExtensionRangeOptions) Reset

func (x *ExtensionRangeOptions) Reset()

func (*ExtensionRangeOptions) String

func (x *ExtensionRangeOptions) String() string

type FieldDescriptorProto

type FieldDescriptorProto struct {
	Name   *string                     `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	Number *int32                      `protobuf:"varint,3,opt,name=number" json:"number,omitempty"`
	Label  *FieldDescriptorProto_Label `protobuf:"varint,4,opt,name=label,enum=google.protobuf.FieldDescriptorProto_Label" json:"label,omitempty"`
	// If type_name is set, this need not be set.  If both this and type_name
	// are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP.
	Type *FieldDescriptorProto_Type `protobuf:"varint,5,opt,name=type,enum=google.protobuf.FieldDescriptorProto_Type" json:"type,omitempty"`
	// For message and enum types, this is the name of the type.  If the name
	// starts with a '.', it is fully-qualified.  Otherwise, C++-like scoping
	// rules are used to find the type (i.e. first the nested types within this
	// message are searched, then within the parent, on up to the root
	// namespace).
	TypeName *string `protobuf:"bytes,6,opt,name=type_name,json=typeName" json:"type_name,omitempty"`
	// For extensions, this is the name of the type being extended.  It is
	// resolved in the same manner as type_name.
	Extendee *string `protobuf:"bytes,2,opt,name=extendee" json:"extendee,omitempty"`
	// For numeric types, contains the original text representation of the value.
	// For booleans, "true" or "false".
	// For strings, contains the default text contents (not escaped in any way).
	// For bytes, contains the C escaped value.  All bytes >= 128 are escaped.
	// TODO(kenton):  Base-64 encode?
	DefaultValue *string `protobuf:"bytes,7,opt,name=default_value,json=defaultValue" json:"default_value,omitempty"`
	// If set, gives the index of a oneof in the containing type's oneof_decl
	// list.  This field is a member of that oneof.
	OneofIndex *int32 `protobuf:"varint,9,opt,name=oneof_index,json=oneofIndex" json:"oneof_index,omitempty"`
	// JSON name of this field. The value is set by protocol compiler. If the
	// user has set a "json_name" option on this field, that option's value
	// will be used. Otherwise, it's deduced from the field's name by converting
	// it to camelCase.
	JsonName *string       `protobuf:"bytes,10,opt,name=json_name,json=jsonName" json:"json_name,omitempty"`
	Options  *FieldOptions `protobuf:"bytes,8,opt,name=options" json:"options,omitempty"`
	// If true, this is a proto3 "optional". When a proto3 field is optional, it
	// tracks presence regardless of field type.
	//
	// When proto3_optional is true, this field must be belong to a oneof to
	// signal to old proto3 clients that presence is tracked for this field. This
	// oneof is known as a "synthetic" oneof, and this field must be its sole
	// member (each proto3 optional field gets its own synthetic oneof). Synthetic
	// oneofs exist in the descriptor only, and do not generate any API. Synthetic
	// oneofs must be ordered after all "real" oneofs.
	//
	// For message fields, proto3_optional doesn't create any semantic change,
	// since non-repeated message fields always track presence. However it still
	// indicates the semantic detail of whether the user wrote "optional" or not.
	// This can be useful for round-tripping the .proto file. For consistency we
	// give message fields a synthetic oneof also, even though it is not required
	// to track presence. This is especially important because the parser can't
	// tell if a field is a message or an enum, so it must always create a
	// synthetic oneof.
	//
	// Proto2 optional fields do not set this flag, because they already indicate
	// optional with `LABEL_OPTIONAL`.
	Proto3Optional *bool `protobuf:"varint,17,opt,name=proto3_optional,json=proto3Optional" json:"proto3_optional,omitempty"`
	// contains filtered or unexported fields
}

Describes a field within a message.

func (*FieldDescriptorProto) Descriptor

func (*FieldDescriptorProto) Descriptor() ([]byte, []int)

Deprecated: Use FieldDescriptorProto.ProtoReflect.Descriptor instead.

func (*FieldDescriptorProto) GetDefaultValue

func (x *FieldDescriptorProto) GetDefaultValue() string

func (*FieldDescriptorProto) GetExtendee

func (x *FieldDescriptorProto) GetExtendee() string

func (*FieldDescriptorProto) GetJsonName

func (x *FieldDescriptorProto) GetJsonName() string

func (*FieldDescriptorProto) GetLabel

func (x *FieldDescriptorProto) GetLabel() FieldDescriptorProto_Label

func (*FieldDescriptorProto) GetName

func (x *FieldDescriptorProto) GetName() string

func (*FieldDescriptorProto) GetNumber

func (x *FieldDescriptorProto) GetNumber() int32

func (*FieldDescriptorProto) GetOneofIndex

func (x *FieldDescriptorProto) GetOneofIndex() int32

func (*FieldDescriptorProto) GetOptions

func (x *FieldDescriptorProto) GetOptions() *FieldOptions

func (*FieldDescriptorProto) GetProto3Optional

func (x *FieldDescriptorProto) GetProto3Optional() bool

func (*FieldDescriptorProto) GetType

func (x *FieldDescriptorProto) GetType() FieldDescriptorProto_Type

func (*FieldDescriptorProto) GetTypeName

func (x *FieldDescriptorProto) GetTypeName() string

func (*FieldDescriptorProto) ProtoMessage

func (*FieldDescriptorProto) ProtoMessage()

func (*FieldDescriptorProto) ProtoReflect

func (x *FieldDescriptorProto) ProtoReflect() protoreflect.Message

func (*FieldDescriptorProto) Reset

func (x *FieldDescriptorProto) Reset()

func (*FieldDescriptorProto) String

func (x *FieldDescriptorProto) String() string

type FieldDescriptorProto_Label

type FieldDescriptorProto_Label int32
const (
	// 0 is reserved for errors
	FieldDescriptorProto_LABEL_OPTIONAL FieldDescriptorProto_Label = 1
	FieldDescriptorProto_LABEL_REQUIRED FieldDescriptorProto_Label = 2
	FieldDescriptorProto_LABEL_REPEATED FieldDescriptorProto_Label = 3
)

func (FieldDescriptorProto_Label) Descriptor

func (FieldDescriptorProto_Label) Descriptor() protoreflect.EnumDescriptor

func (FieldDescriptorProto_Label) Enum

func (x FieldDescriptorProto_Label) Enum() *FieldDescriptorProto_Label

func (FieldDescriptorProto_Label) EnumDescriptor

func (FieldDescriptorProto_Label) EnumDescriptor() ([]byte, []int)

Deprecated: Use FieldDescriptorProto_Label.Descriptor instead.

func (FieldDescriptorProto_Label) Number

func (x FieldDescriptorProto_Label) Number() protoreflect.EnumNumber

func (FieldDescriptorProto_Label) String

func (x FieldDescriptorProto_Label) String() string

func (FieldDescriptorProto_Label) Type

func (FieldDescriptorProto_Label) Type() protoreflect.EnumType

func (*FieldDescriptorProto_Label) UnmarshalJSON

func (x *FieldDescriptorProto_Label) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

type FieldDescriptorProto_Type

type FieldDescriptorProto_Type int32
const (
	// 0 is reserved for errors.
	// Order is weird for historical reasons.
	FieldDescriptorProto_TYPE_DOUBLE FieldDescriptorProto_Type = 1
	FieldDescriptorProto_TYPE_FLOAT  FieldDescriptorProto_Type = 2
	// Not ZigZag encoded.  Negative numbers take 10 bytes.  Use TYPE_SINT64 if
	// negative values are likely.
	FieldDescriptorProto_TYPE_INT64  FieldDescriptorProto_Type = 3
	FieldDescriptorProto_TYPE_UINT64 FieldDescriptorProto_Type = 4
	// Not ZigZag encoded.  Negative numbers take 10 bytes.  Use TYPE_SINT32 if
	// negative values are likely.
	FieldDescriptorProto_TYPE_INT32   FieldDescriptorProto_Type = 5
	FieldDescriptorProto_TYPE_FIXED64 FieldDescriptorProto_Type = 6
	FieldDescriptorProto_TYPE_FIXED32 FieldDescriptorProto_Type = 7
	FieldDescriptorProto_TYPE_BOOL    FieldDescriptorProto_Type = 8
	FieldDescriptorProto_TYPE_STRING  FieldDescriptorProto_Type = 9
	// Tag-delimited aggregate.
	// Group type is deprecated and not supported in proto3. However, Proto3
	// implementations should still be able to parse the group wire format and
	// treat group fields as unknown fields.
	FieldDescriptorProto_TYPE_GROUP   FieldDescriptorProto_Type = 10
	FieldDescriptorProto_TYPE_MESSAGE FieldDescriptorProto_Type = 11 // Length-delimited aggregate.
	// New in version 2.
	FieldDescriptorProto_TYPE_BYTES    FieldDescriptorProto_Type = 12
	FieldDescriptorProto_TYPE_UINT32   FieldDescriptorProto_Type = 13
	FieldDescriptorProto_TYPE_ENUM     FieldDescriptorProto_Type = 14
	FieldDescriptorProto_TYPE_SFIXED32 FieldDescriptorProto_Type = 15
	FieldDescriptorProto_TYPE_SFIXED64 FieldDescriptorProto_Type = 16
	FieldDescriptorProto_TYPE_SINT32   FieldDescriptorProto_Type = 17 // Uses ZigZag encoding.
	FieldDescriptorProto_TYPE_SINT64   FieldDescriptorProto_Type = 18 // Uses ZigZag encoding.
)

func (FieldDescriptorProto_Type) Descriptor

func (FieldDescriptorProto_Type) Descriptor() protoreflect.EnumDescriptor

func (FieldDescriptorProto_Type) Enum

func (x FieldDescriptorProto_Type) Enum() *FieldDescriptorProto_Type

func (FieldDescriptorProto_Type) EnumDescriptor

func (FieldDescriptorProto_Type) EnumDescriptor() ([]byte, []int)

Deprecated: Use FieldDescriptorProto_Type.Descriptor instead.

func (FieldDescriptorProto_Type) Number

func (x FieldDescriptorProto_Type) Number() protoreflect.EnumNumber

func (FieldDescriptorProto_Type) String

func (x FieldDescriptorProto_Type) String() string

func (FieldDescriptorProto_Type) Type

func (FieldDescriptorProto_Type) Type() protoreflect.EnumType

func (*FieldDescriptorProto_Type) UnmarshalJSON

func (x *FieldDescriptorProto_Type) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

type FieldOptions

type FieldOptions struct {

	// The ctype option instructs the C++ code generator to use a different
	// representation of the field than it normally would.  See the specific
	// options below.  This option is not yet implemented in the open source
	// release -- sorry, we'll try to include it in a future version!
	Ctype *FieldOptions_CType `protobuf:"varint,1,opt,name=ctype,enum=google.protobuf.FieldOptions_CType,def=0" json:"ctype,omitempty"`
	// The packed option can be enabled for repeated primitive fields to enable
	// a more efficient representation on the wire. Rather than repeatedly
	// writing the tag and type for each element, the entire array is encoded as
	// a single length-delimited blob. In proto3, only explicit setting it to
	// false will avoid using packed encoding.
	Packed *bool `protobuf:"varint,2,opt,name=packed" json:"packed,omitempty"`
	// The jstype option determines the JavaScript type used for values of the
	// field.  The option is permitted only for 64 bit integral and fixed types
	// (int64, uint64, sint64, fixed64, sfixed64).  A field with jstype JS_STRING
	// is represented as JavaScript string, which avoids loss of precision that
	// can happen when a large value is converted to a floating point JavaScript.
	// Specifying JS_NUMBER for the jstype causes the generated JavaScript code to
	// use the JavaScript "number" type.  The behavior of the default option
	// JS_NORMAL is implementation dependent.
	//
	// This option is an enum to permit additional types to be added, e.g.
	// goog.math.Integer.
	Jstype *FieldOptions_JSType `protobuf:"varint,6,opt,name=jstype,enum=google.protobuf.FieldOptions_JSType,def=0" json:"jstype,omitempty"`
	// Should this field be parsed lazily?  Lazy applies only to message-type
	// fields.  It means that when the outer message is initially parsed, the
	// inner message's contents will not be parsed but instead stored in encoded
	// form.  The inner message will actually be parsed when it is first accessed.
	//
	// This is only a hint.  Implementations are free to choose whether to use
	// eager or lazy parsing regardless of the value of this option.  However,
	// setting this option true suggests that the protocol author believes that
	// using lazy parsing on this field is worth the additional bookkeeping
	// overhead typically needed to implement it.
	//
	// This option does not affect the public interface of any generated code;
	// all method signatures remain the same.  Furthermore, thread-safety of the
	// interface is not affected by this option; const methods remain safe to
	// call from multiple threads concurrently, while non-const methods continue
	// to require exclusive access.
	//
	//
	// Note that implementations may choose not to check required fields within
	// a lazy sub-message.  That is, calling IsInitialized() on the outer message
	// may return true even if the inner message has missing required fields.
	// This is necessary because otherwise the inner message would have to be
	// parsed in order to perform the check, defeating the purpose of lazy
	// parsing.  An implementation which chooses not to check required fields
	// must be consistent about it.  That is, for any particular sub-message, the
	// implementation must either *always* check its required fields, or *never*
	// check its required fields, regardless of whether or not the message has
	// been parsed.
	Lazy *bool `protobuf:"varint,5,opt,name=lazy,def=0" json:"lazy,omitempty"`
	// Is this field deprecated?
	// Depending on the target platform, this can emit Deprecated annotations
	// for accessors, or it will be completely ignored; in the very least, this
	// is a formalization for deprecating fields.
	Deprecated *bool `protobuf:"varint,3,opt,name=deprecated,def=0" json:"deprecated,omitempty"`
	// For Google-internal migration only. Do not use.
	Weak *bool `protobuf:"varint,10,opt,name=weak,def=0" json:"weak,omitempty"`
	// The parser stores options it doesn't recognize here. See above.
	UninterpretedOption []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option,json=uninterpretedOption" json:"uninterpreted_option,omitempty"`
	// contains filtered or unexported fields
}

func (*FieldOptions) Descriptor

func (*FieldOptions) Descriptor() ([]byte, []int)

Deprecated: Use FieldOptions.ProtoReflect.Descriptor instead.

func (*FieldOptions) ExtensionRangeArray

func (*FieldOptions) ExtensionRangeArray() []protoiface.ExtensionRangeV1

Deprecated: Use FieldOptions.ProtoReflect.Descriptor.ExtensionRanges instead.

func (*FieldOptions) GetCtype

func (x *FieldOptions) GetCtype() FieldOptions_CType

func (*FieldOptions) GetDeprecated

func (x *FieldOptions) GetDeprecated() bool

func (*FieldOptions) GetJstype

func (x *FieldOptions) GetJstype() FieldOptions_JSType

func (*FieldOptions) GetLazy

func (x *FieldOptions) GetLazy() bool

func (*FieldOptions) GetPacked

func (x *FieldOptions) GetPacked() bool

func (*FieldOptions) GetUninterpretedOption

func (x *FieldOptions) GetUninterpretedOption() []*UninterpretedOption

func (*FieldOptions) GetWeak

func (x *FieldOptions) GetWeak() bool

func (*FieldOptions) ProtoMessage

func (*FieldOptions) ProtoMessage()

func (*FieldOptions) ProtoReflect

func (x *FieldOptions) ProtoReflect() protoreflect.Message

func (*FieldOptions) Reset

func (x *FieldOptions) Reset()

func (*FieldOptions) String

func (x *FieldOptions) String() string

type FieldOptions_CType

type FieldOptions_CType int32
const (
	// Default mode.
	FieldOptions_STRING       FieldOptions_CType = 0
	FieldOptions_CORD         FieldOptions_CType = 1
	FieldOptions_STRING_PIECE FieldOptions_CType = 2
)

func (FieldOptions_CType) Descriptor

func (FieldOptions_CType) Descriptor() protoreflect.EnumDescriptor

func (FieldOptions_CType) Enum

func (x FieldOptions_CType) Enum() *FieldOptions_CType

func (FieldOptions_CType) EnumDescriptor

func (FieldOptions_CType) EnumDescriptor() ([]byte, []int)

Deprecated: Use FieldOptions_CType.Descriptor instead.

func (FieldOptions_CType) Number

func (x FieldOptions_CType) Number() protoreflect.EnumNumber

func (FieldOptions_CType) String

func (x FieldOptions_CType) String() string

func (FieldOptions_CType) Type

func (FieldOptions_CType) Type() protoreflect.EnumType

func (*FieldOptions_CType) UnmarshalJSON

func (x *FieldOptions_CType) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

type FieldOptions_JSType

type FieldOptions_JSType int32
const (
	// Use the default type.
	FieldOptions_JS_NORMAL FieldOptions_JSType = 0
	// Use JavaScript strings.
	FieldOptions_JS_STRING FieldOptions_JSType = 1
	// Use JavaScript numbers.
	FieldOptions_JS_NUMBER FieldOptions_JSType = 2
)

func (FieldOptions_JSType) Descriptor

func (FieldOptions_JSType) Descriptor() protoreflect.EnumDescriptor

func (FieldOptions_JSType) Enum

func (x FieldOptions_JSType) Enum() *FieldOptions_JSType

func (FieldOptions_JSType) EnumDescriptor

func (FieldOptions_JSType) EnumDescriptor() ([]byte, []int)

Deprecated: Use FieldOptions_JSType.Descriptor instead.

func (FieldOptions_JSType) Number

func (x FieldOptions_JSType) Number() protoreflect.EnumNumber

func (FieldOptions_JSType) String

func (x FieldOptions_JSType) String() string

func (FieldOptions_JSType) Type

func (FieldOptions_JSType) Type() protoreflect.EnumType

func (*FieldOptions_JSType) UnmarshalJSON

func (x *FieldOptions_JSType) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

type FileDescriptorProto

type FileDescriptorProto struct {
	Name    *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`       // file name, relative to root of source tree
	Package *string `protobuf:"bytes,2,opt,name=package" json:"package,omitempty"` // e.g. "foo", "foo.bar", etc.
	// Names of files imported by this file.
	Dependency []string `protobuf:"bytes,3,rep,name=dependency" json:"dependency,omitempty"`
	// Indexes of the public imported files in the dependency list above.
	PublicDependency []int32 `protobuf:"varint,10,rep,name=public_dependency,json=publicDependency" json:"public_dependency,omitempty"`
	// Indexes of the weak imported files in the dependency list.
	// For Google-internal migration only. Do not use.
	WeakDependency []int32 `protobuf:"varint,11,rep,name=weak_dependency,json=weakDependency" json:"weak_dependency,omitempty"`
	// All top-level definitions in this file.
	MessageType []*DescriptorProto        `protobuf:"bytes,4,rep,name=message_type,json=messageType" json:"message_type,omitempty"`
	EnumType    []*EnumDescriptorProto    `protobuf:"bytes,5,rep,name=enum_type,json=enumType" json:"enum_type,omitempty"`
	Service     []*ServiceDescriptorProto `protobuf:"bytes,6,rep,name=service" json:"service,omitempty"`
	Extension   []*FieldDescriptorProto   `protobuf:"bytes,7,rep,name=extension" json:"extension,omitempty"`
	Options     *FileOptions              `protobuf:"bytes,8,opt,name=options" json:"options,omitempty"`
	// This field contains optional information about the original source code.
	// You may safely remove this entire field without harming runtime
	// functionality of the descriptors -- the information is needed only by
	// development tools.
	SourceCodeInfo *SourceCodeInfo `protobuf:"bytes,9,opt,name=source_code_info,json=sourceCodeInfo" json:"source_code_info,omitempty"`
	// The syntax of the proto file.
	// The supported values are "proto2" and "proto3".
	Syntax *string `protobuf:"bytes,12,opt,name=syntax" json:"syntax,omitempty"`
	// contains filtered or unexported fields
}

Describes a complete .proto file.

func (*FileDescriptorProto) Descriptor

func (*FileDescriptorProto) Descriptor() ([]byte, []int)

Deprecated: Use FileDescriptorProto.ProtoReflect.Descriptor instead.

func (*FileDescriptorProto) GetDependency

func (x *FileDescriptorProto) GetDependency() []string

func (*FileDescriptorProto) GetEnumType

func (x *FileDescriptorProto) GetEnumType() []*EnumDescriptorProto

func (*FileDescriptorProto) GetExtension

func (x *FileDescriptorProto) GetExtension() []*FieldDescriptorProto

func (*FileDescriptorProto) GetMessageType

func (x *FileDescriptorProto) GetMessageType() []*DescriptorProto

func (*FileDescriptorProto) GetName

func (x *FileDescriptorProto) GetName() string

func (*FileDescriptorProto) GetOptions

func (x *FileDescriptorProto) GetOptions() *FileOptions

func (*FileDescriptorProto) GetPackage

func (x *FileDescriptorProto) GetPackage() string

func (*FileDescriptorProto) GetPublicDependency

func (x *FileDescriptorProto) GetPublicDependency() []int32

func (*FileDescriptorProto) GetService

func (x *FileDescriptorProto) GetService() []*ServiceDescriptorProto

func (*FileDescriptorProto) GetSourceCodeInfo

func (x *FileDescriptorProto) GetSourceCodeInfo() *SourceCodeInfo

func (*FileDescriptorProto) GetSyntax

func (x *FileDescriptorProto) GetSyntax() string

func (*FileDescriptorProto) GetWeakDependency

func (x *FileDescriptorProto) GetWeakDependency() []int32

func (*FileDescriptorProto) ProtoMessage

func (*FileDescriptorProto) ProtoMessage()

func (*FileDescriptorProto) ProtoReflect

func (x *FileDescriptorProto) ProtoReflect() protoreflect.Message

func (*FileDescriptorProto) Reset

func (x *FileDescriptorProto) Reset()

func (*FileDescriptorProto) String

func (x *FileDescriptorProto) String() string

type FileDescriptorSet

type FileDescriptorSet struct {
	File []*FileDescriptorProto `protobuf:"bytes,1,rep,name=file" json:"file,omitempty"`
	// contains filtered or unexported fields
}

The protocol compiler can output a FileDescriptorSet containing the .proto files it parses.

func (*FileDescriptorSet) Descriptor

func (*FileDescriptorSet) Descriptor() ([]byte, []int)

Deprecated: Use FileDescriptorSet.ProtoReflect.Descriptor instead.

func (*FileDescriptorSet) GetFile

func (x *FileDescriptorSet) GetFile() []*FileDescriptorProto

func (*FileDescriptorSet) ProtoMessage

func (*FileDescriptorSet) ProtoMessage()

func (*FileDescriptorSet) ProtoReflect

func (x *FileDescriptorSet) ProtoReflect() protoreflect.Message

func (*FileDescriptorSet) Reset

func (x *FileDescriptorSet) Reset()

func (*FileDescriptorSet) String

func (x *FileDescriptorSet) String() string

type FileOptions

type FileOptions struct {
	JavaPackage *string `protobuf:"bytes,1,opt,name=java_package,json=javaPackage" json:"java_package,omitempty"`

	JavaOuterClassname *string `protobuf:"bytes,8,opt,name=java_outer_classname,json=javaOuterClassname" json:"java_outer_classname,omitempty"`

	JavaMultipleFiles *bool `protobuf:"varint,10,opt,name=java_multiple_files,json=javaMultipleFiles,def=0" json:"java_multiple_files,omitempty"`

	JavaGenerateEqualsAndHash *bool "" /* 137 byte string literal not displayed */

	JavaStringCheckUtf8 *bool                     `protobuf:"varint,27,opt,name=java_string_check_utf8,json=javaStringCheckUtf8,def=0" json:"java_string_check_utf8,omitempty"`
	OptimizeFor         *FileOptions_OptimizeMode "" /* 140 byte string literal not displayed */

	GoPackage *string `protobuf:"bytes,11,opt,name=go_package,json=goPackage" json:"go_package,omitempty"`

	CcGenericServices   *bool `protobuf:"varint,16,opt,name=cc_generic_services,json=ccGenericServices,def=0" json:"cc_generic_services,omitempty"`
	JavaGenericServices *bool `protobuf:"varint,17,opt,name=java_generic_services,json=javaGenericServices,def=0" json:"java_generic_services,omitempty"`
	PyGenericServices   *bool `protobuf:"varint,18,opt,name=py_generic_services,json=pyGenericServices,def=0" json:"py_generic_services,omitempty"`
	PhpGenericServices  *bool `protobuf:"varint,42,opt,name=php_generic_services,json=phpGenericServices,def=0" json:"php_generic_services,omitempty"`

	Deprecated *bool `protobuf:"varint,23,opt,name=deprecated,def=0" json:"deprecated,omitempty"`

	CcEnableArenas *bool `protobuf:"varint,31,opt,name=cc_enable_arenas,json=ccEnableArenas,def=1" json:"cc_enable_arenas,omitempty"`

	ObjcClassPrefix *string `protobuf:"bytes,36,opt,name=objc_class_prefix,json=objcClassPrefix" json:"objc_class_prefix,omitempty"`

	CsharpNamespace *string `protobuf:"bytes,37,opt,name=csharp_namespace,json=csharpNamespace" json:"csharp_namespace,omitempty"`

	SwiftPrefix *string `protobuf:"bytes,39,opt,name=swift_prefix,json=swiftPrefix" json:"swift_prefix,omitempty"`

	PhpClassPrefix *string `protobuf:"bytes,40,opt,name=php_class_prefix,json=phpClassPrefix" json:"php_class_prefix,omitempty"`

	PhpNamespace *string `protobuf:"bytes,41,opt,name=php_namespace,json=phpNamespace" json:"php_namespace,omitempty"`

	PhpMetadataNamespace *string `protobuf:"bytes,44,opt,name=php_metadata_namespace,json=phpMetadataNamespace" json:"php_metadata_namespace,omitempty"`

	RubyPackage *string `protobuf:"bytes,45,opt,name=ruby_package,json=rubyPackage" json:"ruby_package,omitempty"`

	UninterpretedOption []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option,json=uninterpretedOption" json:"uninterpreted_option,omitempty"`

}

func (*FileOptions) Descriptor

func (*FileOptions) Descriptor() ([]byte, []int)

Deprecated: Use FileOptions.ProtoReflect.Descriptor instead.

func (*FileOptions) ExtensionRangeArray

func (*FileOptions) ExtensionRangeArray() []protoiface.ExtensionRangeV1

Deprecated: Use FileOptions.ProtoReflect.Descriptor.ExtensionRanges instead.

func (*FileOptions) GetCcEnableArenas

func (x *FileOptions) GetCcEnableArenas() bool

func (*FileOptions) GetCcGenericServices

func (x *FileOptions) GetCcGenericServices() bool

func (*FileOptions) GetCsharpNamespace

func (x *FileOptions) GetCsharpNamespace() string

func (*FileOptions) GetDeprecated

func (x *FileOptions) GetDeprecated() bool

func (*FileOptions) GetGoPackage

func (x *FileOptions) GetGoPackage() string

func (*FileOptions) GetJavaGenerateEqualsAndHash

func (x *FileOptions) GetJavaGenerateEqualsAndHash() bool

Deprecated: Do not use.

func (*FileOptions) GetJavaGenericServices

func (x *FileOptions) GetJavaGenericServices() bool

func (*FileOptions) GetJavaMultipleFiles

func (x *FileOptions) GetJavaMultipleFiles() bool

func (*FileOptions) GetJavaOuterClassname

func (x *FileOptions) GetJavaOuterClassname() string

func (*FileOptions) GetJavaPackage

func (x *FileOptions) GetJavaPackage() string

func (*FileOptions) GetJavaStringCheckUtf8

func (x *FileOptions) GetJavaStringCheckUtf8() bool

func (*FileOptions) GetObjcClassPrefix

func (x *FileOptions) GetObjcClassPrefix() string

func (*FileOptions) GetOptimizeFor

func (x *FileOptions) GetOptimizeFor() FileOptions_OptimizeMode

func (*FileOptions) GetPhpClassPrefix

func (x *FileOptions) GetPhpClassPrefix() string

func (*FileOptions) GetPhpGenericServices

func (x *FileOptions) GetPhpGenericServices() bool

func (*FileOptions) GetPhpMetadataNamespace

func (x *FileOptions) GetPhpMetadataNamespace() string

func (*FileOptions) GetPhpNamespace

func (x *FileOptions) GetPhpNamespace() string

func (*FileOptions) GetPyGenericServices

func (x *FileOptions) GetPyGenericServices() bool

func (*FileOptions) GetRubyPackage

func (x *FileOptions) GetRubyPackage() string

func (*FileOptions) GetSwiftPrefix

func (x *FileOptions) GetSwiftPrefix() string

func (*FileOptions) GetUninterpretedOption

func (x *FileOptions) GetUninterpretedOption() []*UninterpretedOption

func (*FileOptions) ProtoMessage

func (*FileOptions) ProtoMessage()

func (*FileOptions) ProtoReflect

func (x *FileOptions) ProtoReflect() protoreflect.Message

func (*FileOptions) Reset

func (x *FileOptions) Reset()

func (*FileOptions) String

func (x *FileOptions) String() string

type FileOptions_OptimizeMode

type FileOptions_OptimizeMode int32

Generated classes can be optimized for speed or code size.

const (
	FileOptions_SPEED FileOptions_OptimizeMode = 1 // Generate complete code for parsing, serialization,
	// etc.
	FileOptions_CODE_SIZE    FileOptions_OptimizeMode = 2 // Use ReflectionOps to implement these methods.
	FileOptions_LITE_RUNTIME FileOptions_OptimizeMode = 3 // Generate code using MessageLite and the lite runtime.
)

func (FileOptions_OptimizeMode) Descriptor

func (FileOptions_OptimizeMode) Descriptor() protoreflect.EnumDescriptor

func (FileOptions_OptimizeMode) Enum

func (x FileOptions_OptimizeMode) Enum() *FileOptions_OptimizeMode

func (FileOptions_OptimizeMode) EnumDescriptor

func (FileOptions_OptimizeMode) EnumDescriptor() ([]byte, []int)

Deprecated: Use FileOptions_OptimizeMode.Descriptor instead.

func (FileOptions_OptimizeMode) Number

func (x FileOptions_OptimizeMode) Number() protoreflect.EnumNumber

func (FileOptions_OptimizeMode) String

func (x FileOptions_OptimizeMode) String() string

func (FileOptions_OptimizeMode) Type

func (FileOptions_OptimizeMode) Type() protoreflect.EnumType

func (*FileOptions_OptimizeMode) UnmarshalJSON

func (x *FileOptions_OptimizeMode) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

type GeneratedCodeInfo

type GeneratedCodeInfo struct {

	// An Annotation connects some span of text in generated code to an element
	// of its generating .proto file.
	Annotation []*GeneratedCodeInfo_Annotation `protobuf:"bytes,1,rep,name=annotation" json:"annotation,omitempty"`
	// contains filtered or unexported fields
}

Describes the relationship between generated code and its original source file. A GeneratedCodeInfo message is associated with only one generated source file, but may contain references to different source .proto files.

func (*GeneratedCodeInfo) Descriptor

func (*GeneratedCodeInfo) Descriptor() ([]byte, []int)

Deprecated: Use GeneratedCodeInfo.ProtoReflect.Descriptor instead.

func (*GeneratedCodeInfo) GetAnnotation

func (x *GeneratedCodeInfo) GetAnnotation() []*GeneratedCodeInfo_Annotation

func (*GeneratedCodeInfo) ProtoMessage

func (*GeneratedCodeInfo) ProtoMessage()

func (*GeneratedCodeInfo) ProtoReflect

func (x *GeneratedCodeInfo) ProtoReflect() protoreflect.Message

func (*GeneratedCodeInfo) Reset

func (x *GeneratedCodeInfo) Reset()

func (*GeneratedCodeInfo) String

func (x *GeneratedCodeInfo) String() string

type GeneratedCodeInfo_Annotation

type GeneratedCodeInfo_Annotation struct {

	// Identifies the element in the original source .proto file. This field
	// is formatted the same as SourceCodeInfo.Location.path.
	Path []int32 `protobuf:"varint,1,rep,packed,name=path" json:"path,omitempty"`
	// Identifies the filesystem path to the original source .proto.
	SourceFile *string `protobuf:"bytes,2,opt,name=source_file,json=sourceFile" json:"source_file,omitempty"`
	// Identifies the starting offset in bytes in the generated code
	// that relates to the identified object.
	Begin *int32 `protobuf:"varint,3,opt,name=begin" json:"begin,omitempty"`
	// Identifies the ending offset in bytes in the generated code that
	// relates to the identified offset. The end offset should be one past
	// the last relevant byte (so the length of the text = end - begin).
	End *int32 `protobuf:"varint,4,opt,name=end" json:"end,omitempty"`
	// contains filtered or unexported fields
}

func (*GeneratedCodeInfo_Annotation) Descriptor

func (*GeneratedCodeInfo_Annotation) Descriptor() ([]byte, []int)

Deprecated: Use GeneratedCodeInfo_Annotation.ProtoReflect.Descriptor instead.

func (*GeneratedCodeInfo_Annotation) GetBegin

func (x *GeneratedCodeInfo_Annotation) GetBegin() int32

func (*GeneratedCodeInfo_Annotation) GetEnd

func (x *GeneratedCodeInfo_Annotation) GetEnd() int32

func (*GeneratedCodeInfo_Annotation) GetPath

func (x *GeneratedCodeInfo_Annotation) GetPath() []int32

func (*GeneratedCodeInfo_Annotation) GetSourceFile

func (x *GeneratedCodeInfo_Annotation) GetSourceFile() string

func (*GeneratedCodeInfo_Annotation) ProtoMessage

func (*GeneratedCodeInfo_Annotation) ProtoMessage()

func (*GeneratedCodeInfo_Annotation) ProtoReflect

func (x *GeneratedCodeInfo_Annotation) ProtoReflect() protoreflect.Message

func (*GeneratedCodeInfo_Annotation) Reset

func (x *GeneratedCodeInfo_Annotation) Reset()

func (*GeneratedCodeInfo_Annotation) String

func (x *GeneratedCodeInfo_Annotation) String() string

type MessageOptions

type MessageOptions struct {
	MessageSetWireFormat *bool `protobuf:"varint,1,opt,name=message_set_wire_format,json=messageSetWireFormat,def=0" json:"message_set_wire_format,omitempty"`

	NoStandardDescriptorAccessor *bool "" /* 149 byte string literal not displayed */

	Deprecated *bool `protobuf:"varint,3,opt,name=deprecated,def=0" json:"deprecated,omitempty"`

	MapEntry *bool `protobuf:"varint,7,opt,name=map_entry,json=mapEntry" json:"map_entry,omitempty"`

	UninterpretedOption []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option,json=uninterpretedOption" json:"uninterpreted_option,omitempty"`

}

func (*MessageOptions) Descriptor

func (*MessageOptions) Descriptor() ([]byte, []int)

Deprecated: Use MessageOptions.ProtoReflect.Descriptor instead.

func (*MessageOptions) ExtensionRangeArray

func (*MessageOptions) ExtensionRangeArray() []protoiface.ExtensionRangeV1

Deprecated: Use MessageOptions.ProtoReflect.Descriptor.ExtensionRanges instead.

func (*MessageOptions) GetDeprecated

func (x *MessageOptions) GetDeprecated() bool

func (*MessageOptions) GetMapEntry

func (x *MessageOptions) GetMapEntry() bool

func (*MessageOptions) GetMessageSetWireFormat

func (x *MessageOptions) GetMessageSetWireFormat() bool

func (*MessageOptions) GetNoStandardDescriptorAccessor

func (x *MessageOptions) GetNoStandardDescriptorAccessor() bool

func (*MessageOptions) GetUninterpretedOption

func (x *MessageOptions) GetUninterpretedOption() []*UninterpretedOption

func (*MessageOptions) ProtoMessage

func (*MessageOptions) ProtoMessage()

func (*MessageOptions) ProtoReflect

func (x *MessageOptions) ProtoReflect() protoreflect.Message

func (*MessageOptions) Reset

func (x *MessageOptions) Reset()

func (*MessageOptions) String

func (x *MessageOptions) String() string

type MethodDescriptorProto

type MethodDescriptorProto struct {
	Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	// Input and output type names.  These are resolved in the same way as
	// FieldDescriptorProto.type_name, but must refer to a message type.
	InputType  *string        `protobuf:"bytes,2,opt,name=input_type,json=inputType" json:"input_type,omitempty"`
	OutputType *string        `protobuf:"bytes,3,opt,name=output_type,json=outputType" json:"output_type,omitempty"`
	Options    *MethodOptions `protobuf:"bytes,4,opt,name=options" json:"options,omitempty"`
	// Identifies if client streams multiple client messages
	ClientStreaming *bool `protobuf:"varint,5,opt,name=client_streaming,json=clientStreaming,def=0" json:"client_streaming,omitempty"`
	// Identifies if server streams multiple server messages
	ServerStreaming *bool `protobuf:"varint,6,opt,name=server_streaming,json=serverStreaming,def=0" json:"server_streaming,omitempty"`
	// contains filtered or unexported fields
}

Describes a method of a service.

func (*MethodDescriptorProto) Descriptor

func (*MethodDescriptorProto) Descriptor() ([]byte, []int)

Deprecated: Use MethodDescriptorProto.ProtoReflect.Descriptor instead.

func (*MethodDescriptorProto) GetClientStreaming

func (x *MethodDescriptorProto) GetClientStreaming() bool

func (*MethodDescriptorProto) GetInputType

func (x *MethodDescriptorProto) GetInputType() string

func (*MethodDescriptorProto) GetName

func (x *MethodDescriptorProto) GetName() string

func (*MethodDescriptorProto) GetOptions

func (x *MethodDescriptorProto) GetOptions() *MethodOptions

func (*MethodDescriptorProto) GetOutputType

func (x *MethodDescriptorProto) GetOutputType() string

func (*MethodDescriptorProto) GetServerStreaming

func (x *MethodDescriptorProto) GetServerStreaming() bool

func (*MethodDescriptorProto) ProtoMessage

func (*MethodDescriptorProto) ProtoMessage()

func (*MethodDescriptorProto) ProtoReflect

func (x *MethodDescriptorProto) ProtoReflect() protoreflect.Message

func (*MethodDescriptorProto) Reset

func (x *MethodDescriptorProto) Reset()

func (*MethodDescriptorProto) String

func (x *MethodDescriptorProto) String() string

type MethodOptions

type MethodOptions struct {
	Deprecated       *bool                           `protobuf:"varint,33,opt,name=deprecated,def=0" json:"deprecated,omitempty"`
	IdempotencyLevel *MethodOptions_IdempotencyLevel "" /* 162 byte string literal not displayed */

	UninterpretedOption []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option,json=uninterpretedOption" json:"uninterpreted_option,omitempty"`

}

func (*MethodOptions) Descriptor

func (*MethodOptions) Descriptor() ([]byte, []int)

Deprecated: Use MethodOptions.ProtoReflect.Descriptor instead.

func (*MethodOptions) ExtensionRangeArray

func (*MethodOptions) ExtensionRangeArray() []protoiface.ExtensionRangeV1

Deprecated: Use MethodOptions.ProtoReflect.Descriptor.ExtensionRanges instead.

func (*MethodOptions) GetDeprecated

func (x *MethodOptions) GetDeprecated() bool

func (*MethodOptions) GetIdempotencyLevel

func (x *MethodOptions) GetIdempotencyLevel() MethodOptions_IdempotencyLevel

func (*MethodOptions) GetUninterpretedOption

func (x *MethodOptions) GetUninterpretedOption() []*UninterpretedOption

func (*MethodOptions) ProtoMessage

func (*MethodOptions) ProtoMessage()

func (*MethodOptions) ProtoReflect

func (x *MethodOptions) ProtoReflect() protoreflect.Message

func (*MethodOptions) Reset

func (x *MethodOptions) Reset()

func (*MethodOptions) String

func (x *MethodOptions) String() string

type MethodOptions_IdempotencyLevel

type MethodOptions_IdempotencyLevel int32

Is this method side-effect-free (or safe in HTTP parlance), or idempotent, or neither? HTTP based RPC implementation may choose GET verb for safe methods, and PUT verb for idempotent methods instead of the default POST.

const (
	MethodOptions_IDEMPOTENCY_UNKNOWN MethodOptions_IdempotencyLevel = 0
	MethodOptions_NO_SIDE_EFFECTS     MethodOptions_IdempotencyLevel = 1 // implies idempotent
	MethodOptions_IDEMPOTENT          MethodOptions_IdempotencyLevel = 2 // idempotent, but may have side effects
)

func (MethodOptions_IdempotencyLevel) Descriptor

func (MethodOptions_IdempotencyLevel) Descriptor() protoreflect.EnumDescriptor

func (MethodOptions_IdempotencyLevel) Enum

func (x MethodOptions_IdempotencyLevel) Enum() *MethodOptions_IdempotencyLevel

func (MethodOptions_IdempotencyLevel) EnumDescriptor

func (MethodOptions_IdempotencyLevel) EnumDescriptor() ([]byte, []int)

Deprecated: Use MethodOptions_IdempotencyLevel.Descriptor instead.

func (MethodOptions_IdempotencyLevel) Number

func (x MethodOptions_IdempotencyLevel) Number() protoreflect.EnumNumber

func (MethodOptions_IdempotencyLevel) String

func (x MethodOptions_IdempotencyLevel) String() string

func (MethodOptions_IdempotencyLevel) Type

func (MethodOptions_IdempotencyLevel) Type() protoreflect.EnumType

func (*MethodOptions_IdempotencyLevel) UnmarshalJSON

func (x *MethodOptions_IdempotencyLevel) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

type OneofDescriptorProto

type OneofDescriptorProto struct {
	Name    *string       `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	Options *OneofOptions `protobuf:"bytes,2,opt,name=options" json:"options,omitempty"`
	// contains filtered or unexported fields
}

Describes a oneof.

func (*OneofDescriptorProto) Descriptor

func (*OneofDescriptorProto) Descriptor() ([]byte, []int)

Deprecated: Use OneofDescriptorProto.ProtoReflect.Descriptor instead.

func (*OneofDescriptorProto) GetName

func (x *OneofDescriptorProto) GetName() string

func (*OneofDescriptorProto) GetOptions

func (x *OneofDescriptorProto) GetOptions() *OneofOptions

func (*OneofDescriptorProto) ProtoMessage

func (*OneofDescriptorProto) ProtoMessage()

func (*OneofDescriptorProto) ProtoReflect

func (x *OneofDescriptorProto) ProtoReflect() protoreflect.Message

func (*OneofDescriptorProto) Reset

func (x *OneofDescriptorProto) Reset()

func (*OneofDescriptorProto) String

func (x *OneofDescriptorProto) String() string

type OneofOptions

type OneofOptions struct {

	// The parser stores options it doesn't recognize here. See above.
	UninterpretedOption []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option,json=uninterpretedOption" json:"uninterpreted_option,omitempty"`
	// contains filtered or unexported fields
}

func (*OneofOptions) Descriptor

func (*OneofOptions) Descriptor() ([]byte, []int)

Deprecated: Use OneofOptions.ProtoReflect.Descriptor instead.

func (*OneofOptions) ExtensionRangeArray

func (*OneofOptions) ExtensionRangeArray() []protoiface.ExtensionRangeV1

Deprecated: Use OneofOptions.ProtoReflect.Descriptor.ExtensionRanges instead.

func (*OneofOptions) GetUninterpretedOption

func (x *OneofOptions) GetUninterpretedOption() []*UninterpretedOption

func (*OneofOptions) ProtoMessage

func (*OneofOptions) ProtoMessage()

func (*OneofOptions) ProtoReflect

func (x *OneofOptions) ProtoReflect() protoreflect.Message

func (*OneofOptions) Reset

func (x *OneofOptions) Reset()

func (*OneofOptions) String

func (x *OneofOptions) String() string

type ServiceDescriptorProto

type ServiceDescriptorProto struct {
	Name    *string                  `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	Method  []*MethodDescriptorProto `protobuf:"bytes,2,rep,name=method" json:"method,omitempty"`
	Options *ServiceOptions          `protobuf:"bytes,3,opt,name=options" json:"options,omitempty"`
	// contains filtered or unexported fields
}

Describes a service.

func (*ServiceDescriptorProto) Descriptor

func (*ServiceDescriptorProto) Descriptor() ([]byte, []int)

Deprecated: Use ServiceDescriptorProto.ProtoReflect.Descriptor instead.

func (*ServiceDescriptorProto) GetMethod

func (x *ServiceDescriptorProto) GetMethod() []*MethodDescriptorProto

func (*ServiceDescriptorProto) GetName

func (x *ServiceDescriptorProto) GetName() string

func (*ServiceDescriptorProto) GetOptions

func (x *ServiceDescriptorProto) GetOptions() *ServiceOptions

func (*ServiceDescriptorProto) ProtoMessage

func (*ServiceDescriptorProto) ProtoMessage()

func (*ServiceDescriptorProto) ProtoReflect

func (x *ServiceDescriptorProto) ProtoReflect() protoreflect.Message

func (*ServiceDescriptorProto) Reset

func (x *ServiceDescriptorProto) Reset()

func (*ServiceDescriptorProto) String

func (x *ServiceDescriptorProto) String() string

type ServiceOptions

type ServiceOptions struct {

	// Is this service deprecated?
	// Depending on the target platform, this can emit Deprecated annotations
	// for the service, or it will be completely ignored; in the very least,
	// this is a formalization for deprecating services.
	Deprecated *bool `protobuf:"varint,33,opt,name=deprecated,def=0" json:"deprecated,omitempty"`
	// The parser stores options it doesn't recognize here. See above.
	UninterpretedOption []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option,json=uninterpretedOption" json:"uninterpreted_option,omitempty"`
	// contains filtered or unexported fields
}

func (*ServiceOptions) Descriptor

func (*ServiceOptions) Descriptor() ([]byte, []int)

Deprecated: Use ServiceOptions.ProtoReflect.Descriptor instead.

func (*ServiceOptions) ExtensionRangeArray

func (*ServiceOptions) ExtensionRangeArray() []protoiface.ExtensionRangeV1

Deprecated: Use ServiceOptions.ProtoReflect.Descriptor.ExtensionRanges instead.

func (*ServiceOptions) GetDeprecated

func (x *ServiceOptions) GetDeprecated() bool

func (*ServiceOptions) GetUninterpretedOption

func (x *ServiceOptions) GetUninterpretedOption() []*UninterpretedOption

func (*ServiceOptions) ProtoMessage

func (*ServiceOptions) ProtoMessage()

func (*ServiceOptions) ProtoReflect

func (x *ServiceOptions) ProtoReflect() protoreflect.Message

func (*ServiceOptions) Reset

func (x *ServiceOptions) Reset()

func (*ServiceOptions) String

func (x *ServiceOptions) String() string

type SourceCodeInfo

type SourceCodeInfo struct {

	// A Location identifies a piece of source code in a .proto file which
	// corresponds to a particular definition.  This information is intended
	// to be useful to IDEs, code indexers, documentation generators, and similar
	// tools.
	//
	// For example, say we have a file like:
	//   message Foo {
	//     optional string foo = 1;
	//   }
	// Let's look at just the field definition:
	//   optional string foo = 1;
	//   ^       ^^     ^^  ^  ^^^
	//   a       bc     de  f  ghi
	// We have the following locations:
	//   span   path               represents
	//   [a,i)  [ 4, 0, 2, 0 ]     The whole field definition.
	//   [a,b)  [ 4, 0, 2, 0, 4 ]  The label (optional).
	//   [c,d)  [ 4, 0, 2, 0, 5 ]  The type (string).
	//   [e,f)  [ 4, 0, 2, 0, 1 ]  The name (foo).
	//   [g,h)  [ 4, 0, 2, 0, 3 ]  The number (1).
	//
	// Notes:
	// - A location may refer to a repeated field itself (i.e. not to any
	//   particular index within it).  This is used whenever a set of elements are
	//   logically enclosed in a single code segment.  For example, an entire
	//   extend block (possibly containing multiple extension definitions) will
	//   have an outer location whose path refers to the "extensions" repeated
	//   field without an index.
	// - Multiple locations may have the same path.  This happens when a single
	//   logical declaration is spread out across multiple places.  The most
	//   obvious example is the "extend" block again -- there may be multiple
	//   extend blocks in the same scope, each of which will have the same path.
	// - A location's span is not always a subset of its parent's span.  For
	//   example, the "extendee" of an extension declaration appears at the
	//   beginning of the "extend" block and is shared by all extensions within
	//   the block.
	// - Just because a location's span is a subset of some other location's span
	//   does not mean that it is a descendant.  For example, a "group" defines
	//   both a type and a field in a single declaration.  Thus, the locations
	//   corresponding to the type and field and their components will overlap.
	// - Code which tries to interpret locations should probably be designed to
	//   ignore those that it doesn't understand, as more types of locations could
	//   be recorded in the future.
	Location []*SourceCodeInfo_Location `protobuf:"bytes,1,rep,name=location" json:"location,omitempty"`
	// contains filtered or unexported fields
}

Encapsulates information about the original source file from which a FileDescriptorProto was generated.

func (*SourceCodeInfo) Descriptor

func (*SourceCodeInfo) Descriptor() ([]byte, []int)

Deprecated: Use SourceCodeInfo.ProtoReflect.Descriptor instead.

func (*SourceCodeInfo) GetLocation

func (x *SourceCodeInfo) GetLocation() []*SourceCodeInfo_Location

func (*SourceCodeInfo) ProtoMessage

func (*SourceCodeInfo) ProtoMessage()

func (*SourceCodeInfo) ProtoReflect

func (x *SourceCodeInfo) ProtoReflect() protoreflect.Message

func (*SourceCodeInfo) Reset

func (x *SourceCodeInfo) Reset()

func (*SourceCodeInfo) String

func (x *SourceCodeInfo) String() string

type SourceCodeInfo_Location

type SourceCodeInfo_Location struct {

	// Identifies which part of the FileDescriptorProto was defined at this
	// location.
	//
	// Each element is a field number or an index.  They form a path from
	// the root FileDescriptorProto to the place where the definition.  For
	// example, this path:
	//   [ 4, 3, 2, 7, 1 ]
	// refers to:
	//   file.message_type(3)  // 4, 3
	//       .field(7)         // 2, 7
	//       .name()           // 1
	// This is because FileDescriptorProto.message_type has field number 4:
	//   repeated DescriptorProto message_type = 4;
	// and DescriptorProto.field has field number 2:
	//   repeated FieldDescriptorProto field = 2;
	// and FieldDescriptorProto.name has field number 1:
	//   optional string name = 1;
	//
	// Thus, the above path gives the location of a field name.  If we removed
	// the last element:
	//   [ 4, 3, 2, 7 ]
	// this path refers to the whole field declaration (from the beginning
	// of the label to the terminating semicolon).
	Path []int32 `protobuf:"varint,1,rep,packed,name=path" json:"path,omitempty"`
	// Always has exactly three or four elements: start line, start column,
	// end line (optional, otherwise assumed same as start line), end column.
	// These are packed into a single field for efficiency.  Note that line
	// and column numbers are zero-based -- typically you will want to add
	// 1 to each before displaying to a user.
	Span []int32 `protobuf:"varint,2,rep,packed,name=span" json:"span,omitempty"`
	// If this SourceCodeInfo represents a complete declaration, these are any
	// comments appearing before and after the declaration which appear to be
	// attached to the declaration.
	//
	// A series of line comments appearing on consecutive lines, with no other
	// tokens appearing on those lines, will be treated as a single comment.
	//
	// leading_detached_comments will keep paragraphs of comments that appear
	// before (but not connected to) the current element. Each paragraph,
	// separated by empty lines, will be one comment element in the repeated
	// field.
	//
	// Only the comment content is provided; comment markers (e.g. //) are
	// stripped out.  For block comments, leading whitespace and an asterisk
	// will be stripped from the beginning of each line other than the first.
	// Newlines are included in the output.
	//
	// Examples:
	//
	//   optional int32 foo = 1;  // Comment attached to foo.
	//   // Comment attached to bar.
	//   optional int32 bar = 2;
	//
	//   optional string baz = 3;
	//   // Comment attached to baz.
	//   // Another line attached to baz.
	//
	//   // Comment attached to qux.
	//   //
	//   // Another line attached to qux.
	//   optional double qux = 4;
	//
	//   // Detached comment for corge. This is not leading or trailing comments
	//   // to qux or corge because there are blank lines separating it from
	//   // both.
	//
	//   // Detached comment for corge paragraph 2.
	//
	//   optional string corge = 5;
	//   /* Block comment attached
	//    * to corge.  Leading asterisks
	//    * will be removed. */
	//   /* Block comment attached to
	//    * grault. */
	//   optional int32 grault = 6;
	//
	//   // ignored detached comments.
	LeadingComments         *string  `protobuf:"bytes,3,opt,name=leading_comments,json=leadingComments" json:"leading_comments,omitempty"`
	TrailingComments        *string  `protobuf:"bytes,4,opt,name=trailing_comments,json=trailingComments" json:"trailing_comments,omitempty"`
	LeadingDetachedComments []string `protobuf:"bytes,6,rep,name=leading_detached_comments,json=leadingDetachedComments" json:"leading_detached_comments,omitempty"`
	// contains filtered or unexported fields
}

func (*SourceCodeInfo_Location) Descriptor

func (*SourceCodeInfo_Location) Descriptor() ([]byte, []int)

Deprecated: Use SourceCodeInfo_Location.ProtoReflect.Descriptor instead.

func (*SourceCodeInfo_Location) GetLeadingComments

func (x *SourceCodeInfo_Location) GetLeadingComments() string

func (*SourceCodeInfo_Location) GetLeadingDetachedComments

func (x *SourceCodeInfo_Location) GetLeadingDetachedComments() []string

func (*SourceCodeInfo_Location) GetPath

func (x *SourceCodeInfo_Location) GetPath() []int32

func (*SourceCodeInfo_Location) GetSpan

func (x *SourceCodeInfo_Location) GetSpan() []int32

func (*SourceCodeInfo_Location) GetTrailingComments

func (x *SourceCodeInfo_Location) GetTrailingComments() string

func (*SourceCodeInfo_Location) ProtoMessage

func (*SourceCodeInfo_Location) ProtoMessage()

func (*SourceCodeInfo_Location) ProtoReflect

func (x *SourceCodeInfo_Location) ProtoReflect() protoreflect.Message

func (*SourceCodeInfo_Location) Reset

func (x *SourceCodeInfo_Location) Reset()

func (*SourceCodeInfo_Location) String

func (x *SourceCodeInfo_Location) String() string

type UninterpretedOption

type UninterpretedOption struct {
	Name []*UninterpretedOption_NamePart `protobuf:"bytes,2,rep,name=name" json:"name,omitempty"`
	// The value of the uninterpreted option, in whatever type the tokenizer
	// identified it as during parsing. Exactly one of these should be set.
	IdentifierValue  *string  `protobuf:"bytes,3,opt,name=identifier_value,json=identifierValue" json:"identifier_value,omitempty"`
	PositiveIntValue *uint64  `protobuf:"varint,4,opt,name=positive_int_value,json=positiveIntValue" json:"positive_int_value,omitempty"`
	NegativeIntValue *int64   `protobuf:"varint,5,opt,name=negative_int_value,json=negativeIntValue" json:"negative_int_value,omitempty"`
	DoubleValue      *float64 `protobuf:"fixed64,6,opt,name=double_value,json=doubleValue" json:"double_value,omitempty"`
	StringValue      []byte   `protobuf:"bytes,7,opt,name=string_value,json=stringValue" json:"string_value,omitempty"`
	AggregateValue   *string  `protobuf:"bytes,8,opt,name=aggregate_value,json=aggregateValue" json:"aggregate_value,omitempty"`
	// contains filtered or unexported fields
}

A message representing a option the parser does not recognize. This only appears in options protos created by the compiler::Parser class. DescriptorPool resolves these when building Descriptor objects. Therefore, options protos in descriptor objects (e.g. returned by Descriptor::options(), or produced by Descriptor::CopyTo()) will never have UninterpretedOptions in them.

func (*UninterpretedOption) Descriptor

func (*UninterpretedOption) Descriptor() ([]byte, []int)

Deprecated: Use UninterpretedOption.ProtoReflect.Descriptor instead.

func (*UninterpretedOption) GetAggregateValue

func (x *UninterpretedOption) GetAggregateValue() string

func (*UninterpretedOption) GetDoubleValue

func (x *UninterpretedOption) GetDoubleValue() float64

func (*UninterpretedOption) GetIdentifierValue

func (x *UninterpretedOption) GetIdentifierValue() string

func (*UninterpretedOption) GetName

func (x *UninterpretedOption) GetName() []*UninterpretedOption_NamePart

func (*UninterpretedOption) GetNegativeIntValue

func (x *UninterpretedOption) GetNegativeIntValue() int64

func (*UninterpretedOption) GetPositiveIntValue

func (x *UninterpretedOption) GetPositiveIntValue() uint64

func (*UninterpretedOption) GetStringValue

func (x *UninterpretedOption) GetStringValue() []byte

func (*UninterpretedOption) ProtoMessage

func (*UninterpretedOption) ProtoMessage()

func (*UninterpretedOption) ProtoReflect

func (x *UninterpretedOption) ProtoReflect() protoreflect.Message

func (*UninterpretedOption) Reset

func (x *UninterpretedOption) Reset()

func (*UninterpretedOption) String

func (x *UninterpretedOption) String() string

type UninterpretedOption_NamePart

type UninterpretedOption_NamePart struct {
	NamePart    *string `protobuf:"bytes,1,req,name=name_part,json=namePart" json:"name_part,omitempty"`
	IsExtension *bool   `protobuf:"varint,2,req,name=is_extension,json=isExtension" json:"is_extension,omitempty"`
	// contains filtered or unexported fields
}

The name of the uninterpreted option. Each string represents a segment in a dot-separated name. is_extension is true iff a segment represents an extension (denoted with parentheses in options specs in .proto files). E.g.,{ ["foo", false], ["bar.baz", true], ["qux", false] } represents "foo.(bar.baz).qux".

func (*UninterpretedOption_NamePart) Descriptor

func (*UninterpretedOption_NamePart) Descriptor() ([]byte, []int)

Deprecated: Use UninterpretedOption_NamePart.ProtoReflect.Descriptor instead.

func (*UninterpretedOption_NamePart) GetIsExtension

func (x *UninterpretedOption_NamePart) GetIsExtension() bool

func (*UninterpretedOption_NamePart) GetNamePart

func (x *UninterpretedOption_NamePart) GetNamePart() string

func (*UninterpretedOption_NamePart) ProtoMessage

func (*UninterpretedOption_NamePart) ProtoMessage()

func (*UninterpretedOption_NamePart) ProtoReflect

func (x *UninterpretedOption_NamePart) ProtoReflect() protoreflect.Message

func (*UninterpretedOption_NamePart) Reset

func (x *UninterpretedOption_NamePart) Reset()

func (*UninterpretedOption_NamePart) String

func (x *UninterpretedOption_NamePart) String() string

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier