Class CreateBackupEncryptionConfig

publicfinalclassCreateBackupEncryptionConfigextendsGeneratedMessageV3implementsCreateBackupEncryptionConfigOrBuilder

Encryption configuration for the backup to create.

Protobuf type google.spanner.admin.database.v1.CreateBackupEncryptionConfig

Static Fields

ENCRYPTION_TYPE_FIELD_NUMBER

publicstaticfinalintENCRYPTION_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

KMS_KEY_NAME_FIELD_NUMBER

publicstaticfinalintKMS_KEY_NAME_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

publicstaticCreateBackupEncryptionConfiggetDefaultInstance()
Returns
TypeDescription
CreateBackupEncryptionConfig

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

publicstaticCreateBackupEncryptionConfig.BuildernewBuilder()
Returns
TypeDescription
CreateBackupEncryptionConfig.Builder

newBuilder(CreateBackupEncryptionConfig prototype)

publicstaticCreateBackupEncryptionConfig.BuildernewBuilder(CreateBackupEncryptionConfigprototype)
Parameter
NameDescription
prototypeCreateBackupEncryptionConfig
Returns
TypeDescription
CreateBackupEncryptionConfig.Builder

parseDelimitedFrom(InputStream input)

publicstaticCreateBackupEncryptionConfigparseDelimitedFrom(InputStreaminput)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CreateBackupEncryptionConfig
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticCreateBackupEncryptionConfigparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateBackupEncryptionConfig
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

publicstaticCreateBackupEncryptionConfigparseFrom(byte[]data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
CreateBackupEncryptionConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticCreateBackupEncryptionConfigparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateBackupEncryptionConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticCreateBackupEncryptionConfigparseFrom(ByteStringdata)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
CreateBackupEncryptionConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticCreateBackupEncryptionConfigparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateBackupEncryptionConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticCreateBackupEncryptionConfigparseFrom(CodedInputStreaminput)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
CreateBackupEncryptionConfig
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticCreateBackupEncryptionConfigparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateBackupEncryptionConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

publicstaticCreateBackupEncryptionConfigparseFrom(InputStreaminput)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CreateBackupEncryptionConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticCreateBackupEncryptionConfigparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateBackupEncryptionConfig
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

publicstaticCreateBackupEncryptionConfigparseFrom(ByteBufferdata)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
CreateBackupEncryptionConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticCreateBackupEncryptionConfigparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateBackupEncryptionConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

publicstaticParser<CreateBackupEncryptionConfig>parser()
Returns
TypeDescription
Parser<CreateBackupEncryptionConfig>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

publicCreateBackupEncryptionConfiggetDefaultInstanceForType()
Returns
TypeDescription
CreateBackupEncryptionConfig

getEncryptionType()

publicCreateBackupEncryptionConfig.EncryptionTypegetEncryptionType()

Required. The encryption type of the backup.

.google.spanner.admin.database.v1.CreateBackupEncryptionConfig.EncryptionType encryption_type = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CreateBackupEncryptionConfig.EncryptionType

The encryptionType.

getEncryptionTypeValue()

publicintgetEncryptionTypeValue()

Required. The encryption type of the backup.

.google.spanner.admin.database.v1.CreateBackupEncryptionConfig.EncryptionType encryption_type = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
int

The enum numeric value on the wire for encryptionType.

getKmsKeyName()

publicStringgetKmsKeyName()

Optional. The Cloud KMS key that will be used to protect the backup. This field should be set only when encryption_type is CUSTOMER_MANAGED_ENCRYPTION. Values are of the form projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>.

string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The kmsKeyName.

getKmsKeyNameBytes()

publicByteStringgetKmsKeyNameBytes()

Optional. The Cloud KMS key that will be used to protect the backup. This field should be set only when encryption_type is CUSTOMER_MANAGED_ENCRYPTION. Values are of the form projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>.

string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for kmsKeyName.

getParserForType()

publicParser<CreateBackupEncryptionConfig>getParserForType()
Returns
TypeDescription
Parser<CreateBackupEncryptionConfig>
Overrides

getSerializedSize()

publicintgetSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

publicfinalUnknownFieldSetgetUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

publicinthashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

publicCreateBackupEncryptionConfig.BuildernewBuilderForType()
Returns
TypeDescription
CreateBackupEncryptionConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedCreateBackupEncryptionConfig.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
CreateBackupEncryptionConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

publicCreateBackupEncryptionConfig.BuildertoBuilder()
Returns
TypeDescription
CreateBackupEncryptionConfig.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
NameDescription
outputCodedOutputStream
OverridesExceptions
TypeDescription
IOException