Package com.google.cloud.dataproc.v1
Enum ClusterStatus.Substate
- java.lang.Object
-
- java.lang.Enum<ClusterStatus.Substate>
-
- com.google.cloud.dataproc.v1.ClusterStatus.Substate
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<ClusterStatus.Substate>
- Enclosing class:
- ClusterStatus
public static enum ClusterStatus.Substate extends Enum<ClusterStatus.Substate> implements com.google.protobuf.ProtocolMessageEnum
The cluster substate.
Protobuf enumgoogle.cloud.dataproc.v1.ClusterStatus.Substate
-
-
Enum Constant Summary
Enum Constants Enum Constant Description STALE_STATUSThe agent-reported status is out of date (may occur if Dataproc loses communication with Agent).UNHEALTHYThe cluster is known to be in an unhealthy state (for example, critical daemons are not running or HDFS capacity is exhausted).UNRECOGNIZEDUNSPECIFIEDThe cluster substate is unknown.
-
Field Summary
Fields Modifier and Type Field Description static intSTALE_STATUS_VALUEThe agent-reported status is out of date (may occur if Dataproc loses communication with Agent).static intUNHEALTHY_VALUEThe cluster is known to be in an unhealthy state (for example, critical daemons are not running or HDFS capacity is exhausted).static intUNSPECIFIED_VALUEThe cluster substate is unknown.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static ClusterStatus.SubstateforNumber(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.Substate>internalGetValueMap()static ClusterStatus.SubstatevalueOf(int value)Deprecated.static ClusterStatus.SubstatevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static ClusterStatus.SubstatevalueOf(String name)Returns the enum constant of this type with the specified name.static ClusterStatus.Substate[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNSPECIFIED
public static final ClusterStatus.Substate UNSPECIFIED
The cluster substate is unknown.
UNSPECIFIED = 0;
-
UNHEALTHY
public static final ClusterStatus.Substate UNHEALTHY
The cluster is known to be in an unhealthy state (for example, critical daemons are not running or HDFS capacity is exhausted). Applies to RUNNING state.
UNHEALTHY = 1;
-
STALE_STATUS
public static final ClusterStatus.Substate STALE_STATUS
The agent-reported status is out of date (may occur if Dataproc loses communication with Agent). Applies to RUNNING state.
STALE_STATUS = 2;
-
UNRECOGNIZED
public static final ClusterStatus.Substate UNRECOGNIZED
-
-
Field Detail
-
UNSPECIFIED_VALUE
public static final int UNSPECIFIED_VALUE
The cluster substate is unknown.
UNSPECIFIED = 0;- See Also:
- Constant Field Values
-
UNHEALTHY_VALUE
public static final int UNHEALTHY_VALUE
The cluster is known to be in an unhealthy state (for example, critical daemons are not running or HDFS capacity is exhausted). Applies to RUNNING state.
UNHEALTHY = 1;- See Also:
- Constant Field Values
-
STALE_STATUS_VALUE
public static final int STALE_STATUS_VALUE
The agent-reported status is out of date (may occur if Dataproc loses communication with Agent). Applies to RUNNING state.
STALE_STATUS = 2;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static ClusterStatus.Substate[] 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.Substate c : ClusterStatus.Substate.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.Substate 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.Substate 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.Substate 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.Substate> 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.Substate 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
-
-