public static interface Template.TemplateMetadataOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
getCustomLlmResponseSafetyErrorCode()
public abstract int getCustomLlmResponseSafetyErrorCode()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.
int32 custom_llm_response_safety_error_code = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The customLlmResponseSafetyErrorCode. |
getCustomLlmResponseSafetyErrorMessage()
public abstract String getCustomLlmResponseSafetyErrorMessage()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.
string custom_llm_response_safety_error_message = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The customLlmResponseSafetyErrorMessage. |
getCustomLlmResponseSafetyErrorMessageBytes()
public abstract ByteString getCustomLlmResponseSafetyErrorMessageBytes()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.
string custom_llm_response_safety_error_message = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for customLlmResponseSafetyErrorMessage. |
getCustomPromptSafetyErrorCode()
public abstract int getCustomPromptSafetyErrorCode()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.
int32 custom_prompt_safety_error_code = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The customPromptSafetyErrorCode. |
getCustomPromptSafetyErrorMessage()
public abstract String getCustomPromptSafetyErrorMessage()Optional. Indicates the custom error message set by the user to be returned to the end user if the prompt trips Model Armor filters.
string custom_prompt_safety_error_message = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The customPromptSafetyErrorMessage. |
getCustomPromptSafetyErrorMessageBytes()
public abstract ByteString getCustomPromptSafetyErrorMessageBytes()Optional. Indicates the custom error message set by the user to be returned to the end user if the prompt trips Model Armor filters.
string custom_prompt_safety_error_message = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for customPromptSafetyErrorMessage. |
getDataResidencyCompliant()
public abstract boolean getDataResidencyCompliant()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.
optional bool data_residency_compliant = 12 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
The dataResidencyCompliant. |
getEnforcementType()
public abstract Template.TemplateMetadata.EnforcementType getEnforcementType()Optional. Enforcement type for Model Armor filters.
.google.cloud.modelarmor.v1.Template.TemplateMetadata.EnforcementType enforcement_type = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Template.TemplateMetadata.EnforcementType |
The enforcementType. |
getEnforcementTypeValue()
public abstract int getEnforcementTypeValue()Optional. Enforcement type for Model Armor filters.
.google.cloud.modelarmor.v1.Template.TemplateMetadata.EnforcementType enforcement_type = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for enforcementType. |
getFilterVersionSelector()
public abstract FilterVersionSelector getFilterVersionSelector() 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.
optional .google.cloud.modelarmor.v1.FilterVersionSelector filter_version_selector = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
FilterVersionSelector |
The filterVersionSelector. |
getFilterVersionSelectorOrBuilder()
public abstract FilterVersionSelectorOrBuilder getFilterVersionSelectorOrBuilder() 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.
optional .google.cloud.modelarmor.v1.FilterVersionSelector filter_version_selector = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
FilterVersionSelectorOrBuilder |
|
getIgnorePartialInvocationFailures()
public abstract boolean getIgnorePartialInvocationFailures()Optional. If true, partial detector failures should be ignored.
bool ignore_partial_invocation_failures = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
The ignorePartialInvocationFailures. |
getLogSanitizeOperations()
public abstract boolean getLogSanitizeOperations()Optional. If true, log sanitize operations.
bool log_sanitize_operations = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
The logSanitizeOperations. |
getLogTemplateOperations()
public abstract boolean getLogTemplateOperations()Optional. If true, log template crud operations.
bool log_template_operations = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
The logTemplateOperations. |
getModalities(int index)
public abstract Modality getModalities(int index)Optional. Specifies the modalities to scan. If not specified or empty, only text modality will be scanned.
repeated .google.cloud.modelarmor.v1.Modality modalities = 11 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
Modality |
The modalities at the given index. |
getModalitiesCount()
public abstract int getModalitiesCount()Optional. Specifies the modalities to scan. If not specified or empty, only text modality will be scanned.
repeated .google.cloud.modelarmor.v1.Modality modalities = 11 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The count of modalities. |
getModalitiesList()
public abstract List<Modality> getModalitiesList()Optional. Specifies the modalities to scan. If not specified or empty, only text modality will be scanned.
repeated .google.cloud.modelarmor.v1.Modality modalities = 11 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<Modality> |
A list containing the modalities. |
getModalitiesValue(int index)
public abstract int getModalitiesValue(int index)Optional. Specifies the modalities to scan. If not specified or empty, only text modality will be scanned.
repeated .google.cloud.modelarmor.v1.Modality modalities = 11 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire of modalities at the given index. |
getModalitiesValueList()
public abstract List<Integer> getModalitiesValueList()Optional. Specifies the modalities to scan. If not specified or empty, only text modality will be scanned.
repeated .google.cloud.modelarmor.v1.Modality modalities = 11 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<Integer> |
A list containing the enum numeric values on the wire for modalities. |
getMultiLanguageDetection()
public abstract Template.TemplateMetadata.MultiLanguageDetection getMultiLanguageDetection()Optional. Metadata for multi language detection.
.google.cloud.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetection multi_language_detection = 9 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Template.TemplateMetadata.MultiLanguageDetection |
The multiLanguageDetection. |
getMultiLanguageDetectionOrBuilder()
public abstract Template.TemplateMetadata.MultiLanguageDetectionOrBuilder getMultiLanguageDetectionOrBuilder()Optional. Metadata for multi language detection.
.google.cloud.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetection multi_language_detection = 9 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Template.TemplateMetadata.MultiLanguageDetectionOrBuilder |
|
hasDataResidencyCompliant()
public abstract boolean hasDataResidencyCompliant()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.
optional bool data_residency_compliant = 12 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the dataResidencyCompliant field is set. |
hasFilterVersionSelector()
public abstract boolean hasFilterVersionSelector() 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.
optional .google.cloud.modelarmor.v1.FilterVersionSelector filter_version_selector = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the filterVersionSelector field is set. |
hasMultiLanguageDetection()
public abstract boolean hasMultiLanguageDetection()Optional. Metadata for multi language detection.
.google.cloud.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetection multi_language_detection = 9 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the multiLanguageDetection field is set. |