Class LockDocumentRequest.Builder (0.79.0)

public static final class LockDocumentRequest.Builder extends GeneratedMessage.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

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.

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.

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

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.

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.