public static enum DescriptorProtos.Edition extends Enum<DescriptorProtos.Edition> implements ProtocolMessageEnum
The full set of known editions.Protobuf enum
google.protobuf.Edition
Enum Constant and Description |
---|
EDITION_1_TEST_ONLY
Placeholder editions for testing feature resolution.
|
EDITION_2_TEST_ONLY
EDITION_2_TEST_ONLY = 2; |
EDITION_2023
Editions that have been released.
|
EDITION_99997_TEST_ONLY
EDITION_99997_TEST_ONLY = 99997; |
EDITION_99998_TEST_ONLY
EDITION_99998_TEST_ONLY = 99998; |
EDITION_99999_TEST_ONLY
EDITION_99999_TEST_ONLY = 99999; |
EDITION_PROTO2
Legacy syntax "editions".
|
EDITION_PROTO3
EDITION_PROTO3 = 999; |
EDITION_UNKNOWN
A placeholder for an unknown edition value.
|
Modifier and Type | Field and Description |
---|---|
static int |
EDITION_1_TEST_ONLY_VALUE
Placeholder editions for testing feature resolution.
|
static int |
EDITION_2_TEST_ONLY_VALUE
EDITION_2_TEST_ONLY = 2; |
static int |
EDITION_2023_VALUE
Editions that have been released.
|
static int |
EDITION_99997_TEST_ONLY_VALUE
EDITION_99997_TEST_ONLY = 99997; |
static int |
EDITION_99998_TEST_ONLY_VALUE
EDITION_99998_TEST_ONLY = 99998; |
static int |
EDITION_99999_TEST_ONLY_VALUE
EDITION_99999_TEST_ONLY = 99999; |
static int |
EDITION_PROTO2_VALUE
Legacy syntax "editions".
|
static int |
EDITION_PROTO3_VALUE
EDITION_PROTO3 = 999; |
static int |
EDITION_UNKNOWN_VALUE
A placeholder for an unknown edition value.
|
Modifier and Type | Method and Description |
---|---|
static DescriptorProtos.Edition |
forNumber(int value) |
static Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType()
Return the enum type's descriptor, which contains information about each defined value, etc.
|
int |
getNumber()
Return the value's numeric value as defined in the .proto file.
|
Descriptors.EnumValueDescriptor |
getValueDescriptor()
Return the value's descriptor, which contains information such as value name, number, and type.
|
static Internal.EnumLiteMap<DescriptorProtos.Edition> |
internalGetValueMap() |
static DescriptorProtos.Edition |
valueOf(Descriptors.EnumValueDescriptor desc) |
static DescriptorProtos.Edition |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static DescriptorProtos.Edition |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DescriptorProtos.Edition[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DescriptorProtos.Edition EDITION_UNKNOWN
A placeholder for an unknown edition value.
EDITION_UNKNOWN = 0;
public static final DescriptorProtos.Edition EDITION_PROTO2
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_PROTO2 = 998;
public static final DescriptorProtos.Edition EDITION_PROTO3
EDITION_PROTO3 = 999;
public static final DescriptorProtos.Edition EDITION_2023
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_2023 = 1000;
public static final DescriptorProtos.Edition EDITION_1_TEST_ONLY
Placeholder editions for testing feature resolution. These should not be used or relyed on outside of tests.
EDITION_1_TEST_ONLY = 1;
public static final DescriptorProtos.Edition EDITION_2_TEST_ONLY
EDITION_2_TEST_ONLY = 2;
public static final DescriptorProtos.Edition EDITION_99997_TEST_ONLY
EDITION_99997_TEST_ONLY = 99997;
public static final DescriptorProtos.Edition EDITION_99998_TEST_ONLY
EDITION_99998_TEST_ONLY = 99998;
public static final DescriptorProtos.Edition EDITION_99999_TEST_ONLY
EDITION_99999_TEST_ONLY = 99999;
public static final int EDITION_UNKNOWN_VALUE
A placeholder for an unknown edition value.
EDITION_UNKNOWN = 0;
public static final int EDITION_PROTO2_VALUE
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_PROTO2 = 998;
public static final int EDITION_PROTO3_VALUE
EDITION_PROTO3 = 999;
public static final int EDITION_2023_VALUE
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_2023 = 1000;
public static final int EDITION_1_TEST_ONLY_VALUE
Placeholder editions for testing feature resolution. These should not be used or relyed on outside of tests.
EDITION_1_TEST_ONLY = 1;
public static final int EDITION_2_TEST_ONLY_VALUE
EDITION_2_TEST_ONLY = 2;
public static final int EDITION_99997_TEST_ONLY_VALUE
EDITION_99997_TEST_ONLY = 99997;
public static final int EDITION_99998_TEST_ONLY_VALUE
EDITION_99998_TEST_ONLY = 99998;
public static final int EDITION_99999_TEST_ONLY_VALUE
EDITION_99999_TEST_ONLY = 99999;
public static DescriptorProtos.Edition[] values()
for (DescriptorProtos.Edition c : DescriptorProtos.Edition.values()) System.out.println(c);
public static DescriptorProtos.Edition valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic final int getNumber()
ProtocolMessageEnum
getNumber
in interface Internal.EnumLite
getNumber
in interface ProtocolMessageEnum
@Deprecated public static DescriptorProtos.Edition valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static DescriptorProtos.Edition forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static Internal.EnumLiteMap<DescriptorProtos.Edition> internalGetValueMap()
public final Descriptors.EnumValueDescriptor getValueDescriptor()
ProtocolMessageEnum
getValueDescriptor
in interface ProtocolMessageEnum
public final Descriptors.EnumDescriptor getDescriptorForType()
ProtocolMessageEnum
getDescriptorForType
in interface ProtocolMessageEnum
public static final Descriptors.EnumDescriptor getDescriptor()
public static DescriptorProtos.Edition valueOf(Descriptors.EnumValueDescriptor desc)
Copyright © 2008–2024. All rights reserved.