# Stackdriver Logging V2 Client - Class OperationState (2.1.0)

2.1.0 (latest) 2.0.0 1.34.5 1.33.0 1.32.3 1.31.3 1.30.3 1.29.0 1.28.5 1.27.1 1.26.0 1.25.5 1.24.10 Reference documentation and code samples for the Stackdriver Logging V2 Client class OperationState.

List of different operation states.

High level state of the operation. This is used to report the job's
current state to the user. Once a long running operation is created,
the current state of the operation can be queried even before the
operation is finished and the final result is available.

Protobuf type `google.logging.v2.OperationState`

## Namespace

Google \\ Cloud \\ Logging \\ V2

## Methods

### static::name

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

### static::value

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

## Constants

### OPERATION_STATE_UNSPECIFIED

    Value: 0

Should not be used.

Generated from protobuf enum `OPERATION_STATE_UNSPECIFIED = 0;`

### OPERATION_STATE_SCHEDULED

    Value: 1

The operation is scheduled.

Generated from protobuf enum `OPERATION_STATE_SCHEDULED = 1;`

### OPERATION_STATE_WAITING_FOR_PERMISSIONS

    Value: 2

Waiting for necessary permissions.

Generated from protobuf enum `OPERATION_STATE_WAITING_FOR_PERMISSIONS = 2;`

### OPERATION_STATE_RUNNING

    Value: 3

The operation is running.

Generated from protobuf enum `OPERATION_STATE_RUNNING = 3;`

### OPERATION_STATE_SUCCEEDED

    Value: 4

The operation was completed successfully.

Generated from protobuf enum `OPERATION_STATE_SUCCEEDED = 4;`

### OPERATION_STATE_FAILED

    Value: 5

The operation failed.

Generated from protobuf enum `OPERATION_STATE_FAILED = 5;`

### OPERATION_STATE_CANCELLED

    Value: 6

The operation was cancelled by the user.

Generated from protobuf enum `OPERATION_STATE_CANCELLED = 6;`