Skip to content

Commit 60f54e6

Browse files
feat(documentai): update the api
#### documentai:v1 The following keys were added: - schemas.GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsMetadata.properties.destDatasetType.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiUiv1beta3DocumentIdGCSManagedDocumentId.properties.cwDocId.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataIndividualImportStatus.properties.outputDocumentId.$ref (Total Keys: 1) - schemas.GoogleCloudDocumentaiUiv1beta3SampleDocumentsResponse.properties.sampleTestStatus.$ref (Total Keys: 1) - schemas.GoogleCloudDocumentaiUiv1beta3SampleDocumentsResponse.properties.sampleTrainingStatus.$ref (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1BatchProcessRequest.properties.processOptions.$ref (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1Document.properties.textStyles.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1DocumentPage.properties.provenance.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1DocumentPageAnchorPageRef.properties.layoutId.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1DocumentPageBlock.properties.provenance.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1DocumentPageLine.properties.provenance.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1DocumentPageParagraph.properties.provenance.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1DocumentPageTable.properties.provenance.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1DocumentPageToken.properties.provenance.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1DocumentProvenance.properties.id.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1DocumentProvenanceParent.properties.id.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1DocumentTextChange.properties.provenance.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1OcrConfig (Total Keys: 13) - schemas.GoogleCloudDocumentaiV1ProcessOptions (Total Keys: 3) - schemas.GoogleCloudDocumentaiV1ProcessRequest.properties.gcsDocument.$ref (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1ProcessRequest.properties.processOptions.$ref (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta1Document.properties.textStyles.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta1DocumentPage.properties.provenance.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta1DocumentPageAnchorPageRef.properties.layoutId.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta1DocumentPageBlock.properties.provenance.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta1DocumentPageLine.properties.provenance.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta1DocumentPageParagraph.properties.provenance.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta1DocumentPageTable.properties.provenance.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta1DocumentPageToken.properties.provenance.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta1DocumentProvenance.properties.id.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta1DocumentProvenanceParent.properties.id.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta1DocumentTextChange.properties.provenance.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta2Document.properties.textStyles.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta2DocumentPage.properties.provenance.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta2DocumentPageAnchorPageRef.properties.layoutId.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta2DocumentPageBlock.properties.provenance.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta2DocumentPageLine.properties.provenance.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta2DocumentPageParagraph.properties.provenance.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta2DocumentPageTable.properties.provenance.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta2DocumentPageToken.properties.provenance.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta2DocumentProvenance.properties.id.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta2DocumentProvenanceParent.properties.id.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta2DocumentTextChange.properties.provenance.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsMetadata (Total Keys: 13) - schemas.GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsResponse (Total Keys: 2) - schemas.GoogleCloudDocumentaiV1beta3BatchProcessMetadataIndividualProcessStatus.properties.humanReviewOperation.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta3Dataset (Total Keys: 21) - schemas.GoogleCloudDocumentaiV1beta3DocumentId (Total Keys: 12) - schemas.GoogleCloudDocumentaiV1beta3GcsPrefix (Total Keys: 3) - schemas.GoogleCloudDocumentaiV1beta3ImportDocumentsMetadata (Total Keys: 18) - schemas.GoogleCloudDocumentaiV1beta3ImportDocumentsResponse (Total Keys: 2) - schemas.GoogleCloudDocumentaiV1beta3UpdateDatasetOperationMetadata (Total Keys: 3) #### documentai:v1beta2 The following keys were added: - schemas.GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsMetadata.properties.destDatasetType.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiUiv1beta3DocumentIdGCSManagedDocumentId.properties.cwDocId.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataIndividualImportStatus.properties.outputDocumentId.$ref (Total Keys: 1) - schemas.GoogleCloudDocumentaiUiv1beta3SampleDocumentsResponse.properties.sampleTestStatus.$ref (Total Keys: 1) - schemas.GoogleCloudDocumentaiUiv1beta3SampleDocumentsResponse.properties.sampleTrainingStatus.$ref (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta1Document.properties.textStyles.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta1DocumentPage.properties.provenance.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta1DocumentPageAnchorPageRef.properties.layoutId.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta1DocumentPageBlock.properties.provenance.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta1DocumentPageLine.properties.provenance.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta1DocumentPageParagraph.properties.provenance.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta1DocumentPageTable.properties.provenance.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta1DocumentPageToken.properties.provenance.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta1DocumentProvenance.properties.id.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta1DocumentProvenanceParent.properties.id.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta1DocumentTextChange.properties.provenance.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta2Document.properties.textStyles.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta2DocumentPage.properties.provenance.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta2DocumentPageAnchorPageRef.properties.layoutId.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta2DocumentPageBlock.properties.provenance.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta2DocumentPageLine.properties.provenance.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta2DocumentPageParagraph.properties.provenance.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta2DocumentPageTable.properties.provenance.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta2DocumentPageToken.properties.provenance.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta2DocumentProvenance.properties.id.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta2DocumentProvenanceParent.properties.id.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta2DocumentTextChange.properties.provenance.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsMetadata (Total Keys: 13) - schemas.GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsResponse (Total Keys: 2) - schemas.GoogleCloudDocumentaiV1beta3BatchProcessMetadataIndividualProcessStatus.properties.humanReviewOperation.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta3Dataset (Total Keys: 21) - schemas.GoogleCloudDocumentaiV1beta3DocumentId (Total Keys: 12) - schemas.GoogleCloudDocumentaiV1beta3GcsPrefix (Total Keys: 3) - schemas.GoogleCloudDocumentaiV1beta3ImportDocumentsMetadata (Total Keys: 18) - schemas.GoogleCloudDocumentaiV1beta3ImportDocumentsResponse (Total Keys: 2) - schemas.GoogleCloudDocumentaiV1beta3UpdateDatasetOperationMetadata (Total Keys: 3) #### documentai:v1beta3 The following keys were added: - resources.projects.resources.locations.resources.processors.resources.dataset.methods.batchDeleteDocuments (Total Keys: 12) - resources.projects.resources.locations.resources.processors.resources.dataset.methods.getDocument (Total Keys: 27) - resources.projects.resources.locations.resources.processors.resources.dataset.methods.importDocuments (Total Keys: 12) - schemas.GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsMetadata.properties.destDatasetType.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiUiv1beta3DocumentIdGCSManagedDocumentId.properties.cwDocId.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataIndividualImportStatus.properties.outputDocumentId.$ref (Total Keys: 1) - schemas.GoogleCloudDocumentaiUiv1beta3SampleDocumentsResponse.properties.sampleTestStatus.$ref (Total Keys: 1) - schemas.GoogleCloudDocumentaiUiv1beta3SampleDocumentsResponse.properties.sampleTrainingStatus.$ref (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta1Document.properties.textStyles.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta1DocumentPage.properties.provenance.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta1DocumentPageAnchorPageRef.properties.layoutId.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta1DocumentPageBlock.properties.provenance.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta1DocumentPageLine.properties.provenance.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta1DocumentPageParagraph.properties.provenance.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta1DocumentPageTable.properties.provenance.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta1DocumentPageToken.properties.provenance.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta1DocumentProvenance.properties.id.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta1DocumentProvenanceParent.properties.id.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta1DocumentTextChange.properties.provenance.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta2Document.properties.textStyles.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta2DocumentPage.properties.provenance.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta2DocumentPageAnchorPageRef.properties.layoutId.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta2DocumentPageBlock.properties.provenance.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta2DocumentPageLine.properties.provenance.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta2DocumentPageParagraph.properties.provenance.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta2DocumentPageTable.properties.provenance.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta2DocumentPageToken.properties.provenance.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta2DocumentProvenance.properties.id.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta2DocumentProvenanceParent.properties.id.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta2DocumentTextChange.properties.provenance.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta3BatchDatasetDocuments (Total Keys: 8) - schemas.GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsMetadata (Total Keys: 13) - schemas.GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsRequest (Total Keys: 3) - schemas.GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsResponse (Total Keys: 2) - schemas.GoogleCloudDocumentaiV1beta3BatchProcessMetadataIndividualProcessStatus.properties.humanReviewOperation.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta3BatchProcessRequest.properties.inputConfigs.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta3BatchProcessRequest.properties.outputConfig.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta3BatchProcessRequestBatchInputConfig.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta3BatchProcessRequestBatchOutputConfig.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta3Document.properties.textStyles.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta3DocumentId (Total Keys: 12) - schemas.GoogleCloudDocumentaiV1beta3DocumentPage.properties.provenance.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta3DocumentPageAnchorPageRef.properties.layoutId.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta3DocumentPageBlock.properties.provenance.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta3DocumentPageLine.properties.provenance.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta3DocumentPageParagraph.properties.provenance.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta3DocumentPageTable.properties.provenance.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta3DocumentPageToken.properties.provenance.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta3DocumentProvenance.properties.id.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta3DocumentProvenanceParent.properties.id.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta3DocumentTextChange.properties.provenance.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta3GetDocumentResponse (Total Keys: 3) - schemas.GoogleCloudDocumentaiV1beta3ImportDocumentsMetadata (Total Keys: 18) - schemas.GoogleCloudDocumentaiV1beta3ImportDocumentsRequest (Total Keys: 13) - schemas.GoogleCloudDocumentaiV1beta3ImportDocumentsResponse (Total Keys: 2) - schemas.GoogleCloudDocumentaiV1beta3ProcessRequest.properties.document.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta3ProcessRequest.properties.gcsDocument.$ref (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta3ProcessResponse.properties.humanReviewOperation.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta3ReviewDocumentRequest.properties.document.deprecated (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta3UpdateDatasetOperationMetadata (Total Keys: 3)
1 parent 239e897 commit 60f54e6

