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
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()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public BackupLock.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public BackupLock build()
buildPartial()
public BackupLock buildPartial()
clear()
public BackupLock.Builder clear()
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;
clearClientLockInfo()
public BackupLock.Builder clearClientLockInfo()
clearField(Descriptors.FieldDescriptor field)
public BackupLock.Builder clearField(Descriptors.FieldDescriptor field)
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];
clearOneof(Descriptors.OneofDescriptor oneof)
public BackupLock.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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];
clone()
public BackupLock.Builder clone()
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;
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;
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;
getClientLockInfoCase()
public BackupLock.ClientLockInfoCase getClientLockInfoCase()
getDefaultInstanceForType()
public BackupLock getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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];
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];
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];
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];
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];
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()
Overrides
isInitialized()
public final boolean isInitialized()
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;
mergeFrom(BackupLock other)
public BackupLock.Builder mergeFrom(BackupLock other)
public BackupLock.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public BackupLock.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
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];
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];
mergeUnknownFields(UnknownFieldSet unknownFields)
public final BackupLock.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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;
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;
setField(Descriptors.FieldDescriptor field, Object value)
public BackupLock.Builder setField(Descriptors.FieldDescriptor field, Object value)
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];
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
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public BackupLock.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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];
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];
setUnknownFields(UnknownFieldSet unknownFields)
public final BackupLock.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides