Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class BrowseCarouselCard.
Browse Carousel Card for Actions on Google.
https://developers.google.com/actions/assistant/responses#browsing_carousel
Generated from protobuf message google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ items |
array<Google\Cloud\Dialogflow\V2\Intent\Message\BrowseCarouselCard\BrowseCarouselCardItem>
Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten. |
↳ image_display_options |
int
Optional. Settings for displaying the image. Applies to every image in items. |
getItems
Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.
Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1;
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setItems
Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.
Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1;
Parameter | |
---|---|
Name | Description |
var |
array<Google\Cloud\Dialogflow\V2\Intent\Message\BrowseCarouselCard\BrowseCarouselCardItem>
|
Returns | |
---|---|
Type | Description |
$this |
getImageDisplayOptions
Optional. Settings for displaying the image. Applies to every image in items.
Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.ImageDisplayOptions image_display_options = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
int |
setImageDisplayOptions
Optional. Settings for displaying the image. Applies to every image in items.
Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.ImageDisplayOptions image_display_options = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |