# Interface ResourceBackupConfigOrBuilder (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 ResourceBackupConfigOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### containsTargetResourceLabels(String key)

    public abstract boolean containsTargetResourceLabels(String key)

Labels associated with the target resource.

`map<string, string> target_resource_labels = 6;`

| **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` |   |

### getBackupConfigsDetails(int index)

    public abstract BackupConfigDetails getBackupConfigsDetails(int index)

Backup configurations applying to the target resource, including those
targeting its related/child resources. For example, backup configuration
applicable to Compute Engine disks will be populated in this field for a
Compute Engine VM which has the disk associated.

`repeated .google.cloud.backupdr.v1.BackupConfigDetails backup_configs_details = 7;`

| **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.BackupConfigDetails` |   |

### getBackupConfigsDetailsCount()

    public abstract int getBackupConfigsDetailsCount()

Backup configurations applying to the target resource, including those
targeting its related/child resources. For example, backup configuration
applicable to Compute Engine disks will be populated in this field for a
Compute Engine VM which has the disk associated.

`repeated .google.cloud.backupdr.v1.BackupConfigDetails backup_configs_details = 7;`

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

### getBackupConfigsDetailsList()

    public abstract List<BackupConfigDetails> getBackupConfigsDetailsList()

Backup configurations applying to the target resource, including those
targeting its related/child resources. For example, backup configuration
applicable to Compute Engine disks will be populated in this field for a
Compute Engine VM which has the disk associated.

`repeated .google.cloud.backupdr.v1.BackupConfigDetails backup_configs_details = 7;`

| **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.BackupConfigDetails>` |   |

### getBackupConfigsDetailsOrBuilder(int index)

    public abstract BackupConfigDetailsOrBuilder getBackupConfigsDetailsOrBuilder(int index)

Backup configurations applying to the target resource, including those
targeting its related/child resources. For example, backup configuration
applicable to Compute Engine disks will be populated in this field for a
Compute Engine VM which has the disk associated.

`repeated .google.cloud.backupdr.v1.BackupConfigDetails backup_configs_details = 7;`

| **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.BackupConfigDetailsOrBuilder` |   |

### getBackupConfigsDetailsOrBuilderList()

    public abstract List<? extends BackupConfigDetailsOrBuilder> getBackupConfigsDetailsOrBuilderList()

Backup configurations applying to the target resource, including those
targeting its related/child resources. For example, backup configuration
applicable to Compute Engine disks will be populated in this field for a
Compute Engine VM which has the disk associated.

`repeated .google.cloud.backupdr.v1.BackupConfigDetails backup_configs_details = 7;`

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

### getBackupConfigured()

    public abstract boolean getBackupConfigured()

Output only. Whether the target resource is configured for backup. This is
true if the backup_configs_details is not empty.

`bool backup_configured = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];`

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

### getName()

    public abstract String getName()

Identifier. The resource name of the ResourceBackupConfig.
Format:
projects/{project}/locations/{location}/resourceBackupConfigs/{uid}

`string name = 1 [(.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()

Identifier. The resource name of the ResourceBackupConfig.
Format:
projects/{project}/locations/{location}/resourceBackupConfigs/{uid}

`string name = 1 [(.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. |

### getTargetResource()

    public abstract String getTargetResource()

Output only. The [full resource
name](https://cloud.google.com/asset-inventory/docs/resource-name-format)
of the cloud resource that this configuration applies to. Supported
resource types are
ResourceBackupConfig.ResourceType.

`string target_resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];`

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

### getTargetResourceBytes()

    public abstract ByteString getTargetResourceBytes()

Output only. The [full resource
name](https://cloud.google.com/asset-inventory/docs/resource-name-format)
of the cloud resource that this configuration applies to. Supported
resource types are
ResourceBackupConfig.ResourceType.

`string target_resource = 3 [(.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 targetResource. |

### getTargetResourceDisplayName()

    public abstract String getTargetResourceDisplayName()

Output only. The human friendly name of the target resource.

`string target_resource_display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

### getTargetResourceDisplayNameBytes()

    public abstract ByteString getTargetResourceDisplayNameBytes()

Output only. The human friendly name of the target resource.

`string target_resource_display_name = 4 [(.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 targetResourceDisplayName. |

### getTargetResourceLabels() (deprecated)

    public abstract Map<String,String> getTargetResourceLabels()

Use [#getTargetResourceLabelsMap()](https://docs.cloud.google.com/java/docs/reference/google-cloud-backupdr/latest/com.google.cloud.backupdr.v1.ResourceBackupConfigOrBuilder#com_google_cloud_backupdr_v1_ResourceBackupConfigOrBuilder_getTargetResourceLabelsMap__) 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>` |   |

### getTargetResourceLabelsCount()

    public abstract int getTargetResourceLabelsCount()

Labels associated with the target resource.

`map<string, string> target_resource_labels = 6;`

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

### getTargetResourceLabelsMap()

    public abstract Map<String,String> getTargetResourceLabelsMap()

Labels associated with the target resource.

`map<string, string> target_resource_labels = 6;`

| **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>` |   |

### getTargetResourceLabelsOrDefault(String key, String defaultValue)

    public abstract String getTargetResourceLabelsOrDefault(String key, String defaultValue)

Labels associated with the target resource.

`map<string, string> target_resource_labels = 6;`

| **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` |   |

### getTargetResourceLabelsOrThrow(String key)

    public abstract String getTargetResourceLabelsOrThrow(String key)

Labels associated with the target resource.

`map<string, string> target_resource_labels = 6;`

| **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` |   |

### getTargetResourceType()

    public abstract ResourceBackupConfig.ResourceType getTargetResourceType()

Output only. The type of the target resource.

`
.google.cloud.backupdr.v1.ResourceBackupConfig.ResourceType target_resource_type = 5 [(.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.ResourceBackupConfig.ResourceType` | The targetResourceType. |

### getTargetResourceTypeValue()

    public abstract int getTargetResourceTypeValue()

Output only. The type of the target resource.

`
.google.cloud.backupdr.v1.ResourceBackupConfig.ResourceType target_resource_type = 5 [(.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 targetResourceType. |

### getUid()

    public abstract String getUid()

Output only. The unique identifier of the resource backup config.

`
string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
`

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

### getUidBytes()

    public abstract ByteString getUidBytes()

Output only. The unique identifier of the resource backup config.

`
string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
`

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

### getVaulted()

    public abstract boolean getVaulted()

Output only. Whether the target resource is protected by a backup vault.
This is true if the backup_configs_details is not empty and any of the
ResourceBackupConfig.backup_configs_details
has a backup configuration with
BackupConfigDetails.backup_vault
set. set.

`bool vaulted = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];`

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