public static final class Database.EncryptionConfig.CustomerManagedEncryptionOptions.Builder extends GeneratedMessageV3.Builder<Database.EncryptionConfig.CustomerManagedEncryptionOptions.Builder> implements Database.EncryptionConfig.CustomerManagedEncryptionOptionsOrBuilder
The configuration options for using CMEK (Customer Managed Encryption
Key) encryption.
Protobuf type
google.firestore.admin.v1.Database.EncryptionConfig.CustomerManagedEncryptionOptions
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Database.EncryptionConfig.CustomerManagedEncryptionOptions.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public Database.EncryptionConfig.CustomerManagedEncryptionOptions build()
buildPartial()
public Database.EncryptionConfig.CustomerManagedEncryptionOptions buildPartial()
clear()
public Database.EncryptionConfig.CustomerManagedEncryptionOptions.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public Database.EncryptionConfig.CustomerManagedEncryptionOptions.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
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];
clearOneof(Descriptors.OneofDescriptor oneof)
public Database.EncryptionConfig.CustomerManagedEncryptionOptions.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public Database.EncryptionConfig.CustomerManagedEncryptionOptions.Builder clone()
Overrides
getDefaultInstanceForType()
public Database.EncryptionConfig.CustomerManagedEncryptionOptions getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(Database.EncryptionConfig.CustomerManagedEncryptionOptions other)
public Database.EncryptionConfig.CustomerManagedEncryptionOptions.Builder mergeFrom(Database.EncryptionConfig.CustomerManagedEncryptionOptions other)
public Database.EncryptionConfig.CustomerManagedEncryptionOptions.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public Database.EncryptionConfig.CustomerManagedEncryptionOptions.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Database.EncryptionConfig.CustomerManagedEncryptionOptions.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public Database.EncryptionConfig.CustomerManagedEncryptionOptions.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
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 |
String
The kmsKeyName to set.
|
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 |
ByteString
The bytes for kmsKeyName to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Database.EncryptionConfig.CustomerManagedEncryptionOptions.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final Database.EncryptionConfig.CustomerManagedEncryptionOptions.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides