    public interface BackupRetentionSettingsOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getRetainedBackups()

    public abstract Int32Value getRetainedBackups()

Depending on the value of retention_unit, this is used to determine if a backup needs to be deleted. If retention_unit is 'COUNT', we will retain this many backups.

`.google.protobuf.Int32Value retained_backups = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Int32Value.html` | The retainedBackups. |

### getRetainedBackupsOrBuilder()

    public abstract Int32ValueOrBuilder getRetainedBackupsOrBuilder()

Depending on the value of retention_unit, this is used to determine if a backup needs to be deleted. If retention_unit is 'COUNT', we will retain this many backups.

`.google.protobuf.Int32Value retained_backups = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Int32ValueOrBuilder.html` |   |

### getRetentionUnit()

    public abstract BackupRetentionSettings.RetentionUnit getRetentionUnit()

The unit that 'retained_backups' represents.

`.google.cloud.sql.v1.BackupRetentionSettings.RetentionUnit retention_unit = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.BackupRetentionSettings.RetentionUnit` | The retentionUnit. |

### getRetentionUnitValue()

    public abstract int getRetentionUnitValue()

The unit that 'retained_backups' represents.

`.google.cloud.sql.v1.BackupRetentionSettings.RetentionUnit retention_unit = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for retentionUnit. |

### hasRetainedBackups()

    public abstract boolean hasRetainedBackups()

Depending on the value of retention_unit, this is used to determine if a backup needs to be deleted. If retention_unit is 'COUNT', we will retain this many backups.

`.google.protobuf.Int32Value retained_backups = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the retainedBackups field is set. |