Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaRankResponse

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

Overview

Response message for RankService.Rank method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaRankResponse

Returns a new instance of GoogleCloudDiscoveryengineV1betaRankResponse.



18048
18049
18050
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 18048

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

Instance Attribute Details

#recordsArray<Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaRankingRecord>

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



18046
18047
18048
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 18046

def records
  @records
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



18053
18054
18055
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 18053

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