Class: Google::Apis::ContentV2_1::GenerateRecommendationsResponse

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#recommendationsArray<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_tokenString

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

Returns:

  • (String)


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