Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaTrainCustomModelRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/discoveryengine_v1beta/classes.rb,
lib/google/apis/discoveryengine_v1beta/representations.rb,
lib/google/apis/discoveryengine_v1beta/representations.rb

Overview

Request message for SearchTuningService.TrainCustomModel method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaTrainCustomModelRequest

Returns a new instance of GoogleCloudDiscoveryengineV1betaTrainCustomModelRequest.



8436
8437
8438
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 8436

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#error_configGoogle::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaImportErrorConfig

Configuration of destination for Import related errors. Corresponds to the JSON property errorConfig



8423
8424
8425
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 8423

def error_config
  @error_config
end

#gcs_training_inputGoogle::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaTrainCustomModelRequestGcsTrainingInput

Cloud Storage training data input. Corresponds to the JSON property gcsTrainingInput



8428
8429
8430
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 8428

def gcs_training_input
  @gcs_training_input
end

#model_typeString

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

Returns:

  • (String)


8434
8435
8436
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 8434

def model_type
  @model_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8441
8442
8443
8444
8445
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 8441

def update!(**args)
  @error_config = args[:error_config] if args.key?(:error_config)
  @gcs_training_input = args[:gcs_training_input] if args.key?(:gcs_training_input)
  @model_type = args[:model_type] if args.key?(:model_type)
end