Class ServiceLockInfo.Builder (0.37.0)

publicstaticfinalclass ServiceLockInfo.BuilderextendsGeneratedMessageV3.Builder<ServiceLockInfo.Builder>implementsServiceLockInfoOrBuilder

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

Protobuf type google.cloud.backupdr.v1.ServiceLockInfo

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)

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

build()

publicServiceLockInfobuild()
Returns
Type Description
ServiceLockInfo

buildPartial()

publicServiceLockInfobuildPartial()
Returns
Type Description
ServiceLockInfo

clear()

publicServiceLockInfo.Builderclear()
Returns
Type Description
ServiceLockInfo.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

publicServiceLockInfo.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ServiceLockInfo.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

publicServiceLockInfo.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ServiceLockInfo.Builder
Overrides

clearOperation()

publicServiceLockInfo.BuilderclearOperation()

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

publicServiceLockInfo.Builderclone()
Returns
Type Description
ServiceLockInfo.Builder
Overrides

getDefaultInstanceForType()

publicServiceLockInfogetDefaultInstanceForType()
Returns
Type Description
ServiceLockInfo

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getOperation()

publicStringgetOperation()

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

publicByteStringgetOperationBytes()

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

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ServiceLockInfo other)

publicServiceLockInfo.BuildermergeFrom(ServiceLockInfoother)
Parameter
Name Description
other ServiceLockInfo
Returns
Type Description
ServiceLockInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

publicServiceLockInfo.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
ServiceLockInfo.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalServiceLockInfo.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ServiceLockInfo.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

setOperation(String value)

publicServiceLockInfo.BuildersetOperation(Stringvalue)

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)

publicServiceLockInfo.BuildersetOperationBytes(ByteStringvalue)

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)

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

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalServiceLockInfo.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ServiceLockInfo.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.