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