public static final class OcrConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<OcrConfig.Builder> implements OcrConfigOrBuilder
Config for Document OCR.Protobuf type
google.cloud.documentai.v1beta3.OcrConfig| Modifier and Type | Method and Description |
|---|---|
OcrConfig.Builder |
addAdvancedOcrOptions(String value)
A list of advanced OCR options to further fine-tune OCR behavior.
|
OcrConfig.Builder |
addAdvancedOcrOptionsBytes(com.google.protobuf.ByteString value)
A list of advanced OCR options to further fine-tune OCR behavior.
|
OcrConfig.Builder |
addAllAdvancedOcrOptions(Iterable<String> values)
A list of advanced OCR options to further fine-tune OCR behavior.
|
OcrConfig.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
OcrConfig |
build() |
OcrConfig |
buildPartial() |
OcrConfig.Builder |
clear() |
OcrConfig.Builder |
clearAdvancedOcrOptions()
A list of advanced OCR options to further fine-tune OCR behavior.
|
OcrConfig.Builder |
clearComputeStyleInfo()
Deprecated.
google.cloud.documentai.v1beta3.OcrConfig.compute_style_info is deprecated. See
google/cloud/documentai/v1beta3/document_io.proto;l=165
|
OcrConfig.Builder |
clearDisableCharacterBoxesDetection()
Turn off character box detector in OCR engine.
|
OcrConfig.Builder |
clearEnableImageQualityScores()
Enables intelligent document quality scores after OCR.
|
OcrConfig.Builder |
clearEnableNativePdfParsing()
Enables special handling for PDFs with existing text information.
|
OcrConfig.Builder |
clearEnableSymbol()
Includes symbol level OCR information if set to true.
|
OcrConfig.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
OcrConfig.Builder |
clearHints()
Hints for the OCR model.
|
OcrConfig.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
OcrConfig.Builder |
clearPremiumFeatures()
Configurations for premium OCR features.
|
OcrConfig.Builder |
clone() |
String |
getAdvancedOcrOptions(int index)
A list of advanced OCR options to further fine-tune OCR behavior.
|
com.google.protobuf.ByteString |
getAdvancedOcrOptionsBytes(int index)
A list of advanced OCR options to further fine-tune OCR behavior.
|
int |
getAdvancedOcrOptionsCount()
A list of advanced OCR options to further fine-tune OCR behavior.
|
com.google.protobuf.ProtocolStringList |
getAdvancedOcrOptionsList()
A list of advanced OCR options to further fine-tune OCR behavior.
|
boolean |
getComputeStyleInfo()
Deprecated.
google.cloud.documentai.v1beta3.OcrConfig.compute_style_info is deprecated. See
google/cloud/documentai/v1beta3/document_io.proto;l=165
|
OcrConfig |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
boolean |
getDisableCharacterBoxesDetection()
Turn off character box detector in OCR engine.
|
boolean |
getEnableImageQualityScores()
Enables intelligent document quality scores after OCR.
|
boolean |
getEnableNativePdfParsing()
Enables special handling for PDFs with existing text information.
|
boolean |
getEnableSymbol()
Includes symbol level OCR information if set to true.
|
OcrConfig.Hints |
getHints()
Hints for the OCR model.
|
OcrConfig.Hints.Builder |
getHintsBuilder()
Hints for the OCR model.
|
OcrConfig.HintsOrBuilder |
getHintsOrBuilder()
Hints for the OCR model.
|
OcrConfig.PremiumFeatures |
getPremiumFeatures()
Configurations for premium OCR features.
|
OcrConfig.PremiumFeatures.Builder |
getPremiumFeaturesBuilder()
Configurations for premium OCR features.
|
OcrConfig.PremiumFeaturesOrBuilder |
getPremiumFeaturesOrBuilder()
Configurations for premium OCR features.
|
boolean |
hasHints()
Hints for the OCR model.
|
boolean |
hasPremiumFeatures()
Configurations for premium OCR features.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
OcrConfig.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
OcrConfig.Builder |
mergeFrom(com.google.protobuf.Message other) |
OcrConfig.Builder |
mergeFrom(OcrConfig other) |
OcrConfig.Builder |
mergeHints(OcrConfig.Hints value)
Hints for the OCR model.
|
OcrConfig.Builder |
mergePremiumFeatures(OcrConfig.PremiumFeatures value)
Configurations for premium OCR features.
|
OcrConfig.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
OcrConfig.Builder |
setAdvancedOcrOptions(int index,
String value)
A list of advanced OCR options to further fine-tune OCR behavior.
|
OcrConfig.Builder |
setComputeStyleInfo(boolean value)
Deprecated.
google.cloud.documentai.v1beta3.OcrConfig.compute_style_info is deprecated. See
google/cloud/documentai/v1beta3/document_io.proto;l=165
|
OcrConfig.Builder |
setDisableCharacterBoxesDetection(boolean value)
Turn off character box detector in OCR engine.
|
OcrConfig.Builder |
setEnableImageQualityScores(boolean value)
Enables intelligent document quality scores after OCR.
|
OcrConfig.Builder |
setEnableNativePdfParsing(boolean value)
Enables special handling for PDFs with existing text information.
|
OcrConfig.Builder |
setEnableSymbol(boolean value)
Includes symbol level OCR information if set to true.
|
OcrConfig.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
OcrConfig.Builder |
setHints(OcrConfig.Hints.Builder builderForValue)
Hints for the OCR model.
|
OcrConfig.Builder |
setHints(OcrConfig.Hints value)
Hints for the OCR model.
|
OcrConfig.Builder |
setPremiumFeatures(OcrConfig.PremiumFeatures.Builder builderForValue)
Configurations for premium OCR features.
|
OcrConfig.Builder |
setPremiumFeatures(OcrConfig.PremiumFeatures value)
Configurations for premium OCR features.
|
OcrConfig.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
OcrConfig.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<OcrConfig.Builder>public OcrConfig.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<OcrConfig.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<OcrConfig.Builder>public OcrConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic OcrConfig build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic OcrConfig buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic OcrConfig.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<OcrConfig.Builder>public OcrConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<OcrConfig.Builder>public OcrConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<OcrConfig.Builder>public OcrConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<OcrConfig.Builder>public OcrConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<OcrConfig.Builder>public OcrConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<OcrConfig.Builder>public OcrConfig.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<OcrConfig.Builder>public OcrConfig.Builder mergeFrom(OcrConfig other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<OcrConfig.Builder>public OcrConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<OcrConfig.Builder>IOExceptionpublic boolean hasHints()
Hints for the OCR model.
.google.cloud.documentai.v1beta3.OcrConfig.Hints hints = 2;hasHints in interface OcrConfigOrBuilderpublic OcrConfig.Hints getHints()
Hints for the OCR model.
.google.cloud.documentai.v1beta3.OcrConfig.Hints hints = 2;getHints in interface OcrConfigOrBuilderpublic OcrConfig.Builder setHints(OcrConfig.Hints value)
Hints for the OCR model.
.google.cloud.documentai.v1beta3.OcrConfig.Hints hints = 2;public OcrConfig.Builder setHints(OcrConfig.Hints.Builder builderForValue)
Hints for the OCR model.
.google.cloud.documentai.v1beta3.OcrConfig.Hints hints = 2;public OcrConfig.Builder mergeHints(OcrConfig.Hints value)
Hints for the OCR model.
.google.cloud.documentai.v1beta3.OcrConfig.Hints hints = 2;public OcrConfig.Builder clearHints()
Hints for the OCR model.
.google.cloud.documentai.v1beta3.OcrConfig.Hints hints = 2;public OcrConfig.Hints.Builder getHintsBuilder()
Hints for the OCR model.
.google.cloud.documentai.v1beta3.OcrConfig.Hints hints = 2;public OcrConfig.HintsOrBuilder getHintsOrBuilder()
Hints for the OCR model.
.google.cloud.documentai.v1beta3.OcrConfig.Hints hints = 2;getHintsOrBuilder in interface OcrConfigOrBuilderpublic 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;getEnableNativePdfParsing in interface OcrConfigOrBuilderpublic 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;value - The enableNativePdfParsing to set.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;public boolean getEnableImageQualityScores()
Enables intelligent document quality scores after OCR. Can help with diagnosing why OCR responses are of poor quality for a given input. Adds additional latency comparable to regular OCR to the process call.
bool enable_image_quality_scores = 4;getEnableImageQualityScores in interface OcrConfigOrBuilderpublic OcrConfig.Builder setEnableImageQualityScores(boolean value)
Enables intelligent document quality scores after OCR. Can help with diagnosing why OCR responses are of poor quality for a given input. Adds additional latency comparable to regular OCR to the process call.
bool enable_image_quality_scores = 4;value - The enableImageQualityScores to set.public OcrConfig.Builder clearEnableImageQualityScores()
Enables intelligent document quality scores after OCR. Can help with diagnosing why OCR responses are of poor quality for a given input. Adds additional latency comparable to regular OCR to the process call.
bool enable_image_quality_scores = 4;public com.google.protobuf.ProtocolStringList getAdvancedOcrOptionsList()
A list of advanced OCR options to further fine-tune OCR behavior. Current valid values are: - `legacy_layout`: a heuristics layout detection algorithm, which serves as an alternative to the current ML-based layout detection algorithm. Customers can choose the best suitable layout algorithm based on their situation.
repeated string advanced_ocr_options = 5;getAdvancedOcrOptionsList in interface OcrConfigOrBuilderpublic int getAdvancedOcrOptionsCount()
A list of advanced OCR options to further fine-tune OCR behavior. Current valid values are: - `legacy_layout`: a heuristics layout detection algorithm, which serves as an alternative to the current ML-based layout detection algorithm. Customers can choose the best suitable layout algorithm based on their situation.
repeated string advanced_ocr_options = 5;getAdvancedOcrOptionsCount in interface OcrConfigOrBuilderpublic String getAdvancedOcrOptions(int index)
A list of advanced OCR options to further fine-tune OCR behavior. Current valid values are: - `legacy_layout`: a heuristics layout detection algorithm, which serves as an alternative to the current ML-based layout detection algorithm. Customers can choose the best suitable layout algorithm based on their situation.
repeated string advanced_ocr_options = 5;getAdvancedOcrOptions in interface OcrConfigOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getAdvancedOcrOptionsBytes(int index)
A list of advanced OCR options to further fine-tune OCR behavior. Current valid values are: - `legacy_layout`: a heuristics layout detection algorithm, which serves as an alternative to the current ML-based layout detection algorithm. Customers can choose the best suitable layout algorithm based on their situation.
repeated string advanced_ocr_options = 5;getAdvancedOcrOptionsBytes in interface OcrConfigOrBuilderindex - The index of the value to return.public OcrConfig.Builder setAdvancedOcrOptions(int index, String value)
A list of advanced OCR options to further fine-tune OCR behavior. Current valid values are: - `legacy_layout`: a heuristics layout detection algorithm, which serves as an alternative to the current ML-based layout detection algorithm. Customers can choose the best suitable layout algorithm based on their situation.
repeated string advanced_ocr_options = 5;index - The index to set the value at.value - The advancedOcrOptions to set.public OcrConfig.Builder addAdvancedOcrOptions(String value)
A list of advanced OCR options to further fine-tune OCR behavior. Current valid values are: - `legacy_layout`: a heuristics layout detection algorithm, which serves as an alternative to the current ML-based layout detection algorithm. Customers can choose the best suitable layout algorithm based on their situation.
repeated string advanced_ocr_options = 5;value - The advancedOcrOptions to add.public OcrConfig.Builder addAllAdvancedOcrOptions(Iterable<String> values)
A list of advanced OCR options to further fine-tune OCR behavior. Current valid values are: - `legacy_layout`: a heuristics layout detection algorithm, which serves as an alternative to the current ML-based layout detection algorithm. Customers can choose the best suitable layout algorithm based on their situation.
repeated string advanced_ocr_options = 5;values - The advancedOcrOptions to add.public OcrConfig.Builder clearAdvancedOcrOptions()
A list of advanced OCR options to further fine-tune OCR behavior. Current valid values are: - `legacy_layout`: a heuristics layout detection algorithm, which serves as an alternative to the current ML-based layout detection algorithm. Customers can choose the best suitable layout algorithm based on their situation.
repeated string advanced_ocr_options = 5;public OcrConfig.Builder addAdvancedOcrOptionsBytes(com.google.protobuf.ByteString value)
A list of advanced OCR options to further fine-tune OCR behavior. Current valid values are: - `legacy_layout`: a heuristics layout detection algorithm, which serves as an alternative to the current ML-based layout detection algorithm. Customers can choose the best suitable layout algorithm based on their situation.
repeated string advanced_ocr_options = 5;value - The bytes of the advancedOcrOptions to add.public boolean getEnableSymbol()
Includes symbol level OCR information if set to true.
bool enable_symbol = 6;getEnableSymbol in interface OcrConfigOrBuilderpublic OcrConfig.Builder setEnableSymbol(boolean value)
Includes symbol level OCR information if set to true.
bool enable_symbol = 6;value - The enableSymbol to set.public OcrConfig.Builder clearEnableSymbol()
Includes symbol level OCR information if set to true.
bool enable_symbol = 6;@Deprecated public boolean getComputeStyleInfo()
Turn on font identification model and return font style information. Deprecated, use [PremiumFeatures.compute_style_info][google.cloud.documentai.v1beta3.OcrConfig.PremiumFeatures.compute_style_info] instead.
bool compute_style_info = 8 [deprecated = true];getComputeStyleInfo in interface OcrConfigOrBuilder@Deprecated public OcrConfig.Builder setComputeStyleInfo(boolean value)
Turn on font identification model and return font style information. Deprecated, use [PremiumFeatures.compute_style_info][google.cloud.documentai.v1beta3.OcrConfig.PremiumFeatures.compute_style_info] instead.
bool compute_style_info = 8 [deprecated = true];value - The computeStyleInfo to set.@Deprecated public OcrConfig.Builder clearComputeStyleInfo()
Turn on font identification model and return font style information. Deprecated, use [PremiumFeatures.compute_style_info][google.cloud.documentai.v1beta3.OcrConfig.PremiumFeatures.compute_style_info] instead.
bool compute_style_info = 8 [deprecated = true];public boolean getDisableCharacterBoxesDetection()
Turn off character box detector in OCR engine. Character box detection is enabled by default in OCR 2.0 (and later) processors.
bool disable_character_boxes_detection = 10;getDisableCharacterBoxesDetection in interface OcrConfigOrBuilderpublic OcrConfig.Builder setDisableCharacterBoxesDetection(boolean value)
Turn off character box detector in OCR engine. Character box detection is enabled by default in OCR 2.0 (and later) processors.
bool disable_character_boxes_detection = 10;value - The disableCharacterBoxesDetection to set.public OcrConfig.Builder clearDisableCharacterBoxesDetection()
Turn off character box detector in OCR engine. Character box detection is enabled by default in OCR 2.0 (and later) processors.
bool disable_character_boxes_detection = 10;public boolean hasPremiumFeatures()
Configurations for premium OCR features.
.google.cloud.documentai.v1beta3.OcrConfig.PremiumFeatures premium_features = 11;
hasPremiumFeatures in interface OcrConfigOrBuilderpublic OcrConfig.PremiumFeatures getPremiumFeatures()
Configurations for premium OCR features.
.google.cloud.documentai.v1beta3.OcrConfig.PremiumFeatures premium_features = 11;
getPremiumFeatures in interface OcrConfigOrBuilderpublic OcrConfig.Builder setPremiumFeatures(OcrConfig.PremiumFeatures value)
Configurations for premium OCR features.
.google.cloud.documentai.v1beta3.OcrConfig.PremiumFeatures premium_features = 11;
public OcrConfig.Builder setPremiumFeatures(OcrConfig.PremiumFeatures.Builder builderForValue)
Configurations for premium OCR features.
.google.cloud.documentai.v1beta3.OcrConfig.PremiumFeatures premium_features = 11;
public OcrConfig.Builder mergePremiumFeatures(OcrConfig.PremiumFeatures value)
Configurations for premium OCR features.
.google.cloud.documentai.v1beta3.OcrConfig.PremiumFeatures premium_features = 11;
public OcrConfig.Builder clearPremiumFeatures()
Configurations for premium OCR features.
.google.cloud.documentai.v1beta3.OcrConfig.PremiumFeatures premium_features = 11;
public OcrConfig.PremiumFeatures.Builder getPremiumFeaturesBuilder()
Configurations for premium OCR features.
.google.cloud.documentai.v1beta3.OcrConfig.PremiumFeatures premium_features = 11;
public OcrConfig.PremiumFeaturesOrBuilder getPremiumFeaturesOrBuilder()
Configurations for premium OCR features.
.google.cloud.documentai.v1beta3.OcrConfig.PremiumFeatures premium_features = 11;
getPremiumFeaturesOrBuilder in interface OcrConfigOrBuilderpublic final OcrConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<OcrConfig.Builder>public final OcrConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<OcrConfig.Builder>Copyright © 2024 Google LLC. All rights reserved.