Google Cloud Gke Recommender V1 Client - Class FetchModelServerVersionsRequest (0.1.0)

Reference documentation and code samples for the Google Cloud Gke Recommender V1 Client class FetchModelServerVersionsRequest.

Request message for GkeInferenceQuickstart.FetchModelServerVersions.

Generated from protobuf message google.cloud.gkerecommender.v1.FetchModelServerVersionsRequest

Namespace

Google \ Cloud \ GkeRecommender \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ model string

Required. The model for which to list model server versions. Open-source models follow the Huggingface Hub owner/model_name format. Use GkeInferenceQuickstart.FetchModels to find available models.

↳ model_server string

Required. The model server for which to list versions. Open-source model servers use simplified, lowercase names (e.g., vllm). Use GkeInferenceQuickstart.FetchModelServers to find available model servers.

↳ page_size int

Optional. The target number of results to return in a single response. If not specified, a default value will be chosen by the service. Note that the response may include a partial list and a caller should only rely on the response's next_page_token to determine if there are more instances left to be queried.

↳ page_token string

Optional. The value of next_page_token received from a previous FetchModelServerVersionsRequest call. Provide this to retrieve the subsequent page in a multi-page list of results. When paginating, all other parameters provided to FetchModelServerVersionsRequest must match the call that provided the page token.

getModel

Required. The model for which to list model server versions. Open-source models follow the Huggingface Hub owner/model_name format. Use GkeInferenceQuickstart.FetchModels to find available models.

Returns
Type Description
string

setModel

Required. The model for which to list model server versions. Open-source models follow the Huggingface Hub owner/model_name format. Use GkeInferenceQuickstart.FetchModels to find available models.

Parameter
Name Description
var string
Returns
Type Description
$this

getModelServer

Required. The model server for which to list versions. Open-source model servers use simplified, lowercase names (e.g., vllm). Use GkeInferenceQuickstart.FetchModelServers to find available model servers.

Returns
Type Description
string

setModelServer

Required. The model server for which to list versions. Open-source model servers use simplified, lowercase names (e.g., vllm). Use GkeInferenceQuickstart.FetchModelServers to find available model servers.

Parameter
Name Description
var string
Returns
Type Description
$this

getPageSize

Optional. The target number of results to return in a single response.

If not specified, a default value will be chosen by the service. Note that the response may include a partial list and a caller should only rely on the response's next_page_token to determine if there are more instances left to be queried.

Returns
Type Description
int

hasPageSize

clearPageSize

setPageSize

Optional. The target number of results to return in a single response.

If not specified, a default value will be chosen by the service. Note that the response may include a partial list and a caller should only rely on the response's next_page_token to determine if there are more instances left to be queried.

Parameter
Name Description
var int
Returns
Type Description
$this

getPageToken

Optional. The value of next_page_token received from a previous FetchModelServerVersionsRequest call.

Provide this to retrieve the subsequent page in a multi-page list of results. When paginating, all other parameters provided to FetchModelServerVersionsRequest must match the call that provided the page token.

Returns
Type Description
string

hasPageToken

clearPageToken

setPageToken

Optional. The value of next_page_token received from a previous FetchModelServerVersionsRequest call.

Provide this to retrieve the subsequent page in a multi-page list of results. When paginating, all other parameters provided to FetchModelServerVersionsRequest must match the call that provided the page token.

Parameter
Name Description
var string
Returns
Type Description
$this