Class BackupLock.Builder (0.44.0)

public static final class BackupLock.Builder extends GeneratedMessage.Builder<BackupLock.Builder> implements BackupLockOrBuilder

BackupLock represents a single lock on a Backup resource. An unexpired lock on a Backup prevents the Backup from being deleted.

Protobuf type google.cloud.backupdr.v1.BackupLock

Implements

BackupLockOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public BackupLock build()
Returns
Type Description
BackupLock

buildPartial()

public BackupLock buildPartial()
Returns
Type Description
BackupLock

clear()

public BackupLock.Builder clear()
Returns
Type Description
BackupLock.Builder
Overrides

clearBackupApplianceLockInfo()

public BackupLock.Builder clearBackupApplianceLockInfo()

If the client is a backup and recovery appliance, this contains metadata about why the lock exists.

.google.cloud.backupdr.v1.BackupApplianceLockInfo backup_appliance_lock_info = 3;

Returns
Type Description
BackupLock.Builder

clearClientLockInfo()

public BackupLock.Builder clearClientLockInfo()
Returns
Type Description
BackupLock.Builder

clearLockUntilTime()

public BackupLock.Builder clearLockUntilTime()

Required. The time after which this lock is not considered valid and will no longer protect the Backup from deletion.

.google.protobuf.Timestamp lock_until_time = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
BackupLock.Builder

clearServiceLockInfo()

public BackupLock.Builder clearServiceLockInfo()

Output only. Contains metadata about the lock exist for Google Cloud native backups.

.google.cloud.backupdr.v1.ServiceLockInfo service_lock_info = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
BackupLock.Builder

getBackupApplianceLockInfo()

public BackupApplianceLockInfo getBackupApplianceLockInfo()

If the client is a backup and recovery appliance, this contains metadata about why the lock exists.

.google.cloud.backupdr.v1.BackupApplianceLockInfo backup_appliance_lock_info = 3;

Returns
Type Description
BackupApplianceLockInfo

The backupApplianceLockInfo.

getBackupApplianceLockInfoBuilder()

public BackupApplianceLockInfo.Builder getBackupApplianceLockInfoBuilder()

If the client is a backup and recovery appliance, this contains metadata about why the lock exists.

.google.cloud.backupdr.v1.BackupApplianceLockInfo backup_appliance_lock_info = 3;

Returns
Type Description
BackupApplianceLockInfo.Builder

getBackupApplianceLockInfoOrBuilder()

public BackupApplianceLockInfoOrBuilder getBackupApplianceLockInfoOrBuilder()

If the client is a backup and recovery appliance, this contains metadata about why the lock exists.

.google.cloud.backupdr.v1.BackupApplianceLockInfo backup_appliance_lock_info = 3;

Returns
Type Description
BackupApplianceLockInfoOrBuilder

getClientLockInfoCase()

public BackupLock.ClientLockInfoCase getClientLockInfoCase()
Returns
Type Description
BackupLock.ClientLockInfoCase

getDefaultInstanceForType()

public BackupLock getDefaultInstanceForType()
Returns
Type Description
BackupLock

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getLockUntilTime()

public Timestamp getLockUntilTime()

Required. The time after which this lock is not considered valid and will no longer protect the Backup from deletion.

.google.protobuf.Timestamp lock_until_time = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Timestamp

The lockUntilTime.

getLockUntilTimeBuilder()

public Timestamp.Builder getLockUntilTimeBuilder()

Required. The time after which this lock is not considered valid and will no longer protect the Backup from deletion.

.google.protobuf.Timestamp lock_until_time = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Builder

getLockUntilTimeOrBuilder()

public TimestampOrBuilder getLockUntilTimeOrBuilder()

Required. The time after which this lock is not considered valid and will no longer protect the Backup from deletion.

.google.protobuf.Timestamp lock_until_time = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TimestampOrBuilder

getServiceLockInfo()

public ServiceLockInfo getServiceLockInfo()

Output only. Contains metadata about the lock exist for Google Cloud native backups.

.google.cloud.backupdr.v1.ServiceLockInfo service_lock_info = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ServiceLockInfo

The serviceLockInfo.

getServiceLockInfoBuilder()

public ServiceLockInfo.Builder getServiceLockInfoBuilder()

Output only. Contains metadata about the lock exist for Google Cloud native backups.

.google.cloud.backupdr.v1.ServiceLockInfo service_lock_info = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ServiceLockInfo.Builder

getServiceLockInfoOrBuilder()

public ServiceLockInfoOrBuilder getServiceLockInfoOrBuilder()

Output only. Contains metadata about the lock exist for Google Cloud native backups.

.google.cloud.backupdr.v1.ServiceLockInfo service_lock_info = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ServiceLockInfoOrBuilder