8 files changed

+2454
-3
lines changed

docs/dyn/documentai_v1.projects.locations.processors.html

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,22 @@ <h3>Method Details</h3>
151151
&quot;gcsUriPrefix&quot;: &quot;A String&quot;, # The URI prefix.
152152
},
153153
},
154+
&quot;processOptions&quot;: { # Options for Process API # Inference-time options for the process API
155+
&quot;ocrConfig&quot;: { # Config for Document OCR. # Only applicable to `OCR_PROCESSOR`. Returns error if set on other processor types.
156+
&quot;advancedOcrOptions&quot;: [ # A list of advanced OCR options to further fine-tune OCR behavior. Current valid values are: - `legacy_layout`: a heuristics layout detection algorithm, which serves as an alternative to the current ML-based layout detection algorithm. Customers can choose the best suitable layout algorithm based on their situation.
157+
&quot;A String&quot;,
158+
],
159+
&quot;computeStyleInfo&quot;: True or False, # Turn on font id model and returns font style information.
160+
&quot;enableImageQualityScores&quot;: True or False, # Enables intelligent document quality scores after OCR. Can help with diagnosing why OCR responses are of poor quality for a given input. Adds additional latency comparable to regular OCR to the process call.
161+
&quot;enableNativePdfParsing&quot;: True or False, # Enables special handling for PDFs with existing text information. Results in better text extraction quality in such PDF inputs.
162+
&quot;enableSymbol&quot;: True or False, # Includes symbol level OCR information if set to true.
163+
&quot;hints&quot;: { # Hints for OCR Engine # Hints for the OCR model.
164+
&quot;languageHints&quot;: [ # List of BCP-47 language codes to use for OCR. In most cases, not specifying it yields the best results since it enables automatic language detection. For languages based on the Latin alphabet, setting hints is not needed. In rare cases, when the language of the text in the image is known, setting a hint will help get better results (although it will be a significant hindrance if the hint is wrong).
165+
&quot;A String&quot;,
166+
],
167+
},
168+
},
169+
},
154170
&quot;skipHumanReview&quot;: True or False, # Whether human review should be skipped for this request. Default to `false`.
155171
}
156172

