Google Cloud Dialogflow V2 Client - Class ImageDisplayOptions (1.6.0)

Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class ImageDisplayOptions.

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.

Protobuf type google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.ImageDisplayOptions

Namespace

Google \ Cloud \ Dialogflow \ V2 \ Intent \ Message \ BrowseCarouselCard

Methods

static::name

Parameter
NameDescription
value mixed

static::value

Parameter
NameDescription
name mixed

Constants

IMAGE_DISPLAY_OPTIONS_UNSPECIFIED

Value: 0

Fill the gaps between the image and the image container with gray bars.

Generated from protobuf enum IMAGE_DISPLAY_OPTIONS_UNSPECIFIED = 0;

GRAY

Value: 1

Fill the gaps between the image and the image container with gray bars.

Generated from protobuf enum GRAY = 1;

WHITE

Value: 2

Fill the gaps between the image and the image container with white bars.

Generated from protobuf enum WHITE = 2;

CROPPED

Value: 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.

Generated from protobuf enum CROPPED = 3;

BLURRED_BACKGROUND

Value: 4

Pad the gaps between image and image frame with a blurred copy of the same image.

Generated from protobuf enum BLURRED_BACKGROUND = 4;