# Interface BackupVaultOrBuilder (0.72.0)

0.72.0 (latest) 0.70.0 0.67.0 0.66.0 0.64.0 0.62.0 0.61.0 0.59.0 0.57.0 0.55.0 0.54.0 0.53.0 0.52.0 0.51.0 0.49.0 0.47.0 0.46.0 0.43.0 0.42.0 0.41.0 0.39.0 0.38.0 0.37.0 0.36.0 0.35.0 0.34.0 0.33.0 0.32.0 0.31.0 0.30.0 0.28.0 0.27.0 0.26.0 0.25.0 0.24.0 0.23.0 0.22.0 0.21.0 0.20.0 0.19.0 0.18.0 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.11.0 0.10.0 0.9.0 0.8.0 0.7.0 0.6.0 0.3.0 0.2.0 0.1.0

    public interface BackupVaultOrBuilder 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)

Resource labels to represent user provided metadata.

`map<string, string> labels = 5;`

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

### getBackupRegion()

    public abstract String getBackupRegion()

Optional. Region where the backups are stored.
Format: `projects/{project_id}/locations/{location}`

`
string backup_region = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
`

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

### getBackupRegionBytes()

    public abstract ByteString getBackupRegionBytes()

Optional. Region where the backups are stored.
Format: `projects/{project_id}/locations/{location}`

`
string backup_region = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
`

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

### getBackupRetentionPolicy()

    public abstract BackupVault.BackupRetentionPolicy getBackupRetentionPolicy()

Optional. Backup retention policy defining the retention of backups.

`
.google.cloud.netapp.v1.BackupVault.BackupRetentionPolicy backup_retention_policy = 11 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-netapp/latest/com.google.cloud.netapp.v1.BackupVault.BackupRetentionPolicy` | The backupRetentionPolicy. |

### getBackupRetentionPolicyOrBuilder()

    public abstract BackupVault.BackupRetentionPolicyOrBuilder getBackupRetentionPolicyOrBuilder()

Optional. Backup retention policy defining the retention of backups.

`
.google.cloud.netapp.v1.BackupVault.BackupRetentionPolicy backup_retention_policy = 11 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-netapp/latest/com.google.cloud.netapp.v1.BackupVault.BackupRetentionPolicyOrBuilder` |   |

### getBackupVaultType()

    public abstract BackupVault.BackupVaultType getBackupVaultType()

Optional. Type of backup vault to be created.
Default is IN_REGION.

`
.google.cloud.netapp.v1.BackupVault.BackupVaultType backup_vault_type = 6 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-netapp/latest/com.google.cloud.netapp.v1.BackupVault.BackupVaultType` | The backupVaultType. |

### getBackupVaultTypeValue()

    public abstract int getBackupVaultTypeValue()

Optional. Type of backup vault to be created.
Default is IN_REGION.

`
.google.cloud.netapp.v1.BackupVault.BackupVaultType backup_vault_type = 6 [(.google.api.field_behavior) = OPTIONAL];
`

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

### getBackupsCryptoKeyVersion()

    public abstract String getBackupsCryptoKeyVersion()

Output only. The crypto key version used to encrypt the backup vault.
Format:
`projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`

