Dialogflow V2 API - Class Google::Cloud::Dialogflow::V2::Intent::Message (v1.7.0)

Reference documentation and code samples for the Dialogflow V2 API class Google::Cloud::Dialogflow::V2::Intent::Message.

A rich response message. Corresponds to the intent Response field in the Dialogflow console. For more information, see Rich response messages.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#basic_card

def basic_card() -> ::Google::Cloud::Dialogflow::V2::Intent::Message::BasicCard
Returns
  • (::Google::Cloud::Dialogflow::V2::Intent::Message::BasicCard) — The basic card response for Actions on Google.

    Note: The following fields are mutually exclusive: basic_card, text, image, quick_replies, card, payload, simple_responses, suggestions, link_out_suggestion, list_select, carousel_select, browse_carousel_card, table_card, media_content. If a field in that set is populated, all other fields in the set will automatically be cleared.

#basic_card=

def basic_card=(value) -> ::Google::Cloud::Dialogflow::V2::Intent::Message::BasicCard
Parameter
  • value (::Google::Cloud::Dialogflow::V2::Intent::Message::BasicCard) — The basic card response for Actions on Google.

    Note: The following fields are mutually exclusive: basic_card, text, image, quick_replies, card, payload, simple_responses, suggestions, link_out_suggestion, list_select, carousel_select, browse_carousel_card, table_card, media_content. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns
  • (::Google::Cloud::Dialogflow::V2::Intent::Message::BasicCard) — The basic card response for Actions on Google.

    Note: The following fields are mutually exclusive: basic_card, text, image, quick_replies, card, payload, simple_responses, suggestions, link_out_suggestion, list_select, carousel_select, browse_carousel_card, table_card, media_content. If a field in that set is populated, all other fields in the set will automatically be cleared.

def browse_carousel_card() -> ::Google::Cloud::Dialogflow::V2::Intent::Message::BrowseCarouselCard
Returns
  • (::Google::Cloud::Dialogflow::V2::Intent::Message::BrowseCarouselCard) — Browse carousel card for Actions on Google.

    Note: The following fields are mutually exclusive: browse_carousel_card, text, image, quick_replies, card, payload, simple_responses, basic_card, suggestions, link_out_suggestion, list_select, carousel_select, table_card, media_content. If a field in that set is populated, all other fields in the set will automatically be cleared.

def browse_carousel_card=(value) -> ::Google::Cloud::Dialogflow::V2::Intent::Message::BrowseCarouselCard
Parameter
  • value (::Google::Cloud::Dialogflow::V2::Intent::Message::BrowseCarouselCard) — Browse carousel card for Actions on Google.

    Note: The following fields are mutually exclusive: browse_carousel_card, text, image, quick_replies, card, payload, simple_responses, basic_card, suggestions, link_out_suggestion, list_select, carousel_select, table_card, media_content. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns
  • (::Google::Cloud::Dialogflow::V2::Intent::Message::BrowseCarouselCard) — Browse carousel card for Actions on Google.

    Note: The following fields are mutually exclusive: browse_carousel_card, text, image, quick_replies, card, payload, simple_responses, basic_card, suggestions, link_out_suggestion, list_select, carousel_select, table_card, media_content. If a field in that set is populated, all other fields in the set will automatically be cleared.

#card

def card() -> ::Google::Cloud::Dialogflow::V2::Intent::Message::Card
Returns
  • (::Google::Cloud::Dialogflow::V2::Intent::Message::Card) — The card response.

    Note: The following fields are mutually exclusive: card, text, image, quick_replies, payload, simple_responses, basic_card, suggestions, link_out_suggestion, list_select, carousel_select, browse_carousel_card, table_card, media_content. If a field in that set is populated, all other fields in the set will automatically be cleared.

#card=

def card=(value) -> ::Google::Cloud::Dialogflow::V2::Intent::Message::Card
Parameter
  • value (::Google::Cloud::Dialogflow::V2::Intent::Message::Card) — The card response.

    Note: The following fields are mutually exclusive: card, text, image, quick_replies, payload, simple_responses, basic_card, suggestions, link_out_suggestion, list_select, carousel_select, browse_carousel_card, table_card, media_content. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns
  • (::Google::Cloud::Dialogflow::V2::Intent::Message::Card) — The card response.

    Note: The following fields are mutually exclusive: card, text, image, quick_replies, payload, simple_responses, basic_card, suggestions, link_out_suggestion, list_select, carousel_select, browse_carousel_card, table_card, media_content. If a field in that set is populated, all other fields in the set will automatically be cleared.

def carousel_select() -> ::Google::Cloud::Dialogflow::V2::Intent::Message::CarouselSelect
Returns
  • (::Google::Cloud::Dialogflow::V2::Intent::Message::CarouselSelect) — The carousel card response for Actions on Google.

    Note: The following fields are mutually exclusive: carousel_select, text, image, quick_replies, card, payload, simple_responses, basic_card, suggestions, link_out_suggestion, list_select, browse_carousel_card, table_card, media_content. If a field in that set is populated, all other fields in the set will automatically be cleared.

def carousel_select=(value) -> ::Google::Cloud::Dialogflow::V2::Intent::Message::CarouselSelect
Parameter
  • value (::Google::Cloud::Dialogflow::V2::Intent::Message::CarouselSelect) — The carousel card response for Actions on Google.

    Note: The following fields are mutually exclusive: carousel_select, text, image, quick_replies, card, payload, simple_responses, basic_card, suggestions, link_out_suggestion, list_select, browse_carousel_card, table_card, media_content. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns
  • (::Google::Cloud::Dialogflow::V2::Intent::Message::CarouselSelect) — The carousel card response for Actions on Google.

    Note: The following fields are mutually exclusive: carousel_select, text, image, quick_replies, card, payload, simple_responses, basic_card, suggestions, link_out_suggestion, list_select, browse_carousel_card, table_card, media_content. If a field in that set is populated, all other fields in the set will automatically be cleared.

#image

def image() -> ::Google::Cloud::Dialogflow::V2::Intent::Message::Image
Returns
  • (::Google::Cloud::Dialogflow::V2::Intent::Message::Image) — The image response.

    Note: The following fields are mutually exclusive: image, text, quick_replies, card, payload, simple_responses, basic_card, suggestions, link_out_suggestion, list_select, carousel_select, browse_carousel_card, table_card, media_content. If a field in that set is populated, all other fields in the set will automatically be cleared.

#image=

def image=(value) -> ::Google::Cloud::Dialogflow::V2::Intent::Message::Image
Parameter
  • value (::Google::Cloud::Dialogflow::V2::Intent::Message::Image) — The image response.

    Note: The following fields are mutually exclusive: image, text, quick_replies, card, payload, simple_responses, basic_card, suggestions, link_out_suggestion, list_select, carousel_select, browse_carousel_card, table_card, media_content. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns
  • (::Google::Cloud::Dialogflow::V2::Intent::Message::Image) — The image response.

    Note: The following fields are mutually exclusive: image, text, quick_replies, card, payload, simple_responses, basic_card, suggestions, link_out_suggestion, list_select, carousel_select, browse_carousel_card, table_card, media_content. If a field in that set is populated, all other fields in the set will automatically be cleared.

def link_out_suggestion() -> ::Google::Cloud::Dialogflow::V2::Intent::Message::LinkOutSuggestion
Returns
  • (::Google::Cloud::Dialogflow::V2::Intent::Message::LinkOutSuggestion) — The link out suggestion chip for Actions on Google.

    Note: The following fields are mutually exclusive: link_out_suggestion, text, image, quick_replies, card, payload, simple_responses, basic_card, suggestions, list_select, carousel_select, browse_carousel_card, table_card, media_content. If a field in that set is populated, all other fields in the set will automatically be cleared.

def link_out_suggestion=(value) -> ::Google::Cloud::Dialogflow::V2::Intent::Message::LinkOutSuggestion
Parameter
  • value (::Google::Cloud::Dialogflow::V2::Intent::Message::LinkOutSuggestion) — The link out suggestion chip for Actions on Google.

    Note: The following fields are mutually exclusive: link_out_suggestion, text, image, quick_replies, card, payload, simple_responses, basic_card, suggestions, list_select, carousel_select, browse_carousel_card, table_card, media_content. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns
  • (::Google::Cloud::Dialogflow::V2::Intent::Message::LinkOutSuggestion) — The link out suggestion chip for Actions on Google.

    Note: The following fields are mutually exclusive: link_out_suggestion, text, image, quick_replies, card, payload, simple_responses, basic_card, suggestions, list_select, carousel_select, browse_carousel_card, table_card, media_content. If a field in that set is populated, all other fields in the set will automatically be cleared.

#list_select

def list_select() -> ::Google::Cloud::Dialogflow::V2::Intent::Message::ListSelect
Returns
  • (::Google::Cloud::Dialogflow::V2::Intent::Message::ListSelect) — The list card response for Actions on Google.

    Note: The following fields are mutually exclusive: list_select, text, image, quick_replies, card, payload, simple_responses, basic_card, suggestions, link_out_suggestion, carousel_select, browse_carousel_card, table_card, media_content. If a field in that set is populated, all other fields in the set will automatically be cleared.

#list_select=

def list_select=(value) -> ::Google::Cloud::Dialogflow::V2::Intent::Message::ListSelect
Parameter
  • value (::Google::Cloud::Dialogflow::V2::Intent::Message::ListSelect) — The list card response for Actions on Google.

    Note: The following fields are mutually exclusive: list_select, text, image, quick_replies, card, payload, simple_responses, basic_card, suggestions, link_out_suggestion, carousel_select, browse_carousel_card, table_card, media_content. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns
  • (::Google::Cloud::Dialogflow::V2::Intent::Message::ListSelect) — The list card response for Actions on Google.

    Note: The following fields are mutually exclusive: list_select, text, image, quick_replies, card, payload, simple_responses, basic_card, suggestions, link_out_suggestion, carousel_select, browse_carousel_card, table_card, media_content. If a field in that set is populated, all other fields in the set will automatically be cleared.

#media_content

def media_content() -> ::Google::Cloud::Dialogflow::V2::Intent::Message::MediaContent
Returns
  • (::Google::Cloud::Dialogflow::V2::Intent::Message::MediaContent) — The media content card for Actions on Google.

    Note: The following fields are mutually exclusive: media_content, text, image, quick_replies, card, payload, simple_responses, basic_card, suggestions, link_out_suggestion, list_select, carousel_select, browse_carousel_card, table_card. If a field in that set is populated, all other fields in the set will automatically be cleared.

#media_content=

def media_content=(value) -> ::Google::Cloud::Dialogflow::V2::Intent::Message::MediaContent
Parameter
  • value (::Google::Cloud::Dialogflow::V2::Intent::Message::MediaContent) — The media content card for Actions on Google.

    Note: The following fields are mutually exclusive: media_content, text, image, quick_replies, card, payload, simple_responses, basic_card, suggestions, link_out_suggestion, list_select, carousel_select, browse_carousel_card, table_card. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns
  • (::Google::Cloud::Dialogflow::V2::Intent::Message::MediaContent) — The media content card for Actions on Google.

    Note: The following fields are mutually exclusive: media_content, text, image, quick_replies, card, payload, simple_responses, basic_card, suggestions, link_out_suggestion, list_select, carousel_select, browse_carousel_card, table_card. If a field in that set is populated, all other fields in the set will automatically be cleared.

#payload

def payload() -> ::Google::Protobuf::Struct
Returns
  • (::Google::Protobuf::Struct) — A custom platform-specific response.

    Note: The following fields are mutually exclusive: payload, text, image, quick_replies, card, simple_responses, basic_card, suggestions, link_out_suggestion, list_select, carousel_select, browse_carousel_card, table_card, media_content. If a field in that set is populated, all other fields in the set will automatically be cleared.

#payload=

def payload=(value) -> ::Google::Protobuf::Struct
Parameter
  • value (::Google::Protobuf::Struct) — A custom platform-specific response.

    Note: The following fields are mutually exclusive: payload, text, image, quick_replies, card, simple_responses, basic_card, suggestions, link_out_suggestion, list_select, carousel_select, browse_carousel_card, table_card, media_content. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns
  • (::Google::Protobuf::Struct) — A custom platform-specific response.

    Note: The following fields are mutually exclusive: payload, text, image, quick_replies, card, simple_responses, basic_card, suggestions, link_out_suggestion, list_select, carousel_select, browse_carousel_card, table_card, media_content. If a field in that set is populated, all other fields in the set will automatically be cleared.

#platform

def platform() -> ::Google::Cloud::Dialogflow::V2::Intent::Message::Platform
Returns

#platform=

def platform=(value) -> ::Google::Cloud::Dialogflow::V2::Intent::Message::Platform
Parameter
Returns

#quick_replies

def quick_replies() -> ::Google::Cloud::Dialogflow::V2::Intent::Message::QuickReplies
Returns
  • (::Google::Cloud::Dialogflow::V2::Intent::Message::QuickReplies) — The quick replies response.

    Note: The following fields are mutually exclusive: quick_replies, text, image, card, payload, simple_responses, basic_card, suggestions, link_out_suggestion, list_select, carousel_select, browse_carousel_card, table_card, media_content. If a field in that set is populated, all other fields in the set will automatically be cleared.

#quick_replies=

def quick_replies=(value) -> ::Google::Cloud::Dialogflow::V2::Intent::Message::QuickReplies
Parameter
  • value (::Google::Cloud::Dialogflow::V2::Intent::Message::QuickReplies) — The quick replies response.

    Note: The following fields are mutually exclusive: quick_replies, text, image, card, payload, simple_responses, basic_card, suggestions, link_out_suggestion, list_select, carousel_select, browse_carousel_card, table_card, media_content. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns
  • (::Google::Cloud::Dialogflow::V2::Intent::Message::QuickReplies) — The quick replies response.

    Note: The following fields are mutually exclusive: quick_replies, text, image, card, payload, simple_responses, basic_card, suggestions, link_out_suggestion, list_select, carousel_select, browse_carousel_card, table_card, media_content. If a field in that set is populated, all other fields in the set will automatically be cleared.

#simple_responses

def simple_responses() -> ::Google::Cloud::Dialogflow::V2::Intent::Message::SimpleResponses
Returns
  • (::Google::Cloud::Dialogflow::V2::Intent::Message::SimpleResponses) — The voice and text-only responses for Actions on Google.

    Note: The following fields are mutually exclusive: simple_responses, text, image, quick_replies, card, payload, basic_card, suggestions, link_out_suggestion, list_select, carousel_select, browse_carousel_card, table_card, media_content. If a field in that set is populated, all other fields in the set will automatically be cleared.

#simple_responses=

def simple_responses=(value) -> ::Google::Cloud::Dialogflow::V2::Intent::Message::SimpleResponses
Parameter
  • value (::Google::Cloud::Dialogflow::V2::Intent::Message::SimpleResponses) — The voice and text-only responses for Actions on Google.

    Note: The following fields are mutually exclusive: simple_responses, text, image, quick_replies, card, payload, basic_card, suggestions, link_out_suggestion, list_select, carousel_select, browse_carousel_card, table_card, media_content. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns
  • (::Google::Cloud::Dialogflow::V2::Intent::Message::SimpleResponses) — The voice and text-only responses for Actions on Google.

    Note: The following fields are mutually exclusive: simple_responses, text, image, quick_replies, card, payload, basic_card, suggestions, link_out_suggestion, list_select, carousel_select, browse_carousel_card, table_card, media_content. If a field in that set is populated, all other fields in the set will automatically be cleared.

#suggestions

