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

The response returned from the [ListPolicies](https://docs.cloud.google.com/php/docs/reference/cloud-org-policy/latest/V2.Client.OrgPolicyClient#_Google_Cloud_OrgPolicy_V2_Client_OrgPolicyClient__listPolicies__) method. It will be empty
if no policies are set on the resource.

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

## Namespace

Google \\ Cloud \\ OrgPolicy \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ policies` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-org-policy/latest/V2.Policy>` All policies that exist on the resource. It will be empty if no policies 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. |

### getPolicies

All policies that exist on the resource. It will be empty if no
policies 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.Policy>` |   |

### setPolicies

All policies that exist on the resource. It will be empty if no
policies are set.

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

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