public final class CopyBackupEncryptionConfig extends GeneratedMessageV3 implements CopyBackupEncryptionConfigOrBuilder
Encryption configuration for the copied backup.
Protobuf type google.spanner.admin.database.v1.CopyBackupEncryptionConfig
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > CopyBackupEncryptionConfigImplements
CopyBackupEncryptionConfigOrBuilderStatic Fields
ENCRYPTION_TYPE_FIELD_NUMBER
public static final int ENCRYPTION_TYPE_FIELD_NUMBER
Type | Description |
int |
KMS_KEY_NAME_FIELD_NUMBER
public static final int KMS_KEY_NAME_FIELD_NUMBER
Type | Description |
int |
Static Methods
getDefaultInstance()
public static CopyBackupEncryptionConfig getDefaultInstance()
Type | Description |
CopyBackupEncryptionConfig |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
newBuilder()
public static CopyBackupEncryptionConfig.Builder newBuilder()
Type | Description |
CopyBackupEncryptionConfig.Builder |
newBuilder(CopyBackupEncryptionConfig prototype)
public static CopyBackupEncryptionConfig.Builder newBuilder(CopyBackupEncryptionConfig prototype)
Name | Description |
prototype | CopyBackupEncryptionConfig |
Type | Description |
CopyBackupEncryptionConfig.Builder |
parseDelimitedFrom(InputStream input)
public static CopyBackupEncryptionConfig parseDelimitedFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
CopyBackupEncryptionConfig |
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static CopyBackupEncryptionConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
CopyBackupEncryptionConfig |
Type | Description |
IOException |
parseFrom(byte[] data)
public static CopyBackupEncryptionConfig parseFrom(byte[] data)
Name | Description |
data | byte[] |
Type | Description |
CopyBackupEncryptionConfig |
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static CopyBackupEncryptionConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | byte[] |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
CopyBackupEncryptionConfig |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static CopyBackupEncryptionConfig parseFrom(ByteString data)
Name | Description |
data | ByteString |
Type | Description |
CopyBackupEncryptionConfig |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static CopyBackupEncryptionConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteString |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
CopyBackupEncryptionConfig |
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static CopyBackupEncryptionConfig parseFrom(CodedInputStream input)
Name | Description |
input | CodedInputStream |
Type | Description |
CopyBackupEncryptionConfig |
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static CopyBackupEncryptionConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
CopyBackupEncryptionConfig |
Type | Description |
IOException |
parseFrom(InputStream input)
public static CopyBackupEncryptionConfig parseFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
CopyBackupEncryptionConfig |
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static CopyBackupEncryptionConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
CopyBackupEncryptionConfig |
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static CopyBackupEncryptionConfig parseFrom(ByteBuffer data)
Name | Description |
data | ByteBuffer |
Type | Description |
CopyBackupEncryptionConfig |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static CopyBackupEncryptionConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteBuffer |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
CopyBackupEncryptionConfig |
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<CopyBackupEncryptionConfig> parser()
Type | Description |
Parser<CopyBackupEncryptionConfig> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Name | Description |
obj | Object |
Type | Description |
boolean |
getDefaultInstanceForType()
public CopyBackupEncryptionConfig getDefaultInstanceForType()
Type | Description |
CopyBackupEncryptionConfig |
getEncryptionType()
public CopyBackupEncryptionConfig.EncryptionType getEncryptionType()
Required. The encryption type of the backup.
.google.spanner.admin.database.v1.CopyBackupEncryptionConfig.EncryptionType encryption_type = 1 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
CopyBackupEncryptionConfig.EncryptionType | The encryptionType. |
getEncryptionTypeValue()
public int getEncryptionTypeValue()
Required. The encryption type of the backup.
.google.spanner.admin.database.v1.CopyBackupEncryptionConfig.EncryptionType encryption_type = 1 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
int | The enum numeric value on the wire for encryptionType. |
getKmsKeyName()
public String getKmsKeyName()
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) = { ... }
Type | Description |
String | The kmsKeyName. |
getKmsKeyNameBytes()
public ByteString getKmsKeyNameBytes()
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) = { ... }
Type | Description |
ByteString | The bytes for kmsKeyName. |
getParserForType()
public Parser<CopyBackupEncryptionConfig> getParserForType()
Type | Description |
Parser<CopyBackupEncryptionConfig> |
getSerializedSize()
public int getSerializedSize()
Type | Description |
int |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Type | Description |
UnknownFieldSet |
hashCode()
public int hashCode()
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
newBuilderForType()
public CopyBackupEncryptionConfig.Builder newBuilderForType()
Type | Description |
CopyBackupEncryptionConfig.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected CopyBackupEncryptionConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Name | Description |
parent | BuilderParent |
Type | Description |
CopyBackupEncryptionConfig.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Name | Description |
unused | UnusedPrivateParameter |
Type | Description |
Object |
toBuilder()
public CopyBackupEncryptionConfig.Builder toBuilder()
Type | Description |
CopyBackupEncryptionConfig.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Name | Description |
output | CodedOutputStream |
Type | Description |
IOException |