Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1RecommendResponseRecommendationResult
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1RecommendResponseRecommendationResult
- 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
RecommendationResult represents a generic recommendation result with associated metadata.
Instance Attribute Summary collapse
-
#document ⇒ Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1Document
Document captures all raw metadata information of items to be recommended or searched.
-
#id ⇒ String
Resource ID of the recommended Document.
-
#metadata ⇒ Hash<String,Object>
Additional Document metadata or annotations.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1RecommendResponseRecommendationResult
constructor
A new instance of GoogleCloudDiscoveryengineV1RecommendResponseRecommendationResult.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1RecommendResponseRecommendationResult
Returns a new instance of GoogleCloudDiscoveryengineV1RecommendResponseRecommendationResult.
5768 5769 5770 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 5768 def initialize(**args) update!(**args) end |
Instance Attribute Details
#document ⇒ Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1Document
Document captures all raw metadata information of items to be recommended or
searched.
Corresponds to the JSON property document
5754 5755 5756 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 5754 def document @document end |
#id ⇒ String
Resource ID of the recommended Document.
Corresponds to the JSON property id
5759 5760 5761 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 5759 def id @id end |
#metadata ⇒ Hash<String,Object>
Additional Document metadata or annotations. Possible values: * score
:
Recommendation score in double value. Is set if returnScore
is set to true
in RecommendRequest.params.
Corresponds to the JSON property metadata
5766 5767 5768 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 5766 def @metadata end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5773 5774 5775 5776 5777 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 5773 def update!(**args) @document = args[:document] if args.key?(:document) @id = args[:id] if args.key?(:id) @metadata = args[:metadata] if args.key?(:metadata) end |