Output only. The time the operation finished running.
↳ requested_cancellation
bool
Output only. Identifies whether the user has requested cancellation of the operation. Operations that have been cancelled successfully havegoogle.longrunning.Operation.errorvalue with agoogle.rpc.Status.codeof 1, corresponding to<xref uid="\Google\Rpc\Code::CANCELLED">Code.CANCELLED</xref>.
↳ api_version
string
Output only. API version used to start the operation.
Output only. Identifies whether the user has requested cancellation
of the operation. Operations that have been cancelled successfully
havegoogle.longrunning.Operation.errorvalue with agoogle.rpc.Status.codeof 1,
corresponding to<xref uid="\Google\Rpc\Code::CANCELLED">Code.CANCELLED</xref>.
Returns
Type
Description
bool
setRequestedCancellation
Output only. Identifies whether the user has requested cancellation
of the operation. Operations that have been cancelled successfully
havegoogle.longrunning.Operation.errorvalue with agoogle.rpc.Status.codeof 1,
corresponding to<xref uid="\Google\Rpc\Code::CANCELLED">Code.CANCELLED</xref>.
Parameter
Name
Description
var
bool
Returns
Type
Description
$this
getApiVersion
Output only. API version used to start the operation.
Returns
Type
Description
string
setApiVersion
Output only. API version used to start the operation.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getJob
Output only. The Job associated with the operation.
[[["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,["# Google Cloud Storage Batch Operations V1 Client - Class OperationMetadata (0.1.2)\n\nVersion latestkeyboard_arrow_down\n\n- [0.1.2 (latest)](/php/docs/reference/cloud-storagebatchoperations/latest/V1.OperationMetadata)\n- [0.1.1](/php/docs/reference/cloud-storagebatchoperations/0.1.1/V1.OperationMetadata) \nReference documentation and code samples for the Google Cloud Storage Batch Operations V1 Client class OperationMetadata.\n\nRepresents the metadata of the long-running operation.\n\nGenerated from protobuf message `google.cloud.storagebatchoperations.v1.OperationMetadata`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ StorageBatchOperations \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getOperation\n\nOutput only. The unique operation resource name.\n\nFormat: projects/{project}/locations/global/operations/{operation}.\n\n### setOperation\n\nOutput only. The unique operation resource name.\n\nFormat: projects/{project}/locations/global/operations/{operation}.\n\n### getCreateTime\n\nOutput only. The time the operation was created.\n\n### hasCreateTime\n\n### clearCreateTime\n\n### setCreateTime\n\nOutput only. The time the operation was created.\n\n### getEndTime\n\nOutput only. The time the operation finished running.\n\n### hasEndTime\n\n### clearEndTime\n\n### setEndTime\n\nOutput only. The time the operation finished running.\n\n### getRequestedCancellation\n\nOutput only. Identifies whether the user has requested cancellation\nof the operation. Operations that have been cancelled successfully\nhave\ngoogle.longrunning.Operation.error\nvalue with a [google.rpc.Status.code](https://cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Status.html#_Google_Rpc_Status__getCode__) of 1,\ncorresponding to\n`\u003cxref uid=\"\\Google\\Rpc\\Code::CANCELLED\"\u003eCode.CANCELLED\u003c/xref\u003e`.\n\n### setRequestedCancellation\n\nOutput only. Identifies whether the user has requested cancellation\nof the operation. Operations that have been cancelled successfully\nhave\ngoogle.longrunning.Operation.error\nvalue with a [google.rpc.Status.code](https://cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Status.html#_Google_Rpc_Status__getCode__) of 1,\ncorresponding to\n`\u003cxref uid=\"\\Google\\Rpc\\Code::CANCELLED\"\u003eCode.CANCELLED\u003c/xref\u003e`.\n\n### getApiVersion\n\nOutput only. API version used to start the operation.\n\n### setApiVersion\n\nOutput only. API version used to start the operation.\n\n### getJob\n\nOutput only. The Job associated with the operation.\n\n### hasJob\n\n### clearJob\n\n### setJob\n\nOutput only. The Job associated with the operation."]]