Package com.google.cloud.dataproc.v1
Enum JobStatus.State
- java.lang.Object
-
- java.lang.Enum<JobStatus.State>
-
- com.google.cloud.dataproc.v1.JobStatus.State
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<JobStatus.State>
- Enclosing class:
- JobStatus
public static enum JobStatus.State extends Enum<JobStatus.State> implements com.google.protobuf.ProtocolMessageEnum
The job state.
Protobuf enumgoogle.cloud.dataproc.v1.JobStatus.State
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ATTEMPT_FAILUREJob attempt has failed.CANCEL_PENDINGA CancelJob request has been received, but is pending.CANCEL_STARTEDTransient in-flight resources have been canceled, and the request to cancel the running job has been issued to the cluster.CANCELLEDThe job cancellation was successful.DONEThe job has completed successfully.ERRORThe job has completed, but encountered an error.PENDINGThe job is pending; it has been submitted, but is not yet running.RUNNINGThe job is running on the cluster.SETUP_DONEJob has been received by the service and completed initial setup; it will soon be submitted to the cluster.STATE_UNSPECIFIEDThe job state is unknown.UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static intATTEMPT_FAILURE_VALUEJob attempt has failed.static intCANCEL_PENDING_VALUEA CancelJob request has been received, but is pending.static intCANCEL_STARTED_VALUETransient in-flight resources have been canceled, and the request to cancel the running job has been issued to the cluster.static intCANCELLED_VALUEThe job cancellation was successful.static intDONE_VALUEThe job has completed successfully.static intERROR_VALUEThe job has completed, but encountered an error.static intPENDING_VALUEThe job is pending; it has been submitted, but is not yet running.static intRUNNING_VALUEThe job is running on the cluster.static intSETUP_DONE_VALUEJob has been received by the service and completed initial setup; it will soon be submitted to the cluster.static intSTATE_UNSPECIFIED_VALUEThe job state is unknown.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static JobStatus.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<JobStatus.State>internalGetValueMap()static JobStatus.StatevalueOf(int value)Deprecated.static JobStatus.StatevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static JobStatus.StatevalueOf(String name)Returns the enum constant of this type with the specified name.static JobStatus.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 JobStatus.State STATE_UNSPECIFIED
The job state is unknown.
STATE_UNSPECIFIED = 0;
-
PENDING
public static final JobStatus.State PENDING
The job is pending; it has been submitted, but is not yet running.
PENDING = 1;
-
SETUP_DONE
public static final JobStatus.State SETUP_DONE
Job has been received by the service and completed initial setup; it will soon be submitted to the cluster.
SETUP_DONE = 8;
-
RUNNING
public static final JobStatus.State RUNNING
The job is running on the cluster.
RUNNING = 2;
-
CANCEL_PENDING
public static final JobStatus.State CANCEL_PENDING
A CancelJob request has been received, but is pending.
CANCEL_PENDING = 3;
-
CANCEL_STARTED
public static final JobStatus.State CANCEL_STARTED
Transient in-flight resources have been canceled, and the request to cancel the running job has been issued to the cluster.
CANCEL_STARTED = 7;
-
CANCELLED
public static final JobStatus.State CANCELLED
The job cancellation was successful.
CANCELLED = 4;
-
DONE
public static final JobStatus.State DONE
The job has completed successfully.
DONE = 5;
-
ERROR
public static final JobStatus.State ERROR
The job has completed, but encountered an error.
ERROR = 6;
-
ATTEMPT_FAILURE
public static final JobStatus.State ATTEMPT_FAILURE
Job attempt has failed. The detail field contains failure details for this attempt. Applies to restartable jobs only.
ATTEMPT_FAILURE = 9;
-
UNRECOGNIZED
public static final JobStatus.State UNRECOGNIZED
-
-
Field Detail
-
STATE_UNSPECIFIED_VALUE
public static final int STATE_UNSPECIFIED_VALUE
The job state is unknown.
STATE_UNSPECIFIED = 0;- See Also:
- Constant Field Values
-
PENDING_VALUE
public static final int PENDING_VALUE
The job is pending; it has been submitted, but is not yet running.
PENDING = 1;- See Also:
- Constant Field Values
-
SETUP_DONE_VALUE
public static final int SETUP_DONE_VALUE
Job has been received by the service and completed initial setup; it will soon be submitted to the cluster.
SETUP_DONE = 8;- See Also:
- Constant Field Values
-
RUNNING_VALUE
public static final int RUNNING_VALUE
The job is running on the cluster.
RUNNING = 2;- See Also:
- Constant Field Values
-
CANCEL_PENDING_VALUE
public static final int CANCEL_PENDING_VALUE
A CancelJob request has been received, but is pending.
CANCEL_PENDING = 3;- See Also:
- Constant Field Values
-
CANCEL_STARTED_VALUE
public static final int CANCEL_STARTED_VALUE
Transient in-flight resources have been canceled, and the request to cancel the running job has been issued to the cluster.
CANCEL_STARTED = 7;- See Also:
- Constant Field Values
-
CANCELLED_VALUE
public static final int CANCELLED_VALUE
The job cancellation was successful.
CANCELLED = 4;- See Also:
- Constant Field Values
-
DONE_VALUE
public static final int DONE_VALUE
The job has completed successfully.
DONE = 5;- See Also:
- Constant Field Values
-
ERROR_VALUE
public static final int ERROR_VALUE
The job has completed, but encountered an error.
ERROR = 6;- See Also:
- Constant Field Values
-
ATTEMPT_FAILURE_VALUE
public static final int ATTEMPT_FAILURE_VALUE
Job attempt has failed. The detail field contains failure details for this attempt. Applies to restartable jobs only.
ATTEMPT_FAILURE = 9;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static JobStatus.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 (JobStatus.State c : JobStatus.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 JobStatus.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 JobStatus.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 JobStatus.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<JobStatus.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 JobStatus.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
-
-