Package com.google.cloud.alloydb.v1
Enum Cluster.State
- java.lang.Object
-
- java.lang.Enum<Cluster.State>
-
- com.google.cloud.alloydb.v1.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 State
Protobuf enumgoogle.cloud.alloydb.v1.Cluster.State
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BOOTSTRAPPING
The cluster is bootstrapping with data from some other source.CREATING
The cluster is being created.DELETING
The cluster is being deleted.EMPTY
The cluster is empty and has no associated resources.FAILED
The creation of the cluster failed.MAINTENANCE
The cluster is under maintenance.PROMOTING
The cluster is being promoted.READY
The cluster is active and running.STATE_UNSPECIFIED
The state of the cluster is unknown.STOPPED
The cluster is stopped.UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static int
BOOTSTRAPPING_VALUE
The cluster is bootstrapping with data from some other source.static int
CREATING_VALUE
The cluster is being created.static int
DELETING_VALUE
The cluster is being deleted.static int
EMPTY_VALUE
The cluster is empty and has no associated resources.static int
FAILED_VALUE
The creation of the cluster failed.static int
MAINTENANCE_VALUE
The cluster is under maintenance.static int
PROMOTING_VALUE
The cluster is being promoted.static int
READY_VALUE
The cluster is active and running.static int
STATE_UNSPECIFIED_VALUE
The state of the cluster is unknown.static int
STOPPED_VALUE
The cluster is stopped.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Cluster.State
forNumber(int value)
static com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor()
com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType()
int
getNumber()
com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor()
static com.google.protobuf.Internal.EnumLiteMap<Cluster.State>
internalGetValueMap()
static Cluster.State
valueOf(int value)
Deprecated.static Cluster.State
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name.static Cluster.State
valueOf(String name)
Returns 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 Detail
-
STATE_UNSPECIFIED
public static final Cluster.State STATE_UNSPECIFIED
The state of the cluster is unknown.
STATE_UNSPECIFIED = 0;
-
READY
public static final Cluster.State READY
The cluster is active and running.
READY = 1;
-
STOPPED
public static final Cluster.State STOPPED
The cluster is stopped. All instances in the cluster are stopped. Customers can start a stopped cluster at any point and all their instances will come back to life with same names and IP resources. In this state, customer pays for storage. Associated backups could also be present in a stopped cluster.
STOPPED = 2;
-
EMPTY
public static final Cluster.State EMPTY
The cluster is empty and has no associated resources. All instances, associated storage and backups have been deleted.
EMPTY = 3;
-
CREATING
public static final Cluster.State CREATING
The cluster is being created.
CREATING = 4;
-
DELETING
public static final Cluster.State DELETING
The cluster is being deleted.
DELETING = 5;
-
FAILED
public static final Cluster.State FAILED
The creation of the cluster failed.
FAILED = 6;
-
BOOTSTRAPPING
public static final Cluster.State 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
public static final Cluster.State 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
public static final Cluster.State PROMOTING
The cluster is being promoted.
PROMOTING = 9;
-
UNRECOGNIZED
public static final Cluster.State UNRECOGNIZED
-
-
Field Detail
-
STATE_UNSPECIFIED_VALUE
public static final int STATE_UNSPECIFIED_VALUE
The state of the cluster is unknown.
STATE_UNSPECIFIED = 0;
- See Also:
- Constant Field Values
-
READY_VALUE
public static final int READY_VALUE
The cluster is active and running.
READY = 1;
- See Also:
- Constant Field Values
-
STOPPED_VALUE
public static final int STOPPED_VALUE
The cluster is stopped. All instances in the cluster are stopped. Customers can start a stopped cluster at any point and all their instances will come back to life with same names and IP resources. In this state, customer pays for storage. Associated backups could also be present in a stopped cluster.
STOPPED = 2;
- See Also:
- Constant Field Values
-
EMPTY_VALUE
public static final int EMPTY_VALUE
The cluster is empty and has no associated resources. All instances, associated storage and backups have been deleted.
EMPTY = 3;
- See Also:
- Constant Field Values
-
CREATING_VALUE
public static final int CREATING_VALUE
The cluster is being created.
CREATING = 4;
- See Also:
- Constant Field Values
-
DELETING_VALUE
public static final int DELETING_VALUE
The cluster is being deleted.
DELETING = 5;
- See Also:
- Constant Field Values
-
FAILED_VALUE
public static final int FAILED_VALUE
The creation of the cluster failed.
FAILED = 6;
- See Also:
- Constant Field Values
-
BOOTSTRAPPING_VALUE
public static final int BOOTSTRAPPING_VALUE
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;
- See Also:
- Constant Field Values
-
MAINTENANCE_VALUE
public static final int MAINTENANCE_VALUE
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;
- See Also:
- Constant Field Values
-
PROMOTING_VALUE
public static final int PROMOTING_VALUE
The cluster is being promoted.
PROMOTING = 9;
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static Cluster.State[] 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 (Cluster.State c : Cluster.State.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Cluster.State valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getNumber
public final int getNumber()
- Specified by:
getNumber
in interfacecom.google.protobuf.Internal.EnumLite
- Specified by:
getNumber
in interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
@Deprecated public static Cluster.State 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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
forNumber
public static Cluster.State forNumber(int value)
- 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<Cluster.State> internalGetValueMap()
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
- Specified by:
getValueDescriptor
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static Cluster.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
-
-