Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaTrainCustomModelRequest

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

Overview

Request message for SearchTuningService.TrainCustomModel method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaTrainCustomModelRequest

Returns a new instance of GoogleCloudDiscoveryengineV1alphaTrainCustomModelRequest.



6695
6696
6697
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 6695

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

Instance Attribute Details

#error_configGoogle::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaImportErrorConfig

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



6682
6683
6684
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 6682

def error_config
  @error_config
end

#gcs_training_inputGoogle::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaTrainCustomModelRequestGcsTrainingInput

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



6687
6688
6689
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 6687

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)


6693
6694
6695
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 6693

def model_type
  @model_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6700
6701
6702
6703
6704
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 6700

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