# Google Cloud Config Delivery V1 Client - Class ListVariantsResponse (0.3.3)

0.3.3 (latest) 0.3.2 0.2.1 0.1.0 Reference documentation and code samples for the Google Cloud Config Delivery V1 Client class ListVariantsResponse.

Message for response to listing Variants

Generated from protobuf message `google.cloud.configdelivery.v1.ListVariantsResponse`

## Namespace

Google \\ Cloud \\ ConfigDelivery \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ variants` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-configdelivery/latest/V1.Variant>` The list of Variants |
| `↳ next_page_token` | `string` A token identifying a page of results the server should return. |
| `↳ unreachable` | `string[]` Unordered list. Locations that could not be reached. |

### getVariants

The list of Variants

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

### setVariants

The list of Variants

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

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

### getNextPageToken

A token identifying a page of results the server should return.

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

### setNextPageToken

A token identifying a page of results the server should return.

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

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

### getUnreachable

Unordered list. Locations that could not be reached.

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

### setUnreachable

Unordered list. Locations that could not be reached.

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

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