# Google Cloud Org Policy V2 Client - Class ListCustomConstraintsRequest (1.3.3)

1.3.3 (latest) 1.3.2 1.2.2 1.1.3 1.0.0 0.7.0 0.6.5 0.5.3 0.4.2 0.3.7 Reference documentation and code samples for the Google Cloud Org Policy V2 Client class ListCustomConstraintsRequest.

The request sent to the [ListCustomConstraints](https://docs.cloud.google.com/php/docs/reference/cloud-org-policy/latest/V2.Client.OrgPolicyClient#_Google_Cloud_OrgPolicy_V2_Client_OrgPolicyClient__listCustomConstraints__) method.

Generated from protobuf message `google.cloud.orgpolicy.v2.ListCustomConstraintsRequest`

## Namespace

Google \\ Cloud \\ OrgPolicy \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. The target Google Cloud resource that parents the set of custom constraints that will be returned from this call. Must be in one of the following forms: \* \* `organizations/{organization_id}` |
| `↳ page_size` | `int` Size of the pages to be returned. This is currently unsupported and will be ignored. The server may at any point start using this field to limit page size. |
| `↳ page_token` | `string` Page token used to retrieve the next page. This is currently unsupported and will be ignored. The server may at any point start using this field. |

### getParent

Required. The target Google Cloud resource that parents the set of custom
constraints that will be returned from this call. Must be in one of the
following forms:

- `organizations/{organization_id}`

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

### setParent

Required. The target Google Cloud resource that parents the set of custom
constraints that will be returned from this call. Must be in one of the
following forms:

- `organizations/{organization_id}`

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

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

### getPageSize

Size of the pages to be returned. This is currently unsupported and will
be ignored. The server may at any point start using this field to limit
page size.

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

### setPageSize

Size of the pages to be returned. This is currently unsupported and will
be ignored. The server may at any point start using this field to limit
page size.

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

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

### getPageToken

Page token used to retrieve the next page. This is currently unsupported
and will be ignored. The server may at any point start using this field.

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

### setPageToken

Page token used to retrieve the next page. This is currently unsupported
and will be ignored. The server may at any point start using this field.

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

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

### static::build

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The target Google Cloud resource that parents the set of custom constraints that will be returned from this call. Must be in one of the following forms: - - `organizations/{organization_id}` Please see OrgPolicyClient::organizationName() for help formatting this field. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-org-policy/latest/V2.ListCustomConstraintsRequest` |   |