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.



8537
8538
8539
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 8537

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



8530
8531
8532
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 8530

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



8535
8536
8537
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 8535

def sample_query
  @sample_query
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8542
8543
8544
8545
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 8542

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