Class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1PredictResponsePredictionResult
- Inherits:
-
Object
- Object
- Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1PredictResponsePredictionResult
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/recommendationengine_v1beta1/classes.rb,
generated/google/apis/recommendationengine_v1beta1/representations.rb,
generated/google/apis/recommendationengine_v1beta1/representations.rb
Overview
PredictionResult represents the recommendation prediction results.
Instance Attribute Summary collapse
-
#id ⇒ String
ID of the recommended catalog item Corresponds to the JSON property
id
. -
#item_metadata ⇒ Hash<String,Object>
Additional item metadata / annotations.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRecommendationengineV1beta1PredictResponsePredictionResult
constructor
A new instance of GoogleCloudRecommendationengineV1beta1PredictResponsePredictionResult.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRecommendationengineV1beta1PredictResponsePredictionResult
Returns a new instance of GoogleCloudRecommendationengineV1beta1PredictResponsePredictionResult.
1125 1126 1127 |
# File 'generated/google/apis/recommendationengine_v1beta1/classes.rb', line 1125 def initialize(**args) update!(**args) end |
Instance Attribute Details
#id ⇒ String
ID of the recommended catalog item
Corresponds to the JSON property id
1114 1115 1116 |
# File 'generated/google/apis/recommendationengine_v1beta1/classes.rb', line 1114 def id @id end |
#item_metadata ⇒ Hash<String,Object>
Additional item metadata / annotations. Possible values: * catalogItem
: JSON
representation of the catalogItem. Will be set if returnCatalogItem
is set
to true in PredictRequest.params
. * score
: Prediction score in double
value. Will be set if returnItemScore
is set to true in PredictRequest.
params
.
Corresponds to the JSON property itemMetadata
1123 1124 1125 |
# File 'generated/google/apis/recommendationengine_v1beta1/classes.rb', line 1123 def @item_metadata end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1130 1131 1132 1133 |
# File 'generated/google/apis/recommendationengine_v1beta1/classes.rb', line 1130 def update!(**args) @id = args[:id] if args.key?(:id) @item_metadata = args[:item_metadata] if args.key?(:item_metadata) end |