# Google Cloud Policy Simulator V1 Client - Class ListOrgPolicyViolationsResponse (1.3.4)

1.3.4 (latest) 1.3.3 1.2.0 1.1.1 1.0.3 0.2.5 0.1.1 Reference documentation and code samples for the Google Cloud Policy Simulator V1 Client class ListOrgPolicyViolationsResponse.

ListOrgPolicyViolationsResponse is the response message for
[OrgPolicyViolationsPreviewService.ListOrgPolicyViolations](https://docs.cloud.google.com/php/docs/reference/cloud-policysimulator/latest/V1.Client.OrgPolicyViolationsPreviewServiceClient#_Google_Cloud_PolicySimulator_V1_Client_OrgPolicyViolationsPreviewServiceClient__listOrgPolicyViolations__)

Generated from protobuf message `google.cloud.policysimulator.v1.ListOrgPolicyViolationsResponse`

## Namespace

Google \\ Cloud \\ PolicySimulator \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ org_policy_violations` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-policysimulator/latest/V1.OrgPolicyViolation>` The list of OrgPolicyViolations |
| `↳ next_page_token` | `string` A token that you can use to retrieve the next page of results. If this field is omitted, there are no subsequent pages. |

### getOrgPolicyViolations

The list of OrgPolicyViolations

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-policysimulator/latest/V1.OrgPolicyViolation>` |   |

### setOrgPolicyViolations

The list of OrgPolicyViolations

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-policysimulator/latest/V1.OrgPolicyViolation>` |

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

### getNextPageToken

A token that you can use to retrieve the next page of results.

If this field is omitted, there are no subsequent pages.

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

### setNextPageToken

A token that you can use to retrieve the next page of results.

If this field is omitted, there are no subsequent pages.

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

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