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 typegoogle.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 enumOPERATION_STATE_UNSPECIFIED = 0;
OPERATION_STATE_SCHEDULED
Value: 1
The operation is scheduled.
Generated from protobuf enumOPERATION_STATE_SCHEDULED = 1;
OPERATION_STATE_WAITING_FOR_PERMISSIONS
Value: 2
Waiting for necessary permissions.
Generated from protobuf enumOPERATION_STATE_WAITING_FOR_PERMISSIONS = 2;
OPERATION_STATE_RUNNING
Value: 3
The operation is running.
Generated from protobuf enumOPERATION_STATE_RUNNING = 3;
OPERATION_STATE_SUCCEEDED
Value: 4
The operation was completed successfully.
Generated from protobuf enumOPERATION_STATE_SUCCEEDED = 4;
OPERATION_STATE_FAILED
Value: 5
The operation failed.
Generated from protobuf enumOPERATION_STATE_FAILED = 5;
OPERATION_STATE_CANCELLED
Value: 6
The operation was cancelled by the user.
Generated from protobuf enumOPERATION_STATE_CANCELLED = 6;
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Stackdriver Logging V2 Client - Class OperationState (1.32.3)\n\nVersion latestkeyboard_arrow_down\n\n- [1.32.3 (latest)](/php/docs/reference/cloud-logging/latest/V2.OperationState)\n- [1.32.2](/php/docs/reference/cloud-logging/1.32.2/V2.OperationState)\n- [1.31.3](/php/docs/reference/cloud-logging/1.31.3/V2.OperationState)\n- [1.30.3](/php/docs/reference/cloud-logging/1.30.3/V2.OperationState)\n- [1.29.0](/php/docs/reference/cloud-logging/1.29.0/V2.OperationState)\n- [1.28.5](/php/docs/reference/cloud-logging/1.28.5/V2.OperationState)\n- [1.27.1](/php/docs/reference/cloud-logging/1.27.1/V2.OperationState)\n- [1.26.0](/php/docs/reference/cloud-logging/1.26.0/V2.OperationState)\n- [1.25.5](/php/docs/reference/cloud-logging/1.25.5/V2.OperationState)\n- [1.24.10](/php/docs/reference/cloud-logging/1.24.10/V2.OperationState) \nReference documentation and code samples for the Stackdriver Logging V2 Client class OperationState.\n\nList of different operation states.\n\nHigh level state of the operation. This is used to report the job's\ncurrent state to the user. Once a long running operation is created,\nthe current state of the operation can be queried even before the\noperation is finished and the final result is available.\n\nProtobuf type `google.logging.v2.OperationState`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Logging \\\\ V2\n\nMethods\n-------\n\n### static::name\n\n### static::value\n\nConstants\n---------\n\n### OPERATION_STATE_UNSPECIFIED\n\n Value: 0\n\nShould not be used.\n\nGenerated from protobuf enum `OPERATION_STATE_UNSPECIFIED = 0;`\n\n### OPERATION_STATE_SCHEDULED\n\n Value: 1\n\nThe operation is scheduled.\n\nGenerated from protobuf enum `OPERATION_STATE_SCHEDULED = 1;`\n\n### OPERATION_STATE_WAITING_FOR_PERMISSIONS\n\n Value: 2\n\nWaiting for necessary permissions.\n\nGenerated from protobuf enum `OPERATION_STATE_WAITING_FOR_PERMISSIONS = 2;`\n\n### OPERATION_STATE_RUNNING\n\n Value: 3\n\nThe operation is running.\n\nGenerated from protobuf enum `OPERATION_STATE_RUNNING = 3;`\n\n### OPERATION_STATE_SUCCEEDED\n\n Value: 4\n\nThe operation was completed successfully.\n\nGenerated from protobuf enum `OPERATION_STATE_SUCCEEDED = 4;`\n\n### OPERATION_STATE_FAILED\n\n Value: 5\n\nThe operation failed.\n\nGenerated from protobuf enum `OPERATION_STATE_FAILED = 5;`\n\n### OPERATION_STATE_CANCELLED\n\n Value: 6\n\nThe operation was cancelled by the user.\n\nGenerated from protobuf enum `OPERATION_STATE_CANCELLED = 6;`"]]