Package com.google.cloud.dataproc.v1
Enum ClusterStatus.State
- java.lang.Object
-
- java.lang.Enum<ClusterStatus.State>
-
- com.google.cloud.dataproc.v1.ClusterStatus.State
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<ClusterStatus.State>
- Enclosing class:
- ClusterStatus
public static enum ClusterStatus.State extends Enum<ClusterStatus.State> implements com.google.protobuf.ProtocolMessageEnum
The cluster state.
Protobuf enumgoogle.cloud.dataproc.v1.ClusterStatus.State
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CREATINGThe cluster is being created and set up.DELETINGThe cluster is being deleted.ERRORThe cluster encountered an error.ERROR_DUE_TO_UPDATEThe cluster has encountered an error while being updated.REPAIRINGThe cluster is being repaired.RUNNINGThe cluster is currently running and healthy.STARTINGThe cluster is being started.STOPPEDThe cluster is currently stopped.STOPPINGThe cluster is being stopped.UNKNOWNThe cluster state is unknown.UNRECOGNIZEDUPDATINGThe cluster is being updated.
-
Field Summary
Fields Modifier and Type Field Description static intCREATING_VALUEThe cluster is being created and set up.static intDELETING_VALUEThe cluster is being deleted.static intERROR_DUE_TO_UPDATE_VALUEThe cluster has encountered an error while being updated.static intERROR_VALUEThe cluster encountered an error.static intREPAIRING_VALUEThe cluster is being repaired.static intRUNNING_VALUEThe cluster is currently running and healthy.static intSTARTING_VALUEThe cluster is being started.static intSTOPPED_VALUEThe cluster is currently stopped.static intSTOPPING_VALUEThe cluster is being stopped.static intUNKNOWN_VALUEThe cluster state is unknown.static intUPDATING_VALUEThe cluster is being updated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static ClusterStatus.StateforNumber(int value)static com.google.protobuf.Descriptors.EnumDescriptorgetDescriptor()com.google.protobuf.Descriptors.EnumDescriptorgetDescriptorForType()intgetNumber()com.google.protobuf.Descriptors.EnumValueDescriptorgetValueDescriptor()static com.google.protobuf.Internal.EnumLiteMap<ClusterStatus.State>internalGetValueMap()static ClusterStatus.StatevalueOf(int value)Deprecated.static ClusterStatus.StatevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static ClusterStatus.StatevalueOf(String name)Returns the enum constant of this type with the specified name.static ClusterStatus.State[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNKNOWN
public static final ClusterStatus.State UNKNOWN
The cluster state is unknown.
UNKNOWN = 0;
-
CREATING
public static final ClusterStatus.State CREATING
The cluster is being created and set up. It is not ready for use.
CREATING = 1;
-
RUNNING
public static final ClusterStatus.State RUNNING
The cluster is currently running and healthy. It is ready for use. **Note:** The cluster state changes from "creating" to "running" status after the master node(s), first two primary worker nodes (and the last primary worker node if primary workers > 2) are running.
RUNNING = 2;
-
ERROR
public static final ClusterStatus.State ERROR
The cluster encountered an error. It is not ready for use.
ERROR = 3;
-
ERROR_DUE_TO_UPDATE
public static final ClusterStatus.State ERROR_DUE_TO_UPDATE
The cluster has encountered an error while being updated. Jobs can be submitted to the cluster, but the cluster cannot be updated.
ERROR_DUE_TO_UPDATE = 9;
-
DELETING
public static final ClusterStatus.State DELETING
The cluster is being deleted. It cannot be used.
DELETING = 4;
-
UPDATING
public static final ClusterStatus.State UPDATING
The cluster is being updated. It continues to accept and process jobs.
UPDATING = 5;
-
STOPPING
public static final ClusterStatus.State STOPPING
The cluster is being stopped. It cannot be used.
STOPPING = 6;
-
STOPPED
public static final ClusterStatus.State STOPPED
The cluster is currently stopped. It is not ready for use.
STOPPED = 7;
-
STARTING
public static final ClusterStatus.State STARTING
The cluster is being started. It is not ready for use.
STARTING = 8;
-
REPAIRING
public static final ClusterStatus.State REPAIRING
The cluster is being repaired. It is not ready for use.
REPAIRING = 10;
-
UNRECOGNIZED
public static final ClusterStatus.State UNRECOGNIZED
-
-
Field Detail
-
UNKNOWN_VALUE
public static final int UNKNOWN_VALUE
The cluster state is unknown.
UNKNOWN = 0;- See Also:
- Constant Field Values
-
CREATING_VALUE
public static final int CREATING_VALUE
The cluster is being created and set up. It is not ready for use.
CREATING = 1;- See Also:
- Constant Field Values
-
RUNNING_VALUE
public static final int RUNNING_VALUE
The cluster is currently running and healthy. It is ready for use. **Note:** The cluster state changes from "creating" to "running" status after the master node(s), first two primary worker nodes (and the last primary worker node if primary workers > 2) are running.
RUNNING = 2;- See Also:
- Constant Field Values
-
ERROR_VALUE
public static final int ERROR_VALUE
The cluster encountered an error. It is not ready for use.
ERROR = 3;- See Also:
- Constant Field Values
-
ERROR_DUE_TO_UPDATE_VALUE
public static final int ERROR_DUE_TO_UPDATE_VALUE
The cluster has encountered an error while being updated. Jobs can be submitted to the cluster, but the cluster cannot be updated.
ERROR_DUE_TO_UPDATE = 9;- See Also:
- Constant Field Values
-
DELETING_VALUE
public static final int DELETING_VALUE
The cluster is being deleted. It cannot be used.
DELETING = 4;- See Also:
- Constant Field Values
-
UPDATING_VALUE
public static final int UPDATING_VALUE
The cluster is being updated. It continues to accept and process jobs.
UPDATING = 5;- See Also:
- Constant Field Values
-
STOPPING_VALUE
public static final int STOPPING_VALUE
The cluster is being stopped. It cannot be used.
STOPPING = 6;- See Also:
- Constant Field Values
-
STOPPED_VALUE
public static final int STOPPED_VALUE
The cluster is currently stopped. It is not ready for use.
STOPPED = 7;- See Also:
- Constant Field Values
-
STARTING_VALUE
public static final int STARTING_VALUE
The cluster is being started. It is not ready for use.
STARTING = 8;- See Also:
- Constant Field Values
-
REPAIRING_VALUE
public static final int REPAIRING_VALUE
The cluster is being repaired. It is not ready for use.
REPAIRING = 10;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static ClusterStatus.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 (ClusterStatus.State c : ClusterStatus.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 ClusterStatus.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:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
@Deprecated public static ClusterStatus.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 ClusterStatus.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<ClusterStatus.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static ClusterStatus.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
-
-