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
-
(::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
-
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.
-
(::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.
#browse_carousel_card
def browse_carousel_card() -> ::Google::Cloud::Dialogflow::V2::Intent::Message::BrowseCarouselCard
-
(::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.
#browse_carousel_card=
def browse_carousel_card=(value) -> ::Google::Cloud::Dialogflow::V2::Intent::Message::BrowseCarouselCard
-
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.
-
(::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
-
(::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
-
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.
-
(::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.
#carousel_select
def carousel_select() -> ::Google::Cloud::Dialogflow::V2::Intent::Message::CarouselSelect
-
(::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.
#carousel_select=
def carousel_select=(value) -> ::Google::Cloud::Dialogflow::V2::Intent::Message::CarouselSelect
-
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.
-
(::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
-
(::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
-
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.
-
(::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.
#link_out_suggestion
def link_out_suggestion() -> ::Google::Cloud::Dialogflow::V2::Intent::Message::LinkOutSuggestion
-
(::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.
#link_out_suggestion=
def link_out_suggestion=(value) -> ::Google::Cloud::Dialogflow::V2::Intent::Message::LinkOutSuggestion
-
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.
-
(::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
-
(::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
-
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.
-
(::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
-
(::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
-
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.
-
(::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
-
(::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
-
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.
-
(::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
- (::Google::Cloud::Dialogflow::V2::Intent::Message::Platform) — Optional. The platform that this message is intended for.
#platform=
def platform=(value) -> ::Google::Cloud::Dialogflow::V2::Intent::Message::Platform
- value (::Google::Cloud::Dialogflow::V2::Intent::Message::Platform) — Optional. The platform that this message is intended for.
- (::Google::Cloud::Dialogflow::V2::Intent::Message::Platform) — Optional. The platform that this message is intended for.
#quick_replies
def quick_replies() -> ::Google::Cloud::Dialogflow::V2::Intent::Message::QuickReplies
-
(::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
-
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.
-
(::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
-
(::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
-
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.
-
(::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
-
(::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
-
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.
-
(::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
-
(::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
-
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.
-
(::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
-
(::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
-
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.
-
(::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.