Google Cloud Dialogflow V2 Client - Class Card (1.0.1)

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

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.

Generated from protobuf field string title = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
string

setTitle

Optional. The title of the card.

Generated from protobuf field string title = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSubtitle

Optional. The subtitle of the card.

Generated from protobuf field string subtitle = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
string

setSubtitle

Optional. The subtitle of the card.

Generated from protobuf field string subtitle = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getImageUri

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

Generated from protobuf field string image_uri = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
string

setImageUri

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

Generated from protobuf field string image_uri = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getButtons

Optional. The collection of card buttons.

Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Message.Card.Button buttons = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setButtons

Optional. The collection of card buttons.

Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Message.Card.Button buttons = 4 [(.google.api.field_behavior) = OPTIONAL];

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