Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaRankingRecord
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaRankingRecord
- 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
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) ⇒ GoogleCloudDiscoveryengineV1alphaRankingRecord
constructor
A new instance of GoogleCloudDiscoveryengineV1alphaRankingRecord.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaRankingRecord
Returns a new instance of GoogleCloudDiscoveryengineV1alphaRankingRecord.
5826 5827 5828 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 5826 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
5808 5809 5810 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 5808 def content @content end |
#id ⇒ String
The unique ID to represent the record.
Corresponds to the JSON property id
5813 5814 5815 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 5813 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
5818 5819 5820 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 5818 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
5824 5825 5826 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 5824 def title @title end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5831 5832 5833 5834 5835 5836 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 5831 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 |