Package com.google.cloud.dataproc.v1
Enum YarnApplication.State
- java.lang.Object
-
- java.lang.Enum<YarnApplication.State>
-
- com.google.cloud.dataproc.v1.YarnApplication.State
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<YarnApplication.State>
- Enclosing class:
- YarnApplication
public static enum YarnApplication.State extends Enum<YarnApplication.State> implements com.google.protobuf.ProtocolMessageEnum
The application state, corresponding to <code>YarnProtos.YarnApplicationStateProto</code>.
Protobuf enumgoogle.cloud.dataproc.v1.YarnApplication.State
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACCEPTEDStatus is ACCEPTED.FAILEDStatus is FAILED.FINISHEDStatus is FINISHED.KILLEDStatus is KILLED.NEWStatus is NEW.NEW_SAVINGStatus is NEW_SAVING.RUNNINGStatus is RUNNING.STATE_UNSPECIFIEDStatus is unspecified.SUBMITTEDStatus is SUBMITTED.UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static intACCEPTED_VALUEStatus is ACCEPTED.static intFAILED_VALUEStatus is FAILED.static intFINISHED_VALUEStatus is FINISHED.static intKILLED_VALUEStatus is KILLED.static intNEW_SAVING_VALUEStatus is NEW_SAVING.static intNEW_VALUEStatus is NEW.static intRUNNING_VALUEStatus is RUNNING.static intSTATE_UNSPECIFIED_VALUEStatus is unspecified.static intSUBMITTED_VALUEStatus is SUBMITTED.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static YarnApplication.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<YarnApplication.State>internalGetValueMap()static YarnApplication.StatevalueOf(int value)Deprecated.static YarnApplication.StatevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static YarnApplication.StatevalueOf(String name)Returns the enum constant of this type with the specified name.static YarnApplication.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 YarnApplication.State STATE_UNSPECIFIED
Status is unspecified.
STATE_UNSPECIFIED = 0;
-
NEW
public static final YarnApplication.State NEW
Status is NEW.
NEW = 1;
-
NEW_SAVING
public static final YarnApplication.State NEW_SAVING
Status is NEW_SAVING.
NEW_SAVING = 2;
-
SUBMITTED
public static final YarnApplication.State SUBMITTED
Status is SUBMITTED.
SUBMITTED = 3;
-
ACCEPTED
public static final YarnApplication.State ACCEPTED
Status is ACCEPTED.
ACCEPTED = 4;
-
RUNNING
public static final YarnApplication.State RUNNING
Status is RUNNING.
RUNNING = 5;
-
FINISHED
public static final YarnApplication.State FINISHED
Status is FINISHED.
FINISHED = 6;
-
FAILED
public static final YarnApplication.State FAILED
Status is FAILED.
FAILED = 7;
-
KILLED
public static final YarnApplication.State KILLED
Status is KILLED.
KILLED = 8;
-
UNRECOGNIZED
public static final YarnApplication.State UNRECOGNIZED
-
-
Field Detail
-
STATE_UNSPECIFIED_VALUE
public static final int STATE_UNSPECIFIED_VALUE
Status is unspecified.
STATE_UNSPECIFIED = 0;- See Also:
- Constant Field Values
-
NEW_VALUE
public static final int NEW_VALUE
Status is NEW.
NEW = 1;- See Also:
- Constant Field Values
-
NEW_SAVING_VALUE
public static final int NEW_SAVING_VALUE
Status is NEW_SAVING.
NEW_SAVING = 2;- See Also:
- Constant Field Values
-
SUBMITTED_VALUE
public static final int SUBMITTED_VALUE
Status is SUBMITTED.
SUBMITTED = 3;- See Also:
- Constant Field Values
-
ACCEPTED_VALUE
public static final int ACCEPTED_VALUE
Status is ACCEPTED.
ACCEPTED = 4;- See Also:
- Constant Field Values
-
RUNNING_VALUE
public static final int RUNNING_VALUE
Status is RUNNING.
RUNNING = 5;- See Also:
- Constant Field Values
-
FINISHED_VALUE
public static final int FINISHED_VALUE
Status is FINISHED.
FINISHED = 6;- See Also:
- Constant Field Values
-
FAILED_VALUE
public static final int FAILED_VALUE
Status is FAILED.
FAILED = 7;- See Also:
- Constant Field Values
-
KILLED_VALUE
public static final int KILLED_VALUE
Status is KILLED.
KILLED = 8;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static YarnApplication.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 (YarnApplication.State c : YarnApplication.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 YarnApplication.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 YarnApplication.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 YarnApplication.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<YarnApplication.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 YarnApplication.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
-
-