# Interface BackupOrBuilder (0.50.0)

0.50.0 (latest) 0.47.0 0.46.0 0.44.0 0.42.0 0.41.0 0.40.0 0.39.0 0.37.0 0.35.0 0.34.0 0.33.0 0.32.0 0.31.0 0.29.0 0.27.0 0.26.0 0.23.0 0.22.0 0.21.0 0.19.0 0.18.0 0.17.0 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.11.0 0.10.0 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.0

    public interface BackupOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### containsLabels(String key)

    public abstract boolean containsLabels(String key)

Optional. Resource labels to represent user provided metadata.
No labels currently defined.

`map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

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

### getAlloyDbBackupProperties()

    public abstract AlloyDbClusterBackupProperties getAlloyDbBackupProperties()

Output only. AlloyDB specific backup properties.

`
.google.cloud.backupdr.v1.AlloyDbClusterBackupProperties alloy_db_backup_properties = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-backupdr/latest/com.google.cloud.backupdr.v1.AlloyDbClusterBackupProperties` | The alloyDbBackupProperties. |

### getAlloyDbBackupPropertiesOrBuilder()

    public abstract AlloyDbClusterBackupPropertiesOrBuilder getAlloyDbBackupPropertiesOrBuilder()

Output only. AlloyDB specific backup properties.

`
.google.cloud.backupdr.v1.AlloyDbClusterBackupProperties alloy_db_backup_properties = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-backupdr/latest/com.google.cloud.backupdr.v1.AlloyDbClusterBackupPropertiesOrBuilder` |   |

### getBackupApplianceBackupProperties()

    public abstract BackupApplianceBackupProperties getBackupApplianceBackupProperties()

Output only. Backup Appliance specific backup properties.

`
.google.cloud.backupdr.v1.BackupApplianceBackupProperties backup_appliance_backup_properties = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-backupdr/latest/com.google.cloud.backupdr.v1.BackupApplianceBackupProperties` | The backupApplianceBackupProperties. |

### getBackupApplianceBackupPropertiesOrBuilder()

    public abstract BackupApplianceBackupPropertiesOrBuilder getBackupApplianceBackupPropertiesOrBuilder()

Output only. Backup Appliance specific backup properties.

`
.google.cloud.backupdr.v1.BackupApplianceBackupProperties backup_appliance_backup_properties = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-backupdr/latest/com.google.cloud.backupdr.v1.BackupApplianceBackupPropertiesOrBuilder` |   |

### getBackupApplianceLocks(int index)

    public abstract BackupLock getBackupApplianceLocks(int index)

Optional. The list of BackupLocks taken by the accessor Backup Appliance.

`
repeated .google.cloud.backupdr.v1.BackupLock backup_appliance_locks = 18 [(.google.api.field_behavior) = OPTIONAL];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-backupdr/latest/com.google.cloud.backupdr.v1.BackupLock` |   |

### getBackupApplianceLocksCount()

    public abstract int getBackupApplianceLocksCount()

Optional. The list of BackupLocks taken by the accessor Backup Appliance.

`
repeated .google.cloud.backupdr.v1.BackupLock backup_appliance_locks = 18 [(.google.api.field_behavior) = OPTIONAL];
`

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

### getBackupApplianceLocksList()

    public abstract List<BackupLock> getBackupApplianceLocksList()

Optional. The list of BackupLocks taken by the accessor Backup Appliance.

`
repeated .google.cloud.backupdr.v1.BackupLock backup_appliance_locks = 18 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-backupdr/latest/com.google.cloud.backupdr.v1.BackupLock>` |   |

### getBackupApplianceLocksOrBuilder(int index)

    public abstract BackupLockOrBuilder getBackupApplianceLocksOrBuilder(int index)

Optional. The list of BackupLocks taken by the accessor Backup Appliance.

`
repeated .google.cloud.backupdr.v1.BackupLock backup_appliance_locks = 18 [(.google.api.field_behavior) = OPTIONAL];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-backupdr/latest/com.google.cloud.backupdr.v1.BackupLockOrBuilder` |   |

### getBackupApplianceLocksOrBuilderList()

    public abstract List<? extends BackupLockOrBuilder> getBackupApplianceLocksOrBuilderList()

Optional. The list of BackupLocks taken by the accessor Backup Appliance.

`
repeated .google.cloud.backupdr.v1.BackupLock backup_appliance_locks = 18 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends com.google.cloud.backupdr.v1.BackupLockOrBuilder>` |   |

### getBackupPropertiesCase()

    public abstract Backup.BackupPropertiesCase getBackupPropertiesCase()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-backupdr/latest/com.google.cloud.backupdr.v1.Backup.BackupPropertiesCase` |   |

