Class: Google::Cloud::Dialogflow::V2::Intent::Message::BasicCard
- Inherits:
-
Object
- Object
- Google::Cloud::Dialogflow::V2::Intent::Message::BasicCard
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/dialogflow/v2/intent.rb
Overview
The basic card message. Useful for displaying information.
Defined Under Namespace
Classes: Button
Instance Attribute Summary collapse
-
#buttons ⇒ Array<Google::Cloud::Dialogflow::V2::Intent::Message::BasicCard::Button>
Optional.
-
#formatted_text ⇒ String
Required, unless image is present.
-
#image ⇒ Google::Cloud::Dialogflow::V2::Intent::Message::Image
Optional.
-
#subtitle ⇒ String
Optional.
-
#title ⇒ String
Optional.
Instance Attribute Details
#buttons ⇒ Array<Google::Cloud::Dialogflow::V2::Intent::Message::BasicCard::Button>
Returns Optional. The collection of card buttons.
410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 |
# File 'proto_docs/google/cloud/dialogflow/v2/intent.rb', line 410 class BasicCard include Google::Protobuf::MessageExts extend Google::Protobuf::MessageExts::ClassMethods # The button object that appears at the bottom of a card. # @!attribute [rw] title # @return [String] # Required. The title of the button. # @!attribute [rw] open_uri_action # @return [Google::Cloud::Dialogflow::V2::Intent::Message::BasicCard::Button::OpenUriAction] # Required. Action to take when a user taps on the button. class Button include Google::Protobuf::MessageExts extend Google::Protobuf::MessageExts::ClassMethods # Opens the given URI. # @!attribute [rw] uri # @return [String] # Required. The HTTP or HTTPS scheme URI. class OpenUriAction include Google::Protobuf::MessageExts extend Google::Protobuf::MessageExts::ClassMethods end end end |
#formatted_text ⇒ String
Returns Required, unless image is present. The body text of the card.
410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 |
# File 'proto_docs/google/cloud/dialogflow/v2/intent.rb', line 410 class BasicCard include Google::Protobuf::MessageExts extend Google::Protobuf::MessageExts::ClassMethods # The button object that appears at the bottom of a card. # @!attribute [rw] title # @return [String] # Required. The title of the button. # @!attribute [rw] open_uri_action # @return [Google::Cloud::Dialogflow::V2::Intent::Message::BasicCard::Button::OpenUriAction] # Required. Action to take when a user taps on the button. class Button include Google::Protobuf::MessageExts extend Google::Protobuf::MessageExts::ClassMethods # Opens the given URI. # @!attribute [rw] uri # @return [String] # Required. The HTTP or HTTPS scheme URI. class OpenUriAction include Google::Protobuf::MessageExts extend Google::Protobuf::MessageExts::ClassMethods end end end |
#image ⇒ Google::Cloud::Dialogflow::V2::Intent::Message::Image
Returns Optional. The image for the card.
410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 |
# File 'proto_docs/google/cloud/dialogflow/v2/intent.rb', line 410 class BasicCard include Google::Protobuf::MessageExts extend Google::Protobuf::MessageExts::ClassMethods # The button object that appears at the bottom of a card. # @!attribute [rw] title # @return [String] # Required. The title of the button. # @!attribute [rw] open_uri_action # @return [Google::Cloud::Dialogflow::V2::Intent::Message::BasicCard::Button::OpenUriAction] # Required. Action to take when a user taps on the button. class Button include Google::Protobuf::MessageExts extend Google::Protobuf::MessageExts::ClassMethods # Opens the given URI. # @!attribute [rw] uri # @return [String] # Required. The HTTP or HTTPS scheme URI. class OpenUriAction include Google::Protobuf::MessageExts extend Google::Protobuf::MessageExts::ClassMethods end end end |
#subtitle ⇒ String
Returns Optional. The subtitle of the card.
410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 |
# File 'proto_docs/google/cloud/dialogflow/v2/intent.rb', line 410 class BasicCard include Google::Protobuf::MessageExts extend Google::Protobuf::MessageExts::ClassMethods # The button object that appears at the bottom of a card. # @!attribute [rw] title # @return [String] # Required. The title of the button. # @!attribute [rw] open_uri_action # @return [Google::Cloud::Dialogflow::V2::Intent::Message::BasicCard::Button::OpenUriAction] # Required. Action to take when a user taps on the button. class Button include Google::Protobuf::MessageExts extend Google::Protobuf::MessageExts::ClassMethods # Opens the given URI. # @!attribute [rw] uri # @return [String] # Required. The HTTP or HTTPS scheme URI. class OpenUriAction include Google::Protobuf::MessageExts extend Google::Protobuf::MessageExts::ClassMethods end end end |
#title ⇒ String
Returns Optional. The title of the card.
410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 |
# File 'proto_docs/google/cloud/dialogflow/v2/intent.rb', line 410 class BasicCard include Google::Protobuf::MessageExts extend Google::Protobuf::MessageExts::ClassMethods # The button object that appears at the bottom of a card. # @!attribute [rw] title # @return [String] # Required. The title of the button. # @!attribute [rw] open_uri_action # @return [Google::Cloud::Dialogflow::V2::Intent::Message::BasicCard::Button::OpenUriAction] # Required. Action to take when a user taps on the button. class Button include Google::Protobuf::MessageExts extend Google::Protobuf::MessageExts::ClassMethods # Opens the given URI. # @!attribute [rw] uri # @return [String] # Required. The HTTP or HTTPS scheme URI. class OpenUriAction include Google::Protobuf::MessageExts extend Google::Protobuf::MessageExts::ClassMethods end end end |