public static final class Database.EncryptionConfig.CustomerManagedEncryptionOptions.Builder extends GeneratedMessage.Builder<Database.EncryptionConfig.CustomerManagedEncryptionOptions.Builder> implements Database.EncryptionConfig.CustomerManagedEncryptionOptionsOrBuilderThe configuration options for using CMEK (Customer Managed Encryption Key) encryption.
Protobuf type
google.firestore.admin.v1.Database.EncryptionConfig.CustomerManagedEncryptionOptions
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Database.EncryptionConfig.CustomerManagedEncryptionOptions.BuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public Database.EncryptionConfig.CustomerManagedEncryptionOptions build()| Returns | |
|---|---|
| Type | Description |
Database.EncryptionConfig.CustomerManagedEncryptionOptions |
|
buildPartial()
public Database.EncryptionConfig.CustomerManagedEncryptionOptions buildPartial()| Returns | |
|---|---|
| Type | Description |
Database.EncryptionConfig.CustomerManagedEncryptionOptions |
|
clear()
public Database.EncryptionConfig.CustomerManagedEncryptionOptions.Builder clear()| Returns | |
|---|---|
| Type | Description |
Database.EncryptionConfig.CustomerManagedEncryptionOptions.Builder |
|
clearKmsKeyName()
public Database.EncryptionConfig.CustomerManagedEncryptionOptions.Builder clearKmsKeyName()Required. Only keys in the same location as the database are allowed to be used for encryption.
For Firestore's nam5 multi-region, this corresponds to Cloud KMS multi-region us. For Firestore's eur3 multi-region, this corresponds to Cloud KMS multi-region europe. See https://cloud.google.com/kms/docs/locations.
The expected format is
projects/{project_id}/locations/{kms_location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}.
string kms_key_name = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Database.EncryptionConfig.CustomerManagedEncryptionOptions.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public Database.EncryptionConfig.CustomerManagedEncryptionOptions getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Database.EncryptionConfig.CustomerManagedEncryptionOptions |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getKmsKeyName()
public String getKmsKeyName()Required. Only keys in the same location as the database are allowed to be used for encryption.
For Firestore's nam5 multi-region, this corresponds to Cloud KMS multi-region us. For Firestore's eur3 multi-region, this corresponds to Cloud KMS multi-region europe. See https://cloud.google.com/kms/docs/locations.
The expected format is
projects/{project_id}/locations/{kms_location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}.
string kms_key_name = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The kmsKeyName. |
getKmsKeyNameBytes()
public ByteString getKmsKeyNameBytes()Required. Only keys in the same location as the database are allowed to be used for encryption.
For Firestore's nam5 multi-region, this corresponds to Cloud KMS multi-region us. For Firestore's eur3 multi-region, this corresponds to Cloud KMS multi-region europe. See https://cloud.google.com/kms/docs/locations.
The expected format is
projects/{project_id}/locations/{kms_location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}.
string kms_key_name = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for kmsKeyName. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(Database.EncryptionConfig.CustomerManagedEncryptionOptions other)
public Database.EncryptionConfig.CustomerManagedEncryptionOptions.Builder mergeFrom(Database.EncryptionConfig.CustomerManagedEncryptionOptions other)| Parameter | |
|---|---|
| Name | Description |
other |
Database.EncryptionConfig.CustomerManagedEncryptionOptions |
| Returns | |
|---|---|
| Type | Description |
Database.EncryptionConfig.CustomerManagedEncryptionOptions.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Database.EncryptionConfig.CustomerManagedEncryptionOptions.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Database.EncryptionConfig.CustomerManagedEncryptionOptions.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Database.EncryptionConfig.CustomerManagedEncryptionOptions.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Database.EncryptionConfig.CustomerManagedEncryptionOptions.Builder |
|
setKmsKeyName(String value)
public Database.EncryptionConfig.CustomerManagedEncryptionOptions.Builder setKmsKeyName(String value)Required. Only keys in the same location as the database are allowed to be used for encryption.
For Firestore's nam5 multi-region, this corresponds to Cloud KMS multi-region us. For Firestore's eur3 multi-region, this corresponds to Cloud KMS multi-region europe. See https://cloud.google.com/kms/docs/locations.
The expected format is
projects/{project_id}/locations/{kms_location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}.
string kms_key_name = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe kmsKeyName to set. |
| Returns | |
|---|---|
| Type | Description |
Database.EncryptionConfig.CustomerManagedEncryptionOptions.Builder |
This builder for chaining. |
setKmsKeyNameBytes(ByteString value)
public Database.EncryptionConfig.CustomerManagedEncryptionOptions.Builder setKmsKeyNameBytes(ByteString value)Required. Only keys in the same location as the database are allowed to be used for encryption.
For Firestore's nam5 multi-region, this corresponds to Cloud KMS multi-region us. For Firestore's eur3 multi-region, this corresponds to Cloud KMS multi-region europe. See https://cloud.google.com/kms/docs/locations.
The expected format is
projects/{project_id}/locations/{kms_location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}.
string kms_key_name = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for kmsKeyName to set. |
| Returns | |
|---|---|
| Type | Description |
Database.EncryptionConfig.CustomerManagedEncryptionOptions.Builder |
This builder for chaining. |