Package com.google.genai.types
Class ModelArmorConfig
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.ModelArmorConfig
Configuration for Model Armor integrations of prompt and responses. This data type is not
supported in Gemini API.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for ModelArmorConfig. -
Field Summary
Fields inherited from class com.google.genai.JsonSerializable
MAX_READ_LENGTH_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ModelArmorConfig.Builderbuilder()Instantiates a builder for ModelArmorConfig.static ModelArmorConfigDeserializes a JSON string to a ModelArmorConfig object.Optional.Optional.abstract ModelArmorConfig.BuilderCreates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString
-
Constructor Details
-
ModelArmorConfig
public ModelArmorConfig()
-
-
Method Details
-
promptTemplateName
Optional. The name of the Model Armor template to use for prompt sanitization. -
responseTemplateName
Optional. The name of the Model Armor template to use for response sanitization. -
builder
Instantiates a builder for ModelArmorConfig. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a ModelArmorConfig object.
-