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.



16182
16183
16184
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 16182

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

Instance Attribute Details

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

Corresponds to the JSON property buttons



16160
16161
16162
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 16160

def buttons
  @buttons
end

#formatted_textString

Corresponds to the JSON property formattedText

Returns:

  • (String)


16165
16166
16167
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 16165

def formatted_text
  @formatted_text
end

#imageGoogle::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2IntentMessageImage

Corresponds to the JSON property image



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

def image
  @image
end

#subtitleString

Corresponds to the JSON property subtitle

Returns:

  • (String)


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

def subtitle
  @subtitle
end

#titleString

Corresponds to the JSON property title

Returns:

  • (String)


16180
16181
16182
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 16180

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



16187
16188
16189
16190
16191
16192
16193
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 16187

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