Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1RankResponse

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

Response message for RankService.Rank method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1RankResponse

Returns a new instance of GoogleCloudDiscoveryengineV1RankResponse.



5901
5902
5903
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 5901

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

Instance Attribute Details

#recordsArray<Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1RankingRecord>

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



5899
5900
5901
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 5899

def records
  @records
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5906
5907
5908
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 5906

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