Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class BasicCard.
The basic card message. Useful for displaying information.
Generated from protobuf message google.cloud.dialogflow.v2.Intent.Message.BasicCard
Namespace
Google \ Cloud \ Dialogflow \ V2 \ Intent \ MessageMethods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ title
string
Optional. The title of the card.
↳ subtitle
string
Optional. The subtitle of the card.
↳ formatted_text
string
Required, unless image is present. The body text of the card.
↳ image
↳ buttons
array< Google\Cloud\Dialogflow\V2\Intent\Message\BasicCard\Button
>
Optional. The collection of card buttons.
getTitle
Optional. The title of the card.
string
setTitle
Optional. The title of the card.
var
string
$this
getSubtitle
Optional. The subtitle of the card.
string
setSubtitle
Optional. The subtitle of the card.
var
string
$this
getFormattedText
Required, unless image is present. The body text of the card.
string
setFormattedText
Required, unless image is present. The body text of the card.
var
string
$this
getImage
Optional. The image for the card.
hasImage
clearImage
setImage
Optional. The image for the card.
$this
getButtons
Optional. The collection of card buttons.
setButtons
Optional. The collection of card buttons.
$this