public static final class OcrConfig.Builder extends GeneratedMessageV3.Builder<OcrConfig.Builder> implements OcrConfigOrBuilder
Config for Document OCR.
Protobuf type google.cloud.documentai.v1beta3.OcrConfig
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addAdvancedOcrOptions(String value)
public OcrConfig.Builder addAdvancedOcrOptions(String value)
A list of advanced OCR options to further fine-tune OCR behavior.
repeated string advanced_ocr_options = 5;
Parameter
Name | Description |
value | String
The advancedOcrOptions to add.
|
Returns
addAdvancedOcrOptionsBytes(ByteString value)
public OcrConfig.Builder addAdvancedOcrOptionsBytes(ByteString value)
A list of advanced OCR options to further fine-tune OCR behavior.
repeated string advanced_ocr_options = 5;
Parameter
Name | Description |
value | ByteString
The bytes of the advancedOcrOptions to add.
|
Returns
addAllAdvancedOcrOptions(Iterable<String> values)
public OcrConfig.Builder addAllAdvancedOcrOptions(Iterable<String> values)
A list of advanced OCR options to further fine-tune OCR behavior.
repeated string advanced_ocr_options = 5;
Parameter
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public OcrConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
Returns
buildPartial()
public OcrConfig buildPartial()
Returns
clear()
public OcrConfig.Builder clear()
Returns
Overrides
clearAdvancedOcrOptions()
public OcrConfig.Builder clearAdvancedOcrOptions()
A list of advanced OCR options to further fine-tune OCR behavior.
repeated string advanced_ocr_options = 5;
Returns
clearEnableNativePdfParsing()
public OcrConfig.Builder clearEnableNativePdfParsing()
Enables special handling for PDFs with existing text information. Results
in better text extraction quality in such PDF inputs.
bool enable_native_pdf_parsing = 3;
Returns
clearField(Descriptors.FieldDescriptor field)
public OcrConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public OcrConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public OcrConfig.Builder clone()
Returns
Overrides
getAdvancedOcrOptions(int index)
public String getAdvancedOcrOptions(int index)
A list of advanced OCR options to further fine-tune OCR behavior.
repeated string advanced_ocr_options = 5;
Parameter
Name | Description |
index | int
The index of the element to return.
|
Returns
Type | Description |
String | The advancedOcrOptions at the given index.
|
getAdvancedOcrOptionsBytes(int index)
public ByteString getAdvancedOcrOptionsBytes(int index)
A list of advanced OCR options to further fine-tune OCR behavior.
repeated string advanced_ocr_options = 5;
Parameter
Name | Description |
index | int
The index of the value to return.
|
Returns
Type | Description |
ByteString | The bytes of the advancedOcrOptions at the given index.
|
getAdvancedOcrOptionsCount()
public int getAdvancedOcrOptionsCount()
A list of advanced OCR options to further fine-tune OCR behavior.
repeated string advanced_ocr_options = 5;
Returns
Type | Description |
int | The count of advancedOcrOptions.
|
getAdvancedOcrOptionsList()
public ProtocolStringList getAdvancedOcrOptionsList()
A list of advanced OCR options to further fine-tune OCR behavior.
repeated string advanced_ocr_options = 5;
Returns
getDefaultInstanceForType()
public OcrConfig getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getEnableNativePdfParsing()
public boolean getEnableNativePdfParsing()
Enables special handling for PDFs with existing text information. Results
in better text extraction quality in such PDF inputs.
bool enable_native_pdf_parsing = 3;
Returns
Type | Description |
boolean | The enableNativePdfParsing.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(OcrConfig other)
public OcrConfig.Builder mergeFrom(OcrConfig other)
Parameter
Returns
public OcrConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public OcrConfig.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final OcrConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setAdvancedOcrOptions(int index, String value)
public OcrConfig.Builder setAdvancedOcrOptions(int index, String value)
A list of advanced OCR options to further fine-tune OCR behavior.
repeated string advanced_ocr_options = 5;
Parameters
Name | Description |
index | int
The index to set the value at.
|
value | String
The advancedOcrOptions to set.
|
Returns
setEnableNativePdfParsing(boolean value)
public OcrConfig.Builder setEnableNativePdfParsing(boolean value)
Enables special handling for PDFs with existing text information. Results
in better text extraction quality in such PDF inputs.
bool enable_native_pdf_parsing = 3;
Parameter
Name | Description |
value | boolean
The enableNativePdfParsing to set.
|
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public OcrConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public OcrConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final OcrConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides