# Google Cloud Orchestration Airflow V1 Client - Class ComposerWorkload (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 ComposerWorkload.

Information about a single workload.

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

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Name of a workload. |
| `↳ type` | `int` Type of a workload. |
| `↳ status` | `https://docs.cloud.google.com/php/docs/reference/cloud-orchestration-airflow/latest/V1.ListWorkloadsResponse.ComposerWorkloadStatus` Output only. Status of a workload. |

### getName

Name of a workload.

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

### setName

Name of a workload.

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

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

### getType

Type of a workload.

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

### setType

Type of a workload.

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

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

### getStatus

Output only. Status of a workload.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-orchestration-airflow/latest/V1.ListWorkloadsResponse.ComposerWorkloadStatus|null` |   |

### hasStatus

### clearStatus

### setStatus

Output only. Status of a workload.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-orchestration-airflow/latest/V1.ListWorkloadsResponse.ComposerWorkloadStatus` |

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