Package com.google.cloud.alloydb.v1beta
Enum PromoteClusterStatus.State
java.lang.Object
java.lang.Enum<PromoteClusterStatus.State>
com.google.cloud.alloydb.v1beta.PromoteClusterStatus.State
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<PromoteClusterStatus.State>
- Enclosing class:
- PromoteClusterStatus
public static enum PromoteClusterStatus.State
extends Enum<PromoteClusterStatus.State>
implements com.google.protobuf.ProtocolMessageEnum
State contains all valid states of the database during promote cluster operation. This is used for status reporting through the LRO metadata.Protobuf enum
google.cloud.alloydb.v1beta.PromoteClusterStatus.State-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe database is only available for read.The database is available for both read and write.The promote operation is completed and the database is available for write.The state of the database is unknown. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe database is only available for read.static final intThe database is available for both read and write.static final intThe promote operation is completed and the database is available for write.static final intThe state of the database is unknown. -
Method Summary
Modifier and TypeMethodDescriptionstatic PromoteClusterStatus.StateforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<PromoteClusterStatus.State>static PromoteClusterStatus.StatevalueOf(int value) Deprecated.static PromoteClusterStatus.StatevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static PromoteClusterStatus.StateReturns the enum constant of this type with the specified name.static PromoteClusterStatus.State[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
STATE_UNSPECIFIED
The state of the database is unknown.
STATE_UNSPECIFIED = 0; -
PROMOTE_CLUSTER_AVAILABLE_FOR_READ
The database is only available for read.
PROMOTE_CLUSTER_AVAILABLE_FOR_READ = 1; -
PROMOTE_CLUSTER_AVAILABLE_FOR_WRITE
The database is available for both read and write. The promote operation is near completion.
PROMOTE_CLUSTER_AVAILABLE_FOR_WRITE = 2; -
PROMOTE_CLUSTER_COMPLETED
The promote operation is completed and the database is available for write.
PROMOTE_CLUSTER_COMPLETED = 3; -
UNRECOGNIZED
-
-
Field Details
-
STATE_UNSPECIFIED_VALUE
public static final int STATE_UNSPECIFIED_VALUEThe state of the database is unknown.
STATE_UNSPECIFIED = 0;- See Also:
-
PROMOTE_CLUSTER_AVAILABLE_FOR_READ_VALUE
public static final int PROMOTE_CLUSTER_AVAILABLE_FOR_READ_VALUEThe database is only available for read.
PROMOTE_CLUSTER_AVAILABLE_FOR_READ = 1;- See Also:
-
PROMOTE_CLUSTER_AVAILABLE_FOR_WRITE_VALUE
public static final int PROMOTE_CLUSTER_AVAILABLE_FOR_WRITE_VALUEThe database is available for both read and write. The promote operation is near completion.
PROMOTE_CLUSTER_AVAILABLE_FOR_WRITE = 2;- See Also:
-
PROMOTE_CLUSTER_COMPLETED_VALUE
public static final int PROMOTE_CLUSTER_COMPLETED_VALUEThe promote operation is completed and the database is available for write.
PROMOTE_CLUSTER_COMPLETED = 3;- 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
public static com.google.protobuf.Internal.EnumLiteMap<PromoteClusterStatus.State> 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
public static PromoteClusterStatus.State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) 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
-