Enum Intent.Message.BrowseCarouselCard.ImageDisplayOptions
- java.lang.Object
-
- java.lang.Enum<Intent.Message.BrowseCarouselCard.ImageDisplayOptions>
-
- com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.ImageDisplayOptions
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite
,com.google.protobuf.ProtocolMessageEnum
,Serializable
,Comparable<Intent.Message.BrowseCarouselCard.ImageDisplayOptions>
- Enclosing class:
- Intent.Message.BrowseCarouselCard
public static enum Intent.Message.BrowseCarouselCard.ImageDisplayOptions extends Enum<Intent.Message.BrowseCarouselCard.ImageDisplayOptions> implements com.google.protobuf.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 enumgoogle.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.ImageDisplayOptions
-
-
Enum Constant Summary
Enum Constants Enum Constant 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.
-
Field Summary
Fields Modifier and Type Field 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.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Intent.Message.BrowseCarouselCard.ImageDisplayOptions
forNumber(int value)
static com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor()
com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType()
int
getNumber()
com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor()
static com.google.protobuf.Internal.EnumLiteMap<Intent.Message.BrowseCarouselCard.ImageDisplayOptions>
internalGetValueMap()
static Intent.Message.BrowseCarouselCard.ImageDisplayOptions
valueOf(int value)
Deprecated.static Intent.Message.BrowseCarouselCard.ImageDisplayOptions
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name.static Intent.Message.BrowseCarouselCard.ImageDisplayOptions
valueOf(String name)
Returns the enum constant of this type with the specified name.static Intent.Message.BrowseCarouselCard.ImageDisplayOptions[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
IMAGE_DISPLAY_OPTIONS_UNSPECIFIED
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;
-
GRAY
public static final Intent.Message.BrowseCarouselCard.ImageDisplayOptions GRAY
Fill the gaps between the image and the image container with gray bars.
GRAY = 1;
-
WHITE
public static final Intent.Message.BrowseCarouselCard.ImageDisplayOptions WHITE
Fill the gaps between the image and the image container with white bars.
WHITE = 2;
-
CROPPED
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;
-
BLURRED_BACKGROUND
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;
-
UNRECOGNIZED
public static final Intent.Message.BrowseCarouselCard.ImageDisplayOptions UNRECOGNIZED
-
-
Field Detail
-
IMAGE_DISPLAY_OPTIONS_UNSPECIFIED_VALUE
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;
- See Also:
- Constant Field Values
-
GRAY_VALUE
public static final int GRAY_VALUE
Fill the gaps between the image and the image container with gray bars.
GRAY = 1;
- See Also:
- Constant Field Values
-
WHITE_VALUE
public static final int WHITE_VALUE
Fill the gaps between the image and the image container with white bars.
WHITE = 2;
- See Also:
- Constant Field Values
-
CROPPED_VALUE
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;
- See Also:
- Constant Field Values
-
BLURRED_BACKGROUND_VALUE
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;
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static Intent.Message.BrowseCarouselCard.ImageDisplayOptions[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Intent.Message.BrowseCarouselCard.ImageDisplayOptions c : Intent.Message.BrowseCarouselCard.ImageDisplayOptions.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Intent.Message.BrowseCarouselCard.ImageDisplayOptions valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getNumber
public final int getNumber()
- Specified by:
getNumber
in interfacecom.google.protobuf.Internal.EnumLite
- Specified by:
getNumber
in interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
@Deprecated public static Intent.Message.BrowseCarouselCard.ImageDisplayOptions valueOf(int value)
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
forNumber
public static Intent.Message.BrowseCarouselCard.ImageDisplayOptions forNumber(int value)
- Parameters:
value
- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<Intent.Message.BrowseCarouselCard.ImageDisplayOptions> internalGetValueMap()
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
- Specified by:
getValueDescriptor
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static Intent.Message.BrowseCarouselCard.ImageDisplayOptions valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
desc
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-