Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class Message.
A rich response message.
Corresponds to the intent Response
field in the Dialogflow console.
For more information, see Rich response
messages
.
Generated from protobuf message google.cloud.dialogflow.v2.Intent.Message
Namespace
Google \ Cloud \ Dialogflow \ V2 \ IntentMethods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ text
↳ image
↳ quick_replies
↳ card
↳ payload
↳ simple_responses
Google\Cloud\Dialogflow\V2\Intent\Message\SimpleResponses
The voice and text-only responses for Actions on Google.
↳ basic_card
↳ suggestions
↳ link_out_suggestion
Google\Cloud\Dialogflow\V2\Intent\Message\LinkOutSuggestion
The link out suggestion chip for Actions on Google.
↳ list_select
↳ carousel_select
Google\Cloud\Dialogflow\V2\Intent\Message\CarouselSelect
The carousel card response for Actions on Google.
↳ browse_carousel_card
Google\Cloud\Dialogflow\V2\Intent\Message\BrowseCarouselCard
Browse carousel card for Actions on Google.
↳ table_card
↳ media_content
Google\Cloud\Dialogflow\V2\Intent\Message\MediaContent
The media content card for Actions on Google.
↳ platform
int
Optional. The platform that this message is intended for.
getText
The text response.
hasText
setText
The text response.
$this
getImage
The image response.
hasImage
setImage
The image response.
$this
getQuickReplies
The quick replies response.
hasQuickReplies
setQuickReplies
The quick replies response.
$this
getCard
The card response.
hasCard
setCard
The card response.
$this
getPayload
A custom platform-specific response.
hasPayload
setPayload
A custom platform-specific response.
$this
getSimpleResponses
The voice and text-only responses for Actions on Google.
hasSimpleResponses
setSimpleResponses
The voice and text-only responses for Actions on Google.
$this
getBasicCard
The basic card response for Actions on Google.
hasBasicCard
setBasicCard
The basic card response for Actions on Google.
$this
getSuggestions
The suggestion chips for Actions on Google.
hasSuggestions
setSuggestions
The suggestion chips for Actions on Google.
$this
getLinkOutSuggestion
The link out suggestion chip for Actions on Google.
hasLinkOutSuggestion
setLinkOutSuggestion
The link out suggestion chip for Actions on Google.
$this
getListSelect
The list card response for Actions on Google.
hasListSelect
setListSelect
The list card response for Actions on Google.
$this
getCarouselSelect
The carousel card response for Actions on Google.
hasCarouselSelect
setCarouselSelect
The carousel card response for Actions on Google.
$this
getBrowseCarouselCard
Browse carousel card for Actions on Google.
hasBrowseCarouselCard
setBrowseCarouselCard
Browse carousel card for Actions on Google.
$this
getTableCard
Table card for Actions on Google.
hasTableCard
setTableCard
Table card for Actions on Google.
$this
getMediaContent
The media content card for Actions on Google.
hasMediaContent
setMediaContent
The media content card for Actions on Google.
$this
getPlatform
Optional. The platform that this message is intended for.
int
setPlatform
Optional. The platform that this message is intended for.
var
int
$this
getMessage
string