public static enum JobStatus.State extends Enum<JobStatus.State> implements com.google.protobuf.ProtocolMessageEnum
Valid Job states.Protobuf enum
google.cloud.batch.v1.JobStatus.State| Enum Constant and Description |
|---|
CANCELLATION_IN_PROGRESS
The Job cancellation is in progress, this is because the resources used
by the Job are still being cleaned up.
|
CANCELLED
The Job has been cancelled, the task executions were stopped and the
resources were cleaned up.
|
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 |
| Modifier and Type | Field and Description |
|---|---|
static int |
CANCELLATION_IN_PROGRESS_VALUE
The Job cancellation is in progress, this is because the resources used
by the Job are still being cleaned up.
|
static int |
CANCELLED_VALUE
The Job has been cancelled, the task executions were stopped and the
resources were cleaned up.
|
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.
|
| Modifier and Type | Method and 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(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static JobStatus.State |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
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.
|
public static final JobStatus.State STATE_UNSPECIFIED
Job state unspecified.
STATE_UNSPECIFIED = 0;public static final JobStatus.State QUEUED
Job is admitted (validated and persisted) and waiting for resources.
QUEUED = 1;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;public static final JobStatus.State RUNNING
Resource allocation has been successful. At least one Task in the Job is RUNNING.
RUNNING = 3;public static final JobStatus.State SUCCEEDED
All Tasks in the Job have finished successfully.
SUCCEEDED = 4;public static final JobStatus.State FAILED
At least one Task in the Job has failed.
FAILED = 5;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;public static final JobStatus.State 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;public static final JobStatus.State CANCELLED
The Job has been cancelled, the task executions were stopped and the resources were cleaned up.
CANCELLED = 8;public static final JobStatus.State UNRECOGNIZED
public static final int STATE_UNSPECIFIED_VALUE
Job state unspecified.
STATE_UNSPECIFIED = 0;public static final int QUEUED_VALUE
Job is admitted (validated and persisted) and waiting for resources.
QUEUED = 1;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;public static final int RUNNING_VALUE
Resource allocation has been successful. At least one Task in the Job is RUNNING.
RUNNING = 3;public static final int SUCCEEDED_VALUE
All Tasks in the Job have finished successfully.
SUCCEEDED = 4;public static final int FAILED_VALUE
At least one Task in the Job has failed.
FAILED = 5;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;public static final int CANCELLATION_IN_PROGRESS_VALUE
The Job cancellation is in progress, this is because the resources used by the Job are still being cleaned up.
CANCELLATION_IN_PROGRESS = 7;public static final int CANCELLED_VALUE
The Job has been cancelled, the task executions were stopped and the resources were cleaned up.
CANCELLED = 8;public static JobStatus.State[] values()
for (JobStatus.State c : JobStatus.State.values()) System.out.println(c);
public static JobStatus.State valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static JobStatus.State valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static JobStatus.State forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<JobStatus.State> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static JobStatus.State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2025 Google LLC. All rights reserved.