`string backups_crypto_key_version = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

### getBackupsCryptoKeyVersionBytes()

    public abstract ByteString getBackupsCryptoKeyVersionBytes()

Output only. The crypto key version used to encrypt the backup vault.
Format:
`projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`

`string backups_crypto_key_version = 14 [(.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 backupsCryptoKeyVersion. |

### getCreateTime()

    public abstract Timestamp getCreateTime()

Output only. Create time of the backup vault.

`.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. Create time of the backup vault.

`.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()

Description of the backup vault.

`string description = 4;`

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

### getDescriptionBytes()

    public abstract ByteString getDescriptionBytes()

Description of the backup vault.

`string description = 4;`

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

### getDestinationBackupVault()

    public abstract String getDestinationBackupVault()

Output only. Name of the Backup vault created in backup region.
Format:
`projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}`

`
string destination_backup_vault = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
`

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

### getDestinationBackupVaultBytes()

    public abstract ByteString getDestinationBackupVaultBytes()

Output only. Name of the Backup vault created in backup region.
Format:
`projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}`

`
string destination_backup_vault = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
`

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

### getEncryptionState()

    public abstract BackupVault.EncryptionState getEncryptionState()

Output only. Field indicating encryption state of CMEK backups.

`
.google.cloud.netapp.v1.BackupVault.EncryptionState encryption_state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-netapp/latest/com.google.cloud.netapp.v1.BackupVault.EncryptionState` | The encryptionState. |

### getEncryptionStateValue()

    public abstract int getEncryptionStateValue()

Output only. Field indicating encryption state of CMEK backups.

`
.google.cloud.netapp.v1.BackupVault.EncryptionState encryption_state = 13 [(.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 encryptionState. |

### getKmsConfig()

    public abstract String getKmsConfig()

Optional. Specifies the Key Management System (KMS) configuration to be
used for backup encryption. Format:
`projects/{project}/locations/{location}/kmsConfigs/{kms_config}`

`
string kms_config = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
`

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

### getKmsConfigBytes()

    public abstract ByteString getKmsConfigBytes()

Optional. Specifies the Key Management System (KMS) configuration to be
used for backup encryption. Format:
`projects/{project}/locations/{location}/kmsConfigs/{kms_config}`

`
string kms_config = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
`

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

### getLabels() (deprecated)

    public abstract Map<String,String> getLabels()

Use [#getLabelsMap()](https://docs.cloud.google.com/java/docs/reference/google-cloud-netapp/latest/com.google.cloud.netapp.v1.BackupVaultOrBuilder#com_google_cloud_netapp_v1_BackupVaultOrBuilder_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()

Resource labels to represent user provided metadata.

`map<string, string> labels = 5;`

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

### getLabelsMap()

    public abstract Map<String,String> getLabelsMap()

Resource labels to represent user provided metadata.

`map<string, string> labels = 5;`

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

Resource labels to represent user provided metadata.

`map<string, string> labels = 5;`

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

Resource labels to represent user provided metadata.

`map<string, string> labels = 5;`

| **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()

Identifier. The resource name of the backup vault.
Format:
`projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}`.

`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 backup vault.
Format:
`projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}`.

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

### getSourceBackupVault()

    public abstract String getSourceBackupVault()

Output only. Name of the Backup vault created in source region.
Format:
`projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}`

`
string source_backup_vault = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
`

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

### getSourceBackupVaultBytes()

    public abstract ByteString getSourceBackupVaultBytes()

Output only. Name of the Backup vault created in source region.
Format:
`projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}`

`
string source_backup_vault = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
`

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

### getSourceRegion()

    public abstract String getSourceRegion()

Output only. Region in which the backup vault is created.
Format: `projects/{project_id}/locations/{location}`

`
string source_region = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
`

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

### getSourceRegionBytes()

    public abstract ByteString getSourceRegionBytes()

Output only. Region in which the backup vault is created.
Format: `projects/{project_id}/locations/{location}`

`
string source_region = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
`

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

### getState()

    public abstract BackupVault.State getState()

Output only. The backup vault state.

`
.google.cloud.netapp.v1.BackupVault.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

### getStateValue()

    public abstract int getStateValue()

Output only. The backup vault state.

`
.google.cloud.netapp.v1.BackupVault.State state = 2 [(.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. |

### hasBackupRetentionPolicy()

    public abstract boolean hasBackupRetentionPolicy()

Optional. Backup retention policy defining the retention of backups.

`
.google.cloud.netapp.v1.BackupVault.BackupRetentionPolicy backup_retention_policy = 11 [(.google.api.field_behavior) = OPTIONAL];
`

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

### hasCreateTime()

    public abstract boolean hasCreateTime()

Output only. Create time of the backup vault.

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