public static enum Intent.Message.BrowseCarouselCard.ImageDisplayOptions extends Enum<Intent.Message.BrowseCarouselCard.ImageDisplayOptions> implements ProtocolMessageEnum
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 enum
google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.ImageDisplayOptions
Enum Constant and Description |
---|
BLURRED_BACKGROUND
Pad the gaps between image and image frame with a blurred copy of the
same image.
|
CROPPED
Image is scaled such that the image width and height match or exceed
the container dimensions.
|
GRAY
Fill the gaps between the image and the image container with gray
bars.
|
IMAGE_DISPLAY_OPTIONS_UNSPECIFIED
Fill the gaps between the image and the image container with gray
bars.
|
UNRECOGNIZED |
WHITE
Fill the gaps between the image and the image container with white
bars.
|
Modifier and Type | Field and Description |
---|---|
static int |
BLURRED_BACKGROUND_VALUE
Pad the gaps between image and image frame with a blurred copy of the
same image.
|
static int |
CROPPED_VALUE
Image is scaled such that the image width and height match or exceed
the container dimensions.
|
static int |
GRAY_VALUE
Fill the gaps between the image and the image container with gray
bars.
|
static int |
IMAGE_DISPLAY_OPTIONS_UNSPECIFIED_VALUE
Fill the gaps between the image and the image container with gray
bars.
|
static int |
WHITE_VALUE
Fill the gaps between the image and the image container with white
bars.
|
public static final Intent.Message.BrowseCarouselCard.ImageDisplayOptions IMAGE_DISPLAY_OPTIONS_UNSPECIFIED
Fill the gaps between the image and the image container with gray bars.
IMAGE_DISPLAY_OPTIONS_UNSPECIFIED = 0;
public static final Intent.Message.BrowseCarouselCard.ImageDisplayOptions GRAY
Fill the gaps between the image and the image container with gray bars.
GRAY = 1;
public static final Intent.Message.BrowseCarouselCard.ImageDisplayOptions WHITE
Fill the gaps between the image and the image container with white bars.
WHITE = 2;
public static final Intent.Message.BrowseCarouselCard.ImageDisplayOptions CROPPED
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.
CROPPED = 3;
public static final Intent.Message.BrowseCarouselCard.ImageDisplayOptions BLURRED_BACKGROUND
Pad the gaps between image and image frame with a blurred copy of the same image.
BLURRED_BACKGROUND = 4;
public static final Intent.Message.BrowseCarouselCard.ImageDisplayOptions UNRECOGNIZED
public static final int IMAGE_DISPLAY_OPTIONS_UNSPECIFIED_VALUE
Fill the gaps between the image and the image container with gray bars.
IMAGE_DISPLAY_OPTIONS_UNSPECIFIED = 0;
public static final int GRAY_VALUE
Fill the gaps between the image and the image container with gray bars.
GRAY = 1;
public static final int WHITE_VALUE
Fill the gaps between the image and the image container with white bars.
WHITE = 2;
public static final int CROPPED_VALUE
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.
CROPPED = 3;
public static final int BLURRED_BACKGROUND_VALUE
Pad the gaps between image and image frame with a blurred copy of the same image.
BLURRED_BACKGROUND = 4;
public static Intent.Message.BrowseCarouselCard.ImageDisplayOptions[] values()
for (Intent.Message.BrowseCarouselCard.ImageDisplayOptions c : Intent.Message.BrowseCarouselCard.ImageDisplayOptions.values()) System.out.println(c);
public static Intent.Message.BrowseCarouselCard.ImageDisplayOptions valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic final int getNumber()
getNumber
in interface Internal.EnumLite
getNumber
in interface ProtocolMessageEnum
@Deprecated public static Intent.Message.BrowseCarouselCard.ImageDisplayOptions valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static Intent.Message.BrowseCarouselCard.ImageDisplayOptions forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static Internal.EnumLiteMap<Intent.Message.BrowseCarouselCard.ImageDisplayOptions> internalGetValueMap()
public final Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface ProtocolMessageEnum
public final Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface ProtocolMessageEnum
public static final Descriptors.EnumDescriptor getDescriptor()
public static Intent.Message.BrowseCarouselCard.ImageDisplayOptions valueOf(Descriptors.EnumValueDescriptor desc)
Copyright © 2022 Google LLC. All rights reserved.