# Discovery Engine V1 API - Class Google::Cloud::DiscoveryEngine::V1::TrainCustomModelRequest (v2.8.0)

2.8.0 (latest) 2.7.0 2.6.2 2.5.0 2.4.0 2.3.1 2.2.0 2.1.1 2.0.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.2 0.9.0 0.8.0 0.7.0 0.6.0 0.5.0 0.4.2 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Discovery Engine V1 API class Google::Cloud::DiscoveryEngine::V1::TrainCustomModelRequest.

Request message for
[SearchTuningService.TrainCustomModel](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-SearchTuningService-Client#Google__Cloud__DiscoveryEngine__V1__SearchTuningService__Client_train_custom_model_instance_ "Google::Cloud::DiscoveryEngine::V1::SearchTuningService::Client#train_custom_model (method)")
method.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #data_store

    def data_store() -> ::String

**Returns**

- (::String) --- 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.

### #data_store=

    def data_store=(value) -> ::String

**Parameter**

- **value** (::String) --- 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**

- (::String) --- 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.

### #error_config

    def error_config() -> ::Google::Cloud::DiscoveryEngine::V1::ImportErrorConfig

**Returns**

- ([::Google::Cloud::DiscoveryEngine::V1::ImportErrorConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-ImportErrorConfig)) --- The desired location of errors incurred during the data ingestion and training.

### #error_config=

    def error_config=(value) -> ::Google::Cloud::DiscoveryEngine::V1::ImportErrorConfig

**Parameter**

- **value** ([::Google::Cloud::DiscoveryEngine::V1::ImportErrorConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-ImportErrorConfig)) --- The desired location of errors incurred during the data ingestion and training.
**Returns**

- ([::Google::Cloud::DiscoveryEngine::V1::ImportErrorConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-ImportErrorConfig)) --- The desired location of errors incurred during the data ingestion and training.

### #gcs_training_input

    def gcs_training_input() -> ::Google::Cloud::DiscoveryEngine::V1::TrainCustomModelRequest::GcsTrainingInput

**Returns**

- ([::Google::Cloud::DiscoveryEngine::V1::TrainCustomModelRequest::GcsTrainingInput](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-TrainCustomModelRequest-GcsTrainingInput)) --- Cloud Storage training input.

### #gcs_training_input=

    def gcs_training_input=(value) -> ::Google::Cloud::DiscoveryEngine::V1::TrainCustomModelRequest::GcsTrainingInput

**Parameter**

- **value** ([::Google::Cloud::DiscoveryEngine::V1::TrainCustomModelRequest::GcsTrainingInput](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-TrainCustomModelRequest-GcsTrainingInput)) --- Cloud Storage training input.
**Returns**

- ([::Google::Cloud::DiscoveryEngine::V1::TrainCustomModelRequest::GcsTrainingInput](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-TrainCustomModelRequest-GcsTrainingInput)) --- Cloud Storage training input.

### #model_id

    def model_id() -> ::String

**Returns**

- (::String) --- If not provided, a UUID will be generated.

### #model_id=

    def model_id=(value) -> ::String

**Parameter**

- **value** (::String) --- If not provided, a UUID will be generated.
**Returns**

- (::String) --- If not provided, a UUID will be generated.

### #model_type

    def model_type() -> ::String

**Returns**

- (::String) --- Model to be trained. Supported values are:

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

### #model_type=

    def model_type=(value) -> ::String

**Parameter**

- **value** (::String) ---

  Model to be trained. Supported values are:
  - **search-tuning**: Fine tuning the search system based on data provided.
**Returns**

- (::String) --- Model to be trained. Supported values are:

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