# Google Cloud Orchestration Airflow V1 Client - Class OperationMetadata (2.2.3)

2.2.3 (latest) 2.2.2 2.1.8 2.0.1 1.6.4 1.5.0 1.4.2 1.3.0 1.2.0 1.1.0 1.0.4 Reference documentation and code samples for the Google Cloud Orchestration Airflow V1 Client class OperationMetadata.

Metadata describing an operation.

Generated from protobuf message `google.cloud.orchestration.airflow.service.v1.OperationMetadata`

## Namespace

Google \\ Cloud \\ Orchestration \\ Airflow \\ Service \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ state` | `int` Output only. The current operation state. |
| `↳ operation_type` | `int` Output only. The type of operation being performed. |
| `↳ resource` | `string` Output only. The resource being operated on, as a [relative resource name](https://docs.cloud.google.com/apis/design/resource_names#relative_resource_name). |
| `↳ resource_uuid` | `string` Output only. The UUID of the resource being operated on. |
| `↳ create_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. The time the operation was submitted to the server. |
| `↳ end_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. The time when the operation terminated, regardless of its success. This field is unset if the operation is still ongoing. |

### getState

Output only. The current operation state.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-orchestration-airflow/latest/V1.OperationMetadata.State). |

### setState

Output only. The current operation state.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-orchestration-airflow/latest/V1.OperationMetadata.State). |

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

### getOperationType

Output only. The type of operation being performed.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [Type](https://docs.cloud.google.com/php/docs/reference/cloud-orchestration-airflow/latest/V1.OperationMetadata.Type). |

### setOperationType

Output only. The type of operation being performed.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [Type](https://docs.cloud.google.com/php/docs/reference/cloud-orchestration-airflow/latest/V1.OperationMetadata.Type). |

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

### getResource

Output only. The resource being operated on, as a [relative resource name](https://docs.cloud.google.com/apis/design/resource_names#relative_resource_name).

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

### setResource

Output only. The resource being operated on, as a [relative resource name](https://docs.cloud.google.com/apis/design/resource_names#relative_resource_name).

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

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

### getResourceUuid

Output only. The UUID of the resource being operated on.

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

### setResourceUuid

Output only. The UUID of the resource being operated on.

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

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

### getCreateTime

Output only. The time the operation was submitted to the server.

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

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. The time the operation was submitted to the server.

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

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

### getEndTime

Output only. The time when the operation terminated, regardless of its
success. This field is unset if the operation is still ongoing.

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

### hasEndTime

### clearEndTime

### setEndTime

Output only. The time when the operation terminated, regardless of its
success. This field is unset if the operation is still ongoing.

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

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