Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1TrainCustomModelRequest

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

Overview

Request message for SearchTuningService.TrainCustomModel method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1TrainCustomModelRequest

Returns a new instance of GoogleCloudDiscoveryengineV1TrainCustomModelRequest.



8420
8421
8422
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 8420

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

Instance Attribute Details

#error_configGoogle::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ImportErrorConfig

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



8402
8403
8404
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 8402

def error_config
  @error_config
end

#gcs_training_inputGoogle::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1TrainCustomModelRequestGcsTrainingInput

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



8407
8408
8409
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 8407

def gcs_training_input
  @gcs_training_input
end

#model_idString

If not provided, a UUID will be generated. Corresponds to the JSON property modelId

Returns:

  • (String)


8412
8413
8414
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 8412

def model_id
  @model_id
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)


8418
8419
8420
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 8418

def model_type
  @model_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8425
8426
8427
8428
8429
8430
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 8425

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_id = args[:model_id] if args.key?(:model_id)
  @model_type = args[:model_type] if args.key?(:model_type)
end