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 | |
---|---|
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<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 | |
---|---|
Type | Description |
string |
setTitle
Optional. The title of the card.
Generated from protobuf field string title = 1 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getSubtitle
Optional. The subtitle of the card.
Generated from protobuf field string subtitle = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
string |
setSubtitle
Optional. The subtitle of the card.
Generated from protobuf field string subtitle = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
var |
array<Google\Cloud\Dialogflow\V2\Intent\Message\Card\Button>
|
Returns | |
---|---|
Type | Description |
$this |