Class UpdateDocumentRequest.Builder (0.47.0)

public static final class UpdateDocumentRequest.Builder extends GeneratedMessageV3.Builder<UpdateDocumentRequest.Builder> implements UpdateDocumentRequestOrBuilder

Request message for DocumentService.UpdateDocument.

Protobuf type google.cloud.contentwarehouse.v1.UpdateDocumentRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateDocumentRequest build()
Returns
Type Description
UpdateDocumentRequest

buildPartial()

public UpdateDocumentRequest buildPartial()
Returns
Type Description
UpdateDocumentRequest

clear()

public UpdateDocumentRequest.Builder clear()
Returns
Type Description
UpdateDocumentRequest.Builder
Overrides

clearCloudAiDocumentOption()

public UpdateDocumentRequest.Builder clearCloudAiDocumentOption()

Request Option for processing Cloud AI Document in Document Warehouse. This field offers limited support for mapping entities from Cloud AI Document to Warehouse Document. Please consult with product team before using this field and other available options.

.google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5;

Returns
Type Description
UpdateDocumentRequest.Builder

clearDocument()

public UpdateDocumentRequest.Builder clearDocument()

Required. The document to update.

.google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UpdateDocumentRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public UpdateDocumentRequest.Builder clearName()

Required. The name of the document to update. Format: projects/{project_number}/locations/{location}/documents/{document_id} or projects/{project_number}/locations/{location}/documents/referenceId/{reference_id}.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
UpdateDocumentRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public UpdateDocumentRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
UpdateDocumentRequest.Builder
Overrides

clearRequestMetadata()

public UpdateDocumentRequest.Builder clearRequestMetadata()

The meta information collected about the end user, used to enforce access control for the service.

.google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3;

Returns
Type Description
UpdateDocumentRequest.Builder

clearUpdateOptions()

public UpdateDocumentRequest.Builder clearUpdateOptions()

Options for the update operation.

.google.cloud.contentwarehouse.v1.UpdateOptions update_options = 6;

Returns
Type Description
UpdateDocumentRequest.Builder

clone()

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

getCloudAiDocumentOption()

public CloudAIDocumentOption getCloudAiDocumentOption()

Request Option for processing Cloud AI Document in Document Warehouse. This field offers limited support for mapping entities from Cloud AI Document to Warehouse Document. Please consult with product team before using this field and other available options.

.google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5;

Returns
Type Description
CloudAIDocumentOption

The cloudAiDocumentOption.

getCloudAiDocumentOptionBuilder()

public CloudAIDocumentOption.Builder getCloudAiDocumentOptionBuilder()

Request Option for processing Cloud AI Document in Document Warehouse. This field offers limited support for mapping entities from Cloud AI Document to Warehouse Document. Please consult with product team before using this field and other available options.

.google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5;

Returns
Type Description
CloudAIDocumentOption.Builder

getCloudAiDocumentOptionOrBuilder()

public CloudAIDocumentOptionOrBuilder getCloudAiDocumentOptionOrBuilder()

Request Option for processing Cloud AI Document in Document Warehouse. This field offers limited support for mapping entities from Cloud AI Document to Warehouse Document. Please consult with product team before using this field and other available options.

.google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5;

Returns
Type Description
CloudAIDocumentOptionOrBuilder

getDefaultInstanceForType()

public UpdateDocumentRequest getDefaultInstanceForType()
Returns
Type Description
UpdateDocumentRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDocument()

public Document getDocument()

Required. The document to update.

.google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Document

The document.

getDocumentBuilder()

public Document.Builder getDocumentBuilder()

Required. The document to update.

.google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Document.Builder

getDocumentOrBuilder()

public DocumentOrBuilder getDocumentOrBuilder()

Required. The document to update.

.google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DocumentOrBuilder

getName()

public String getName()

Required. The name of the document to update. Format: projects/{project_number}/locations/{location}/documents/{document_id} or projects/{project_number}/locations/{location}/documents/referenceId/{reference_id}.

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 update. Format: projects/{project_number}/locations/{location}/documents/{document_id} or projects/{project_number}/locations/{location}/documents/referenceId/{reference_id}.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for name.

getRequestMetadata()

public RequestMetadata getRequestMetadata()

The meta information collected about the end user, 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 end user, 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 end user, used to enforce access control for the service.

.google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3;

Returns
Type Description
RequestMetadataOrBuilder

getUpdateOptions()

public UpdateOptions getUpdateOptions()

Options for the update operation.

.google.cloud.contentwarehouse.v1.UpdateOptions update_options = 6;

Returns
Type Description
UpdateOptions

The updateOptions.

getUpdateOptionsBuilder()

public UpdateOptions.Builder getUpdateOptionsBuilder()

Options for the update operation.

.google.cloud.contentwarehouse.v1.UpdateOptions update_options = 6;

Returns
Type Description
UpdateOptions.Builder

getUpdateOptionsOrBuilder()

public UpdateOptionsOrBuilder getUpdateOptionsOrBuilder()

Options for the update operation.

.google.cloud.contentwarehouse.v1.UpdateOptions update_options = 6;

Returns
Type Description
UpdateOptionsOrBuilder

hasCloudAiDocumentOption()

public boolean hasCloudAiDocumentOption()

Request Option for processing Cloud AI Document in Document Warehouse. This field offers limited support for mapping entities from Cloud AI Document to Warehouse Document. Please consult with product team before using this field and other available options.

.google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5;

Returns
Type Description
boolean

Whether the cloudAiDocumentOption field is set.

