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
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()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public LockDocumentRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public LockDocumentRequest build()
buildPartial()
public LockDocumentRequest buildPartial()
clear()
public LockDocumentRequest.Builder clear()
Overrides
clearCollectionId()
public LockDocumentRequest.Builder clearCollectionId()
The collection the document connects to.
string collection_id = 2;
clearField(Descriptors.FieldDescriptor field)
public LockDocumentRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearLockingUser()
public LockDocumentRequest.Builder clearLockingUser()
The user information who locks the document.
.google.cloud.contentwarehouse.v1.UserInfo locking_user = 3;
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) = { ... }
clearOneof(Descriptors.OneofDescriptor oneof)
public LockDocumentRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public LockDocumentRequest.Builder clone()
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()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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;
getLockingUserOrBuilder()
public UserInfoOrBuilder getLockingUserOrBuilder()
The user information who locks the document.
.google.cloud.contentwarehouse.v1.UserInfo locking_user = 3;
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(LockDocumentRequest other)
public LockDocumentRequest.Builder mergeFrom(LockDocumentRequest other)
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public LockDocumentRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public LockDocumentRequest.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
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;
mergeUnknownFields(UnknownFieldSet unknownFields)
public final LockDocumentRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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.
|
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.
|
setField(Descriptors.FieldDescriptor field, Object value)
public LockDocumentRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
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;
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;
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.
|
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public LockDocumentRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final LockDocumentRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides