Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowV2IntentMessageBasicCard

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dialogflow_v3/classes.rb,
lib/google/apis/dialogflow_v3/representations.rb,
lib/google/apis/dialogflow_v3/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2IntentMessageBasicCard

Returns a new instance of GoogleCloudDialogflowV2IntentMessageBasicCard.



14747
14748
14749
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 14747

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

Instance Attribute Details

#buttonsArray<Google::Apis::DialogflowV3::GoogleCloudDialogflowV2IntentMessageBasicCardButton>

Corresponds to the JSON property buttons



14725
14726
14727
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 14725

def buttons
  @buttons
end

#formatted_textString

Corresponds to the JSON property formattedText

Returns:

  • (String)


14730
14731
14732
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 14730

def formatted_text
  @formatted_text
end

#imageGoogle::Apis::DialogflowV3::GoogleCloudDialogflowV2IntentMessageImage

Corresponds to the JSON property image



14735
14736
14737
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 14735

def image
  @image
end

#subtitleString

Corresponds to the JSON property subtitle

Returns:

  • (String)


14740
14741
14742
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 14740

def subtitle
  @subtitle
end

#titleString

Corresponds to the JSON property title

Returns:

  • (String)


14745
14746
14747
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 14745

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



14752
14753
14754
14755
14756
14757
14758
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 14752

def update!(**args)
  @buttons = args[:buttons] if args.key?(:buttons)
  @formatted_text = args[:formatted_text] if args.key?(:formatted_text)
  @image = args[:image] if args.key?(:image)
  @subtitle = args[:subtitle] if args.key?(:subtitle)
  @title = args[:title] if args.key?(:title)
end