public final class CreateBackupEncryptionConfig extends GeneratedMessageV3 implements CreateBackupEncryptionConfigOrBuilder
Encryption configuration for the backup to create.
Protobuf type google.spanner.admin.database.v1.CreateBackupEncryptionConfig
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > CreateBackupEncryptionConfigImplements
CreateBackupEncryptionConfigOrBuilderStatic 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 CreateBackupEncryptionConfig getDefaultInstance()
Type | Description |
CreateBackupEncryptionConfig |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
newBuilder()
public static CreateBackupEncryptionConfig.Builder newBuilder()
Type | Description |
CreateBackupEncryptionConfig.Builder |
newBuilder(CreateBackupEncryptionConfig prototype)
public static CreateBackupEncryptionConfig.Builder newBuilder(CreateBackupEncryptionConfig prototype)
Name | Description |
prototype | CreateBackupEncryptionConfig |
Type | Description |
CreateBackupEncryptionConfig.Builder |
parseDelimitedFrom(InputStream input)
public static CreateBackupEncryptionConfig parseDelimitedFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
CreateBackupEncryptionConfig |
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static CreateBackupEncryptionConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
CreateBackupEncryptionConfig |
Type | Description |
IOException |
parseFrom(byte[] data)
public static CreateBackupEncryptionConfig parseFrom(byte[] data)
Name | Description |
data | byte[] |
Type | Description |
CreateBackupEncryptionConfig |
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static CreateBackupEncryptionConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | byte[] |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
CreateBackupEncryptionConfig |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static CreateBackupEncryptionConfig parseFrom(ByteString data)
Name | Description |
data | ByteString |
Type | Description |
CreateBackupEncryptionConfig |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static CreateBackupEncryptionConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteString |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
CreateBackupEncryptionConfig |
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static CreateBackupEncryptionConfig parseFrom(CodedInputStream input)
Name | Description |
input | CodedInputStream |
Type | Description |
CreateBackupEncryptionConfig |
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static CreateBackupEncryptionConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
CreateBackupEncryptionConfig |
Type | Description |
IOException |
parseFrom(InputStream input)
public static CreateBackupEncryptionConfig parseFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
CreateBackupEncryptionConfig |
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static CreateBackupEncryptionConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
CreateBackupEncryptionConfig |
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static CreateBackupEncryptionConfig parseFrom(ByteBuffer data)
Name | Description |
data | ByteBuffer |
Type | Description |
CreateBackupEncryptionConfig |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static CreateBackupEncryptionConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteBuffer |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
CreateBackupEncryptionConfig |
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<CreateBackupEncryptionConfig> parser()
Type | Description |
Parser<CreateBackupEncryptionConfig> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Name | Description |
obj | Object |
Type | Description |
boolean |
getDefaultInstanceForType()
public CreateBackupEncryptionConfig getDefaultInstanceForType()
Type | Description |
CreateBackupEncryptionConfig |
getEncryptionType()
public CreateBackupEncryptionConfig.EncryptionType getEncryptionType()
Required. The encryption type of the backup.
.google.spanner.admin.database.v1.CreateBackupEncryptionConfig.EncryptionType encryption_type = 1 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
CreateBackupEncryptionConfig.EncryptionType | The encryptionType. |
getEncryptionTypeValue()
public int getEncryptionTypeValue()
Required. The encryption type of the backup.
.google.spanner.admin.database.v1.CreateBackupEncryptionConfig.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<CreateBackupEncryptionConfig> getParserForType()
Type | Description |
Parser<CreateBackupEncryptionConfig> |
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 CreateBackupEncryptionConfig.Builder newBuilderForType()
Type | Description |
CreateBackupEncryptionConfig.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected CreateBackupEncryptionConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Name | Description |
parent | BuilderParent |
Type | Description |
CreateBackupEncryptionConfig.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Name | Description |
unused | UnusedPrivateParameter |
Type | Description |
Object |
toBuilder()
public CreateBackupEncryptionConfig.Builder toBuilder()
Type | Description |
CreateBackupEncryptionConfig.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Name | Description |
output | CodedOutputStream |
Type | Description |
IOException |