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

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/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.



618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
# File 'proto_docs/google/cloud/dialogflow/v2/intent.rb', line 618

class BrowseCarouselCardItem
  include Google::Protobuf::MessageExts
  extend Google::Protobuf::MessageExts::ClassMethods

  # 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
    include Google::Protobuf::MessageExts
    extend Google::Protobuf::MessageExts::ClassMethods

    # 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.



618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
# File 'proto_docs/google/cloud/dialogflow/v2/intent.rb', line 618

class BrowseCarouselCardItem
  include Google::Protobuf::MessageExts
  extend Google::Protobuf::MessageExts::ClassMethods

  # 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
    include Google::Protobuf::MessageExts
    extend Google::Protobuf::MessageExts::ClassMethods

    # 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:



618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
# File 'proto_docs/google/cloud/dialogflow/v2/intent.rb', line 618

class BrowseCarouselCardItem
  include Google::Protobuf::MessageExts
  extend Google::Protobuf::MessageExts::ClassMethods

  # 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
    include Google::Protobuf::MessageExts
    extend Google::Protobuf::MessageExts::ClassMethods

    # 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.



618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
# File 'proto_docs/google/cloud/dialogflow/v2/intent.rb', line 618

class BrowseCarouselCardItem
  include Google::Protobuf::MessageExts
  extend Google::Protobuf::MessageExts::ClassMethods

  # 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
    include Google::Protobuf::MessageExts
    extend Google::Protobuf::MessageExts::ClassMethods

    # 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.



618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
# File 'proto_docs/google/cloud/dialogflow/v2/intent.rb', line 618

class BrowseCarouselCardItem
  include Google::Protobuf::MessageExts
  extend Google::Protobuf::MessageExts::ClassMethods

  # 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
    include Google::Protobuf::MessageExts
    extend Google::Protobuf::MessageExts::ClassMethods

    # 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