# Google Cloud Policy Simulator V1 Client - Class ListOrgPolicyViolationsPreviewsResponse (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 ListOrgPolicyViolationsPreviewsResponse.

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

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

## Namespace

Google \\ Cloud \\ PolicySimulator \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ org_policy_violations_previews` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-policysimulator/latest/V1.OrgPolicyViolationsPreview>` The list of OrgPolicyViolationsPreview |
| `↳ 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. |

### getOrgPolicyViolationsPreviews

The list of OrgPolicyViolationsPreview

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

### setOrgPolicyViolationsPreviews

The list of OrgPolicyViolationsPreview

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

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