descriptorpb

package
v1.34.2 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2024 License: BSD-3-Clause Imports: 4 Imported by: 4,439

Documentation

Index

Constants

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

Default values for MethodDescriptorProto fields.

View Source
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_Deprecated          = bool(false)
	Default_FileOptions_CcEnableArenas      = bool(true)
)

Default values for FileOptions fields.

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

Default values for MessageOptions fields.

View Source
const (
	Default_FieldOptions_Ctype          = FieldOptions_STRING
	Default_FieldOptions_Jstype         = FieldOptions_JS_NORMAL
	Default_FieldOptions_Lazy           = bool(false)
	Default_FieldOptions_UnverifiedLazy = bool(false)
	Default_FieldOptions_Deprecated     = bool(false)
	Default_FieldOptions_Weak           = bool(false)
	Default_FieldOptions_DebugRedact    = bool(false)
)

Default values for FieldOptions fields.

View Source
const (
	Default_EnumValueOptions_Deprecated  = bool(false)
	Default_EnumValueOptions_DebugRedact = bool(false)
)

Default values for EnumValueOptions fields.

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

Default values for MethodOptions fields.

View Source
const (
	Default_EnumOptions_Deprecated = bool(false)
)

Default values for EnumOptions fields.

View Source
const (
	Default_ExtensionRangeOptions_Verification = ExtensionRangeOptions_UNVERIFIED
)

Default values for ExtensionRangeOptions fields.

View Source
const (
	Default_ServiceOptions_Deprecated = bool(false)
)

Default values for ServiceOptions fields.

Variables

View Source
var (
	Edition_name = map[int32]string{
		0:          "EDITION_UNKNOWN",
		900:        "EDITION_LEGACY",
		998:        "EDITION_PROTO2",
		999:        "EDITION_PROTO3",
		1000:       "EDITION_2023",
		1001:       "EDITION_2024",
		1:          "EDITION_1_TEST_ONLY",
		2:          "EDITION_2_TEST_ONLY",
		99997:      "EDITION_99997_TEST_ONLY",
		99998:      "EDITION_99998_TEST_ONLY",
		99999:      "EDITION_99999_TEST_ONLY",
		2147483647: "EDITION_MAX",
	}
	Edition_value = map[string]int32{
		"EDITION_UNKNOWN":         0,
		"EDITION_LEGACY":          900,
		"EDITION_PROTO2":          998,
		"EDITION_PROTO3":          999,
		"EDITION_2023":            1000,
		"EDITION_2024":            1001,
		"EDITION_1_TEST_ONLY":     1,
		"EDITION_2_TEST_ONLY":     2,
		"EDITION_99997_TEST_ONLY": 99997,
		"EDITION_99998_TEST_ONLY": 99998,
		"EDITION_99999_TEST_ONLY": 99999,
		"EDITION_MAX":             2147483647,
	}
)

Enum value maps for Edition.

View Source
var (
	ExtensionRangeOptions_VerificationState_name = map[int32]string{
		0: "DECLARATION",
		1: "UNVERIFIED",
	}
	ExtensionRangeOptions_VerificationState_value = map[string]int32{
		"DECLARATION": 0,
		"UNVERIFIED":  1,
	}
)

Enum value maps for ExtensionRangeOptions_VerificationState.

View Source
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.

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

Enum value maps for FieldDescriptorProto_Label.

View Source
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.

View Source
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.

View Source
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.

View Source
var (
	FieldOptions_OptionRetention_name = map[int32]string{
		0: "RETENTION_UNKNOWN",
		1: "RETENTION_RUNTIME",
		2: "RETENTION_SOURCE",
	}
	FieldOptions_OptionRetention_value = map[string]int32{
		"RETENTION_UNKNOWN": 0,
		"RETENTION_RUNTIME": 1,
		"RETENTION_SOURCE":  2,
	}
)

Enum value maps for FieldOptions_OptionRetention.

View Source
var (
	FieldOptions_OptionTargetType_name = map[int32]string{
		0: "TARGET_TYPE_UNKNOWN",
		1: "TARGET_TYPE_FILE",
		2: "TARGET_TYPE_EXTENSION_RANGE",
		3: "TARGET_TYPE_MESSAGE",
		4: "TARGET_TYPE_FIELD",
		5: "TARGET_TYPE_ONEOF",
		6: "TARGET_TYPE_ENUM",
		7: "TARGET_TYPE_ENUM_ENTRY",
		8: "TARGET_TYPE_SERVICE",
		9: "TARGET_TYPE_METHOD",
	}
	FieldOptions_OptionTargetType_value = map[string]int32{
		"TARGET_TYPE_UNKNOWN":         0,
		"TARGET_TYPE_FILE":            1,
		"TARGET_TYPE_EXTENSION_RANGE": 2,
		"TARGET_TYPE_MESSAGE":         3,
		"TARGET_TYPE_FIELD":           4,
		"TARGET_TYPE_ONEOF":           5,
		"TARGET_TYPE_ENUM":            6,
		"TARGET_TYPE_ENUM_ENTRY":      7,
		"TARGET_TYPE_SERVICE":         8,
		"TARGET_TYPE_METHOD":          9,
	}
)

Enum value maps for FieldOptions_OptionTargetType.

View Source
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.

View Source
var (
	FeatureSet_FieldPresence_name = map[int32]string{
		0: "FIELD_PRESENCE_UNKNOWN",
		1: "EXPLICIT",
		2: "IMPLICIT",
		3: "LEGACY_REQUIRED",
	}
	FeatureSet_FieldPresence_value = map[string]int32{
		"FIELD_PRESENCE_UNKNOWN": 0,
		"EXPLICIT":               1,
		"IMPLICIT":               2,
		"LEGACY_REQUIRED":        3,
	}
)

Enum value maps for FeatureSet_FieldPresence.

View Source
var (
	FeatureSet_EnumType_name = map[int32]string{
		0: "ENUM_TYPE_UNKNOWN",
		1: "OPEN",
		2: "CLOSED",
	}
	FeatureSet_EnumType_value = map[string]int32{
		"ENUM_TYPE_UNKNOWN": 0,
		"OPEN":              1,
		"CLOSED":            2,
	}
)

Enum value maps for FeatureSet_EnumType.

View Source
var (
	FeatureSet_RepeatedFieldEncoding_name = map[int32]string{
		0: "REPEATED_FIELD_ENCODING_UNKNOWN",
		1: "PACKED",
		2: "EXPANDED",
	}
	FeatureSet_RepeatedFieldEncoding_value = map[string]int32{
		"REPEATED_FIELD_ENCODING_UNKNOWN": 0,
		"PACKED":                          1,
		"EXPANDED":                        2,
	}
)

Enum value maps for FeatureSet_RepeatedFieldEncoding.

View Source
var (
	FeatureSet_Utf8Validation_name = map[int32]string{
		0: "UTF8_VALIDATION_UNKNOWN",
		2: "VERIFY",
		3: "NONE",
	}
	FeatureSet_Utf8Validation_value = map[string]int32{
		"UTF8_VALIDATION_UNKNOWN": 0,
		"VERIFY":                  2,
		"NONE":                    3,
	}
)

Enum value maps for FeatureSet_Utf8Validation.

View Source
var (
	FeatureSet_MessageEncoding_name = map[int32]string{
		0: "MESSAGE_ENCODING_UNKNOWN",
		1: "LENGTH_PREFIXED",
		2: "DELIMITED",
	}
	FeatureSet_MessageEncoding_value = map[string]int32{
		"MESSAGE_ENCODING_UNKNOWN": 0,
		"LENGTH_PREFIXED":          1,
		"DELIMITED":                2,
	}
)

Enum value maps for FeatureSet_MessageEncoding.

View Source
var (
	FeatureSet_JsonFormat_name = map[int32]string{
		0: "JSON_FORMAT_UNKNOWN",
		1: "ALLOW",
		2: "LEGACY_BEST_EFFORT",
	}
	FeatureSet_JsonFormat_value = map[string]int32{
		"JSON_FORMAT_UNKNOWN": 0,
		"ALLOW":               1,
		"LEGACY_BEST_EFFORT":  2,
	}
)

