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.
4997 4998 4999 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 4997 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
4987 4988 4989 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 4987 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
4995 4996 4997 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 4995 def response_token @response_token end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5002 5003 5004 5005 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 5002 def update!(**args) @recommendations = args[:recommendations] if args.key?(:recommendations) @response_token = args[:response_token] if args.key?(:response_token) end |