public sealed class Template.Types.TemplateMetadata : IMessage<Template.Types.TemplateMetadata>, IEquatable<Template.Types.TemplateMetadata>, IDeepCloneable<Template.Types.TemplateMetadata>, IBufferMessage, IMessageReference documentation and code samples for the Model Armor v1 API class Template.Types.TemplateMetadata.
Message describing TemplateMetadata
Implements
IMessageTemplateTypesTemplateMetadata, IEquatableTemplateTypesTemplateMetadata, IDeepCloneableTemplateTypesTemplateMetadata, IBufferMessage, IMessageNamespace
Google.Cloud.ModelArmor.V1Assembly
Google.Cloud.ModelArmor.V1.dll
Constructors
TemplateMetadata()
public TemplateMetadata()TemplateMetadata(TemplateMetadata)
public TemplateMetadata(Template.Types.TemplateMetadata other)| Parameter | |
|---|---|
| Name | Description |
other |
TemplateTypesTemplateMetadata |
Properties
CustomLlmResponseSafetyErrorCode
public int CustomLlmResponseSafetyErrorCode { get; set; }Optional. Indicates the custom error code set by the user to be returned to the end user if the LLM response trips Model Armor filters.
| Property Value | |
|---|---|
| Type | Description |
int |
|
CustomLlmResponseSafetyErrorMessage
public string CustomLlmResponseSafetyErrorMessage { get; set; }Optional. Indicates the custom error message set by the user to be returned to the end user if the LLM response trips Model Armor filters.
| Property Value | |
|---|---|
| Type | Description |
string |
|
CustomPromptSafetyErrorCode
public int CustomPromptSafetyErrorCode { get; set; }Optional. Indicates the custom error code set by the user to be returned to the end user by the service extension if the prompt trips Model Armor filters.
| Property Value | |
|---|---|
| Type | Description |
int |
|
CustomPromptSafetyErrorMessage
public string CustomPromptSafetyErrorMessage { get; set; }Optional. Indicates the custom error message set by the user to be returned to the end user if the prompt trips Model Armor filters.
| Property Value | |
|---|---|
| Type | Description |
string |
|
DataResidencyCompliant
public bool DataResidencyCompliant { get; set; }Optional. Indicates whether the template is subject to data residency compliance. If true (default for new templates), the template is subject to data residency compliance. If false, the template bypasses data residency compliance checks.
| Property Value | |
|---|---|
| Type | Description |
bool |
|
EnforcementType
public Template.Types.TemplateMetadata.Types.EnforcementType EnforcementType { get; set; }Optional. Enforcement type for Model Armor filters.
| Property Value | |
|---|---|
| Type | Description |
TemplateTypesTemplateMetadataTypesEnforcementType |
|
FilterVersionSelector
public FilterVersionSelector FilterVersionSelector { get; set; }Optional. Specifies the configuration for the Filter version to be used.
If this field is populated, it takes precedence over any values set in
the deprecated filter_version fields within RaiFilterSettings,
PiAndJailbreakFilterSettings.
| Property Value | |
|---|---|
| Type | Description |
FilterVersionSelector |
|
HasDataResidencyCompliant
public bool HasDataResidencyCompliant { get; }Gets whether the "data_residency_compliant" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|
IgnorePartialInvocationFailures
public bool IgnorePartialInvocationFailures { get; set; }Optional. If true, partial detector failures should be ignored.
| Property Value | |
|---|---|
| Type | Description |
bool |
|
LogSanitizeOperations
public bool LogSanitizeOperations { get; set; }Optional. If true, log sanitize operations.
| Property Value | |
|---|---|
| Type | Description |
bool |
|
LogTemplateOperations
public bool LogTemplateOperations { get; set; }Optional. If true, log template crud operations.
| Property Value | |
|---|---|
| Type | Description |
bool |
|
Modalities
public RepeatedField<Modality> Modalities { get; }Optional. Specifies the modalities to scan. If empty, only text modality will be scanned.
| Property Value | |
|---|---|
| Type | Description |
RepeatedFieldModality |
|
MultiLanguageDetection
public Template.Types.TemplateMetadata.Types.MultiLanguageDetection MultiLanguageDetection { get; set; }Optional. Metadata for multi language detection.
| Property Value | |
|---|---|
| Type | Description |
TemplateTypesTemplateMetadataTypesMultiLanguageDetection |
|