Interface CreateBackupRequestOrBuilder

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

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

      • getParent

        String getParent()
         Required. The name of the instance in which the backup will be
         created. This must be the same instance that contains the database the
         backup will be created from. The backup will be stored in the
         location(s) specified in the instance configuration of this
         instance. 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 the backup will be
         created. This must be the same instance that contains the database the
         backup will be created from. The backup will be stored in the
         location(s) specified in the instance configuration of this
         instance. 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.
      • getBackupId

        String getBackupId()
         Required. The id of the backup to be created. The `backup_id` appended to
         `parent` forms the full backup name of the form
         `projects/<project>/instances/<instance>/backups/<backup_id>`.
         
        string backup_id = 2 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        The backupId.
      • getBackupIdBytes

        com.google.protobuf.ByteString getBackupIdBytes()
         Required. The id of the backup to be created. The `backup_id` appended to
         `parent` forms the full backup name of the form
         `projects/<project>/instances/<instance>/backups/<backup_id>`.
         
        string backup_id = 2 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        The bytes for backupId.
      • hasBackup

        boolean hasBackup()
         Required. The backup to create.
         
        .google.spanner.admin.database.v1.Backup backup = 3 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        Whether the backup field is set.
      • getBackup

        Backup getBackup()
         Required. The backup to create.
         
        .google.spanner.admin.database.v1.Backup backup = 3 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        The backup.
      • getBackupOrBuilder

        BackupOrBuilder getBackupOrBuilder()
         Required. The backup to create.
         
        .google.spanner.admin.database.v1.Backup backup = 3 [(.google.api.field_behavior) = REQUIRED];
      • hasEncryptionConfig

        boolean hasEncryptionConfig()
         Optional. The encryption configuration used to encrypt the backup. If this field is
         not specified, the backup will use the same
         encryption configuration as the database by default, namely
         [encryption_type][google.spanner.admin.database.v1.CreateBackupEncryptionConfig.encryption_type] =
         `USE_DATABASE_ENCRYPTION`.
         
        .google.spanner.admin.database.v1.CreateBackupEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        Whether the encryptionConfig field is set.
      • getEncryptionConfig

        CreateBackupEncryptionConfig getEncryptionConfig()
         Optional. The encryption configuration used to encrypt the backup. If this field is
         not specified, the backup will use the same
         encryption configuration as the database by default, namely
         [encryption_type][google.spanner.admin.database.v1.CreateBackupEncryptionConfig.encryption_type] =
         `USE_DATABASE_ENCRYPTION`.
         
        .google.spanner.admin.database.v1.CreateBackupEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        The encryptionConfig.
      • getEncryptionConfigOrBuilder

        CreateBackupEncryptionConfigOrBuilder getEncryptionConfigOrBuilder()
         Optional. The encryption configuration used to encrypt the backup. If this field is
         not specified, the backup will use the same
         encryption configuration as the database by default, namely
         [encryption_type][google.spanner.admin.database.v1.CreateBackupEncryptionConfig.encryption_type] =
         `USE_DATABASE_ENCRYPTION`.
         
        .google.spanner.admin.database.v1.CreateBackupEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL];