    public interface BackupRunOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getBackupKind()

    public abstract SqlBackupKind getBackupKind()

Specifies the kind of backup, PHYSICAL or DEFAULT_SNAPSHOT.

`.google.cloud.sql.v1beta4.SqlBackupKind backup_kind = 19;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1beta4.SqlBackupKind` | The backupKind. |

### getBackupKindValue()

    public abstract int getBackupKindValue()

Specifies the kind of backup, PHYSICAL or DEFAULT_SNAPSHOT.

`.google.cloud.sql.v1beta4.SqlBackupKind backup_kind = 19;`

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

### getDatabaseVersion()

    public abstract SqlDatabaseVersion getDatabaseVersion()

Output only. The instance database version at the time this backup was made.

` .google.cloud.sql.v1beta4.SqlDatabaseVersion database_version = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; `

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1beta4.SqlDatabaseVersion` | The databaseVersion. |

### getDatabaseVersionValue()

    public abstract int getDatabaseVersionValue()

Output only. The instance database version at the time this backup was made.

` .google.cloud.sql.v1beta4.SqlDatabaseVersion database_version = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; `

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

### getDescription()

    public abstract String getDescription()

The description of this run, only applicable to on-demand backups.

`string description = 9;`

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

### getDescriptionBytes()

    public abstract ByteString getDescriptionBytes()

The description of this run, only applicable to on-demand backups.

`string description = 9;`

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

### getDiskEncryptionConfiguration()

    public abstract DiskEncryptionConfiguration getDiskEncryptionConfiguration()

Encryption configuration specific to a backup.

`.google.cloud.sql.v1beta4.DiskEncryptionConfiguration disk_encryption_configuration = 16; `

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1beta4.DiskEncryptionConfiguration` | The diskEncryptionConfiguration. |

### getDiskEncryptionConfigurationOrBuilder()

    public abstract DiskEncryptionConfigurationOrBuilder getDiskEncryptionConfigurationOrBuilder()

Encryption configuration specific to a backup.

`.google.cloud.sql.v1beta4.DiskEncryptionConfiguration disk_encryption_configuration = 16; `

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1beta4.DiskEncryptionConfigurationOrBuilder` |   |

### getDiskEncryptionStatus()

    public abstract DiskEncryptionStatus getDiskEncryptionStatus()

Encryption status specific to a backup.

`.google.cloud.sql.v1beta4.DiskEncryptionStatus disk_encryption_status = 17;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1beta4.DiskEncryptionStatus` | The diskEncryptionStatus. |

### getDiskEncryptionStatusOrBuilder()

    public abstract DiskEncryptionStatusOrBuilder getDiskEncryptionStatusOrBuilder()

Encryption status specific to a backup.

`.google.cloud.sql.v1beta4.DiskEncryptionStatus disk_encryption_status = 17;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1beta4.DiskEncryptionStatusOrBuilder` |   |

### getEndTime()

    public abstract Timestamp getEndTime()

The time the backup operation completed in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.

`.google.protobuf.Timestamp end_time = 6;`

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

### getEndTimeOrBuilder()

    public abstract TimestampOrBuilder getEndTimeOrBuilder()

The time the backup operation completed in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.

`.google.protobuf.Timestamp end_time = 6;`

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

### getEnqueuedTime()

    public abstract Timestamp getEnqueuedTime()

The time the run was enqueued in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.

`.google.protobuf.Timestamp enqueued_time = 3;`

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

### getEnqueuedTimeOrBuilder()

    public abstract TimestampOrBuilder getEnqueuedTimeOrBuilder()

The time the run was enqueued in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.

`.google.protobuf.Timestamp enqueued_time = 3;`

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

### getError()

    public abstract OperationError getError()

Information about why the backup operation failed. This is only present if the run has the FAILED status.

`.google.cloud.sql.v1beta4.OperationError error = 7;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1beta4.OperationError` | The error. |

### getErrorOrBuilder()

    public abstract OperationErrorOrBuilder getErrorOrBuilder()

Information about why the backup operation failed. This is only present if the run has the FAILED status.

`.google.cloud.sql.v1beta4.OperationError error = 7;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1beta4.OperationErrorOrBuilder` |   |

### getId()

    public abstract long getId()

The identifier for this backup run. Unique only for a specific Cloud SQL instance.

`int64 id = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The id. |

### getInstance()

    public abstract String getInstance()

Name of the database instance.

`string instance = 11;`

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

### getInstanceBytes()

    public abstract ByteString getInstanceBytes()

Name of the database instance.

`string instance = 11;`

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

### getKind()

    public abstract String getKind()

This is always `sql#backupRun`.

`string kind = 1;`

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

