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
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. |
↳ formatted_text |
string
Required, unless image is present. The body text of the card. |
↳ image |
Google\Cloud\Dialogflow\V2\Intent\Message\Image
Optional. The image for the card. |
↳ buttons |
array<Google\Cloud\Dialogflow\V2\Intent\Message\BasicCard\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 |
|
getFormattedText
Required, unless image is present. The body text of the card.
Generated from protobuf field string formatted_text = 3;
| Returns | |
|---|---|
| Type | Description |
string |
|
setFormattedText
Required, unless image is present. The body text of the card.
Generated from protobuf field string formatted_text = 3;
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getImage
Optional. The image for the card.
Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.Image image = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Google\Cloud\Dialogflow\V2\Intent\Message\Image|null |
|
hasImage
clearImage
setImage
Optional. The image for the card.
Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.Image image = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Cloud\Dialogflow\V2\Intent\Message\Image
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getButtons
Optional. The collection of card buttons.
Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button buttons = 5 [(.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.BasicCard.Button buttons = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
var |
array<Google\Cloud\Dialogflow\V2\Intent\Message\BasicCard\Button>
|
| Returns | |
|---|---|
| Type | Description |
$this |
|