0.14.0 (latest) 0.13.0 0.11.0 0.8.0 0.7.0 0.5.0 0.3.0 0.2.0 0.1.0

    public interface FetchModelsResponseOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getModels(int index)

    public abstract String getModels(int index)

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

`repeated string models = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the element to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The models at the given index. |

### getModelsBytes(int index)

    public abstract ByteString getModelsBytes(int index)

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

`repeated string models = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the value to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes of the models at the given index. |

### getModelsCount()

    public abstract int getModelsCount()

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

`repeated string models = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The count of models. |

### getModelsList()

    public abstract List<String> getModelsList()

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

`repeated string models = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` | A list containing the models. |

### getNextPageToken()

    public abstract String 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.

`string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The nextPageToken. |

### getNextPageTokenBytes()

    public abstract ByteString getNextPageTokenBytes()

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.

`string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for nextPageToken. |