Package com.google.cloud.alloydb.v1beta
Enum DatabaseVersion
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<DatabaseVersion>
@Generated
public enum DatabaseVersion
extends Enum<DatabaseVersion>
implements com.google.protobuf.ProtocolMessageEnum
The supported database engine versions.Protobuf enum
google.cloud.alloydb.v1beta.DatabaseVersion-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThis is an unknown database version.Deprecated.The database version is Postgres 14.The database version is Postgres 15.The database version is Postgres 16.The database version is Postgres 17.The database version is Postgres 18. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThis is an unknown database version.static final intDeprecated.static final intThe database version is Postgres 14.static final intThe database version is Postgres 15.static final intThe database version is Postgres 16.static final intThe database version is Postgres 17.static final intThe database version is Postgres 18. -
Method Summary
Modifier and TypeMethodDescriptionstatic DatabaseVersionforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<DatabaseVersion>static DatabaseVersionvalueOf(int value) Deprecated.static DatabaseVersionvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static DatabaseVersionReturns the enum constant of this type with the specified name.static DatabaseVersion[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
DATABASE_VERSION_UNSPECIFIED
This is an unknown database version.
DATABASE_VERSION_UNSPECIFIED = 0; -
POSTGRES_13
Deprecated.DEPRECATED - The database version is Postgres 13.
POSTGRES_13 = 1 [deprecated = true]; -
POSTGRES_14
The database version is Postgres 14.
POSTGRES_14 = 2; -
POSTGRES_15
The database version is Postgres 15.
POSTGRES_15 = 3; -
POSTGRES_16
The database version is Postgres 16.
POSTGRES_16 = 4; -
POSTGRES_17
The database version is Postgres 17.
POSTGRES_17 = 5; -
POSTGRES_18
The database version is Postgres 18.
POSTGRES_18 = 6; -
UNRECOGNIZED
-
-
Field Details
-
DATABASE_VERSION_UNSPECIFIED_VALUE
public static final int DATABASE_VERSION_UNSPECIFIED_VALUEThis is an unknown database version.
DATABASE_VERSION_UNSPECIFIED = 0;- See Also:
-
POSTGRES_13_VALUE
Deprecated.DEPRECATED - The database version is Postgres 13.
POSTGRES_13 = 1 [deprecated = true];- See Also:
-
POSTGRES_14_VALUE
public static final int POSTGRES_14_VALUEThe database version is Postgres 14.
POSTGRES_14 = 2;- See Also:
-
POSTGRES_15_VALUE
public static final int POSTGRES_15_VALUEThe database version is Postgres 15.
POSTGRES_15 = 3;- See Also:
-
POSTGRES_16_VALUE
public static final int POSTGRES_16_VALUEThe database version is Postgres 16.
POSTGRES_16 = 4;- See Also:
-
POSTGRES_17_VALUE
public static final int POSTGRES_17_VALUEThe database version is Postgres 17.
POSTGRES_17 = 5;- See Also:
-
POSTGRES_18_VALUE
public static final int POSTGRES_18_VALUEThe database version is Postgres 18.
POSTGRES_18 = 6;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
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:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-