Google Cloud Dialogflow V2 Client - Class Card (1.17.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
Name Description
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<Card\Button>

Optional. The collection of card buttons.

getTitle

Optional. The title of the card.

Returns
Type Description
string

setTitle

Optional. The title of the card.

Parameter
Name Description
var string
Returns
Type Description
$this

getSubtitle

Optional. The subtitle of the card.

Returns
Type Description
string

setSubtitle

Optional. The subtitle of the card.

Parameter
Name Description
var string
Returns
Type Description
$this

getImageUri

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

Returns
Type Description
string

setImageUri

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

Parameter
Name Description
var string
Returns
Type Description
$this

getButtons

Optional. The collection of card buttons.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setButtons

Optional. The collection of card buttons.

Parameter
Name Description
var array<Card\Button>
Returns
Type Description
$this