Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaRankingRecord
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaRankingRecord
- 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
Record message for RankService.Rank method.
Instance Attribute Summary collapse
-
#content ⇒ String
The content of the record.
-
#id ⇒ String
The unique ID to represent the record.
-
#score ⇒ Float
The score of this record based on the given query and selected model.
-
#title ⇒ String
The title of the record.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaRankingRecord
constructor
A new instance of GoogleCloudDiscoveryengineV1betaRankingRecord.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaRankingRecord
Returns a new instance of GoogleCloudDiscoveryengineV1betaRankingRecord.
6795 6796 6797 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 6795 def initialize(**args) update!(**args) end |
Instance Attribute Details
#content ⇒ String
The content of the record. Empty by default. At least one of title or content
should be set otherwise an INVALID_ARGUMENT error is thrown.
Corresponds to the JSON property content
6777 6778 6779 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 6777 def content @content end |
#id ⇒ String
The unique ID to represent the record.
Corresponds to the JSON property id
6782 6783 6784 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 6782 def id @id end |
#score ⇒ Float
The score of this record based on the given query and selected model.
Corresponds to the JSON property score
6787 6788 6789 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 6787 def score @score end |
#title ⇒ String
The title of the record. Empty by default. At least one of title or content
should be set otherwise an INVALID_ARGUMENT error is thrown.
Corresponds to the JSON property title
6793 6794 6795 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 6793 def title @title end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6800 6801 6802 6803 6804 6805 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 6800 def update!(**args) @content = args[:content] if args.key?(:content) @id = args[:id] if args.key?(:id) @score = args[:score] if args.key?(:score) @title = args[:title] if args.key?(:title) end |