Class Database.EncryptionConfig.CustomerManagedEncryptionOptions (3.26.5)

public static final class Database.EncryptionConfig.CustomerManagedEncryptionOptions extends GeneratedMessageV3 implements Database.EncryptionConfig.CustomerManagedEncryptionOptionsOrBuilder

The configuration options for using CMEK (Customer Managed Encryption Key) encryption.

Protobuf type google.firestore.admin.v1.Database.EncryptionConfig.CustomerManagedEncryptionOptions

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > Database.EncryptionConfig.CustomerManagedEncryptionOptions

Static Fields

KMS_KEY_NAME_FIELD_NUMBER

public static final int KMS_KEY_NAME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Database.EncryptionConfig.CustomerManagedEncryptionOptions getDefaultInstance()
Returns
Type Description
Database.EncryptionConfig.CustomerManagedEncryptionOptions

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static Database.EncryptionConfig.CustomerManagedEncryptionOptions.Builder newBuilder()
Returns
Type Description
Database.EncryptionConfig.CustomerManagedEncryptionOptions.Builder

newBuilder(Database.EncryptionConfig.CustomerManagedEncryptionOptions prototype)

public static Database.EncryptionConfig.CustomerManagedEncryptionOptions.Builder newBuilder(Database.EncryptionConfig.CustomerManagedEncryptionOptions prototype)
Parameter
Name Description
prototype Database.EncryptionConfig.CustomerManagedEncryptionOptions
Returns
Type Description
Database.EncryptionConfig.CustomerManagedEncryptionOptions.Builder

parseDelimitedFrom(InputStream input)

public static Database.EncryptionConfig.CustomerManagedEncryptionOptions parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Database.EncryptionConfig.CustomerManagedEncryptionOptions
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Database.EncryptionConfig.CustomerManagedEncryptionOptions parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Database.EncryptionConfig.CustomerManagedEncryptionOptions
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Database.EncryptionConfig.CustomerManagedEncryptionOptions parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Database.EncryptionConfig.CustomerManagedEncryptionOptions
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Database.EncryptionConfig.CustomerManagedEncryptionOptions parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Database.EncryptionConfig.CustomerManagedEncryptionOptions
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Database.EncryptionConfig.CustomerManagedEncryptionOptions parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Database.EncryptionConfig.CustomerManagedEncryptionOptions
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Database.EncryptionConfig.CustomerManagedEncryptionOptions parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Database.EncryptionConfig.CustomerManagedEncryptionOptions
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Database.EncryptionConfig.CustomerManagedEncryptionOptions parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Database.EncryptionConfig.CustomerManagedEncryptionOptions
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Database.EncryptionConfig.CustomerManagedEncryptionOptions parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Database.EncryptionConfig.CustomerManagedEncryptionOptions
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Database.EncryptionConfig.CustomerManagedEncryptionOptions parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Database.EncryptionConfig.CustomerManagedEncryptionOptions
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Database.EncryptionConfig.CustomerManagedEncryptionOptions parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Database.EncryptionConfig.CustomerManagedEncryptionOptions
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Database.EncryptionConfig.CustomerManagedEncryptionOptions parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Database.EncryptionConfig.CustomerManagedEncryptionOptions
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Database.EncryptionConfig.CustomerManagedEncryptionOptions parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Database.EncryptionConfig.CustomerManagedEncryptionOptions
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Database.EncryptionConfig.CustomerManagedEncryptionOptions> parser()
Returns
Type Description
Parser<CustomerManagedEncryptionOptions>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public Database.EncryptionConfig.CustomerManagedEncryptionOptions getDefaultInstanceForType()
Returns
Type Description
Database.EncryptionConfig.CustomerManagedEncryptionOptions

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.

getParserForType()

public Parser<Database.EncryptionConfig.CustomerManagedEncryptionOptions> getParserForType()
Returns
Type Description
Parser<CustomerManagedEncryptionOptions>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Database.EncryptionConfig.CustomerManagedEncryptionOptions.Builder newBuilderForType()
Returns
Type Description
Database.EncryptionConfig.CustomerManagedEncryptionOptions.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Database.EncryptionConfig.CustomerManagedEncryptionOptions.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Database.EncryptionConfig.CustomerManagedEncryptionOptions.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public Database.EncryptionConfig.CustomerManagedEncryptionOptions.Builder toBuilder()
Returns
Type Description
Database.EncryptionConfig.CustomerManagedEncryptionOptions.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException