# Google Cloud Org Policy V2 Client - Class ListCustomConstraintsResponse (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 ListCustomConstraintsResponse.

The response returned from 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. It will
be empty if no custom or managed constraints are set on the organization
resource.

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

## Namespace

Google \\ Cloud \\ OrgPolicy \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ custom_constraints` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-org-policy/latest/V2.CustomConstraint>` All custom and managed constraints that exist on the organization resource. It will be empty if no custom constraints are set. |
| `↳ next_page_token` | `string` Page token used to retrieve the next page. This is currently not used, but the server may at any point start supplying a valid token. |

### getCustomConstraints

All custom and managed constraints that exist on the organization resource.

It will be empty if no custom constraints are set.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-org-policy/latest/V2.CustomConstraint>` |   |

### setCustomConstraints

All custom and managed constraints that exist on the organization resource.

It will be empty if no custom constraints are set.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-org-policy/latest/V2.CustomConstraint>` |

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

### getNextPageToken

Page token used to retrieve the next page. This is currently not used, but
the server may at any point start supplying a valid token.

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

### setNextPageToken

Page token used to retrieve the next page. This is currently not used, but
the server may at any point start supplying a valid token.

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

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