Class OcrConfig.PremiumFeatures (2.52.0)

public static final class OcrConfig.PremiumFeatures extends GeneratedMessageV3 implements OcrConfig.PremiumFeaturesOrBuilder

Configurations for premium OCR features.

Protobuf type google.cloud.documentai.v1.OcrConfig.PremiumFeatures

Static Fields

COMPUTE_STYLE_INFO_FIELD_NUMBER

public static final int COMPUTE_STYLE_INFO_FIELD_NUMBER
Field Value
Type Description
int

ENABLE_MATH_OCR_FIELD_NUMBER

public static final int ENABLE_MATH_OCR_FIELD_NUMBER
Field Value
Type Description
int

ENABLE_SELECTION_MARK_DETECTION_FIELD_NUMBER

public static final int ENABLE_SELECTION_MARK_DETECTION_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static OcrConfig.PremiumFeatures getDefaultInstance()
Returns
Type Description
OcrConfig.PremiumFeatures

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static OcrConfig.PremiumFeatures.Builder newBuilder()
Returns
Type Description
OcrConfig.PremiumFeatures.Builder

newBuilder(OcrConfig.PremiumFeatures prototype)

public static OcrConfig.PremiumFeatures.Builder newBuilder(OcrConfig.PremiumFeatures prototype)
Parameter
Name Description
prototype OcrConfig.PremiumFeatures
Returns
Type Description
OcrConfig.PremiumFeatures.Builder

parseDelimitedFrom(InputStream input)

public static OcrConfig.PremiumFeatures parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
OcrConfig.PremiumFeatures
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static OcrConfig.PremiumFeatures parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OcrConfig.PremiumFeatures
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static OcrConfig.PremiumFeatures parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
OcrConfig.PremiumFeatures
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static OcrConfig.PremiumFeatures parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OcrConfig.PremiumFeatures
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static OcrConfig.PremiumFeatures parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
OcrConfig.PremiumFeatures
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static OcrConfig.PremiumFeatures parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OcrConfig.PremiumFeatures
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static OcrConfig.PremiumFeatures parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
OcrConfig.PremiumFeatures
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static OcrConfig.PremiumFeatures parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OcrConfig.PremiumFeatures
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static OcrConfig.PremiumFeatures parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
OcrConfig.PremiumFeatures
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static OcrConfig.PremiumFeatures parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OcrConfig.PremiumFeatures
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static OcrConfig.PremiumFeatures parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
OcrConfig.PremiumFeatures
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static OcrConfig.PremiumFeatures parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OcrConfig.PremiumFeatures
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<OcrConfig.PremiumFeatures> parser()
Returns
Type Description
Parser<PremiumFeatures>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getComputeStyleInfo()

public boolean getComputeStyleInfo()

Turn on font identification model and return font style information.

bool compute_style_info = 4;

Returns
Type Description
boolean

The computeStyleInfo.

getDefaultInstanceForType()

public OcrConfig.PremiumFeatures getDefaultInstanceForType()
Returns
Type Description
OcrConfig.PremiumFeatures

getEnableMathOcr()

public boolean getEnableMathOcr()

Turn on the model that can extract LaTeX math formulas.

bool enable_math_ocr = 5;

Returns
Type Description
boolean

The enableMathOcr.

getEnableSelectionMarkDetection()

public boolean getEnableSelectionMarkDetection()

Turn on selection mark detector in OCR engine. Only available in OCR 2.0 (and later) processors.

bool enable_selection_mark_detection = 3;

Returns
Type Description
boolean

The enableSelectionMarkDetection.

getParserForType()

public Parser<OcrConfig.PremiumFeatures> getParserForType()
Returns
Type Description
Parser<PremiumFeatures>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public OcrConfig.PremiumFeatures.Builder newBuilderForType()
Returns
Type Description
OcrConfig.PremiumFeatures.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected OcrConfig.PremiumFeatures.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
OcrConfig.PremiumFeatures.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public OcrConfig.PremiumFeatures.Builder toBuilder()
Returns
Type Description
OcrConfig.PremiumFeatures.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException