Google Cloud Dialogflow V2 Client - Class BrowseCarouselCard (1.1.1)

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
NameDescription
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.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setItems

Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.

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

getImageDisplayOptions

Optional. Settings for displaying the image. Applies to every image in items.

Returns
TypeDescription
int

setImageDisplayOptions

Optional. Settings for displaying the image. Applies to every image in items.

Parameter
NameDescription
var int
Returns
TypeDescription
$this