Google Cloud Model Armor V1 Client - Class Modality (0.7.0)

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 \ V1

Methods

static::name

Parameter
Name Description
value mixed

static::value

Parameter
Name Description
name mixed

Constants

MODALITY_UNSPECIFIED

Value: 0

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

Generated from protobuf enum MODALITY_UNSPECIFIED = 0;

MODALITY_TEXT

Value: 1

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).

Generated from protobuf enum MODALITY_TEXT = 1;

MODALITY_IMAGE

Value: 2

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.

Generated from protobuf enum MODALITY_IMAGE = 2;