Google Cloud Discovery Engine V1 Client - Class ParsingConfig (1.1.0)

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

Related configurations applied to a specific type of document parser.

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

Namespace

Google \ Cloud \ DiscoveryEngine \ V1 \ DocumentProcessingConfig

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ digital_parsing_config Google\Cloud\DiscoveryEngine\V1\DocumentProcessingConfig\ParsingConfig\DigitalParsingConfig

Configurations applied to digital parser.

↳ ocr_parsing_config Google\Cloud\DiscoveryEngine\V1\DocumentProcessingConfig\ParsingConfig\OcrParsingConfig

Configurations applied to OCR parser. Currently it only applies to PDFs.

↳ layout_parsing_config Google\Cloud\DiscoveryEngine\V1\DocumentProcessingConfig\ParsingConfig\LayoutParsingConfig

Configurations applied to layout parser.

getDigitalParsingConfig

Configurations applied to digital parser.

Returns
Type Description
Google\Cloud\DiscoveryEngine\V1\DocumentProcessingConfig\ParsingConfig\DigitalParsingConfig|null

hasDigitalParsingConfig

setDigitalParsingConfig

Configurations applied to digital parser.

Parameter
Name Description
var Google\Cloud\DiscoveryEngine\V1\DocumentProcessingConfig\ParsingConfig\DigitalParsingConfig
Returns
Type Description
$this

getOcrParsingConfig

Configurations applied to OCR parser. Currently it only applies to PDFs.

Returns
Type Description
Google\Cloud\DiscoveryEngine\V1\DocumentProcessingConfig\ParsingConfig\OcrParsingConfig|null

hasOcrParsingConfig

setOcrParsingConfig

Configurations applied to OCR parser. Currently it only applies to PDFs.

Parameter
Name Description
var Google\Cloud\DiscoveryEngine\V1\DocumentProcessingConfig\ParsingConfig\OcrParsingConfig
Returns
Type Description
$this

getLayoutParsingConfig

Configurations applied to layout parser.

Returns
Type Description
Google\Cloud\DiscoveryEngine\V1\DocumentProcessingConfig\ParsingConfig\LayoutParsingConfig|null

hasLayoutParsingConfig

setLayoutParsingConfig

Configurations applied to layout parser.

Parameter
Name Description
var Google\Cloud\DiscoveryEngine\V1\DocumentProcessingConfig\ParsingConfig\LayoutParsingConfig
Returns
Type Description
$this

getTypeDedicatedConfig

Returns
Type Description
string