Model Armor v1 API - Enum Modality (1.0.0-beta07)

public enum Modality

Reference documentation and code samples for the Model Armor v1 API enum Modality.

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

Namespace

Google.Cloud.ModelArmor.V1

Assembly

Google.Cloud.ModelArmor.V1.dll

Fields

Name Description
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.

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

Unspecified

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