# Recommender V1 Client - Class ListRecommendationsResponse (2.2.0)

2.2.0 (latest) 2.1.3 2.0.5 1.11.5 1.10.0 1.9.1 1.8.2 1.7.8 Reference documentation and code samples for the Recommender V1 Client class ListRecommendationsResponse.

Response to the `ListRecommendations` method.

Generated from protobuf message `google.cloud.recommender.v1.ListRecommendationsResponse`

## Namespace

Google \\ Cloud \\ Recommender \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ recommendations` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-recommender/latest/V1.Recommendation>` The set of recommendations for the `parent` resource. |
| `↳ next_page_token` | `string` A token that can be used to request the next page of results. This field is empty if there are no additional results. |

### getRecommendations

The set of recommendations for the `parent` resource.

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

### setRecommendations

The set of recommendations for the `parent` resource.

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

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

### getNextPageToken

A token that can be used to request the next page of results. This field is
empty if there are no additional results.

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

### setNextPageToken

A token that can be used to request the next page of results. This field is
empty if there are no additional results.

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

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