Google Cloud Dialogflow V2 Client - Class Card (1.11.0)

Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class Card.

The card response message.

Generated from protobuf message google.cloud.dialogflow.v2.Intent.Message.Card

Namespace

Google \ Cloud \ Dialogflow \ V2 \ Intent \ Message

Methods

__construct

Constructor.

Parameters
NameDescription
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.

↳ image_uri string

Optional. The public URI to an image file for the card.

↳ buttons array<Google\Cloud\Dialogflow\V2\Intent\Message\Card\Button>

Optional. The collection of card buttons.

getTitle

Optional. The title of the card.

Returns
TypeDescription
string

setTitle

Optional. The title of the card.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSubtitle

Optional. The subtitle of the card.

Returns
TypeDescription
string

setSubtitle

Optional. The subtitle of the card.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getImageUri

Optional. The public URI to an image file for the card.

Returns
TypeDescription
string

setImageUri

Optional. The public URI to an image file for the card.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getButtons

Optional. The collection of card buttons.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setButtons

Optional. The collection of card buttons.

Parameter
NameDescription
var array<Google\Cloud\Dialogflow\V2\Intent\Message\Card\Button>
Returns
TypeDescription
$this