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 ACCEPTED
Status is ACCEPTED.FAILED
Status is FAILED.FINISHED
Status is FINISHED.KILLED
Status is KILLED.NEW
Status is NEW.NEW_SAVING
Status is NEW_SAVING.RUNNING
Status is RUNNING.STATE_UNSPECIFIED
Status is unspecified.SUBMITTED
Status is SUBMITTED.UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static int
ACCEPTED_VALUE
Status is ACCEPTED.static int
FAILED_VALUE
Status is FAILED.static int
FINISHED_VALUE
Status is FINISHED.static int
KILLED_VALUE
Status is KILLED.static int
NEW_SAVING_VALUE
Status is NEW_SAVING.static int
NEW_VALUE
Status is NEW.static int
RUNNING_VALUE
Status is RUNNING.static int
STATE_UNSPECIFIED_VALUE
Status is unspecified.static int
SUBMITTED_VALUE
Status is SUBMITTED.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static YarnApplication.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<YarnApplication.State>
internalGetValueMap()
static YarnApplication.State
valueOf(int value)
Deprecated.static YarnApplication.State
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name.static YarnApplication.State
valueOf(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:
getNumber
in interfacecom.google.protobuf.Internal.EnumLite
- Specified by:
getNumber
in 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:
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 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
-
-