Class BrowseCarouselCard (2.29.0)

BrowseCarouselCard(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Attributes

NameDescription
items MutableSequence[google.cloud.dialogflow_v2beta1.types.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem]
Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.
image_display_options google.cloud.dialogflow_v2beta1.types.Intent.Message.BrowseCarouselCard.ImageDisplayOptions
Optional. Settings for displaying the image. Applies to every image in items.

Classes

BrowseCarouselCardItem

BrowseCarouselCardItem(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Browsing carousel tile

ImageDisplayOptions

ImageDisplayOptions(value)

Image display options for Actions on Google. This should be used for when the image's aspect ratio does not match the image container's aspect ratio.

Values: IMAGE_DISPLAY_OPTIONS_UNSPECIFIED (0): Fill the gaps between the image and the image container with gray bars. GRAY (1): Fill the gaps between the image and the image container with gray bars. WHITE (2): Fill the gaps between the image and the image container with white bars. CROPPED (3): Image is scaled such that the image width and height match or exceed the container dimensions. This may crop the top and bottom of the image if the scaled image height is greater than the container height, or crop the left and right of the image if the scaled image width is greater than the container width. This is similar to "Zoom Mode" on a widescreen TV when playing a 4:3 video. BLURRED_BACKGROUND (4): Pad the gaps between image and image frame with a blurred copy of the same image.