Class: Google::Apis::ContentV2_1::GenerateRecommendationsResponse
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::GenerateRecommendationsResponse
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/content_v2_1/classes.rb,
lib/google/apis/content_v2_1/representations.rb,
lib/google/apis/content_v2_1/representations.rb
Overview
Response containing generated recommendations.
Instance Attribute Summary collapse
-
#recommendations ⇒ Array<Google::Apis::ContentV2_1::Recommendation>
Recommendations generated for a request.
-
#response_token ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GenerateRecommendationsResponse
constructor
A new instance of GenerateRecommendationsResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GenerateRecommendationsResponse
Returns a new instance of GenerateRecommendationsResponse.
4949 4950 4951 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 4949 def initialize(**args) update!(**args) end |
Instance Attribute Details
#recommendations ⇒ Array<Google::Apis::ContentV2_1::Recommendation>
Recommendations generated for a request.
Corresponds to the JSON property recommendations
4939 4940 4941 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 4939 def recommendations @recommendations end |
#response_token ⇒ String
Output only. Response token is a string created for each
GenerateRecommendationsResponse. This token doesn't expire, and is globally
unique. This token must be used when reporting interactions for
recommendations.
Corresponds to the JSON property responseToken
4947 4948 4949 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 4947 def response_token @response_token end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4954 4955 4956 4957 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 4954 def update!(**args) @recommendations = args[:recommendations] if args.key?(:recommendations) @response_token = args[:response_token] if args.key?(:response_token) end |