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

The response returned from the [ListConstraints](https://docs.cloud.google.com/php/docs/reference/cloud-org-policy/latest/V2.Client.OrgPolicyClient#_Google_Cloud_OrgPolicy_V2_Client_OrgPolicyClient__listConstraints__) method.

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

## Namespace

Google \\ Cloud \\ OrgPolicy \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ constraints` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-org-policy/latest/V2.Constraint>` The collection of constraints that are available on the targeted resource. |
| `↳ next_page_token` | `string` Page token used to retrieve the next page. This is currently not used. |

### getConstraints

The collection of constraints that are available on the targeted resource.

| **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.Constraint>` |   |

### setConstraints

The collection of constraints that are available on the targeted resource.

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

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

### getNextPageToken

Page token used to retrieve the next page. This is currently not used.

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

### setNextPageToken

Page token used to retrieve the next page. This is currently not used.

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

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