# Google Cloud Dataproc V1 Client - Class ClusterOperationMetadata (3.14.0)

3.14.0 (latest) 3.13.4 3.12.0 3.11.0 3.10.1 3.9.0 3.8.1 3.7.1 3.6.1 3.5.1 3.4.0 3.3.0 3.2.2 2.12.0 2.11.0 2.10.0 2.9.1 2.8.2 2.7.0 2.6.1 2.5.0 2.3.0 2.2.3 2.1.0 2.0.0 Reference documentation and code samples for the Google Cloud Dataproc V1 Client class ClusterOperationMetadata.

Metadata describing the operation.

Generated from protobuf message `google.cloud.dataproc.v1.ClusterOperationMetadata`

## Namespace

Google \\ Cloud \\ Dataproc \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ cluster_name` | `string` Output only. Name of the cluster for the operation. |
| `↳ cluster_uuid` | `string` Output only. Cluster UUID for the operation. |
| `↳ status` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataproc/latest/V1.ClusterOperationStatus` Output only. Current operation status. |
| `↳ status_history` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-dataproc/latest/V1.ClusterOperationStatus>` Output only. The previous operation status. |
| `↳ operation_type` | `string` Output only. The operation type. |
| `↳ description` | `string` Output only. Short description of operation. |
| `↳ labels` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` Output only. Labels associated with the operation |
| `↳ warnings` | `array` Output only. Errors encountered during operation execution. |
| `↳ child_operation_ids` | `array` Output only. Child operation ids |

### getClusterName

Output only. Name of the cluster for the operation.

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

### setClusterName

Output only. Name of the cluster for the operation.

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

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

### getClusterUuid

Output only. Cluster UUID for the operation.

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

### setClusterUuid

Output only. Cluster UUID for the operation.

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

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

### getStatus

Output only. Current operation status.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dataproc/latest/V1.ClusterOperationStatus|null` |   |

### hasStatus

### clearStatus

### setStatus

Output only. Current operation status.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataproc/latest/V1.ClusterOperationStatus` |

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

### getStatusHistory

Output only. The previous operation status.

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

### setStatusHistory

Output only. The previous operation status.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-dataproc/latest/V1.ClusterOperationStatus>` |

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

### getOperationType

Output only. The operation type.

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

### setOperationType

Output only. The operation type.

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

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

### getDescription

Output only. Short description of operation.

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

### setDescription

Output only. Short description of operation.

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

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

### getLabels

Output only. Labels associated with the operation

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

### setLabels

Output only. Labels associated with the operation

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

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

### getWarnings

Output only. Errors encountered during operation execution.

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

### setWarnings

Output only. Errors encountered during operation execution.

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

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

### getChildOperationIds

Output only. Child operation ids

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

### setChildOperationIds

Output only. Child operation ids

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

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