Enum Modality (0.44.0)

public enum Modality extends Enum<Modality> implements ProtocolMessageEnum

This enum is used in the TemplateMetadata and FloorSettingMetadata messages to indicate the modality supported for sanitize API calls.

Protobuf enum google.cloud.modelarmor.v1.Modality

Implements

ProtocolMessageEnum

Static Fields

Name Description
MODALITY_IMAGE

Represents image modality. If specified, it will sanitize image files. The visual content and the text content in the image will be sanitized depending on the filter configuration.

MODALITY_IMAGE = 2;

MODALITY_IMAGE_VALUE

Represents image modality. If specified, it will sanitize image files. The visual content and the text content in the image will be sanitized depending on the filter configuration.

MODALITY_IMAGE = 2;

MODALITY_TEXT

Represents text modality. If specified, it will sanitize text fields, and text extracted from rich text files (like PDFs, DOCs) and plain text files (like TXT).

MODALITY_TEXT = 1;

MODALITY_TEXT_VALUE

Represents text modality. If specified, it will sanitize text fields, and text extracted from rich text files (like PDFs, DOCs) and plain text files (like TXT).

MODALITY_TEXT = 1;

MODALITY_UNSPECIFIED

Unspecified modality. If specified, all modalities will be sanitized.

MODALITY_UNSPECIFIED = 0;

MODALITY_UNSPECIFIED_VALUE

Unspecified modality. If specified, all modalities will be sanitized.

MODALITY_UNSPECIFIED = 0;

UNRECOGNIZED

Static Methods

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

Deprecated. Use #forNumber(int) instead.

valueOf(String name)
values()

Methods

Name Description
getDescriptorForType()
getNumber()
getValueDescriptor()