Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageBasicCard

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1IntentMessageBasicCard

Returns a new instance of GoogleCloudDialogflowV2beta1IntentMessageBasicCard.



19145
19146
19147
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 19145

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

Instance Attribute Details

#buttonsArray<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton>

Corresponds to the JSON property buttons



19123
19124
19125
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 19123

def buttons
  @buttons
end

#formatted_textString

Corresponds to the JSON property formattedText

Returns:

  • (String)


19128
19129
19130
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 19128

def formatted_text
  @formatted_text
end

#imageGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageImage

Corresponds to the JSON property image



19133
19134
19135
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 19133

def image
  @image
end

#subtitleString

Corresponds to the JSON property subtitle

Returns:

  • (String)


19138
19139
19140
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 19138

def subtitle
  @subtitle
end

#titleString

Corresponds to the JSON property title

Returns:

  • (String)


19143
19144
19145
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 19143

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



19150
19151
19152
19153
19154
19155
19156
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 19150

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