Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaListEvaluationResultsResponseEvaluationResult

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

Represents the results of an evaluation for a single SampleQuery.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaListEvaluationResultsResponseEvaluationResult

Returns a new instance of GoogleCloudDiscoveryengineV1alphaListEvaluationResultsResponseEvaluationResult.



12215
12216
12217
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 12215

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

Instance Attribute Details

#quality_metricsGoogle::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaQualityMetrics

Describes the metrics produced by the evaluation. Corresponds to the JSON property qualityMetrics



12208
12209
12210
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 12208

def quality_metrics
  @quality_metrics
end

#sample_queryGoogle::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSampleQuery

Sample Query captures metadata to be used for evaluation. Corresponds to the JSON property sampleQuery



12213
12214
12215
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 12213

def sample_query
  @sample_query
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12220
12221
12222
12223
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 12220

def update!(**args)
  @quality_metrics = args[:quality_metrics] if args.key?(:quality_metrics)
  @sample_query = args[:sample_query] if args.key?(:sample_query)
end