Interface Template.TemplateMetadataOrBuilder (0.1.0)

public static interface Template.TemplateMetadataOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

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.

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.