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.



11601
11602
11603
# File 'lib/google/apis/content_v2_1/classes.rb', line 11601

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

Instance Attribute Details

#textString

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

Returns:

  • (String)


11594
11595
11596
# File 'lib/google/apis/content_v2_1/classes.rb', line 11594

def text
  @text
end

#typeString

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

Returns:

  • (String)


11599
11600
11601
# File 'lib/google/apis/content_v2_1/classes.rb', line 11599

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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