Class ServiceLockInfo.Builder (0.11.0)

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public ServiceLockInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
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.

clone()

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

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public ServiceLockInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
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.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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