# Google Cloud Batch V1 Client - Class State (1.4.1)

1.4.1 (latest) 1.4.0 1.3.1 1.2.2 1.1.7 1.0.3 0.17.0 0.16.10 0.15.0 0.14.0 0.13.1 0.12.1 0.11.3 0.10.0 0.9.0 0.8.0 0.7.0 0.6.0 0.5.2 0.4.0 0.3.0 0.2.2 Reference documentation and code samples for the Google Cloud Batch V1 Client class State.

Task states.

Protobuf type `google.cloud.batch.v1.TaskStatus.State`

## Namespace

Google \\ Cloud \\ Batch \\ V1 \\ TaskStatus

## Methods

### static::name

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `mixed` |

### static::value

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `mixed` |

## Constants

### STATE_UNSPECIFIED

    Value: 0

Unknown state.

Generated from protobuf enum `STATE_UNSPECIFIED = 0;`

### PENDING

    Value: 1

The Task is created and waiting for resources.

Generated from protobuf enum `PENDING = 1;`

### ASSIGNED

    Value: 2

The Task is assigned to at least one VM.

Generated from protobuf enum `ASSIGNED = 2;`

### RUNNING

    Value: 3

The Task is running.

Generated from protobuf enum `RUNNING = 3;`

### FAILED

    Value: 4

The Task has failed.

Generated from protobuf enum `FAILED = 4;`

### SUCCEEDED

    Value: 5

The Task has succeeded.

Generated from protobuf enum `SUCCEEDED = 5;`

### UNEXECUTED

    Value: 6

The Task has not been executed when the Job finishes.

Generated from protobuf enum `UNEXECUTED = 6;`