Package com.google.cloud.batch.v1alpha
Enum 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 enum
google.cloud.batch.v1alpha.JobStatus.State-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe Job cancellation is in progress, this is because the resources used by the Job are still being cleaned up.The Job has been cancelled, the task executions were stopped and the resources were cleaned up.The Job will be deleted, but has not been deleted yet.At least one Task in the Job has failed.Job is admitted (validated and persisted) and waiting for resources.Resource allocation has been successful.Job is scheduled to run as soon as resource allocation is ready.Job state unspecified.All Tasks in the Job have finished successfully. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe Job cancellation is in progress, this is because the resources used by the Job are still being cleaned up.static final intThe Job has been cancelled, the task executions were stopped and the resources were cleaned up.static final intThe Job will be deleted, but has not been deleted yet.static final intAt least one Task in the Job has failed.static final intJob is admitted (validated and persisted) and waiting for resources.static final intResource allocation has been successful.static final intJob is scheduled to run as soon as resource allocation is ready.static final intJob state unspecified.static final intAll Tasks in the Job have finished successfully. -
Method Summary
Modifier and TypeMethodDescriptionstatic JobStatus.StateforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<JobStatus.State>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.StateReturns 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 Details
-
STATE_UNSPECIFIED
Job state unspecified.
STATE_UNSPECIFIED = 0; -
QUEUED
Job is admitted (validated and persisted) and waiting for resources.
QUEUED = 1; -
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
Resource allocation has been successful. At least one Task in the Job is RUNNING.
RUNNING = 3; -
SUCCEEDED
All Tasks in the Job have finished successfully.
SUCCEEDED = 4; -
FAILED
At least one Task in the Job has failed.
FAILED = 5; -
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; -
CANCELLATION_IN_PROGRESS
The Job cancellation is in progress, this is because the resources used by the Job are still being cleaned up.
CANCELLATION_IN_PROGRESS = 7; -
CANCELLED
The Job has been cancelled, the task executions were stopped and the resources were cleaned up.
CANCELLED = 8; -
UNRECOGNIZED
-
-
Field Details
-
STATE_UNSPECIFIED_VALUE
public static final int STATE_UNSPECIFIED_VALUEJob state unspecified.
STATE_UNSPECIFIED = 0;- See Also:
-
QUEUED_VALUE
public static final int QUEUED_VALUEJob is admitted (validated and persisted) and waiting for resources.
QUEUED = 1;- See Also:
-
SCHEDULED_VALUE
public static final int SCHEDULED_VALUEJob 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:
-
RUNNING_VALUE
public static final int RUNNING_VALUEResource allocation has been successful. At least one Task in the Job is RUNNING.
RUNNING = 3;- See Also:
-
SUCCEEDED_VALUE
public static final int SUCCEEDED_VALUEAll Tasks in the Job have finished successfully.
SUCCEEDED = 4;- See Also:
-
FAILED_VALUE
public static final int FAILED_VALUEAt least one Task in the Job has failed.
FAILED = 5;- See Also:
-
DELETION_IN_PROGRESS_VALUE
public static final int DELETION_IN_PROGRESS_VALUEThe 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:
-
CANCELLATION_IN_PROGRESS_VALUE
public static final int CANCELLATION_IN_PROGRESS_VALUEThe Job cancellation is in progress, this is because the resources used by the Job are still being cleaned up.
CANCELLATION_IN_PROGRESS = 7;- See Also:
-
CANCELLED_VALUE
public static final int CANCELLED_VALUEThe Job has been cancelled, the task executions were stopped and the resources were cleaned up.
CANCELLED = 8;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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.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
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
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
-