# Grafeas V1 Client - Class ListOccurrencesResponse (1.7.0)

1.7.0 (latest) 1.6.0 1.5.0 1.4.0 1.3.2 1.2.2 1.1.3 1.0.0 0.10.3 0.9.0 0.8.3 0.7.1 0.6.0 0.5.0 0.4.4 Reference documentation and code samples for the Grafeas V1 Client class ListOccurrencesResponse.

Response for listing occurrences.

Generated from protobuf message `grafeas.v1.ListOccurrencesResponse`

## Namespace

Grafeas \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ occurrences` | `array<https://docs.cloud.google.com/php/docs/reference/grafeas/latest/V1.Occurrence>` The occurrences requested. |
| `↳ next_page_token` | `string` The next pagination token in the list response. It should be used as `page_token` for the following request. An empty value means no more results. |
| `↳ unreachable` | `string[]` Unreachable regions. Populated for requests from the global region when `return_partial_success` is set. Format: `projects/[PROJECT_ID]/locations/[LOCATION]` |

### getOccurrences

The occurrences requested.

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

### setOccurrences

The occurrences requested.

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

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

### getNextPageToken

The next pagination token in the list response. It should be used as
`page_token` for the following request. An empty value means no more
results.

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

### setNextPageToken

The next pagination token in the list response. It should be used as
`page_token` for the following request. An empty value means no more
results.

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

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

### getUnreachable

Unreachable regions. Populated for requests from the global region
when `return_partial_success` is set.

Format: `projects/[PROJECT_ID]/locations/[LOCATION]`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setUnreachable

Unreachable regions. Populated for requests from the global region
when `return_partial_success` is set.

Format: `projects/[PROJECT_ID]/locations/[LOCATION]`

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

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