public enum Modality extends Enum<Modality> implements ProtocolMessageEnumThis enum is used in the TemplateMetadata message to indicate the modality supported for sanitize API calls.
Protobuf enum google.cloud.modelarmor.v1.Modality
Implements
ProtocolMessageEnumStatic 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_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_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_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_UNSPECIFIED |
Unspecified modality. If specified, all modalities will be sanitized. |
MODALITY_UNSPECIFIED_VALUE |
Unspecified modality. If specified, all modalities will be sanitized. |
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() |
|