UNPKG

googleapis

Version:
1,276 lines 293 kB
import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common'; import { Readable } from 'stream'; export declare namespace documentai_v1 { export interface Options extends GlobalOptions { version: 'v1'; } interface StandardParameters { /** * Auth client or API Key for the request */ auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient | BaseExternalAccountClient | GoogleAuth; /** * V1 error format. */ '$.xgafv'?: string; /** * OAuth access token. */ access_token?: string; /** * Data format for response. */ alt?: string; /** * JSONP */ callback?: string; /** * Selector specifying which fields to include in a partial response. */ fields?: string; /** * API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */ key?: string; /** * OAuth 2.0 token for the current user. */ oauth_token?: string; /** * Returns response with indentations and line breaks. */ prettyPrint?: boolean; /** * Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ quotaUser?: string; /** * Legacy upload protocol for media (e.g. "media", "multipart"). */ uploadType?: string; /** * Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; } /** * Cloud Document AI API * * Service to parse structured information from unstructured or semi-structured documents using state-of-the-art Google AI such as natural language, computer vision, translation, and AutoML. * * @example * ```js * const {google} = require('googleapis'); * const documentai = google.documentai('v1'); * ``` */ export class Documentai { context: APIRequestContext; operations: Resource$Operations; projects: Resource$Projects; constructor(options: GlobalOptions, google?: GoogleConfigurable); } /** * Metadata of the auto-labeling documents operation. */ export interface Schema$GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadata { /** * The basic metadata of the long-running operation. */ commonMetadata?: Schema$GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata; /** * The list of individual auto-labeling statuses of the dataset documents. */ individualAutoLabelStatuses?: Schema$GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadataIndividualAutoLabelStatus[]; /** * Total number of the auto-labeling documents. */ totalDocumentCount?: number | null; } /** * The status of individual documents in the auto-labeling process. */ export interface Schema$GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadataIndividualAutoLabelStatus { /** * The document id of the auto-labeled document. This will replace the gcs_uri. */ documentId?: Schema$GoogleCloudDocumentaiUiv1beta3DocumentId; /** * The status of the document auto-labeling. */ status?: Schema$GoogleRpcStatus; } /** * The response proto of AutoLabelDocuments method. */ export interface Schema$GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsResponse { } export interface Schema$GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadata { /** * The basic metadata of the long-running operation. */ commonMetadata?: Schema$GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata; /** * Total number of documents that failed to be deleted in storage. */ errorDocumentCount?: number | null; /** * The list of response details of each document. */ individualBatchDeleteStatuses?: Schema$GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadataIndividualBatchDeleteStatus[]; /** * Total number of documents deleting from dataset. */ totalDocumentCount?: number | null; } /** * The status of each individual document in the batch delete process. */ export interface Schema$GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadataIndividualBatchDeleteStatus { /** * The document id of the document. */ documentId?: Schema$GoogleCloudDocumentaiUiv1beta3DocumentId; /** * The status of deleting the document in storage. */ status?: Schema$GoogleRpcStatus; } /** * Response of the delete documents operation. */ export interface Schema$GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsResponse { } export interface Schema$GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsMetadata { /** * The basic metadata of the long-running operation. */ commonMetadata?: Schema$GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata; /** * The destination dataset split type. */ destDatasetType?: string | null; /** * The destination dataset split type. */ destSplitType?: string | null; /** * The list of response details of each document. */ individualBatchMoveStatuses?: Schema$GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsMetadataIndividualBatchMoveStatus[]; } /** * The status of each individual document in the batch move process. */ export interface Schema$GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsMetadataIndividualBatchMoveStatus { /** * The document id of the document. */ documentId?: Schema$GoogleCloudDocumentaiUiv1beta3DocumentId; /** * The status of moving the document. */ status?: Schema$GoogleRpcStatus; } /** * Response of the batch move documents operation. */ export interface Schema$GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsResponse { } export interface Schema$GoogleCloudDocumentaiUiv1beta3BatchUpdateDocumentsMetadata { /** * The basic metadata of the long-running operation. */ commonMetadata?: Schema$GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata; /** * The list of response details of each document. */ individualBatchUpdateStatuses?: Schema$GoogleCloudDocumentaiUiv1beta3BatchUpdateDocumentsMetadataIndividualBatchUpdateStatus[]; } /** * The status of each individual document in the batch update process. */ export interface Schema$GoogleCloudDocumentaiUiv1beta3BatchUpdateDocumentsMetadataIndividualBatchUpdateStatus { /** * The document id of the document. */ documentId?: Schema$GoogleCloudDocumentaiUiv1beta3DocumentId; /** * The status of updating the document in storage. */ status?: Schema$GoogleRpcStatus; } /** * Response of the batch update documents operation. */ export interface Schema$GoogleCloudDocumentaiUiv1beta3BatchUpdateDocumentsResponse { } /** * The common metadata for long running operations. */ export interface Schema$GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata { /** * The creation time of the operation. */ createTime?: string | null; /** * A related resource to this operation. */ resource?: string | null; /** * The state of the operation. */ state?: string | null; /** * A message providing more details about the current state of processing. */ stateMessage?: string | null; /** * The last update time of the operation. */ updateTime?: string | null; } /** * The long-running operation metadata for the CreateLabelerPool method. */ export interface Schema$GoogleCloudDocumentaiUiv1beta3CreateLabelerPoolOperationMetadata { /** * The basic metadata of the long-running operation. */ commonMetadata?: Schema$GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata; } /** * The long-running operation metadata for DeleteLabelerPool. */ export interface Schema$GoogleCloudDocumentaiUiv1beta3DeleteLabelerPoolOperationMetadata { /** * The basic metadata of the long-running operation. */ commonMetadata?: Schema$GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata; } /** * The long-running operation metadata for the DeleteProcessor method. */ export interface Schema$GoogleCloudDocumentaiUiv1beta3DeleteProcessorMetadata { /** * The basic metadata of the long-running operation. */ commonMetadata?: Schema$GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata; } /** * The long-running operation metadata for the DeleteProcessorVersion method. */ export interface Schema$GoogleCloudDocumentaiUiv1beta3DeleteProcessorVersionMetadata { /** * The basic metadata of the long-running operation. */ commonMetadata?: Schema$GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata; } /** * The long-running operation metadata for the DeployProcessorVersion method. */ export interface Schema$GoogleCloudDocumentaiUiv1beta3DeployProcessorVersionMetadata { /** * The basic metadata of the long-running operation. */ commonMetadata?: Schema$GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata; } /** * Response message for the DeployProcessorVersion method. */ export interface Schema$GoogleCloudDocumentaiUiv1beta3DeployProcessorVersionResponse { } /** * The long-running operation metadata for the DisableProcessor method. */ export interface Schema$GoogleCloudDocumentaiUiv1beta3DisableProcessorMetadata { /** * The basic metadata of the long-running operation. */ commonMetadata?: Schema$GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata; } /** * Response message for the DisableProcessor method. Intentionally empty proto for adding fields in future. */ export interface Schema$GoogleCloudDocumentaiUiv1beta3DisableProcessorResponse { } /** * Document Identifier. */ export interface Schema$GoogleCloudDocumentaiUiv1beta3DocumentId { /** * A document id within user-managed Cloud Storage. */ gcsManagedDocId?: Schema$GoogleCloudDocumentaiUiv1beta3DocumentIdGCSManagedDocumentId; /** * Points to a specific revision of the document if set. */ revisionRef?: Schema$GoogleCloudDocumentaiUiv1beta3RevisionRef; /** * A document id within unmanaged dataset. */ unmanagedDocId?: Schema$GoogleCloudDocumentaiUiv1beta3DocumentIdUnmanagedDocumentId; } /** * Identifies a document uniquely within the scope of a dataset in the user-managed Cloud Storage option. */ export interface Schema$GoogleCloudDocumentaiUiv1beta3DocumentIdGCSManagedDocumentId { /** * Id of the document (indexed) managed by Content Warehouse. */ cwDocId?: string | null; /** * Required. The Cloud Storage URI where the actual document is stored. */ gcsUri?: string | null; } /** * Identifies a document uniquely within the scope of a dataset in unmanaged option. */ export interface Schema$GoogleCloudDocumentaiUiv1beta3DocumentIdUnmanagedDocumentId { /** * Required. The id of the document. */ docId?: string | null; } /** * The long-running operation metadata for the EnableProcessor method. */ export interface Schema$GoogleCloudDocumentaiUiv1beta3EnableProcessorMetadata { /** * The basic metadata of the long-running operation. */ commonMetadata?: Schema$GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata; } /** * Response message for the EnableProcessor method. Intentionally empty proto for adding fields in future. */ export interface Schema$GoogleCloudDocumentaiUiv1beta3EnableProcessorResponse { } /** * Metadata of the EvaluateProcessorVersion method. */ export interface Schema$GoogleCloudDocumentaiUiv1beta3EvaluateProcessorVersionMetadata { /** * The basic metadata of the long-running operation. */ commonMetadata?: Schema$GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata; } /** * Response of the EvaluateProcessorVersion method. */ export interface Schema$GoogleCloudDocumentaiUiv1beta3EvaluateProcessorVersionResponse { /** * The resource name of the created evaluation. */ evaluation?: string | null; } /** * Metadata of the batch export documents operation. */ export interface Schema$GoogleCloudDocumentaiUiv1beta3ExportDocumentsMetadata { /** * The basic metadata of the long-running operation. */ commonMetadata?: Schema$GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata; /** * The list of response details of each document. */ individualExportStatuses?: Schema$GoogleCloudDocumentaiUiv1beta3ExportDocumentsMetadataIndividualExportStatus[]; /** * The list of statistics for each dataset split type. */ splitExportStats?: Schema$GoogleCloudDocumentaiUiv1beta3ExportDocumentsMetadataSplitExportStat[]; } /** * The status of each individual document in the export process. */ export interface Schema$GoogleCloudDocumentaiUiv1beta3ExportDocumentsMetadataIndividualExportStatus { /** * The path to source docproto of the document. */ documentId?: Schema$GoogleCloudDocumentaiUiv1beta3DocumentId; /** * The output_gcs_destination of the exported document if it was successful, otherwise empty. */ outputGcsDestination?: string | null; /** * The status of the exporting of the document. */ status?: Schema$GoogleRpcStatus; } /** * The statistic representing a dataset split type for this export. */ export interface Schema$GoogleCloudDocumentaiUiv1beta3ExportDocumentsMetadataSplitExportStat { /** * The dataset split type. */ splitType?: string | null; /** * Total number of documents with the given dataset split type to be exported. */ totalDocumentCount?: number | null; } /** * The response proto of ExportDocuments method. */ export interface Schema$GoogleCloudDocumentaiUiv1beta3ExportDocumentsResponse { } /** * Metadata message associated with the ExportProcessorVersion operation. */ export interface Schema$GoogleCloudDocumentaiUiv1beta3ExportProcessorVersionMetadata { /** * The common metadata about the operation. */ commonMetadata?: Schema$GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata; } /** * Response message associated with the ExportProcessorVersion operation. */ export interface Schema$GoogleCloudDocumentaiUiv1beta3ExportProcessorVersionResponse { /** * The Cloud Storage URI containing the output artifacts. */ gcsUri?: string | null; } /** * Metadata of the import document operation. */ export interface Schema$GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadata { /** * The basic metadata of the long-running operation. */ commonMetadata?: Schema$GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata; /** * Validation statuses of the batch documents import config. */ importConfigValidationResults?: Schema$GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataImportConfigValidationResult[]; /** * The list of response details of each document. */ individualImportStatuses?: Schema$GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataIndividualImportStatus[]; /** * Total number of the documents that are qualified for importing. */ totalDocumentCount?: number | null; } /** * The validation status of each import config. Status is set to an error if there are no documents to import in the `import_config`, or `OK` if the operation will try to proceed with at least one document. */ export interface Schema$GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataImportConfigValidationResult { /** * The source Cloud Storage URI specified in the import config. */ inputGcsSource?: string | null; /** * The validation status of import config. */ status?: Schema$GoogleRpcStatus; } /** * The status of each individual document in the import process. */ export interface Schema$GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataIndividualImportStatus { /** * The source Cloud Storage URI of the document. */ inputGcsSource?: string | null; /** * The document id of imported document if it was successful, otherwise empty. */ outputDocumentId?: Schema$GoogleCloudDocumentaiUiv1beta3DocumentId; /** * The output_gcs_destination of the processed document if it was successful, otherwise empty. */ outputGcsDestination?: string | null; /** * The status of the importing of the document. */ status?: Schema$GoogleRpcStatus; } /** * Response of the import document operation. */ export interface Schema$GoogleCloudDocumentaiUiv1beta3ImportDocumentsResponse { } /** * The long-running operation metadata for the ImportProcessorVersion method. */ export interface Schema$GoogleCloudDocumentaiUiv1beta3ImportProcessorVersionMetadata { /** * The basic metadata for the long-running operation. */ commonMetadata?: Schema$GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata; } /** * The response message for the ImportProcessorVersion method. */ export interface Schema$GoogleCloudDocumentaiUiv1beta3ImportProcessorVersionResponse { /** * The destination processor version name. */ processorVersion?: string | null; } /** * The metadata proto of `ResyncDataset` method. */ export interface Schema$GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadata { /** * The basic metadata of the long-running operation. */ commonMetadata?: Schema$GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata; /** * The list of dataset resync statuses. Not checked when ResyncDatasetRequest.dataset_documents is specified. */ datasetResyncStatuses?: Schema$GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataDatasetResyncStatus[]; /** * The list of document resync statuses. The same document could have multiple `individual_document_resync_statuses` if it has multiple inconsistencies. */ individualDocumentResyncStatuses?: Schema$GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataIndividualDocumentResyncStatus[]; } /** * Resync status against inconsistency types on the dataset level. */ export interface Schema$GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataDatasetResyncStatus { /** * The type of the inconsistency of the dataset. */ datasetInconsistencyType?: string | null; /** * The status of resyncing the dataset with regards to the detected inconsistency. Empty if ResyncDatasetRequest.validate_only is `true`. */ status?: Schema$GoogleRpcStatus; } /** * Resync status for each document per inconsistency type. */ export interface Schema$GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataIndividualDocumentResyncStatus { /** * The document identifier. */ documentId?: Schema$GoogleCloudDocumentaiUiv1beta3DocumentId; /** * The type of document inconsistency. */ documentInconsistencyType?: string | null; /** * The status of resyncing the document with regards to the detected inconsistency. Empty if ResyncDatasetRequest.validate_only is `true`. */ status?: Schema$GoogleRpcStatus; } /** * The response proto of ResyncDataset method. */ export interface Schema$GoogleCloudDocumentaiUiv1beta3ResyncDatasetResponse { } /** * The revision reference specifies which revision on the document to read. */ export interface Schema$GoogleCloudDocumentaiUiv1beta3RevisionRef { /** * Reads the revision generated by the processor version. The format takes the full resource name of processor version. `projects/{project\}/locations/{location\}/processors/{processor\}/processorVersions/{processorVersion\}` */ latestProcessorVersion?: string | null; /** * Reads the revision by the predefined case. */ revisionCase?: string | null; /** * Reads the revision given by the id. */ revisionId?: string | null; } /** * Metadata of the sample documents operation. */ export interface Schema$GoogleCloudDocumentaiUiv1beta3SampleDocumentsMetadata { /** * The basic metadata of the long-running operation. */ commonMetadata?: Schema$GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata; } /** * Response of the sample documents operation. */ export interface Schema$GoogleCloudDocumentaiUiv1beta3SampleDocumentsResponse { /** * The status of sampling documents in test split. */ sampleTestStatus?: Schema$GoogleRpcStatus; /** * The status of sampling documents in training split. */ sampleTrainingStatus?: Schema$GoogleRpcStatus; /** * The result of the sampling process. */ selectedDocuments?: Schema$GoogleCloudDocumentaiUiv1beta3SampleDocumentsResponseSelectedDocument[]; } export interface Schema$GoogleCloudDocumentaiUiv1beta3SampleDocumentsResponseSelectedDocument { /** * An internal identifier for document. */ documentId?: string | null; } /** * The long-running operation metadata for the SetDefaultProcessorVersion method. */ export interface Schema$GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionMetadata { /** * The basic metadata of the long-running operation. */ commonMetadata?: Schema$GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata; } /** * Response message for the SetDefaultProcessorVersion method. */ export interface Schema$GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionResponse { } /** * The metadata that represents a processor version being created. */ export interface Schema$GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadata { /** * The basic metadata of the long-running operation. */ commonMetadata?: Schema$GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata; /** * The test dataset validation information. */ testDatasetValidation?: Schema$GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadataDatasetValidation; /** * The training dataset validation information. */ trainingDatasetValidation?: Schema$GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadataDatasetValidation; } /** * The dataset validation information. This includes any and all errors with documents and the dataset. */ export interface Schema$GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadataDatasetValidation { /** * The total number of dataset errors. */ datasetErrorCount?: number | null; /** * Error information for the dataset as a whole. A maximum of 10 dataset errors will be returned. A single dataset error is terminal for training. */ datasetErrors?: Schema$GoogleRpcStatus[]; /** * The total number of document errors. */ documentErrorCount?: number | null; /** * Error information pertaining to specific documents. A maximum of 10 document errors will be returned. Any document with errors will not be used throughout training. */ documentErrors?: Schema$GoogleRpcStatus[]; } /** * The response for TrainProcessorVersion. */ export interface Schema$GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionResponse { /** * The resource name of the processor version produced by training. */ processorVersion?: string | null; } /** * The long-running operation metadata for the UndeployProcessorVersion method. */ export interface Schema$GoogleCloudDocumentaiUiv1beta3UndeployProcessorVersionMetadata { /** * The basic metadata of the long-running operation. */ commonMetadata?: Schema$GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata; } /** * Response message for the UndeployProcessorVersion method. */ export interface Schema$GoogleCloudDocumentaiUiv1beta3UndeployProcessorVersionResponse { } export interface Schema$GoogleCloudDocumentaiUiv1beta3UpdateDatasetOperationMetadata { /** * The basic metadata of the long-running operation. */ commonMetadata?: Schema$GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata; } /** * The long-running operation metadata for updating the human review configuration. */ export interface Schema$GoogleCloudDocumentaiUiv1beta3UpdateHumanReviewConfigMetadata { /** * The basic metadata of the long-running operation. */ commonMetadata?: Schema$GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata; } /** * The long-running operation metadata for UpdateLabelerPool. */ export interface Schema$GoogleCloudDocumentaiUiv1beta3UpdateLabelerPoolOperationMetadata { /** * The basic metadata of the long-running operation. */ commonMetadata?: Schema$GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata; } /** * Encodes the detailed information of a barcode. */ export interface Schema$GoogleCloudDocumentaiV1Barcode { /** * Format of a barcode. The supported formats are: - `CODE_128`: Code 128 type. - `CODE_39`: Code 39 type. - `CODE_93`: Code 93 type. - `CODABAR`: Codabar type. - `DATA_MATRIX`: 2D Data Matrix type. - `ITF`: ITF type. - `EAN_13`: EAN-13 type. - `EAN_8`: EAN-8 type. - `QR_CODE`: 2D QR code type. - `UPC_A`: UPC-A type. - `UPC_E`: UPC-E type. - `PDF417`: PDF417 type. - `AZTEC`: 2D Aztec code type. - `DATABAR`: GS1 DataBar code type. */ format?: string | null; /** * Raw value encoded in the barcode. For example: `'MEBKM:TITLE:Google;URL:https://www.google.com;;'`. */ rawValue?: string | null; /** * Value format describes the format of the value that a barcode encodes. The supported formats are: - `CONTACT_INFO`: Contact information. - `EMAIL`: Email address. - `ISBN`: ISBN identifier. - `PHONE`: Phone number. - `PRODUCT`: Product. - `SMS`: SMS message. - `TEXT`: Text string. - `URL`: URL address. - `WIFI`: Wifi information. - `GEO`: Geo-localization. - `CALENDAR_EVENT`: Calendar event. - `DRIVER_LICENSE`: Driver's license. */ valueFormat?: string | null; } /** * The common config to specify a set of documents used as input. */ export interface Schema$GoogleCloudDocumentaiV1BatchDocumentsInputConfig { /** * The set of documents individually specified on Cloud Storage. */ gcsDocuments?: Schema$GoogleCloudDocumentaiV1GcsDocuments; /** * The set of documents that match the specified Cloud Storage `gcs_prefix`. */ gcsPrefix?: Schema$GoogleCloudDocumentaiV1GcsPrefix; } /** * The long-running operation metadata for BatchProcessDocuments. */ export interface Schema$GoogleCloudDocumentaiV1BatchProcessMetadata { /** * The creation time of the operation. */ createTime?: string | null; /** * The list of response details of each document. */ individualProcessStatuses?: Schema$GoogleCloudDocumentaiV1BatchProcessMetadataIndividualProcessStatus[]; /** * The state of the current batch processing. */ state?: string | null; /** * A message providing more details about the current state of processing. For example, the error message if the operation is failed. */ stateMessage?: string | null; /** * The last update time of the operation. */ updateTime?: string | null; } /** * The status of a each individual document in the batch process. */ export interface Schema$GoogleCloudDocumentaiV1BatchProcessMetadataIndividualProcessStatus { /** * The status of human review on the processed document. */ humanReviewStatus?: Schema$GoogleCloudDocumentaiV1HumanReviewStatus; /** * The source of the document, same as the input_gcs_source field in the request when the batch process started. */ inputGcsSource?: string | null; /** * The Cloud Storage output destination (in the request as DocumentOutputConfig.GcsOutputConfig.gcs_uri) of the processed document if it was successful, otherwise empty. */ outputGcsDestination?: string | null; /** * The status processing the document. */ status?: Schema$GoogleRpcStatus; } /** * Request message for BatchProcessDocuments. */ export interface Schema$GoogleCloudDocumentaiV1BatchProcessRequest { /** * The output configuration for the BatchProcessDocuments method. */ documentOutputConfig?: Schema$GoogleCloudDocumentaiV1DocumentOutputConfig; /** * The input documents for the BatchProcessDocuments method. */ inputDocuments?: Schema$GoogleCloudDocumentaiV1BatchDocumentsInputConfig; /** * Optional. The labels with user-defined metadata for the request. Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter. */ labels?: { [key: string]: string; } | null; /** * Inference-time options for the process API */ processOptions?: Schema$GoogleCloudDocumentaiV1ProcessOptions; /** * Whether human review should be skipped for this request. Default to `false`. */ skipHumanReview?: boolean | null; } /** * Response message for BatchProcessDocuments. */ export interface Schema$GoogleCloudDocumentaiV1BatchProcessResponse { } export interface Schema$GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsMetadata { /** * The basic metadata of the long-running operation. */ commonMetadata?: Schema$GoogleCloudDocumentaiV1beta3CommonOperationMetadata; /** * Total number of documents that failed to be deleted in storage. */ errorDocumentCount?: number | null; /** * The list of response details of each document. */ individualBatchDeleteStatuses?: Schema$GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsMetadataIndividualBatchDeleteStatus[]; /** * Total number of documents deleting from dataset. */ totalDocumentCount?: number | null; } /** * The status of each individual document in the batch delete process. */ export interface Schema$GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsMetadataIndividualBatchDeleteStatus { /** * The document id of the document. */ documentId?: Schema$GoogleCloudDocumentaiV1beta3DocumentId; /** * The status of deleting the document in storage. */ status?: Schema$GoogleRpcStatus; } /** * Response of the delete documents operation. */ export interface Schema$GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsResponse { } /** * The long-running operation metadata for BatchProcessDocuments. */ export interface Schema$GoogleCloudDocumentaiV1beta3BatchProcessMetadata { /** * The creation time of the operation. */ createTime?: string | null; /** * The list of response details of each document. */ individualProcessStatuses?: Schema$GoogleCloudDocumentaiV1beta3BatchProcessMetadataIndividualProcessStatus[]; /** * The state of the current batch processing. */ state?: string | null; /** * A message providing more details about the current state of processing. For example, the error message if the operation is failed. */ stateMessage?: string | null; /** * The last update time of the operation. */ updateTime?: string | null; } /** * The status of a each individual document in the batch process. */ export interface Schema$GoogleCloudDocumentaiV1beta3BatchProcessMetadataIndividualProcessStatus { /** * The name of the operation triggered by the processed document. If the human review process isn't triggered, this field will be empty. It has the same response type and metadata as the long-running operation returned by the ReviewDocument method. */ humanReviewOperation?: string | null; /** * The status of human review on the processed document. */ humanReviewStatus?: Schema$GoogleCloudDocumentaiV1beta3HumanReviewStatus; /** * The source of the document, same as the input_gcs_source field in the request when the batch process started. */ inputGcsSource?: string | null; /** * The Cloud Storage output destination (in the request as DocumentOutputConfig.GcsOutputConfig.gcs_uri) of the processed document if it was successful, otherwise empty. */ outputGcsDestination?: string | null; /** * The status processing the document. */ status?: Schema$GoogleRpcStatus; } /** * Response message for BatchProcessDocuments. */ export interface Schema$GoogleCloudDocumentaiV1beta3BatchProcessResponse { } /** * The common metadata for long running operations. */ export interface Schema$GoogleCloudDocumentaiV1beta3CommonOperationMetadata { /** * The creation time of the operation. */ createTime?: string | null; /** * A related resource to this operation. */ resource?: string | null; /** * The state of the operation. */ state?: string | null; /** * A message providing more details about the current state of processing. */ stateMessage?: string | null; /** * The last update time of the operation. */ updateTime?: string | null; } /** * A singleton resource under a Processor which configures a collection of documents. */ export interface Schema$GoogleCloudDocumentaiV1beta3Dataset { /** * Optional. Deprecated. Warehouse-based dataset configuration is not supported. */ documentWarehouseConfig?: Schema$GoogleCloudDocumentaiV1beta3DatasetDocumentWarehouseConfig; /** * Optional. User-managed Cloud Storage dataset configuration. Use this configuration if the dataset documents are stored under a user-managed Cloud Storage location. */ gcsManagedConfig?: Schema$GoogleCloudDocumentaiV1beta3DatasetGCSManagedConfig; /** * Dataset resource name. Format: `projects/{project\}/locations/{location\}/processors/{processor\}/dataset` */ name?: string | null; /** * Output only. Reserved for future use. */ satisfiesPzi?: boolean | null; /** * Output only. Reserved for future use. */ satisfiesPzs?: boolean | null; /** * Optional. A lightweight indexing source with low latency and high reliability, but lacking advanced features like CMEK and content-based search. */ spannerIndexingConfig?: Schema$GoogleCloudDocumentaiV1beta3DatasetSpannerIndexingConfig; /** * Required. State of the dataset. Ignored when updating dataset. */ state?: string | null; /** * Optional. Unmanaged dataset configuration. Use this configuration if the dataset documents are managed by the document service internally (not user-managed). */ unmanagedDatasetConfig?: Schema$GoogleCloudDocumentaiV1beta3DatasetUnmanagedDatasetConfig; } /** * Configuration specific to the Document AI Warehouse-based implementation. */ export interface Schema$GoogleCloudDocumentaiV1beta3DatasetDocumentWarehouseConfig { /** * Output only. The collection in Document AI Warehouse associated with the dataset. */ collection?: string | null; /** * Output only. The schema in Document AI Warehouse associated with the dataset. */ schema?: string | null; } /** * Configuration specific to the Cloud Storage-based implementation. */ export interface Schema$GoogleCloudDocumentaiV1beta3DatasetGCSManagedConfig { /** * Required. The Cloud Storage URI (a directory) where the documents belonging to the dataset must be stored. */ gcsPrefix?: Schema$GoogleCloudDocumentaiV1beta3GcsPrefix; } /** * Configuration specific to spanner-based indexing. */ export interface Schema$GoogleCloudDocumentaiV1beta3DatasetSpannerIndexingConfig { } /** * Configuration specific to an unmanaged dataset. */ export interface Schema$GoogleCloudDocumentaiV1beta3DatasetUnmanagedDatasetConfig { } /** * The long-running operation metadata for the DeleteProcessor method. */ export interface Schema$GoogleCloudDocumentaiV1beta3DeleteProcessorMetadata { /** * The basic metadata of the long-running operation. */ commonMetadata?: Schema$GoogleCloudDocumentaiV1beta3CommonOperationMetadata; } /** * The long-running operation metadata for the DeleteProcessorVersion method. */ export interface Schema$GoogleCloudDocumentaiV1beta3DeleteProcessorVersionMetadata { /** * The basic metadata of the long-running operation. */ commonMetadata?: Schema$GoogleCloudDocumentaiV1beta3CommonOperationMetadata; } /** * The long-running operation metadata for the DeployProcessorVersion method. */ export interface Schema$GoogleCloudDocumentaiV1beta3DeployProcessorVersionMetadata { /** * The basic metadata of the long-running operation. */ commonMetadata?: Schema$GoogleCloudDocumentaiV1beta3CommonOperationMetadata; } /** * Response message for the DeployProcessorVersion method. */ export interface Schema$GoogleCloudDocumentaiV1beta3DeployProcessorVersionResponse { } /** * The long-running operation metadata for the DisableProcessor method. */ export interface Schema$GoogleCloudDocumentaiV1beta3DisableProcessorMetadata { /** * The basic metadata of the long-running operation. */ commonMetadata?: Schema$GoogleCloudDocumentaiV1beta3CommonOperationMetadata; } /** * Response message for the DisableProcessor method. Intentionally empty proto for adding fields in future. */ export interface Schema$GoogleCloudDocumentaiV1beta3DisableProcessorResponse { } /** * Document Identifier. */ export interface Schema$GoogleCloudDocumentaiV1beta3DocumentId { /** * A document id within user-managed Cloud Storage. */ gcsManagedDocId?: Schema$GoogleCloudDocumentaiV1beta3DocumentIdGCSManagedDocumentId; /** * Points to a specific revision of the document if set. */ revisionRef?: Schema$GoogleCloudDocumentaiV1beta3RevisionRef; /** * A document id within unmanaged dataset. */ unmanagedDocId?: Schema$GoogleCloudDocumentaiV1beta3DocumentIdUnmanagedDocumentId; } /** * Identifies a document uniquely within the scope of a dataset in the user-managed Cloud Storage option. */ export interface Schema$GoogleCloudDocumentaiV1beta3DocumentIdGCSManagedDocumentId { /** * Id of the document (indexed) managed by Content Warehouse. */ cwDocId?: string | null; /** * Required. The Cloud Storage URI where the actual document is stored. */ gcsUri?: string | null; } /** * Identifies a document uniquely within the scope of a dataset in unmanaged option. */ export interface Schema$GoogleCloudDocumentaiV1beta3DocumentIdUnmanagedDocumentId { /** * Required. The id of the document. */ docId?: string | null; } /** * The long-running operation metadata for the EnableProcessor method. */ export interface Schema$GoogleCloudDocumentaiV1beta3EnableProcessorMetadata { /** * The basic metadata of the long-running operation. */ commonMetadata?: Schema$GoogleCloudDocumentaiV1beta3CommonOperationMetadata; } /** * Response message for the EnableProcessor method. Intentionally empty proto for adding fields in future. */ export interface Schema$GoogleCloudDocumentaiV1beta3EnableProcessorResponse { } /** * Metadata of the EvaluateProcessorVersion method. */ export interface Schema$GoogleCloudDocumentaiV1beta3EvaluateProcessorVersionMetadata { /** * The basic metadata of the long-running operation. */ commonMetadata?: Schema$GoogleCloudDocumentaiV1beta3CommonOperationMetadata; } /** * Response of the EvaluateProcessorVersion method. */ export interface Schema$GoogleCloudDocumentaiV1beta3EvaluateProcessorVersionResponse { /** * The resource name of the created evaluation. */ evaluation?: string | null; } /** * Specifies all documents on Cloud Storage with a common prefix. */ export interface Schema$GoogleCloudDocumentaiV1beta3GcsPrefix { /** * The URI prefix. */ gcsUriPrefix?: string | null; } /** * The status of human review on a processed document. */ export interface Schema$GoogleCloudDocumentaiV1beta3HumanReviewStatus { /** * The name of the operation triggered by the processed document. This field is populated only when the state is `HUMAN_REVIEW_IN_PROGRESS`. It has the same response type and metadata as the long-running operation returned by ReviewDocument. */ humanReviewOperation?: string | null; /** * The state of human review on the processing request. */ state?: string | null; /** * A message providing more details about the human review state. */ stateMessage?: string | null; } /** * Metadata of the import document operation. */ export interface Schema$GoogleCloudDocumentaiV1beta3ImportDocumentsMetadata { /** * The basic metadata of the long-running operation. */ commonMetadata?: Schema$GoogleCloudDocumentaiV1beta3CommonOperationMetadata; /** * Validation statuses of the batch documents import config. */ importConfigValidationResults?: Schema$GoogleCloudDocumentaiV1beta3ImportDocumentsMetadataImportConfigValidationResult[]; /** * The list of response details of each document. */ individualImportStatuses?: Schema$GoogleCloudDocumentaiV1beta3ImportDocumentsMetadataIndividualImportStatus[]; /** * Total number of the documents that are qualified for importing. */ totalDocumentCount?: number | null; } /** * The validation status of each import config. Status is set to an error if there are no documents to import in the `import_config`, or `OK` if the operation will try to proceed with at least one document. */ export interface Schema$GoogleCloudDocumentaiV1beta3ImportDocumentsMetadataImportConfigValidationResult { /** * The source Cloud Storage URI specified in the import config. */ inputGcsSource?: string | null; /** * The validation status of import config. */ status?: Schema$GoogleRpcStatus; } /** * The status of each individual document in the import process. */ export interface Schema$GoogleCloudDocumentaiV1beta3ImportDocumentsMetadataIndividualImportStatus { /** * The source Cloud Storage URI of the document. */ inputGcsSource?: string | null; /** * The document id of imported document if it was successful, otherwise empty. */ outputDocumentId?: Schema$GoogleCloudDocumentaiV1beta3DocumentId; /** * The status of the importing of the document. */ status?: Schema$GoogleRpcStatus; } /** * Response of the import document operation. */ export interface Schema$GoogleCloudDocumentaiV1beta3ImportDocumentsResponse { } /** * The long-running operation metadata for the ImportProcessorVersion method. */ export interface Schema$GoogleCloudDocumentaiV1beta3ImportProcessorVersionMetadata { /** * The basic metadata for the long-running operation. */ commonMetadata?: Schema$GoogleCloudDocumentaiV1beta3CommonOperationMetadata; } /** * The response message for the ImportProcessorVersion method. */ export interface Schema$GoogleCloudDocumentaiV1beta3ImportProcessorVersionResponse { /** * The destination processor version name. */ processorVersion?: string | null; } /** * The long-running operation metadata for the ReviewDocument method. */ export interface Schema$GoogleCloudDocumentaiV1beta3ReviewDocumentOperationMetadata { /** * The basic metadata of the long-running operation. */ commonMetadata?: Schema$GoogleCloudDocumentaiV1beta3CommonOperationMetadata; /** * The creation time of the operation. */ createTime?: string | null; /** * The Crowd Compute question ID. */ questionId?: string | null; /** * Used only when Operation.done is false. */ state?: string | null; /** * A message providing more details about the current state of processing. For example, the error message if the operation is failed. */ stateMessage?: string | null; /** * The last update time of the operation. */ updateTime?: string | null; } /** * Response message for the ReviewDocument method. */ export interface Schema$GoogleCloudDocumentaiV1beta3ReviewDocumentResponse { /** * The Cloud Storage uri for the human reviewed document if the review is succeeded. */ gcsDestination?: string | null; /** * The reason why the review is rejected by reviewer. */ rejectionReason?: string | null; /** * The state of the review operation. */ state?: string | null; } /** * The revision reference specifies which revision on the document to read. */ export interface