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_FAILURE
Job attempt has failed.CANCEL_PENDING
A CancelJob request has been received, but is pending.CANCEL_STARTED
Transient in-flight resources have been canceled, and the request to cancel the running job has been issued to the cluster.CANCELLED
The job cancellation was successful.DONE
The job has completed successfully.ERROR
The job has completed, but encountered an error.PENDING
The job is pending; it has been submitted, but is not yet running.RUNNING
The job is running on the cluster.SETUP_DONE
Job has been received by the service and completed initial setup; it will soon be submitted to the cluster.STATE_UNSPECIFIED
The job state is unknown.UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static int
ATTEMPT_FAILURE_VALUE
Job attempt has failed.static int
CANCEL_PENDING_VALUE
A CancelJob request has been received, but is pending.static 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.static int
CANCELLED_VALUE
The job cancellation was successful.static int
DONE_VALUE
The job has completed successfully.static int
ERROR_VALUE
The job has completed, but encountered an error.static int
PENDING_VALUE
The job is pending; it has been submitted, but is not yet running.static int
RUNNING_VALUE
The job is running on the cluster.static int
SETUP_DONE_VALUE
Job has been received by the service and completed initial setup; it will soon be submitted to the cluster.static int
STATE_UNSPECIFIED_VALUE
The job state is unknown.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static JobStatus.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<JobStatus.State>
internalGetValueMap()
static JobStatus.State
valueOf(int value)
Deprecated.static JobStatus.State
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name.static JobStatus.State
valueOf(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:
getNumber
in interfacecom.google.protobuf.Internal.EnumLite
- Specified by:
getNumber
in 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:
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 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
-
-