Class: Google::Cloud::Dialogflow::V2::Intent::Message::BasicCard

Inherits:
Object
  • Object
show all
Defined in:
lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/intent.rb

Overview

The basic card message. Useful for displaying information.

Defined Under Namespace

Classes: Button

Instance Attribute Summary collapse

Instance Attribute Details

#buttonsArray<Google::Cloud::Dialogflow::V2::Intent::Message::BasicCard::Button>

Returns Optional. The collection of card buttons.

Returns:



327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
# File 'lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/intent.rb', line 327

class BasicCard
  # 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
    # Opens the given URI.
    # @!attribute [rw] uri
    #   @return [String]
    #     Required. The HTTP or HTTPS scheme URI.
    class OpenUriAction; end
  end
end

#formatted_textString

Returns Required, unless image is present. The body text of the card.

Returns:

  • (String)

    Required, unless image is present. The body text of the card.



327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
# File 'lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/intent.rb', line 327

class BasicCard
  # 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
    # Opens the given URI.
    # @!attribute [rw] uri
    #   @return [String]
    #     Required. The HTTP or HTTPS scheme URI.
    class OpenUriAction; end
  end
end

#imageGoogle::Cloud::Dialogflow::V2::Intent::Message::Image

Returns Optional. The image for the card.

Returns:



327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
# File 'lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/intent.rb', line 327

class BasicCard
  # 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
    # Opens the given URI.
    # @!attribute [rw] uri
    #   @return [String]
    #     Required. The HTTP or HTTPS scheme URI.
    class OpenUriAction; end
  end
end

#subtitleString

Returns Optional. The subtitle of the card.

Returns:

  • (String)

    Optional. The subtitle of the card.



327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
# File 'lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/intent.rb', line 327

class BasicCard
  # 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
    # Opens the given URI.
    # @!attribute [rw] uri
    #   @return [String]
    #     Required. The HTTP or HTTPS scheme URI.
    class OpenUriAction; end
  end
end

#titleString

Returns Optional. The title of the card.

Returns:

  • (String)

    Optional. The title of the card.



327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
# File 'lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/intent.rb', line 327

class BasicCard
  # 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
    # Opens the given URI.
    # @!attribute [rw] uri
    #   @return [String]
    #     Required. The HTTP or HTTPS scheme URI.
    class OpenUriAction; end
  end
end