Class: Google::Cloud::Dialogflow::V2::Intent::Message::BrowseCarouselCard::BrowseCarouselCardItem

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

Overview

Browsing carousel tile

Defined Under Namespace

Classes: OpenUrlAction

Instance Attribute Summary collapse

Instance Attribute Details

#descriptionString

Returns Optional. Description of the carousel item. Maximum of four lines of text.

Returns:

  • (String)

    Optional. Description of the carousel item. Maximum of four lines of text.



534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
# File 'lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/intent.rb', line 534

class BrowseCarouselCardItem
  # Actions on Google action to open a given url.
  # @!attribute [rw] url
  #   @return [String]
  #     Required. URL
  # @!attribute [rw] url_type_hint
  #   @return [Google::Cloud::Dialogflow::V2::Intent::Message::BrowseCarouselCard::BrowseCarouselCardItem::OpenUrlAction::UrlTypeHint]
  #     Optional. Specifies the type of viewer that is used when opening
  #     the URL. Defaults to opening via web browser.
  class OpenUrlAction
    # Type of the URI.
    module UrlTypeHint
      # Unspecified
      URL_TYPE_HINT_UNSPECIFIED = 0

      # Url would be an amp action
      AMP_ACTION = 1

      # URL that points directly to AMP content, or to a canonical URL
      # which refers to AMP content via <link rel="amphtml">.
      AMP_CONTENT = 2
    end
  end
end

Returns Optional. Text that appears at the bottom of the Browse Carousel Card. Maximum of one line of text.

Returns:

  • (String)

    Optional. Text that appears at the bottom of the Browse Carousel Card. Maximum of one line of text.



534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
# File 'lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/intent.rb', line 534

class BrowseCarouselCardItem
  # Actions on Google action to open a given url.
  # @!attribute [rw] url
  #   @return [String]
  #     Required. URL
  # @!attribute [rw] url_type_hint
  #   @return [Google::Cloud::Dialogflow::V2::Intent::Message::BrowseCarouselCard::BrowseCarouselCardItem::OpenUrlAction::UrlTypeHint]
  #     Optional. Specifies the type of viewer that is used when opening
  #     the URL. Defaults to opening via web browser.
  class OpenUrlAction
    # Type of the URI.
    module UrlTypeHint
      # Unspecified
      URL_TYPE_HINT_UNSPECIFIED = 0

      # Url would be an amp action
      AMP_ACTION = 1

      # URL that points directly to AMP content, or to a canonical URL
      # which refers to AMP content via <link rel="amphtml">.
      AMP_CONTENT = 2
    end
  end
end

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

Returns Optional. Hero image for the carousel item.

Returns:



534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
# File 'lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/intent.rb', line 534

class BrowseCarouselCardItem
  # Actions on Google action to open a given url.
  # @!attribute [rw] url
  #   @return [String]
  #     Required. URL
  # @!attribute [rw] url_type_hint
  #   @return [Google::Cloud::Dialogflow::V2::Intent::Message::BrowseCarouselCard::BrowseCarouselCardItem::OpenUrlAction::UrlTypeHint]
  #     Optional. Specifies the type of viewer that is used when opening
  #     the URL. Defaults to opening via web browser.
  class OpenUrlAction
    # Type of the URI.
    module UrlTypeHint
      # Unspecified
      URL_TYPE_HINT_UNSPECIFIED = 0

      # Url would be an amp action
      AMP_ACTION = 1

      # URL that points directly to AMP content, or to a canonical URL
      # which refers to AMP content via <link rel="amphtml">.
      AMP_CONTENT = 2
    end
  end
end

#open_uri_actionGoogle::Cloud::Dialogflow::V2::Intent::Message::BrowseCarouselCard::BrowseCarouselCardItem::OpenUrlAction

Returns Required. Action to present to the user.



534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
# File 'lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/intent.rb', line 534

class BrowseCarouselCardItem
  # Actions on Google action to open a given url.
  # @!attribute [rw] url
  #   @return [String]
  #     Required. URL
  # @!attribute [rw] url_type_hint
  #   @return [Google::Cloud::Dialogflow::V2::Intent::Message::BrowseCarouselCard::BrowseCarouselCardItem::OpenUrlAction::UrlTypeHint]
  #     Optional. Specifies the type of viewer that is used when opening
  #     the URL. Defaults to opening via web browser.
  class OpenUrlAction
    # Type of the URI.
    module UrlTypeHint
      # Unspecified
      URL_TYPE_HINT_UNSPECIFIED = 0

      # Url would be an amp action
      AMP_ACTION = 1

      # URL that points directly to AMP content, or to a canonical URL
      # which refers to AMP content via <link rel="amphtml">.
      AMP_CONTENT = 2
    end
  end
end

#titleString

Returns Required. Title of the carousel item. Maximum of two lines of text.

Returns:

  • (String)

    Required. Title of the carousel item. Maximum of two lines of text.



534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
# File 'lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/intent.rb', line 534

class BrowseCarouselCardItem
  # Actions on Google action to open a given url.
  # @!attribute [rw] url
  #   @return [String]
  #     Required. URL
  # @!attribute [rw] url_type_hint
  #   @return [Google::Cloud::Dialogflow::V2::Intent::Message::BrowseCarouselCard::BrowseCarouselCardItem::OpenUrlAction::UrlTypeHint]
  #     Optional. Specifies the type of viewer that is used when opening
  #     the URL. Defaults to opening via web browser.
  class OpenUrlAction
    # Type of the URI.
    module UrlTypeHint
      # Unspecified
      URL_TYPE_HINT_UNSPECIFIED = 0

      # Url would be an amp action
      AMP_ACTION = 1

      # URL that points directly to AMP content, or to a canonical URL
      # which refers to AMP content via <link rel="amphtml">.
      AMP_CONTENT = 2
    end
  end
end