Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1RankResponse
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1RankResponse
- 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
-
#records ⇒ Array<Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1RankingRecord>
A list of records sorted by descending score.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1RankResponse
constructor
A new instance of GoogleCloudDiscoveryengineV1RankResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1RankResponse
Returns a new instance of GoogleCloudDiscoveryengineV1RankResponse.
6720 6721 6722 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 6720 def initialize(**args) update!(**args) end |
Instance Attribute Details
#records ⇒ Array<Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1RankingRecord>
A list of records sorted by descending score.
Corresponds to the JSON property records
6718 6719 6720 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 6718 def records @records end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6725 6726 6727 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 6725 def update!(**args) @records = args[:records] if args.key?(:records) end |