Class ProcessOptions.Builder (2.39.0)

public static final class ProcessOptions.Builder extends GeneratedMessageV3.Builder<ProcessOptions.Builder> implements ProcessOptionsOrBuilder

Options for Process API

Protobuf type google.cloud.documentai.v1.ProcessOptions

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ProcessOptions build()
Returns
TypeDescription
ProcessOptions

buildPartial()

public ProcessOptions buildPartial()
Returns
TypeDescription
ProcessOptions

clear()

public ProcessOptions.Builder clear()
Returns
TypeDescription
ProcessOptions.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearFromEnd()

public ProcessOptions.Builder clearFromEnd()

Only process certain pages from the end, same as above.

int32 from_end = 7;

Returns
TypeDescription
ProcessOptions.Builder

This builder for chaining.

clearFromStart()

public ProcessOptions.Builder clearFromStart()

Only process certain pages from the start. Process all if the document has fewer pages.

int32 from_start = 6;

Returns
TypeDescription
ProcessOptions.Builder

This builder for chaining.

clearIndividualPageSelector()

public ProcessOptions.Builder clearIndividualPageSelector()

Which pages to process (1-indexed).

.google.cloud.documentai.v1.ProcessOptions.IndividualPageSelector individual_page_selector = 5;

Returns
TypeDescription
ProcessOptions.Builder

clearOcrConfig()

public ProcessOptions.Builder clearOcrConfig()

Only applicable to OCR_PROCESSOR. Returns error if set on other processor types.

.google.cloud.documentai.v1.OcrConfig ocr_config = 1;

Returns
TypeDescription
ProcessOptions.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public ProcessOptions.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ProcessOptions.Builder
Overrides

clearPageRange()

public ProcessOptions.Builder clearPageRange()
Returns
TypeDescription
ProcessOptions.Builder

clone()

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

getDefaultInstanceForType()

public ProcessOptions getDefaultInstanceForType()
Returns
TypeDescription
ProcessOptions

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFromEnd()

public int getFromEnd()

Only process certain pages from the end, same as above.

int32 from_end = 7;

Returns
TypeDescription
int

The fromEnd.

getFromStart()

public int getFromStart()

Only process certain pages from the start. Process all if the document has fewer pages.

int32 from_start = 6;

Returns
TypeDescription
int

The fromStart.

getIndividualPageSelector()

public ProcessOptions.IndividualPageSelector getIndividualPageSelector()

Which pages to process (1-indexed).

.google.cloud.documentai.v1.ProcessOptions.IndividualPageSelector individual_page_selector = 5;

Returns
TypeDescription
ProcessOptions.IndividualPageSelector

The individualPageSelector.

getIndividualPageSelectorBuilder()

public ProcessOptions.IndividualPageSelector.Builder getIndividualPageSelectorBuilder()

Which pages to process (1-indexed).

.google.cloud.documentai.v1.ProcessOptions.IndividualPageSelector individual_page_selector = 5;

Returns
TypeDescription
ProcessOptions.IndividualPageSelector.Builder

getIndividualPageSelectorOrBuilder()

public ProcessOptions.IndividualPageSelectorOrBuilder getIndividualPageSelectorOrBuilder()

Which pages to process (1-indexed).

.google.cloud.documentai.v1.ProcessOptions.IndividualPageSelector individual_page_selector = 5;

Returns
TypeDescription
ProcessOptions.IndividualPageSelectorOrBuilder

getOcrConfig()

public OcrConfig getOcrConfig()

Only applicable to OCR_PROCESSOR. Returns error if set on other processor types.

.google.cloud.documentai.v1.OcrConfig ocr_config = 1;

Returns
TypeDescription
OcrConfig

The ocrConfig.

getOcrConfigBuilder()

public OcrConfig.Builder getOcrConfigBuilder()

Only applicable to OCR_PROCESSOR. Returns error if set on other processor types.

.google.cloud.documentai.v1.OcrConfig ocr_config = 1;

Returns
TypeDescription
OcrConfig.Builder

getOcrConfigOrBuilder()

public OcrConfigOrBuilder getOcrConfigOrBuilder()

Only applicable to OCR_PROCESSOR. Returns error if set on other processor types.

.google.cloud.documentai.v1.OcrConfig ocr_config = 1;

Returns
TypeDescription
OcrConfigOrBuilder

getPageRangeCase()

public ProcessOptions.PageRangeCase getPageRangeCase()
Returns
TypeDescription
ProcessOptions.PageRangeCase

hasFromEnd()

public boolean hasFromEnd()

Only process certain pages from the end, same as above.

int32 from_end = 7;

Returns
TypeDescription
boolean

Whether the fromEnd field is set.

hasFromStart()

public boolean hasFromStart()

Only process certain pages from the start. Process all if the document has fewer pages.

int32 from_start = 6;

Returns
TypeDescription
boolean

Whether the fromStart field is set.

hasIndividualPageSelector()

public boolean hasIndividualPageSelector()

Which pages to process (1-indexed).

.google.cloud.documentai.v1.ProcessOptions.IndividualPageSelector individual_page_selector = 5;

Returns
TypeDescription
boolean

Whether the individualPageSelector field is set.

hasOcrConfig()

public boolean hasOcrConfig()

Only applicable to OCR_PROCESSOR. Returns error if set on other processor types.

.google.cloud.documentai.v1.OcrConfig ocr_config = 1;

Returns
TypeDescription
boolean

Whether the ocrConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ProcessOptions other)

public ProcessOptions.Builder mergeFrom(ProcessOptions other)
Parameter
NameDescription
otherProcessOptions
Returns
TypeDescription
ProcessOptions.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public ProcessOptions.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ProcessOptions.Builder
Overrides

mergeIndividualPageSelector(ProcessOptions.IndividualPageSelector value)

public ProcessOptions.Builder mergeIndividualPageSelector(ProcessOptions.IndividualPageSelector value)

Which pages to process (1-indexed).

.google.cloud.documentai.v1.ProcessOptions.IndividualPageSelector individual_page_selector = 5;

Parameter
NameDescription
valueProcessOptions.IndividualPageSelector
Returns
TypeDescription
ProcessOptions.Builder

mergeOcrConfig(OcrConfig value)

public ProcessOptions.Builder mergeOcrConfig(OcrConfig value)

Only applicable to OCR_PROCESSOR. Returns error if set on other processor types.

.google.cloud.documentai.v1.OcrConfig ocr_config = 1;

Parameter
NameDescription
valueOcrConfig
Returns
TypeDescription
ProcessOptions.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ProcessOptions.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ProcessOptions.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

setFromEnd(int value)

public ProcessOptions.Builder setFromEnd(int value)

Only process certain pages from the end, same as above.

int32 from_end = 7;

Parameter
NameDescription
valueint

The fromEnd to set.

Returns
TypeDescription
ProcessOptions.Builder

This builder for chaining.

setFromStart(int value)

public ProcessOptions.Builder setFromStart(int value)

Only process certain pages from the start. Process all if the document has fewer pages.

int32 from_start = 6;

Parameter
NameDescription
valueint

The fromStart to set.

Returns
TypeDescription
ProcessOptions.Builder

This builder for chaining.

setIndividualPageSelector(ProcessOptions.IndividualPageSelector value)

public ProcessOptions.Builder setIndividualPageSelector(ProcessOptions.IndividualPageSelector value)

Which pages to process (1-indexed).

.google.cloud.documentai.v1.ProcessOptions.IndividualPageSelector individual_page_selector = 5;

Parameter
NameDescription
valueProcessOptions.IndividualPageSelector
Returns
TypeDescription
ProcessOptions.Builder

setIndividualPageSelector(ProcessOptions.IndividualPageSelector.Builder builderForValue)

public ProcessOptions.Builder setIndividualPageSelector(ProcessOptions.IndividualPageSelector.Builder builderForValue)

Which pages to process (1-indexed).

.google.cloud.documentai.v1.ProcessOptions.IndividualPageSelector individual_page_selector = 5;

Parameter
NameDescription
builderForValueProcessOptions.IndividualPageSelector.Builder
Returns
TypeDescription
ProcessOptions.Builder

setOcrConfig(OcrConfig value)

public ProcessOptions.Builder setOcrConfig(OcrConfig value)

Only applicable to OCR_PROCESSOR. Returns error if set on other processor types.

.google.cloud.documentai.v1.OcrConfig ocr_config = 1;

Parameter
NameDescription
valueOcrConfig
Returns
TypeDescription
ProcessOptions.Builder

setOcrConfig(OcrConfig.Builder builderForValue)

public ProcessOptions.Builder setOcrConfig(OcrConfig.Builder builderForValue)

Only applicable to OCR_PROCESSOR. Returns error if set on other processor types.

.google.cloud.documentai.v1.OcrConfig ocr_config = 1;

Parameter
NameDescription
builderForValueOcrConfig.Builder
Returns
TypeDescription
ProcessOptions.Builder

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

public ProcessOptions.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ProcessOptions.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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