# Google Anthos Multi Cloud V1 Client - Class OperationMetadata (1.4.1)

1.4.1 (latest) 1.4.0 1.3.1 1.2.2 1.1.2 1.0.0 0.6.1 0.5.4 0.4.4 0.3.0 0.2.3 0.1.4 Reference documentation and code samples for the Google Anthos Multi Cloud V1 Client class OperationMetadata.

Metadata about a long-running operation.

Generated from protobuf message `google.cloud.gkemulticloud.v1.OperationMetadata`

## Namespace

Google \\ Cloud \\ GkeMultiCloud \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ create_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. The time at which this operation was created. |
| `↳ end_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. The time at which this operation was completed. |
| `↳ target` | `string` Output only. The name of the resource associated to this operation. |
| `↳ status_detail` | `string` Output only. Human-readable status of the operation, if any. |
| `↳ error_detail` | `string` Output only. Human-readable status of any error that occurred during the operation. |
| `↳ verb` | `string` Output only. The verb associated with the API method which triggered this operation. Possible values are "create", "delete", "update" and "import". |
| `↳ requested_cancellation` | `bool` Output only. Identifies whether cancellation has been requested for the operation. Operations that have successfully been cancelled have google.longrunning.Operation.error value with a [google.rpc.Status.code](https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Status.html#_Google_Rpc_Status__getCode__) of 1, corresponding to `Code.CANCELLED`. |

### getCreateTime

Output only. The time at which this operation was created.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. The time at which this operation was created.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getEndTime

Output only. The time at which this operation was completed.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasEndTime

### clearEndTime

### setEndTime

Output only. The time at which this operation was completed.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getTarget

Output only. The name of the resource associated to this operation.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setTarget

Output only. The name of the resource associated to this operation.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getStatusDetail

Output only. Human-readable status of the operation, if any.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setStatusDetail

Output only. Human-readable status of the operation, if any.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getErrorDetail

Output only. Human-readable status of any error that occurred during the
operation.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setErrorDetail

Output only. Human-readable status of any error that occurred during the
operation.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getVerb

Output only. The verb associated with the API method which triggered this
operation. Possible values are "create", "delete", "update" and "import".

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setVerb

Output only. The verb associated with the API method which triggered this
operation. Possible values are "create", "delete", "update" and "import".

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getRequestedCancellation

Output only. Identifies whether cancellation has been requested for the
operation. Operations that have successfully been cancelled have
google.longrunning.Operation.error
value with a [google.rpc.Status.code](https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Status.html#_Google_Rpc_Status__getCode__) of 1,
corresponding to `Code.CANCELLED`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setRequestedCancellation

Output only. Identifies whether cancellation has been requested for the
operation. Operations that have successfully been cancelled have
google.longrunning.Operation.error
value with a [google.rpc.Status.code](https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Status.html#_Google_Rpc_Status__getCode__) of 1,
corresponding to `Code.CANCELLED`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |