# Google Cloud Cloud Controls Partner V1beta Client - Class ListWorkloadsRequest (0.5.3)

0.5.3 (latest) 0.5.2 0.4.1 0.3.0 0.2.2 0.1.4

> [!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 Cloud Controls Partner V1beta Client class ListWorkloadsRequest.

Request to list customer workloads.

Generated from protobuf message `google.cloud.cloudcontrolspartner.v1beta.ListWorkloadsRequest`

## Namespace

Google \\ Cloud \\ CloudControlsPartner \\ V1beta

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. Parent resource Format: `organizations/{organization}/locations/{location}/customers/{customer}` |
| `↳ page_size` | `int` The maximum number of workloads to return. The service may return fewer than this value. If unspecified, at most 500 workloads will be returned. |
| `↳ page_token` | `string` A page token, received from a previous `ListWorkloads` call. Provide this to retrieve the subsequent page. |
| `↳ filter` | `string` Optional. Filtering results. |
| `↳ order_by` | `string` Optional. Hint for how to order the results. |

### getParent

Required. Parent resource
Format:
`organizations/{organization}/locations/{location}/customers/{customer}`

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

### setParent

Required. Parent resource
Format:
`organizations/{organization}/locations/{location}/customers/{customer}`

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

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

### getPageSize

The maximum number of workloads to return. The service may return fewer
than this value. If unspecified, at most 500 workloads will be returned.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setPageSize

The maximum number of workloads to return. The service may return fewer
than this value. If unspecified, at most 500 workloads will be returned.

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

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

### getPageToken

A page token, received from a previous `ListWorkloads` call.

Provide this to retrieve the subsequent page.

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

### setPageToken

A page token, received from a previous `ListWorkloads` call.

Provide this to retrieve the subsequent page.

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

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

### getFilter

Optional. Filtering results.

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

### setFilter

Optional. Filtering results.

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

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

### getOrderBy

Optional. Hint for how to order the results.

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

### setOrderBy

Optional. Hint for how to order the results.

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

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

### static::build

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. Parent resource Format: `organizations/{organization}/locations/{location}/customers/{customer}` Please see CloudControlsPartnerCoreClient::customerName() for help formatting this field. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-cloudcontrolspartner/latest/V1beta.ListWorkloadsRequest` |   |