Class CreateDocumentLinkRequest.Builder (0.13.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateDocumentLinkRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CreateDocumentLinkRequest.Builder
Overrides

build()

public CreateDocumentLinkRequest build()
Returns
TypeDescription
CreateDocumentLinkRequest

buildPartial()

public CreateDocumentLinkRequest buildPartial()
Returns
TypeDescription
CreateDocumentLinkRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

public CreateDocumentLinkRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CreateDocumentLinkRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateDocumentLinkRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
CreateDocumentLinkRequest.Builder

clone()

public CreateDocumentLinkRequest.Builder clone()
Returns
TypeDescription
CreateDocumentLinkRequest.Builder
Overrides

getDefaultInstanceForType()

public CreateDocumentLinkRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateDocumentLinkRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the requestMetadata field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueDocumentLink
Returns
TypeDescription
CreateDocumentLinkRequest.Builder

mergeFrom(CreateDocumentLinkRequest other)

public CreateDocumentLinkRequest.Builder mergeFrom(CreateDocumentLinkRequest other)
Parameter
NameDescription
otherCreateDocumentLinkRequest
Returns
TypeDescription
CreateDocumentLinkRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CreateDocumentLinkRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateDocumentLinkRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public CreateDocumentLinkRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueRequestMetadata
Returns
TypeDescription
CreateDocumentLinkRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateDocumentLinkRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueDocumentLink
Returns
TypeDescription
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
NameDescription
builderForValueDocumentLink.Builder
Returns
TypeDescription
CreateDocumentLinkRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public CreateDocumentLinkRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The parent to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueRequestMetadata
Returns
TypeDescription
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
NameDescription
builderForValueRequestMetadata.Builder
Returns
TypeDescription
CreateDocumentLinkRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateDocumentLinkRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CreateDocumentLinkRequest.Builder
Overrides