Reference documentation and code samples for the Google Cloud Model Armor V1 Client class Modality.
This enum is used in the TemplateMetadata message to indicate the modality supported for sanitize API calls.
Protobuf type google.cloud.modelarmor.v1.Modality
Namespace
Google \ Cloud \ ModelArmor \ V1Methods
static::name
| Parameter | |
|---|---|
| Name | Description |
value |
mixed
|
static::value
| Parameter | |
|---|---|
| Name | Description |
name |
mixed
|
Constants
MODALITY_UNSPECIFIED
Value: 0Unspecified modality. If specified, all modalities will be sanitized.
Generated from protobuf enum MODALITY_UNSPECIFIED = 0;
MODALITY_TEXT
Value: 1Represents 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).
Generated from protobuf enum MODALITY_TEXT = 1;
MODALITY_IMAGE
Value: 2Represents 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.
Generated from protobuf enum MODALITY_IMAGE = 2;