Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaRecommendResponseRecommendationResult
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaRecommendResponseRecommendationResult
- 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
RecommendationResult represents a generic recommendation result with associated metadata.
Instance Attribute Summary collapse
-
#document ⇒ Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaDocument
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 / annotations.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaRecommendResponseRecommendationResult
constructor
A new instance of GoogleCloudDiscoveryengineV1alphaRecommendResponseRecommendationResult.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaRecommendResponseRecommendationResult
Returns a new instance of GoogleCloudDiscoveryengineV1alphaRecommendResponseRecommendationResult.
2454 2455 2456 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 2454 def initialize(**args) update!(**args) end |
Instance Attribute Details
#document ⇒ Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaDocument
Document captures all raw metadata information of items to be recommended or
searched.
Corresponds to the JSON property document
2440 2441 2442 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 2440 def document @document end |
#id ⇒ String
Resource ID of the recommended Document.
Corresponds to the JSON property id
2445 2446 2447 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 2445 def id @id end |
#metadata ⇒ Hash<String,Object>
Additional Document metadata / 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
2452 2453 2454 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 2452 def @metadata end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2459 2460 2461 2462 2463 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 2459 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 |