# Google Cloud Discovery Engine V1 Client - Class TrainCustomModelRequest (1.11.1)

1.11.1 (latest) 1.11.0 1.10.1 1.9.1 1.8.0 1.7.0 1.6.1 1.5.1 1.4.0 1.3.3 1.2.0 1.1.0 1.0.0 0.11.3 0.8.0 0.7.1 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.1 Reference documentation and code samples for the Google Cloud Discovery Engine V1 Client class TrainCustomModelRequest.

Request message for
[SearchTuningService.TrainCustomModel](https://docs.cloud.google.com/php/docs/reference/cloud-discoveryengine/latest/V1.Client.SearchTuningServiceClient#_Google_Cloud_DiscoveryEngine_V1_Client_SearchTuningServiceClient__trainCustomModel__)
method.

Generated from protobuf message `google.cloud.discoveryengine.v1.TrainCustomModelRequest`

## Namespace

Google \\ Cloud \\ DiscoveryEngine \\ V1

## Methods

### __construct

Constructor.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `data` | `mixed` |

### getGcsTrainingInput

Cloud Storage training input.

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

### hasGcsTrainingInput

### setGcsTrainingInput

Cloud Storage training input.

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

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

### getDataStore

Required. The resource name of the Data Store, such as
`projects/*/locations/global/collections/default_collection/dataStores/default_data_store`.

This field is used to identify the data store where to train the models.

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

### setDataStore

Required. The resource name of the Data Store, such as
`projects/*/locations/global/collections/default_collection/dataStores/default_data_store`.

This field is used to identify the data store where to train the models.

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

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

### getModelType

Model to be trained. Supported values are:

- **search-tuning**: Fine tuning the search system based on data provided.

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

### setModelType

Model to be trained. Supported values are:

- **search-tuning**: Fine tuning the search system based on data provided.

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

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

### getErrorConfig

The desired location of errors incurred during the data ingestion and
training.

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

### hasErrorConfig

### clearErrorConfig

### setErrorConfig

The desired location of errors incurred during the data ingestion and
training.

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

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

### getModelId

If not provided, a UUID will be generated.

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

### setModelId

If not provided, a UUID will be generated.

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

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

### getTrainingInput

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