# Google Cloud Optimization V1 Client - Class State (1.1.3)

1.1.3 (latest) 1.1.2 1.0.5 0.7.0 0.6.5 0.5.1 0.4.0 0.3.4 0.2.0 0.1.9 Reference documentation and code samples for the Google Cloud Optimization V1 Client class State.

Possible states of the operation.

Protobuf type `google.cloud.optimization.v1.AsyncModelMetadata.State`

## Namespace

Google \\ Cloud \\ Optimization \\ V1 \\ AsyncModelMetadata

## Methods

### static::name

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

### static::value

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

## Constants

### STATE_UNSPECIFIED

    Value: 0

The default value. This value is used if the state is omitted.

Generated from protobuf enum `STATE_UNSPECIFIED = 0;`

### RUNNING

    Value: 1

Request is being processed.

Generated from protobuf enum `RUNNING = 1;`

### SUCCEEDED

    Value: 2

The operation completed successfully.

Generated from protobuf enum `SUCCEEDED = 2;`

### CANCELLED

    Value: 3

The operation was cancelled.

Generated from protobuf enum `CANCELLED = 3;`

### FAILED

    Value: 4

The operation has failed.

Generated from protobuf enum `FAILED = 4;`