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_PROGRESS
The Job will be deleted, but has not been deleted yet.FAILED
At least one Task in the Job has failed.QUEUED
Job is admitted (validated and persisted) and waiting for resources.RUNNING
Resource allocation has been successful.SCHEDULED
Job is scheduled to run as soon as resource allocation is ready.STATE_UNSPECIFIED
Job state unspecified.SUCCEEDED
All Tasks in the Job have finished successfully.UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static int
DELETION_IN_PROGRESS_VALUE
The Job will be deleted, but has not been deleted yet.static int
FAILED_VALUE
At least one Task in the Job has failed.static int
QUEUED_VALUE
Job is admitted (validated and persisted) and waiting for resources.static int
RUNNING_VALUE
Resource allocation has been successful.static int
SCHEDULED_VALUE
Job is scheduled to run as soon as resource allocation is ready.static int
STATE_UNSPECIFIED_VALUE
Job state unspecified.static int
SUCCEEDED_VALUE
All 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.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
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:
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
-
-