# Google Cloud Notebooks V2 Client - Class ListInstancesResponse (1.1.3)

1.1.3 (latest) 1.1.2 1.0.5 0.7.5 0.6.2 0.5.0 0.4.1 0.3.6 Reference documentation and code samples for the Google Cloud Notebooks V2 Client class ListInstancesResponse.

Response for listing notebook instances.

Generated from protobuf message `google.cloud.notebooks.v2.ListInstancesResponse`

## Namespace

Google \\ Cloud \\ Notebooks \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ instances` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-notebooks/latest/V2.Instance>` A list of returned instances. |
| `↳ next_page_token` | `string` Page token that can be used to continue listing from the last result in the next list call. |
| `↳ unreachable` | `string[]` Locations that could not be reached. For example, \['us-west1-a', 'us-central1-b'\]. A ListInstancesResponse will only contain either instances or unreachables, |

### getInstances

A list of returned instances.

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

### setInstances

A list of returned instances.

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

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

### getNextPageToken

Page token that can be used to continue listing from the last result in the
next list call.

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

### setNextPageToken

Page token that can be used to continue listing from the last result in the
next list call.

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

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

### getUnreachable

Locations that could not be reached. For example,
\['us-west1-a', 'us-central1-b'\].

A ListInstancesResponse will only contain either instances or unreachables,

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

### setUnreachable

Locations that could not be reached. For example,
\['us-west1-a', 'us-central1-b'\].

A ListInstancesResponse will only contain either instances or unreachables,

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

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