Class OcrConfig.PremiumFeatures (2.33.0)

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

Configurations for premium OCR features.

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

Static Fields

COMPUTE_STYLE_INFO_FIELD_NUMBER

public static final int COMPUTE_STYLE_INFO_FIELD_NUMBER
Field Value
TypeDescription
int

ENABLE_MATH_OCR_FIELD_NUMBER

public static final int ENABLE_MATH_OCR_FIELD_NUMBER
Field Value
TypeDescription
int

ENABLE_SELECTION_MARK_DETECTION_FIELD_NUMBER

public static final int ENABLE_SELECTION_MARK_DETECTION_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static OcrConfig.PremiumFeatures getDefaultInstance()
Returns
TypeDescription
OcrConfig.PremiumFeatures

getDescriptor()

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

newBuilder()

public static OcrConfig.PremiumFeatures.Builder newBuilder()
Returns
TypeDescription
OcrConfig.PremiumFeatures.Builder

newBuilder(OcrConfig.PremiumFeatures prototype)

public static OcrConfig.PremiumFeatures.Builder newBuilder(OcrConfig.PremiumFeatures prototype)
Parameter
NameDescription
prototypeOcrConfig.PremiumFeatures
Returns
TypeDescription
OcrConfig.PremiumFeatures.Builder

parseDelimitedFrom(InputStream input)

public static OcrConfig.PremiumFeatures parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
OcrConfig.PremiumFeatures
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static OcrConfig.PremiumFeatures parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OcrConfig.PremiumFeatures
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static OcrConfig.PremiumFeatures parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
OcrConfig.PremiumFeatures
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static OcrConfig.PremiumFeatures parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OcrConfig.PremiumFeatures
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static OcrConfig.PremiumFeatures parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
OcrConfig.PremiumFeatures
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static OcrConfig.PremiumFeatures parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OcrConfig.PremiumFeatures
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static OcrConfig.PremiumFeatures parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
OcrConfig.PremiumFeatures
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static OcrConfig.PremiumFeatures parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OcrConfig.PremiumFeatures
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static OcrConfig.PremiumFeatures parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
OcrConfig.PremiumFeatures
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static OcrConfig.PremiumFeatures parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OcrConfig.PremiumFeatures
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static OcrConfig.PremiumFeatures parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
OcrConfig.PremiumFeatures
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static OcrConfig.PremiumFeatures parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OcrConfig.PremiumFeatures
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getComputeStyleInfo()

public boolean getComputeStyleInfo()

Turn on font identification model and return font style information.

bool compute_style_info = 4;

Returns
TypeDescription
boolean

The computeStyleInfo.

getDefaultInstanceForType()

public OcrConfig.PremiumFeatures getDefaultInstanceForType()
Returns
TypeDescription
OcrConfig.PremiumFeatures

getEnableMathOcr()

public boolean getEnableMathOcr()

Turn on the model that can extract LaTeX math formulas.

bool enable_math_ocr = 5;

Returns
TypeDescription
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
TypeDescription
boolean

The enableSelectionMarkDetection.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public OcrConfig.PremiumFeatures.Builder newBuilderForType()
Returns
TypeDescription
OcrConfig.PremiumFeatures.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected OcrConfig.PremiumFeatures.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
OcrConfig.PremiumFeatures.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public OcrConfig.PremiumFeatures.Builder toBuilder()
Returns
TypeDescription
OcrConfig.PremiumFeatures.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException