# Google Cloud IoT Core V1 Client - Class ListDevicesResponse (1.7.5)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [1.7.5 (latest)](https://docs.cloud.google.com/php/docs/reference/cloud-iot/latest/V1.ListDevicesResponse)
- [1.7.4](https://docs.cloud.google.com/php/docs/reference/cloud-iot/1.7.4/V1.ListDevicesResponse)
- [1.6.4](https://docs.cloud.google.com/php/docs/reference/cloud-iot/1.6.4/V1.ListDevicesResponse)
- [1.5.12](https://docs.cloud.google.com/php/docs/reference/cloud-iot/1.5.12/V1.ListDevicesResponse)
Reference documentation and code samples for the Google Cloud IoT Core V1 Client class ListDevicesResponse.

Response for `ListDevices`.

Generated from protobuf message `google.cloud.iot.v1.ListDevicesResponse`

## Namespace

Google \\ Cloud \\ Iot \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ devices` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-iot/latest/V1.Device>` The devices that match the request. |
| `↳ next_page_token` | `string` If not empty, indicates that there may be more devices that match the request; this value should be passed in a new `ListDevicesRequest`. |

### getDevices

The devices that match the request.

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

### setDevices

The devices that match the request.

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

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

### getNextPageToken

If not empty, indicates that there may be more devices that match the
request; this value should be passed in a new `ListDevicesRequest`.

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

### setNextPageToken

If not empty, indicates that there may be more devices that match the
request; this value should be passed in a new `ListDevicesRequest`.

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

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