Class ServiceLockInfo.Builder (0.42.0)

public static final class ServiceLockInfo.Builder extends GeneratedMessage.Builder<ServiceLockInfo.Builder> implements ServiceLockInfoOrBuilder

ServiceLockInfo represents the details of a lock taken by the service on a Backup resource.

Protobuf type google.cloud.backupdr.v1.ServiceLockInfo

Static Methods

getDescriptor()

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

Methods

build()

public ServiceLockInfo build()
Returns
Type Description
ServiceLockInfo

buildPartial()

public ServiceLockInfo buildPartial()
Returns
Type Description
ServiceLockInfo

clear()

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

clearOperation()

public ServiceLockInfo.Builder clearOperation()

Output only. The name of the operation that created this lock. The lock will automatically be released when the operation completes.

string operation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ServiceLockInfo.Builder

This builder for chaining.

getDefaultInstanceForType()

public ServiceLockInfo getDefaultInstanceForType()
Returns
Type Description
ServiceLockInfo

getDescriptorForType()

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

getOperation()

public String getOperation()

Output only. The name of the operation that created this lock. The lock will automatically be released when the operation completes.

string operation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The operation.

getOperationBytes()

public ByteString getOperationBytes()

Output only. The name of the operation that created this lock. The lock will automatically be released when the operation completes.

string operation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for operation.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ServiceLockInfo other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setOperation(String value)

public ServiceLockInfo.Builder setOperation(String value)

Output only. The name of the operation that created this lock. The lock will automatically be released when the operation completes.

string operation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The operation to set.

Returns
Type Description
ServiceLockInfo.Builder

This builder for chaining.

setOperationBytes(ByteString value)

public ServiceLockInfo.Builder setOperationBytes(ByteString value)

Output only. The name of the operation that created this lock. The lock will automatically be released when the operation completes.

string operation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for operation to set.

Returns
Type Description
ServiceLockInfo.Builder

This builder for chaining.