### getBackupRetentionInheritance()

    public abstract BackupVault.BackupRetentionInheritance getBackupRetentionInheritance()

Output only. Setting for how the enforced retention end time is inherited.
This value is copied from this backup's BackupVault.

`
optional .google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance backup_retention_inheritance = 30 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-backupdr/latest/com.google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance` | The backupRetentionInheritance. |

### getBackupRetentionInheritanceValue()

    public abstract int getBackupRetentionInheritanceValue()

Output only. Setting for how the enforced retention end time is inherited.
This value is copied from this backup's BackupVault.

`
optional .google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance backup_retention_inheritance = 30 [(.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 backupRetentionInheritance. |

### getBackupType()

    public abstract Backup.BackupType getBackupType()

Output only. Type of the backup, unspecified, scheduled or ondemand.

`
.google.cloud.backupdr.v1.Backup.BackupType backup_type = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-backupdr/latest/com.google.cloud.backupdr.v1.Backup.BackupType` | The backupType. |

### getBackupTypeValue()

    public abstract int getBackupTypeValue()

Output only. Type of the backup, unspecified, scheduled or ondemand.

`
.google.cloud.backupdr.v1.Backup.BackupType backup_type = 20 [(.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 backupType. |

### getCloudSqlInstanceBackupProperties()

    public abstract CloudSqlInstanceBackupProperties getCloudSqlInstanceBackupProperties()

Output only. Cloud SQL specific backup properties.

`
.google.cloud.backupdr.v1.CloudSqlInstanceBackupProperties cloud_sql_instance_backup_properties = 26 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-backupdr/latest/com.google.cloud.backupdr.v1.CloudSqlInstanceBackupProperties` | The cloudSqlInstanceBackupProperties. |

### getCloudSqlInstanceBackupPropertiesOrBuilder()

    public abstract CloudSqlInstanceBackupPropertiesOrBuilder getCloudSqlInstanceBackupPropertiesOrBuilder()

Output only. Cloud SQL specific backup properties.

`
.google.cloud.backupdr.v1.CloudSqlInstanceBackupProperties cloud_sql_instance_backup_properties = 26 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-backupdr/latest/com.google.cloud.backupdr.v1.CloudSqlInstanceBackupPropertiesOrBuilder` |   |

### getComputeInstanceBackupProperties()

    public abstract ComputeInstanceBackupProperties getComputeInstanceBackupProperties()

Output only. Compute Engine specific backup properties.

`
.google.cloud.backupdr.v1.ComputeInstanceBackupProperties compute_instance_backup_properties = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-backupdr/latest/com.google.cloud.backupdr.v1.ComputeInstanceBackupProperties` | The computeInstanceBackupProperties. |

### getComputeInstanceBackupPropertiesOrBuilder()

    public abstract ComputeInstanceBackupPropertiesOrBuilder getComputeInstanceBackupPropertiesOrBuilder()

Output only. Compute Engine specific backup properties.

`
.google.cloud.backupdr.v1.ComputeInstanceBackupProperties compute_instance_backup_properties = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-backupdr/latest/com.google.cloud.backupdr.v1.ComputeInstanceBackupPropertiesOrBuilder` |   |

### getConsistencyTime()

    public abstract Timestamp getConsistencyTime()

Output only. The point in time when this backup was captured from the
source.

`
optional .google.protobuf.Timestamp consistency_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

### getConsistencyTimeOrBuilder()

    public abstract TimestampOrBuilder getConsistencyTimeOrBuilder()

Output only. The point in time when this backup was captured from the
source.

`
optional .google.protobuf.Timestamp consistency_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

### getCreateTime()

    public abstract Timestamp getCreateTime()

Output only. The time when the instance was created.

`
optional .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

### getCreateTimeOrBuilder()

    public abstract TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The time when the instance was created.

`
optional .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

### getDescription()

    public abstract String getDescription()

Output only. The description of the Backup instance (2048 characters or
less).

`optional string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];`

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

### getDescriptionBytes()

    public abstract ByteString getDescriptionBytes()

Output only. The description of the Backup instance (2048 characters or
less).

`optional string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];`

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

### getDiskBackupProperties()

    public abstract DiskBackupProperties getDiskBackupProperties()

Output only. Disk specific backup properties.

`
.google.cloud.backupdr.v1.DiskBackupProperties disk_backup_properties = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-backupdr/latest/com.google.cloud.backupdr.v1.DiskBackupProperties` | The diskBackupProperties. |

### getDiskBackupPropertiesOrBuilder()

    public abstract DiskBackupPropertiesOrBuilder getDiskBackupPropertiesOrBuilder()

Output only. Disk specific backup properties.

`
.google.cloud.backupdr.v1.DiskBackupProperties disk_backup_properties = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-backupdr/latest/com.google.cloud.backupdr.v1.DiskBackupPropertiesOrBuilder` |   |

### getEnforcedRetentionEndTime()

    public abstract Timestamp getEnforcedRetentionEndTime()

Optional. The backup can not be deleted before this time.

`
optional .google.protobuf.Timestamp enforced_retention_end_time = 6 [(.google.api.field_behavior) = OPTIONAL];
`

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

### getEnforcedRetentionEndTimeOrBuilder()

    public abstract TimestampOrBuilder getEnforcedRetentionEndTimeOrBuilder()

Optional. The backup can not be deleted before this time.

`
optional .google.protobuf.Timestamp enforced_retention_end_time = 6 [(.google.api.field_behavior) = OPTIONAL];
`

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

### getEtag()

    public abstract String getEtag()

Optional. Server specified ETag to prevent updates from overwriting each
other.

`optional string etag = 11 [(.google.api.field_behavior) = OPTIONAL];`

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

### getEtagBytes()

    public abstract ByteString getEtagBytes()

Optional. Server specified ETag to prevent updates from overwriting each
other.

`optional string etag = 11 [(.google.api.field_behavior) = OPTIONAL];`

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

### getExpireTime()

    public abstract Timestamp getExpireTime()

Optional. When this backup is automatically expired.

`
optional .google.protobuf.Timestamp expire_time = 7 [(.google.api.field_behavior) = OPTIONAL];
`

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

### getExpireTimeOrBuilder()

    public abstract TimestampOrBuilder getExpireTimeOrBuilder()

Optional. When this backup is automatically expired.

`
optional .google.protobuf.Timestamp expire_time = 7 [(.google.api.field_behavior) = OPTIONAL];
`

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

### getGcpBackupPlanInfo()

    public abstract Backup.GCPBackupPlanInfo getGcpBackupPlanInfo()

Output only. Configuration for a Google Cloud resource.

`
.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo gcp_backup_plan_info = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-backupdr/latest/com.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo` | The gcpBackupPlanInfo. |

### getGcpBackupPlanInfoOrBuilder()

    public abstract Backup.GCPBackupPlanInfoOrBuilder getGcpBackupPlanInfoOrBuilder()

Output only. Configuration for a Google Cloud resource.

`
.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo gcp_backup_plan_info = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-backupdr/latest/com.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfoOrBuilder` |   |

### getGcpResource()

    public abstract BackupGcpResource getGcpResource()

Output only. Unique identifier of the GCP resource that is being backed
up.

`
.google.cloud.backupdr.v1.BackupGcpResource gcp_resource = 31 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-backupdr/latest/com.google.cloud.backupdr.v1.BackupGcpResource` | The gcpResource. |

### getGcpResourceOrBuilder()

    public abstract BackupGcpResourceOrBuilder getGcpResourceOrBuilder()

Output only. Unique identifier of the GCP resource that is being backed
up.

`
.google.cloud.backupdr.v1.BackupGcpResource gcp_resource = 31 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-backupdr/latest/com.google.cloud.backupdr.v1.BackupGcpResourceOrBuilder` |   |

### getKmsKeyVersions(int index)

    public abstract String getKmsKeyVersions(int index)

Optional. Output only. The list of KMS key versions used to encrypt the
backup.

`
repeated string kms_key_versions = 33 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the element to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The kmsKeyVersions at the given index. |

### getKmsKeyVersionsBytes(int index)

    public abstract ByteString getKmsKeyVersionsBytes(int index)

Optional. Output only. The list of KMS key versions used to encrypt the
backup.

`
repeated string kms_key_versions = 33 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the value to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes of the kmsKeyVersions at the given index. |

### getKmsKeyVersionsCount()

    public abstract int getKmsKeyVersionsCount()

Optional. Output only. The list of KMS key versions used to encrypt the
backup.

`
repeated string kms_key_versions = 33 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
`

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

### getKmsKeyVersionsList()

    public abstract List<String> getKmsKeyVersionsList()

Optional. Output only. The list of KMS key versions used to encrypt the
backup.

`
repeated string kms_key_versions = 33 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` | A list containing the kmsKeyVersions. |

### getLabels() (deprecated)

    public abstract Map<String,String> getLabels()

Use [#getLabelsMap()](https://docs.cloud.google.com/java/docs/reference/google-cloud-backupdr/latest/com.google.cloud.backupdr.v1.BackupOrBuilder#com_google_cloud_backupdr_v1_BackupOrBuilder_getLabelsMap__) instead.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/Map.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html,https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` |   |

### getLabelsCount()

    public abstract int getLabelsCount()

Optional. Resource labels to represent user provided metadata.
No labels currently defined.

`map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];`

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

### getLabelsMap()

    public abstract Map<String,String> getLabelsMap()

Optional. Resource labels to represent user provided metadata.
No labels currently defined.

`map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/Map.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html,https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` |   |

### getLabelsOrDefault(String key, String defaultValue)

    public abstract String getLabelsOrDefault(String key, String defaultValue)

Optional. Resource labels to represent user provided metadata.
No labels currently defined.

`map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];`

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `defaultValue` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

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

### getLabelsOrThrow(String key)

    public abstract String getLabelsOrThrow(String key)

Optional. Resource labels to represent user provided metadata.
No labels currently defined.

`map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

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

### getName()

    public abstract String getName()

Output only. Identifier. Name of the backup to create. It must have the
format`"projects/<project>/locations/<location>/backupVaults/<backupvault>/dataSources/{datasource}/backups/{backup}"`.
`{backup}` cannot be changed after creation. It must be between 3-63
characters long and must be unique within the datasource.

`
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
`

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

### getNameBytes()

    public abstract ByteString getNameBytes()

Output only. Identifier. Name of the backup to create. It must have the
format`"projects/<project>/locations/<location>/backupVaults/<backupvault>/dataSources/{datasource}/backups/{backup}"`.
`{backup}` cannot be changed after creation. It must be between 3-63
characters long and must be unique within the datasource.

`
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
`

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

### getPlanInfoCase()

    public abstract Backup.PlanInfoCase getPlanInfoCase()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-backupdr/latest/com.google.cloud.backupdr.v1.Backup.PlanInfoCase` |   |

### getResourceSizeBytes()

    public abstract long getResourceSizeBytes()

Output only. source resource size in bytes at the time of the backup.

`int64 resource_size_bytes = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];`

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

### getSatisfiesPzi()

    public abstract boolean getSatisfiesPzi()

Optional. Output only. Reserved for future use.

`
optional bool satisfies_pzi = 25 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];
`

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

### getSatisfiesPzs()

    public abstract boolean getSatisfiesPzs()

Optional. Output only. Reserved for future use.

`
optional bool satisfies_pzs = 24 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];
`

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

### getServiceLocks(int index)

    public abstract BackupLock getServiceLocks(int index)

Output only. The list of BackupLocks taken by the service to prevent the
deletion of the backup.

`
repeated .google.cloud.backupdr.v1.BackupLock service_locks = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-backupdr/latest/com.google.cloud.backupdr.v1.BackupLock` |   |

### getServiceLocksCount()

    public abstract int getServiceLocksCount()

Output only. The list of BackupLocks taken by the service to prevent the
deletion of the backup.

`
repeated .google.cloud.backupdr.v1.BackupLock service_locks = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

### getServiceLocksList()

    public abstract List<BackupLock> getServiceLocksList()

Output only. The list of BackupLocks taken by the service to prevent the
deletion of the backup.

`
repeated .google.cloud.backupdr.v1.BackupLock service_locks = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-backupdr/latest/com.google.cloud.backupdr.v1.BackupLock>` |   |

### getServiceLocksOrBuilder(int index)

    public abstract BackupLockOrBuilder getServiceLocksOrBuilder(int index)

Output only. The list of BackupLocks taken by the service to prevent the
deletion of the backup.

`
repeated .google.cloud.backupdr.v1.BackupLock service_locks = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-backupdr/latest/com.google.cloud.backupdr.v1.BackupLockOrBuilder` |   |

### getServiceLocksOrBuilderList()

    public abstract List<? extends BackupLockOrBuilder> getServiceLocksOrBuilderList()

Output only. The list of BackupLocks taken by the service to prevent the
deletion of the backup.

`
repeated .google.cloud.backupdr.v1.BackupLock service_locks = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends com.google.cloud.backupdr.v1.BackupLockOrBuilder>` |   |

### getSourceResourceCase()

    public abstract Backup.SourceResourceCase getSourceResourceCase()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-backupdr/latest/com.google.cloud.backupdr.v1.Backup.SourceResourceCase` |   |

### getState()

    public abstract Backup.State getState()

Output only. The Backup resource instance state.

`
.google.cloud.backupdr.v1.Backup.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-backupdr/latest/com.google.cloud.backupdr.v1.Backup.State` | The state. |

### getStateValue()

    public abstract int getStateValue()

Output only. The Backup resource instance state.

`
.google.cloud.backupdr.v1.Backup.State state = 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 state. |

### getUpdateTime()

    public abstract Timestamp getUpdateTime()

Output only. The time when the instance was updated.

`
optional .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

### getUpdateTimeOrBuilder()

    public abstract TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The time when the instance was updated.

`
optional .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

### hasAlloyDbBackupProperties()

    public abstract boolean hasAlloyDbBackupProperties()

Output only. AlloyDB specific backup properties.

`
.google.cloud.backupdr.v1.AlloyDbClusterBackupProperties alloy_db_backup_properties = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

### hasBackupApplianceBackupProperties()

    public abstract boolean hasBackupApplianceBackupProperties()

Output only. Backup Appliance specific backup properties.

`
.google.cloud.backupdr.v1.BackupApplianceBackupProperties backup_appliance_backup_properties = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

### hasBackupRetentionInheritance()

    public abstract boolean hasBackupRetentionInheritance()

Output only. Setting for how the enforced retention end time is inherited.
This value is copied from this backup's BackupVault.

`
optional .google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance backup_retention_inheritance = 30 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

### hasCloudSqlInstanceBackupProperties()

    public abstract boolean hasCloudSqlInstanceBackupProperties()

Output only. Cloud SQL specific backup properties.

`
.google.cloud.backupdr.v1.CloudSqlInstanceBackupProperties cloud_sql_instance_backup_properties = 26 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

### hasComputeInstanceBackupProperties()

    public abstract boolean hasComputeInstanceBackupProperties()

Output only. Compute Engine specific backup properties.

`
.google.cloud.backupdr.v1.ComputeInstanceBackupProperties compute_instance_backup_properties = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

### hasConsistencyTime()

    public abstract boolean hasConsistencyTime()

Output only. The point in time when this backup was captured from the
source.

`
optional .google.protobuf.Timestamp consistency_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

### hasCreateTime()

    public abstract boolean hasCreateTime()

Output only. The time when the instance was created.

`
optional .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

### hasDescription()

    public abstract boolean hasDescription()

Output only. The description of the Backup instance (2048 characters or
less).

`optional string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];`

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

### hasDiskBackupProperties()

    public abstract boolean hasDiskBackupProperties()

Output only. Disk specific backup properties.

`
.google.cloud.backupdr.v1.DiskBackupProperties disk_backup_properties = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

### hasEnforcedRetentionEndTime()

    public abstract boolean hasEnforcedRetentionEndTime()

Optional. The backup can not be deleted before this time.

`
optional .google.protobuf.Timestamp enforced_retention_end_time = 6 [(.google.api.field_behavior) = OPTIONAL];
`

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

### hasEtag()

    public abstract boolean hasEtag()

Optional. Server specified ETag to prevent updates from overwriting each
other.

`optional string etag = 11 [(.google.api.field_behavior) = OPTIONAL];`

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

### hasExpireTime()

    public abstract boolean hasExpireTime()

Optional. When this backup is automatically expired.

`
optional .google.protobuf.Timestamp expire_time = 7 [(.google.api.field_behavior) = OPTIONAL];
`

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

### hasGcpBackupPlanInfo()

    public abstract boolean hasGcpBackupPlanInfo()

Output only. Configuration for a Google Cloud resource.

`
.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo gcp_backup_plan_info = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

### hasGcpResource()

    public abstract boolean hasGcpResource()

Output only. Unique identifier of the GCP resource that is being backed
up.

`
.google.cloud.backupdr.v1.BackupGcpResource gcp_resource = 31 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

### hasSatisfiesPzi()

    public abstract boolean hasSatisfiesPzi()

Optional. Output only. Reserved for future use.

`
optional bool satisfies_pzi = 25 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];
`

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

### hasSatisfiesPzs()

    public abstract boolean hasSatisfiesPzs()

Optional. Output only. Reserved for future use.

`
optional bool satisfies_pzs = 24 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];
`

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

### hasUpdateTime()

    public abstract boolean hasUpdateTime()

Output only. The time when the instance was updated.

`
optional .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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