public static enum TaskStatus.State extends Enum<TaskStatus.State> implements com.google.protobuf.ProtocolMessageEnum
Task states.Protobuf enum
google.cloud.batch.v1.TaskStatus.State| Enum Constant and Description |
|---|
ASSIGNED
The Task is assigned to at least one VM.
|
FAILED
The Task has failed.
|
PENDING
The Task is created and waiting for resources.
|
RUNNING
The Task is running.
|
STATE_UNSPECIFIED
Unknown state.
|
SUCCEEDED
The Task has succeeded.
|
UNEXECUTED
The Task has not been executed when the Job finishes.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
ASSIGNED_VALUE
The Task is assigned to at least one VM.
|
static int |
FAILED_VALUE
The Task has failed.
|
static int |
PENDING_VALUE
The Task is created and waiting for resources.
|
static int |
RUNNING_VALUE
The Task is running.
|
static int |
STATE_UNSPECIFIED_VALUE
Unknown state.
|
static int |
SUCCEEDED_VALUE
The Task has succeeded.
|
static int |
UNEXECUTED_VALUE
The Task has not been executed when the Job finishes.
|
| Modifier and Type | Method and Description |
|---|---|
static TaskStatus.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<TaskStatus.State> |
internalGetValueMap() |
static TaskStatus.State |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static TaskStatus.State |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static TaskStatus.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TaskStatus.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TaskStatus.State STATE_UNSPECIFIED
Unknown state.
STATE_UNSPECIFIED = 0;public static final TaskStatus.State PENDING
The Task is created and waiting for resources.
PENDING = 1;public static final TaskStatus.State ASSIGNED
The Task is assigned to at least one VM.
ASSIGNED = 2;public static final TaskStatus.State RUNNING
The Task is running.
RUNNING = 3;public static final TaskStatus.State FAILED
The Task has failed.
FAILED = 4;public static final TaskStatus.State SUCCEEDED
The Task has succeeded.
SUCCEEDED = 5;public static final TaskStatus.State UNEXECUTED
The Task has not been executed when the Job finishes.
UNEXECUTED = 6;public static final TaskStatus.State UNRECOGNIZED
public static final int STATE_UNSPECIFIED_VALUE
Unknown state.
STATE_UNSPECIFIED = 0;public static final int PENDING_VALUE
The Task is created and waiting for resources.
PENDING = 1;public static final int ASSIGNED_VALUE
The Task is assigned to at least one VM.
ASSIGNED = 2;public static final int RUNNING_VALUE
The Task is running.
RUNNING = 3;public static final int FAILED_VALUE
The Task has failed.
FAILED = 4;public static final int SUCCEEDED_VALUE
The Task has succeeded.
SUCCEEDED = 5;public static final int UNEXECUTED_VALUE
The Task has not been executed when the Job finishes.
UNEXECUTED = 6;public static TaskStatus.State[] values()
for (TaskStatus.State c : TaskStatus.State.values()) System.out.println(c);
public static TaskStatus.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 TaskStatus.State valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static TaskStatus.State forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<TaskStatus.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 TaskStatus.State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2025 Google LLC. All rights reserved.