Class: Google::Apis::ContentV2_1::RecommendationDescription

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

Google-provided description for the recommendation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RecommendationDescription

Returns a new instance of RecommendationDescription.



11610
11611
11612
# File 'lib/google/apis/content_v2_1/classes.rb', line 11610

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#textString

Output only. Text of the description. Corresponds to the JSON property text

Returns:

  • (String)


11603
11604
11605
# File 'lib/google/apis/content_v2_1/classes.rb', line 11603

def text
  @text
end

#typeString

Output only. Type of the description. Corresponds to the JSON property type

Returns:

  • (String)


11608
11609
11610
# File 'lib/google/apis/content_v2_1/classes.rb', line 11608

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11615
11616
11617
11618
# File 'lib/google/apis/content_v2_1/classes.rb', line 11615

def update!(**args)
  @text = args[:text] if args.key?(:text)
  @type = args[:type] if args.key?(:type)
end