Class BackupLock.Builder (0.35.0)

publicstaticfinalclass BackupLock.BuilderextendsGeneratedMessageV3.Builder<BackupLock.Builder>implementsBackupLockOrBuilder

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

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicBackupLock.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
BackupLock.Builder
Overrides

build()

publicBackupLockbuild()
Returns
Type Description
BackupLock

buildPartial()

publicBackupLockbuildPartial()
Returns
Type Description
BackupLock

clear()

publicBackupLock.Builderclear()
Returns
Type Description
BackupLock.Builder
Overrides

clearBackupApplianceLockInfo()

publicBackupLock.BuilderclearBackupApplianceLockInfo()

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

publicBackupLock.BuilderclearClientLockInfo()
Returns
Type Description
BackupLock.Builder

clearField(Descriptors.FieldDescriptor field)

publicBackupLock.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
BackupLock.Builder
Overrides

clearLockUntilTime()

publicBackupLock.BuilderclearLockUntilTime()

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)

publicBackupLock.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
BackupLock.Builder
Overrides

clearServiceLockInfo()

publicBackupLock.BuilderclearServiceLockInfo()

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

publicBackupLock.Builderclone()
Returns
Type Description
BackupLock.Builder
Overrides

getBackupApplianceLockInfo()

publicBackupApplianceLockInfogetBackupApplianceLockInfo()

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

publicBackupApplianceLockInfo.BuildergetBackupApplianceLockInfoBuilder()

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

publicBackupApplianceLockInfoOrBuildergetBackupApplianceLockInfoOrBuilder()

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

publicBackupLock.ClientLockInfoCasegetClientLockInfoCase()
Returns
Type Description
BackupLock.ClientLockInfoCase

getDefaultInstanceForType()

publicBackupLockgetDefaultInstanceForType()
Returns
Type Description
BackupLock

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getLockUntilTime()

publicTimestampgetLockUntilTime()

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

publicTimestamp.BuildergetLockUntilTimeBuilder()

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

publicTimestampOrBuildergetLockUntilTimeOrBuilder()

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

publicServiceLockInfogetServiceLockInfo()

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

publicServiceLockInfo.BuildergetServiceLockInfoBuilder()

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

publicServiceLockInfoOrBuildergetServiceLockInfoOrBuilder()

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

publicbooleanhasBackupApplianceLockInfo()

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

publicbooleanhasLockUntilTime()

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

publicbooleanhasServiceLockInfo()

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

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeBackupApplianceLockInfo(BackupApplianceLockInfo value)

publicBackupLock.BuildermergeBackupApplianceLockInfo(BackupApplianceLockInfovalue)

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)

publicBackupLock.BuildermergeFrom(BackupLockother)
Parameter
Name Description
other BackupLock
Returns
Type Description
BackupLock.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicBackupLock.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BackupLock.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicBackupLock.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
BackupLock.Builder
Overrides

mergeLockUntilTime(Timestamp value)

publicBackupLock.BuildermergeLockUntilTime(Timestampvalue)

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)

publicBackupLock.BuildermergeServiceLockInfo(ServiceLockInfovalue)

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)

publicfinalBackupLock.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BackupLock.Builder
Overrides

setBackupApplianceLockInfo(BackupApplianceLockInfo value)

publicBackupLock.BuildersetBackupApplianceLockInfo(BackupApplianceLockInfovalue)

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)

publicBackupLock.BuildersetBackupApplianceLockInfo(BackupApplianceLockInfo.BuilderbuilderForValue)

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)

publicBackupLock.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
BackupLock.Builder
Overrides

setLockUntilTime(Timestamp value)

publicBackupLock.BuildersetLockUntilTime(Timestampvalue)

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)

publicBackupLock.BuildersetLockUntilTime(Timestamp.BuilderbuilderForValue)

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)

publicBackupLock.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
BackupLock.Builder
Overrides

setServiceLockInfo(ServiceLockInfo value)

publicBackupLock.BuildersetServiceLockInfo(ServiceLockInfovalue)

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)

publicBackupLock.BuildersetServiceLockInfo(ServiceLockInfo.BuilderbuilderForValue)

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)

publicfinalBackupLock.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BackupLock.Builder
Overrides

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.