# Google Cloud Assured Workloads V1beta1 Client - Class ListWorkloadsResponse (1.1.3)

1.1.3 (latest) 1.1.2 1.0.5 0.11.5 0.10.2 0.9.1 0.8.3 0.7.3

> [!WARNING]
> **Beta**
>
>
> This library is covered by the [Pre-GA Offerings Terms](https://docs.cloud.google.com/terms/service-terms#1)
> of the Terms of Service. Pre-GA libraries might have limited support,
> and changes to pre-GA libraries might not be compatible with other pre-GA versions.
> For more information, see the
> [launch stage descriptions](https://docs.cloud.google.com/products#product-launch-stages).

Reference documentation and code samples for the Google Cloud Assured Workloads V1beta1 Client class ListWorkloadsResponse.

Response of ListWorkloads endpoint.

Generated from protobuf message `google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse`

## Namespace

Google \\ Cloud \\ AssuredWorkloads \\ V1beta1

## 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-assured-workloads/latest/V1beta1.Workload>` List of Workloads under a given parent. |
| `↳ next_page_token` | `string` The next page token. Return empty if reached the last page. |

### getWorkloads

List of Workloads under a given parent.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-assured-workloads/latest/V1beta1.Workload>` |   |

### setWorkloads

List of Workloads under a given parent.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-assured-workloads/latest/V1beta1.Workload>` |

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

### getNextPageToken

The next page token. Return empty if reached the last page.

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

### setNextPageToken

The next page token. Return empty if reached the last page.

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

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