[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-18 UTC."],[],[],null,["# Interface BackupLockOrBuilder (0.31.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.31.0 (latest)](/java/docs/reference/google-cloud-backupdr/latest/com.google.cloud.backupdr.v1.BackupLockOrBuilder)\n- [0.29.0](/java/docs/reference/google-cloud-backupdr/0.29.0/com.google.cloud.backupdr.v1.BackupLockOrBuilder)\n- [0.27.0](/java/docs/reference/google-cloud-backupdr/0.27.0/com.google.cloud.backupdr.v1.BackupLockOrBuilder)\n- [0.26.0](/java/docs/reference/google-cloud-backupdr/0.26.0/com.google.cloud.backupdr.v1.BackupLockOrBuilder)\n- [0.23.0](/java/docs/reference/google-cloud-backupdr/0.23.0/com.google.cloud.backupdr.v1.BackupLockOrBuilder)\n- [0.22.0](/java/docs/reference/google-cloud-backupdr/0.22.0/com.google.cloud.backupdr.v1.BackupLockOrBuilder)\n- [0.21.0](/java/docs/reference/google-cloud-backupdr/0.21.0/com.google.cloud.backupdr.v1.BackupLockOrBuilder)\n- [0.19.0](/java/docs/reference/google-cloud-backupdr/0.19.0/com.google.cloud.backupdr.v1.BackupLockOrBuilder)\n- [0.18.0](/java/docs/reference/google-cloud-backupdr/0.18.0/com.google.cloud.backupdr.v1.BackupLockOrBuilder)\n- [0.17.0](/java/docs/reference/google-cloud-backupdr/0.17.0/com.google.cloud.backupdr.v1.BackupLockOrBuilder)\n- [0.16.0](/java/docs/reference/google-cloud-backupdr/0.16.0/com.google.cloud.backupdr.v1.BackupLockOrBuilder)\n- [0.15.0](/java/docs/reference/google-cloud-backupdr/0.15.0/com.google.cloud.backupdr.v1.BackupLockOrBuilder)\n- [0.14.0](/java/docs/reference/google-cloud-backupdr/0.14.0/com.google.cloud.backupdr.v1.BackupLockOrBuilder)\n- [0.13.0](/java/docs/reference/google-cloud-backupdr/0.13.0/com.google.cloud.backupdr.v1.BackupLockOrBuilder)\n- [0.12.0](/java/docs/reference/google-cloud-backupdr/0.12.0/com.google.cloud.backupdr.v1.BackupLockOrBuilder)\n- [0.11.0](/java/docs/reference/google-cloud-backupdr/0.11.0/com.google.cloud.backupdr.v1.BackupLockOrBuilder)\n- [0.10.0](/java/docs/reference/google-cloud-backupdr/0.10.0/com.google.cloud.backupdr.v1.BackupLockOrBuilder)\n- [0.8.0](/java/docs/reference/google-cloud-backupdr/0.8.0/com.google.cloud.backupdr.v1.BackupLockOrBuilder)\n- [0.7.0](/java/docs/reference/google-cloud-backupdr/0.7.0/com.google.cloud.backupdr.v1.BackupLockOrBuilder)\n- [0.6.0](/java/docs/reference/google-cloud-backupdr/0.6.0/com.google.cloud.backupdr.v1.BackupLockOrBuilder)\n- [0.5.0](/java/docs/reference/google-cloud-backupdr/0.5.0/com.google.cloud.backupdr.v1.BackupLockOrBuilder)\n- [0.4.0](/java/docs/reference/google-cloud-backupdr/0.4.0/com.google.cloud.backupdr.v1.BackupLockOrBuilder)\n- [0.3.0](/java/docs/reference/google-cloud-backupdr/0.3.0/com.google.cloud.backupdr.v1.BackupLockOrBuilder)\n- [0.2.0](/java/docs/reference/google-cloud-backupdr/0.2.0/com.google.cloud.backupdr.v1.BackupLockOrBuilder)\n- [0.1.0](/java/docs/reference/google-cloud-backupdr/0.1.0/com.google.cloud.backupdr.v1.BackupLockOrBuilder) \n\n public interface BackupLockOrBuilder extends MessageOrBuilder\n\nImplements\n----------\n\n[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)\n\nMethods\n-------\n\n### getBackupApplianceLockInfo()\n\n public abstract BackupApplianceLockInfo getBackupApplianceLockInfo()\n\nIf the client is a backup and recovery appliance, this\ncontains metadata about why the lock exists.\n\n`.google.cloud.backupdr.v1.BackupApplianceLockInfo backup_appliance_lock_info = 3;`\n\n### getBackupApplianceLockInfoOrBuilder()\n\n public abstract BackupApplianceLockInfoOrBuilder getBackupApplianceLockInfoOrBuilder()\n\nIf the client is a backup and recovery appliance, this\ncontains metadata about why the lock exists.\n\n`.google.cloud.backupdr.v1.BackupApplianceLockInfo backup_appliance_lock_info = 3;`\n\n### getClientLockInfoCase()\n\n public abstract BackupLock.ClientLockInfoCase getClientLockInfoCase()\n\n### getLockUntilTime()\n\n public abstract Timestamp getLockUntilTime()\n\nRequired. The time after which this lock is not considered valid and will\nno longer protect the Backup from deletion.\n\n`.google.protobuf.Timestamp lock_until_time = 1 [(.google.api.field_behavior) = REQUIRED];\n`\n\n### getLockUntilTimeOrBuilder()\n\n public abstract TimestampOrBuilder getLockUntilTimeOrBuilder()\n\nRequired. The time after which this lock is not considered valid and will\nno longer protect the Backup from deletion.\n\n`.google.protobuf.Timestamp lock_until_time = 1 [(.google.api.field_behavior) = REQUIRED];\n`\n\n### getServiceLockInfo()\n\n public abstract ServiceLockInfo getServiceLockInfo()\n\nOutput only. Contains metadata about the lock exist for Google Cloud\nnative backups.\n\n`\n.google.cloud.backupdr.v1.ServiceLockInfo service_lock_info = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];\n`\n\n### getServiceLockInfoOrBuilder()\n\n public abstract ServiceLockInfoOrBuilder getServiceLockInfoOrBuilder()\n\nOutput only. Contains metadata about the lock exist for Google Cloud\nnative backups.\n\n`\n.google.cloud.backupdr.v1.ServiceLockInfo service_lock_info = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];\n`\n\n### hasBackupApplianceLockInfo()\n\n public abstract boolean hasBackupApplianceLockInfo()\n\nIf the client is a backup and recovery appliance, this\ncontains metadata about why the lock exists.\n\n`.google.cloud.backupdr.v1.BackupApplianceLockInfo backup_appliance_lock_info = 3;`\n\n### hasLockUntilTime()\n\n public abstract boolean hasLockUntilTime()\n\nRequired. The time after which this lock is not considered valid and will\nno longer protect the Backup from deletion.\n\n`.google.protobuf.Timestamp lock_until_time = 1 [(.google.api.field_behavior) = REQUIRED];\n`\n\n### hasServiceLockInfo()\n\n public abstract boolean hasServiceLockInfo()\n\nOutput only. Contains metadata about the lock exist for Google Cloud\nnative backups.\n\n`\n.google.cloud.backupdr.v1.ServiceLockInfo service_lock_info = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];\n`"]]