Enum value maps for FeatureSet_JsonFormat.

View Source
var (
	GeneratedCodeInfo_Annotation_Semantic_name = map[int32]string{
		0: "NONE",
		1: "SET",
		2: "ALIAS",
	}
	GeneratedCodeInfo_Annotation_Semantic_value = map[string]int32{
		"NONE":  0,
		"SET":   1,
		"ALIAS": 2,
	}
)

Enum value maps for GeneratedCodeInfo_Annotation_Semantic.

View Source
var File_google_protobuf_descriptor_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

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 deprecated

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 deprecated

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

Deprecated: Use DescriptorProto_ExtensionRange.ProtoReflect.Descriptor instead.

func (*DescriptorProto_ExtensionRange) GetEnd

func (*DescriptorProto_ExtensionRange) GetOptions

func (*DescriptorProto_ExtensionRange) GetStart

func (x *DescriptorProto_ExtensionRange) GetStart() int32

func (*DescriptorProto_ExtensionRange) ProtoMessage

func (*DescriptorProto_ExtensionRange) ProtoMessage()

func (*DescriptorProto_ExtensionRange) ProtoReflect

func (*DescriptorProto_ExtensionRange) Reset

func (x *DescriptorProto_ExtensionRange) Reset()

func (*DescriptorProto_ExtensionRange) 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 deprecated

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

Deprecated: Use DescriptorProto_ReservedRange.ProtoReflect.Descriptor instead.

func (*DescriptorProto_ReservedRange) GetEnd

func (*DescriptorProto_ReservedRange) GetStart

func (x *DescriptorProto_ReservedRange) GetStart() int32

func (*DescriptorProto_ReservedRange) ProtoMessage

func (*DescriptorProto_ReservedRange) ProtoMessage()

func (*DescriptorProto_ReservedRange) ProtoReflect

func (*DescriptorProto_ReservedRange) Reset

func (x *DescriptorProto_ReservedRange) Reset()

func (*DescriptorProto_ReservedRange) String

type Edition added in v1.32.0

type Edition int32

The full set of known editions.

const (
	// A placeholder for an unknown edition value.
	Edition_EDITION_UNKNOWN Edition = 0
	// A placeholder edition for specifying default behaviors *before* a feature
	// was first introduced.  This is effectively an "infinite past".
	Edition_EDITION_LEGACY Edition = 900
	// Legacy syntax "editions".  These pre-date editions, but behave much like
	// distinct editions.  These can't be used to specify the edition of proto
	// files, but feature definitions must supply proto2/proto3 defaults for
	// backwards compatibility.
	Edition_EDITION_PROTO2 Edition = 998
	Edition_EDITION_PROTO3 Edition = 999
	// Editions that have been released.  The specific values are arbitrary and
	// should not be depended on, but they will always be time-ordered for easy
	// comparison.
	Edition_EDITION_2023 Edition = 1000
	Edition_EDITION_2024 Edition = 1001
	// Placeholder editions for testing feature resolution.  These should not be
	// used or relyed on outside of tests.
	Edition_EDITION_1_TEST_ONLY     Edition = 1
	Edition_EDITION_2_TEST_ONLY     Edition = 2
	Edition_EDITION_99997_TEST_ONLY Edition = 99997
	Edition_EDITION_99998_TEST_ONLY Edition = 99998
	Edition_EDITION_99999_TEST_ONLY Edition = 99999
	// Placeholder for specifying unbounded edition support.  This should only
	// ever be used by plugins that can expect to never require any changes to
	// support a new edition.
	Edition_EDITION_MAX Edition = 2147483647
)

func (Edition) Descriptor added in v1.32.0

func (Edition) Descriptor() protoreflect.EnumDescriptor

func (Edition) Enum added in v1.32.0

func (x Edition) Enum() *Edition

func (Edition) EnumDescriptor deprecated added in v1.32.0

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

Deprecated: Use Edition.Descriptor instead.

func (Edition) Number added in v1.32.0

func (x Edition) Number() protoreflect.EnumNumber

func (Edition) String added in v1.32.0

func (x Edition) String() string

func (Edition) Type added in v1.32.0

func (Edition) Type() protoreflect.EnumType

func (*Edition) UnmarshalJSON deprecated added in v1.32.0

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

Deprecated: Do not use.

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 deprecated

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 (*EnumDescriptorProto) GetValue

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 deprecated

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

Deprecated: Use EnumDescriptorProto_EnumReservedRange.ProtoReflect.Descriptor instead.

func (*EnumDescriptorProto_EnumReservedRange) GetEnd

func (*EnumDescriptorProto_EnumReservedRange) GetStart

func (*EnumDescriptorProto_EnumReservedRange) ProtoMessage

func (*EnumDescriptorProto_EnumReservedRange) ProtoMessage()

func (*EnumDescriptorProto_EnumReservedRange) ProtoReflect

func (*EnumDescriptorProto_EnumReservedRange) Reset