hasDocument()

public boolean hasDocument()

Required. The document to update.

.google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the document field is set.

hasRequestMetadata()

public boolean hasRequestMetadata()

The meta information collected about the end user, 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.

hasUpdateOptions()

public boolean hasUpdateOptions()

Options for the update operation.

.google.cloud.contentwarehouse.v1.UpdateOptions update_options = 6;

Returns
Type Description
boolean

Whether the updateOptions field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCloudAiDocumentOption(CloudAIDocumentOption value)

public UpdateDocumentRequest.Builder mergeCloudAiDocumentOption(CloudAIDocumentOption value)

Request Option for processing Cloud AI Document in Document Warehouse. This field offers limited support for mapping entities from Cloud AI Document to Warehouse Document. Please consult with product team before using this field and other available options.

.google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5;

Parameter
Name Description
value CloudAIDocumentOption
Returns
Type Description
UpdateDocumentRequest.Builder

mergeDocument(Document value)

public UpdateDocumentRequest.Builder mergeDocument(Document value)

Required. The document to update.

.google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Document
Returns
Type Description
UpdateDocumentRequest.Builder

mergeFrom(UpdateDocumentRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public UpdateDocumentRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
UpdateDocumentRequest.Builder
Overrides

mergeRequestMetadata(RequestMetadata value)

public UpdateDocumentRequest.Builder mergeRequestMetadata(RequestMetadata value)

The meta information collected about the end user, used to enforce access control for the service.

.google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3;

Parameter
Name Description
value RequestMetadata
Returns
Type Description
UpdateDocumentRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UpdateDocumentRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
UpdateDocumentRequest.Builder
Overrides

mergeUpdateOptions(UpdateOptions value)

public UpdateDocumentRequest.Builder mergeUpdateOptions(UpdateOptions value)

Options for the update operation.

.google.cloud.contentwarehouse.v1.UpdateOptions update_options = 6;

Parameter
Name Description
value UpdateOptions
Returns
Type Description
UpdateDocumentRequest.Builder

setCloudAiDocumentOption(CloudAIDocumentOption value)

public UpdateDocumentRequest.Builder setCloudAiDocumentOption(CloudAIDocumentOption value)

Request Option for processing Cloud AI Document in Document Warehouse. This field offers limited support for mapping entities from Cloud AI Document to Warehouse Document. Please consult with product team before using this field and other available options.

.google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5;

Parameter
Name Description
value CloudAIDocumentOption
Returns
Type Description
UpdateDocumentRequest.Builder

setCloudAiDocumentOption(CloudAIDocumentOption.Builder builderForValue)

public UpdateDocumentRequest.Builder setCloudAiDocumentOption(CloudAIDocumentOption.Builder builderForValue)

Request Option for processing Cloud AI Document in Document Warehouse. This field offers limited support for mapping entities from Cloud AI Document to Warehouse Document. Please consult with product team before using this field and other available options.

.google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5;

Parameter
Name Description
builderForValue CloudAIDocumentOption.Builder
Returns
Type Description
UpdateDocumentRequest.Builder

setDocument(Document value)

public UpdateDocumentRequest.Builder setDocument(Document value)

Required. The document to update.

.google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Document
Returns
Type Description
UpdateDocumentRequest.Builder

setDocument(Document.Builder builderForValue)

public UpdateDocumentRequest.Builder setDocument(Document.Builder builderForValue)

Required. The document to update.

.google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Document.Builder
Returns
Type Description
UpdateDocumentRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public UpdateDocumentRequest.Builder setName(String value)

Required. The name of the document to update. Format: projects/{project_number}/locations/{location}/documents/{document_id} or projects/{project_number}/locations/{location}/documents/referenceId/{reference_id}.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The name to set.

Returns
Type Description
UpdateDocumentRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public UpdateDocumentRequest.Builder setNameBytes(ByteString value)

Required. The name of the document to update. Format: projects/{project_number}/locations/{location}/documents/{document_id} or projects/{project_number}/locations/{location}/documents/referenceId/{reference_id}.

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
UpdateDocumentRequest.Builder

This builder for chaining.

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

public UpdateDocumentRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
UpdateDocumentRequest.Builder
Overrides

setRequestMetadata(RequestMetadata value)

public UpdateDocumentRequest.Builder setRequestMetadata(RequestMetadata value)

The meta information collected about the end user, used to enforce access control for the service.

.google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3;

Parameter
Name Description
value RequestMetadata
Returns
Type Description
UpdateDocumentRequest.Builder

setRequestMetadata(RequestMetadata.Builder builderForValue)

public UpdateDocumentRequest.Builder setRequestMetadata(RequestMetadata.Builder builderForValue)

The meta information collected about the end user, 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
UpdateDocumentRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateOptions(UpdateOptions value)

public UpdateDocumentRequest.Builder setUpdateOptions(UpdateOptions value)

Options for the update operation.

.google.cloud.contentwarehouse.v1.UpdateOptions update_options = 6;

Parameter
Name Description
value UpdateOptions
Returns
Type Description
UpdateDocumentRequest.Builder

setUpdateOptions(UpdateOptions.Builder builderForValue)

public UpdateDocumentRequest.Builder setUpdateOptions(UpdateOptions.Builder builderForValue)

Options for the update operation.

.google.cloud.contentwarehouse.v1.UpdateOptions update_options = 6;

Parameter
Name Description
builderForValue UpdateOptions.Builder
Returns
Type Description
UpdateDocumentRequest.Builder