Package com.google.genai.types
Class EncryptionSpec
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.EncryptionSpec
Represents a customer-managed encryption key specification that can be applied to a Vertex AI
resource. This data type is not supported in Gemini API.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class com.google.genai.JsonSerializable
MAX_READ_LENGTH_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic EncryptionSpec.Builderbuilder()Instantiates a builder for EncryptionSpec.static EncryptionSpecDeserializes a JSON string to a EncryptionSpec object.Required.abstract EncryptionSpec.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
-
EncryptionSpec
public EncryptionSpec()
-
-
Method Details
-
kmsKeyName
Required. Resource name of the Cloud KMS key used to protect the resource. The Cloud KMS key must be in the same region as the resource. It must have the format `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`. -
builder
Instantiates a builder for EncryptionSpec. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a EncryptionSpec object.
-