Enum ImageCropStyle.ImageCropType (2.37.1)

public enum ImageCropStyle.ImageCropType extends Enum<ImageCropStyle.ImageCropType> implements ProtocolMessageEnum

Represents the crop style applied to an image.

Google Workspace Add-ons and Chat apps:

Protobuf enum google.apps.card.v1.ImageCropStyle.ImageCropType

Implements

ProtocolMessageEnum

Static Fields

NameDescription
CIRCLE

Applies a circular crop.

CIRCLE = 2;

CIRCLE_VALUE

Applies a circular crop.

CIRCLE = 2;

IMAGE_CROP_TYPE_UNSPECIFIED

Don't use. Unspecified.

IMAGE_CROP_TYPE_UNSPECIFIED = 0;

IMAGE_CROP_TYPE_UNSPECIFIED_VALUE

Don't use. Unspecified.

IMAGE_CROP_TYPE_UNSPECIFIED = 0;

RECTANGLE_4_3

Applies a rectangular crop with a 4:3 aspect ratio.

RECTANGLE_4_3 = 4;

RECTANGLE_4_3_VALUE

Applies a rectangular crop with a 4:3 aspect ratio.

RECTANGLE_4_3 = 4;

RECTANGLE_CUSTOM

Applies a rectangular crop with a custom aspect ratio. Set the custom aspect ratio with aspectRatio.

RECTANGLE_CUSTOM = 3;

RECTANGLE_CUSTOM_VALUE

Applies a rectangular crop with a custom aspect ratio. Set the custom aspect ratio with aspectRatio.

RECTANGLE_CUSTOM = 3;

SQUARE

Default value. Applies a square crop.

SQUARE = 1;

SQUARE_VALUE

Default value. Applies a square crop.

SQUARE = 1;

UNRECOGNIZED

Static Methods

NameDescription
forNumber(int value)
getDescriptor()
internalGetValueMap()
valueOf(Descriptors.EnumValueDescriptor desc)
valueOf(int value)

Deprecated. Use #forNumber(int) instead.

valueOf(String name)
values()

Methods

NameDescription
getDescriptorForType()
getNumber()
getValueDescriptor()