Class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1PredictResponsePredictionResult
- Inherits:
-
Object
- Object
- Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1PredictResponsePredictionResult
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/recommendationengine_v1beta1/classes.rb,
lib/google/apis/recommendationengine_v1beta1/representations.rb,
lib/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.
1133 1134 1135 |
# File 'lib/google/apis/recommendationengine_v1beta1/classes.rb', line 1133 def initialize(**args) update!(**args) end |
Instance Attribute Details
#id ⇒ String
ID of the recommended catalog item
Corresponds to the JSON property id
1122 1123 1124 |
# File 'lib/google/apis/recommendationengine_v1beta1/classes.rb', line 1122 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
1131 1132 1133 |
# File 'lib/google/apis/recommendationengine_v1beta1/classes.rb', line 1131 def @item_metadata end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1138 1139 1140 1141 |
# File 'lib/google/apis/recommendationengine_v1beta1/classes.rb', line 1138 def update!(**args) @id = args[:id] if args.key?(:id) @item_metadata = args[:item_metadata] if args.key?(:item_metadata) end |