Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/dialogflow_v2beta1/classes.rb,
generated/google/apis/dialogflow_v2beta1/representations.rb,
generated/google/apis/dialogflow_v2beta1/representations.rb
Overview
Carousel Rich Business Messaging (RBM) rich card. Rich cards allow you to respond to users with more vivid content, e.g. with media and suggestions. For more details about RBM rich cards, please see: https://developers.google.com/rcs-business-messaging/rbm/guides/build/send- messages#rich-cards. If you want to show a single card with more control over the layout, please use RbmStandaloneCard instead.
Instance Attribute Summary collapse
-
#card_contents ⇒ Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent>
Required.
-
#card_width ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard
constructor
A new instance of GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard
Returns a new instance of GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard.
4469 4470 4471 |
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 4469 def initialize(**args) update!(**args) end |
Instance Attribute Details
#card_contents ⇒ Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent>
Required. The cards in the carousel. A carousel must have at least
2 cards and at most 10.
Corresponds to the JSON property cardContents
4462 4463 4464 |
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 4462 def card_contents @card_contents end |
#card_width ⇒ String
Required. The width of the cards in the carousel.
Corresponds to the JSON property cardWidth
4467 4468 4469 |
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 4467 def card_width @card_width end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4474 4475 4476 4477 |
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 4474 def update!(**args) @card_contents = args[:card_contents] if args.key?(:card_contents) @card_width = args[:card_width] if args.key?(:card_width) end |