# Cloud Translation V3 Client - Class OperationState (2.3.0)

2.3.0 (latest) 2.2.0 2.1.2 2.0.3 1.21.0 1.20.2 1.19.0 1.18.1 1.17.7 1.16.0 1.15.4 1.14.3 1.13.3 1.12.12 Reference documentation and code samples for the Cloud Translation V3 Client class OperationState.

Possible states of long running operations.

Protobuf type `google.cloud.translation.v3.OperationState`

## Namespace

Google \\ Cloud \\ Translate \\ V3

## Methods

### static::name

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

### static::value

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

## Constants

### OPERATION_STATE_UNSPECIFIED

    Value: 0

Invalid.

Generated from protobuf enum `OPERATION_STATE_UNSPECIFIED = 0;`

### OPERATION_STATE_RUNNING

    Value: 1

Request is being processed.

Generated from protobuf enum `OPERATION_STATE_RUNNING = 1;`

### OPERATION_STATE_SUCCEEDED

    Value: 2

The operation was successful.

Generated from protobuf enum `OPERATION_STATE_SUCCEEDED = 2;`

### OPERATION_STATE_FAILED

    Value: 3

Failed to process operation.

Generated from protobuf enum `OPERATION_STATE_FAILED = 3;`

### OPERATION_STATE_CANCELLING

    Value: 4

Request is in the process of being canceled after caller invoked
longrunning.Operations.CancelOperation on the request id.

Generated from protobuf enum `OPERATION_STATE_CANCELLING = 4;`

### OPERATION_STATE_CANCELLED

    Value: 5

The operation request was successfully canceled.

Generated from protobuf enum `OPERATION_STATE_CANCELLED = 5;`