# Interface BackupSourceOrBuilder (0.16.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [0.16.0 (latest)](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.alloydb.v1.BackupSourceOrBuilder)
- [0.15.0](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.cloud.alloydb.v1.BackupSourceOrBuilder)
- [0.14.1](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.cloud.alloydb.v1.BackupSourceOrBuilder)

    public interface BackupSourceOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getBackupName()

    public abstract String getBackupName()

Required. The name of the backup resource with the format:

- projects/{project}/locations/{region}/backups/{backup_id}

`string backup_name = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The backupName. |

### getBackupNameBytes()

    public abstract ByteString getBackupNameBytes()

Required. The name of the backup resource with the format:

- projects/{project}/locations/{region}/backups/{backup_id}

`string backup_name = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for backupName. |

### getBackupUid()

    public abstract String getBackupUid()

Output only. The system-generated UID of the backup which was used to
create this resource. The UID is generated when the backup is created, and
it is retained until the backup is deleted.

`string backup_uid = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The backupUid. |

### getBackupUidBytes()

    public abstract ByteString getBackupUidBytes()

Output only. The system-generated UID of the backup which was used to
create this resource. The UID is generated when the backup is created, and
it is retained until the backup is deleted.

`string backup_uid = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for backupUid. |