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

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

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

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

## Namespace

Google \\ Cloud \\ GkeRecommender \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ model_server_info` | `https://docs.cloud.google.com/php/docs/reference/cloud-gkerecommender/latest/V1.ModelServerInfo` Required. The model server configuration to get benchmarking data for. Use [GkeInferenceQuickstart.FetchProfiles](https://docs.cloud.google.com/php/docs/reference/cloud-gkerecommender/latest/V1.Client.GkeInferenceQuickstartClient#_Google_Cloud_GkeRecommender_V1_Client_GkeInferenceQuickstartClient__fetchProfiles__) to find valid configurations. |
| `↳ instance_type` | `string` Optional. The instance type to filter benchmarking data. Instance types are in the format `a2-highgpu-1g`. If not provided, all instance types for the given profile's `model_server_info` will be returned. Use [GkeInferenceQuickstart.FetchProfiles](https://docs.cloud.google.com/php/docs/reference/cloud-gkerecommender/latest/V1.Client.GkeInferenceQuickstartClient#_Google_Cloud_GkeRecommender_V1_Client_GkeInferenceQuickstartClient__fetchProfiles__) to find available instance types. |
| `↳ pricing_model` | `string` Optional. The pricing model to use for the benchmarking data. Defaults to `spot`. |

### getModelServerInfo

Required. The model server configuration to get benchmarking data for. Use
[GkeInferenceQuickstart.FetchProfiles](https://docs.cloud.google.com/php/docs/reference/cloud-gkerecommender/latest/V1.Client.GkeInferenceQuickstartClient#_Google_Cloud_GkeRecommender_V1_Client_GkeInferenceQuickstartClient__fetchProfiles__)
to find valid configurations.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-gkerecommender/latest/V1.ModelServerInfo|null` |   |

### hasModelServerInfo

### clearModelServerInfo

### setModelServerInfo

Required. The model server configuration to get benchmarking data for. Use
[GkeInferenceQuickstart.FetchProfiles](https://docs.cloud.google.com/php/docs/reference/cloud-gkerecommender/latest/V1.Client.GkeInferenceQuickstartClient#_Google_Cloud_GkeRecommender_V1_Client_GkeInferenceQuickstartClient__fetchProfiles__)
to find valid configurations.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-gkerecommender/latest/V1.ModelServerInfo` |

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

### getInstanceType

Optional. The instance type to filter benchmarking data. Instance types are
in the format `a2-highgpu-1g`. If not provided, all instance types for the
given profile's `model_server_info` will be returned. Use
[GkeInferenceQuickstart.FetchProfiles](https://docs.cloud.google.com/php/docs/reference/cloud-gkerecommender/latest/V1.Client.GkeInferenceQuickstartClient#_Google_Cloud_GkeRecommender_V1_Client_GkeInferenceQuickstartClient__fetchProfiles__)
to find available instance types.

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

### setInstanceType

Optional. The instance type to filter benchmarking data. Instance types are
in the format `a2-highgpu-1g`. If not provided, all instance types for the
given profile's `model_server_info` will be returned. Use
[GkeInferenceQuickstart.FetchProfiles](https://docs.cloud.google.com/php/docs/reference/cloud-gkerecommender/latest/V1.Client.GkeInferenceQuickstartClient#_Google_Cloud_GkeRecommender_V1_Client_GkeInferenceQuickstartClient__fetchProfiles__)
to find available instance types.

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

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

### getPricingModel

Optional. The pricing model to use for the benchmarking data. Defaults to
`spot`.

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

### setPricingModel

Optional. The pricing model to use for the benchmarking data. Defaults to
`spot`.

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

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