func (*EnumDescriptorProto_EnumReservedRange) 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"`
	// Enable the legacy handling of JSON field name conflicts.  This lowercases
	// and strips underscored from the fields before comparison in proto3 only.
	// The new behavior takes `json_name` into account and applies to proto2 as
	// well.
	// TODO Remove this legacy behavior once downstream teams have
	// had time to migrate.
	//
	// Deprecated: Marked as deprecated in google/protobuf/descriptor.proto.
	DeprecatedLegacyJsonFieldConflicts *bool `` /* 163-byte string literal not displayed */
	// Any features defined in the specific edition.
	Features *FeatureSet `protobuf:"bytes,7,opt,name=features" json:"features,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 deprecated

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

Deprecated: Use EnumOptions.ProtoReflect.Descriptor instead.

func (*EnumOptions) GetAllowAlias

func (x *EnumOptions) GetAllowAlias() bool

func (*EnumOptions) GetDeprecated

func (x *EnumOptions) GetDeprecated() bool

func (*EnumOptions) GetDeprecatedLegacyJsonFieldConflicts deprecated added in v1.29.0

func (x *EnumOptions) GetDeprecatedLegacyJsonFieldConflicts() bool

Deprecated: Marked as deprecated in google/protobuf/descriptor.proto.

func (*EnumOptions) GetFeatures added in v1.32.0

func (x *EnumOptions) GetFeatures() *FeatureSet

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 deprecated

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"`
	// Any features defined in the specific edition.
	Features *FeatureSet `protobuf:"bytes,2,opt,name=features" json:"features,omitempty"`
	// Indicate that fields annotated with this enum value should not be printed
	// out when using debug formats, e.g. when the field contains sensitive
	// credentials.
	DebugRedact *bool `protobuf:"varint,3,opt,name=debug_redact,json=debugRedact,def=0" json:"debug_redact,omitempty"`
	// Information about the support window of a feature value.
	FeatureSupport *FieldOptions_FeatureSupport `protobuf:"bytes,4,opt,name=feature_support,json=featureSupport" json:"feature_support,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 deprecated

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

Deprecated: Use EnumValueOptions.ProtoReflect.Descriptor instead.

func (*EnumValueOptions) GetDebugRedact added in v1.32.0

func (x *EnumValueOptions) GetDebugRedact() bool

func (*EnumValueOptions) GetDeprecated

func (x *EnumValueOptions) GetDeprecated() bool

func (*EnumValueOptions) GetFeatureSupport added in v1.34.2

func (x *EnumValueOptions) GetFeatureSupport() *FieldOptions_FeatureSupport

func (*EnumValueOptions) GetFeatures added in v1.32.0

func (x *EnumValueOptions) GetFeatures() *FeatureSet

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"`
	// For external users: DO NOT USE. We are in the process of open sourcing
	// extension declaration and executing internal cleanups before it can be
	// used externally.
	Declaration []*ExtensionRangeOptions_Declaration `protobuf:"bytes,2,rep,name=declaration" json:"declaration,omitempty"`
	// Any features defined in the specific edition.
	Features *FeatureSet `protobuf:"bytes,50,opt,name=features" json:"features,omitempty"`
	// The verification state of the range.
	// TODO: flip the default to DECLARATION once all empty ranges
	// are marked as UNVERIFIED.
	Verification *ExtensionRangeOptions_VerificationState `` /* 138-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ExtensionRangeOptions) Descriptor deprecated

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

Deprecated: Use ExtensionRangeOptions.ProtoReflect.Descriptor instead.

func (*ExtensionRangeOptions) GetDeclaration added in v1.31.0

func (*ExtensionRangeOptions) GetFeatures added in v1.32.0

func (x *ExtensionRangeOptions) GetFeatures() *FeatureSet

func (*ExtensionRangeOptions) GetUninterpretedOption

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

func (*ExtensionRangeOptions) GetVerification added in v1.31.0

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 ExtensionRangeOptions_Declaration added in v1.31.0

type ExtensionRangeOptions_Declaration struct {

	// The extension number declared within the extension range.
	Number *int32 `protobuf:"varint,1,opt,name=number" json:"number,omitempty"`
	// The fully-qualified name of the extension field. There must be a leading
	// dot in front of the full name.
	FullName *string `protobuf:"bytes,2,opt,name=full_name,json=fullName" json:"full_name,omitempty"`
	// The fully-qualified type name of the extension field. Unlike
	// Metadata.type, Declaration.type must have a leading dot for messages
	// and enums.
	Type *string `protobuf:"bytes,3,opt,name=type" json:"type,omitempty"`
	// If true, indicates that the number is reserved in the extension range,
	// and any extension field with the number will fail to compile. Set this
	// when a declared extension field is deleted.
	Reserved *bool `protobuf:"varint,5,opt,name=reserved" json:"reserved,omitempty"`
	// If true, indicates that the extension must be defined as repeated.
	// Otherwise the extension must be defined as optional.
	Repeated *bool `protobuf:"varint,6,opt,name=repeated" json:"repeated,omitempty"`
	// contains filtered or unexported fields
}

func (*ExtensionRangeOptions_Declaration) Descriptor deprecated added in v1.31.0

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

Deprecated: Use ExtensionRangeOptions_Declaration.ProtoReflect.Descriptor instead.

func (*ExtensionRangeOptions_Declaration) GetFullName added in v1.31.0

func (x *ExtensionRangeOptions_Declaration) GetFullName() string

func (*ExtensionRangeOptions_Declaration) GetNumber added in v1.31.0

func (*ExtensionRangeOptions_Declaration) GetRepeated added in v1.31.0

func (x *ExtensionRangeOptions_Declaration) GetRepeated() bool

func (*ExtensionRangeOptions_Declaration) GetReserved added in v1.31.0

func (x *ExtensionRangeOptions_Declaration) GetReserved() bool

func (*ExtensionRangeOptions_Declaration) GetType added in v1.31.0

func (*ExtensionRangeOptions_Declaration) ProtoMessage added in v1.31.0

func (*ExtensionRangeOptions_Declaration) ProtoMessage()

func (*ExtensionRangeOptions_Declaration) ProtoReflect added in v1.31.0

func (*ExtensionRangeOptions_Declaration) Reset added in v1.31.0

func (*ExtensionRangeOptions_Declaration) String added in v1.31.0

type ExtensionRangeOptions_VerificationState added in v1.31.0

type ExtensionRangeOptions_VerificationState int32

The verification state of the extension range.

const (
	// All the extensions of the range must be declared.
	ExtensionRangeOptions_DECLARATION ExtensionRangeOptions_VerificationState = 0
	ExtensionRangeOptions_UNVERIFIED  ExtensionRangeOptions_VerificationState = 1
)

func (ExtensionRangeOptions_VerificationState) Descriptor added in v1.31.0

func (ExtensionRangeOptions_VerificationState) Enum added in v1.31.0

func (ExtensionRangeOptions_VerificationState) EnumDescriptor deprecated added in v1.31.0

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

Deprecated: Use ExtensionRangeOptions_VerificationState.Descriptor instead.

func (ExtensionRangeOptions_VerificationState) Number added in v1.31.0

func (ExtensionRangeOptions_VerificationState) String added in v1.31.0

func (ExtensionRangeOptions_VerificationState) Type added in v1.31.0

func (*ExtensionRangeOptions_VerificationState) UnmarshalJSON deprecated added in v1.31.0

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

Deprecated: Do not use.

type FeatureSet added in v1.32.0

type FeatureSet struct {
	FieldPresence         *FeatureSet_FieldPresence         `` /* 140-byte string literal not displayed */
	EnumType              *FeatureSet_EnumType              `protobuf:"varint,2,opt,name=enum_type,json=enumType,enum=google.protobuf.FeatureSet_EnumType" json:"enum_type,omitempty"`
	RepeatedFieldEncoding *FeatureSet_RepeatedFieldEncoding `` /* 174-byte string literal not displayed */
	Utf8Validation        *FeatureSet_Utf8Validation        `` /* 144-byte string literal not displayed */
	MessageEncoding       *FeatureSet_MessageEncoding       `` /* 148-byte string literal not displayed */
	JsonFormat            *FeatureSet_JsonFormat            `` /* 128-byte string literal not displayed */
	// contains filtered or unexported fields
}

TODO Enums in C++ gencode (and potentially other languages) are not well scoped. This means that each of the feature enums below can clash with each other. The short names we've chosen maximize call-site readability, but leave us very open to this scenario. A future feature will be designed and implemented to handle this, hopefully before we ever hit a conflict here.

func (*FeatureSet) Descriptor deprecated added in v1.32.0

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

Deprecated: Use FeatureSet.ProtoReflect.Descriptor instead.

func (*FeatureSet) GetEnumType added in v1.32.0

func (x *FeatureSet) GetEnumType() FeatureSet_EnumType

func (*FeatureSet) GetFieldPresence added in v1.32.0

func (x *FeatureSet) GetFieldPresence() FeatureSet_FieldPresence

func (*FeatureSet) GetJsonFormat added in v1.32.0

func (x *FeatureSet) GetJsonFormat() FeatureSet_JsonFormat

func (*FeatureSet) GetMessageEncoding added in v1.32.0

func (x *FeatureSet) GetMessageEncoding() FeatureSet_MessageEncoding

func (*FeatureSet) GetRepeatedFieldEncoding added in v1.32.0

func (x *FeatureSet) GetRepeatedFieldEncoding() FeatureSet_RepeatedFieldEncoding

func (*FeatureSet) GetUtf8Validation added in v1.32.0

func (x *FeatureSet) GetUtf8Validation() FeatureSet_Utf8Validation

func (*FeatureSet) ProtoMessage added in v1.32.0

func (*FeatureSet) ProtoMessage()

func (*FeatureSet) ProtoReflect added in v1.32.0

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

func (*FeatureSet) Reset added in v1.32.0

func (x *FeatureSet) Reset()

func (*FeatureSet) String added in v1.32.0

func (x *FeatureSet) String() string

type FeatureSetDefaults added in v1.32.0

type FeatureSetDefaults struct {
	Defaults []*FeatureSetDefaults_FeatureSetEditionDefault `protobuf:"bytes,1,rep,name=defaults" json:"defaults,omitempty"`
	// The minimum supported edition (inclusive) when this was constructed.
	// Editions before this will not have defaults.
	MinimumEdition *Edition `` /* 126-byte string literal not displayed */
	// The maximum known edition (inclusive) when this was constructed. Editions
	// after this will not have reliable defaults.
	MaximumEdition *Edition `` /* 126-byte string literal not displayed */
	// contains filtered or unexported fields
}

A compiled specification for the defaults of a set of features. These messages are generated from FeatureSet extensions and can be used to seed feature resolution. The resolution with this object becomes a simple search for the closest matching edition, followed by proto merges.

func (*FeatureSetDefaults) Descriptor deprecated added in v1.32.0

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

