Google Cloud Discovery Engine V1 Client - Class OcrParsingConfig (1.0.0)

Reference documentation and code samples for the Google Cloud Discovery Engine V1 Client class OcrParsingConfig.

The OCR parsing configurations for documents.

Generated from protobuf message google.cloud.discoveryengine.v1.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig

Namespace

Google \ Cloud \ DiscoveryEngine \ V1 \ DocumentProcessingConfig \ ParsingConfig

Methods

__construct

Constructor.

Parameters
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ enhanced_document_elementsarray

[DEPRECATED] This field is deprecated. To use the additional enhanced document elements processing, please switch to layout_parsing_config.

↳ use_native_textbool

If true, will use native text instead of OCR text on pages containing native text.

getEnhancedDocumentElements

[DEPRECATED] This field is deprecated. To use the additional enhanced document elements processing, please switch to layout_parsing_config.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setEnhancedDocumentElements

[DEPRECATED] This field is deprecated. To use the additional enhanced document elements processing, please switch to layout_parsing_config.

Parameter
NameDescription
varstring[]
Returns
TypeDescription
$this

getUseNativeText

If true, will use native text instead of OCR text on pages containing native text.

Returns
TypeDescription
bool

setUseNativeText

If true, will use native text instead of OCR text on pages containing native text.

Parameter
NameDescription
varbool
Returns
TypeDescription
$this