Package com.google.cloud.batch.v1alpha
Enum JobStatus.State
- java.lang.Object
-
- java.lang.Enum<JobStatus.State>
-
- com.google.cloud.batch.v1alpha.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
Valid Job states.
Protobuf enumgoogle.cloud.batch.v1alpha.JobStatus.State
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DELETION_IN_PROGRESSThe Job will be deleted, but has not been deleted yet.FAILEDAt least one Task in the Job has failed.QUEUEDJob is admitted (validated and persisted) and waiting for resources.RUNNINGResource allocation has been successful.SCHEDULEDJob is scheduled to run as soon as resource allocation is ready.STATE_UNSPECIFIEDJob state unspecified.SUCCEEDEDAll Tasks in the Job have finished successfully.UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static intDELETION_IN_PROGRESS_VALUEThe Job will be deleted, but has not been deleted yet.static intFAILED_VALUEAt least one Task in the Job has failed.static intQUEUED_VALUEJob is admitted (validated and persisted) and waiting for resources.static intRUNNING_VALUEResource allocation has been successful.static intSCHEDULED_VALUEJob is scheduled to run as soon as resource allocation is ready.static intSTATE_UNSPECIFIED_VALUEJob state unspecified.static intSUCCEEDED_VALUEAll Tasks in the Job have finished successfully.
-
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
Job state unspecified.
STATE_UNSPECIFIED = 0;
-
QUEUED
public static final JobStatus.State QUEUED
Job is admitted (validated and persisted) and waiting for resources.
QUEUED = 1;
-
SCHEDULED
public static final JobStatus.State SCHEDULED
Job is scheduled to run as soon as resource allocation is ready. The resource allocation may happen at a later time but with a high chance to succeed.
SCHEDULED = 2;
-
RUNNING
public static final JobStatus.State RUNNING
Resource allocation has been successful. At least one Task in the Job is RUNNING.
RUNNING = 3;
-
SUCCEEDED
public static final JobStatus.State SUCCEEDED
All Tasks in the Job have finished successfully.
SUCCEEDED = 4;
-
FAILED
public static final JobStatus.State FAILED
At least one Task in the Job has failed.
FAILED = 5;
-
DELETION_IN_PROGRESS
public static final JobStatus.State DELETION_IN_PROGRESS
The Job will be deleted, but has not been deleted yet. Typically this is because resources used by the Job are still being cleaned up.
DELETION_IN_PROGRESS = 6;
-
UNRECOGNIZED
public static final JobStatus.State UNRECOGNIZED
-
-
Field Detail
-
STATE_UNSPECIFIED_VALUE
public static final int STATE_UNSPECIFIED_VALUE
Job state unspecified.
STATE_UNSPECIFIED = 0;- See Also:
- Constant Field Values
-
QUEUED_VALUE
public static final int QUEUED_VALUE
Job is admitted (validated and persisted) and waiting for resources.
QUEUED = 1;- See Also:
- Constant Field Values
-
SCHEDULED_VALUE
public static final int SCHEDULED_VALUE
Job is scheduled to run as soon as resource allocation is ready. The resource allocation may happen at a later time but with a high chance to succeed.
SCHEDULED = 2;- See Also:
- Constant Field Values
-
RUNNING_VALUE
public static final int RUNNING_VALUE
Resource allocation has been successful. At least one Task in the Job is RUNNING.
RUNNING = 3;- See Also:
- Constant Field Values
-
SUCCEEDED_VALUE
public static final int SUCCEEDED_VALUE
All Tasks in the Job have finished successfully.
SUCCEEDED = 4;- See Also:
- Constant Field Values
-
FAILED_VALUE
public static final int FAILED_VALUE
At least one Task in the Job has failed.
FAILED = 5;- See Also:
- Constant Field Values
-
DELETION_IN_PROGRESS_VALUE
public static final int DELETION_IN_PROGRESS_VALUE
The Job will be deleted, but has not been deleted yet. Typically this is because resources used by the Job are still being cleaned up.
DELETION_IN_PROGRESS = 6;- 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
-
-