Deprecated: Use FeatureSetDefaults.ProtoReflect.Descriptor instead.

func (*FeatureSetDefaults) GetDefaults added in v1.32.0

func (*FeatureSetDefaults) GetMaximumEdition added in v1.32.0

func (x *FeatureSetDefaults) GetMaximumEdition() Edition

func (*FeatureSetDefaults) GetMinimumEdition added in v1.32.0

func (x *FeatureSetDefaults) GetMinimumEdition() Edition

func (*FeatureSetDefaults) ProtoMessage added in v1.32.0

func (*FeatureSetDefaults) ProtoMessage()

func (*FeatureSetDefaults) ProtoReflect added in v1.32.0

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

func (*FeatureSetDefaults) Reset added in v1.32.0

func (x *FeatureSetDefaults) Reset()

func (*FeatureSetDefaults) String added in v1.32.0

func (x *FeatureSetDefaults) String() string

type FeatureSetDefaults_FeatureSetEditionDefault added in v1.32.0

type FeatureSetDefaults_FeatureSetEditionDefault struct {
	Edition *Edition `protobuf:"varint,3,opt,name=edition,enum=google.protobuf.Edition" json:"edition,omitempty"`
	// Defaults of features that can be overridden in this edition.
	OverridableFeatures *FeatureSet `protobuf:"bytes,4,opt,name=overridable_features,json=overridableFeatures" json:"overridable_features,omitempty"`
	// Defaults of features that can't be overridden in this edition.
	FixedFeatures *FeatureSet `protobuf:"bytes,5,opt,name=fixed_features,json=fixedFeatures" json:"fixed_features,omitempty"`
	// contains filtered or unexported fields
}

A map from every known edition with a unique set of defaults to its defaults. Not all editions may be contained here. For a given edition, the defaults at the closest matching edition ordered at or before it should be used. This field must be in strict ascending order by edition.

func (*FeatureSetDefaults_FeatureSetEditionDefault) Descriptor deprecated added in v1.32.0

Deprecated: Use FeatureSetDefaults_FeatureSetEditionDefault.ProtoReflect.Descriptor instead.

func (*FeatureSetDefaults_FeatureSetEditionDefault) GetEdition added in v1.32.0

func (*FeatureSetDefaults_FeatureSetEditionDefault) GetFixedFeatures added in v1.34.1

func (*FeatureSetDefaults_FeatureSetEditionDefault) GetOverridableFeatures added in v1.34.1

func (x *FeatureSetDefaults_FeatureSetEditionDefault) GetOverridableFeatures() *FeatureSet

func (*FeatureSetDefaults_FeatureSetEditionDefault) ProtoMessage added in v1.32.0

func (*FeatureSetDefaults_FeatureSetEditionDefault) ProtoReflect added in v1.32.0

func (*FeatureSetDefaults_FeatureSetEditionDefault) Reset added in v1.32.0

func (*FeatureSetDefaults_FeatureSetEditionDefault) String added in v1.32.0

type FeatureSet_EnumType added in v1.32.0

type FeatureSet_EnumType int32
const (
	FeatureSet_ENUM_TYPE_UNKNOWN FeatureSet_EnumType = 0
	FeatureSet_OPEN              FeatureSet_EnumType = 1
	FeatureSet_CLOSED            FeatureSet_EnumType = 2
)

func (FeatureSet_EnumType) Descriptor added in v1.32.0

func (FeatureSet_EnumType) Enum added in v1.32.0

func (FeatureSet_EnumType) EnumDescriptor deprecated added in v1.32.0

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

Deprecated: Use FeatureSet_EnumType.Descriptor instead.

func (FeatureSet_EnumType) Number added in v1.32.0

func (FeatureSet_EnumType) String added in v1.32.0

func (x FeatureSet_EnumType) String() string

func (FeatureSet_EnumType) Type added in v1.32.0

func (*FeatureSet_EnumType) UnmarshalJSON deprecated added in v1.32.0

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

Deprecated: Do not use.

type FeatureSet_FieldPresence added in v1.32.0

type FeatureSet_FieldPresence int32
const (
	FeatureSet_FIELD_PRESENCE_UNKNOWN FeatureSet_FieldPresence = 0
	FeatureSet_EXPLICIT               FeatureSet_FieldPresence = 1
	FeatureSet_IMPLICIT               FeatureSet_FieldPresence = 2
	FeatureSet_LEGACY_REQUIRED        FeatureSet_FieldPresence = 3
)

func (FeatureSet_FieldPresence) Descriptor added in v1.32.0

func (FeatureSet_FieldPresence) Enum added in v1.32.0

func (FeatureSet_FieldPresence) EnumDescriptor deprecated added in v1.32.0

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

Deprecated: Use FeatureSet_FieldPresence.Descriptor instead.

func (FeatureSet_FieldPresence) Number added in v1.32.0

func (FeatureSet_FieldPresence) String added in v1.32.0

func (x FeatureSet_FieldPresence) String() string

func (FeatureSet_FieldPresence) Type added in v1.32.0

func (*FeatureSet_FieldPresence) UnmarshalJSON deprecated added in v1.32.0

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

Deprecated: Do not use.

type FeatureSet_JsonFormat added in v1.32.0

type FeatureSet_JsonFormat int32
const (
	FeatureSet_JSON_FORMAT_UNKNOWN FeatureSet_JsonFormat = 0
	FeatureSet_ALLOW               FeatureSet_JsonFormat = 1
	FeatureSet_LEGACY_BEST_EFFORT  FeatureSet_JsonFormat = 2
)

func (FeatureSet_JsonFormat) Descriptor added in v1.32.0

func (FeatureSet_JsonFormat) Enum added in v1.32.0

func (FeatureSet_JsonFormat) EnumDescriptor deprecated added in v1.32.0

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

Deprecated: Use FeatureSet_JsonFormat.Descriptor instead.

func (FeatureSet_JsonFormat) Number added in v1.32.0

func (FeatureSet_JsonFormat) String added in v1.32.0

func (x FeatureSet_JsonFormat) String() string

func (FeatureSet_JsonFormat) Type added in v1.32.0

func (*FeatureSet_JsonFormat) UnmarshalJSON deprecated added in v1.32.0

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

Deprecated: Do not use.

type FeatureSet_MessageEncoding added in v1.32.0

type FeatureSet_MessageEncoding int32
const (
	FeatureSet_MESSAGE_ENCODING_UNKNOWN FeatureSet_MessageEncoding = 0
	FeatureSet_LENGTH_PREFIXED          FeatureSet_MessageEncoding = 1
	FeatureSet_DELIMITED                FeatureSet_MessageEncoding = 2
)

func (FeatureSet_MessageEncoding) Descriptor added in v1.32.0

func (FeatureSet_MessageEncoding) Enum added in v1.32.0

func (FeatureSet_MessageEncoding) EnumDescriptor deprecated added in v1.32.0

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

Deprecated: Use FeatureSet_MessageEncoding.Descriptor instead.

func (FeatureSet_MessageEncoding) Number added in v1.32.0

func (FeatureSet_MessageEncoding) String added in v1.32.0

func (FeatureSet_MessageEncoding) Type added in v1.32.0

func (*FeatureSet_MessageEncoding) UnmarshalJSON deprecated added in v1.32.0

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

Deprecated: Do not use.

type FeatureSet_RepeatedFieldEncoding added in v1.32.0

type FeatureSet_RepeatedFieldEncoding int32
const (
	FeatureSet_REPEATED_FIELD_ENCODING_UNKNOWN FeatureSet_RepeatedFieldEncoding = 0
	FeatureSet_PACKED                          FeatureSet_RepeatedFieldEncoding = 1
	FeatureSet_EXPANDED                        FeatureSet_RepeatedFieldEncoding = 2
)

func (FeatureSet_RepeatedFieldEncoding) Descriptor added in v1.32.0

func (FeatureSet_RepeatedFieldEncoding) Enum added in v1.32.0

func (FeatureSet_RepeatedFieldEncoding) EnumDescriptor deprecated added in v1.32.0

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

