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

Response to ListWorkloadsRequest.

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

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ workloads` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-orchestration-airflow/latest/V1.ListWorkloadsResponse.ComposerWorkload>` The list of environment workloads. |
| `↳ next_page_token` | `string` The page token used to query for the next page if one exists. |

### getWorkloads

The list of environment workloads.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-orchestration-airflow/latest/V1.ListWorkloadsResponse.ComposerWorkload>` |   |

### setWorkloads

The list of environment workloads.

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

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

### getNextPageToken

The page token used to query for the next page if one exists.

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

### setNextPageToken

The page token used to query for the next page if one exists.

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

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