Class CreateDocumentLinkRequest.Builder (0.50.0)

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateDocumentLinkRequest build()
Returns
Type Description
CreateDocumentLinkRequest

buildPartial()

public CreateDocumentLinkRequest buildPartial()
Returns
Type Description
CreateDocumentLinkRequest

clear()

public CreateDocumentLinkRequest.Builder clear()
Returns
Type Description
CreateDocumentLinkRequest.Builder
Overrides
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
Type Description
CreateDocumentLinkRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateDocumentLinkRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CreateDocumentLinkRequest.Builder
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
Type Description
CreateDocumentLinkRequest.Builder

This builder for chaining.

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
Type Description
CreateDocumentLinkRequest.Builder

clone()

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

getDefaultInstanceForType()

public CreateDocumentLinkRequest getDefaultInstanceForType()
Returns
Type Description
CreateDocumentLinkRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides
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
Type Description
DocumentLink

The documentLink.

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
Type Description
DocumentLink.Builder

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
Type Description
DocumentLinkOrBuilder

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
Type Description
ByteString

The bytes for parent.

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
Type Description
RequestMetadata

The requestMetadata.

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
Type Description
RequestMetadata.Builder

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
Type Description
RequestMetadataOrBuilder
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
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides
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
Name Description
value DocumentLink
Returns
Type Description
CreateDocumentLinkRequest.Builder

mergeFrom(CreateDocumentLinkRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public CreateDocumentLinkRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CreateDocumentLinkRequest.Builder
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
Name Description
value RequestMetadata
Returns
Type Description
CreateDocumentLinkRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateDocumentLinkRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateDocumentLinkRequest.Builder
Overrides
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
Name Description
value DocumentLink
Returns
Type Description
CreateDocumentLinkRequest.Builder
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
Name Description
builderForValue DocumentLink.Builder
Returns
Type Description
CreateDocumentLinkRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public CreateDocumentLinkRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateDocumentLinkRequest.Builder
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
Type Description
CreateDocumentLinkRequest.Builder

This builder for chaining.

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
Type Description
CreateDocumentLinkRequest.Builder

This builder for chaining.

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

public CreateDocumentLinkRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CreateDocumentLinkRequest.Builder
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
Name Description
value RequestMetadata
Returns
Type Description
CreateDocumentLinkRequest.Builder

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
Name Description
builderForValue RequestMetadata.Builder
Returns
Type Description
CreateDocumentLinkRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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