Class LockDocumentRequest.Builder (0.39.0)

public static final class LockDocumentRequest.Builder extends GeneratedMessageV3.Builder<LockDocumentRequest.Builder> implements LockDocumentRequestOrBuilder

Request message for DocumentService.LockDocument.

Protobuf type google.cloud.contentwarehouse.v1.LockDocumentRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public LockDocumentRequest build()
Returns
Type Description
LockDocumentRequest

buildPartial()

public LockDocumentRequest buildPartial()
Returns
Type Description
LockDocumentRequest

clear()

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

clearCollectionId()

public LockDocumentRequest.Builder clearCollectionId()

The collection the document connects to.

string collection_id = 2;

Returns
Type Description
LockDocumentRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearLockingUser()

public LockDocumentRequest.Builder clearLockingUser()

The user information who locks the document.

.google.cloud.contentwarehouse.v1.UserInfo locking_user = 3;

Returns
Type Description
LockDocumentRequest.Builder

clearName()

public LockDocumentRequest.Builder clearName()

Required. The name of the document to lock. Format: projects/{project_number}/locations/{location}/documents/{document}.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
LockDocumentRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public LockDocumentRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
LockDocumentRequest.Builder
Overrides

clone()

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

getCollectionId()

public String getCollectionId()

The collection the document connects to.

string collection_id = 2;

Returns
Type Description
String

The collectionId.

getCollectionIdBytes()

public ByteString getCollectionIdBytes()

The collection the document connects to.

string collection_id = 2;

Returns
Type Description
ByteString

The bytes for collectionId.

getDefaultInstanceForType()

public LockDocumentRequest getDefaultInstanceForType()
Returns
Type Description
LockDocumentRequest

getDescriptorForType()

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

getLockingUser()

public UserInfo getLockingUser()

The user information who locks the document.

.google.cloud.contentwarehouse.v1.UserInfo locking_user = 3;

Returns
Type Description
UserInfo

The lockingUser.

getLockingUserBuilder()

public UserInfo.Builder getLockingUserBuilder()

The user information who locks the document.

.google.cloud.contentwarehouse.v1.UserInfo locking_user = 3;

Returns
Type Description
UserInfo.Builder

getLockingUserOrBuilder()

public UserInfoOrBuilder getLockingUserOrBuilder()

The user information who locks the document.

.google.cloud.contentwarehouse.v1.UserInfo locking_user = 3;

Returns
Type Description
UserInfoOrBuilder

getName()

public String getName()

Required. The name of the document to lock. Format: projects/{project_number}/locations/{location}/documents/{document}.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The name of the document to lock. Format: projects/{project_number}/locations/{location}/documents/{document}.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for name.

hasLockingUser()

public boolean hasLockingUser()

The user information who locks the document.

.google.cloud.contentwarehouse.v1.UserInfo locking_user = 3;

Returns
Type Description
boolean

Whether the lockingUser field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(LockDocumentRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeLockingUser(UserInfo value)

public LockDocumentRequest.Builder mergeLockingUser(UserInfo value)

The user information who locks the document.

.google.cloud.contentwarehouse.v1.UserInfo locking_user = 3;

Parameter
Name Description
value UserInfo
Returns
Type Description
LockDocumentRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCollectionId(String value)

public LockDocumentRequest.Builder setCollectionId(String value)

The collection the document connects to.

string collection_id = 2;

Parameter
Name Description
value String

The collectionId to set.

Returns
Type Description
LockDocumentRequest.Builder

This builder for chaining.

setCollectionIdBytes(ByteString value)

public LockDocumentRequest.Builder setCollectionIdBytes(ByteString value)

The collection the document connects to.

string collection_id = 2;

Parameter
Name Description
value ByteString

The bytes for collectionId to set.

Returns
Type Description
LockDocumentRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setLockingUser(UserInfo value)

public LockDocumentRequest.Builder setLockingUser(UserInfo value)

The user information who locks the document.

.google.cloud.contentwarehouse.v1.UserInfo locking_user = 3;

Parameter
Name Description
value UserInfo
Returns
Type Description
LockDocumentRequest.Builder

setLockingUser(UserInfo.Builder builderForValue)

public LockDocumentRequest.Builder setLockingUser(UserInfo.Builder builderForValue)

The user information who locks the document.

.google.cloud.contentwarehouse.v1.UserInfo locking_user = 3;

Parameter
Name Description
builderForValue UserInfo.Builder
Returns
Type Description
LockDocumentRequest.Builder

setName(String value)

public LockDocumentRequest.Builder setName(String value)

Required. The name of the document to lock. Format: projects/{project_number}/locations/{location}/documents/{document}.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The name to set.

Returns
Type Description
LockDocumentRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public LockDocumentRequest.Builder setNameBytes(ByteString value)

Required. The name of the document to lock. Format: projects/{project_number}/locations/{location}/documents/{document}.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
LockDocumentRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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