Google Cloud Model Armor V1 Client - Class TemplateMetadata (0.1.0)

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

Methods

Constructor.

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

Optional. If true, partial detector failures should be ignored.

Returns
Type
Description
bool

Optional. If true, partial detector failures should be ignored.

Parameter
Name
Description
var
bool
Returns
Type
Description
$this

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.

Returns
Type
Description
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.

Parameter
Name
Description
var
int
Returns
Type
Description
$this

Optional. Indicates the custom error message set by the user to be returned to the end user if the prompt trips Model Armor filters.

Returns
Type
Description
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.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

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.

Returns
Type
Description
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.

Parameter
Name
Description
var
int
Returns
Type
Description
$this

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.

Returns
Type
Description
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.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

Optional. If true, log template crud operations.

Returns
Type
Description
bool

Optional. If true, log template crud operations.

Parameter
Name
Description
var
bool
Returns
Type
Description
$this

Optional. If true, log sanitize operations.

Returns
Type
Description
bool

Optional. If true, log sanitize operations.

Parameter
Name
Description
var
bool
Returns
Type
Description
$this
Design a Mobile Site
View Site in Mobile | Classic
Share by: