Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2IntentMessageBasicCard

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2IntentMessageBasicCard

Returns a new instance of GoogleCloudDialogflowV2IntentMessageBasicCard.



16170
16171
16172
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 16170

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

Instance Attribute Details

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

Corresponds to the JSON property buttons



16148
16149
16150
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 16148

def buttons
  @buttons
end

#formatted_textString

Corresponds to the JSON property formattedText

Returns:

  • (String)


16153
16154
16155
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 16153

def formatted_text
  @formatted_text
end

#imageGoogle::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2IntentMessageImage

Corresponds to the JSON property image



16158
16159
16160
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 16158

def image
  @image
end

#subtitleString

Corresponds to the JSON property subtitle

Returns:

  • (String)


16163
16164
16165
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 16163

def subtitle
  @subtitle
end

#titleString

Corresponds to the JSON property title

Returns:

  • (String)


16168
16169
16170
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 16168

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



16175
16176
16177
16178
16179
16180
16181
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 16175

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