# Google Cloud Vpc Access V1 Client - Class OperationMetadata (2.2.0)

2.2.0 (latest) 2.1.2 2.0.5 1.3.5 1.2.2 1.1.1 1.0.5 Reference documentation and code samples for the Google Cloud Vpc Access V1 Client class OperationMetadata.

Metadata for google.longrunning.Operation.

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

## Namespace

Google \\ Cloud \\ VpcAccess \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ method` | `string` Output only. Method that initiated the operation e.g. google.cloud.vpcaccess.v1.Connectors.CreateConnector. |
| `↳ create_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. Time when the operation was created. |
| `↳ end_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. Time when the operation completed. |
| `↳ target` | `string` Output only. Name of the resource that this operation is acting on e.g. projects/my-project/locations/us-central1/connectors/v1. |

### getMethod

Output only. Method that initiated the operation e.g.

google.cloud.vpcaccess.v1.Connectors.CreateConnector.

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

### setMethod

Output only. Method that initiated the operation e.g.

google.cloud.vpcaccess.v1.Connectors.CreateConnector.

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

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

### getCreateTime

Output only. Time when the operation was created.

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

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. Time when the operation was created.

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

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

### getEndTime

Output only. Time when the operation completed.

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

### hasEndTime

### clearEndTime

### setEndTime

Output only. Time when the operation completed.

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

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

### getTarget

Output only. Name of the resource that this operation is acting on e.g.

projects/my-project/locations/us-central1/connectors/v1.

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

### setTarget

Output only. Name of the resource that this operation is acting on e.g.

projects/my-project/locations/us-central1/connectors/v1.

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

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