public interface RestoreDatabaseRequestOrBuilder extends MessageOrBuilder
Modifier and Type | Method and Description |
---|---|
String |
getBackup()
Name of the backup from which to restore.
|
ByteString |
getBackupBytes()
Name of the backup from which to restore.
|
String |
getDatabaseId()
Required.
|
ByteString |
getDatabaseIdBytes()
Required.
|
RestoreDatabaseEncryptionConfig |
getEncryptionConfig()
Optional.
|
RestoreDatabaseEncryptionConfigOrBuilder |
getEncryptionConfigOrBuilder()
Optional.
|
String |
getParent()
Required.
|
ByteString |
getParentBytes()
Required.
|
RestoreDatabaseRequest.SourceCase |
getSourceCase() |
boolean |
hasBackup()
Name of the backup from which to restore.
|
boolean |
hasEncryptionConfig()
Optional.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
isInitialized
String getParent()
Required. The name of the instance in which to create the restored database. This instance must be in the same project and have the same instance configuration as the instance containing the source backup. Values are of the form `projects/<project>/instances/<instance>`.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
ByteString getParentBytes()
Required. The name of the instance in which to create the restored database. This instance must be in the same project and have the same instance configuration as the instance containing the source backup. Values are of the form `projects/<project>/instances/<instance>`.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
String getDatabaseId()
Required. The id of the database to create and restore to. This database must not already exist. The `database_id` appended to `parent` forms the full database name of the form `projects/<project>/instances/<instance>/databases/<database_id>`.
string database_id = 2 [(.google.api.field_behavior) = REQUIRED];
ByteString getDatabaseIdBytes()
Required. The id of the database to create and restore to. This database must not already exist. The `database_id` appended to `parent` forms the full database name of the form `projects/<project>/instances/<instance>/databases/<database_id>`.
string database_id = 2 [(.google.api.field_behavior) = REQUIRED];
boolean hasBackup()
Name of the backup from which to restore. Values are of the form `projects/<project>/instances/<instance>/backups/<backup>`.
string backup = 3 [(.google.api.resource_reference) = { ... }
String getBackup()
Name of the backup from which to restore. Values are of the form `projects/<project>/instances/<instance>/backups/<backup>`.
string backup = 3 [(.google.api.resource_reference) = { ... }
ByteString getBackupBytes()
Name of the backup from which to restore. Values are of the form `projects/<project>/instances/<instance>/backups/<backup>`.
string backup = 3 [(.google.api.resource_reference) = { ... }
boolean hasEncryptionConfig()
Optional. An encryption configuration describing the encryption type and key resources in Cloud KMS used to encrypt/decrypt the database to restore to. If this field is not specified, the restored database will use the same encryption configuration as the backup by default, namely [encryption_type][google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.encryption_type] = `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`.
.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL];
RestoreDatabaseEncryptionConfig getEncryptionConfig()
Optional. An encryption configuration describing the encryption type and key resources in Cloud KMS used to encrypt/decrypt the database to restore to. If this field is not specified, the restored database will use the same encryption configuration as the backup by default, namely [encryption_type][google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.encryption_type] = `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`.
.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL];
RestoreDatabaseEncryptionConfigOrBuilder getEncryptionConfigOrBuilder()
Optional. An encryption configuration describing the encryption type and key resources in Cloud KMS used to encrypt/decrypt the database to restore to. If this field is not specified, the restored database will use the same encryption configuration as the backup by default, namely [encryption_type][google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.encryption_type] = `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`.
.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL];
RestoreDatabaseRequest.SourceCase getSourceCase()
Copyright © 2022 Google LLC. All rights reserved.