Package com.google.protobuf
Enum DescriptorProtos.Edition
- java.lang.Object
-
- java.lang.Enum<DescriptorProtos.Edition>
-
- com.google.protobuf.DescriptorProtos.Edition
-
- All Implemented Interfaces:
Internal.EnumLite
,java.io.Serializable
,java.lang.Comparable<DescriptorProtos.Edition>
- Enclosing class:
- DescriptorProtos
public static enum DescriptorProtos.Edition extends java.lang.Enum<DescriptorProtos.Edition> implements Internal.EnumLite
The full set of known editions.
Protobuf enumgoogle.protobuf.Edition
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
DescriptorProtos.Edition.EditionVerifier
-
Enum Constant Summary
Enum Constants Enum Constant 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_2024
EDITION_2024 = 1001;
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_LEGACY
A placeholder edition for specifying default behaviors *before* a feature was first introduced.EDITION_MAX
Placeholder for specifying unbounded edition support.EDITION_PROTO2
Legacy syntax "editions".EDITION_PROTO3
EDITION_PROTO3 = 999;
EDITION_UNKNOWN
A placeholder for an unknown edition value.
-
Field Summary
Fields Modifier and Type Field 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_2024_VALUE
EDITION_2024 = 1001;
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_LEGACY_VALUE
A placeholder edition for specifying default behaviors *before* a feature was first introduced.static int
EDITION_MAX_VALUE
Placeholder for specifying unbounded edition support.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.private static Internal.EnumLiteMap<DescriptorProtos.Edition>
internalValueMap
private int
value
-
Constructor Summary
Constructors Modifier Constructor Description private
Edition(int value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static DescriptorProtos.Edition
forNumber(int value)
int
getNumber()
static Internal.EnumLiteMap<DescriptorProtos.Edition>
internalGetValueMap()
static Internal.EnumVerifier
internalGetVerifier()
static DescriptorProtos.Edition
valueOf(int value)
Deprecated.static DescriptorProtos.Edition
valueOf(java.lang.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.
-
-
-
Enum Constant Detail
-
EDITION_UNKNOWN
public static final DescriptorProtos.Edition EDITION_UNKNOWN
A placeholder for an unknown edition value.
EDITION_UNKNOWN = 0;
-
EDITION_LEGACY
public static final DescriptorProtos.Edition EDITION_LEGACY
A placeholder edition for specifying default behaviors *before* a feature was first introduced. This is effectively an "infinite past".
EDITION_LEGACY = 900;
-
EDITION_PROTO2
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;
-
EDITION_PROTO3
public static final DescriptorProtos.Edition EDITION_PROTO3
EDITION_PROTO3 = 999;
-
EDITION_2023
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;
-
EDITION_2024
public static final DescriptorProtos.Edition EDITION_2024
EDITION_2024 = 1001;
-
EDITION_1_TEST_ONLY
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;
-
EDITION_2_TEST_ONLY
public static final DescriptorProtos.Edition EDITION_2_TEST_ONLY
EDITION_2_TEST_ONLY = 2;
-
EDITION_99997_TEST_ONLY
public static final DescriptorProtos.Edition EDITION_99997_TEST_ONLY
EDITION_99997_TEST_ONLY = 99997;
-
EDITION_99998_TEST_ONLY
public static final DescriptorProtos.Edition EDITION_99998_TEST_ONLY
EDITION_99998_TEST_ONLY = 99998;
-
EDITION_99999_TEST_ONLY
public static final DescriptorProtos.Edition EDITION_99999_TEST_ONLY
EDITION_99999_TEST_ONLY = 99999;
-
EDITION_MAX
public static final DescriptorProtos.Edition EDITION_MAX
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_MAX = 2147483647;
-
-
Field Detail
-
EDITION_UNKNOWN_VALUE
public static final int EDITION_UNKNOWN_VALUE
A placeholder for an unknown edition value.
EDITION_UNKNOWN = 0;
- See Also:
- Constant Field Values
-
EDITION_LEGACY_VALUE
public static final int EDITION_LEGACY_VALUE
A placeholder edition for specifying default behaviors *before* a feature was first introduced. This is effectively an "infinite past".
EDITION_LEGACY = 900;
- See Also:
- Constant Field Values
-
EDITION_PROTO2_VALUE
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;
- See Also:
- Constant Field Values
-
EDITION_PROTO3_VALUE
public static final int EDITION_PROTO3_VALUE
EDITION_PROTO3 = 999;
- See Also:
- Constant Field Values
-
EDITION_2023_VALUE
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;
- See Also:
- Constant Field Values
-
EDITION_2024_VALUE
public static final int EDITION_2024_VALUE
EDITION_2024 = 1001;
- See Also:
- Constant Field Values
-
EDITION_1_TEST_ONLY_VALUE
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;
- See Also:
- Constant Field Values
-
EDITION_2_TEST_ONLY_VALUE
public static final int EDITION_2_TEST_ONLY_VALUE
EDITION_2_TEST_ONLY = 2;
- See Also:
- Constant Field Values
-
EDITION_99997_TEST_ONLY_VALUE
public static final int EDITION_99997_TEST_ONLY_VALUE
EDITION_99997_TEST_ONLY = 99997;
- See Also:
- Constant Field Values
-
EDITION_99998_TEST_ONLY_VALUE
public static final int EDITION_99998_TEST_ONLY_VALUE
EDITION_99998_TEST_ONLY = 99998;
- See Also:
- Constant Field Values
-
EDITION_99999_TEST_ONLY_VALUE
public static final int EDITION_99999_TEST_ONLY_VALUE
EDITION_99999_TEST_ONLY = 99999;
- See Also:
- Constant Field Values
-
EDITION_MAX_VALUE
public static final int EDITION_MAX_VALUE
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_MAX = 2147483647;
- See Also:
- Constant Field Values
-
internalValueMap
private static final Internal.EnumLiteMap<DescriptorProtos.Edition> internalValueMap
-
value
private final int value
-
-
Method Detail
-
values
public static DescriptorProtos.Edition[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DescriptorProtos.Edition c : DescriptorProtos.Edition.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DescriptorProtos.Edition valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getNumber
public final int getNumber()
- Specified by:
getNumber
in interfaceInternal.EnumLite
-
valueOf
@Deprecated public static DescriptorProtos.Edition valueOf(int value)
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
forNumber
public static DescriptorProtos.Edition forNumber(int value)
-
internalGetValueMap
public static Internal.EnumLiteMap<DescriptorProtos.Edition> internalGetValueMap()
-
internalGetVerifier
public static Internal.EnumVerifier internalGetVerifier()
-
-