# Google Cloud Dialogflow Cx V3 Client - Class ListVersionsResponse (0.11.1)

0.11.1 (latest) 0.11.0 0.10.2 0.9.2 0.8.1 0.7.2 0.6.0 0.5.2 0.4.1 0.3.4 0.2.1 0.1.1 Reference documentation and code samples for the Google Cloud Dialogflow Cx V3 Client class ListVersionsResponse.

The response message for
[Versions.ListVersions](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.Client.VersionsClient#_Google_Cloud_Dialogflow_Cx_V3_Client_VersionsClient__listVersions__).

Generated from protobuf message `google.cloud.dialogflow.cx.v3.ListVersionsResponse`

## Namespace

Google \\ Cloud \\ Dialogflow \\ Cx \\ V3

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ versions` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.Version>` A list of versions. There will be a maximum number of items returned based on the page_size field in the request. The list may in some cases be empty or contain fewer entries than page_size even if this isn't the last page. |
| `↳ next_page_token` | `string` Token to retrieve the next page of results, or empty if there are no more results in the list. |

### getVersions

A list of versions. There will be a maximum number of items returned based
on the page_size field in the request. The list may in some cases be empty
or contain fewer entries than page_size even if this isn't the last page.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.Version>` |   |

### setVersions

A list of versions. There will be a maximum number of items returned based
on the page_size field in the request. The list may in some cases be empty
or contain fewer entries than page_size even if this isn't the last page.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.Version>` |

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

### getNextPageToken

Token to retrieve the next page of results, or empty if there are no more
results in the list.

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

### setNextPageToken

Token to retrieve the next page of results, or empty if there are no more
results in the list.

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

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