# Google Cloud Service Health V1 Client - Class ListEventsResponse (0.5.0)

0.5.0 (latest) 0.4.3 0.3.1 0.2.3 0.1.8 Reference documentation and code samples for the Google Cloud Service Health V1 Client class ListEventsResponse.

Response to request for listing events.

Generated from protobuf message `google.cloud.servicehealth.v1.ListEventsResponse`

## Namespace

Google \\ Cloud \\ ServiceHealth \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ events` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-servicehealth/latest/V1.Event>` Output only. List of events. |
| `↳ next_page_token` | `string` Output only. The continuation token, used to page through large result sets. Provide this value in a subsequent request as page_token to retrieve the next page. If this field is not present, there are no subsequent results. |
| `↳ unreachable` | `string[]` Output only. Locations that could not be reached. |

### getEvents

Output only. List of events.

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

### setEvents

Output only. List of events.

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

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

### getNextPageToken

Output only. The continuation token, used to page through large result
sets. Provide this value in a subsequent request as page_token to retrieve
the next page.

If this field is not present, there are no subsequent results.

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

### setNextPageToken

Output only. The continuation token, used to page through large result
sets. Provide this value in a subsequent request as page_token to retrieve
the next page.

If this field is not present, there are no subsequent results.

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

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

### getUnreachable

Output only. Locations that could not be reached.

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

### setUnreachable

Output only. Locations that could not be reached.

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

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