Class ProcessDocumentRequest (2.33.0)

ProcessDocumentRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Request to process one document.

Attributes

Name Description
parent str
Target project and location to make a call. Format: projects/{project-id}/locations/{location-id}. If no location is specified, a region will be chosen automatically. This field is only populated when used in ProcessDocument method.
input_config google.cloud.documentai_v1beta2.types.InputConfig
Required. Information about the input file.
output_config google.cloud.documentai_v1beta2.types.OutputConfig
The desired output location. This field is only needed in BatchProcessDocumentsRequest.
document_type str
Specifies a known document type for deeper structure detection. Valid values are currently "general" and "invoice". If not provided, "general"\ is used as default. If any other value is given, the request is rejected.
table_extraction_params google.cloud.documentai_v1beta2.types.TableExtractionParams
Controls table extraction behavior. If not specified, the system will decide reasonable defaults.
form_extraction_params google.cloud.documentai_v1beta2.types.FormExtractionParams
Controls form extraction behavior. If not specified, the system will decide reasonable defaults.
entity_extraction_params google.cloud.documentai_v1beta2.types.EntityExtractionParams
Controls entity extraction behavior. If not specified, the system will decide reasonable defaults.
ocr_params google.cloud.documentai_v1beta2.types.OcrParams
Controls OCR behavior. If not specified, the system will decide reasonable defaults.
automl_params google.cloud.documentai_v1beta2.types.AutoMlParams
Controls AutoML model prediction behavior. AutoMlParams cannot be used together with other Params.