class Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2IntentMessageBasicCard

The basic card message. Useful for displaying information.

Attributes

buttons[RW]

Optional. The collection of card buttons. Corresponds to the JSON property `buttons` @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2IntentMessageBasicCardButton>]

formatted_text[RW]

Required, unless image is present. The body text of the card. Corresponds to the JSON property `formattedText` @return [String]

image[RW]

The image response message. Corresponds to the JSON property `image` @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2IntentMessageImage]

subtitle[RW]

Optional. The subtitle of the card. Corresponds to the JSON property `subtitle` @return [String]

title[RW]

Optional. The title of the card. Corresponds to the JSON property `title` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/dialogflow_v2beta1/classes.rb, line 5935
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/dialogflow_v2beta1/classes.rb, line 5940
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