Interface RestoreDatabaseRequestOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    RestoreDatabaseRequest, RestoreDatabaseRequest.Builder

    public interface RestoreDatabaseRequestOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Detail

      • getParent

        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) = { ... }
        Returns:
        The parent.
      • getParentBytes

        com.google.protobuf.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) = { ... }
        Returns:
        The bytes for parent.
      • getDatabaseId

        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];
        Returns:
        The databaseId.
      • getDatabaseIdBytes

        com.google.protobuf.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];
        Returns:
        The bytes for databaseId.
      • hasBackup

        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) = { ... }
        Returns:
        Whether the backup field is set.
      • getBackup

        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) = { ... }
        Returns:
        The backup.
      • getBackupBytes

        com.google.protobuf.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) = { ... }
        Returns:
        The bytes for backup.
      • hasEncryptionConfig

        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];
        Returns:
        Whether the encryptionConfig field is set.
      • getEncryptionConfig

        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];
        Returns:
        The encryptionConfig.
      • getEncryptionConfigOrBuilder

        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];