Reference documentation and code samples for the Google Cloud Model Armor V1 Client class TemplateMetadata.
Message describing TemplateMetadata
Generated from protobuf message google.cloud.modelarmor.v1.Template.TemplateMetadata
Namespace
Google \ Cloud \ ModelArmor \ V1 \ TemplateMethods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ ignore_partial_invocation_failures
bool
Optional. If true, partial detector failures should be ignored.
↳ custom_prompt_safety_error_code
int
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.
↳ custom_prompt_safety_error_message
string
Optional. Indicates the custom error message set by the user to be returned to the end user if the prompt trips Model Armor filters.
↳ custom_llm_response_safety_error_code
int
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.
↳ custom_llm_response_safety_error_message
string
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.
↳ log_template_operations
bool
Optional. If true, log template crud operations.
↳ log_sanitize_operations
bool
Optional. If true, log sanitize operations.
getIgnorePartialInvocationFailures
Optional. If true, partial detector failures should be ignored.
bool
setIgnorePartialInvocationFailures
Optional. If true, partial detector failures should be ignored.
var
bool
$this
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.
int
setCustomPromptSafetyErrorCode
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.
var
int
$this
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
setCustomPromptSafetyErrorMessage
Optional. Indicates the custom error message set by the user to be returned to the end user if the prompt trips Model Armor filters.
var
string
$this
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.
int
setCustomLlmResponseSafetyErrorCode
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.
var
int
$this
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
setCustomLlmResponseSafetyErrorMessage
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.
var
string
$this
getLogTemplateOperations
Optional. If true, log template crud operations.
bool
setLogTemplateOperations
Optional. If true, log template crud operations.
var
bool
$this
getLogSanitizeOperations
Optional. If true, log sanitize operations.
bool
setLogSanitizeOperations
Optional. If true, log sanitize operations.
var
bool
$this