Class BackupLock.Builder (0.13.0)

public static final class BackupLock.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BackupLock.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
BackupLock.Builder
Overrides

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

clearField(Descriptors.FieldDescriptor field)

public BackupLock.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
BackupLock.Builder
Overrides

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

clearOneof(Descriptors.OneofDescriptor oneof)

public BackupLock.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
BackupLock.Builder
Overrides

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

clone()

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

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BackupLock.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BackupLock.Builder
Overrides

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

setField(Descriptors.FieldDescriptor field, Object value)

public BackupLock.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
BackupLock.Builder
Overrides

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

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public BackupLock.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
BackupLock.Builder
Overrides

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

setUnknownFields(UnknownFieldSet unknownFields)

public final BackupLock.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BackupLock.Builder
Overrides