# Google Cloud Gke Recommender V1 Client - Class FetchModelsResponse (0.2.0)

0.2.0 (latest) 0.1.0 Reference documentation and code samples for the Google Cloud Gke Recommender V1 Client class FetchModelsResponse.

Response message for
[GkeInferenceQuickstart.FetchModels](https://docs.cloud.google.com/php/docs/reference/cloud-gkerecommender/latest/V1.Client.GkeInferenceQuickstartClient#_Google_Cloud_GkeRecommender_V1_Client_GkeInferenceQuickstartClient__fetchModels__).

Generated from protobuf message `google.cloud.gkerecommender.v1.FetchModelsResponse`

## Namespace

Google \\ Cloud \\ GkeRecommender \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ models` | `string[]` Output only. List of available models. Open-source models follow the Huggingface Hub `owner/model_name` format. |
| `↳ next_page_token` | `string` Output only. A token which may be sent as page_token in a subsequent `FetchModelsResponse` call to retrieve the next page of results. If this field is omitted or empty, then there are no more results to return. |

### getModels

Output only. List of available models. Open-source models follow the
Huggingface Hub `owner/model_name` format.

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

### setModels

Output only. List of available models. Open-source models follow the
Huggingface Hub `owner/model_name` format.

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

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

### getNextPageToken

Output only. A token which may be sent as
page_token in a subsequent
`FetchModelsResponse` call to retrieve the next page of results.

If this field is omitted or empty, then there are no more results to
return.

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

### setNextPageToken

Output only. A token which may be sent as
page_token in a subsequent
`FetchModelsResponse` call to retrieve the next page of results.

If this field is omitted or empty, then there are no more results to
return.

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

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