Class ModelArmorConfig.Builder
- Enclosing class:
- ModelArmorConfig
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract ModelArmorConfigbuild()Clears the value of promptTemplateName field.Clears the value of responseTemplateName field.abstract ModelArmorConfig.BuilderpromptTemplateName(String promptTemplateName) Setter for promptTemplateName.abstract ModelArmorConfig.BuilderresponseTemplateName(String responseTemplateName) Setter for responseTemplateName.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
promptTemplateName
Setter for promptTemplateName.promptTemplateName: Optional. The resource name of the Model Armor template to use for prompt screening. A Model Armor template is a set of customized filters and thresholds that define how Model Armor screens content. If specified, Model Armor will use this template to check the user's prompt for safety and security risks before it is sent to the model. The name must be in the format `projects/{project}/locations/{location}/templates/{template}`.
-
clearPromptTemplateName
Clears the value of promptTemplateName field. -
responseTemplateName
Setter for responseTemplateName.responseTemplateName: Optional. The resource name of the Model Armor template to use for response screening. A Model Armor template is a set of customized filters and thresholds that define how Model Armor screens content. If specified, Model Armor will use this template to check the model's response for safety and security risks before it is returned to the user. The name must be in the format `projects/{project}/locations/{location}/templates/{template}`.
-
clearResponseTemplateName
Clears the value of responseTemplateName field. -
build
-