# Cloud Vision V1 Client - Class State (2.2.1)

2.2.1 (latest) 2.2.0 2.1.3 2.0.3 1.10.3 1.9.4 1.8.0 1.7.6 1.6.8 Reference documentation and code samples for the Cloud Vision V1 Client class State.

Enumerates the possible states that the batch request can be in.

Protobuf type `google.cloud.vision.v1.BatchOperationMetadata.State`

## Namespace

Google \\ Cloud \\ Vision \\ V1 \\ BatchOperationMetadata

## Methods

### static::name

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

### static::value

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

## Constants

### STATE_UNSPECIFIED

    Value: 0

Invalid.

Generated from protobuf enum `STATE_UNSPECIFIED = 0;`

### PROCESSING

    Value: 1

Request is actively being processed.

Generated from protobuf enum `PROCESSING = 1;`

### SUCCESSFUL

    Value: 2

The request is done and at least one item has been successfully
processed.

Generated from protobuf enum `SUCCESSFUL = 2;`

### FAILED

    Value: 3

The request is done and no item has been successfully processed.

Generated from protobuf enum `FAILED = 3;`

### CANCELLED

    Value: 4

The request is done after the longrunning.Operations.CancelOperation has
been called by the user. Any records that were processed before the
cancel command are output as specified in the request.

Generated from protobuf enum `CANCELLED = 4;`