Package com.google.cloud.documentai.v1
Class BatchProcessRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<BatchProcessRequest.Builder>
com.google.cloud.documentai.v1.BatchProcessRequest.Builder
- All Implemented Interfaces:
BatchProcessRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- BatchProcessRequest
public static final class BatchProcessRequest.Builder
extends com.google.protobuf.GeneratedMessage.Builder<BatchProcessRequest.Builder>
implements BatchProcessRequestOrBuilder
Request message for [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments].Protobuf type
google.cloud.documentai.v1.BatchProcessRequest-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The output configuration for the [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments] method.The input documents for the [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments] method.Required.Inference-time options for the process APIWhether human review should be skipped for this request.booleancontainsLabels(String key) Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe output configuration for the [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments] method.The output configuration for the [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments] method.The output configuration for the [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments] method.The input documents for the [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments] method.The input documents for the [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments] method.The input documents for the [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments] method.Deprecated.intOptional.Optional.getLabelsOrDefault(String key, String defaultValue) Optional.getLabelsOrThrow(String key) Optional.Deprecated.getName()Required.com.google.protobuf.ByteStringRequired.Inference-time options for the process APIInference-time options for the process APIInference-time options for the process APIbooleanWhether human review should be skipped for this request.booleanThe output configuration for the [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments] method.booleanThe input documents for the [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments] method.booleanInference-time options for the process APIprotected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanThe output configuration for the [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments] method.mergeFrom(BatchProcessRequest other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) The input documents for the [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments] method.Inference-time options for the process APIputAllLabels(Map<String, String> values) Optional.Optional.removeLabels(String key) Optional.The output configuration for the [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments] method.setDocumentOutputConfig(DocumentOutputConfig.Builder builderForValue) The output configuration for the [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments] method.The input documents for the [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments] method.setInputDocuments(BatchDocumentsInputConfig.Builder builderForValue) The input documents for the [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments] method.Required.setNameBytes(com.google.protobuf.ByteString value) Required.setProcessOptions(ProcessOptions value) Inference-time options for the process APIsetProcessOptions(ProcessOptions.Builder builderForValue) Inference-time options for the process APIsetSkipHumanReview(boolean value) Whether human review should be skipped for this request.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<BatchProcessRequest.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<BatchProcessRequest.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<BatchProcessRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<BatchProcessRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<BatchProcessRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BatchProcessRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<BatchProcessRequest.Builder>
-
mergeFrom
public BatchProcessRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BatchProcessRequest.Builder>- Throws:
IOException
-
getName
Required. The resource name of [Processor][google.cloud.documentai.v1.Processor] or [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion]. Format: `projects/{project}/locations/{location}/processors/{processor}`, or `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}`string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getNamein interfaceBatchProcessRequestOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Required. The resource name of [Processor][google.cloud.documentai.v1.Processor] or [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion]. Format: `projects/{project}/locations/{location}/processors/{processor}`, or `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}`string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getNameBytesin interfaceBatchProcessRequestOrBuilder- Returns:
- The bytes for name.
-
setName
Required. The resource name of [Processor][google.cloud.documentai.v1.Processor] or [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion]. Format: `projects/{project}/locations/{location}/processors/{processor}`, or `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}`string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Required. The resource name of [Processor][google.cloud.documentai.v1.Processor] or [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion]. Format: `projects/{project}/locations/{location}/processors/{processor}`, or `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}`string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setNameBytes
Required. The resource name of [Processor][google.cloud.documentai.v1.Processor] or [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion]. Format: `projects/{project}/locations/{location}/processors/{processor}`, or `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}`string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasInputDocuments
public boolean hasInputDocuments()The input documents for the [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments] method.
.google.cloud.documentai.v1.BatchDocumentsInputConfig input_documents = 5;- Specified by:
hasInputDocumentsin interfaceBatchProcessRequestOrBuilder- Returns:
- Whether the inputDocuments field is set.
-
getInputDocuments
The input documents for the [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments] method.
.google.cloud.documentai.v1.BatchDocumentsInputConfig input_documents = 5;- Specified by:
getInputDocumentsin interfaceBatchProcessRequestOrBuilder- Returns:
- The inputDocuments.
-
setInputDocuments
The input documents for the [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments] method.
.google.cloud.documentai.v1.BatchDocumentsInputConfig input_documents = 5; -
setInputDocuments
public BatchProcessRequest.Builder setInputDocuments(BatchDocumentsInputConfig.Builder builderForValue) The input documents for the [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments] method.
.google.cloud.documentai.v1.BatchDocumentsInputConfig input_documents = 5; -
mergeInputDocuments
The input documents for the [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments] method.
.google.cloud.documentai.v1.BatchDocumentsInputConfig input_documents = 5; -
clearInputDocuments
The input documents for the [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments] method.
.google.cloud.documentai.v1.BatchDocumentsInputConfig input_documents = 5; -
getInputDocumentsBuilder
The input documents for the [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments] method.
.google.cloud.documentai.v1.BatchDocumentsInputConfig input_documents = 5; -
getInputDocumentsOrBuilder
The input documents for the [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments] method.
.google.cloud.documentai.v1.BatchDocumentsInputConfig input_documents = 5;- Specified by:
getInputDocumentsOrBuilderin interfaceBatchProcessRequestOrBuilder
-
hasDocumentOutputConfig
public boolean hasDocumentOutputConfig()The output configuration for the [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments] method.
.google.cloud.documentai.v1.DocumentOutputConfig document_output_config = 6;- Specified by:
hasDocumentOutputConfigin interfaceBatchProcessRequestOrBuilder- Returns:
- Whether the documentOutputConfig field is set.
-
getDocumentOutputConfig
The output configuration for the [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments] method.
.google.cloud.documentai.v1.DocumentOutputConfig document_output_config = 6;- Specified by:
getDocumentOutputConfigin interfaceBatchProcessRequestOrBuilder- Returns:
- The documentOutputConfig.
-
setDocumentOutputConfig
The output configuration for the [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments] method.
.google.cloud.documentai.v1.DocumentOutputConfig document_output_config = 6; -
setDocumentOutputConfig
public BatchProcessRequest.Builder setDocumentOutputConfig(DocumentOutputConfig.Builder builderForValue) The output configuration for the [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments] method.
.google.cloud.documentai.v1.DocumentOutputConfig document_output_config = 6; -
mergeDocumentOutputConfig
The output configuration for the [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments] method.
.google.cloud.documentai.v1.DocumentOutputConfig document_output_config = 6; -
clearDocumentOutputConfig
The output configuration for the [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments] method.
.google.cloud.documentai.v1.DocumentOutputConfig document_output_config = 6; -
getDocumentOutputConfigBuilder
The output configuration for the [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments] method.
.google.cloud.documentai.v1.DocumentOutputConfig document_output_config = 6; -
getDocumentOutputConfigOrBuilder
The output configuration for the [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments] method.
.google.cloud.documentai.v1.DocumentOutputConfig document_output_config = 6;- Specified by:
getDocumentOutputConfigOrBuilderin interfaceBatchProcessRequestOrBuilder
-
getSkipHumanReview
public boolean getSkipHumanReview()Whether human review should be skipped for this request. Default to `false`.
bool skip_human_review = 4;- Specified by:
getSkipHumanReviewin interfaceBatchProcessRequestOrBuilder- Returns:
- The skipHumanReview.
-
setSkipHumanReview
Whether human review should be skipped for this request. Default to `false`.
bool skip_human_review = 4;- Parameters:
value- The skipHumanReview to set.- Returns:
- This builder for chaining.
-
clearSkipHumanReview
Whether human review should be skipped for this request. Default to `false`.
bool skip_human_review = 4;- Returns:
- This builder for chaining.
-
hasProcessOptions
public boolean hasProcessOptions()Inference-time options for the process API
.google.cloud.documentai.v1.ProcessOptions process_options = 7;- Specified by:
hasProcessOptionsin interfaceBatchProcessRequestOrBuilder- Returns:
- Whether the processOptions field is set.
-
getProcessOptions
Inference-time options for the process API
.google.cloud.documentai.v1.ProcessOptions process_options = 7;- Specified by:
getProcessOptionsin interfaceBatchProcessRequestOrBuilder- Returns:
- The processOptions.
-
setProcessOptions
Inference-time options for the process API
.google.cloud.documentai.v1.ProcessOptions process_options = 7; -
setProcessOptions
Inference-time options for the process API
.google.cloud.documentai.v1.ProcessOptions process_options = 7; -
mergeProcessOptions
Inference-time options for the process API
.google.cloud.documentai.v1.ProcessOptions process_options = 7; -
clearProcessOptions
Inference-time options for the process API
.google.cloud.documentai.v1.ProcessOptions process_options = 7; -
getProcessOptionsBuilder
Inference-time options for the process API
.google.cloud.documentai.v1.ProcessOptions process_options = 7; -
getProcessOptionsOrBuilder
Inference-time options for the process API
.google.cloud.documentai.v1.ProcessOptions process_options = 7;- Specified by:
getProcessOptionsOrBuilderin interfaceBatchProcessRequestOrBuilder
-
getLabelsCount
public int getLabelsCount()Description copied from interface:BatchProcessRequestOrBuilderOptional. The labels with user-defined metadata for the request. Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter.
map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLabelsCountin interfaceBatchProcessRequestOrBuilder
-
containsLabels
Optional. The labels with user-defined metadata for the request. Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter.
map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
containsLabelsin interfaceBatchProcessRequestOrBuilder
-
getLabels
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceBatchProcessRequestOrBuilder
-
getLabelsMap
Optional. The labels with user-defined metadata for the request. Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter.
map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLabelsMapin interfaceBatchProcessRequestOrBuilder
-
getLabelsOrDefault
Optional. The labels with user-defined metadata for the request. Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter.
map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLabelsOrDefaultin interfaceBatchProcessRequestOrBuilder
-
getLabelsOrThrow
Optional. The labels with user-defined metadata for the request. Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter.
map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLabelsOrThrowin interfaceBatchProcessRequestOrBuilder
-
clearLabels
-
removeLabels
Optional. The labels with user-defined metadata for the request. Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter.
map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; -
getMutableLabels
Deprecated.Use alternate mutation accessors instead. -
putLabels
Optional. The labels with user-defined metadata for the request. Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter.
map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; -
putAllLabels
Optional. The labels with user-defined metadata for the request. Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter.
map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
-