@@ -429,6 +445,10 @@ <h3>Method Details</h3>
429445

430446
{ # Request message for the ProcessDocument method.
431447
&quot;fieldMask&quot;: &quot;A String&quot;, # Specifies which fields to include in the ProcessResponse.document output. Only supports top-level document and pages field, so it must be in the form of `{document_field_name}` or `pages.{page_field_name}`.
448+
&quot;gcsDocument&quot;: { # Specifies a document stored on Cloud Storage. # A raw document on Google Cloud Storage.
449+
&quot;gcsUri&quot;: &quot;A String&quot;, # The Cloud Storage object uri.
450+
&quot;mimeType&quot;: &quot;A String&quot;, # An IANA MIME type (RFC6838) of the content.
451+
},
432452
&quot;inlineDocument&quot;: { # Document represents the canonical document resource in Document AI. It is an interchange format that provides insights into documents and allows for collaboration between users and Document AI to iterate and optimize for quality. # An inline document proto.
433453
&quot;content&quot;: &quot;A String&quot;, # Optional. Inline document content, represented as a stream of bytes. Note: As with all `bytes` fields, protobuffers use a pure binary representation, whereas JSON representations use base64.
434454
&quot;entities&quot;: [ # A list of entities detected on Document.text. For document shards, entities in this list may cross shard boundaries.
@@ -1275,6 +1295,22 @@ <h3>Method Details</h3>
12751295
],
12761296
&quot;uri&quot;: &quot;A String&quot;, # Optional. Currently supports Google Cloud Storage URI of the form `gs://bucket_name/object_name`. Object versioning is not supported. For more information, refer to [Google Cloud Storage Request URIs](https://cloud.google.com/storage/docs/reference-uris).
12771297
},
1298+
&quot;processOptions&quot;: { # Options for Process API # Inference-time options for the process API
1299+
&quot;ocrConfig&quot;: { # Config for Document OCR. # Only applicable to `OCR_PROCESSOR`. Returns error if set on other processor types.
1300+
&quot;advancedOcrOptions&quot;: [ # A list of advanced OCR options to further fine-tune OCR behavior. Current valid values are: - `legacy_layout`: a heuristics layout detection algorithm, which serves as an alternative to the current ML-based layout detection algorithm. Customers can choose the best suitable layout algorithm based on their situation.
1301+
&quot;A String&quot;,
1302+
],
1303+
&quot;computeStyleInfo&quot;: True or False, # Turn on font id model and returns font style information.
1304+
&quot;enableImageQualityScores&quot;: True or False, # Enables intelligent document quality scores after OCR. Can help with diagnosing why OCR responses are of poor quality for a given input. Adds additional latency comparable to regular OCR to the process call.
1305+
&quot;enableNativePdfParsing&quot;: True or False, # Enables special handling for PDFs with existing text information. Results in better text extraction quality in such PDF inputs.
1306+
&quot;enableSymbol&quot;: True or False, # Includes symbol level OCR information if set to true.
1307+
&quot;hints&quot;: { # Hints for OCR Engine # Hints for the OCR model.
1308+
&quot;languageHints&quot;: [ # List of BCP-47 language codes to use for OCR. In most cases, not specifying it yields the best results since it enables automatic language detection. For languages based on the Latin alphabet, setting hints is not needed. In rare cases, when the language of the text in the image is known, setting a hint will help get better results (although it will be a significant hindrance if the hint is wrong).
1309+
&quot;A String&quot;,
1310+
],
1311+
},
1312+
},
1313+
},
12781314
&quot;rawDocument&quot;: { # Payload message of raw document content (bytes). # A raw document content (bytes).
12791315
&quot;content&quot;: &quot;A String&quot;, # Inline document content.
12801316
&quot;mimeType&quot;: &quot;A String&quot;, # An IANA MIME type (RFC6838) indicating the nature and format of the content.

docs/dyn/documentai_v1.projects.locations.processors.processorVersions.html

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,22 @@ <h3>Method Details</h3>
146146
&quot;gcsUriPrefix&quot;: &quot;A String&quot;, # The URI prefix.
147147
},
148148
},
149+
&quot;processOptions&quot;: { # Options for Process API # Inference-time options for the process API
150+
&quot;ocrConfig&quot;: { # Config for Document OCR. # Only applicable to `OCR_PROCESSOR`. Returns error if set on other processor types.
151+
&quot;advancedOcrOptions&quot;: [ # A list of advanced OCR options to further fine-tune OCR behavior. Current valid values are: - `legacy_layout`: a heuristics layout detection algorithm, which serves as an alternative to the current ML-based layout detection algorithm. Customers can choose the best suitable layout algorithm based on their situation.
152+
&quot;A String&quot;,
153+
],
154+
&quot;computeStyleInfo&quot;: True or False, # Turn on font id model and returns font style information.
155+
&quot;enableImageQualityScores&quot;: True or False, # Enables intelligent document quality scores after OCR. Can help with diagnosing why OCR responses are of poor quality for a given input. Adds additional latency comparable to regular OCR to the process call.
156+
&quot;enableNativePdfParsing&quot;: True or False, # Enables special handling for PDFs with existing text information. Results in better text extraction quality in such PDF inputs.
157+
&quot;enableSymbol&quot;: True or False, # Includes symbol level OCR information if set to true.
158+
&quot;hints&quot;: { # Hints for OCR Engine # Hints for the OCR model.
159+
&quot;languageHints&quot;: [ # List of BCP-47 language codes to use for OCR. In most cases, not specifying it yields the best results since it enables automatic language detection. For languages based on the Latin alphabet, setting hints is not needed. In rare cases, when the language of the text in the image is known, setting a hint will help get better results (although it will be a significant hindrance if the hint is wrong).
160+
&quot;A String&quot;,
161+
],
162+
},
163+
},
164+
},
149165
&quot;skipHumanReview&quot;: True or False, # Whether human review should be skipped for this request. Default to `false`.
150166
}
151167

@@ -525,6 +541,10 @@ <h3>Method Details</h3>
525541

526542
{ # Request message for the ProcessDocument method.
527543
&quot;fieldMask&quot;: &quot;A String&quot;, # Specifies which fields to include in the ProcessResponse.document output. Only supports top-level document and pages field, so it must be in the form of `{document_field_name}` or `pages.{page_field_name}`.
544+
&quot;gcsDocument&quot;: { # Specifies a document stored on Cloud Storage. # A raw document on Google Cloud Storage.
545+
&quot;gcsUri&quot;: &quot;A String&quot;, # The Cloud Storage object uri.
546+
&quot;mimeType&quot;: &quot;A String&quot;, # An IANA MIME type (RFC6838) of the content.
547+
},
528548
&quot;inlineDocument&quot;: { # Document represents the canonical document resource in Document AI. It is an interchange format that provides insights into documents and allows for collaboration between users and Document AI to iterate and optimize for quality. # An inline document proto.
529549
&quot;content&quot;: &quot;A String&quot;, # Optional. Inline document content, represented as a stream of bytes. Note: As with all `bytes` fields, protobuffers use a pure binary representation, whereas JSON representations use base64.
530550
&quot;entities&quot;: [ # A list of entities detected on Document.text. For document shards, entities in this list may cross shard boundaries.
@@ -1371,6 +1391,22 @@ <h3>Method Details</h3>
13711391
],
13721392
&quot;uri&quot;: &quot;A String&quot;, # Optional. Currently supports Google Cloud Storage URI of the form `gs://bucket_name/object_name`. Object versioning is not supported. For more information, refer to [Google Cloud Storage Request URIs](https://cloud.google.com/storage/docs/reference-uris).
13731393
},
1394+
&quot;processOptions&quot;: { # Options for Process API # Inference-time options for the process API
1395+
&quot;ocrConfig&quot;: { # Config for Document OCR. # Only applicable to `OCR_PROCESSOR`. Returns error if set on other processor types.
1396+
&quot;advancedOcrOptions&quot;: [ # A list of advanced OCR options to further fine-tune OCR behavior. Current valid values are: - `legacy_layout`: a heuristics layout detection algorithm, which serves as an alternative to the current ML-based layout detection algorithm. Customers can choose the best suitable layout algorithm based on their situation.
1397+
&quot;A String&quot;,
1398+
],
1399+
&quot;computeStyleInfo&quot;: True or False, # Turn on font id model and returns font style information.
1400+
&quot;enableImageQualityScores&quot;: True or False, # Enables intelligent document quality scores after OCR. Can help with diagnosing why OCR responses are of poor quality for a given input. Adds additional latency comparable to regular OCR to the process call.
1401+
&quot;enableNativePdfParsing&quot;: True or False, # Enables special handling for PDFs with existing text information. Results in better text extraction quality in such PDF inputs.
1402+
&quot;enableSymbol&quot;: True or False, # Includes symbol level OCR information if set to true.
1403+
&quot;hints&quot;: { # Hints for OCR Engine # Hints for the OCR model.
1404+
&quot;languageHints&quot;: [ # List of BCP-47 language codes to use for OCR. In most cases, not specifying it yields the best results since it enables automatic language detection. For languages based on the Latin alphabet, setting hints is not needed. In rare cases, when the language of the text in the image is known, setting a hint will help get better results (although it will be a significant hindrance if the hint is wrong).
1405+
&quot;A String&quot;,
1406+
],
1407+
},
1408+
},
1409+
},
13741410
&quot;rawDocument&quot;: { # Payload message of raw document content (bytes). # A raw document content (bytes).
13751411
&quot;content&quot;: &quot;A String&quot;, # Inline document content.
13761412
&quot;mimeType&quot;: &quot;A String&quot;, # An IANA MIME type (RFC6838) indicating the nature and format of the content.

0 commit comments

Comments
 (0)