def suggestions() -> ::Google::Cloud::Dialogflow::V2::Intent::Message::Suggestions
Returns
  • (::Google::Cloud::Dialogflow::V2::Intent::Message::Suggestions) — The suggestion chips for Actions on Google.

    Note: The following fields are mutually exclusive: suggestions, text, image, quick_replies, card, payload, simple_responses, basic_card, link_out_suggestion, list_select, carousel_select, browse_carousel_card, table_card, media_content. If a field in that set is populated, all other fields in the set will automatically be cleared.

#suggestions=

def suggestions=(value) -> ::Google::Cloud::Dialogflow::V2::Intent::Message::Suggestions
Parameter
  • value (::Google::Cloud::Dialogflow::V2::Intent::Message::Suggestions) — The suggestion chips for Actions on Google.

    Note: The following fields are mutually exclusive: suggestions, text, image, quick_replies, card, payload, simple_responses, basic_card, link_out_suggestion, list_select, carousel_select, browse_carousel_card, table_card, media_content. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns
  • (::Google::Cloud::Dialogflow::V2::Intent::Message::Suggestions) — The suggestion chips for Actions on Google.

    Note: The following fields are mutually exclusive: suggestions, text, image, quick_replies, card, payload, simple_responses, basic_card, link_out_suggestion, list_select, carousel_select, browse_carousel_card, table_card, media_content. If a field in that set is populated, all other fields in the set will automatically be cleared.

#table_card

def table_card() -> ::Google::Cloud::Dialogflow::V2::Intent::Message::TableCard
Returns
  • (::Google::Cloud::Dialogflow::V2::Intent::Message::TableCard) — Table card for Actions on Google.

    Note: The following fields are mutually exclusive: table_card, text, image, quick_replies, card, payload, simple_responses, basic_card, suggestions, link_out_suggestion, list_select, carousel_select, browse_carousel_card, media_content. If a field in that set is populated, all other fields in the set will automatically be cleared.

#table_card=

def table_card=(value) -> ::Google::Cloud::Dialogflow::V2::Intent::Message::TableCard
Parameter
  • value (::Google::Cloud::Dialogflow::V2::Intent::Message::TableCard) — Table card for Actions on Google.

    Note: The following fields are mutually exclusive: table_card, text, image, quick_replies, card, payload, simple_responses, basic_card, suggestions, link_out_suggestion, list_select, carousel_select, browse_carousel_card, media_content. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns
  • (::Google::Cloud::Dialogflow::V2::Intent::Message::TableCard) — Table card for Actions on Google.

    Note: The following fields are mutually exclusive: table_card, text, image, quick_replies, card, payload, simple_responses, basic_card, suggestions, link_out_suggestion, list_select, carousel_select, browse_carousel_card, media_content. If a field in that set is populated, all other fields in the set will automatically be cleared.

#text

def text() -> ::Google::Cloud::Dialogflow::V2::Intent::Message::Text
Returns
  • (::Google::Cloud::Dialogflow::V2::Intent::Message::Text) — The text response.

    Note: The following fields are mutually exclusive: text, image, quick_replies, card, payload, simple_responses, basic_card, suggestions, link_out_suggestion, list_select, carousel_select, browse_carousel_card, table_card, media_content. If a field in that set is populated, all other fields in the set will automatically be cleared.

#text=

def text=(value) -> ::Google::Cloud::Dialogflow::V2::Intent::Message::Text
Parameter
  • value (::Google::Cloud::Dialogflow::V2::Intent::Message::Text) — The text response.

    Note: The following fields are mutually exclusive: text, image, quick_replies, card, payload, simple_responses, basic_card, suggestions, link_out_suggestion, list_select, carousel_select, browse_carousel_card, table_card, media_content. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns
  • (::Google::Cloud::Dialogflow::V2::Intent::Message::Text) — The text response.

    Note: The following fields are mutually exclusive: text, image, quick_replies, card, payload, simple_responses, basic_card, suggestions, link_out_suggestion, list_select, carousel_select, browse_carousel_card, table_card, media_content. If a field in that set is populated, all other fields in the set will automatically be cleared.