### getKindBytes()

    public abstract ByteString getKindBytes()

This is always `sql#backupRun`.

`string kind = 1;`

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

### getLocation()

    public abstract String getLocation()

Location of the backups.

`string location = 13;`

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

### getLocationBytes()

    public abstract ByteString getLocationBytes()

Location of the backups.

`string location = 13;`

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

### getMaxChargeableBytes()

    public abstract long getMaxChargeableBytes()

Output only. The maximum chargeable bytes for the backup.

`optional int64 max_chargeable_bytes = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; `

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The maxChargeableBytes. |

### getSelfLink()

    public abstract String getSelfLink()

The URI of this resource.

`string self_link = 12;`

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

### getSelfLinkBytes()

    public abstract ByteString getSelfLinkBytes()

The URI of this resource.

`string self_link = 12;`

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

### getStartTime()

    public abstract Timestamp getStartTime()

The time the backup operation actually started in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.

`.google.protobuf.Timestamp start_time = 5;`

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

### getStartTimeOrBuilder()

    public abstract TimestampOrBuilder getStartTimeOrBuilder()

The time the backup operation actually started in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.

`.google.protobuf.Timestamp start_time = 5;`

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

### getStatus()

    public abstract SqlBackupRunStatus getStatus()

The status of this run.

`.google.cloud.sql.v1beta4.SqlBackupRunStatus status = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1beta4.SqlBackupRunStatus` | The status. |

### getStatusValue()

    public abstract int getStatusValue()

The status of this run.

`.google.cloud.sql.v1beta4.SqlBackupRunStatus status = 2;`

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

### getTimeZone()

    public abstract String getTimeZone()

Backup time zone to prevent restores to an instance with a different time zone. Now relevant only for SQL Server.

`string time_zone = 23;`

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

### getTimeZoneBytes()

    public abstract ByteString getTimeZoneBytes()

Backup time zone to prevent restores to an instance with a different time zone. Now relevant only for SQL Server.

`string time_zone = 23;`

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

### getType()

    public abstract SqlBackupRunType getType()

The type of this run; can be either "AUTOMATED" or "ON_DEMAND" or "FINAL". This field defaults to "ON_DEMAND" and is ignored, when specified for insert requests.

`.google.cloud.sql.v1beta4.SqlBackupRunType type = 8;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1beta4.SqlBackupRunType` | The type. |

### getTypeValue()

    public abstract int getTypeValue()

The type of this run; can be either "AUTOMATED" or "ON_DEMAND" or "FINAL". This field defaults to "ON_DEMAND" and is ignored, when specified for insert requests.

`.google.cloud.sql.v1beta4.SqlBackupRunType type = 8;`

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

### getWindowStartTime()

    public abstract Timestamp getWindowStartTime()

The start time of the backup window during which this the backup was attempted in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.

`.google.protobuf.Timestamp window_start_time = 10;`

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

### getWindowStartTimeOrBuilder()

    public abstract TimestampOrBuilder getWindowStartTimeOrBuilder()

The start time of the backup window during which this the backup was attempted in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.

`.google.protobuf.Timestamp window_start_time = 10;`

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

### hasDiskEncryptionConfiguration()

    public abstract boolean hasDiskEncryptionConfiguration()

Encryption configuration specific to a backup.

`.google.cloud.sql.v1beta4.DiskEncryptionConfiguration disk_encryption_configuration = 16; `

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

### hasDiskEncryptionStatus()

    public abstract boolean hasDiskEncryptionStatus()

Encryption status specific to a backup.

`.google.cloud.sql.v1beta4.DiskEncryptionStatus disk_encryption_status = 17;`

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

### hasEndTime()

    public abstract boolean hasEndTime()

The time the backup operation completed in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.

`.google.protobuf.Timestamp end_time = 6;`

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

### hasEnqueuedTime()

    public abstract boolean hasEnqueuedTime()

The time the run was enqueued in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.

`.google.protobuf.Timestamp enqueued_time = 3;`

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

### hasError()

    public abstract boolean hasError()

Information about why the backup operation failed. This is only present if the run has the FAILED status.

`.google.cloud.sql.v1beta4.OperationError error = 7;`

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

### hasMaxChargeableBytes()

    public abstract boolean hasMaxChargeableBytes()

Output only. The maximum chargeable bytes for the backup.

`optional int64 max_chargeable_bytes = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; `

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

### hasStartTime()

    public abstract boolean hasStartTime()

The time the backup operation actually started in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.

`.google.protobuf.Timestamp start_time = 5;`

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

### hasWindowStartTime()

    public abstract boolean hasWindowStartTime()

The start time of the backup window during which this the backup was attempted in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.

`.google.protobuf.Timestamp window_start_time = 10;`

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