public static final class CreateDocumentLinkRequest.Builder extends GeneratedMessageV3.Builder<CreateDocumentLinkRequest.Builder> implements CreateDocumentLinkRequestOrBuilder
Request message for DocumentLinkService.CreateDocumentLink.
Protobuf type google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
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()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateDocumentLinkRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public CreateDocumentLinkRequest build()
Returns
buildPartial()
public CreateDocumentLinkRequest buildPartial()
Returns
clear()
public CreateDocumentLinkRequest.Builder clear()
Returns
Overrides
clearDocumentLink()
public CreateDocumentLinkRequest.Builder clearDocumentLink()
Required. Document links associated with the source documents (source_document_id).
.google.cloud.contentwarehouse.v1.DocumentLink document_link = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
clearField(Descriptors.FieldDescriptor field)
public CreateDocumentLinkRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateDocumentLinkRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearParent()
public CreateDocumentLinkRequest.Builder clearParent()
Required. Parent of the document-link to be created.
parent of document-link should be a document.
Format:
projects/{project_number}/locations/{location}/documents/{source_document_id}.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
clearRequestMetadata()
public CreateDocumentLinkRequest.Builder clearRequestMetadata()
The meta information collected about the document creator, used to enforce
access control for the service.
.google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3;
Returns
clone()
public CreateDocumentLinkRequest.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public CreateDocumentLinkRequest getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getDocumentLink()
public DocumentLink getDocumentLink()
Required. Document links associated with the source documents (source_document_id).
.google.cloud.contentwarehouse.v1.DocumentLink document_link = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
getDocumentLinkBuilder()
public DocumentLink.Builder getDocumentLinkBuilder()
Required. Document links associated with the source documents (source_document_id).
.google.cloud.contentwarehouse.v1.DocumentLink document_link = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
getDocumentLinkOrBuilder()
public DocumentLinkOrBuilder getDocumentLinkOrBuilder()
Required. Document links associated with the source documents (source_document_id).
.google.cloud.contentwarehouse.v1.DocumentLink document_link = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
getParent()
public String getParent()
Required. Parent of the document-link to be created.
parent of document-link should be a document.
Format:
projects/{project_number}/locations/{location}/documents/{source_document_id}.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
Type | Description |
String | The parent.
|
getParentBytes()
public ByteString getParentBytes()
Required. Parent of the document-link to be created.
parent of document-link should be a document.
Format:
projects/{project_number}/locations/{location}/documents/{source_document_id}.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
getRequestMetadata()
public RequestMetadata getRequestMetadata()
The meta information collected about the document creator, used to enforce
access control for the service.
.google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3;
Returns
getRequestMetadataBuilder()
public RequestMetadata.Builder getRequestMetadataBuilder()
The meta information collected about the document creator, used to enforce
access control for the service.
.google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3;
Returns
getRequestMetadataOrBuilder()
public RequestMetadataOrBuilder getRequestMetadataOrBuilder()
The meta information collected about the document creator, used to enforce
access control for the service.
.google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3;
Returns
hasDocumentLink()
public boolean hasDocumentLink()
Required. Document links associated with the source documents (source_document_id).
.google.cloud.contentwarehouse.v1.DocumentLink document_link = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
Type | Description |
boolean | Whether the documentLink field is set.
|
hasRequestMetadata()
public boolean hasRequestMetadata()
The meta information collected about the document creator, used to enforce
access control for the service.
.google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3;
Returns
Type | Description |
boolean | Whether the requestMetadata field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeDocumentLink(DocumentLink value)
public CreateDocumentLinkRequest.Builder mergeDocumentLink(DocumentLink value)
Required. Document links associated with the source documents (source_document_id).
.google.cloud.contentwarehouse.v1.DocumentLink document_link = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
mergeFrom(CreateDocumentLinkRequest other)
public CreateDocumentLinkRequest.Builder mergeFrom(CreateDocumentLinkRequest other)
Parameter
Returns
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public CreateDocumentLinkRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public CreateDocumentLinkRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeRequestMetadata(RequestMetadata value)
public CreateDocumentLinkRequest.Builder mergeRequestMetadata(RequestMetadata value)
The meta information collected about the document creator, used to enforce
access control for the service.
.google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3;
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateDocumentLinkRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setDocumentLink(DocumentLink value)
public CreateDocumentLinkRequest.Builder setDocumentLink(DocumentLink value)
Required. Document links associated with the source documents (source_document_id).
.google.cloud.contentwarehouse.v1.DocumentLink document_link = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
setDocumentLink(DocumentLink.Builder builderForValue)
public CreateDocumentLinkRequest.Builder setDocumentLink(DocumentLink.Builder builderForValue)
Required. Document links associated with the source documents (source_document_id).
.google.cloud.contentwarehouse.v1.DocumentLink document_link = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public CreateDocumentLinkRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setParent(String value)
public CreateDocumentLinkRequest.Builder setParent(String value)
Required. Parent of the document-link to be created.
parent of document-link should be a document.
Format:
projects/{project_number}/locations/{location}/documents/{source_document_id}.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter
Name | Description |
value | String
The parent to set.
|
Returns
setParentBytes(ByteString value)
public CreateDocumentLinkRequest.Builder setParentBytes(ByteString value)
Required. Parent of the document-link to be created.
parent of document-link should be a document.
Format:
projects/{project_number}/locations/{location}/documents/{source_document_id}.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter
Name | Description |
value | ByteString
The bytes for parent to set.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateDocumentLinkRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setRequestMetadata(RequestMetadata value)
public CreateDocumentLinkRequest.Builder setRequestMetadata(RequestMetadata value)
The meta information collected about the document creator, used to enforce
access control for the service.
.google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3;
Parameter
Returns
setRequestMetadata(RequestMetadata.Builder builderForValue)
public CreateDocumentLinkRequest.Builder setRequestMetadata(RequestMetadata.Builder builderForValue)
The meta information collected about the document creator, used to enforce
access control for the service.
.google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3;
Parameter
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateDocumentLinkRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides