Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaRankResponse

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

Response message for RankService.Rank method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaRankResponse

Returns a new instance of GoogleCloudDiscoveryengineV1alphaRankResponse.



8621
8622
8623
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 8621

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

Instance Attribute Details

#recordsArray<Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaRankingRecord>

A list of records sorted by descending score. Corresponds to the JSON property records



8619
8620
8621
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 8619

def records
  @records
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8626
8627
8628
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 8626

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