Class: Google::Cloud::Dialogflow::V2::Intent::Message
- Inherits:
-
Object
- Object
- Google::Cloud::Dialogflow::V2::Intent::Message
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/dialogflow/v2/intent.rb
Overview
A rich response message.
Corresponds to the intent Response
field in the Dialogflow console.
For more information, see
Rich response
messages.
Defined Under Namespace
Modules: Platform Classes: BasicCard, BrowseCarouselCard, Card, CarouselSelect, ColumnProperties, Image, LinkOutSuggestion, ListSelect, MediaContent, QuickReplies, SelectItemInfo, SimpleResponse, SimpleResponses, Suggestion, Suggestions, TableCard, TableCardCell, TableCardRow, Text
Instance Attribute Summary collapse
-
#basic_card ⇒ ::Google::Cloud::Dialogflow::V2::Intent::Message::BasicCard
The basic card response for Actions on Google.
-
#browse_carousel_card ⇒ ::Google::Cloud::Dialogflow::V2::Intent::Message::BrowseCarouselCard
Browse carousel card for Actions on Google.
-
#card ⇒ ::Google::Cloud::Dialogflow::V2::Intent::Message::Card
The card response.
-
#carousel_select ⇒ ::Google::Cloud::Dialogflow::V2::Intent::Message::CarouselSelect
The carousel card response for Actions on Google.
-
#image ⇒ ::Google::Cloud::Dialogflow::V2::Intent::Message::Image
The image response.
-
#link_out_suggestion ⇒ ::Google::Cloud::Dialogflow::V2::Intent::Message::LinkOutSuggestion
The link out suggestion chip for Actions on Google.
-
#list_select ⇒ ::Google::Cloud::Dialogflow::V2::Intent::Message::ListSelect
The list card response for Actions on Google.
-
#media_content ⇒ ::Google::Cloud::Dialogflow::V2::Intent::Message::MediaContent
The media content card for Actions on Google.
-
#payload ⇒ ::Google::Protobuf::Struct
A custom platform-specific response.
-
#platform ⇒ ::Google::Cloud::Dialogflow::V2::Intent::Message::Platform
Optional.
-
#quick_replies ⇒ ::Google::Cloud::Dialogflow::V2::Intent::Message::QuickReplies
The quick replies response.
-
#simple_responses ⇒ ::Google::Cloud::Dialogflow::V2::Intent::Message::SimpleResponses
The voice and text-only responses for Actions on Google.
-
#suggestions ⇒ ::Google::Cloud::Dialogflow::V2::Intent::Message::Suggestions
The suggestion chips for Actions on Google.
-
#table_card ⇒ ::Google::Cloud::Dialogflow::V2::Intent::Message::TableCard
Table card for Actions on Google.
-
#text ⇒ ::Google::Cloud::Dialogflow::V2::Intent::Message::Text
The text response.
Instance Attribute Details
#basic_card ⇒ ::Google::Cloud::Dialogflow::V2::Intent::Message::BasicCard
Returns The basic card response for Actions on Google.
322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 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 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 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 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 |
# File 'proto_docs/google/cloud/dialogflow/v2/intent.rb', line 322 class Message include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The text response message. # @!attribute [rw] text # @return [::Array<::String>] # Optional. The collection of the agent's responses. class Text include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The image response message. # @!attribute [rw] image_uri # @return [::String] # Optional. The public URI to an image file. # @!attribute [rw] accessibility_text # @return [::String] # Optional. A text description of the image to be used for accessibility, # e.g., screen readers. class Image include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The quick replies response message. # @!attribute [rw] title # @return [::String] # Optional. The title of the collection of quick replies. # @!attribute [rw] quick_replies # @return [::Array<::String>] # Optional. The collection of quick replies. class QuickReplies include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The card response message. # @!attribute [rw] title # @return [::String] # Optional. The title of the card. # @!attribute [rw] subtitle # @return [::String] # Optional. The subtitle of the card. # @!attribute [rw] image_uri # @return [::String] # Optional. The public URI to an image file for the card. # @!attribute [rw] buttons # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::Card::Button>] # Optional. The collection of card buttons. class Card include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Contains information about a button. # @!attribute [rw] text # @return [::String] # Optional. The text to show on the button. # @!attribute [rw] postback # @return [::String] # Optional. The text to send back to the Dialogflow API or a URI to # open. class Button include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end # The simple response message containing speech or text. # @!attribute [rw] text_to_speech # @return [::String] # One of text_to_speech or ssml must be provided. The plain text of the # speech output. Mutually exclusive with ssml. # @!attribute [rw] ssml # @return [::String] # One of text_to_speech or ssml must be provided. Structured spoken # response to the user in the SSML format. Mutually exclusive with # text_to_speech. # @!attribute [rw] display_text # @return [::String] # Optional. The text to display. class SimpleResponse include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The collection of simple response candidates. # This message in `QueryResult.fulfillment_messages` and # `WebhookResponse.fulfillment_messages` should contain only one # `SimpleResponse`. # @!attribute [rw] simple_responses # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::SimpleResponse>] # Required. The list of simple responses. class SimpleResponses include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The basic card message. Useful for displaying information. # @!attribute [rw] title # @return [::String] # Optional. The title of the card. # @!attribute [rw] subtitle # @return [::String] # Optional. The subtitle of the card. # @!attribute [rw] formatted_text # @return [::String] # Required, unless image is present. The body text of the card. # @!attribute [rw] image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. The image for the card. # @!attribute [rw] buttons # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::BasicCard::Button>] # Optional. The collection of card buttons. 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 # The suggestion chip message that the user can tap to quickly post a reply # to the conversation. # @!attribute [rw] title # @return [::String] # Required. The text shown the in the suggestion chip. class Suggestion include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The collection of suggestions. # @!attribute [rw] suggestions # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::Suggestion>] # Required. The list of suggested replies. class Suggestions include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The suggestion chip message that allows the user to jump out to the app # or website associated with this agent. # @!attribute [rw] destination_name # @return [::String] # Required. The name of the app or site this chip is linking to. # @!attribute [rw] uri # @return [::String] # Required. The URI of the app or site to open when the user taps the # suggestion chip. class LinkOutSuggestion include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The card for presenting a list of options to select from. # @!attribute [rw] title # @return [::String] # Optional. The overall title of the list. # @!attribute [rw] items # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::ListSelect::Item>] # Required. List items. # @!attribute [rw] subtitle # @return [::String] # Optional. Subtitle of the list. class ListSelect include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # An item in the list. # @!attribute [rw] info # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::SelectItemInfo] # Required. Additional information about this option. # @!attribute [rw] title # @return [::String] # Required. The title of the list item. # @!attribute [rw] description # @return [::String] # Optional. The main text describing the item. # @!attribute [rw] image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. The image to display. class Item include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end # The card for presenting a carousel of options to select from. # @!attribute [rw] items # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::CarouselSelect::Item>] # Required. Carousel items. class CarouselSelect include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # An item in the carousel. # @!attribute [rw] info # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::SelectItemInfo] # Required. Additional info about the option item. # @!attribute [rw] title # @return [::String] # Required. Title of the carousel item. # @!attribute [rw] description # @return [::String] # Optional. The body text of the card. # @!attribute [rw] image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. The image to display. class Item include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end # Additional info about the select item for when it is triggered in a # dialog. # @!attribute [rw] key # @return [::String] # Required. A unique key that will be sent back to the agent if this # response is given. # @!attribute [rw] synonyms # @return [::Array<::String>] # Optional. A list of synonyms that can also be used to trigger this # item in dialog. class SelectItemInfo include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The media content card for Actions on Google. # @!attribute [rw] media_type # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::MediaContent::ResponseMediaType] # Optional. What type of media is the content (ie "audio"). # @!attribute [rw] media_objects # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::MediaContent::ResponseMediaObject>] # Required. List of media objects. class MediaContent include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Response media object for media content card. # @!attribute [rw] name # @return [::String] # Required. Name of media card. # @!attribute [rw] description # @return [::String] # Optional. Description of media card. # @!attribute [rw] large_image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. Image to display above media content. # @!attribute [rw] icon # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. Icon to display above media content. # @!attribute [rw] content_url # @return [::String] # Required. Url where the media is stored. class ResponseMediaObject include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Format of response media type. module ResponseMediaType # Unspecified. RESPONSE_MEDIA_TYPE_UNSPECIFIED = 0 # Response media type is audio. AUDIO = 1 end end # Browse Carousel Card for Actions on Google. # https://developers.google.com/actions/assistant/responses#browsing_carousel # @!attribute [rw] items # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::BrowseCarouselCard::BrowseCarouselCardItem>] # Required. List of items in the Browse Carousel Card. Minimum of two # items, maximum of ten. # @!attribute [rw] image_display_options # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::BrowseCarouselCard::ImageDisplayOptions] # Optional. Settings for displaying the image. Applies to every image in # {::Google::Cloud::Dialogflow::V2::Intent::Message::BrowseCarouselCard#items items}. class BrowseCarouselCard include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Browsing carousel tile # @!attribute [rw] open_uri_action # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::BrowseCarouselCard::BrowseCarouselCardItem::OpenUrlAction] # Required. Action to present to the user. # @!attribute [rw] title # @return [::String] # Required. Title of the carousel item. Maximum of two lines of text. # @!attribute [rw] description # @return [::String] # Optional. Description of the carousel item. Maximum of four lines of # text. # @!attribute [rw] image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. Hero image for the carousel item. # @!attribute [rw] footer # @return [::String] # Optional. Text that appears at the bottom of the Browse Carousel # Card. Maximum of one line of text. 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 # Image display options for Actions on Google. This should be used for # when the image's aspect ratio does not match the image container's # aspect ratio. module ImageDisplayOptions # Fill the gaps between the image and the image container with gray # bars. IMAGE_DISPLAY_OPTIONS_UNSPECIFIED = 0 # Fill the gaps between the image and the image container with gray # bars. GRAY = 1 # Fill the gaps between the image and the image container with white # bars. WHITE = 2 # Image is scaled such that the image width and height match or exceed # the container dimensions. This may crop the top and bottom of the # image if the scaled image height is greater than the container # height, or crop the left and right of the image if the scaled image # width is greater than the container width. This is similar to "Zoom # Mode" on a widescreen TV when playing a 4:3 video. CROPPED = 3 # Pad the gaps between image and image frame with a blurred copy of the # same image. BLURRED_BACKGROUND = 4 end end # Table card for Actions on Google. # @!attribute [rw] title # @return [::String] # Required. Title of the card. # @!attribute [rw] subtitle # @return [::String] # Optional. Subtitle to the title. # @!attribute [rw] image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. Image which should be displayed on the card. # @!attribute [rw] column_properties # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::ColumnProperties>] # Optional. Display properties for the columns in this table. # @!attribute [rw] rows # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::TableCardRow>] # Optional. Rows in this table of data. # @!attribute [rw] buttons # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::BasicCard::Button>] # Optional. List of buttons for the card. class TableCard include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Column properties for # {::Google::Cloud::Dialogflow::V2::Intent::Message::TableCard TableCard}. # @!attribute [rw] header # @return [::String] # Required. Column heading. # @!attribute [rw] horizontal_alignment # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::ColumnProperties::HorizontalAlignment] # Optional. Defines text alignment for all cells in this column. class ColumnProperties include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Text alignments within a cell. module HorizontalAlignment # Text is aligned to the leading edge of the column. HORIZONTAL_ALIGNMENT_UNSPECIFIED = 0 # Text is aligned to the leading edge of the column. LEADING = 1 # Text is centered in the column. CENTER = 2 # Text is aligned to the trailing edge of the column. TRAILING = 3 end end # Row of {::Google::Cloud::Dialogflow::V2::Intent::Message::TableCard TableCard}. # @!attribute [rw] cells # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::TableCardCell>] # Optional. List of cells that make up this row. # @!attribute [rw] divider_after # @return [::Boolean] # Optional. Whether to add a visual divider after this row. class TableCardRow include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Cell of # {::Google::Cloud::Dialogflow::V2::Intent::Message::TableCardRow TableCardRow}. # @!attribute [rw] text # @return [::String] # Required. Text in this cell. class TableCardCell include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The rich response message integration platform. See # [Integrations](https://cloud.google.com/dialogflow/docs/integrations). module Platform # Default platform. PLATFORM_UNSPECIFIED = 0 # Facebook. FACEBOOK = 1 # Slack. SLACK = 2 # Telegram. TELEGRAM = 3 # Kik. KIK = 4 # Skype. SKYPE = 5 # Line. LINE = 6 # Viber. VIBER = 7 # Google Assistant # See [Dialogflow webhook # format](https://developers.google.com/assistant/actions/build/json/dialogflow-webhook-json) ACTIONS_ON_GOOGLE = 8 # Google Hangouts. GOOGLE_HANGOUTS = 11 end end |
#browse_carousel_card ⇒ ::Google::Cloud::Dialogflow::V2::Intent::Message::BrowseCarouselCard
Returns Browse carousel card for Actions on Google.
322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 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 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 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 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 |
# File 'proto_docs/google/cloud/dialogflow/v2/intent.rb', line 322 class Message include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The text response message. # @!attribute [rw] text # @return [::Array<::String>] # Optional. The collection of the agent's responses. class Text include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The image response message. # @!attribute [rw] image_uri # @return [::String] # Optional. The public URI to an image file. # @!attribute [rw] accessibility_text # @return [::String] # Optional. A text description of the image to be used for accessibility, # e.g., screen readers. class Image include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The quick replies response message. # @!attribute [rw] title # @return [::String] # Optional. The title of the collection of quick replies. # @!attribute [rw] quick_replies # @return [::Array<::String>] # Optional. The collection of quick replies. class QuickReplies include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The card response message. # @!attribute [rw] title # @return [::String] # Optional. The title of the card. # @!attribute [rw] subtitle # @return [::String] # Optional. The subtitle of the card. # @!attribute [rw] image_uri # @return [::String] # Optional. The public URI to an image file for the card. # @!attribute [rw] buttons # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::Card::Button>] # Optional. The collection of card buttons. class Card include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Contains information about a button. # @!attribute [rw] text # @return [::String] # Optional. The text to show on the button. # @!attribute [rw] postback # @return [::String] # Optional. The text to send back to the Dialogflow API or a URI to # open. class Button include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end # The simple response message containing speech or text. # @!attribute [rw] text_to_speech # @return [::String] # One of text_to_speech or ssml must be provided. The plain text of the # speech output. Mutually exclusive with ssml. # @!attribute [rw] ssml # @return [::String] # One of text_to_speech or ssml must be provided. Structured spoken # response to the user in the SSML format. Mutually exclusive with # text_to_speech. # @!attribute [rw] display_text # @return [::String] # Optional. The text to display. class SimpleResponse include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The collection of simple response candidates. # This message in `QueryResult.fulfillment_messages` and # `WebhookResponse.fulfillment_messages` should contain only one # `SimpleResponse`. # @!attribute [rw] simple_responses # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::SimpleResponse>] # Required. The list of simple responses. class SimpleResponses include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The basic card message. Useful for displaying information. # @!attribute [rw] title # @return [::String] # Optional. The title of the card. # @!attribute [rw] subtitle # @return [::String] # Optional. The subtitle of the card. # @!attribute [rw] formatted_text # @return [::String] # Required, unless image is present. The body text of the card. # @!attribute [rw] image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. The image for the card. # @!attribute [rw] buttons # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::BasicCard::Button>] # Optional. The collection of card buttons. 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 # The suggestion chip message that the user can tap to quickly post a reply # to the conversation. # @!attribute [rw] title # @return [::String] # Required. The text shown the in the suggestion chip. class Suggestion include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The collection of suggestions. # @!attribute [rw] suggestions # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::Suggestion>] # Required. The list of suggested replies. class Suggestions include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The suggestion chip message that allows the user to jump out to the app # or website associated with this agent. # @!attribute [rw] destination_name # @return [::String] # Required. The name of the app or site this chip is linking to. # @!attribute [rw] uri # @return [::String] # Required. The URI of the app or site to open when the user taps the # suggestion chip. class LinkOutSuggestion include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The card for presenting a list of options to select from. # @!attribute [rw] title # @return [::String] # Optional. The overall title of the list. # @!attribute [rw] items # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::ListSelect::Item>] # Required. List items. # @!attribute [rw] subtitle # @return [::String] # Optional. Subtitle of the list. class ListSelect include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # An item in the list. # @!attribute [rw] info # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::SelectItemInfo] # Required. Additional information about this option. # @!attribute [rw] title # @return [::String] # Required. The title of the list item. # @!attribute [rw] description # @return [::String] # Optional. The main text describing the item. # @!attribute [rw] image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. The image to display. class Item include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end # The card for presenting a carousel of options to select from. # @!attribute [rw] items # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::CarouselSelect::Item>] # Required. Carousel items. class CarouselSelect include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # An item in the carousel. # @!attribute [rw] info # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::SelectItemInfo] # Required. Additional info about the option item. # @!attribute [rw] title # @return [::String] # Required. Title of the carousel item. # @!attribute [rw] description # @return [::String] # Optional. The body text of the card. # @!attribute [rw] image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. The image to display. class Item include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end # Additional info about the select item for when it is triggered in a # dialog. # @!attribute [rw] key # @return [::String] # Required. A unique key that will be sent back to the agent if this # response is given. # @!attribute [rw] synonyms # @return [::Array<::String>] # Optional. A list of synonyms that can also be used to trigger this # item in dialog. class SelectItemInfo include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The media content card for Actions on Google. # @!attribute [rw] media_type # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::MediaContent::ResponseMediaType] # Optional. What type of media is the content (ie "audio"). # @!attribute [rw] media_objects # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::MediaContent::ResponseMediaObject>] # Required. List of media objects. class MediaContent include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Response media object for media content card. # @!attribute [rw] name # @return [::String] # Required. Name of media card. # @!attribute [rw] description # @return [::String] # Optional. Description of media card. # @!attribute [rw] large_image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. Image to display above media content. # @!attribute [rw] icon # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. Icon to display above media content. # @!attribute [rw] content_url # @return [::String] # Required. Url where the media is stored. class ResponseMediaObject include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Format of response media type. module ResponseMediaType # Unspecified. RESPONSE_MEDIA_TYPE_UNSPECIFIED = 0 # Response media type is audio. AUDIO = 1 end end # Browse Carousel Card for Actions on Google. # https://developers.google.com/actions/assistant/responses#browsing_carousel # @!attribute [rw] items # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::BrowseCarouselCard::BrowseCarouselCardItem>] # Required. List of items in the Browse Carousel Card. Minimum of two # items, maximum of ten. # @!attribute [rw] image_display_options # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::BrowseCarouselCard::ImageDisplayOptions] # Optional. Settings for displaying the image. Applies to every image in # {::Google::Cloud::Dialogflow::V2::Intent::Message::BrowseCarouselCard#items items}. class BrowseCarouselCard include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Browsing carousel tile # @!attribute [rw] open_uri_action # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::BrowseCarouselCard::BrowseCarouselCardItem::OpenUrlAction] # Required. Action to present to the user. # @!attribute [rw] title # @return [::String] # Required. Title of the carousel item. Maximum of two lines of text. # @!attribute [rw] description # @return [::String] # Optional. Description of the carousel item. Maximum of four lines of # text. # @!attribute [rw] image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. Hero image for the carousel item. # @!attribute [rw] footer # @return [::String] # Optional. Text that appears at the bottom of the Browse Carousel # Card. Maximum of one line of text. 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 # Image display options for Actions on Google. This should be used for # when the image's aspect ratio does not match the image container's # aspect ratio. module ImageDisplayOptions # Fill the gaps between the image and the image container with gray # bars. IMAGE_DISPLAY_OPTIONS_UNSPECIFIED = 0 # Fill the gaps between the image and the image container with gray # bars. GRAY = 1 # Fill the gaps between the image and the image container with white # bars. WHITE = 2 # Image is scaled such that the image width and height match or exceed # the container dimensions. This may crop the top and bottom of the # image if the scaled image height is greater than the container # height, or crop the left and right of the image if the scaled image # width is greater than the container width. This is similar to "Zoom # Mode" on a widescreen TV when playing a 4:3 video. CROPPED = 3 # Pad the gaps between image and image frame with a blurred copy of the # same image. BLURRED_BACKGROUND = 4 end end # Table card for Actions on Google. # @!attribute [rw] title # @return [::String] # Required. Title of the card. # @!attribute [rw] subtitle # @return [::String] # Optional. Subtitle to the title. # @!attribute [rw] image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. Image which should be displayed on the card. # @!attribute [rw] column_properties # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::ColumnProperties>] # Optional. Display properties for the columns in this table. # @!attribute [rw] rows # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::TableCardRow>] # Optional. Rows in this table of data. # @!attribute [rw] buttons # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::BasicCard::Button>] # Optional. List of buttons for the card. class TableCard include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Column properties for # {::Google::Cloud::Dialogflow::V2::Intent::Message::TableCard TableCard}. # @!attribute [rw] header # @return [::String] # Required. Column heading. # @!attribute [rw] horizontal_alignment # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::ColumnProperties::HorizontalAlignment] # Optional. Defines text alignment for all cells in this column. class ColumnProperties include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Text alignments within a cell. module HorizontalAlignment # Text is aligned to the leading edge of the column. HORIZONTAL_ALIGNMENT_UNSPECIFIED = 0 # Text is aligned to the leading edge of the column. LEADING = 1 # Text is centered in the column. CENTER = 2 # Text is aligned to the trailing edge of the column. TRAILING = 3 end end # Row of {::Google::Cloud::Dialogflow::V2::Intent::Message::TableCard TableCard}. # @!attribute [rw] cells # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::TableCardCell>] # Optional. List of cells that make up this row. # @!attribute [rw] divider_after # @return [::Boolean] # Optional. Whether to add a visual divider after this row. class TableCardRow include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Cell of # {::Google::Cloud::Dialogflow::V2::Intent::Message::TableCardRow TableCardRow}. # @!attribute [rw] text # @return [::String] # Required. Text in this cell. class TableCardCell include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The rich response message integration platform. See # [Integrations](https://cloud.google.com/dialogflow/docs/integrations). module Platform # Default platform. PLATFORM_UNSPECIFIED = 0 # Facebook. FACEBOOK = 1 # Slack. SLACK = 2 # Telegram. TELEGRAM = 3 # Kik. KIK = 4 # Skype. SKYPE = 5 # Line. LINE = 6 # Viber. VIBER = 7 # Google Assistant # See [Dialogflow webhook # format](https://developers.google.com/assistant/actions/build/json/dialogflow-webhook-json) ACTIONS_ON_GOOGLE = 8 # Google Hangouts. GOOGLE_HANGOUTS = 11 end end |
#card ⇒ ::Google::Cloud::Dialogflow::V2::Intent::Message::Card
Returns The card response.
322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 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 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 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 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 |
# File 'proto_docs/google/cloud/dialogflow/v2/intent.rb', line 322 class Message include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The text response message. # @!attribute [rw] text # @return [::Array<::String>] # Optional. The collection of the agent's responses. class Text include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The image response message. # @!attribute [rw] image_uri # @return [::String] # Optional. The public URI to an image file. # @!attribute [rw] accessibility_text # @return [::String] # Optional. A text description of the image to be used for accessibility, # e.g., screen readers. class Image include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The quick replies response message. # @!attribute [rw] title # @return [::String] # Optional. The title of the collection of quick replies. # @!attribute [rw] quick_replies # @return [::Array<::String>] # Optional. The collection of quick replies. class QuickReplies include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The card response message. # @!attribute [rw] title # @return [::String] # Optional. The title of the card. # @!attribute [rw] subtitle # @return [::String] # Optional. The subtitle of the card. # @!attribute [rw] image_uri # @return [::String] # Optional. The public URI to an image file for the card. # @!attribute [rw] buttons # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::Card::Button>] # Optional. The collection of card buttons. class Card include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Contains information about a button. # @!attribute [rw] text # @return [::String] # Optional. The text to show on the button. # @!attribute [rw] postback # @return [::String] # Optional. The text to send back to the Dialogflow API or a URI to # open. class Button include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end # The simple response message containing speech or text. # @!attribute [rw] text_to_speech # @return [::String] # One of text_to_speech or ssml must be provided. The plain text of the # speech output. Mutually exclusive with ssml. # @!attribute [rw] ssml # @return [::String] # One of text_to_speech or ssml must be provided. Structured spoken # response to the user in the SSML format. Mutually exclusive with # text_to_speech. # @!attribute [rw] display_text # @return [::String] # Optional. The text to display. class SimpleResponse include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The collection of simple response candidates. # This message in `QueryResult.fulfillment_messages` and # `WebhookResponse.fulfillment_messages` should contain only one # `SimpleResponse`. # @!attribute [rw] simple_responses # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::SimpleResponse>] # Required. The list of simple responses. class SimpleResponses include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The basic card message. Useful for displaying information. # @!attribute [rw] title # @return [::String] # Optional. The title of the card. # @!attribute [rw] subtitle # @return [::String] # Optional. The subtitle of the card. # @!attribute [rw] formatted_text # @return [::String] # Required, unless image is present. The body text of the card. # @!attribute [rw] image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. The image for the card. # @!attribute [rw] buttons # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::BasicCard::Button>] # Optional. The collection of card buttons. 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 # The suggestion chip message that the user can tap to quickly post a reply # to the conversation. # @!attribute [rw] title # @return [::String] # Required. The text shown the in the suggestion chip. class Suggestion include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The collection of suggestions. # @!attribute [rw] suggestions # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::Suggestion>] # Required. The list of suggested replies. class Suggestions include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The suggestion chip message that allows the user to jump out to the app # or website associated with this agent. # @!attribute [rw] destination_name # @return [::String] # Required. The name of the app or site this chip is linking to. # @!attribute [rw] uri # @return [::String] # Required. The URI of the app or site to open when the user taps the # suggestion chip. class LinkOutSuggestion include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The card for presenting a list of options to select from. # @!attribute [rw] title # @return [::String] # Optional. The overall title of the list. # @!attribute [rw] items # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::ListSelect::Item>] # Required. List items. # @!attribute [rw] subtitle # @return [::String] # Optional. Subtitle of the list. class ListSelect include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # An item in the list. # @!attribute [rw] info # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::SelectItemInfo] # Required. Additional information about this option. # @!attribute [rw] title # @return [::String] # Required. The title of the list item. # @!attribute [rw] description # @return [::String] # Optional. The main text describing the item. # @!attribute [rw] image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. The image to display. class Item include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end # The card for presenting a carousel of options to select from. # @!attribute [rw] items # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::CarouselSelect::Item>] # Required. Carousel items. class CarouselSelect include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # An item in the carousel. # @!attribute [rw] info # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::SelectItemInfo] # Required. Additional info about the option item. # @!attribute [rw] title # @return [::String] # Required. Title of the carousel item. # @!attribute [rw] description # @return [::String] # Optional. The body text of the card. # @!attribute [rw] image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. The image to display. class Item include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end # Additional info about the select item for when it is triggered in a # dialog. # @!attribute [rw] key # @return [::String] # Required. A unique key that will be sent back to the agent if this # response is given. # @!attribute [rw] synonyms # @return [::Array<::String>] # Optional. A list of synonyms that can also be used to trigger this # item in dialog. class SelectItemInfo include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The media content card for Actions on Google. # @!attribute [rw] media_type # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::MediaContent::ResponseMediaType] # Optional. What type of media is the content (ie "audio"). # @!attribute [rw] media_objects # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::MediaContent::ResponseMediaObject>] # Required. List of media objects. class MediaContent include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Response media object for media content card. # @!attribute [rw] name # @return [::String] # Required. Name of media card. # @!attribute [rw] description # @return [::String] # Optional. Description of media card. # @!attribute [rw] large_image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. Image to display above media content. # @!attribute [rw] icon # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. Icon to display above media content. # @!attribute [rw] content_url # @return [::String] # Required. Url where the media is stored. class ResponseMediaObject include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Format of response media type. module ResponseMediaType # Unspecified. RESPONSE_MEDIA_TYPE_UNSPECIFIED = 0 # Response media type is audio. AUDIO = 1 end end # Browse Carousel Card for Actions on Google. # https://developers.google.com/actions/assistant/responses#browsing_carousel # @!attribute [rw] items # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::BrowseCarouselCard::BrowseCarouselCardItem>] # Required. List of items in the Browse Carousel Card. Minimum of two # items, maximum of ten. # @!attribute [rw] image_display_options # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::BrowseCarouselCard::ImageDisplayOptions] # Optional. Settings for displaying the image. Applies to every image in # {::Google::Cloud::Dialogflow::V2::Intent::Message::BrowseCarouselCard#items items}. class BrowseCarouselCard include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Browsing carousel tile # @!attribute [rw] open_uri_action # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::BrowseCarouselCard::BrowseCarouselCardItem::OpenUrlAction] # Required. Action to present to the user. # @!attribute [rw] title # @return [::String] # Required. Title of the carousel item. Maximum of two lines of text. # @!attribute [rw] description # @return [::String] # Optional. Description of the carousel item. Maximum of four lines of # text. # @!attribute [rw] image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. Hero image for the carousel item. # @!attribute [rw] footer # @return [::String] # Optional. Text that appears at the bottom of the Browse Carousel # Card. Maximum of one line of text. 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 # Image display options for Actions on Google. This should be used for # when the image's aspect ratio does not match the image container's # aspect ratio. module ImageDisplayOptions # Fill the gaps between the image and the image container with gray # bars. IMAGE_DISPLAY_OPTIONS_UNSPECIFIED = 0 # Fill the gaps between the image and the image container with gray # bars. GRAY = 1 # Fill the gaps between the image and the image container with white # bars. WHITE = 2 # Image is scaled such that the image width and height match or exceed # the container dimensions. This may crop the top and bottom of the # image if the scaled image height is greater than the container # height, or crop the left and right of the image if the scaled image # width is greater than the container width. This is similar to "Zoom # Mode" on a widescreen TV when playing a 4:3 video. CROPPED = 3 # Pad the gaps between image and image frame with a blurred copy of the # same image. BLURRED_BACKGROUND = 4 end end # Table card for Actions on Google. # @!attribute [rw] title # @return [::String] # Required. Title of the card. # @!attribute [rw] subtitle # @return [::String] # Optional. Subtitle to the title. # @!attribute [rw] image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. Image which should be displayed on the card. # @!attribute [rw] column_properties # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::ColumnProperties>] # Optional. Display properties for the columns in this table. # @!attribute [rw] rows # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::TableCardRow>] # Optional. Rows in this table of data. # @!attribute [rw] buttons # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::BasicCard::Button>] # Optional. List of buttons for the card. class TableCard include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Column properties for # {::Google::Cloud::Dialogflow::V2::Intent::Message::TableCard TableCard}. # @!attribute [rw] header # @return [::String] # Required. Column heading. # @!attribute [rw] horizontal_alignment # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::ColumnProperties::HorizontalAlignment] # Optional. Defines text alignment for all cells in this column. class ColumnProperties include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Text alignments within a cell. module HorizontalAlignment # Text is aligned to the leading edge of the column. HORIZONTAL_ALIGNMENT_UNSPECIFIED = 0 # Text is aligned to the leading edge of the column. LEADING = 1 # Text is centered in the column. CENTER = 2 # Text is aligned to the trailing edge of the column. TRAILING = 3 end end # Row of {::Google::Cloud::Dialogflow::V2::Intent::Message::TableCard TableCard}. # @!attribute [rw] cells # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::TableCardCell>] # Optional. List of cells that make up this row. # @!attribute [rw] divider_after # @return [::Boolean] # Optional. Whether to add a visual divider after this row. class TableCardRow include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Cell of # {::Google::Cloud::Dialogflow::V2::Intent::Message::TableCardRow TableCardRow}. # @!attribute [rw] text # @return [::String] # Required. Text in this cell. class TableCardCell include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The rich response message integration platform. See # [Integrations](https://cloud.google.com/dialogflow/docs/integrations). module Platform # Default platform. PLATFORM_UNSPECIFIED = 0 # Facebook. FACEBOOK = 1 # Slack. SLACK = 2 # Telegram. TELEGRAM = 3 # Kik. KIK = 4 # Skype. SKYPE = 5 # Line. LINE = 6 # Viber. VIBER = 7 # Google Assistant # See [Dialogflow webhook # format](https://developers.google.com/assistant/actions/build/json/dialogflow-webhook-json) ACTIONS_ON_GOOGLE = 8 # Google Hangouts. GOOGLE_HANGOUTS = 11 end end |
#carousel_select ⇒ ::Google::Cloud::Dialogflow::V2::Intent::Message::CarouselSelect
Returns The carousel card response for Actions on Google.
322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 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 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 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 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 |
# File 'proto_docs/google/cloud/dialogflow/v2/intent.rb', line 322 class Message include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The text response message. # @!attribute [rw] text # @return [::Array<::String>] # Optional. The collection of the agent's responses. class Text include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The image response message. # @!attribute [rw] image_uri # @return [::String] # Optional. The public URI to an image file. # @!attribute [rw] accessibility_text # @return [::String] # Optional. A text description of the image to be used for accessibility, # e.g., screen readers. class Image include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The quick replies response message. # @!attribute [rw] title # @return [::String] # Optional. The title of the collection of quick replies. # @!attribute [rw] quick_replies # @return [::Array<::String>] # Optional. The collection of quick replies. class QuickReplies include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The card response message. # @!attribute [rw] title # @return [::String] # Optional. The title of the card. # @!attribute [rw] subtitle # @return [::String] # Optional. The subtitle of the card. # @!attribute [rw] image_uri # @return [::String] # Optional. The public URI to an image file for the card. # @!attribute [rw] buttons # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::Card::Button>] # Optional. The collection of card buttons. class Card include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Contains information about a button. # @!attribute [rw] text # @return [::String] # Optional. The text to show on the button. # @!attribute [rw] postback # @return [::String] # Optional. The text to send back to the Dialogflow API or a URI to # open. class Button include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end # The simple response message containing speech or text. # @!attribute [rw] text_to_speech # @return [::String] # One of text_to_speech or ssml must be provided. The plain text of the # speech output. Mutually exclusive with ssml. # @!attribute [rw] ssml # @return [::String] # One of text_to_speech or ssml must be provided. Structured spoken # response to the user in the SSML format. Mutually exclusive with # text_to_speech. # @!attribute [rw] display_text # @return [::String] # Optional. The text to display. class SimpleResponse include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The collection of simple response candidates. # This message in `QueryResult.fulfillment_messages` and # `WebhookResponse.fulfillment_messages` should contain only one # `SimpleResponse`. # @!attribute [rw] simple_responses # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::SimpleResponse>] # Required. The list of simple responses. class SimpleResponses include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The basic card message. Useful for displaying information. # @!attribute [rw] title # @return [::String] # Optional. The title of the card. # @!attribute [rw] subtitle # @return [::String] # Optional. The subtitle of the card. # @!attribute [rw] formatted_text # @return [::String] # Required, unless image is present. The body text of the card. # @!attribute [rw] image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. The image for the card. # @!attribute [rw] buttons # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::BasicCard::Button>] # Optional. The collection of card buttons. 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 # The suggestion chip message that the user can tap to quickly post a reply # to the conversation. # @!attribute [rw] title # @return [::String] # Required. The text shown the in the suggestion chip. class Suggestion include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The collection of suggestions. # @!attribute [rw] suggestions # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::Suggestion>] # Required. The list of suggested replies. class Suggestions include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The suggestion chip message that allows the user to jump out to the app # or website associated with this agent. # @!attribute [rw] destination_name # @return [::String] # Required. The name of the app or site this chip is linking to. # @!attribute [rw] uri # @return [::String] # Required. The URI of the app or site to open when the user taps the # suggestion chip. class LinkOutSuggestion include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The card for presenting a list of options to select from. # @!attribute [rw] title # @return [::String] # Optional. The overall title of the list. # @!attribute [rw] items # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::ListSelect::Item>] # Required. List items. # @!attribute [rw] subtitle # @return [::String] # Optional. Subtitle of the list. class ListSelect include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # An item in the list. # @!attribute [rw] info # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::SelectItemInfo] # Required. Additional information about this option. # @!attribute [rw] title # @return [::String] # Required. The title of the list item. # @!attribute [rw] description # @return [::String] # Optional. The main text describing the item. # @!attribute [rw] image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. The image to display. class Item include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end # The card for presenting a carousel of options to select from. # @!attribute [rw] items # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::CarouselSelect::Item>] # Required. Carousel items. class CarouselSelect include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # An item in the carousel. # @!attribute [rw] info # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::SelectItemInfo] # Required. Additional info about the option item. # @!attribute [rw] title # @return [::String] # Required. Title of the carousel item. # @!attribute [rw] description # @return [::String] # Optional. The body text of the card. # @!attribute [rw] image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. The image to display. class Item include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end # Additional info about the select item for when it is triggered in a # dialog. # @!attribute [rw] key # @return [::String] # Required. A unique key that will be sent back to the agent if this # response is given. # @!attribute [rw] synonyms # @return [::Array<::String>] # Optional. A list of synonyms that can also be used to trigger this # item in dialog. class SelectItemInfo include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The media content card for Actions on Google. # @!attribute [rw] media_type # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::MediaContent::ResponseMediaType] # Optional. What type of media is the content (ie "audio"). # @!attribute [rw] media_objects # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::MediaContent::ResponseMediaObject>] # Required. List of media objects. class MediaContent include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Response media object for media content card. # @!attribute [rw] name # @return [::String] # Required. Name of media card. # @!attribute [rw] description # @return [::String] # Optional. Description of media card. # @!attribute [rw] large_image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. Image to display above media content. # @!attribute [rw] icon # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. Icon to display above media content. # @!attribute [rw] content_url # @return [::String] # Required. Url where the media is stored. class ResponseMediaObject include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Format of response media type. module ResponseMediaType # Unspecified. RESPONSE_MEDIA_TYPE_UNSPECIFIED = 0 # Response media type is audio. AUDIO = 1 end end # Browse Carousel Card for Actions on Google. # https://developers.google.com/actions/assistant/responses#browsing_carousel # @!attribute [rw] items # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::BrowseCarouselCard::BrowseCarouselCardItem>] # Required. List of items in the Browse Carousel Card. Minimum of two # items, maximum of ten. # @!attribute [rw] image_display_options # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::BrowseCarouselCard::ImageDisplayOptions] # Optional. Settings for displaying the image. Applies to every image in # {::Google::Cloud::Dialogflow::V2::Intent::Message::BrowseCarouselCard#items items}. class BrowseCarouselCard include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Browsing carousel tile # @!attribute [rw] open_uri_action # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::BrowseCarouselCard::BrowseCarouselCardItem::OpenUrlAction] # Required. Action to present to the user. # @!attribute [rw] title # @return [::String] # Required. Title of the carousel item. Maximum of two lines of text. # @!attribute [rw] description # @return [::String] # Optional. Description of the carousel item. Maximum of four lines of # text. # @!attribute [rw] image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. Hero image for the carousel item. # @!attribute [rw] footer # @return [::String] # Optional. Text that appears at the bottom of the Browse Carousel # Card. Maximum of one line of text. 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 # Image display options for Actions on Google. This should be used for # when the image's aspect ratio does not match the image container's # aspect ratio. module ImageDisplayOptions # Fill the gaps between the image and the image container with gray # bars. IMAGE_DISPLAY_OPTIONS_UNSPECIFIED = 0 # Fill the gaps between the image and the image container with gray # bars. GRAY = 1 # Fill the gaps between the image and the image container with white # bars. WHITE = 2 # Image is scaled such that the image width and height match or exceed # the container dimensions. This may crop the top and bottom of the # image if the scaled image height is greater than the container # height, or crop the left and right of the image if the scaled image # width is greater than the container width. This is similar to "Zoom # Mode" on a widescreen TV when playing a 4:3 video. CROPPED = 3 # Pad the gaps between image and image frame with a blurred copy of the # same image. BLURRED_BACKGROUND = 4 end end # Table card for Actions on Google. # @!attribute [rw] title # @return [::String] # Required. Title of the card. # @!attribute [rw] subtitle # @return [::String] # Optional. Subtitle to the title. # @!attribute [rw] image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. Image which should be displayed on the card. # @!attribute [rw] column_properties # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::ColumnProperties>] # Optional. Display properties for the columns in this table. # @!attribute [rw] rows # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::TableCardRow>] # Optional. Rows in this table of data. # @!attribute [rw] buttons # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::BasicCard::Button>] # Optional. List of buttons for the card. class TableCard include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Column properties for # {::Google::Cloud::Dialogflow::V2::Intent::Message::TableCard TableCard}. # @!attribute [rw] header # @return [::String] # Required. Column heading. # @!attribute [rw] horizontal_alignment # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::ColumnProperties::HorizontalAlignment] # Optional. Defines text alignment for all cells in this column. class ColumnProperties include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Text alignments within a cell. module HorizontalAlignment # Text is aligned to the leading edge of the column. HORIZONTAL_ALIGNMENT_UNSPECIFIED = 0 # Text is aligned to the leading edge of the column. LEADING = 1 # Text is centered in the column. CENTER = 2 # Text is aligned to the trailing edge of the column. TRAILING = 3 end end # Row of {::Google::Cloud::Dialogflow::V2::Intent::Message::TableCard TableCard}. # @!attribute [rw] cells # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::TableCardCell>] # Optional. List of cells that make up this row. # @!attribute [rw] divider_after # @return [::Boolean] # Optional. Whether to add a visual divider after this row. class TableCardRow include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Cell of # {::Google::Cloud::Dialogflow::V2::Intent::Message::TableCardRow TableCardRow}. # @!attribute [rw] text # @return [::String] # Required. Text in this cell. class TableCardCell include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The rich response message integration platform. See # [Integrations](https://cloud.google.com/dialogflow/docs/integrations). module Platform # Default platform. PLATFORM_UNSPECIFIED = 0 # Facebook. FACEBOOK = 1 # Slack. SLACK = 2 # Telegram. TELEGRAM = 3 # Kik. KIK = 4 # Skype. SKYPE = 5 # Line. LINE = 6 # Viber. VIBER = 7 # Google Assistant # See [Dialogflow webhook # format](https://developers.google.com/assistant/actions/build/json/dialogflow-webhook-json) ACTIONS_ON_GOOGLE = 8 # Google Hangouts. GOOGLE_HANGOUTS = 11 end end |
#image ⇒ ::Google::Cloud::Dialogflow::V2::Intent::Message::Image
Returns The image response.
322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 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 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 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 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 |
# File 'proto_docs/google/cloud/dialogflow/v2/intent.rb', line 322 class Message include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The text response message. # @!attribute [rw] text # @return [::Array<::String>] # Optional. The collection of the agent's responses. class Text include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The image response message. # @!attribute [rw] image_uri # @return [::String] # Optional. The public URI to an image file. # @!attribute [rw] accessibility_text # @return [::String] # Optional. A text description of the image to be used for accessibility, # e.g., screen readers. class Image include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The quick replies response message. # @!attribute [rw] title # @return [::String] # Optional. The title of the collection of quick replies. # @!attribute [rw] quick_replies # @return [::Array<::String>] # Optional. The collection of quick replies. class QuickReplies include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The card response message. # @!attribute [rw] title # @return [::String] # Optional. The title of the card. # @!attribute [rw] subtitle # @return [::String] # Optional. The subtitle of the card. # @!attribute [rw] image_uri # @return [::String] # Optional. The public URI to an image file for the card. # @!attribute [rw] buttons # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::Card::Button>] # Optional. The collection of card buttons. class Card include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Contains information about a button. # @!attribute [rw] text # @return [::String] # Optional. The text to show on the button. # @!attribute [rw] postback # @return [::String] # Optional. The text to send back to the Dialogflow API or a URI to # open. class Button include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end # The simple response message containing speech or text. # @!attribute [rw] text_to_speech # @return [::String] # One of text_to_speech or ssml must be provided. The plain text of the # speech output. Mutually exclusive with ssml. # @!attribute [rw] ssml # @return [::String] # One of text_to_speech or ssml must be provided. Structured spoken # response to the user in the SSML format. Mutually exclusive with # text_to_speech. # @!attribute [rw] display_text # @return [::String] # Optional. The text to display. class SimpleResponse include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The collection of simple response candidates. # This message in `QueryResult.fulfillment_messages` and # `WebhookResponse.fulfillment_messages` should contain only one # `SimpleResponse`. # @!attribute [rw] simple_responses # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::SimpleResponse>] # Required. The list of simple responses. class SimpleResponses include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The basic card message. Useful for displaying information. # @!attribute [rw] title # @return [::String] # Optional. The title of the card. # @!attribute [rw] subtitle # @return [::String] # Optional. The subtitle of the card. # @!attribute [rw] formatted_text # @return [::String] # Required, unless image is present. The body text of the card. # @!attribute [rw] image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. The image for the card. # @!attribute [rw] buttons # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::BasicCard::Button>] # Optional. The collection of card buttons. 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 # The suggestion chip message that the user can tap to quickly post a reply # to the conversation. # @!attribute [rw] title # @return [::String] # Required. The text shown the in the suggestion chip. class Suggestion include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The collection of suggestions. # @!attribute [rw] suggestions # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::Suggestion>] # Required. The list of suggested replies. class Suggestions include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The suggestion chip message that allows the user to jump out to the app # or website associated with this agent. # @!attribute [rw] destination_name # @return [::String] # Required. The name of the app or site this chip is linking to. # @!attribute [rw] uri # @return [::String] # Required. The URI of the app or site to open when the user taps the # suggestion chip. class LinkOutSuggestion include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The card for presenting a list of options to select from. # @!attribute [rw] title # @return [::String] # Optional. The overall title of the list. # @!attribute [rw] items # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::ListSelect::Item>] # Required. List items. # @!attribute [rw] subtitle # @return [::String] # Optional. Subtitle of the list. class ListSelect include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # An item in the list. # @!attribute [rw] info # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::SelectItemInfo] # Required. Additional information about this option. # @!attribute [rw] title # @return [::String] # Required. The title of the list item. # @!attribute [rw] description # @return [::String] # Optional. The main text describing the item. # @!attribute [rw] image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. The image to display. class Item include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end # The card for presenting a carousel of options to select from. # @!attribute [rw] items # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::CarouselSelect::Item>] # Required. Carousel items. class CarouselSelect include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # An item in the carousel. # @!attribute [rw] info # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::SelectItemInfo] # Required. Additional info about the option item. # @!attribute [rw] title # @return [::String] # Required. Title of the carousel item. # @!attribute [rw] description # @return [::String] # Optional. The body text of the card. # @!attribute [rw] image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. The image to display. class Item include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end # Additional info about the select item for when it is triggered in a # dialog. # @!attribute [rw] key # @return [::String] # Required. A unique key that will be sent back to the agent if this # response is given. # @!attribute [rw] synonyms # @return [::Array<::String>] # Optional. A list of synonyms that can also be used to trigger this # item in dialog. class SelectItemInfo include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The media content card for Actions on Google. # @!attribute [rw] media_type # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::MediaContent::ResponseMediaType] # Optional. What type of media is the content (ie "audio"). # @!attribute [rw] media_objects # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::MediaContent::ResponseMediaObject>] # Required. List of media objects. class MediaContent include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Response media object for media content card. # @!attribute [rw] name # @return [::String] # Required. Name of media card. # @!attribute [rw] description # @return [::String] # Optional. Description of media card. # @!attribute [rw] large_image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. Image to display above media content. # @!attribute [rw] icon # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. Icon to display above media content. # @!attribute [rw] content_url # @return [::String] # Required. Url where the media is stored. class ResponseMediaObject include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Format of response media type. module ResponseMediaType # Unspecified. RESPONSE_MEDIA_TYPE_UNSPECIFIED = 0 # Response media type is audio. AUDIO = 1 end end # Browse Carousel Card for Actions on Google. # https://developers.google.com/actions/assistant/responses#browsing_carousel # @!attribute [rw] items # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::BrowseCarouselCard::BrowseCarouselCardItem>] # Required. List of items in the Browse Carousel Card. Minimum of two # items, maximum of ten. # @!attribute [rw] image_display_options # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::BrowseCarouselCard::ImageDisplayOptions] # Optional. Settings for displaying the image. Applies to every image in # {::Google::Cloud::Dialogflow::V2::Intent::Message::BrowseCarouselCard#items items}. class BrowseCarouselCard include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Browsing carousel tile # @!attribute [rw] open_uri_action # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::BrowseCarouselCard::BrowseCarouselCardItem::OpenUrlAction] # Required. Action to present to the user. # @!attribute [rw] title # @return [::String] # Required. Title of the carousel item. Maximum of two lines of text. # @!attribute [rw] description # @return [::String] # Optional. Description of the carousel item. Maximum of four lines of # text. # @!attribute [rw] image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. Hero image for the carousel item. # @!attribute [rw] footer # @return [::String] # Optional. Text that appears at the bottom of the Browse Carousel # Card. Maximum of one line of text. 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 # Image display options for Actions on Google. This should be used for # when the image's aspect ratio does not match the image container's # aspect ratio. module ImageDisplayOptions # Fill the gaps between the image and the image container with gray # bars. IMAGE_DISPLAY_OPTIONS_UNSPECIFIED = 0 # Fill the gaps between the image and the image container with gray # bars. GRAY = 1 # Fill the gaps between the image and the image container with white # bars. WHITE = 2 # Image is scaled such that the image width and height match or exceed # the container dimensions. This may crop the top and bottom of the # image if the scaled image height is greater than the container # height, or crop the left and right of the image if the scaled image # width is greater than the container width. This is similar to "Zoom # Mode" on a widescreen TV when playing a 4:3 video. CROPPED = 3 # Pad the gaps between image and image frame with a blurred copy of the # same image. BLURRED_BACKGROUND = 4 end end # Table card for Actions on Google. # @!attribute [rw] title # @return [::String] # Required. Title of the card. # @!attribute [rw] subtitle # @return [::String] # Optional. Subtitle to the title. # @!attribute [rw] image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. Image which should be displayed on the card. # @!attribute [rw] column_properties # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::ColumnProperties>] # Optional. Display properties for the columns in this table. # @!attribute [rw] rows # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::TableCardRow>] # Optional. Rows in this table of data. # @!attribute [rw] buttons # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::BasicCard::Button>] # Optional. List of buttons for the card. class TableCard include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Column properties for # {::Google::Cloud::Dialogflow::V2::Intent::Message::TableCard TableCard}. # @!attribute [rw] header # @return [::String] # Required. Column heading. # @!attribute [rw] horizontal_alignment # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::ColumnProperties::HorizontalAlignment] # Optional. Defines text alignment for all cells in this column. class ColumnProperties include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Text alignments within a cell. module HorizontalAlignment # Text is aligned to the leading edge of the column. HORIZONTAL_ALIGNMENT_UNSPECIFIED = 0 # Text is aligned to the leading edge of the column. LEADING = 1 # Text is centered in the column. CENTER = 2 # Text is aligned to the trailing edge of the column. TRAILING = 3 end end # Row of {::Google::Cloud::Dialogflow::V2::Intent::Message::TableCard TableCard}. # @!attribute [rw] cells # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::TableCardCell>] # Optional. List of cells that make up this row. # @!attribute [rw] divider_after # @return [::Boolean] # Optional. Whether to add a visual divider after this row. class TableCardRow include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Cell of # {::Google::Cloud::Dialogflow::V2::Intent::Message::TableCardRow TableCardRow}. # @!attribute [rw] text # @return [::String] # Required. Text in this cell. class TableCardCell include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The rich response message integration platform. See # [Integrations](https://cloud.google.com/dialogflow/docs/integrations). module Platform # Default platform. PLATFORM_UNSPECIFIED = 0 # Facebook. FACEBOOK = 1 # Slack. SLACK = 2 # Telegram. TELEGRAM = 3 # Kik. KIK = 4 # Skype. SKYPE = 5 # Line. LINE = 6 # Viber. VIBER = 7 # Google Assistant # See [Dialogflow webhook # format](https://developers.google.com/assistant/actions/build/json/dialogflow-webhook-json) ACTIONS_ON_GOOGLE = 8 # Google Hangouts. GOOGLE_HANGOUTS = 11 end end |
#link_out_suggestion ⇒ ::Google::Cloud::Dialogflow::V2::Intent::Message::LinkOutSuggestion
Returns The link out suggestion chip for Actions on Google.
322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 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 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 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 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 |
# File 'proto_docs/google/cloud/dialogflow/v2/intent.rb', line 322 class Message include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The text response message. # @!attribute [rw] text # @return [::Array<::String>] # Optional. The collection of the agent's responses. class Text include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The image response message. # @!attribute [rw] image_uri # @return [::String] # Optional. The public URI to an image file. # @!attribute [rw] accessibility_text # @return [::String] # Optional. A text description of the image to be used for accessibility, # e.g., screen readers. class Image include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The quick replies response message. # @!attribute [rw] title # @return [::String] # Optional. The title of the collection of quick replies. # @!attribute [rw] quick_replies # @return [::Array<::String>] # Optional. The collection of quick replies. class QuickReplies include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The card response message. # @!attribute [rw] title # @return [::String] # Optional. The title of the card. # @!attribute [rw] subtitle # @return [::String] # Optional. The subtitle of the card. # @!attribute [rw] image_uri # @return [::String] # Optional. The public URI to an image file for the card. # @!attribute [rw] buttons # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::Card::Button>] # Optional. The collection of card buttons. class Card include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Contains information about a button. # @!attribute [rw] text # @return [::String] # Optional. The text to show on the button. # @!attribute [rw] postback # @return [::String] # Optional. The text to send back to the Dialogflow API or a URI to # open. class Button include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end # The simple response message containing speech or text. # @!attribute [rw] text_to_speech # @return [::String] # One of text_to_speech or ssml must be provided. The plain text of the # speech output. Mutually exclusive with ssml. # @!attribute [rw] ssml # @return [::String] # One of text_to_speech or ssml must be provided. Structured spoken # response to the user in the SSML format. Mutually exclusive with # text_to_speech. # @!attribute [rw] display_text # @return [::String] # Optional. The text to display. class SimpleResponse include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The collection of simple response candidates. # This message in `QueryResult.fulfillment_messages` and # `WebhookResponse.fulfillment_messages` should contain only one # `SimpleResponse`. # @!attribute [rw] simple_responses # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::SimpleResponse>] # Required. The list of simple responses. class SimpleResponses include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The basic card message. Useful for displaying information. # @!attribute [rw] title # @return [::String] # Optional. The title of the card. # @!attribute [rw] subtitle # @return [::String] # Optional. The subtitle of the card. # @!attribute [rw] formatted_text # @return [::String] # Required, unless image is present. The body text of the card. # @!attribute [rw] image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. The image for the card. # @!attribute [rw] buttons # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::BasicCard::Button>] # Optional. The collection of card buttons. 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 # The suggestion chip message that the user can tap to quickly post a reply # to the conversation. # @!attribute [rw] title # @return [::String] # Required. The text shown the in the suggestion chip. class Suggestion include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The collection of suggestions. # @!attribute [rw] suggestions # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::Suggestion>] # Required. The list of suggested replies. class Suggestions include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The suggestion chip message that allows the user to jump out to the app # or website associated with this agent. # @!attribute [rw] destination_name # @return [::String] # Required. The name of the app or site this chip is linking to. # @!attribute [rw] uri # @return [::String] # Required. The URI of the app or site to open when the user taps the # suggestion chip. class LinkOutSuggestion include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The card for presenting a list of options to select from. # @!attribute [rw] title # @return [::String] # Optional. The overall title of the list. # @!attribute [rw] items # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::ListSelect::Item>] # Required. List items. # @!attribute [rw] subtitle # @return [::String] # Optional. Subtitle of the list. class ListSelect include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # An item in the list. # @!attribute [rw] info # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::SelectItemInfo] # Required. Additional information about this option. # @!attribute [rw] title # @return [::String] # Required. The title of the list item. # @!attribute [rw] description # @return [::String] # Optional. The main text describing the item. # @!attribute [rw] image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. The image to display. class Item include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end # The card for presenting a carousel of options to select from. # @!attribute [rw] items # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::CarouselSelect::Item>] # Required. Carousel items. class CarouselSelect include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # An item in the carousel. # @!attribute [rw] info # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::SelectItemInfo] # Required. Additional info about the option item. # @!attribute [rw] title # @return [::String] # Required. Title of the carousel item. # @!attribute [rw] description # @return [::String] # Optional. The body text of the card. # @!attribute [rw] image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. The image to display. class Item include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end # Additional info about the select item for when it is triggered in a # dialog. # @!attribute [rw] key # @return [::String] # Required. A unique key that will be sent back to the agent if this # response is given. # @!attribute [rw] synonyms # @return [::Array<::String>] # Optional. A list of synonyms that can also be used to trigger this # item in dialog. class SelectItemInfo include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The media content card for Actions on Google. # @!attribute [rw] media_type # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::MediaContent::ResponseMediaType] # Optional. What type of media is the content (ie "audio"). # @!attribute [rw] media_objects # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::MediaContent::ResponseMediaObject>] # Required. List of media objects. class MediaContent include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Response media object for media content card. # @!attribute [rw] name # @return [::String] # Required. Name of media card. # @!attribute [rw] description # @return [::String] # Optional. Description of media card. # @!attribute [rw] large_image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. Image to display above media content. # @!attribute [rw] icon # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. Icon to display above media content. # @!attribute [rw] content_url # @return [::String] # Required. Url where the media is stored. class ResponseMediaObject include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Format of response media type. module ResponseMediaType # Unspecified. RESPONSE_MEDIA_TYPE_UNSPECIFIED = 0 # Response media type is audio. AUDIO = 1 end end # Browse Carousel Card for Actions on Google. # https://developers.google.com/actions/assistant/responses#browsing_carousel # @!attribute [rw] items # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::BrowseCarouselCard::BrowseCarouselCardItem>] # Required. List of items in the Browse Carousel Card. Minimum of two # items, maximum of ten. # @!attribute [rw] image_display_options # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::BrowseCarouselCard::ImageDisplayOptions] # Optional. Settings for displaying the image. Applies to every image in # {::Google::Cloud::Dialogflow::V2::Intent::Message::BrowseCarouselCard#items items}. class BrowseCarouselCard include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Browsing carousel tile # @!attribute [rw] open_uri_action # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::BrowseCarouselCard::BrowseCarouselCardItem::OpenUrlAction] # Required. Action to present to the user. # @!attribute [rw] title # @return [::String] # Required. Title of the carousel item. Maximum of two lines of text. # @!attribute [rw] description # @return [::String] # Optional. Description of the carousel item. Maximum of four lines of # text. # @!attribute [rw] image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. Hero image for the carousel item. # @!attribute [rw] footer # @return [::String] # Optional. Text that appears at the bottom of the Browse Carousel # Card. Maximum of one line of text. 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 # Image display options for Actions on Google. This should be used for # when the image's aspect ratio does not match the image container's # aspect ratio. module ImageDisplayOptions # Fill the gaps between the image and the image container with gray # bars. IMAGE_DISPLAY_OPTIONS_UNSPECIFIED = 0 # Fill the gaps between the image and the image container with gray # bars. GRAY = 1 # Fill the gaps between the image and the image container with white # bars. WHITE = 2 # Image is scaled such that the image width and height match or exceed # the container dimensions. This may crop the top and bottom of the # image if the scaled image height is greater than the container # height, or crop the left and right of the image if the scaled image # width is greater than the container width. This is similar to "Zoom # Mode" on a widescreen TV when playing a 4:3 video. CROPPED = 3 # Pad the gaps between image and image frame with a blurred copy of the # same image. BLURRED_BACKGROUND = 4 end end # Table card for Actions on Google. # @!attribute [rw] title # @return [::String] # Required. Title of the card. # @!attribute [rw] subtitle # @return [::String] # Optional. Subtitle to the title. # @!attribute [rw] image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. Image which should be displayed on the card. # @!attribute [rw] column_properties # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::ColumnProperties>] # Optional. Display properties for the columns in this table. # @!attribute [rw] rows # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::TableCardRow>] # Optional. Rows in this table of data. # @!attribute [rw] buttons # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::BasicCard::Button>] # Optional. List of buttons for the card. class TableCard include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Column properties for # {::Google::Cloud::Dialogflow::V2::Intent::Message::TableCard TableCard}. # @!attribute [rw] header # @return [::String] # Required. Column heading. # @!attribute [rw] horizontal_alignment # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::ColumnProperties::HorizontalAlignment] # Optional. Defines text alignment for all cells in this column. class ColumnProperties include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Text alignments within a cell. module HorizontalAlignment # Text is aligned to the leading edge of the column. HORIZONTAL_ALIGNMENT_UNSPECIFIED = 0 # Text is aligned to the leading edge of the column. LEADING = 1 # Text is centered in the column. CENTER = 2 # Text is aligned to the trailing edge of the column. TRAILING = 3 end end # Row of {::Google::Cloud::Dialogflow::V2::Intent::Message::TableCard TableCard}. # @!attribute [rw] cells # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::TableCardCell>] # Optional. List of cells that make up this row. # @!attribute [rw] divider_after # @return [::Boolean] # Optional. Whether to add a visual divider after this row. class TableCardRow include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Cell of # {::Google::Cloud::Dialogflow::V2::Intent::Message::TableCardRow TableCardRow}. # @!attribute [rw] text # @return [::String] # Required. Text in this cell. class TableCardCell include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The rich response message integration platform. See # [Integrations](https://cloud.google.com/dialogflow/docs/integrations). module Platform # Default platform. PLATFORM_UNSPECIFIED = 0 # Facebook. FACEBOOK = 1 # Slack. SLACK = 2 # Telegram. TELEGRAM = 3 # Kik. KIK = 4 # Skype. SKYPE = 5 # Line. LINE = 6 # Viber. VIBER = 7 # Google Assistant # See [Dialogflow webhook # format](https://developers.google.com/assistant/actions/build/json/dialogflow-webhook-json) ACTIONS_ON_GOOGLE = 8 # Google Hangouts. GOOGLE_HANGOUTS = 11 end end |
#list_select ⇒ ::Google::Cloud::Dialogflow::V2::Intent::Message::ListSelect
Returns The list card response for Actions on Google.
322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 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 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 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 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 |
# File 'proto_docs/google/cloud/dialogflow/v2/intent.rb', line 322 class Message include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The text response message. # @!attribute [rw] text # @return [::Array<::String>] # Optional. The collection of the agent's responses. class Text include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The image response message. # @!attribute [rw] image_uri # @return [::String] # Optional. The public URI to an image file. # @!attribute [rw] accessibility_text # @return [::String] # Optional. A text description of the image to be used for accessibility, # e.g., screen readers. class Image include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The quick replies response message. # @!attribute [rw] title # @return [::String] # Optional. The title of the collection of quick replies. # @!attribute [rw] quick_replies # @return [::Array<::String>] # Optional. The collection of quick replies. class QuickReplies include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The card response message. # @!attribute [rw] title # @return [::String] # Optional. The title of the card. # @!attribute [rw] subtitle # @return [::String] # Optional. The subtitle of the card. # @!attribute [rw] image_uri # @return [::String] # Optional. The public URI to an image file for the card. # @!attribute [rw] buttons # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::Card::Button>] # Optional. The collection of card buttons. class Card include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Contains information about a button. # @!attribute [rw] text # @return [::String] # Optional. The text to show on the button. # @!attribute [rw] postback # @return [::String] # Optional. The text to send back to the Dialogflow API or a URI to # open. class Button include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end # The simple response message containing speech or text. # @!attribute [rw] text_to_speech # @return [::String] # One of text_to_speech or ssml must be provided. The plain text of the # speech output. Mutually exclusive with ssml. # @!attribute [rw] ssml # @return [::String] # One of text_to_speech or ssml must be provided. Structured spoken # response to the user in the SSML format. Mutually exclusive with # text_to_speech. # @!attribute [rw] display_text # @return [::String] # Optional. The text to display. class SimpleResponse include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The collection of simple response candidates. # This message in `QueryResult.fulfillment_messages` and # `WebhookResponse.fulfillment_messages` should contain only one # `SimpleResponse`. # @!attribute [rw] simple_responses # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::SimpleResponse>] # Required. The list of simple responses. class SimpleResponses include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The basic card message. Useful for displaying information. # @!attribute [rw] title # @return [::String] # Optional. The title of the card. # @!attribute [rw] subtitle # @return [::String] # Optional. The subtitle of the card. # @!attribute [rw] formatted_text # @return [::String] # Required, unless image is present. The body text of the card. # @!attribute [rw] image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. The image for the card. # @!attribute [rw] buttons # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::BasicCard::Button>] # Optional. The collection of card buttons. 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 # The suggestion chip message that the user can tap to quickly post a reply # to the conversation. # @!attribute [rw] title # @return [::String] # Required. The text shown the in the suggestion chip. class Suggestion include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The collection of suggestions. # @!attribute [rw] suggestions # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::Suggestion>] # Required. The list of suggested replies. class Suggestions include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The suggestion chip message that allows the user to jump out to the app # or website associated with this agent. # @!attribute [rw] destination_name # @return [::String] # Required. The name of the app or site this chip is linking to. # @!attribute [rw] uri # @return [::String] # Required. The URI of the app or site to open when the user taps the # suggestion chip. class LinkOutSuggestion include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The card for presenting a list of options to select from. # @!attribute [rw] title # @return [::String] # Optional. The overall title of the list. # @!attribute [rw] items # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::ListSelect::Item>] # Required. List items. # @!attribute [rw] subtitle # @return [::String] # Optional. Subtitle of the list. class ListSelect include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # An item in the list. # @!attribute [rw] info # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::SelectItemInfo] # Required. Additional information about this option. # @!attribute [rw] title # @return [::String] # Required. The title of the list item. # @!attribute [rw] description # @return [::String] # Optional. The main text describing the item. # @!attribute [rw] image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. The image to display. class Item include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end # The card for presenting a carousel of options to select from. # @!attribute [rw] items # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::CarouselSelect::Item>] # Required. Carousel items. class CarouselSelect include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # An item in the carousel. # @!attribute [rw] info # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::SelectItemInfo] # Required. Additional info about the option item. # @!attribute [rw] title # @return [::String] # Required. Title of the carousel item. # @!attribute [rw] description # @return [::String] # Optional. The body text of the card. # @!attribute [rw] image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. The image to display. class Item include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end # Additional info about the select item for when it is triggered in a # dialog. # @!attribute [rw] key # @return [::String] # Required. A unique key that will be sent back to the agent if this # response is given. # @!attribute [rw] synonyms # @return [::Array<::String>] # Optional. A list of synonyms that can also be used to trigger this # item in dialog. class SelectItemInfo include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The media content card for Actions on Google. # @!attribute [rw] media_type # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::MediaContent::ResponseMediaType] # Optional. What type of media is the content (ie "audio"). # @!attribute [rw] media_objects # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::MediaContent::ResponseMediaObject>] # Required. List of media objects. class MediaContent include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Response media object for media content card. # @!attribute [rw] name # @return [::String] # Required. Name of media card. # @!attribute [rw] description # @return [::String] # Optional. Description of media card. # @!attribute [rw] large_image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. Image to display above media content. # @!attribute [rw] icon # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. Icon to display above media content. # @!attribute [rw] content_url # @return [::String] # Required. Url where the media is stored. class ResponseMediaObject include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Format of response media type. module ResponseMediaType # Unspecified. RESPONSE_MEDIA_TYPE_UNSPECIFIED = 0 # Response media type is audio. AUDIO = 1 end end # Browse Carousel Card for Actions on Google. # https://developers.google.com/actions/assistant/responses#browsing_carousel # @!attribute [rw] items # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::BrowseCarouselCard::BrowseCarouselCardItem>] # Required. List of items in the Browse Carousel Card. Minimum of two # items, maximum of ten. # @!attribute [rw] image_display_options # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::BrowseCarouselCard::ImageDisplayOptions] # Optional. Settings for displaying the image. Applies to every image in # {::Google::Cloud::Dialogflow::V2::Intent::Message::BrowseCarouselCard#items items}. class BrowseCarouselCard include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Browsing carousel tile # @!attribute [rw] open_uri_action # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::BrowseCarouselCard::BrowseCarouselCardItem::OpenUrlAction] # Required. Action to present to the user. # @!attribute [rw] title # @return [::String] # Required. Title of the carousel item. Maximum of two lines of text. # @!attribute [rw] description # @return [::String] # Optional. Description of the carousel item. Maximum of four lines of # text. # @!attribute [rw] image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. Hero image for the carousel item. # @!attribute [rw] footer # @return [::String] # Optional. Text that appears at the bottom of the Browse Carousel # Card. Maximum of one line of text. 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 # Image display options for Actions on Google. This should be used for # when the image's aspect ratio does not match the image container's # aspect ratio. module ImageDisplayOptions # Fill the gaps between the image and the image container with gray # bars. IMAGE_DISPLAY_OPTIONS_UNSPECIFIED = 0 # Fill the gaps between the image and the image container with gray # bars. GRAY = 1 # Fill the gaps between the image and the image container with white # bars. WHITE = 2 # Image is scaled such that the image width and height match or exceed # the container dimensions. This may crop the top and bottom of the # image if the scaled image height is greater than the container # height, or crop the left and right of the image if the scaled image # width is greater than the container width. This is similar to "Zoom # Mode" on a widescreen TV when playing a 4:3 video. CROPPED = 3 # Pad the gaps between image and image frame with a blurred copy of the # same image. BLURRED_BACKGROUND = 4 end end # Table card for Actions on Google. # @!attribute [rw] title # @return [::String] # Required. Title of the card. # @!attribute [rw] subtitle # @return [::String] # Optional. Subtitle to the title. # @!attribute [rw] image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. Image which should be displayed on the card. # @!attribute [rw] column_properties # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::ColumnProperties>] # Optional. Display properties for the columns in this table. # @!attribute [rw] rows # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::TableCardRow>] # Optional. Rows in this table of data. # @!attribute [rw] buttons # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::BasicCard::Button>] # Optional. List of buttons for the card. class TableCard include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Column properties for # {::Google::Cloud::Dialogflow::V2::Intent::Message::TableCard TableCard}. # @!attribute [rw] header # @return [::String] # Required. Column heading. # @!attribute [rw] horizontal_alignment # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::ColumnProperties::HorizontalAlignment] # Optional. Defines text alignment for all cells in this column. class ColumnProperties include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Text alignments within a cell. module HorizontalAlignment # Text is aligned to the leading edge of the column. HORIZONTAL_ALIGNMENT_UNSPECIFIED = 0 # Text is aligned to the leading edge of the column. LEADING = 1 # Text is centered in the column. CENTER = 2 # Text is aligned to the trailing edge of the column. TRAILING = 3 end end # Row of {::Google::Cloud::Dialogflow::V2::Intent::Message::TableCard TableCard}. # @!attribute [rw] cells # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::TableCardCell>] # Optional. List of cells that make up this row. # @!attribute [rw] divider_after # @return [::Boolean] # Optional. Whether to add a visual divider after this row. class TableCardRow include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Cell of # {::Google::Cloud::Dialogflow::V2::Intent::Message::TableCardRow TableCardRow}. # @!attribute [rw] text # @return [::String] # Required. Text in this cell. class TableCardCell include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The rich response message integration platform. See # [Integrations](https://cloud.google.com/dialogflow/docs/integrations). module Platform # Default platform. PLATFORM_UNSPECIFIED = 0 # Facebook. FACEBOOK = 1 # Slack. SLACK = 2 # Telegram. TELEGRAM = 3 # Kik. KIK = 4 # Skype. SKYPE = 5 # Line. LINE = 6 # Viber. VIBER = 7 # Google Assistant # See [Dialogflow webhook # format](https://developers.google.com/assistant/actions/build/json/dialogflow-webhook-json) ACTIONS_ON_GOOGLE = 8 # Google Hangouts. GOOGLE_HANGOUTS = 11 end end |
#media_content ⇒ ::Google::Cloud::Dialogflow::V2::Intent::Message::MediaContent
Returns The media content card for Actions on Google.
322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 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 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 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 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 |
# File 'proto_docs/google/cloud/dialogflow/v2/intent.rb', line 322 class Message include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The text response message. # @!attribute [rw] text # @return [::Array<::String>] # Optional. The collection of the agent's responses. class Text include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The image response message. # @!attribute [rw] image_uri # @return [::String] # Optional. The public URI to an image file. # @!attribute [rw] accessibility_text # @return [::String] # Optional. A text description of the image to be used for accessibility, # e.g., screen readers. class Image include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The quick replies response message. # @!attribute [rw] title # @return [::String] # Optional. The title of the collection of quick replies. # @!attribute [rw] quick_replies # @return [::Array<::String>] # Optional. The collection of quick replies. class QuickReplies include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The card response message. # @!attribute [rw] title # @return [::String] # Optional. The title of the card. # @!attribute [rw] subtitle # @return [::String] # Optional. The subtitle of the card. # @!attribute [rw] image_uri # @return [::String] # Optional. The public URI to an image file for the card. # @!attribute [rw] buttons # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::Card::Button>] # Optional. The collection of card buttons. class Card include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Contains information about a button. # @!attribute [rw] text # @return [::String] # Optional. The text to show on the button. # @!attribute [rw] postback # @return [::String] # Optional. The text to send back to the Dialogflow API or a URI to # open. class Button include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end # The simple response message containing speech or text. # @!attribute [rw] text_to_speech # @return [::String] # One of text_to_speech or ssml must be provided. The plain text of the # speech output. Mutually exclusive with ssml. # @!attribute [rw] ssml # @return [::String] # One of text_to_speech or ssml must be provided. Structured spoken # response to the user in the SSML format. Mutually exclusive with # text_to_speech. # @!attribute [rw] display_text # @return [::String] # Optional. The text to display. class SimpleResponse include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The collection of simple response candidates. # This message in `QueryResult.fulfillment_messages` and # `WebhookResponse.fulfillment_messages` should contain only one # `SimpleResponse`. # @!attribute [rw] simple_responses # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::SimpleResponse>] # Required. The list of simple responses. class SimpleResponses include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The basic card message. Useful for displaying information. # @!attribute [rw] title # @return [::String] # Optional. The title of the card. # @!attribute [rw] subtitle # @return [::String] # Optional. The subtitle of the card. # @!attribute [rw] formatted_text # @return [::String] # Required, unless image is present. The body text of the card. # @!attribute [rw] image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. The image for the card. # @!attribute [rw] buttons # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::BasicCard::Button>] # Optional. The collection of card buttons. 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 # The suggestion chip message that the user can tap to quickly post a reply # to the conversation. # @!attribute [rw] title # @return [::String] # Required. The text shown the in the suggestion chip. class Suggestion include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The collection of suggestions. # @!attribute [rw] suggestions # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::Suggestion>] # Required. The list of suggested replies. class Suggestions include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The suggestion chip message that allows the user to jump out to the app # or website associated with this agent. # @!attribute [rw] destination_name # @return [::String] # Required. The name of the app or site this chip is linking to. # @!attribute [rw] uri # @return [::String] # Required. The URI of the app or site to open when the user taps the # suggestion chip. class LinkOutSuggestion include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The card for presenting a list of options to select from. # @!attribute [rw] title # @return [::String] # Optional. The overall title of the list. # @!attribute [rw] items # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::ListSelect::Item>] # Required. List items. # @!attribute [rw] subtitle # @return [::String] # Optional. Subtitle of the list. class ListSelect include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # An item in the list. # @!attribute [rw] info # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::SelectItemInfo] # Required. Additional information about this option. # @!attribute [rw] title # @return [::String] # Required. The title of the list item. # @!attribute [rw] description # @return [::String] # Optional. The main text describing the item. # @!attribute [rw] image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. The image to display. class Item include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end # The card for presenting a carousel of options to select from. # @!attribute [rw] items # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::CarouselSelect::Item>] # Required. Carousel items. class CarouselSelect include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # An item in the carousel. # @!attribute [rw] info # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::SelectItemInfo] # Required. Additional info about the option item. # @!attribute [rw] title # @return [::String] # Required. Title of the carousel item. # @!attribute [rw] description # @return [::String] # Optional. The body text of the card. # @!attribute [rw] image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. The image to display. class Item include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end # Additional info about the select item for when it is triggered in a # dialog. # @!attribute [rw] key # @return [::String] # Required. A unique key that will be sent back to the agent if this # response is given. # @!attribute [rw] synonyms # @return [::Array<::String>] # Optional. A list of synonyms that can also be used to trigger this # item in dialog. class SelectItemInfo include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The media content card for Actions on Google. # @!attribute [rw] media_type # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::MediaContent::ResponseMediaType] # Optional. What type of media is the content (ie "audio"). # @!attribute [rw] media_objects # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::MediaContent::ResponseMediaObject>] # Required. List of media objects. class MediaContent include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Response media object for media content card. # @!attribute [rw] name # @return [::String] # Required. Name of media card. # @!attribute [rw] description # @return [::String] # Optional. Description of media card. # @!attribute [rw] large_image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. Image to display above media content. # @!attribute [rw] icon # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. Icon to display above media content. # @!attribute [rw] content_url # @return [::String] # Required. Url where the media is stored. class ResponseMediaObject include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Format of response media type. module ResponseMediaType # Unspecified. RESPONSE_MEDIA_TYPE_UNSPECIFIED = 0 # Response media type is audio. AUDIO = 1 end end # Browse Carousel Card for Actions on Google. # https://developers.google.com/actions/assistant/responses#browsing_carousel # @!attribute [rw] items # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::BrowseCarouselCard::BrowseCarouselCardItem>] # Required. List of items in the Browse Carousel Card. Minimum of two # items, maximum of ten. # @!attribute [rw] image_display_options # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::BrowseCarouselCard::ImageDisplayOptions] # Optional. Settings for displaying the image. Applies to every image in # {::Google::Cloud::Dialogflow::V2::Intent::Message::BrowseCarouselCard#items items}. class BrowseCarouselCard include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Browsing carousel tile # @!attribute [rw] open_uri_action # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::BrowseCarouselCard::BrowseCarouselCardItem::OpenUrlAction] # Required. Action to present to the user. # @!attribute [rw] title # @return [::String] # Required. Title of the carousel item. Maximum of two lines of text. # @!attribute [rw] description # @return [::String] # Optional. Description of the carousel item. Maximum of four lines of # text. # @!attribute [rw] image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. Hero image for the carousel item. # @!attribute [rw] footer # @return [::String] # Optional. Text that appears at the bottom of the Browse Carousel # Card. Maximum of one line of text. 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 # Image display options for Actions on Google. This should be used for # when the image's aspect ratio does not match the image container's # aspect ratio. module ImageDisplayOptions # Fill the gaps between the image and the image container with gray # bars. IMAGE_DISPLAY_OPTIONS_UNSPECIFIED = 0 # Fill the gaps between the image and the image container with gray # bars. GRAY = 1 # Fill the gaps between the image and the image container with white # bars. WHITE = 2 # Image is scaled such that the image width and height match or exceed # the container dimensions. This may crop the top and bottom of the # image if the scaled image height is greater than the container # height, or crop the left and right of the image if the scaled image # width is greater than the container width. This is similar to "Zoom # Mode" on a widescreen TV when playing a 4:3 video. CROPPED = 3 # Pad the gaps between image and image frame with a blurred copy of the # same image. BLURRED_BACKGROUND = 4 end end # Table card for Actions on Google. # @!attribute [rw] title # @return [::String] # Required. Title of the card. # @!attribute [rw] subtitle # @return [::String] # Optional. Subtitle to the title. # @!attribute [rw] image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. Image which should be displayed on the card. # @!attribute [rw] column_properties # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::ColumnProperties>] # Optional. Display properties for the columns in this table. # @!attribute [rw] rows # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::TableCardRow>] # Optional. Rows in this table of data. # @!attribute [rw] buttons # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::BasicCard::Button>] # Optional. List of buttons for the card. class TableCard include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Column properties for # {::Google::Cloud::Dialogflow::V2::Intent::Message::TableCard TableCard}. # @!attribute [rw] header # @return [::String] # Required. Column heading. # @!attribute [rw] horizontal_alignment # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::ColumnProperties::HorizontalAlignment] # Optional. Defines text alignment for all cells in this column. class ColumnProperties include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Text alignments within a cell. module HorizontalAlignment # Text is aligned to the leading edge of the column. HORIZONTAL_ALIGNMENT_UNSPECIFIED = 0 # Text is aligned to the leading edge of the column. LEADING = 1 # Text is centered in the column. CENTER = 2 # Text is aligned to the trailing edge of the column. TRAILING = 3 end end # Row of {::Google::Cloud::Dialogflow::V2::Intent::Message::TableCard TableCard}. # @!attribute [rw] cells # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::TableCardCell>] # Optional. List of cells that make up this row. # @!attribute [rw] divider_after # @return [::Boolean] # Optional. Whether to add a visual divider after this row. class TableCardRow include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Cell of # {::Google::Cloud::Dialogflow::V2::Intent::Message::TableCardRow TableCardRow}. # @!attribute [rw] text # @return [::String] # Required. Text in this cell. class TableCardCell include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The rich response message integration platform. See # [Integrations](https://cloud.google.com/dialogflow/docs/integrations). module Platform # Default platform. PLATFORM_UNSPECIFIED = 0 # Facebook. FACEBOOK = 1 # Slack. SLACK = 2 # Telegram. TELEGRAM = 3 # Kik. KIK = 4 # Skype. SKYPE = 5 # Line. LINE = 6 # Viber. VIBER = 7 # Google Assistant # See [Dialogflow webhook # format](https://developers.google.com/assistant/actions/build/json/dialogflow-webhook-json) ACTIONS_ON_GOOGLE = 8 # Google Hangouts. GOOGLE_HANGOUTS = 11 end end |
#payload ⇒ ::Google::Protobuf::Struct
Returns A custom platform-specific response.
322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 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 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 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 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 |
# File 'proto_docs/google/cloud/dialogflow/v2/intent.rb', line 322 class Message include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The text response message. # @!attribute [rw] text # @return [::Array<::String>] # Optional. The collection of the agent's responses. class Text include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The image response message. # @!attribute [rw] image_uri # @return [::String] # Optional. The public URI to an image file. # @!attribute [rw] accessibility_text # @return [::String] # Optional. A text description of the image to be used for accessibility, # e.g., screen readers. class Image include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The quick replies response message. # @!attribute [rw] title # @return [::String] # Optional. The title of the collection of quick replies. # @!attribute [rw] quick_replies # @return [::Array<::String>] # Optional. The collection of quick replies. class QuickReplies include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The card response message. # @!attribute [rw] title # @return [::String] # Optional. The title of the card. # @!attribute [rw] subtitle # @return [::String] # Optional. The subtitle of the card. # @!attribute [rw] image_uri # @return [::String] # Optional. The public URI to an image file for the card. # @!attribute [rw] buttons # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::Card::Button>] # Optional. The collection of card buttons. class Card include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Contains information about a button. # @!attribute [rw] text # @return [::String] # Optional. The text to show on the button. # @!attribute [rw] postback # @return [::String] # Optional. The text to send back to the Dialogflow API or a URI to # open. class Button include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end # The simple response message containing speech or text. # @!attribute [rw] text_to_speech # @return [::String] # One of text_to_speech or ssml must be provided. The plain text of the # speech output. Mutually exclusive with ssml. # @!attribute [rw] ssml # @return [::String] # One of text_to_speech or ssml must be provided. Structured spoken # response to the user in the SSML format. Mutually exclusive with # text_to_speech. # @!attribute [rw] display_text # @return [::String] # Optional. The text to display. class SimpleResponse include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The collection of simple response candidates. # This message in `QueryResult.fulfillment_messages` and # `WebhookResponse.fulfillment_messages` should contain only one # `SimpleResponse`. # @!attribute [rw] simple_responses # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::SimpleResponse>] # Required. The list of simple responses. class SimpleResponses include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The basic card message. Useful for displaying information. # @!attribute [rw] title # @return [::String] # Optional. The title of the card. # @!attribute [rw] subtitle # @return [::String] # Optional. The subtitle of the card. # @!attribute [rw] formatted_text # @return [::String] # Required, unless image is present. The body text of the card. # @!attribute [rw] image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. The image for the card. # @!attribute [rw] buttons # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::BasicCard::Button>] # Optional. The collection of card buttons. 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 # The suggestion chip message that the user can tap to quickly post a reply # to the conversation. # @!attribute [rw] title # @return [::String] # Required. The text shown the in the suggestion chip. class Suggestion include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The collection of suggestions. # @!attribute [rw] suggestions # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::Suggestion>] # Required. The list of suggested replies. class Suggestions include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The suggestion chip message that allows the user to jump out to the app # or website associated with this agent. # @!attribute [rw] destination_name # @return [::String] # Required. The name of the app or site this chip is linking to. # @!attribute [rw] uri # @return [::String] # Required. The URI of the app or site to open when the user taps the # suggestion chip. class LinkOutSuggestion include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The card for presenting a list of options to select from. # @!attribute [rw] title # @return [::String] # Optional. The overall title of the list. # @!attribute [rw] items # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::ListSelect::Item>] # Required. List items. # @!attribute [rw] subtitle # @return [::String] # Optional. Subtitle of the list. class ListSelect include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # An item in the list. # @!attribute [rw] info # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::SelectItemInfo] # Required. Additional information about this option. # @!attribute [rw] title # @return [::String] # Required. The title of the list item. # @!attribute [rw] description # @return [::String] # Optional. The main text describing the item. # @!attribute [rw] image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. The image to display. class Item include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end # The card for presenting a carousel of options to select from. # @!attribute [rw] items # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::CarouselSelect::Item>] # Required. Carousel items. class CarouselSelect include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # An item in the carousel. # @!attribute [rw] info # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::SelectItemInfo] # Required. Additional info about the option item. # @!attribute [rw] title # @return [::String] # Required. Title of the carousel item. # @!attribute [rw] description # @return [::String] # Optional. The body text of the card. # @!attribute [rw] image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. The image to display. class Item include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end # Additional info about the select item for when it is triggered in a # dialog. # @!attribute [rw] key # @return [::String] # Required. A unique key that will be sent back to the agent if this # response is given. # @!attribute [rw] synonyms # @return [::Array<::String>] # Optional. A list of synonyms that can also be used to trigger this # item in dialog. class SelectItemInfo include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The media content card for Actions on Google. # @!attribute [rw] media_type # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::MediaContent::ResponseMediaType] # Optional. What type of media is the content (ie "audio"). # @!attribute [rw] media_objects # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::MediaContent::ResponseMediaObject>] # Required. List of media objects. class MediaContent include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Response media object for media content card. # @!attribute [rw] name # @return [::String] # Required. Name of media card. # @!attribute [rw] description # @return [::String] # Optional. Description of media card. # @!attribute [rw] large_image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. Image to display above media content. # @!attribute [rw] icon # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. Icon to display above media content. # @!attribute [rw] content_url # @return [::String] # Required. Url where the media is stored. class ResponseMediaObject include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Format of response media type. module ResponseMediaType # Unspecified. RESPONSE_MEDIA_TYPE_UNSPECIFIED = 0 # Response media type is audio. AUDIO = 1 end end # Browse Carousel Card for Actions on Google. # https://developers.google.com/actions/assistant/responses#browsing_carousel # @!attribute [rw] items # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::BrowseCarouselCard::BrowseCarouselCardItem>] # Required. List of items in the Browse Carousel Card. Minimum of two # items, maximum of ten. # @!attribute [rw] image_display_options # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::BrowseCarouselCard::ImageDisplayOptions] # Optional. Settings for displaying the image. Applies to every image in # {::Google::Cloud::Dialogflow::V2::Intent::Message::BrowseCarouselCard#items items}. class BrowseCarouselCard include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Browsing carousel tile # @!attribute [rw] open_uri_action # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::BrowseCarouselCard::BrowseCarouselCardItem::OpenUrlAction] # Required. Action to present to the user. # @!attribute [rw] title # @return [::String] # Required. Title of the carousel item. Maximum of two lines of text. # @!attribute [rw] description # @return [::String] # Optional. Description of the carousel item. Maximum of four lines of # text. # @!attribute [rw] image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. Hero image for the carousel item. # @!attribute [rw] footer # @return [::String] # Optional. Text that appears at the bottom of the Browse Carousel # Card. Maximum of one line of text. 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 # Image display options for Actions on Google. This should be used for # when the image's aspect ratio does not match the image container's # aspect ratio. module ImageDisplayOptions # Fill the gaps between the image and the image container with gray # bars. IMAGE_DISPLAY_OPTIONS_UNSPECIFIED = 0 # Fill the gaps between the image and the image container with gray # bars. GRAY = 1 # Fill the gaps between the image and the image container with white # bars. WHITE = 2 # Image is scaled such that the image width and height match or exceed # the container dimensions. This may crop the top and bottom of the # image if the scaled image height is greater than the container # height, or crop the left and right of the image if the scaled image # width is greater than the container width. This is similar to "Zoom # Mode" on a widescreen TV when playing a 4:3 video. CROPPED = 3 # Pad the gaps between image and image frame with a blurred copy of the # same image. BLURRED_BACKGROUND = 4 end end # Table card for Actions on Google. # @!attribute [rw] title # @return [::String] # Required. Title of the card. # @!attribute [rw] subtitle # @return [::String] # Optional. Subtitle to the title. # @!attribute [rw] image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. Image which should be displayed on the card. # @!attribute [rw] column_properties # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::ColumnProperties>] # Optional. Display properties for the columns in this table. # @!attribute [rw] rows # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::TableCardRow>] # Optional. Rows in this table of data. # @!attribute [rw] buttons # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::BasicCard::Button>] # Optional. List of buttons for the card. class TableCard include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Column properties for # {::Google::Cloud::Dialogflow::V2::Intent::Message::TableCard TableCard}. # @!attribute [rw] header # @return [::String] # Required. Column heading. # @!attribute [rw] horizontal_alignment # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::ColumnProperties::HorizontalAlignment] # Optional. Defines text alignment for all cells in this column. class ColumnProperties include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Text alignments within a cell. module HorizontalAlignment # Text is aligned to the leading edge of the column. HORIZONTAL_ALIGNMENT_UNSPECIFIED = 0 # Text is aligned to the leading edge of the column. LEADING = 1 # Text is centered in the column. CENTER = 2 # Text is aligned to the trailing edge of the column. TRAILING = 3 end end # Row of {::Google::Cloud::Dialogflow::V2::Intent::Message::TableCard TableCard}. # @!attribute [rw] cells # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::TableCardCell>] # Optional. List of cells that make up this row. # @!attribute [rw] divider_after # @return [::Boolean] # Optional. Whether to add a visual divider after this row. class TableCardRow include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Cell of # {::Google::Cloud::Dialogflow::V2::Intent::Message::TableCardRow TableCardRow}. # @!attribute [rw] text # @return [::String] # Required. Text in this cell. class TableCardCell include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The rich response message integration platform. See # [Integrations](https://cloud.google.com/dialogflow/docs/integrations). module Platform # Default platform. PLATFORM_UNSPECIFIED = 0 # Facebook. FACEBOOK = 1 # Slack. SLACK = 2 # Telegram. TELEGRAM = 3 # Kik. KIK = 4 # Skype. SKYPE = 5 # Line. LINE = 6 # Viber. VIBER = 7 # Google Assistant # See [Dialogflow webhook # format](https://developers.google.com/assistant/actions/build/json/dialogflow-webhook-json) ACTIONS_ON_GOOGLE = 8 # Google Hangouts. GOOGLE_HANGOUTS = 11 end end |
#platform ⇒ ::Google::Cloud::Dialogflow::V2::Intent::Message::Platform
Returns Optional. The platform that this message is intended for.
322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 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 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 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 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 |
# File 'proto_docs/google/cloud/dialogflow/v2/intent.rb', line 322 class Message include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The text response message. # @!attribute [rw] text # @return [::Array<::String>] # Optional. The collection of the agent's responses. class Text include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The image response message. # @!attribute [rw] image_uri # @return [::String] # Optional. The public URI to an image file. # @!attribute [rw] accessibility_text # @return [::String] # Optional. A text description of the image to be used for accessibility, # e.g., screen readers. class Image include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The quick replies response message. # @!attribute [rw] title # @return [::String] # Optional. The title of the collection of quick replies. # @!attribute [rw] quick_replies # @return [::Array<::String>] # Optional. The collection of quick replies. class QuickReplies include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The card response message. # @!attribute [rw] title # @return [::String] # Optional. The title of the card. # @!attribute [rw] subtitle # @return [::String] # Optional. The subtitle of the card. # @!attribute [rw] image_uri # @return [::String] # Optional. The public URI to an image file for the card. # @!attribute [rw] buttons # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::Card::Button>] # Optional. The collection of card buttons. class Card include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Contains information about a button. # @!attribute [rw] text # @return [::String] # Optional. The text to show on the button. # @!attribute [rw] postback # @return [::String] # Optional. The text to send back to the Dialogflow API or a URI to # open. class Button include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end # The simple response message containing speech or text. # @!attribute [rw] text_to_speech # @return [::String] # One of text_to_speech or ssml must be provided. The plain text of the # speech output. Mutually exclusive with ssml. # @!attribute [rw] ssml # @return [::String] # One of text_to_speech or ssml must be provided. Structured spoken # response to the user in the SSML format. Mutually exclusive with # text_to_speech. # @!attribute [rw] display_text # @return [::String] # Optional. The text to display. class SimpleResponse include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The collection of simple response candidates. # This message in `QueryResult.fulfillment_messages` and # `WebhookResponse.fulfillment_messages` should contain only one # `SimpleResponse`. # @!attribute [rw] simple_responses # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::SimpleResponse>] # Required. The list of simple responses. class SimpleResponses include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The basic card message. Useful for displaying information. # @!attribute [rw] title # @return [::String] # Optional. The title of the card. # @!attribute [rw] subtitle # @return [::String] # Optional. The subtitle of the card. # @!attribute [rw] formatted_text # @return [::String] # Required, unless image is present. The body text of the card. # @!attribute [rw] image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. The image for the card. # @!attribute [rw] buttons # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::BasicCard::Button>] # Optional. The collection of card buttons. 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 # The suggestion chip message that the user can tap to quickly post a reply # to the conversation. # @!attribute [rw] title # @return [::String] # Required. The text shown the in the suggestion chip. class Suggestion include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The collection of suggestions. # @!attribute [rw] suggestions # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::Suggestion>] # Required. The list of suggested replies. class Suggestions include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The suggestion chip message that allows the user to jump out to the app # or website associated with this agent. # @!attribute [rw] destination_name # @return [::String] # Required. The name of the app or site this chip is linking to. # @!attribute [rw] uri # @return [::String] # Required. The URI of the app or site to open when the user taps the # suggestion chip. class LinkOutSuggestion include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The card for presenting a list of options to select from. # @!attribute [rw] title # @return [::String] # Optional. The overall title of the list. # @!attribute [rw] items # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::ListSelect::Item>] # Required. List items. # @!attribute [rw] subtitle # @return [::String] # Optional. Subtitle of the list. class ListSelect include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # An item in the list. # @!attribute [rw] info # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::SelectItemInfo] # Required. Additional information about this option. # @!attribute [rw] title # @return [::String] # Required. The title of the list item. # @!attribute [rw] description # @return [::String] # Optional. The main text describing the item. # @!attribute [rw] image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. The image to display. class Item include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end # The card for presenting a carousel of options to select from. # @!attribute [rw] items # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::CarouselSelect::Item>] # Required. Carousel items. class CarouselSelect include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # An item in the carousel. # @!attribute [rw] info # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::SelectItemInfo] # Required. Additional info about the option item. # @!attribute [rw] title # @return [::String] # Required. Title of the carousel item. # @!attribute [rw] description # @return [::String] # Optional. The body text of the card. # @!attribute [rw] image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. The image to display. class Item include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end # Additional info about the select item for when it is triggered in a # dialog. # @!attribute [rw] key # @return [::String] # Required. A unique key that will be sent back to the agent if this # response is given. # @!attribute [rw] synonyms # @return [::Array<::String>] # Optional. A list of synonyms that can also be used to trigger this # item in dialog. class SelectItemInfo include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The media content card for Actions on Google. # @!attribute [rw] media_type # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::MediaContent::ResponseMediaType] # Optional. What type of media is the content (ie "audio"). # @!attribute [rw] media_objects # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::MediaContent::ResponseMediaObject>] # Required. List of media objects. class MediaContent include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Response media object for media content card. # @!attribute [rw] name # @return [::String] # Required. Name of media card. # @!attribute [rw] description # @return [::String] # Optional. Description of media card. # @!attribute [rw] large_image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. Image to display above media content. # @!attribute [rw] icon # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. Icon to display above media content. # @!attribute [rw] content_url # @return [::String] # Required. Url where the media is stored. class ResponseMediaObject include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Format of response media type. module ResponseMediaType # Unspecified. RESPONSE_MEDIA_TYPE_UNSPECIFIED = 0 # Response media type is audio. AUDIO = 1 end end # Browse Carousel Card for Actions on Google. # https://developers.google.com/actions/assistant/responses#browsing_carousel # @!attribute [rw] items # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::BrowseCarouselCard::BrowseCarouselCardItem>] # Required. List of items in the Browse Carousel Card. Minimum of two # items, maximum of ten. # @!attribute [rw] image_display_options # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::BrowseCarouselCard::ImageDisplayOptions] # Optional. Settings for displaying the image. Applies to every image in # {::Google::Cloud::Dialogflow::V2::Intent::Message::BrowseCarouselCard#items items}. class BrowseCarouselCard include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Browsing carousel tile # @!attribute [rw] open_uri_action # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::BrowseCarouselCard::BrowseCarouselCardItem::OpenUrlAction] # Required. Action to present to the user. # @!attribute [rw] title # @return [::String] # Required. Title of the carousel item. Maximum of two lines of text. # @!attribute [rw] description # @return [::String] # Optional. Description of the carousel item. Maximum of four lines of # text. # @!attribute [rw] image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. Hero image for the carousel item. # @!attribute [rw] footer # @return [::String] # Optional. Text that appears at the bottom of the Browse Carousel # Card. Maximum of one line of text. 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 # Image display options for Actions on Google. This should be used for # when the image's aspect ratio does not match the image container's # aspect ratio. module ImageDisplayOptions # Fill the gaps between the image and the image container with gray # bars. IMAGE_DISPLAY_OPTIONS_UNSPECIFIED = 0 # Fill the gaps between the image and the image container with gray # bars. GRAY = 1 # Fill the gaps between the image and the image container with white # bars. WHITE = 2 # Image is scaled such that the image width and height match or exceed # the container dimensions. This may crop the top and bottom of the # image if the scaled image height is greater than the container # height, or crop the left and right of the image if the scaled image # width is greater than the container width. This is similar to "Zoom # Mode" on a widescreen TV when playing a 4:3 video. CROPPED = 3 # Pad the gaps between image and image frame with a blurred copy of the # same image. BLURRED_BACKGROUND = 4 end end # Table card for Actions on Google. # @!attribute [rw] title # @return [::String] # Required. Title of the card. # @!attribute [rw] subtitle # @return [::String] # Optional. Subtitle to the title. # @!attribute [rw] image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. Image which should be displayed on the card. # @!attribute [rw] column_properties # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::ColumnProperties>] # Optional. Display properties for the columns in this table. # @!attribute [rw] rows # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::TableCardRow>] # Optional. Rows in this table of data. # @!attribute [rw] buttons # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::BasicCard::Button>] # Optional. List of buttons for the card. class TableCard include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Column properties for # {::Google::Cloud::Dialogflow::V2::Intent::Message::TableCard TableCard}. # @!attribute [rw] header # @return [::String] # Required. Column heading. # @!attribute [rw] horizontal_alignment # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::ColumnProperties::HorizontalAlignment] # Optional. Defines text alignment for all cells in this column. class ColumnProperties include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Text alignments within a cell. module HorizontalAlignment # Text is aligned to the leading edge of the column. HORIZONTAL_ALIGNMENT_UNSPECIFIED = 0 # Text is aligned to the leading edge of the column. LEADING = 1 # Text is centered in the column. CENTER = 2 # Text is aligned to the trailing edge of the column. TRAILING = 3 end end # Row of {::Google::Cloud::Dialogflow::V2::Intent::Message::TableCard TableCard}. # @!attribute [rw] cells # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::TableCardCell>] # Optional. List of cells that make up this row. # @!attribute [rw] divider_after # @return [::Boolean] # Optional. Whether to add a visual divider after this row. class TableCardRow include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Cell of # {::Google::Cloud::Dialogflow::V2::Intent::Message::TableCardRow TableCardRow}. # @!attribute [rw] text # @return [::String] # Required. Text in this cell. class TableCardCell include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The rich response message integration platform. See # [Integrations](https://cloud.google.com/dialogflow/docs/integrations). module Platform # Default platform. PLATFORM_UNSPECIFIED = 0 # Facebook. FACEBOOK = 1 # Slack. SLACK = 2 # Telegram. TELEGRAM = 3 # Kik. KIK = 4 # Skype. SKYPE = 5 # Line. LINE = 6 # Viber. VIBER = 7 # Google Assistant # See [Dialogflow webhook # format](https://developers.google.com/assistant/actions/build/json/dialogflow-webhook-json) ACTIONS_ON_GOOGLE = 8 # Google Hangouts. GOOGLE_HANGOUTS = 11 end end |
#quick_replies ⇒ ::Google::Cloud::Dialogflow::V2::Intent::Message::QuickReplies
Returns The quick replies response.
322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 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 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 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 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 |
# File 'proto_docs/google/cloud/dialogflow/v2/intent.rb', line 322 class Message include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The text response message. # @!attribute [rw] text # @return [::Array<::String>] # Optional. The collection of the agent's responses. class Text include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The image response message. # @!attribute [rw] image_uri # @return [::String] # Optional. The public URI to an image file. # @!attribute [rw] accessibility_text # @return [::String] # Optional. A text description of the image to be used for accessibility, # e.g., screen readers. class Image include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The quick replies response message. # @!attribute [rw] title # @return [::String] # Optional. The title of the collection of quick replies. # @!attribute [rw] quick_replies # @return [::Array<::String>] # Optional. The collection of quick replies. class QuickReplies include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The card response message. # @!attribute [rw] title # @return [::String] # Optional. The title of the card. # @!attribute [rw] subtitle # @return [::String] # Optional. The subtitle of the card. # @!attribute [rw] image_uri # @return [::String] # Optional. The public URI to an image file for the card. # @!attribute [rw] buttons # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::Card::Button>] # Optional. The collection of card buttons. class Card include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Contains information about a button. # @!attribute [rw] text # @return [::String] # Optional. The text to show on the button. # @!attribute [rw] postback # @return [::String] # Optional. The text to send back to the Dialogflow API or a URI to # open. class Button include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end # The simple response message containing speech or text. # @!attribute [rw] text_to_speech # @return [::String] # One of text_to_speech or ssml must be provided. The plain text of the # speech output. Mutually exclusive with ssml. # @!attribute [rw] ssml # @return [::String] # One of text_to_speech or ssml must be provided. Structured spoken # response to the user in the SSML format. Mutually exclusive with # text_to_speech. # @!attribute [rw] display_text # @return [::String] # Optional. The text to display. class SimpleResponse include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The collection of simple response candidates. # This message in `QueryResult.fulfillment_messages` and # `WebhookResponse.fulfillment_messages` should contain only one # `SimpleResponse`. # @!attribute [rw] simple_responses # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::SimpleResponse>] # Required. The list of simple responses. class SimpleResponses include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The basic card message. Useful for displaying information. # @!attribute [rw] title # @return [::String] # Optional. The title of the card. # @!attribute [rw] subtitle # @return [::String] # Optional. The subtitle of the card. # @!attribute [rw] formatted_text # @return [::String] # Required, unless image is present. The body text of the card. # @!attribute [rw] image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. The image for the card. # @!attribute [rw] buttons # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::BasicCard::Button>] # Optional. The collection of card buttons. 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 # The suggestion chip message that the user can tap to quickly post a reply # to the conversation. # @!attribute [rw] title # @return [::String] # Required. The text shown the in the suggestion chip. class Suggestion include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The collection of suggestions. # @!attribute [rw] suggestions # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::Suggestion>] # Required. The list of suggested replies. class Suggestions include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The suggestion chip message that allows the user to jump out to the app # or website associated with this agent. # @!attribute [rw] destination_name # @return [::String] # Required. The name of the app or site this chip is linking to. # @!attribute [rw] uri # @return [::String] # Required. The URI of the app or site to open when the user taps the # suggestion chip. class LinkOutSuggestion include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The card for presenting a list of options to select from. # @!attribute [rw] title # @return [::String] # Optional. The overall title of the list. # @!attribute [rw] items # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::ListSelect::Item>] # Required. List items. # @!attribute [rw] subtitle # @return [::String] # Optional. Subtitle of the list. class ListSelect include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # An item in the list. # @!attribute [rw] info # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::SelectItemInfo] # Required. Additional information about this option. # @!attribute [rw] title # @return [::String] # Required. The title of the list item. # @!attribute [rw] description # @return [::String] # Optional. The main text describing the item. # @!attribute [rw] image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. The image to display. class Item include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end # The card for presenting a carousel of options to select from. # @!attribute [rw] items # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::CarouselSelect::Item>] # Required. Carousel items. class CarouselSelect include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # An item in the carousel. # @!attribute [rw] info # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::SelectItemInfo] # Required. Additional info about the option item. # @!attribute [rw] title # @return [::String] # Required. Title of the carousel item. # @!attribute [rw] description # @return [::String] # Optional. The body text of the card. # @!attribute [rw] image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. The image to display. class Item include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end # Additional info about the select item for when it is triggered in a # dialog. # @!attribute [rw] key # @return [::String] # Required. A unique key that will be sent back to the agent if this # response is given. # @!attribute [rw] synonyms # @return [::Array<::String>] # Optional. A list of synonyms that can also be used to trigger this # item in dialog. class SelectItemInfo include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The media content card for Actions on Google. # @!attribute [rw] media_type # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::MediaContent::ResponseMediaType] # Optional. What type of media is the content (ie "audio"). # @!attribute [rw] media_objects # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::MediaContent::ResponseMediaObject>] # Required. List of media objects. class MediaContent include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Response media object for media content card. # @!attribute [rw] name # @return [::String] # Required. Name of media card. # @!attribute [rw] description # @return [::String] # Optional. Description of media card. # @!attribute [rw] large_image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. Image to display above media content. # @!attribute [rw] icon # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. Icon to display above media content. # @!attribute [rw] content_url # @return [::String] # Required. Url where the media is stored. class ResponseMediaObject include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Format of response media type. module ResponseMediaType # Unspecified. RESPONSE_MEDIA_TYPE_UNSPECIFIED = 0 # Response media type is audio. AUDIO = 1 end end # Browse Carousel Card for Actions on Google. # https://developers.google.com/actions/assistant/responses#browsing_carousel # @!attribute [rw] items # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::BrowseCarouselCard::BrowseCarouselCardItem>] # Required. List of items in the Browse Carousel Card. Minimum of two # items, maximum of ten. # @!attribute [rw] image_display_options # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::BrowseCarouselCard::ImageDisplayOptions] # Optional. Settings for displaying the image. Applies to every image in # {::Google::Cloud::Dialogflow::V2::Intent::Message::BrowseCarouselCard#items items}. class BrowseCarouselCard include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Browsing carousel tile # @!attribute [rw] open_uri_action # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::BrowseCarouselCard::BrowseCarouselCardItem::OpenUrlAction] # Required. Action to present to the user. # @!attribute [rw] title # @return [::String] # Required. Title of the carousel item. Maximum of two lines of text. # @!attribute [rw] description # @return [::String] # Optional. Description of the carousel item. Maximum of four lines of # text. # @!attribute [rw] image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. Hero image for the carousel item. # @!attribute [rw] footer # @return [::String] # Optional. Text that appears at the bottom of the Browse Carousel # Card. Maximum of one line of text. 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 # Image display options for Actions on Google. This should be used for # when the image's aspect ratio does not match the image container's # aspect ratio. module ImageDisplayOptions # Fill the gaps between the image and the image container with gray # bars. IMAGE_DISPLAY_OPTIONS_UNSPECIFIED = 0 # Fill the gaps between the image and the image container with gray # bars. GRAY = 1 # Fill the gaps between the image and the image container with white # bars. WHITE = 2 # Image is scaled such that the image width and height match or exceed # the container dimensions. This may crop the top and bottom of the # image if the scaled image height is greater than the container # height, or crop the left and right of the image if the scaled image # width is greater than the container width. This is similar to "Zoom # Mode" on a widescreen TV when playing a 4:3 video. CROPPED = 3 # Pad the gaps between image and image frame with a blurred copy of the # same image. BLURRED_BACKGROUND = 4 end end # Table card for Actions on Google. # @!attribute [rw] title # @return [::String] # Required. Title of the card. # @!attribute [rw] subtitle # @return [::String] # Optional. Subtitle to the title. # @!attribute [rw] image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. Image which should be displayed on the card. # @!attribute [rw] column_properties # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::ColumnProperties>] # Optional. Display properties for the columns in this table. # @!attribute [rw] rows # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::TableCardRow>] # Optional. Rows in this table of data. # @!attribute [rw] buttons # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::BasicCard::Button>] # Optional. List of buttons for the card. class TableCard include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Column properties for # {::Google::Cloud::Dialogflow::V2::Intent::Message::TableCard TableCard}. # @!attribute [rw] header # @return [::String] # Required. Column heading. # @!attribute [rw] horizontal_alignment # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::ColumnProperties::HorizontalAlignment] # Optional. Defines text alignment for all cells in this column. class ColumnProperties include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Text alignments within a cell. module HorizontalAlignment # Text is aligned to the leading edge of the column. HORIZONTAL_ALIGNMENT_UNSPECIFIED = 0 # Text is aligned to the leading edge of the column. LEADING = 1 # Text is centered in the column. CENTER = 2 # Text is aligned to the trailing edge of the column. TRAILING = 3 end end # Row of {::Google::Cloud::Dialogflow::V2::Intent::Message::TableCard TableCard}. # @!attribute [rw] cells # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::TableCardCell>] # Optional. List of cells that make up this row. # @!attribute [rw] divider_after # @return [::Boolean] # Optional. Whether to add a visual divider after this row. class TableCardRow include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Cell of # {::Google::Cloud::Dialogflow::V2::Intent::Message::TableCardRow TableCardRow}. # @!attribute [rw] text # @return [::String] # Required. Text in this cell. class TableCardCell include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The rich response message integration platform. See # [Integrations](https://cloud.google.com/dialogflow/docs/integrations). module Platform # Default platform. PLATFORM_UNSPECIFIED = 0 # Facebook. FACEBOOK = 1 # Slack. SLACK = 2 # Telegram. TELEGRAM = 3 # Kik. KIK = 4 # Skype. SKYPE = 5 # Line. LINE = 6 # Viber. VIBER = 7 # Google Assistant # See [Dialogflow webhook # format](https://developers.google.com/assistant/actions/build/json/dialogflow-webhook-json) ACTIONS_ON_GOOGLE = 8 # Google Hangouts. GOOGLE_HANGOUTS = 11 end end |
#simple_responses ⇒ ::Google::Cloud::Dialogflow::V2::Intent::Message::SimpleResponses
Returns The voice and text-only responses for Actions on Google.
322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 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 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 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 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 |
# File 'proto_docs/google/cloud/dialogflow/v2/intent.rb', line 322 class Message include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The text response message. # @!attribute [rw] text # @return [::Array<::String>] # Optional. The collection of the agent's responses. class Text include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The image response message. # @!attribute [rw] image_uri # @return [::String] # Optional. The public URI to an image file. # @!attribute [rw] accessibility_text # @return [::String] # Optional. A text description of the image to be used for accessibility, # e.g., screen readers. class Image include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The quick replies response message. # @!attribute [rw] title # @return [::String] # Optional. The title of the collection of quick replies. # @!attribute [rw] quick_replies # @return [::Array<::String>] # Optional. The collection of quick replies. class QuickReplies include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The card response message. # @!attribute [rw] title # @return [::String] # Optional. The title of the card. # @!attribute [rw] subtitle # @return [::String] # Optional. The subtitle of the card. # @!attribute [rw] image_uri # @return [::String] # Optional. The public URI to an image file for the card. # @!attribute [rw] buttons # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::Card::Button>] # Optional. The collection of card buttons. class Card include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Contains information about a button. # @!attribute [rw] text # @return [::String] # Optional. The text to show on the button. # @!attribute [rw] postback # @return [::String] # Optional. The text to send back to the Dialogflow API or a URI to # open. class Button include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end # The simple response message containing speech or text. # @!attribute [rw] text_to_speech # @return [::String] # One of text_to_speech or ssml must be provided. The plain text of the # speech output. Mutually exclusive with ssml. # @!attribute [rw] ssml # @return [::String] # One of text_to_speech or ssml must be provided. Structured spoken # response to the user in the SSML format. Mutually exclusive with # text_to_speech. # @!attribute [rw] display_text # @return [::String] # Optional. The text to display. class SimpleResponse include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The collection of simple response candidates. # This message in `QueryResult.fulfillment_messages` and # `WebhookResponse.fulfillment_messages` should contain only one # `SimpleResponse`. # @!attribute [rw] simple_responses # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::SimpleResponse>] # Required. The list of simple responses. class SimpleResponses include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The basic card message. Useful for displaying information. # @!attribute [rw] title # @return [::String] # Optional. The title of the card. # @!attribute [rw] subtitle # @return [::String] # Optional. The subtitle of the card. # @!attribute [rw] formatted_text # @return [::String] # Required, unless image is present. The body text of the card. # @!attribute [rw] image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. The image for the card. # @!attribute [rw] buttons # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::BasicCard::Button>] # Optional. The collection of card buttons. 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 # The suggestion chip message that the user can tap to quickly post a reply # to the conversation. # @!attribute [rw] title # @return [::String] # Required. The text shown the in the suggestion chip. class Suggestion include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The collection of suggestions. # @!attribute [rw] suggestions # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::Suggestion>] # Required. The list of suggested replies. class Suggestions include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The suggestion chip message that allows the user to jump out to the app # or website associated with this agent. # @!attribute [rw] destination_name # @return [::String] # Required. The name of the app or site this chip is linking to. # @!attribute [rw] uri # @return [::String] # Required. The URI of the app or site to open when the user taps the # suggestion chip. class LinkOutSuggestion include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The card for presenting a list of options to select from. # @!attribute [rw] title # @return [::String] # Optional. The overall title of the list. # @!attribute [rw] items # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::ListSelect::Item>] # Required. List items. # @!attribute [rw] subtitle # @return [::String] # Optional. Subtitle of the list. class ListSelect include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # An item in the list. # @!attribute [rw] info # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::SelectItemInfo] # Required. Additional information about this option. # @!attribute [rw] title # @return [::String] # Required. The title of the list item. # @!attribute [rw] description # @return [::String] # Optional. The main text describing the item. # @!attribute [rw] image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. The image to display. class Item include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end # The card for presenting a carousel of options to select from. # @!attribute [rw] items # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::CarouselSelect::Item>] # Required. Carousel items. class CarouselSelect include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # An item in the carousel. # @!attribute [rw] info # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::SelectItemInfo] # Required. Additional info about the option item. # @!attribute [rw] title # @return [::String] # Required. Title of the carousel item. # @!attribute [rw] description # @return [::String] # Optional. The body text of the card. # @!attribute [rw] image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. The image to display. class Item include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end # Additional info about the select item for when it is triggered in a # dialog. # @!attribute [rw] key # @return [::String] # Required. A unique key that will be sent back to the agent if this # response is given. # @!attribute [rw] synonyms # @return [::Array<::String>] # Optional. A list of synonyms that can also be used to trigger this # item in dialog. class SelectItemInfo include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The media content card for Actions on Google. # @!attribute [rw] media_type # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::MediaContent::ResponseMediaType] # Optional. What type of media is the content (ie "audio"). # @!attribute [rw] media_objects # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::MediaContent::ResponseMediaObject>] # Required. List of media objects. class MediaContent include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Response media object for media content card. # @!attribute [rw] name # @return [::String] # Required. Name of media card. # @!attribute [rw] description # @return [::String] # Optional. Description of media card. # @!attribute [rw] large_image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. Image to display above media content. # @!attribute [rw] icon # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. Icon to display above media content. # @!attribute [rw] content_url # @return [::String] # Required. Url where the media is stored. class ResponseMediaObject include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Format of response media type. module ResponseMediaType # Unspecified. RESPONSE_MEDIA_TYPE_UNSPECIFIED = 0 # Response media type is audio. AUDIO = 1 end end # Browse Carousel Card for Actions on Google. # https://developers.google.com/actions/assistant/responses#browsing_carousel # @!attribute [rw] items # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::BrowseCarouselCard::BrowseCarouselCardItem>] # Required. List of items in the Browse Carousel Card. Minimum of two # items, maximum of ten. # @!attribute [rw] image_display_options # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::BrowseCarouselCard::ImageDisplayOptions] # Optional. Settings for displaying the image. Applies to every image in # {::Google::Cloud::Dialogflow::V2::Intent::Message::BrowseCarouselCard#items items}. class BrowseCarouselCard include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Browsing carousel tile # @!attribute [rw] open_uri_action # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::BrowseCarouselCard::BrowseCarouselCardItem::OpenUrlAction] # Required. Action to present to the user. # @!attribute [rw] title # @return [::String] # Required. Title of the carousel item. Maximum of two lines of text. # @!attribute [rw] description # @return [::String] # Optional. Description of the carousel item. Maximum of four lines of # text. # @!attribute [rw] image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. Hero image for the carousel item. # @!attribute [rw] footer # @return [::String] # Optional. Text that appears at the bottom of the Browse Carousel # Card. Maximum of one line of text. 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 # Image display options for Actions on Google. This should be used for # when the image's aspect ratio does not match the image container's # aspect ratio. module ImageDisplayOptions # Fill the gaps between the image and the image container with gray # bars. IMAGE_DISPLAY_OPTIONS_UNSPECIFIED = 0 # Fill the gaps between the image and the image container with gray # bars. GRAY = 1 # Fill the gaps between the image and the image container with white # bars. WHITE = 2 # Image is scaled such that the image width and height match or exceed # the container dimensions. This may crop the top and bottom of the # image if the scaled image height is greater than the container # height, or crop the left and right of the image if the scaled image # width is greater than the container width. This is similar to "Zoom # Mode" on a widescreen TV when playing a 4:3 video. CROPPED = 3 # Pad the gaps between image and image frame with a blurred copy of the # same image. BLURRED_BACKGROUND = 4 end end # Table card for Actions on Google. # @!attribute [rw] title # @return [::String] # Required. Title of the card. # @!attribute [rw] subtitle # @return [::String] # Optional. Subtitle to the title. # @!attribute [rw] image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. Image which should be displayed on the card. # @!attribute [rw] column_properties # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::ColumnProperties>] # Optional. Display properties for the columns in this table. # @!attribute [rw] rows # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::TableCardRow>] # Optional. Rows in this table of data. # @!attribute [rw] buttons # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::BasicCard::Button>] # Optional. List of buttons for the card. class TableCard include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Column properties for # {::Google::Cloud::Dialogflow::V2::Intent::Message::TableCard TableCard}. # @!attribute [rw] header # @return [::String] # Required. Column heading. # @!attribute [rw] horizontal_alignment # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::ColumnProperties::HorizontalAlignment] # Optional. Defines text alignment for all cells in this column. class ColumnProperties include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Text alignments within a cell. module HorizontalAlignment # Text is aligned to the leading edge of the column. HORIZONTAL_ALIGNMENT_UNSPECIFIED = 0 # Text is aligned to the leading edge of the column. LEADING = 1 # Text is centered in the column. CENTER = 2 # Text is aligned to the trailing edge of the column. TRAILING = 3 end end # Row of {::Google::Cloud::Dialogflow::V2::Intent::Message::TableCard TableCard}. # @!attribute [rw] cells # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::TableCardCell>] # Optional. List of cells that make up this row. # @!attribute [rw] divider_after # @return [::Boolean] # Optional. Whether to add a visual divider after this row. class TableCardRow include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Cell of # {::Google::Cloud::Dialogflow::V2::Intent::Message::TableCardRow TableCardRow}. # @!attribute [rw] text # @return [::String] # Required. Text in this cell. class TableCardCell include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The rich response message integration platform. See # [Integrations](https://cloud.google.com/dialogflow/docs/integrations). module Platform # Default platform. PLATFORM_UNSPECIFIED = 0 # Facebook. FACEBOOK = 1 # Slack. SLACK = 2 # Telegram. TELEGRAM = 3 # Kik. KIK = 4 # Skype. SKYPE = 5 # Line. LINE = 6 # Viber. VIBER = 7 # Google Assistant # See [Dialogflow webhook # format](https://developers.google.com/assistant/actions/build/json/dialogflow-webhook-json) ACTIONS_ON_GOOGLE = 8 # Google Hangouts. GOOGLE_HANGOUTS = 11 end end |
#suggestions ⇒ ::Google::Cloud::Dialogflow::V2::Intent::Message::Suggestions
Returns The suggestion chips for Actions on Google.
322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 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 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 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 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 |
# File 'proto_docs/google/cloud/dialogflow/v2/intent.rb', line 322 class Message include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The text response message. # @!attribute [rw] text # @return [::Array<::String>] # Optional. The collection of the agent's responses. class Text include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The image response message. # @!attribute [rw] image_uri # @return [::String] # Optional. The public URI to an image file. # @!attribute [rw] accessibility_text # @return [::String] # Optional. A text description of the image to be used for accessibility, # e.g., screen readers. class Image include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The quick replies response message. # @!attribute [rw] title # @return [::String] # Optional. The title of the collection of quick replies. # @!attribute [rw] quick_replies # @return [::Array<::String>] # Optional. The collection of quick replies. class QuickReplies include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The card response message. # @!attribute [rw] title # @return [::String] # Optional. The title of the card. # @!attribute [rw] subtitle # @return [::String] # Optional. The subtitle of the card. # @!attribute [rw] image_uri # @return [::String] # Optional. The public URI to an image file for the card. # @!attribute [rw] buttons # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::Card::Button>] # Optional. The collection of card buttons. class Card include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Contains information about a button. # @!attribute [rw] text # @return [::String] # Optional. The text to show on the button. # @!attribute [rw] postback # @return [::String] # Optional. The text to send back to the Dialogflow API or a URI to # open. class Button include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end # The simple response message containing speech or text. # @!attribute [rw] text_to_speech # @return [::String] # One of text_to_speech or ssml must be provided. The plain text of the # speech output. Mutually exclusive with ssml. # @!attribute [rw] ssml # @return [::String] # One of text_to_speech or ssml must be provided. Structured spoken # response to the user in the SSML format. Mutually exclusive with # text_to_speech. # @!attribute [rw] display_text # @return [::String] # Optional. The text to display. class SimpleResponse include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The collection of simple response candidates. # This message in `QueryResult.fulfillment_messages` and # `WebhookResponse.fulfillment_messages` should contain only one # `SimpleResponse`. # @!attribute [rw] simple_responses # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::SimpleResponse>] # Required. The list of simple responses. class SimpleResponses include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The basic card message. Useful for displaying information. # @!attribute [rw] title # @return [::String] # Optional. The title of the card. # @!attribute [rw] subtitle # @return [::String] # Optional. The subtitle of the card. # @!attribute [rw] formatted_text # @return [::String] # Required, unless image is present. The body text of the card. # @!attribute [rw] image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. The image for the card. # @!attribute [rw] buttons # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::BasicCard::Button>] # Optional. The collection of card buttons. 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 # The suggestion chip message that the user can tap to quickly post a reply # to the conversation. # @!attribute [rw] title # @return [::String] # Required. The text shown the in the suggestion chip. class Suggestion include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The collection of suggestions. # @!attribute [rw] suggestions # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::Suggestion>] # Required. The list of suggested replies. class Suggestions include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The suggestion chip message that allows the user to jump out to the app # or website associated with this agent. # @!attribute [rw] destination_name # @return [::String] # Required. The name of the app or site this chip is linking to. # @!attribute [rw] uri # @return [::String] # Required. The URI of the app or site to open when the user taps the # suggestion chip. class LinkOutSuggestion include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The card for presenting a list of options to select from. # @!attribute [rw] title # @return [::String] # Optional. The overall title of the list. # @!attribute [rw] items # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::ListSelect::Item>] # Required. List items. # @!attribute [rw] subtitle # @return [::String] # Optional. Subtitle of the list. class ListSelect include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # An item in the list. # @!attribute [rw] info # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::SelectItemInfo] # Required. Additional information about this option. # @!attribute [rw] title # @return [::String] # Required. The title of the list item. # @!attribute [rw] description # @return [::String] # Optional. The main text describing the item. # @!attribute [rw] image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. The image to display. class Item include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end # The card for presenting a carousel of options to select from. # @!attribute [rw] items # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::CarouselSelect::Item>] # Required. Carousel items. class CarouselSelect include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # An item in the carousel. # @!attribute [rw] info # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::SelectItemInfo] # Required. Additional info about the option item. # @!attribute [rw] title # @return [::String] # Required. Title of the carousel item. # @!attribute [rw] description # @return [::String] # Optional. The body text of the card. # @!attribute [rw] image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. The image to display. class Item include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end # Additional info about the select item for when it is triggered in a # dialog. # @!attribute [rw] key # @return [::String] # Required. A unique key that will be sent back to the agent if this # response is given. # @!attribute [rw] synonyms # @return [::Array<::String>] # Optional. A list of synonyms that can also be used to trigger this # item in dialog. class SelectItemInfo include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The media content card for Actions on Google. # @!attribute [rw] media_type # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::MediaContent::ResponseMediaType] # Optional. What type of media is the content (ie "audio"). # @!attribute [rw] media_objects # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::MediaContent::ResponseMediaObject>] # Required. List of media objects. class MediaContent include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Response media object for media content card. # @!attribute [rw] name # @return [::String] # Required. Name of media card. # @!attribute [rw] description # @return [::String] # Optional. Description of media card. # @!attribute [rw] large_image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. Image to display above media content. # @!attribute [rw] icon # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. Icon to display above media content. # @!attribute [rw] content_url # @return [::String] # Required. Url where the media is stored. class ResponseMediaObject include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Format of response media type. module ResponseMediaType # Unspecified. RESPONSE_MEDIA_TYPE_UNSPECIFIED = 0 # Response media type is audio. AUDIO = 1 end end # Browse Carousel Card for Actions on Google. # https://developers.google.com/actions/assistant/responses#browsing_carousel # @!attribute [rw] items # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::BrowseCarouselCard::BrowseCarouselCardItem>] # Required. List of items in the Browse Carousel Card. Minimum of two # items, maximum of ten. # @!attribute [rw] image_display_options # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::BrowseCarouselCard::ImageDisplayOptions] # Optional. Settings for displaying the image. Applies to every image in # {::Google::Cloud::Dialogflow::V2::Intent::Message::BrowseCarouselCard#items items}. class BrowseCarouselCard include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Browsing carousel tile # @!attribute [rw] open_uri_action # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::BrowseCarouselCard::BrowseCarouselCardItem::OpenUrlAction] # Required. Action to present to the user. # @!attribute [rw] title # @return [::String] # Required. Title of the carousel item. Maximum of two lines of text. # @!attribute [rw] description # @return [::String] # Optional. Description of the carousel item. Maximum of four lines of # text. # @!attribute [rw] image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. Hero image for the carousel item. # @!attribute [rw] footer # @return [::String] # Optional. Text that appears at the bottom of the Browse Carousel # Card. Maximum of one line of text. 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 # Image display options for Actions on Google. This should be used for # when the image's aspect ratio does not match the image container's # aspect ratio. module ImageDisplayOptions # Fill the gaps between the image and the image container with gray # bars. IMAGE_DISPLAY_OPTIONS_UNSPECIFIED = 0 # Fill the gaps between the image and the image container with gray # bars. GRAY = 1 # Fill the gaps between the image and the image container with white # bars. WHITE = 2 # Image is scaled such that the image width and height match or exceed # the container dimensions. This may crop the top and bottom of the # image if the scaled image height is greater than the container # height, or crop the left and right of the image if the scaled image # width is greater than the container width. This is similar to "Zoom # Mode" on a widescreen TV when playing a 4:3 video. CROPPED = 3 # Pad the gaps between image and image frame with a blurred copy of the # same image. BLURRED_BACKGROUND = 4 end end # Table card for Actions on Google. # @!attribute [rw] title # @return [::String] # Required. Title of the card. # @!attribute [rw] subtitle # @return [::String] # Optional. Subtitle to the title. # @!attribute [rw] image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. Image which should be displayed on the card. # @!attribute [rw] column_properties # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::ColumnProperties>] # Optional. Display properties for the columns in this table. # @!attribute [rw] rows # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::TableCardRow>] # Optional. Rows in this table of data. # @!attribute [rw] buttons # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::BasicCard::Button>] # Optional. List of buttons for the card. class TableCard include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Column properties for # {::Google::Cloud::Dialogflow::V2::Intent::Message::TableCard TableCard}. # @!attribute [rw] header # @return [::String] # Required. Column heading. # @!attribute [rw] horizontal_alignment # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::ColumnProperties::HorizontalAlignment] # Optional. Defines text alignment for all cells in this column. class ColumnProperties include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Text alignments within a cell. module HorizontalAlignment # Text is aligned to the leading edge of the column. HORIZONTAL_ALIGNMENT_UNSPECIFIED = 0 # Text is aligned to the leading edge of the column. LEADING = 1 # Text is centered in the column. CENTER = 2 # Text is aligned to the trailing edge of the column. TRAILING = 3 end end # Row of {::Google::Cloud::Dialogflow::V2::Intent::Message::TableCard TableCard}. # @!attribute [rw] cells # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::TableCardCell>] # Optional. List of cells that make up this row. # @!attribute [rw] divider_after # @return [::Boolean] # Optional. Whether to add a visual divider after this row. class TableCardRow include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Cell of # {::Google::Cloud::Dialogflow::V2::Intent::Message::TableCardRow TableCardRow}. # @!attribute [rw] text # @return [::String] # Required. Text in this cell. class TableCardCell include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The rich response message integration platform. See # [Integrations](https://cloud.google.com/dialogflow/docs/integrations). module Platform # Default platform. PLATFORM_UNSPECIFIED = 0 # Facebook. FACEBOOK = 1 # Slack. SLACK = 2 # Telegram. TELEGRAM = 3 # Kik. KIK = 4 # Skype. SKYPE = 5 # Line. LINE = 6 # Viber. VIBER = 7 # Google Assistant # See [Dialogflow webhook # format](https://developers.google.com/assistant/actions/build/json/dialogflow-webhook-json) ACTIONS_ON_GOOGLE = 8 # Google Hangouts. GOOGLE_HANGOUTS = 11 end end |
#table_card ⇒ ::Google::Cloud::Dialogflow::V2::Intent::Message::TableCard
Returns Table card for Actions on Google.
322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 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 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 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 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 |
# File 'proto_docs/google/cloud/dialogflow/v2/intent.rb', line 322 class Message include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The text response message. # @!attribute [rw] text # @return [::Array<::String>] # Optional. The collection of the agent's responses. class Text include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The image response message. # @!attribute [rw] image_uri # @return [::String] # Optional. The public URI to an image file. # @!attribute [rw] accessibility_text # @return [::String] # Optional. A text description of the image to be used for accessibility, # e.g., screen readers. class Image include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The quick replies response message. # @!attribute [rw] title # @return [::String] # Optional. The title of the collection of quick replies. # @!attribute [rw] quick_replies # @return [::Array<::String>] # Optional. The collection of quick replies. class QuickReplies include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The card response message. # @!attribute [rw] title # @return [::String] # Optional. The title of the card. # @!attribute [rw] subtitle # @return [::String] # Optional. The subtitle of the card. # @!attribute [rw] image_uri # @return [::String] # Optional. The public URI to an image file for the card. # @!attribute [rw] buttons # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::Card::Button>] # Optional. The collection of card buttons. class Card include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Contains information about a button. # @!attribute [rw] text # @return [::String] # Optional. The text to show on the button. # @!attribute [rw] postback # @return [::String] # Optional. The text to send back to the Dialogflow API or a URI to # open. class Button include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end # The simple response message containing speech or text. # @!attribute [rw] text_to_speech # @return [::String] # One of text_to_speech or ssml must be provided. The plain text of the # speech output. Mutually exclusive with ssml. # @!attribute [rw] ssml # @return [::String] # One of text_to_speech or ssml must be provided. Structured spoken # response to the user in the SSML format. Mutually exclusive with # text_to_speech. # @!attribute [rw] display_text # @return [::String] # Optional. The text to display. class SimpleResponse include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The collection of simple response candidates. # This message in `QueryResult.fulfillment_messages` and # `WebhookResponse.fulfillment_messages` should contain only one # `SimpleResponse`. # @!attribute [rw] simple_responses # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::SimpleResponse>] # Required. The list of simple responses. class SimpleResponses include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The basic card message. Useful for displaying information. # @!attribute [rw] title # @return [::String] # Optional. The title of the card. # @!attribute [rw] subtitle # @return [::String] # Optional. The subtitle of the card. # @!attribute [rw] formatted_text # @return [::String] # Required, unless image is present. The body text of the card. # @!attribute [rw] image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. The image for the card. # @!attribute [rw] buttons # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::BasicCard::Button>] # Optional. The collection of card buttons. 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 # The suggestion chip message that the user can tap to quickly post a reply # to the conversation. # @!attribute [rw] title # @return [::String] # Required. The text shown the in the suggestion chip. class Suggestion include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The collection of suggestions. # @!attribute [rw] suggestions # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::Suggestion>] # Required. The list of suggested replies. class Suggestions include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The suggestion chip message that allows the user to jump out to the app # or website associated with this agent. # @!attribute [rw] destination_name # @return [::String] # Required. The name of the app or site this chip is linking to. # @!attribute [rw] uri # @return [::String] # Required. The URI of the app or site to open when the user taps the # suggestion chip. class LinkOutSuggestion include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The card for presenting a list of options to select from. # @!attribute [rw] title # @return [::String] # Optional. The overall title of the list. # @!attribute [rw] items # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::ListSelect::Item>] # Required. List items. # @!attribute [rw] subtitle # @return [::String] # Optional. Subtitle of the list. class ListSelect include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # An item in the list. # @!attribute [rw] info # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::SelectItemInfo] # Required. Additional information about this option. # @!attribute [rw] title # @return [::String] # Required. The title of the list item. # @!attribute [rw] description # @return [::String] # Optional. The main text describing the item. # @!attribute [rw] image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. The image to display. class Item include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end # The card for presenting a carousel of options to select from. # @!attribute [rw] items # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::CarouselSelect::Item>] # Required. Carousel items. class CarouselSelect include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # An item in the carousel. # @!attribute [rw] info # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::SelectItemInfo] # Required. Additional info about the option item. # @!attribute [rw] title # @return [::String] # Required. Title of the carousel item. # @!attribute [rw] description # @return [::String] # Optional. The body text of the card. # @!attribute [rw] image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. The image to display. class Item include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end # Additional info about the select item for when it is triggered in a # dialog. # @!attribute [rw] key # @return [::String] # Required. A unique key that will be sent back to the agent if this # response is given. # @!attribute [rw] synonyms # @return [::Array<::String>] # Optional. A list of synonyms that can also be used to trigger this # item in dialog. class SelectItemInfo include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The media content card for Actions on Google. # @!attribute [rw] media_type # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::MediaContent::ResponseMediaType] # Optional. What type of media is the content (ie "audio"). # @!attribute [rw] media_objects # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::MediaContent::ResponseMediaObject>] # Required. List of media objects. class MediaContent include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Response media object for media content card. # @!attribute [rw] name # @return [::String] # Required. Name of media card. # @!attribute [rw] description # @return [::String] # Optional. Description of media card. # @!attribute [rw] large_image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. Image to display above media content. # @!attribute [rw] icon # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. Icon to display above media content. # @!attribute [rw] content_url # @return [::String] # Required. Url where the media is stored. class ResponseMediaObject include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Format of response media type. module ResponseMediaType # Unspecified. RESPONSE_MEDIA_TYPE_UNSPECIFIED = 0 # Response media type is audio. AUDIO = 1 end end # Browse Carousel Card for Actions on Google. # https://developers.google.com/actions/assistant/responses#browsing_carousel # @!attribute [rw] items # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::BrowseCarouselCard::BrowseCarouselCardItem>] # Required. List of items in the Browse Carousel Card. Minimum of two # items, maximum of ten. # @!attribute [rw] image_display_options # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::BrowseCarouselCard::ImageDisplayOptions] # Optional. Settings for displaying the image. Applies to every image in # {::Google::Cloud::Dialogflow::V2::Intent::Message::BrowseCarouselCard#items items}. class BrowseCarouselCard include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Browsing carousel tile # @!attribute [rw] open_uri_action # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::BrowseCarouselCard::BrowseCarouselCardItem::OpenUrlAction] # Required. Action to present to the user. # @!attribute [rw] title # @return [::String] # Required. Title of the carousel item. Maximum of two lines of text. # @!attribute [rw] description # @return [::String] # Optional. Description of the carousel item. Maximum of four lines of # text. # @!attribute [rw] image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. Hero image for the carousel item. # @!attribute [rw] footer # @return [::String] # Optional. Text that appears at the bottom of the Browse Carousel # Card. Maximum of one line of text. 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 # Image display options for Actions on Google. This should be used for # when the image's aspect ratio does not match the image container's # aspect ratio. module ImageDisplayOptions # Fill the gaps between the image and the image container with gray # bars. IMAGE_DISPLAY_OPTIONS_UNSPECIFIED = 0 # Fill the gaps between the image and the image container with gray # bars. GRAY = 1 # Fill the gaps between the image and the image container with white # bars. WHITE = 2 # Image is scaled such that the image width and height match or exceed # the container dimensions. This may crop the top and bottom of the # image if the scaled image height is greater than the container # height, or crop the left and right of the image if the scaled image # width is greater than the container width. This is similar to "Zoom # Mode" on a widescreen TV when playing a 4:3 video. CROPPED = 3 # Pad the gaps between image and image frame with a blurred copy of the # same image. BLURRED_BACKGROUND = 4 end end # Table card for Actions on Google. # @!attribute [rw] title # @return [::String] # Required. Title of the card. # @!attribute [rw] subtitle # @return [::String] # Optional. Subtitle to the title. # @!attribute [rw] image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. Image which should be displayed on the card. # @!attribute [rw] column_properties # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::ColumnProperties>] # Optional. Display properties for the columns in this table. # @!attribute [rw] rows # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::TableCardRow>] # Optional. Rows in this table of data. # @!attribute [rw] buttons # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::BasicCard::Button>] # Optional. List of buttons for the card. class TableCard include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Column properties for # {::Google::Cloud::Dialogflow::V2::Intent::Message::TableCard TableCard}. # @!attribute [rw] header # @return [::String] # Required. Column heading. # @!attribute [rw] horizontal_alignment # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::ColumnProperties::HorizontalAlignment] # Optional. Defines text alignment for all cells in this column. class ColumnProperties include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Text alignments within a cell. module HorizontalAlignment # Text is aligned to the leading edge of the column. HORIZONTAL_ALIGNMENT_UNSPECIFIED = 0 # Text is aligned to the leading edge of the column. LEADING = 1 # Text is centered in the column. CENTER = 2 # Text is aligned to the trailing edge of the column. TRAILING = 3 end end # Row of {::Google::Cloud::Dialogflow::V2::Intent::Message::TableCard TableCard}. # @!attribute [rw] cells # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::TableCardCell>] # Optional. List of cells that make up this row. # @!attribute [rw] divider_after # @return [::Boolean] # Optional. Whether to add a visual divider after this row. class TableCardRow include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Cell of # {::Google::Cloud::Dialogflow::V2::Intent::Message::TableCardRow TableCardRow}. # @!attribute [rw] text # @return [::String] # Required. Text in this cell. class TableCardCell include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The rich response message integration platform. See # [Integrations](https://cloud.google.com/dialogflow/docs/integrations). module Platform # Default platform. PLATFORM_UNSPECIFIED = 0 # Facebook. FACEBOOK = 1 # Slack. SLACK = 2 # Telegram. TELEGRAM = 3 # Kik. KIK = 4 # Skype. SKYPE = 5 # Line. LINE = 6 # Viber. VIBER = 7 # Google Assistant # See [Dialogflow webhook # format](https://developers.google.com/assistant/actions/build/json/dialogflow-webhook-json) ACTIONS_ON_GOOGLE = 8 # Google Hangouts. GOOGLE_HANGOUTS = 11 end end |
#text ⇒ ::Google::Cloud::Dialogflow::V2::Intent::Message::Text
Returns The text response.
322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 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 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 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 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 |
# File 'proto_docs/google/cloud/dialogflow/v2/intent.rb', line 322 class Message include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The text response message. # @!attribute [rw] text # @return [::Array<::String>] # Optional. The collection of the agent's responses. class Text include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The image response message. # @!attribute [rw] image_uri # @return [::String] # Optional. The public URI to an image file. # @!attribute [rw] accessibility_text # @return [::String] # Optional. A text description of the image to be used for accessibility, # e.g., screen readers. class Image include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The quick replies response message. # @!attribute [rw] title # @return [::String] # Optional. The title of the collection of quick replies. # @!attribute [rw] quick_replies # @return [::Array<::String>] # Optional. The collection of quick replies. class QuickReplies include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The card response message. # @!attribute [rw] title # @return [::String] # Optional. The title of the card. # @!attribute [rw] subtitle # @return [::String] # Optional. The subtitle of the card. # @!attribute [rw] image_uri # @return [::String] # Optional. The public URI to an image file for the card. # @!attribute [rw] buttons # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::Card::Button>] # Optional. The collection of card buttons. class Card include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Contains information about a button. # @!attribute [rw] text # @return [::String] # Optional. The text to show on the button. # @!attribute [rw] postback # @return [::String] # Optional. The text to send back to the Dialogflow API or a URI to # open. class Button include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end # The simple response message containing speech or text. # @!attribute [rw] text_to_speech # @return [::String] # One of text_to_speech or ssml must be provided. The plain text of the # speech output. Mutually exclusive with ssml. # @!attribute [rw] ssml # @return [::String] # One of text_to_speech or ssml must be provided. Structured spoken # response to the user in the SSML format. Mutually exclusive with # text_to_speech. # @!attribute [rw] display_text # @return [::String] # Optional. The text to display. class SimpleResponse include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The collection of simple response candidates. # This message in `QueryResult.fulfillment_messages` and # `WebhookResponse.fulfillment_messages` should contain only one # `SimpleResponse`. # @!attribute [rw] simple_responses # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::SimpleResponse>] # Required. The list of simple responses. class SimpleResponses include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The basic card message. Useful for displaying information. # @!attribute [rw] title # @return [::String] # Optional. The title of the card. # @!attribute [rw] subtitle # @return [::String] # Optional. The subtitle of the card. # @!attribute [rw] formatted_text # @return [::String] # Required, unless image is present. The body text of the card. # @!attribute [rw] image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. The image for the card. # @!attribute [rw] buttons # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::BasicCard::Button>] # Optional. The collection of card buttons. 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 # The suggestion chip message that the user can tap to quickly post a reply # to the conversation. # @!attribute [rw] title # @return [::String] # Required. The text shown the in the suggestion chip. class Suggestion include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The collection of suggestions. # @!attribute [rw] suggestions # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::Suggestion>] # Required. The list of suggested replies. class Suggestions include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The suggestion chip message that allows the user to jump out to the app # or website associated with this agent. # @!attribute [rw] destination_name # @return [::String] # Required. The name of the app or site this chip is linking to. # @!attribute [rw] uri # @return [::String] # Required. The URI of the app or site to open when the user taps the # suggestion chip. class LinkOutSuggestion include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The card for presenting a list of options to select from. # @!attribute [rw] title # @return [::String] # Optional. The overall title of the list. # @!attribute [rw] items # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::ListSelect::Item>] # Required. List items. # @!attribute [rw] subtitle # @return [::String] # Optional. Subtitle of the list. class ListSelect include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # An item in the list. # @!attribute [rw] info # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::SelectItemInfo] # Required. Additional information about this option. # @!attribute [rw] title # @return [::String] # Required. The title of the list item. # @!attribute [rw] description # @return [::String] # Optional. The main text describing the item. # @!attribute [rw] image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. The image to display. class Item include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end # The card for presenting a carousel of options to select from. # @!attribute [rw] items # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::CarouselSelect::Item>] # Required. Carousel items. class CarouselSelect include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # An item in the carousel. # @!attribute [rw] info # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::SelectItemInfo] # Required. Additional info about the option item. # @!attribute [rw] title # @return [::String] # Required. Title of the carousel item. # @!attribute [rw] description # @return [::String] # Optional. The body text of the card. # @!attribute [rw] image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. The image to display. class Item include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end # Additional info about the select item for when it is triggered in a # dialog. # @!attribute [rw] key # @return [::String] # Required. A unique key that will be sent back to the agent if this # response is given. # @!attribute [rw] synonyms # @return [::Array<::String>] # Optional. A list of synonyms that can also be used to trigger this # item in dialog. class SelectItemInfo include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The media content card for Actions on Google. # @!attribute [rw] media_type # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::MediaContent::ResponseMediaType] # Optional. What type of media is the content (ie "audio"). # @!attribute [rw] media_objects # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::MediaContent::ResponseMediaObject>] # Required. List of media objects. class MediaContent include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Response media object for media content card. # @!attribute [rw] name # @return [::String] # Required. Name of media card. # @!attribute [rw] description # @return [::String] # Optional. Description of media card. # @!attribute [rw] large_image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. Image to display above media content. # @!attribute [rw] icon # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. Icon to display above media content. # @!attribute [rw] content_url # @return [::String] # Required. Url where the media is stored. class ResponseMediaObject include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Format of response media type. module ResponseMediaType # Unspecified. RESPONSE_MEDIA_TYPE_UNSPECIFIED = 0 # Response media type is audio. AUDIO = 1 end end # Browse Carousel Card for Actions on Google. # https://developers.google.com/actions/assistant/responses#browsing_carousel # @!attribute [rw] items # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::BrowseCarouselCard::BrowseCarouselCardItem>] # Required. List of items in the Browse Carousel Card. Minimum of two # items, maximum of ten. # @!attribute [rw] image_display_options # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::BrowseCarouselCard::ImageDisplayOptions] # Optional. Settings for displaying the image. Applies to every image in # {::Google::Cloud::Dialogflow::V2::Intent::Message::BrowseCarouselCard#items items}. class BrowseCarouselCard include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Browsing carousel tile # @!attribute [rw] open_uri_action # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::BrowseCarouselCard::BrowseCarouselCardItem::OpenUrlAction] # Required. Action to present to the user. # @!attribute [rw] title # @return [::String] # Required. Title of the carousel item. Maximum of two lines of text. # @!attribute [rw] description # @return [::String] # Optional. Description of the carousel item. Maximum of four lines of # text. # @!attribute [rw] image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. Hero image for the carousel item. # @!attribute [rw] footer # @return [::String] # Optional. Text that appears at the bottom of the Browse Carousel # Card. Maximum of one line of text. 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 # Image display options for Actions on Google. This should be used for # when the image's aspect ratio does not match the image container's # aspect ratio. module ImageDisplayOptions # Fill the gaps between the image and the image container with gray # bars. IMAGE_DISPLAY_OPTIONS_UNSPECIFIED = 0 # Fill the gaps between the image and the image container with gray # bars. GRAY = 1 # Fill the gaps between the image and the image container with white # bars. WHITE = 2 # Image is scaled such that the image width and height match or exceed # the container dimensions. This may crop the top and bottom of the # image if the scaled image height is greater than the container # height, or crop the left and right of the image if the scaled image # width is greater than the container width. This is similar to "Zoom # Mode" on a widescreen TV when playing a 4:3 video. CROPPED = 3 # Pad the gaps between image and image frame with a blurred copy of the # same image. BLURRED_BACKGROUND = 4 end end # Table card for Actions on Google. # @!attribute [rw] title # @return [::String] # Required. Title of the card. # @!attribute [rw] subtitle # @return [::String] # Optional. Subtitle to the title. # @!attribute [rw] image # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. Image which should be displayed on the card. # @!attribute [rw] column_properties # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::ColumnProperties>] # Optional. Display properties for the columns in this table. # @!attribute [rw] rows # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::TableCardRow>] # Optional. Rows in this table of data. # @!attribute [rw] buttons # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::BasicCard::Button>] # Optional. List of buttons for the card. class TableCard include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Column properties for # {::Google::Cloud::Dialogflow::V2::Intent::Message::TableCard TableCard}. # @!attribute [rw] header # @return [::String] # Required. Column heading. # @!attribute [rw] horizontal_alignment # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::ColumnProperties::HorizontalAlignment] # Optional. Defines text alignment for all cells in this column. class ColumnProperties include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Text alignments within a cell. module HorizontalAlignment # Text is aligned to the leading edge of the column. HORIZONTAL_ALIGNMENT_UNSPECIFIED = 0 # Text is aligned to the leading edge of the column. LEADING = 1 # Text is centered in the column. CENTER = 2 # Text is aligned to the trailing edge of the column. TRAILING = 3 end end # Row of {::Google::Cloud::Dialogflow::V2::Intent::Message::TableCard TableCard}. # @!attribute [rw] cells # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::TableCardCell>] # Optional. List of cells that make up this row. # @!attribute [rw] divider_after # @return [::Boolean] # Optional. Whether to add a visual divider after this row. class TableCardRow include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Cell of # {::Google::Cloud::Dialogflow::V2::Intent::Message::TableCardRow TableCardRow}. # @!attribute [rw] text # @return [::String] # Required. Text in this cell. class TableCardCell include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The rich response message integration platform. See # [Integrations](https://cloud.google.com/dialogflow/docs/integrations). module Platform # Default platform. PLATFORM_UNSPECIFIED = 0 # Facebook. FACEBOOK = 1 # Slack. SLACK = 2 # Telegram. TELEGRAM = 3 # Kik. KIK = 4 # Skype. SKYPE = 5 # Line. LINE = 6 # Viber. VIBER = 7 # Google Assistant # See [Dialogflow webhook # format](https://developers.google.com/assistant/actions/build/json/dialogflow-webhook-json) ACTIONS_ON_GOOGLE = 8 # Google Hangouts. GOOGLE_HANGOUTS = 11 end end |