Package com.google.cloud.alloydb.v1beta
Enum Cluster.State
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<Cluster.State>
- Enclosing class:
- Cluster
public static enum Cluster.State
extends Enum<Cluster.State>
implements com.google.protobuf.ProtocolMessageEnum
Cluster StateProtobuf enum
google.cloud.alloydb.v1beta.Cluster.State-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe cluster is bootstrapping with data from some other source.The cluster is being created.The cluster is being deleted.The cluster is empty and has no associated resources.The creation of the cluster failed.The cluster is under maintenance.The cluster is being promoted.The cluster is active and running.The state of the cluster is unknown.This is unused. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe cluster is bootstrapping with data from some other source.static final intThe cluster is being created.static final intThe cluster is being deleted.static final intThe cluster is empty and has no associated resources.static final intThe creation of the cluster failed.static final intThe cluster is under maintenance.static final intThe cluster is being promoted.static final intThe cluster is active and running.static final intThe state of the cluster is unknown.static final intThis is unused. -
Method Summary
Modifier and TypeMethodDescriptionstatic Cluster.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<Cluster.State>static Cluster.StatevalueOf(int value) Deprecated.static Cluster.StatevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static Cluster.StateReturns the enum constant of this type with the specified name.static Cluster.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 cluster is unknown.
STATE_UNSPECIFIED = 0; -
READY
The cluster is active and running.
READY = 1; -
STOPPED
This is unused. Even when all instances in the cluster are stopped, the cluster remains in READY state.
STOPPED = 2; -
EMPTY
The cluster is empty and has no associated resources. All instances, associated storage and backups have been deleted.
EMPTY = 3; -
CREATING
The cluster is being created.
CREATING = 4; -
DELETING
The cluster is being deleted.
DELETING = 5; -
FAILED
The creation of the cluster failed.
FAILED = 6; -
BOOTSTRAPPING
The cluster is bootstrapping with data from some other source. Direct mutations to the cluster (e.g. adding read pool) are not allowed.
BOOTSTRAPPING = 7; -
MAINTENANCE
The cluster is under maintenance. AlloyDB regularly performs maintenance and upgrades on customer clusters. Updates on the cluster are not allowed while the cluster is in this state.
MAINTENANCE = 8; -
PROMOTING
The cluster is being promoted.
PROMOTING = 9; -
UNRECOGNIZED
-
-
Field Details
-
STATE_UNSPECIFIED_VALUE
public static final int STATE_UNSPECIFIED_VALUEThe state of the cluster is unknown.
STATE_UNSPECIFIED = 0;- See Also:
-
READY_VALUE
public static final int READY_VALUEThe cluster is active and running.
READY = 1;- See Also:
-
STOPPED_VALUE
public static final int STOPPED_VALUEThis is unused. Even when all instances in the cluster are stopped, the cluster remains in READY state.
STOPPED = 2;- See Also:
-
EMPTY_VALUE
public static final int EMPTY_VALUEThe cluster is empty and has no associated resources. All instances, associated storage and backups have been deleted.
EMPTY = 3;- See Also:
-
CREATING_VALUE
public static final int CREATING_VALUEThe cluster is being created.
CREATING = 4;- See Also:
-
DELETING_VALUE
public static final int DELETING_VALUEThe cluster is being deleted.
DELETING = 5;- See Also:
-
FAILED_VALUE
public static final int FAILED_VALUEThe creation of the cluster failed.
FAILED = 6;- See Also:
-
BOOTSTRAPPING_VALUE
public static final int BOOTSTRAPPING_VALUEThe cluster is bootstrapping with data from some other source. Direct mutations to the cluster (e.g. adding read pool) are not allowed.
BOOTSTRAPPING = 7;- See Also:
-
MAINTENANCE_VALUE
public static final int MAINTENANCE_VALUEThe cluster is under maintenance. AlloyDB regularly performs maintenance and upgrades on customer clusters. Updates on the cluster are not allowed while the cluster is in this state.
MAINTENANCE = 8;- See Also:
-
PROMOTING_VALUE
public static final int PROMOTING_VALUEThe cluster is being promoted.
PROMOTING = 9;- 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
-