Class ProcessOptions.Builder (2.24.0)

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

Options for Process API

Protobuf type google.cloud.documentai.v1beta3.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

clearOcrConfig()

public ProcessOptions.Builder clearOcrConfig()

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

.google.cloud.documentai.v1beta3.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

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

getOcrConfig()

public OcrConfig getOcrConfig()

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

.google.cloud.documentai.v1beta3.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.v1beta3.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.v1beta3.OcrConfig ocr_config = 1;

Returns
TypeDescription
OcrConfigOrBuilder

hasOcrConfig()

public boolean hasOcrConfig()

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

.google.cloud.documentai.v1beta3.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

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.v1beta3.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

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.v1beta3.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.v1beta3.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