Server-defined resource path for the target of the operation.
↳ verb
string
Name of the verb executed by the operation.
↳ status_detail
string
Human-readable status of the operation, if any.
↳ cancel_requested
bool
Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled havegoogle.longrunning.Operation.errorvalue with agoogle.rpc.Status.codeof 1, corresponding toCode.CANCELLED.
Server-defined resource path for the target of the operation.
Returns
Type
Description
string
setTarget
Server-defined resource path for the target of the operation.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getVerb
Name of the verb executed by the operation.
Returns
Type
Description
string
setVerb
Name of the verb executed by the operation.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getStatusDetail
Human-readable status of the operation, if any.
Returns
Type
Description
string
setStatusDetail
Human-readable status of the operation, if any.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getCancelRequested
Identifies whether the user has requested cancellation
of the operation. Operations that have successfully been cancelled
havegoogle.longrunning.Operation.errorvalue with agoogle.rpc.Status.codeof 1,
corresponding toCode.CANCELLED.
Returns
Type
Description
bool
setCancelRequested
Identifies whether the user has requested cancellation
of the operation. Operations that have successfully been cancelled
havegoogle.longrunning.Operation.errorvalue with agoogle.rpc.Status.codeof 1,
corresponding toCode.CANCELLED.
[[["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 Functions V2 Client - Class OperationMetadata (2.0.6)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.6 (latest)](/php/docs/reference/cloud-functions/latest/V2.OperationMetadata)\n- [2.0.5](/php/docs/reference/cloud-functions/2.0.5/V2.OperationMetadata)\n- [1.7.0](/php/docs/reference/cloud-functions/1.7.0/V2.OperationMetadata)\n- [1.6.5](/php/docs/reference/cloud-functions/1.6.5/V2.OperationMetadata)\n- [1.5.0](/php/docs/reference/cloud-functions/1.5.0/V2.OperationMetadata)\n- [1.4.2](/php/docs/reference/cloud-functions/1.4.2/V2.OperationMetadata)\n- [1.3.1](/php/docs/reference/cloud-functions/1.3.1/V2.OperationMetadata)\n- [1.2.0](/php/docs/reference/cloud-functions/1.2.0/V2.OperationMetadata)\n- [1.1.2](/php/docs/reference/cloud-functions/1.1.2/V2.OperationMetadata)\n- [1.0.3](/php/docs/reference/cloud-functions/1.0.3/V2.OperationMetadata) \nReference documentation and code samples for the Google Cloud Functions V2 Client class OperationMetadata.\n\nRepresents the metadata of the long-running operation.\n\nGenerated from protobuf message `google.cloud.functions.v2.OperationMetadata`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Functions \\\\ V2\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getCreateTime\n\nThe time the operation was created.\n\n### hasCreateTime\n\n### clearCreateTime\n\n### setCreateTime\n\nThe time the operation was created.\n\n### getEndTime\n\nThe time the operation finished running.\n\n### hasEndTime\n\n### clearEndTime\n\n### setEndTime\n\nThe time the operation finished running.\n\n### getTarget\n\nServer-defined resource path for the target of the operation.\n\n### setTarget\n\nServer-defined resource path for the target of the operation.\n\n### getVerb\n\nName of the verb executed by the operation.\n\n### setVerb\n\nName of the verb executed by the operation.\n\n### getStatusDetail\n\nHuman-readable status of the operation, if any.\n\n### setStatusDetail\n\nHuman-readable status of the operation, if any.\n\n### getCancelRequested\n\nIdentifies whether the user has requested cancellation\nof the operation. Operations that have successfully been cancelled\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 `Code.CANCELLED`.\n\n### setCancelRequested\n\nIdentifies whether the user has requested cancellation\nof the operation. Operations that have successfully been cancelled\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 `Code.CANCELLED`.\n\n### getApiVersion\n\nAPI version used to start the operation.\n\n### setApiVersion\n\nAPI version used to start the operation.\n\n### getRequestResource\n\nThe original request that started the operation.\n\n### hasRequestResource\n\n### clearRequestResource\n\n### setRequestResource\n\nThe original request that started the operation.\n\n### getStages\n\nMechanism for reporting in-progress stages\n\n### setStages\n\nMechanism for reporting in-progress stages\n\n### getSourceToken\n\nAn identifier for Firebase function sources. Disclaimer: This field is only\nsupported for Firebase function deployments.\n\n### setSourceToken\n\nAn identifier for Firebase function sources. Disclaimer: This field is only\nsupported for Firebase function deployments.\n\n### getBuildName\n\nThe build name of the function for create and update operations.\n\n### setBuildName\n\nThe build name of the function for create and update operations.\n\n### getOperationType\n\nThe operation type.\n\n### setOperationType\n\nThe operation type."]]