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 \ DocumentProcessingConfigMethods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ digital_parsing_config |
ParsingConfig\DigitalParsingConfig
Configurations applied to digital parser. |
↳ ocr_parsing_config |
ParsingConfig\OcrParsingConfig
Configurations applied to OCR parser. Currently it only applies to PDFs. |
↳ layout_parsing_config |
ParsingConfig\LayoutParsingConfig
Configurations applied to layout parser. |
getDigitalParsingConfig
Configurations applied to digital parser.
Returns | |
---|---|
Type | Description |
ParsingConfig\DigitalParsingConfig|null |
hasDigitalParsingConfig
setDigitalParsingConfig
Configurations applied to digital parser.
Parameter | |
---|---|
Name | Description |
var |
ParsingConfig\DigitalParsingConfig
|
Returns | |
---|---|
Type | Description |
$this |
getOcrParsingConfig
Configurations applied to OCR parser. Currently it only applies to PDFs.
Returns | |
---|---|
Type | Description |
ParsingConfig\OcrParsingConfig|null |
hasOcrParsingConfig
setOcrParsingConfig
Configurations applied to OCR parser. Currently it only applies to PDFs.
Parameter | |
---|---|
Name | Description |
var |
ParsingConfig\OcrParsingConfig
|
Returns | |
---|---|
Type | Description |
$this |
getLayoutParsingConfig
Configurations applied to layout parser.
Returns | |
---|---|
Type | Description |
ParsingConfig\LayoutParsingConfig|null |
hasLayoutParsingConfig
setLayoutParsingConfig
Configurations applied to layout parser.
Parameter | |
---|---|
Name | Description |
var |
ParsingConfig\LayoutParsingConfig
|
Returns | |
---|---|
Type | Description |
$this |
getTypeDedicatedConfig
Returns | |
---|---|
Type | Description |
string |