public static interface Assistant.CustomerPolicy.ModelArmorConfigOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
getFailureMode()
public abstract Assistant.CustomerPolicy.ModelArmorConfig.FailureMode getFailureMode()Optional. Defines the failure mode for Model Armor sanitization.
.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig.FailureMode failure_mode = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Assistant.CustomerPolicy.ModelArmorConfig.FailureMode |
The failureMode. |
getFailureModeValue()
public abstract int getFailureModeValue()Optional. Defines the failure mode for Model Armor sanitization.
.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig.FailureMode failure_mode = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for failureMode. |
getResponseTemplate()
public abstract String getResponseTemplate() Optional. The resource name of the Model Armor template for sanitizing
assistant responses. Format:
projects/{project}/locations/{location}/templates/{template_id}
If not specified, no sanitization will be applied to the assistant response.
string response_template = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The responseTemplate. |
getResponseTemplateBytes()
public abstract ByteString getResponseTemplateBytes() Optional. The resource name of the Model Armor template for sanitizing
assistant responses. Format:
projects/{project}/locations/{location}/templates/{template_id}
If not specified, no sanitization will be applied to the assistant response.
string response_template = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for responseTemplate. |
getUserPromptTemplate()
public abstract String getUserPromptTemplate() Optional. The resource name of the Model Armor template for sanitizing
user prompts. Format:
projects/{project}/locations/{location}/templates/{template_id}
If not specified, no sanitization will be applied to the user prompt.
string user_prompt_template = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The userPromptTemplate. |
getUserPromptTemplateBytes()
public abstract ByteString getUserPromptTemplateBytes() Optional. The resource name of the Model Armor template for sanitizing
user prompts. Format:
projects/{project}/locations/{location}/templates/{template_id}
If not specified, no sanitization will be applied to the user prompt.
string user_prompt_template = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for userPromptTemplate. |