Deprecated: Use FeatureSet_RepeatedFieldEncoding.Descriptor instead.

func (FeatureSet_RepeatedFieldEncoding) Number added in v1.32.0

func (FeatureSet_RepeatedFieldEncoding) String added in v1.32.0

func (FeatureSet_RepeatedFieldEncoding) Type added in v1.32.0

func (*FeatureSet_RepeatedFieldEncoding) UnmarshalJSON deprecated added in v1.32.0

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

Deprecated: Do not use.

type FeatureSet_Utf8Validation added in v1.32.0

type FeatureSet_Utf8Validation int32
const (
	FeatureSet_UTF8_VALIDATION_UNKNOWN FeatureSet_Utf8Validation = 0
	FeatureSet_VERIFY                  FeatureSet_Utf8Validation = 2
	FeatureSet_NONE                    FeatureSet_Utf8Validation = 3
)

func (FeatureSet_Utf8Validation) Descriptor added in v1.32.0

func (FeatureSet_Utf8Validation) Enum added in v1.32.0

func (FeatureSet_Utf8Validation) EnumDescriptor deprecated added in v1.32.0

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

Deprecated: Use FeatureSet_Utf8Validation.Descriptor instead.

func (FeatureSet_Utf8Validation) Number added in v1.32.0

func (FeatureSet_Utf8Validation) String added in v1.32.0

func (x FeatureSet_Utf8Validation) String() string

func (FeatureSet_Utf8Validation) Type added in v1.32.0

func (*FeatureSet_Utf8Validation) UnmarshalJSON deprecated added in v1.32.0

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

Deprecated: Do not use.

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.
	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 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 deprecated

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 (*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 added in v1.22.0

func (x *FieldDescriptorProto) GetProto3Optional() bool

func (*FieldDescriptorProto) GetType

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_REPEATED FieldDescriptorProto_Label = 3
	// The required label is only allowed in google.protobuf.  In proto3 and Editions
	// it's explicitly prohibited.  In Editions, the `field_presence` feature
	// can be used to get this behavior.
	FieldDescriptorProto_LABEL_REQUIRED FieldDescriptorProto_Label = 2
)

func (FieldDescriptorProto_Label) Descriptor

func (FieldDescriptorProto_Label) Enum

func (FieldDescriptorProto_Label) EnumDescriptor deprecated

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

Deprecated: Use FieldDescriptorProto_Label.Descriptor instead.

func (FieldDescriptorProto_Label) Number

func (FieldDescriptorProto_Label) String

func (FieldDescriptorProto_Label) Type

func (*FieldDescriptorProto_Label) UnmarshalJSON deprecated

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 after google.protobuf. However, Proto3
	// implementations should still be able to parse the group wire format and
	// treat group fields as unknown fields.  In Editions, the group wire format
	// can be enabled via the `message_encoding` feature.
	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) Enum

func (FieldDescriptorProto_Type) EnumDescriptor deprecated

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

Deprecated: Use FieldDescriptorProto_Type.Descriptor instead.

func (FieldDescriptorProto_Type) Number

func (FieldDescriptorProto_Type) String

func (x FieldDescriptorProto_Type) String() string

func (FieldDescriptorProto_Type) Type

func (*FieldDescriptorProto_Type) UnmarshalJSON deprecated

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 only implemented to support use of
	// [ctype=CORD] and [ctype=STRING] (the default) on non-repeated fields of
	// type "bytes" in the open source release -- sorry, we'll try to include
	// other types 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.  This option is prohibited in
	// Editions, but the `repeated_field_encoding` feature can be used to control
	// the behavior.
	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 lazy message fields are still eagerly verified to check
	// ill-formed wireformat or missing required fields. Calling IsInitialized()
	// on the outer message would fail if the inner message has missing required
	// fields. Failed verification would result in parsing failure (except when
	// uninitialized messages are acceptable).
	Lazy *bool `protobuf:"varint,5,opt,name=lazy,def=0" json:"lazy,omitempty"`
	// unverified_lazy does no correctness checks on the byte stream. This should
	// only be used where lazy with verification is prohibitive for performance
	// reasons.
	UnverifiedLazy *bool `protobuf:"varint,15,opt,name=unverified_lazy,json=unverifiedLazy,def=0" json:"unverified_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"`
	// Indicate that the field value should not be printed out when using debug
	// formats, e.g. when the field contains sensitive credentials.
	DebugRedact     *bool                           `protobuf:"varint,16,opt,name=debug_redact,json=debugRedact,def=0" json:"debug_redact,omitempty"`
	Retention       *FieldOptions_OptionRetention   `protobuf:"varint,17,opt,name=retention,enum=google.protobuf.FieldOptions_OptionRetention" json:"retention,omitempty"`
	Targets         []FieldOptions_OptionTargetType `protobuf:"varint,19,rep,name=targets,enum=google.protobuf.FieldOptions_OptionTargetType" json:"targets,omitempty"`
	EditionDefaults []*FieldOptions_EditionDefault  `protobuf:"bytes,20,rep,name=edition_defaults,json=editionDefaults" json:"edition_defaults,omitempty"`
	// Any features defined in the specific edition.
	Features       *FeatureSet                  `protobuf:"bytes,21,opt,name=features" json:"features,omitempty"`
	FeatureSupport *FieldOptions_FeatureSupport `protobuf:"bytes,22,opt,name=feature_support,json=featureSupport" json:"feature_support,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 deprecated

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

Deprecated: Use FieldOptions.ProtoReflect.Descriptor instead.

func (*FieldOptions) GetCtype

func (x *FieldOptions) GetCtype() FieldOptions_CType

func (*FieldOptions) GetDebugRedact added in v1.29.0

func (x *FieldOptions) GetDebugRedact() bool

func (*FieldOptions) GetDeprecated

func (x *FieldOptions) GetDeprecated() bool

func (*FieldOptions) GetEditionDefaults added in v1.32.0

func (x *FieldOptions) GetEditionDefaults() []*FieldOptions_EditionDefault

func (*FieldOptions) GetFeatureSupport added in v1.34.1

func (x *FieldOptions) GetFeatureSupport() *FieldOptions_FeatureSupport

func (*FieldOptions) GetFeatures added in v1.32.0

func (x *FieldOptions) GetFeatures() *FeatureSet

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) GetRetention added in v1.29.0

func (x *FieldOptions) GetRetention() FieldOptions_OptionRetention

func (*FieldOptions) GetTargets added in v1.31.0

func (x *FieldOptions) GetTargets() []FieldOptions_OptionTargetType

func (*FieldOptions) GetUninterpretedOption

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

func (*FieldOptions) GetUnverifiedLazy added in v1.29.0

func (x *FieldOptions) GetUnverifiedLazy() bool

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
	// The option [ctype=CORD] may be applied to a non-repeated field of type
	// "bytes". It indicates that in C++, the data should be stored in a Cord
	// instead of a string.  For very large strings, this may reduce memory
	// fragmentation. It may also allow better performance when parsing from a
	// Cord, or when parsing with aliasing enabled, as the parsed Cord may then
	// alias the original buffer.
	FieldOptions_CORD         FieldOptions_CType = 1
	FieldOptions_STRING_PIECE FieldOptions_CType = 2
)

func (FieldOptions_CType) Descriptor

func (FieldOptions_CType) Enum

func (FieldOptions_CType) EnumDescriptor deprecated

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

Deprecated: Use FieldOptions_CType.Descriptor instead.

func (FieldOptions_CType) Number

func (FieldOptions_CType) String

func (x FieldOptions_CType) String() string

func (FieldOptions_CType) Type

func (*FieldOptions_CType) UnmarshalJSON deprecated

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

Deprecated: Do not use.

type FieldOptions_EditionDefault added in v1.32.0

type FieldOptions_EditionDefault struct {
	Edition *Edition `protobuf:"varint,3,opt,name=edition,enum=google.protobuf.Edition" json:"edition,omitempty"`
	Value   *string  `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"` // Textproto value.
	// contains filtered or unexported fields
}

func (*FieldOptions_EditionDefault) Descriptor deprecated added in v1.32.0

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

Deprecated: Use FieldOptions_EditionDefault.ProtoReflect.Descriptor instead.

func (*FieldOptions_EditionDefault) GetEdition added in v1.32.0

func (x *FieldOptions_EditionDefault) GetEdition() Edition

func (*FieldOptions_EditionDefault) GetValue added in v1.32.0

func (x *FieldOptions_EditionDefault) GetValue() string

func (*FieldOptions_EditionDefault) ProtoMessage added in v1.32.0

func (*FieldOptions_EditionDefault) ProtoMessage()

func (*FieldOptions_EditionDefault) ProtoReflect added in v1.32.0

func (*FieldOptions_EditionDefault) Reset added in v1.32.0

func (x *FieldOptions_EditionDefault) Reset()

func (*FieldOptions_EditionDefault) String added in v1.32.0

func (x *FieldOptions_EditionDefault) String() string

type FieldOptions_FeatureSupport added in v1.34.1

type FieldOptions_FeatureSupport struct {

	// The edition that this feature was first available in.  In editions
	// earlier than this one, the default assigned to EDITION_LEGACY will be
	// used, and proto files will not be able to override it.
	EditionIntroduced *Edition `` /* 135-byte string literal not displayed */
	// The edition this feature becomes deprecated in.  Using this after this
	// edition may trigger warnings.
	EditionDeprecated *Edition `` /* 135-byte string literal not displayed */
	// The deprecation warning text if this feature is used after the edition it
	// was marked deprecated in.
	DeprecationWarning *string `protobuf:"bytes,3,opt,name=deprecation_warning,json=deprecationWarning" json:"deprecation_warning,omitempty"`
	// The edition this feature is no longer available in.  In editions after
	// this one, the last default assigned will be used, and proto files will
	// not be able to override it.
	EditionRemoved *Edition `` /* 126-byte string literal not displayed */
	// contains filtered or unexported fields
}

Information about the support window of a feature.

func (*FieldOptions_FeatureSupport) Descriptor deprecated added in v1.34.1

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

Deprecated: Use FieldOptions_FeatureSupport.ProtoReflect.Descriptor instead.

func (*FieldOptions_FeatureSupport) GetDeprecationWarning added in v1.34.1

func (x *FieldOptions_FeatureSupport) GetDeprecationWarning() string

func (*FieldOptions_FeatureSupport) GetEditionDeprecated added in v1.34.1

func (x *FieldOptions_FeatureSupport) GetEditionDeprecated() Edition

func (*FieldOptions_FeatureSupport) GetEditionIntroduced added in v1.34.1

func (x *FieldOptions_FeatureSupport) GetEditionIntroduced() Edition

func (*FieldOptions_FeatureSupport) GetEditionRemoved added in v1.34.1

func (x *FieldOptions_FeatureSupport) GetEditionRemoved() Edition

func (*FieldOptions_FeatureSupport) ProtoMessage added in v1.34.1

func (*FieldOptions_FeatureSupport) ProtoMessage()

func (*FieldOptions_FeatureSupport) ProtoReflect added in v1.34.1

func (*FieldOptions_FeatureSupport) Reset added in v1.34.1

func (x *FieldOptions_FeatureSupport) Reset()

func (*FieldOptions_FeatureSupport) String added in v1.34.1

func (x *FieldOptions_FeatureSupport) String() string

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) Enum

func (FieldOptions_JSType) EnumDescriptor deprecated

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

Deprecated: Use FieldOptions_JSType.Descriptor instead.

func (FieldOptions_JSType) Number

func (FieldOptions_JSType) String

func (x FieldOptions_JSType) String() string

func (FieldOptions_JSType) Type

func (*FieldOptions_JSType) UnmarshalJSON deprecated

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

Deprecated: Do not use.

type FieldOptions_OptionRetention added in v1.29.0

type FieldOptions_OptionRetention int32

If set to RETENTION_SOURCE, the option will be omitted from the binary. Note: as of January 2023, support for this is in progress and does not yet have an effect (b/264593489).

const (
	FieldOptions_RETENTION_UNKNOWN FieldOptions_OptionRetention = 0
	FieldOptions_RETENTION_RUNTIME FieldOptions_OptionRetention = 1
	FieldOptions_RETENTION_SOURCE  FieldOptions_OptionRetention = 2
)

func (FieldOptions_OptionRetention) Descriptor added in v1.29.0

func (FieldOptions_OptionRetention) Enum added in v1.29.0

func (FieldOptions_OptionRetention) EnumDescriptor deprecated added in v1.29.0

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

Deprecated: Use FieldOptions_OptionRetention.Descriptor instead.

func (FieldOptions_OptionRetention) Number added in v1.29.0

func (FieldOptions_OptionRetention) String added in v1.29.0

func (FieldOptions_OptionRetention) Type added in v1.29.0

func (*FieldOptions_OptionRetention) UnmarshalJSON deprecated added in v1.29.0

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

Deprecated: Do not use.

type FieldOptions_OptionTargetType added in v1.29.0

type FieldOptions_OptionTargetType int32

This indicates the types of entities that the field may apply to when used as an option. If it is unset, then the field may be freely used as an option on any kind of entity. Note: as of January 2023, support for this is in progress and does not yet have an effect (b/264593489).

const (
	FieldOptions_TARGET_TYPE_UNKNOWN         FieldOptions_OptionTargetType = 0
	FieldOptions_TARGET_TYPE_FILE            FieldOptions_OptionTargetType = 1
	FieldOptions_TARGET_TYPE_EXTENSION_RANGE FieldOptions_OptionTargetType = 2
	FieldOptions_TARGET_TYPE_MESSAGE         FieldOptions_OptionTargetType = 3
	FieldOptions_TARGET_TYPE_FIELD           FieldOptions_OptionTargetType = 4
	FieldOptions_TARGET_TYPE_ONEOF           FieldOptions_OptionTargetType = 5
	FieldOptions_TARGET_TYPE_ENUM            FieldOptions_OptionTargetType = 6
	FieldOptions_TARGET_TYPE_ENUM_ENTRY      FieldOptions_OptionTargetType = 7
	FieldOptions_TARGET_TYPE_SERVICE         FieldOptions_OptionTargetType = 8
	FieldOptions_TARGET_TYPE_METHOD          FieldOptions_OptionTargetType = 9
)

func (FieldOptions_OptionTargetType) Descriptor added in v1.29.0

func (FieldOptions_OptionTargetType) Enum added in v1.29.0

func (FieldOptions_OptionTargetType) EnumDescriptor deprecated added in v1.29.0

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

Deprecated: Use FieldOptions_OptionTargetType.Descriptor instead.

func (FieldOptions_OptionTargetType) Number added in v1.29.0

func (FieldOptions_OptionTargetType) String added in v1.29.0

func (FieldOptions_OptionTargetType) Type added in v1.29.0

func (*FieldOptions_OptionTargetType) UnmarshalJSON deprecated added in v1.29.0

func (x *FieldOptions_OptionTargetType) 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", "proto3", and "editions".
	//
	// If `edition` is present, this value must be "editions".
	Syntax *string `protobuf:"bytes,12,opt,name=syntax" json:"syntax,omitempty"`
	// The edition of the proto file.
	Edition *Edition `protobuf:"varint,14,opt,name=edition,enum=google.protobuf.Edition" json:"edition,omitempty"`
	// contains filtered or unexported fields
}

Describes a complete .proto file.

func (*FileDescriptorProto) Descriptor deprecated

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

Deprecated: Use FileDescriptorProto.ProtoReflect.Descriptor instead.

func (*FileDescriptorProto) GetDependency

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

func (*FileDescriptorProto) GetEdition added in v1.29.0

func (x *FileDescriptorProto) GetEdition() Edition

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 deprecated

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 {

	// Sets the Java package where classes generated from this .proto will be
	// placed.  By default, the proto package is used, but this is often
	// inappropriate because proto packages do not normally start with backwards
	// domain names.
	JavaPackage *string `protobuf:"bytes,1,opt,name=java_package,json=javaPackage" json:"java_package,omitempty"`
	// Controls the name of the wrapper Java class generated for the .proto file.
	// That class will always contain the .proto file's getDescriptor() method as
	// well as any top-level extensions defined in the .proto file.
	// If java_multiple_files is disabled, then all the other classes from the
	// .proto file will be nested inside the single wrapper outer class.
	JavaOuterClassname *string `protobuf:"bytes,8,opt,name=java_outer_classname,json=javaOuterClassname" json:"java_outer_classname,omitempty"`
	// If enabled, then the Java code generator will generate a separate .java
	// file for each top-level message, enum, and service defined in the .proto
	// file.  Thus, these types will *not* be nested inside the wrapper class
	// named by java_outer_classname.  However, the wrapper class will still be
	// generated to contain the file's getDescriptor() method as well as any
	// top-level extensions defined in the file.
	JavaMultipleFiles *bool `protobuf:"varint,10,opt,name=java_multiple_files,json=javaMultipleFiles,def=0" json:"java_multiple_files,omitempty"`
	// This option does nothing.
	//
	// Deprecated: Marked as deprecated in google/protobuf/descriptor.proto.
	JavaGenerateEqualsAndHash *bool `` /* 137-byte string literal not displayed */
	// A proto2 file can set this to true to opt in to UTF-8 checking for Java,
	// which will throw an exception if invalid UTF-8 is parsed from the wire or
	// assigned to a string field.
	//
	// TODO: clarify exactly what kinds of field types this option
	// applies to, and update these docs accordingly.
	//
	// Proto3 files already perform these checks. Setting the option explicitly to
	// false has no effect: it cannot be used to opt proto3 files out of UTF-8
	// checks.
	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 */
	// Sets the Go package where structs generated from this .proto will be
	// placed. If omitted, the Go package will be derived from the following:
	//   - The basename of the package import path, if provided.
	//   - Otherwise, the package statement in the .proto file, if present.
	//   - Otherwise, the basename of the .proto file, without extension.
	GoPackage *string `protobuf:"bytes,11,opt,name=go_package,json=goPackage" json:"go_package,omitempty"`
	// Should generic services be generated in each language?  "Generic" services
	// are not specific to any particular RPC system.  They are generated by the
	// main code generators in each language (without additional plugins).
	// Generic services were the only kind of service generation supported by
	// early versions of google.protobuf.
	//
	// Generic services are now considered deprecated in favor of using plugins
	// that generate code specific to your particular RPC system.  Therefore,
	// these default to false.  Old code which depends on generic services should
	// explicitly set them to true.
	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"`
	// Is this file deprecated?
	// Depending on the target platform, this can emit Deprecated annotations
	// for everything in the file, or it will be completely ignored; in the very
	// least, this is a formalization for deprecating files.
	Deprecated *bool `protobuf:"varint,23,opt,name=deprecated,def=0" json:"deprecated,omitempty"`
	// Enables the use of arenas for the proto messages in this file. This applies
	// only to generated classes for C++.
	CcEnableArenas *bool `protobuf:"varint,31,opt,name=cc_enable_arenas,json=ccEnableArenas,def=1" json:"cc_enable_arenas,omitempty"`
	// Sets the objective c class prefix which is prepended to all objective c
	// generated classes from this .proto. There is no default.
	ObjcClassPrefix *string `protobuf:"bytes,36,opt,name=objc_class_prefix,json=objcClassPrefix" json:"objc_class_prefix,omitempty"`
	// Namespace for generated classes; defaults to the package.
	CsharpNamespace *string `protobuf:"bytes,37,opt,name=csharp_namespace,json=csharpNamespace" json:"csharp_namespace,omitempty"`
	// By default Swift generators will take the proto package and CamelCase it
	// replacing '.' with underscore and use that to prefix the types/symbols
	// defined. When this options is provided, they will use this value instead
	// to prefix the types/symbols defined.
	SwiftPrefix *string `protobuf:"bytes,39,opt,name=swift_prefix,json=swiftPrefix" json:"swift_prefix,omitempty"`
	// Sets the php class prefix which is prepended to all php generated classes
	// from this .proto. Default is empty.
	PhpClassPrefix *string `protobuf:"bytes,40,opt,name=php_class_prefix,json=phpClassPrefix" json:"php_class_prefix,omitempty"`
	// Use this option to change the namespace of php generated classes. Default
	// is empty. When this option is empty, the package name will be used for
	// determining the namespace.
	PhpNamespace *string `protobuf:"bytes,41,opt,name=php_namespace,json=phpNamespace" json:"php_namespace,omitempty"`
	// Use this option to change the namespace of php generated metadata classes.
	// Default is empty. When this option is empty, the proto file name will be
	// used for determining the namespace.
	PhpMetadataNamespace *string `protobuf:"bytes,44,opt,name=php_metadata_namespace,json=phpMetadataNamespace" json:"php_metadata_namespace,omitempty"`
	// Use this option to change the package of ruby generated classes. Default
	// is empty. When this option is not set, the package name will be used for
	// determining the ruby package.
	RubyPackage *string `protobuf:"bytes,45,opt,name=ruby_package,json=rubyPackage" json:"ruby_package,omitempty"`
	// Any features defined in the specific edition.
	Features *FeatureSet `protobuf:"bytes,50,opt,name=features" json:"features,omitempty"`
	// The parser stores options it doesn't recognize here.
	// See the documentation for the "Options" section above.
	UninterpretedOption []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option,json=uninterpretedOption" json:"uninterpreted_option,omitempty"`
	// contains filtered or unexported fields
}

func (*FileOptions) Descriptor deprecated

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

Deprecated: Use FileOptions.ProtoReflect.Descriptor 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) GetFeatures added in v1.32.0

func (x *FileOptions) GetFeatures() *FeatureSet

func (*FileOptions) GetGoPackage

func (x *FileOptions) GetGoPackage() string

func (*FileOptions) GetJavaGenerateEqualsAndHash deprecated

func (x *FileOptions) GetJavaGenerateEqualsAndHash() bool

Deprecated: Marked as deprecated in google/protobuf/descriptor.proto.

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) 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) Enum

func (FileOptions_OptimizeMode) EnumDescriptor deprecated

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

Deprecated: Use FileOptions_OptimizeMode.Descriptor instead.

func (FileOptions_OptimizeMode) Number

func (FileOptions_OptimizeMode) String

func (x FileOptions_OptimizeMode) String() string

func (FileOptions_OptimizeMode) Type

func (*FileOptions_OptimizeMode) UnmarshalJSON deprecated

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 deprecated

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 object. 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"`
	Semantic *GeneratedCodeInfo_Annotation_Semantic `protobuf:"varint,5,opt,name=semantic,enum=google.protobuf.GeneratedCodeInfo_Annotation_Semantic" json:"semantic,omitempty"`
	// contains filtered or unexported fields
}

func (*GeneratedCodeInfo_Annotation) Descriptor deprecated

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) GetSemantic added in v1.29.0

func (*GeneratedCodeInfo_Annotation) GetSourceFile

func (x *GeneratedCodeInfo_Annotation) GetSourceFile() string

func (*GeneratedCodeInfo_Annotation) ProtoMessage

func (*GeneratedCodeInfo_Annotation) ProtoMessage()

func (*GeneratedCodeInfo_Annotation) ProtoReflect

func (*GeneratedCodeInfo_Annotation) Reset

func (x *GeneratedCodeInfo_Annotation) Reset()

func (*GeneratedCodeInfo_Annotation) String

type GeneratedCodeInfo_Annotation_Semantic added in v1.29.0

type GeneratedCodeInfo_Annotation_Semantic int32

Represents the identified object's effect on the element in the original .proto file.