hasBackupApplianceLockInfo()

public boolean hasBackupApplianceLockInfo()

If the client is a backup and recovery appliance, this contains metadata about why the lock exists.

.google.cloud.backupdr.v1.BackupApplianceLockInfo backup_appliance_lock_info = 3;

Returns
Type Description
boolean

Whether the backupApplianceLockInfo field is set.

hasLockUntilTime()

public boolean hasLockUntilTime()

Required. The time after which this lock is not considered valid and will no longer protect the Backup from deletion.

.google.protobuf.Timestamp lock_until_time = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the lockUntilTime field is set.

hasServiceLockInfo()

public boolean hasServiceLockInfo()

Output only. Contains metadata about the lock exist for Google Cloud native backups.

.google.cloud.backupdr.v1.ServiceLockInfo service_lock_info = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the serviceLockInfo field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeBackupApplianceLockInfo(BackupApplianceLockInfo value)

public BackupLock.Builder mergeBackupApplianceLockInfo(BackupApplianceLockInfo value)

If the client is a backup and recovery appliance, this contains metadata about why the lock exists.

.google.cloud.backupdr.v1.BackupApplianceLockInfo backup_appliance_lock_info = 3;

Parameter
Name Description
value BackupApplianceLockInfo
Returns
Type Description
BackupLock.Builder

mergeFrom(BackupLock other)

public BackupLock.Builder mergeFrom(BackupLock other)
Parameter
Name Description
other BackupLock
Returns
Type Description
BackupLock.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public BackupLock.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BackupLock.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public BackupLock.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
BackupLock.Builder
Overrides

mergeLockUntilTime(Timestamp value)

public BackupLock.Builder mergeLockUntilTime(Timestamp value)

Required. The time after which this lock is not considered valid and will no longer protect the Backup from deletion.

.google.protobuf.Timestamp lock_until_time = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Timestamp
Returns
Type Description
BackupLock.Builder

mergeServiceLockInfo(ServiceLockInfo value)

public BackupLock.Builder mergeServiceLockInfo(ServiceLockInfo value)

Output only. Contains metadata about the lock exist for Google Cloud native backups.

.google.cloud.backupdr.v1.ServiceLockInfo service_lock_info = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ServiceLockInfo
Returns
Type Description
BackupLock.Builder

setBackupApplianceLockInfo(BackupApplianceLockInfo value)

public BackupLock.Builder setBackupApplianceLockInfo(BackupApplianceLockInfo value)

If the client is a backup and recovery appliance, this contains metadata about why the lock exists.

.google.cloud.backupdr.v1.BackupApplianceLockInfo backup_appliance_lock_info = 3;

Parameter
Name Description
value BackupApplianceLockInfo
Returns
Type Description
BackupLock.Builder

setBackupApplianceLockInfo(BackupApplianceLockInfo.Builder builderForValue)

public BackupLock.Builder setBackupApplianceLockInfo(BackupApplianceLockInfo.Builder builderForValue)

If the client is a backup and recovery appliance, this contains metadata about why the lock exists.

.google.cloud.backupdr.v1.BackupApplianceLockInfo backup_appliance_lock_info = 3;

Parameter
Name Description
builderForValue BackupApplianceLockInfo.Builder
Returns
Type Description
BackupLock.Builder

setLockUntilTime(Timestamp value)

public BackupLock.Builder setLockUntilTime(Timestamp value)

Required. The time after which this lock is not considered valid and will no longer protect the Backup from deletion.

.google.protobuf.Timestamp lock_until_time = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Timestamp
Returns
Type Description
BackupLock.Builder

setLockUntilTime(Timestamp.Builder builderForValue)

public BackupLock.Builder setLockUntilTime(Timestamp.Builder builderForValue)

Required. The time after which this lock is not considered valid and will no longer protect the Backup from deletion.

.google.protobuf.Timestamp lock_until_time = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
BackupLock.Builder

setServiceLockInfo(ServiceLockInfo value)

public BackupLock.Builder setServiceLockInfo(ServiceLockInfo value)

Output only. Contains metadata about the lock exist for Google Cloud native backups.

.google.cloud.backupdr.v1.ServiceLockInfo service_lock_info = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ServiceLockInfo
Returns
Type Description
BackupLock.Builder

setServiceLockInfo(ServiceLockInfo.Builder builderForValue)

public BackupLock.Builder setServiceLockInfo(ServiceLockInfo.Builder builderForValue)

Output only. Contains metadata about the lock exist for Google Cloud native backups.

.google.cloud.backupdr.v1.ServiceLockInfo service_lock_info = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue ServiceLockInfo.Builder
Returns
Type Description
BackupLock.Builder