Reference documentation and code samples for the Google Cloud Document Ai V1 Client class ProcessOptions.
Options for Process API
Generated from protobuf message google.cloud.documentai.v1.ProcessOptions
Namespace
Google \ Cloud \ DocumentAI \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ individual_page_selector
↳ from_start
int
Only process certain pages from the start. Process all if the document has fewer pages.
↳ from_end
int
Only process certain pages from the end, same as above.
↳ ocr_config
OcrConfig
Only applicable to OCR_PROCESSOR
and FORM_PARSER_PROCESSOR
. Returns error if set on other processor types.
↳ layout_config
ProcessOptions\LayoutConfig
Optional. Only applicable to LAYOUT_PARSER_PROCESSOR
. Returns error if set on other processor types.
↳ schema_override
DocumentSchema
Optional. Override the schema of the ProcessorVersion . Will return an Invalid Argument error if this field is set when the underlying ProcessorVersion doesn't support schema override.
getIndividualPageSelector
Which pages to process (1-indexed).
hasIndividualPageSelector
setIndividualPageSelector
Which pages to process (1-indexed).
$this
getFromStart
Only process certain pages from the start. Process all if the document has fewer pages.
int
hasFromStart
setFromStart
Only process certain pages from the start. Process all if the document has fewer pages.
var
int
$this
getFromEnd
Only process certain pages from the end, same as above.
int
hasFromEnd
setFromEnd
Only process certain pages from the end, same as above.
var
int
$this
getOcrConfig
Only applicable to OCR_PROCESSOR
and FORM_PARSER_PROCESSOR
.
Returns error if set on other processor types.
hasOcrConfig
clearOcrConfig
setOcrConfig
Only applicable to OCR_PROCESSOR
and FORM_PARSER_PROCESSOR
.
Returns error if set on other processor types.
$this
getLayoutConfig
Optional. Only applicable to LAYOUT_PARSER_PROCESSOR
.
Returns error if set on other processor types.
hasLayoutConfig
clearLayoutConfig
setLayoutConfig
Optional. Only applicable to LAYOUT_PARSER_PROCESSOR
.
Returns error if set on other processor types.
$this
getSchemaOverride
Optional. Override the schema of the ProcessorVersion . Will return an Invalid Argument error if this field is set when the underlying ProcessorVersion doesn't support schema override.
hasSchemaOverride
clearSchemaOverride
setSchemaOverride
Optional. Override the schema of the ProcessorVersion . Will return an Invalid Argument error if this field is set when the underlying ProcessorVersion doesn't support schema override.
$this
getPageRange
string