const (
	// There is no effect or the effect is indescribable.
	GeneratedCodeInfo_Annotation_NONE GeneratedCodeInfo_Annotation_Semantic = 0
	// The element is set or otherwise mutated.
	GeneratedCodeInfo_Annotation_SET GeneratedCodeInfo_Annotation_Semantic = 1
	// An alias to the element is returned.
	GeneratedCodeInfo_Annotation_ALIAS GeneratedCodeInfo_Annotation_Semantic = 2
)

func (GeneratedCodeInfo_Annotation_Semantic) Descriptor added in v1.29.0

func (GeneratedCodeInfo_Annotation_Semantic) Enum added in v1.29.0

func (GeneratedCodeInfo_Annotation_Semantic) EnumDescriptor deprecated added in v1.29.0

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

Deprecated: Use GeneratedCodeInfo_Annotation_Semantic.Descriptor instead.

func (GeneratedCodeInfo_Annotation_Semantic) Number added in v1.29.0

func (GeneratedCodeInfo_Annotation_Semantic) String added in v1.29.0

func (GeneratedCodeInfo_Annotation_Semantic) Type added in v1.29.0

func (*GeneratedCodeInfo_Annotation_Semantic) UnmarshalJSON deprecated added in v1.29.0

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

Deprecated: Do not use.

type MessageOptions

type MessageOptions struct {

	// Set true to use the old proto1 MessageSet wire format for extensions.
	// This is provided for backwards-compatibility with the MessageSet wire
	// format.  You should not use this for any other reason:  It's less
	// efficient, has fewer features, and is more complicated.
	//
	// The message must be defined exactly as follows:
	//
	//	message Foo {
	//	  option message_set_wire_format = true;
	//	  extensions 4 to max;
	//	}
	//
	// Note that the message cannot have any defined fields; MessageSets only
	// have extensions.
	//
	// All extensions of your type must be singular messages; e.g. they cannot
	// be int32s, enums, or repeated messages.
	//
	// Because this is an option, the above two restrictions are not enforced by
	// the protocol compiler.
	MessageSetWireFormat *bool `protobuf:"varint,1,opt,name=message_set_wire_format,json=messageSetWireFormat,def=0" json:"message_set_wire_format,omitempty"`
	// Disables the generation of the standard "descriptor()" accessor, which can
	// conflict with a field of the same name.  This is meant to make migration
	// from proto1 easier; new code should avoid fields named "descriptor".
	NoStandardDescriptorAccessor *bool `` /* 149-byte string literal not displayed */
	// Is this message deprecated?
	// Depending on the target platform, this can emit Deprecated annotations
	// for the message, or it will be completely ignored; in the very least,
	// this is a formalization for deprecating messages.
	Deprecated *bool `protobuf:"varint,3,opt,name=deprecated,def=0" json:"deprecated,omitempty"`
	// Whether the message is an automatically generated map entry type for the
	// maps field.
	//
	// For maps fields:
	//
	//	map<KeyType, ValueType> map_field = 1;
	//
	// The parsed descriptor looks like:
	//
	//	message MapFieldEntry {
	//	    option map_entry = true;
	//	    optional KeyType key = 1;
	//	    optional ValueType value = 2;
	//	}
	//	repeated MapFieldEntry map_field = 1;
	//
	// Implementations may choose not to generate the map_entry=true message, but
	// use a native map in the target language to hold the keys and values.
	// The reflection APIs in such implementations still need to work as
	// if the field is a repeated message field.
	//
	// NOTE: Do not set the option in .proto files. Always use the maps syntax
	// instead. The option should only be implicitly set by the proto compiler
	// parser.
	MapEntry *bool `protobuf:"varint,7,opt,name=map_entry,json=mapEntry" json:"map_entry,omitempty"`
	// Enable the legacy handling of JSON field name conflicts.  This lowercases
	// and strips underscored from the fields before comparison in proto3 only.
	// The new behavior takes `json_name` into account and applies to proto2 as
	// well.
	//
	// This should only be used as a temporary measure against broken builds due
	// to the change in behavior for JSON field name conflicts.
	//
	// TODO This is legacy behavior we plan to remove once downstream
	// teams have had time to migrate.
	//
	// Deprecated: Marked as deprecated in google/protobuf/descriptor.proto.
	DeprecatedLegacyJsonFieldConflicts *bool `` /* 164-byte string literal not displayed */
	// Any features defined in the specific edition.
	Features *FeatureSet `protobuf:"bytes,12,opt,name=features" json:"features,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 (*MessageOptions) Descriptor deprecated

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

Deprecated: Use MessageOptions.ProtoReflect.Descriptor instead.

func (*MessageOptions) GetDeprecated

func (x *MessageOptions) GetDeprecated() bool

func (*MessageOptions) GetDeprecatedLegacyJsonFieldConflicts deprecated added in v1.29.0

func (x *MessageOptions) GetDeprecatedLegacyJsonFieldConflicts() bool

Deprecated: Marked as deprecated in google/protobuf/descriptor.proto.

func (*MessageOptions) GetFeatures added in v1.32.0

func (x *MessageOptions) GetFeatures() *FeatureSet

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 deprecated

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 {

	// Is this method deprecated?
	// Depending on the target platform, this can emit Deprecated annotations
	// for the method, or it will be completely ignored; in the very least,
	// this is a formalization for deprecating methods.
	Deprecated       *bool                           `protobuf:"varint,33,opt,name=deprecated,def=0" json:"deprecated,omitempty"`
	IdempotencyLevel *MethodOptions_IdempotencyLevel `` /* 162-byte string literal not displayed */
	// Any features defined in the specific edition.
	Features *FeatureSet `protobuf:"bytes,35,opt,name=features" json:"features,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 (*MethodOptions) Descriptor deprecated

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

Deprecated: Use MethodOptions.ProtoReflect.Descriptor instead.

func (*MethodOptions) GetDeprecated

func (x *MethodOptions) GetDeprecated() bool

func (*MethodOptions) GetFeatures added in v1.32.0

func (x *MethodOptions) GetFeatures() *FeatureSet

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) Enum

func (MethodOptions_IdempotencyLevel) EnumDescriptor deprecated

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

Deprecated: Use MethodOptions_IdempotencyLevel.Descriptor instead.

func (MethodOptions_IdempotencyLevel) Number

func (MethodOptions_IdempotencyLevel) String

func (MethodOptions_IdempotencyLevel) Type

func (*MethodOptions_IdempotencyLevel) UnmarshalJSON deprecated

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 deprecated

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 {

	// Any features defined in the specific edition.
	Features *FeatureSet `protobuf:"bytes,1,opt,name=features" json:"features,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 (*OneofOptions) Descriptor deprecated

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

Deprecated: Use OneofOptions.ProtoReflect.Descriptor instead.

func (*OneofOptions) GetFeatures added in v1.32.0

func (x *OneofOptions) GetFeatures() *FeatureSet

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 deprecated

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

Deprecated: Use ServiceDescriptorProto.ProtoReflect.Descriptor instead.

func (*ServiceDescriptorProto) GetMethod

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 {

	// Any features defined in the specific edition.
	Features *FeatureSet `protobuf:"bytes,34,opt,name=features" json:"features,omitempty"`
	// 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 deprecated

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

Deprecated: Use ServiceOptions.ProtoReflect.Descriptor instead.

func (*ServiceOptions) GetDeprecated

func (x *ServiceOptions) GetDeprecated() bool

func (*ServiceOptions) GetFeatures added in v1.32.0

func (x *ServiceOptions) GetFeatures() *FeatureSet

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 deprecated

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 appears.
	// 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 moo.
	//	//
	//	// Another line attached to moo.
	//	optional double moo = 4;
	//
	//	// Detached comment for corge. This is not leading or trailing comments
	//	// to moo 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 deprecated

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 deprecated

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 (*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], ["moo", false] } represents "foo.(bar.baz).moo".

func (*UninterpretedOption_NamePart) Descriptor deprecated

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 (*UninterpretedOption_NamePart) Reset

func (x *UninterpretedOption_NamePart) Reset()

func (*UninterpretedOption_NamePart) String

Jump to

Keyboard shortcuts

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