Package com.google.cloud.documentai.v1beta3 (2.24.0)

A client to Cloud Document AI API

The interfaces provided are listed below, along with usage samples.

DocumentProcessorServiceClient

Service Description: Service to call Document AI to process documents according to the processor's definition. Processors are built using state-of-the-art Google AI such as natural language, computer vision, and translation to extract structured information from unstructured or semi-structured documents.

Sample for DocumentProcessorServiceClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (DocumentProcessorServiceClient documentProcessorServiceClient =
     DocumentProcessorServiceClient.create()) {
   ResourceName name = ProcessorName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]");
   ProcessResponse response = documentProcessorServiceClient.processDocument(name);
 }
 

DocumentServiceClient

Service Description: Service to call Cloud DocumentAI to manage document collection (dataset).

Sample for DocumentServiceClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) {
   DatasetSchemaName name = DatasetSchemaName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]");
   DatasetSchema response = documentServiceClient.getDatasetSchema(name);
 }
 

Classes

Barcode

Encodes the detailed information of a barcode.

Protobuf type google.cloud.documentai.v1beta3.Barcode

Barcode.Builder

Encodes the detailed information of a barcode.

Protobuf type google.cloud.documentai.v1beta3.Barcode

BarcodeProto

BatchDocumentsInputConfig

The common config to specify a set of documents used as input.

Protobuf type google.cloud.documentai.v1beta3.BatchDocumentsInputConfig

BatchDocumentsInputConfig.Builder

The common config to specify a set of documents used as input.

Protobuf type google.cloud.documentai.v1beta3.BatchDocumentsInputConfig

BatchProcessMetadata

The long-running operation metadata for BatchProcessDocuments.

Protobuf type google.cloud.documentai.v1beta3.BatchProcessMetadata

BatchProcessMetadata.Builder

The long-running operation metadata for BatchProcessDocuments.

Protobuf type google.cloud.documentai.v1beta3.BatchProcessMetadata

BatchProcessMetadata.IndividualProcessStatus

The status of a each individual document in the batch process.

Protobuf type google.cloud.documentai.v1beta3.BatchProcessMetadata.IndividualProcessStatus

BatchProcessMetadata.IndividualProcessStatus.Builder

The status of a each individual document in the batch process.

Protobuf type google.cloud.documentai.v1beta3.BatchProcessMetadata.IndividualProcessStatus

BatchProcessRequest

Request message for BatchProcessDocuments.

Protobuf type google.cloud.documentai.v1beta3.BatchProcessRequest

BatchProcessRequest.BatchInputConfig

The message for input config in batch process.

Protobuf type google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig

BatchProcessRequest.BatchInputConfig.Builder

The message for input config in batch process.

Protobuf type google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig

BatchProcessRequest.BatchOutputConfig

The output configuration in the BatchProcessDocuments method.

Protobuf type google.cloud.documentai.v1beta3.BatchProcessRequest.BatchOutputConfig

BatchProcessRequest.BatchOutputConfig.Builder

The output configuration in the BatchProcessDocuments method.

Protobuf type google.cloud.documentai.v1beta3.BatchProcessRequest.BatchOutputConfig

BatchProcessRequest.Builder

Request message for BatchProcessDocuments.

Protobuf type google.cloud.documentai.v1beta3.BatchProcessRequest

BatchProcessResponse

Response message for BatchProcessDocuments.

Protobuf type google.cloud.documentai.v1beta3.BatchProcessResponse

BatchProcessResponse.Builder

Response message for BatchProcessDocuments.

Protobuf type google.cloud.documentai.v1beta3.BatchProcessResponse

BoundingPoly

A bounding polygon for the detected image annotation.

Protobuf type google.cloud.documentai.v1beta3.BoundingPoly

BoundingPoly.Builder

A bounding polygon for the detected image annotation.

Protobuf type google.cloud.documentai.v1beta3.BoundingPoly

CommonOperationMetadata

The common metadata for long running operations.

Protobuf type google.cloud.documentai.v1beta3.CommonOperationMetadata

CommonOperationMetadata.Builder

The common metadata for long running operations.

Protobuf type google.cloud.documentai.v1beta3.CommonOperationMetadata

CreateProcessorRequest

Request message for the CreateProcessor method. Notice this request is sent to a regionalized backend service. If the ProcessorType isn't available in that region, the creation fails.

Protobuf type google.cloud.documentai.v1beta3.CreateProcessorRequest

CreateProcessorRequest.Builder

Request message for the CreateProcessor method. Notice this request is sent to a regionalized backend service. If the ProcessorType isn't available in that region, the creation fails.

Protobuf type google.cloud.documentai.v1beta3.CreateProcessorRequest

Dataset

A singleton resource under a Processor which configures a collection of documents.

Protobuf type google.cloud.documentai.v1beta3.Dataset

Dataset.Builder

A singleton resource under a Processor which configures a collection of documents.

Protobuf type google.cloud.documentai.v1beta3.Dataset

Dataset.DocumentWarehouseConfig

Configuration specific to the Document AI Warehouse-based implementation.

Protobuf type google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig

Dataset.DocumentWarehouseConfig.Builder

Configuration specific to the Document AI Warehouse-based implementation.

Protobuf type google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig

Dataset.GCSManagedConfig

Configuration specific to the Cloud Storage-based implementation.

Protobuf type google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig

Dataset.GCSManagedConfig.Builder

Configuration specific to the Cloud Storage-based implementation.

Protobuf type google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig

Dataset.SpannerIndexingConfig

Configuration specific to spanner-based indexing.

Protobuf type google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig

Dataset.SpannerIndexingConfig.Builder

Configuration specific to spanner-based indexing.

Protobuf type google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig

Dataset.UnmanagedDatasetConfig

Configuration specific to an unmanaged dataset.

Protobuf type google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig

Dataset.UnmanagedDatasetConfig.Builder

Configuration specific to an unmanaged dataset.

Protobuf type google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig

DatasetProto

DatasetSchema

Dataset Schema.

Protobuf type google.cloud.documentai.v1beta3.DatasetSchema

DatasetSchema.Builder

Dataset Schema.

Protobuf type google.cloud.documentai.v1beta3.DatasetSchema

DatasetSchemaName

DatasetSchemaName.Builder

Builder for projects/{project}/locations/{location}/processors/{processor}/dataset/datasetSchema.

DeleteProcessorMetadata

The long-running operation metadata for the DeleteProcessor method.

Protobuf type google.cloud.documentai.v1beta3.DeleteProcessorMetadata

DeleteProcessorMetadata.Builder

The long-running operation metadata for the DeleteProcessor method.

Protobuf type google.cloud.documentai.v1beta3.DeleteProcessorMetadata

DeleteProcessorRequest

Request message for the DeleteProcessor method.

Protobuf type google.cloud.documentai.v1beta3.DeleteProcessorRequest

DeleteProcessorRequest.Builder

Request message for the DeleteProcessor method.

Protobuf type google.cloud.documentai.v1beta3.DeleteProcessorRequest

DeleteProcessorVersionMetadata

The long-running operation metadata for the DeleteProcessorVersion method.

Protobuf type google.cloud.documentai.v1beta3.DeleteProcessorVersionMetadata

DeleteProcessorVersionMetadata.Builder

The long-running operation metadata for the DeleteProcessorVersion method.

Protobuf type google.cloud.documentai.v1beta3.DeleteProcessorVersionMetadata

DeleteProcessorVersionRequest

Request message for the DeleteProcessorVersion method.

Protobuf type google.cloud.documentai.v1beta3.DeleteProcessorVersionRequest

DeleteProcessorVersionRequest.Builder

Request message for the DeleteProcessorVersion method.

Protobuf type google.cloud.documentai.v1beta3.DeleteProcessorVersionRequest

DeployProcessorVersionMetadata

The long-running operation metadata for the DeployProcessorVersion method.

Protobuf type google.cloud.documentai.v1beta3.DeployProcessorVersionMetadata

DeployProcessorVersionMetadata.Builder

The long-running operation metadata for the DeployProcessorVersion method.

Protobuf type google.cloud.documentai.v1beta3.DeployProcessorVersionMetadata

DeployProcessorVersionRequest

Request message for the DeployProcessorVersion method.

Protobuf type google.cloud.documentai.v1beta3.DeployProcessorVersionRequest

DeployProcessorVersionRequest.Builder

Request message for the DeployProcessorVersion method.

Protobuf type google.cloud.documentai.v1beta3.DeployProcessorVersionRequest

DeployProcessorVersionResponse

Response message for the DeployProcessorVersion method.

Protobuf type google.cloud.documentai.v1beta3.DeployProcessorVersionResponse

DeployProcessorVersionResponse.Builder

Response message for the DeployProcessorVersion method.

Protobuf type google.cloud.documentai.v1beta3.DeployProcessorVersionResponse

DisableProcessorMetadata

The long-running operation metadata for the DisableProcessor method.

Protobuf type google.cloud.documentai.v1beta3.DisableProcessorMetadata

DisableProcessorMetadata.Builder

The long-running operation metadata for the DisableProcessor method.

Protobuf type google.cloud.documentai.v1beta3.DisableProcessorMetadata

DisableProcessorRequest

Request message for the DisableProcessor method.

Protobuf type google.cloud.documentai.v1beta3.DisableProcessorRequest

DisableProcessorRequest.Builder

Request message for the DisableProcessor method.

Protobuf type google.cloud.documentai.v1beta3.DisableProcessorRequest

DisableProcessorResponse

Response message for the DisableProcessor method. Intentionally empty proto for adding fields in future.

Protobuf type google.cloud.documentai.v1beta3.DisableProcessorResponse

DisableProcessorResponse.Builder

Response message for the DisableProcessor method. Intentionally empty proto for adding fields in future.

Protobuf type google.cloud.documentai.v1beta3.DisableProcessorResponse

Document

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.

Protobuf type google.cloud.documentai.v1beta3.Document

Document.Builder

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.

Protobuf type google.cloud.documentai.v1beta3.Document

Document.Entity

An entity that could be a phrase in the text or a property that belongs to the document. It is a known entity type, such as a person, an organization, or location.

Protobuf type google.cloud.documentai.v1beta3.Document.Entity

Document.Entity.Builder

An entity that could be a phrase in the text or a property that belongs to the document. It is a known entity type, such as a person, an organization, or location.

Protobuf type google.cloud.documentai.v1beta3.Document.Entity

Document.Entity.NormalizedValue

Parsed and normalized entity value.

Protobuf type google.cloud.documentai.v1beta3.Document.Entity.NormalizedValue

Document.Entity.NormalizedValue.Builder

Parsed and normalized entity value.

Protobuf type google.cloud.documentai.v1beta3.Document.Entity.NormalizedValue

Document.EntityRelation

Relationship between Entities.

Protobuf type google.cloud.documentai.v1beta3.Document.EntityRelation

Document.EntityRelation.Builder

Relationship between Entities.

Protobuf type google.cloud.documentai.v1beta3.Document.EntityRelation

Document.Page

A page in a Document.

Protobuf type google.cloud.documentai.v1beta3.Document.Page

Document.Page.Block

A block has a set of lines (collected into paragraphs) that have a common line-spacing and orientation.

Protobuf type google.cloud.documentai.v1beta3.Document.Page.Block

Document.Page.Block.Builder

A block has a set of lines (collected into paragraphs) that have a common line-spacing and orientation.

Protobuf type google.cloud.documentai.v1beta3.Document.Page.Block

Document.Page.Builder

A page in a Document.

Protobuf type google.cloud.documentai.v1beta3.Document.Page

Document.Page.DetectedBarcode

A detected barcode.

Protobuf type google.cloud.documentai.v1beta3.Document.Page.DetectedBarcode

Document.Page.DetectedBarcode.Builder

A detected barcode.

Protobuf type google.cloud.documentai.v1beta3.Document.Page.DetectedBarcode

Document.Page.DetectedLanguage

Detected language for a structural component.

Protobuf type google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage

Document.Page.DetectedLanguage.Builder

Detected language for a structural component.

Protobuf type google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage

Document.Page.Dimension

Dimension for the page.

Protobuf type google.cloud.documentai.v1beta3.Document.Page.Dimension

Document.Page.Dimension.Builder

Dimension for the page.

Protobuf type google.cloud.documentai.v1beta3.Document.Page.Dimension

Document.Page.FormField

A form field detected on the page.

Protobuf type google.cloud.documentai.v1beta3.Document.Page.FormField

Document.Page.FormField.Builder

A form field detected on the page.

Protobuf type google.cloud.documentai.v1beta3.Document.Page.FormField

Document.Page.Image

Rendered image contents for this page.

Protobuf type google.cloud.documentai.v1beta3.Document.Page.Image

Document.Page.Image.Builder

Rendered image contents for this page.

Protobuf type google.cloud.documentai.v1beta3.Document.Page.Image

Document.Page.ImageQualityScores

Image quality scores for the page image.

Protobuf type google.cloud.documentai.v1beta3.Document.Page.ImageQualityScores

Document.Page.ImageQualityScores.Builder

Image quality scores for the page image.

Protobuf type google.cloud.documentai.v1beta3.Document.Page.ImageQualityScores

Document.Page.ImageQualityScores.DetectedDefect

Image Quality Defects

Protobuf type google.cloud.documentai.v1beta3.Document.Page.ImageQualityScores.DetectedDefect

Document.Page.ImageQualityScores.DetectedDefect.Builder

Image Quality Defects

Protobuf type google.cloud.documentai.v1beta3.Document.Page.ImageQualityScores.DetectedDefect

Document.Page.Layout

Visual element describing a layout unit on a page.

Protobuf type google.cloud.documentai.v1beta3.Document.Page.Layout

Document.Page.Layout.Builder

Visual element describing a layout unit on a page.

Protobuf type google.cloud.documentai.v1beta3.Document.Page.Layout

Document.Page.Line

A collection of tokens that a human would perceive as a line. Does not cross column boundaries, can be horizontal, vertical, etc.

Protobuf type google.cloud.documentai.v1beta3.Document.Page.Line

Document.Page.Line.Builder

A collection of tokens that a human would perceive as a line. Does not cross column boundaries, can be horizontal, vertical, etc.

Protobuf type google.cloud.documentai.v1beta3.Document.Page.Line

Document.Page.Matrix

Representation for transformation matrix, intended to be compatible and used with OpenCV format for image manipulation.

Protobuf type google.cloud.documentai.v1beta3.Document.Page.Matrix

Document.Page.Matrix.Builder

Representation for transformation matrix, intended to be compatible and used with OpenCV format for image manipulation.

Protobuf type google.cloud.documentai.v1beta3.Document.Page.Matrix

Document.Page.Paragraph

A collection of lines that a human would perceive as a paragraph.

Protobuf type google.cloud.documentai.v1beta3.Document.Page.Paragraph

Document.Page.Paragraph.Builder

A collection of lines that a human would perceive as a paragraph.

Protobuf type google.cloud.documentai.v1beta3.Document.Page.Paragraph

Document.Page.Symbol

A detected symbol.

Protobuf type google.cloud.documentai.v1beta3.Document.Page.Symbol

Document.Page.Symbol.Builder

A detected symbol.

Protobuf type google.cloud.documentai.v1beta3.Document.Page.Symbol

Document.Page.Table

A table representation similar to HTML table structure.

Protobuf type google.cloud.documentai.v1beta3.Document.Page.Table

Document.Page.Table.Builder

A table representation similar to HTML table structure.

Protobuf type google.cloud.documentai.v1beta3.Document.Page.Table

Document.Page.Table.TableCell

A cell representation inside the table.

Protobuf type google.cloud.documentai.v1beta3.Document.Page.Table.TableCell

Document.Page.Table.TableCell.Builder

A cell representation inside the table.

Protobuf type google.cloud.documentai.v1beta3.Document.Page.Table.TableCell

Document.Page.Table.TableRow

A row of table cells.

Protobuf type google.cloud.documentai.v1beta3.Document.Page.Table.TableRow

Document.Page.Table.TableRow.Builder

A row of table cells.

Protobuf type google.cloud.documentai.v1beta3.Document.Page.Table.TableRow

Document.Page.Token

A detected token.

Protobuf type google.cloud.documentai.v1beta3.Document.Page.Token

Document.Page.Token.Builder

A detected token.

Protobuf type google.cloud.documentai.v1beta3.Document.Page.Token

Document.Page.Token.DetectedBreak

Detected break at the end of a Token.

Protobuf type google.cloud.documentai.v1beta3.Document.Page.Token.DetectedBreak

Document.Page.Token.DetectedBreak.Builder

Detected break at the end of a Token.

Protobuf type google.cloud.documentai.v1beta3.Document.Page.Token.DetectedBreak

Document.Page.Token.StyleInfo

Font and other text style attributes.

Protobuf type google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo

Document.Page.Token.StyleInfo.Builder

Font and other text style attributes.

Protobuf type google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo

Document.Page.VisualElement

Detected non-text visual elements e.g. checkbox, signature etc. on the page.

Protobuf type google.cloud.documentai.v1beta3.Document.Page.VisualElement

Document.Page.VisualElement.Builder

Detected non-text visual elements e.g. checkbox, signature etc. on the page.

Protobuf type google.cloud.documentai.v1beta3.Document.Page.VisualElement

Document.PageAnchor

Referencing the visual context of the entity in the Document.pages. Page anchors can be cross-page, consist of multiple bounding polygons and optionally reference specific layout element types.

Protobuf type google.cloud.documentai.v1beta3.Document.PageAnchor

Document.PageAnchor.Builder

Referencing the visual context of the entity in the Document.pages. Page anchors can be cross-page, consist of multiple bounding polygons and optionally reference specific layout element types.

Protobuf type google.cloud.documentai.v1beta3.Document.PageAnchor

Document.PageAnchor.PageRef

Represents a weak reference to a page element within a document.

Protobuf type google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef

Document.PageAnchor.PageRef.Builder

Represents a weak reference to a page element within a document.

Protobuf type google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef

Document.Provenance

Structure to identify provenance relationships between annotations in different revisions.

Protobuf type google.cloud.documentai.v1beta3.Document.Provenance

Document.Provenance.Builder

Structure to identify provenance relationships between annotations in different revisions.

Protobuf type google.cloud.documentai.v1beta3.Document.Provenance

Document.Provenance.Parent

The parent element the current element is based on. Used for referencing/aligning, removal and replacement operations.

Protobuf type google.cloud.documentai.v1beta3.Document.Provenance.Parent

Document.Provenance.Parent.Builder

The parent element the current element is based on. Used for referencing/aligning, removal and replacement operations.

Protobuf type google.cloud.documentai.v1beta3.Document.Provenance.Parent

Document.Revision

Contains past or forward revisions of this document.

Protobuf type google.cloud.documentai.v1beta3.Document.Revision

Document.Revision.Builder

Contains past or forward revisions of this document.

Protobuf type google.cloud.documentai.v1beta3.Document.Revision

Document.Revision.HumanReview

Human Review information of the document.

Protobuf type google.cloud.documentai.v1beta3.Document.Revision.HumanReview

Document.Revision.HumanReview.Builder

Human Review information of the document.

Protobuf type google.cloud.documentai.v1beta3.Document.Revision.HumanReview

Document.ShardInfo

For a large document, sharding may be performed to produce several document shards. Each document shard contains this field to detail which shard it is.

Protobuf type google.cloud.documentai.v1beta3.Document.ShardInfo

Document.ShardInfo.Builder

For a large document, sharding may be performed to produce several document shards. Each document shard contains this field to detail which shard it is.

Protobuf type google.cloud.documentai.v1beta3.Document.ShardInfo

Document.Style

Annotation for common text style attributes. This adheres to CSS conventions as much as possible.

Protobuf type google.cloud.documentai.v1beta3.Document.Style

Document.Style.Builder

Annotation for common text style attributes. This adheres to CSS conventions as much as possible.

Protobuf type google.cloud.documentai.v1beta3.Document.Style

Document.Style.FontSize

Font size with unit.

Protobuf type google.cloud.documentai.v1beta3.Document.Style.FontSize

Document.Style.FontSize.Builder

Font size with unit.

Protobuf type google.cloud.documentai.v1beta3.Document.Style.FontSize

Document.TextAnchor

Text reference indexing into the Document.text.

Protobuf type google.cloud.documentai.v1beta3.Document.TextAnchor

Document.TextAnchor.Builder

Text reference indexing into the Document.text.

Protobuf type google.cloud.documentai.v1beta3.Document.TextAnchor

Document.TextAnchor.TextSegment

A text segment in the Document.text. The indices may be out of bounds which indicate that the text extends into another document shard for large sharded documents. See ShardInfo.text_offset

Protobuf type google.cloud.documentai.v1beta3.Document.TextAnchor.TextSegment

Document.TextAnchor.TextSegment.Builder

A text segment in the Document.text. The indices may be out of bounds which indicate that the text extends into another document shard for large sharded documents. See ShardInfo.text_offset

Protobuf type google.cloud.documentai.v1beta3.Document.TextAnchor.TextSegment

Document.TextChange

This message is used for text changes aka. OCR corrections.

Protobuf type google.cloud.documentai.v1beta3.Document.TextChange

Document.TextChange.Builder

This message is used for text changes aka. OCR corrections.

Protobuf type google.cloud.documentai.v1beta3.Document.TextChange

DocumentAiDocumentSchema

DocumentAiDocumentService

DocumentAiEvaluation

DocumentAiProcessor

DocumentAiProcessorService

DocumentAiProcessorType

DocumentIoProto

DocumentOutputConfig

Config that controls the output of documents. All documents will be written as a JSON file.

Protobuf type google.cloud.documentai.v1beta3.DocumentOutputConfig

DocumentOutputConfig.Builder

Config that controls the output of documents. All documents will be written as a JSON file.

Protobuf type google.cloud.documentai.v1beta3.DocumentOutputConfig

DocumentOutputConfig.GcsOutputConfig

The configuration used when outputting documents.

Protobuf type google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig

DocumentOutputConfig.GcsOutputConfig.Builder

The configuration used when outputting documents.

Protobuf type google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig

DocumentOutputConfig.GcsOutputConfig.ShardingConfig

The sharding config for the output document.

Protobuf type google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig.ShardingConfig

DocumentOutputConfig.GcsOutputConfig.ShardingConfig.Builder

The sharding config for the output document.

Protobuf type google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig.ShardingConfig

DocumentProcessorServiceClient

Service Description: Service to call Document AI to process documents according to the processor's definition. Processors are built using state-of-the-art Google AI such as natural language, computer vision, and translation to extract structured information from unstructured or semi-structured documents.

This class provides the ability to make remote calls to the backing service through method calls that map to API methods. Sample code to get started:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (DocumentProcessorServiceClient documentProcessorServiceClient =
     DocumentProcessorServiceClient.create()) {
   ResourceName name = ProcessorName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]");
   ProcessResponse response = documentProcessorServiceClient.processDocument(name);
 }
 

Note: close() needs to be called on the DocumentProcessorServiceClient object to clean up resources such as threads. In the example above, try-with-resources is used, which automatically calls close().

The surface of this class includes several types of Java methods for each of the API's methods:

  1. A "flattened" method. With this type of method, the fields of the request type have been converted into function parameters. It may be the case that not all fields are available as parameters, and not every API method will have a flattened method entry point.
  2. A "request object" method. This type of method only takes one parameter, a request object, which must be constructed before the call. Not every API method will have a request object method.
  3. A "callable" method. This type of method takes no parameters and returns an immutable API callable object, which can be used to initiate calls to the service.

See the individual methods for example code.

Many parameters require resource names to be formatted in a particular way. To assist with these names, this class includes a format method for each type of name, and additionally a parse method to extract the individual identifiers contained within names that are returned.

This class can be customized by passing in a custom instance of DocumentProcessorServiceSettings to create(). For example:

To customize credentials:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 DocumentProcessorServiceSettings documentProcessorServiceSettings =
     DocumentProcessorServiceSettings.newBuilder()
         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
         .build();
 DocumentProcessorServiceClient documentProcessorServiceClient =
     DocumentProcessorServiceClient.create(documentProcessorServiceSettings);
 

To customize the endpoint:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 DocumentProcessorServiceSettings documentProcessorServiceSettings =
     DocumentProcessorServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
 DocumentProcessorServiceClient documentProcessorServiceClient =
     DocumentProcessorServiceClient.create(documentProcessorServiceSettings);
 

To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over the wire:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 DocumentProcessorServiceSettings documentProcessorServiceSettings =
     DocumentProcessorServiceSettings.newHttpJsonBuilder().build();
 DocumentProcessorServiceClient documentProcessorServiceClient =
     DocumentProcessorServiceClient.create(documentProcessorServiceSettings);
 

Please refer to the GitHub repository's samples for more quickstart code snippets.

DocumentProcessorServiceClient.ListEvaluationsFixedSizeCollection

DocumentProcessorServiceClient.ListEvaluationsPage

DocumentProcessorServiceClient.ListEvaluationsPagedResponse

DocumentProcessorServiceClient.ListLocationsFixedSizeCollection

DocumentProcessorServiceClient.ListLocationsPage

DocumentProcessorServiceClient.ListLocationsPagedResponse

DocumentProcessorServiceClient.ListProcessorTypesFixedSizeCollection

DocumentProcessorServiceClient.ListProcessorTypesPage

DocumentProcessorServiceClient.ListProcessorTypesPagedResponse

DocumentProcessorServiceClient.ListProcessorVersionsFixedSizeCollection

DocumentProcessorServiceClient.ListProcessorVersionsPage

DocumentProcessorServiceClient.ListProcessorVersionsPagedResponse

DocumentProcessorServiceClient.ListProcessorsFixedSizeCollection

DocumentProcessorServiceClient.ListProcessorsPage

DocumentProcessorServiceClient.ListProcessorsPagedResponse

DocumentProcessorServiceGrpc

Service to call Document AI to process documents according to the processor's definition. Processors are built using state-of-the-art Google AI such as natural language, computer vision, and translation to extract structured information from unstructured or semi-structured documents.

DocumentProcessorServiceGrpc.DocumentProcessorServiceBlockingStub

A stub to allow clients to do synchronous rpc calls to service DocumentProcessorService.

Service to call Document AI to process documents according to the processor's definition. Processors are built using state-of-the-art Google AI such as natural language, computer vision, and translation to extract structured information from unstructured or semi-structured documents.

DocumentProcessorServiceGrpc.DocumentProcessorServiceFutureStub

A stub to allow clients to do ListenableFuture-style rpc calls to service DocumentProcessorService.

Service to call Document AI to process documents according to the processor's definition. Processors are built using state-of-the-art Google AI such as natural language, computer vision, and translation to extract structured information from unstructured or semi-structured documents.

DocumentProcessorServiceGrpc.DocumentProcessorServiceImplBase

Base class for the server implementation of the service DocumentProcessorService.

Service to call Document AI to process documents according to the processor's definition. Processors are built using state-of-the-art Google AI such as natural language, computer vision, and translation to extract structured information from unstructured or semi-structured documents.

DocumentProcessorServiceGrpc.DocumentProcessorServiceStub

A stub to allow clients to do asynchronous rpc calls to service DocumentProcessorService.

Service to call Document AI to process documents according to the processor's definition. Processors are built using state-of-the-art Google AI such as natural language, computer vision, and translation to extract structured information from unstructured or semi-structured documents.

DocumentProcessorServiceSettings

Settings class to configure an instance of DocumentProcessorServiceClient.

The default instance has everything set to sensible defaults:

  • The default service address (documentai.googleapis.com) and default port (443) are used.
  • Credentials are acquired automatically through Application Default Credentials.
  • Retries are configured for idempotent methods but not for non-idempotent methods.

The builder of this class is recursive, so contained classes are themselves builders. When build() is called, the tree of builders is called to create the complete settings object.

For example, to set the total timeout of processDocument to 30 seconds:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 DocumentProcessorServiceSettings.Builder documentProcessorServiceSettingsBuilder =
     DocumentProcessorServiceSettings.newBuilder();
 documentProcessorServiceSettingsBuilder
     .processDocumentSettings()
     .setRetrySettings(
         documentProcessorServiceSettingsBuilder
             .processDocumentSettings()
             .getRetrySettings()
             .toBuilder()
             .setTotalTimeout(Duration.ofSeconds(30))
             .build());
 DocumentProcessorServiceSettings documentProcessorServiceSettings =
     documentProcessorServiceSettingsBuilder.build();
 

DocumentProcessorServiceSettings.Builder

Builder for DocumentProcessorServiceSettings.

DocumentProto

DocumentSchema

The schema defines the output of the processed document by a processor.

Protobuf type google.cloud.documentai.v1beta3.DocumentSchema

DocumentSchema.Builder

The schema defines the output of the processed document by a processor.

Protobuf type google.cloud.documentai.v1beta3.DocumentSchema

DocumentSchema.EntityType

EntityType is the wrapper of a label of the corresponding model with detailed attributes and limitations for entity-based processors. Multiple types can also compose a dependency tree to represent nested types.

Protobuf type google.cloud.documentai.v1beta3.DocumentSchema.EntityType

DocumentSchema.EntityType.Builder

EntityType is the wrapper of a label of the corresponding model with detailed attributes and limitations for entity-based processors. Multiple types can also compose a dependency tree to represent nested types.

Protobuf type google.cloud.documentai.v1beta3.DocumentSchema.EntityType

DocumentSchema.EntityType.EnumValues

Defines the a list of enum values.

Protobuf type google.cloud.documentai.v1beta3.DocumentSchema.EntityType.EnumValues

DocumentSchema.EntityType.EnumValues.Builder

Defines the a list of enum values.

Protobuf type google.cloud.documentai.v1beta3.DocumentSchema.EntityType.EnumValues

DocumentSchema.EntityType.Property

Defines properties that can be part of the entity type.

Protobuf type google.cloud.documentai.v1beta3.DocumentSchema.EntityType.Property

DocumentSchema.EntityType.Property.Builder

Defines properties that can be part of the entity type.

Protobuf type google.cloud.documentai.v1beta3.DocumentSchema.EntityType.Property

DocumentSchema.Metadata

Metadata for global schema behavior.

Protobuf type google.cloud.documentai.v1beta3.DocumentSchema.Metadata

DocumentSchema.Metadata.Builder

Metadata for global schema behavior.

Protobuf type google.cloud.documentai.v1beta3.DocumentSchema.Metadata

DocumentServiceClient

Service Description: Service to call Cloud DocumentAI to manage document collection (dataset).

This class provides the ability to make remote calls to the backing service through method calls that map to API methods. Sample code to get started:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) {
   DatasetSchemaName name = DatasetSchemaName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]");
   DatasetSchema response = documentServiceClient.getDatasetSchema(name);
 }
 

Note: close() needs to be called on the DocumentServiceClient object to clean up resources such as threads. In the example above, try-with-resources is used, which automatically calls close().

The surface of this class includes several types of Java methods for each of the API's methods:

  1. A "flattened" method. With this type of method, the fields of the request type have been converted into function parameters. It may be the case that not all fields are available as parameters, and not every API method will have a flattened method entry point.
  2. A "request object" method. This type of method only takes one parameter, a request object, which must be constructed before the call. Not every API method will have a request object method.
  3. A "callable" method. This type of method takes no parameters and returns an immutable API callable object, which can be used to initiate calls to the service.

See the individual methods for example code.

Many parameters require resource names to be formatted in a particular way. To assist with these names, this class includes a format method for each type of name, and additionally a parse method to extract the individual identifiers contained within names that are returned.

This class can be customized by passing in a custom instance of DocumentServiceSettings to create(). For example:

To customize credentials:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 DocumentServiceSettings documentServiceSettings =
     DocumentServiceSettings.newBuilder()
         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
         .build();
 DocumentServiceClient documentServiceClient =
     DocumentServiceClient.create(documentServiceSettings);
 

To customize the endpoint:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 DocumentServiceSettings documentServiceSettings =
     DocumentServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
 DocumentServiceClient documentServiceClient =
     DocumentServiceClient.create(documentServiceSettings);
 

To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over the wire:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 DocumentServiceSettings documentServiceSettings =
     DocumentServiceSettings.newHttpJsonBuilder().build();
 DocumentServiceClient documentServiceClient =
     DocumentServiceClient.create(documentServiceSettings);
 

Please refer to the GitHub repository's samples for more quickstart code snippets.

DocumentServiceClient.ListLocationsFixedSizeCollection

DocumentServiceClient.ListLocationsPage

DocumentServiceClient.ListLocationsPagedResponse

DocumentServiceGrpc

Service to call Cloud DocumentAI to manage document collection (dataset).

DocumentServiceGrpc.DocumentServiceBlockingStub

A stub to allow clients to do synchronous rpc calls to service DocumentService.

Service to call Cloud DocumentAI to manage document collection (dataset).

DocumentServiceGrpc.DocumentServiceFutureStub

A stub to allow clients to do ListenableFuture-style rpc calls to service DocumentService.

Service to call Cloud DocumentAI to manage document collection (dataset).

DocumentServiceGrpc.DocumentServiceImplBase

Base class for the server implementation of the service DocumentService.

Service to call Cloud DocumentAI to manage document collection (dataset).

DocumentServiceGrpc.DocumentServiceStub

A stub to allow clients to do asynchronous rpc calls to service DocumentService.

Service to call Cloud DocumentAI to manage document collection (dataset).

DocumentServiceSettings

Settings class to configure an instance of DocumentServiceClient.

The default instance has everything set to sensible defaults:

  • The default service address (documentai.googleapis.com) and default port (443) are used.
  • Credentials are acquired automatically through Application Default Credentials.
  • Retries are configured for idempotent methods but not for non-idempotent methods.

The builder of this class is recursive, so contained classes are themselves builders. When build() is called, the tree of builders is called to create the complete settings object.

For example, to set the total timeout of getDatasetSchema to 30 seconds:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 DocumentServiceSettings.Builder documentServiceSettingsBuilder =
     DocumentServiceSettings.newBuilder();
 documentServiceSettingsBuilder
     .getDatasetSchemaSettings()
     .setRetrySettings(
         documentServiceSettingsBuilder
             .getDatasetSchemaSettings()
             .getRetrySettings()
             .toBuilder()
             .setTotalTimeout(Duration.ofSeconds(30))
             .build());
 DocumentServiceSettings documentServiceSettings = documentServiceSettingsBuilder.build();
 

DocumentServiceSettings.Builder

Builder for DocumentServiceSettings.

EnableProcessorMetadata

The long-running operation metadata for the EnableProcessor method.

Protobuf type google.cloud.documentai.v1beta3.EnableProcessorMetadata

EnableProcessorMetadata.Builder

The long-running operation metadata for the EnableProcessor method.

Protobuf type google.cloud.documentai.v1beta3.EnableProcessorMetadata

EnableProcessorRequest

Request message for the EnableProcessor method.

Protobuf type google.cloud.documentai.v1beta3.EnableProcessorRequest

EnableProcessorRequest.Builder

Request message for the EnableProcessor method.

Protobuf type google.cloud.documentai.v1beta3.EnableProcessorRequest

EnableProcessorResponse

Response message for the EnableProcessor method. Intentionally empty proto for adding fields in future.

Protobuf type google.cloud.documentai.v1beta3.EnableProcessorResponse

EnableProcessorResponse.Builder

Response message for the EnableProcessor method. Intentionally empty proto for adding fields in future.

Protobuf type google.cloud.documentai.v1beta3.EnableProcessorResponse

EntityTypeMetadata

Metadata about an entity type.

Protobuf type google.cloud.documentai.v1beta3.EntityTypeMetadata

EntityTypeMetadata.Builder

Metadata about an entity type.

Protobuf type google.cloud.documentai.v1beta3.EntityTypeMetadata

EvaluateProcessorVersionMetadata

Metadata of the EvaluateProcessorVersion method.

Protobuf type google.cloud.documentai.v1beta3.EvaluateProcessorVersionMetadata

EvaluateProcessorVersionMetadata.Builder

Metadata of the EvaluateProcessorVersion method.

Protobuf type google.cloud.documentai.v1beta3.EvaluateProcessorVersionMetadata

EvaluateProcessorVersionRequest

Evaluates the given ProcessorVersion against the supplied documents.

Protobuf type google.cloud.documentai.v1beta3.EvaluateProcessorVersionRequest

EvaluateProcessorVersionRequest.Builder

Evaluates the given ProcessorVersion against the supplied documents.

Protobuf type google.cloud.documentai.v1beta3.EvaluateProcessorVersionRequest

EvaluateProcessorVersionResponse

Response of the EvaluateProcessorVersion method.

Protobuf type google.cloud.documentai.v1beta3.EvaluateProcessorVersionResponse

EvaluateProcessorVersionResponse.Builder

Response of the EvaluateProcessorVersion method.

Protobuf type google.cloud.documentai.v1beta3.EvaluateProcessorVersionResponse

Evaluation

An evaluation of a ProcessorVersion's performance.

Protobuf type google.cloud.documentai.v1beta3.Evaluation

Evaluation.Builder

An evaluation of a ProcessorVersion's performance.

Protobuf type google.cloud.documentai.v1beta3.Evaluation

Evaluation.ConfidenceLevelMetrics

Evaluations metrics, at a specific confidence level.

Protobuf type google.cloud.documentai.v1beta3.Evaluation.ConfidenceLevelMetrics

Evaluation.ConfidenceLevelMetrics.Builder

Evaluations metrics, at a specific confidence level.

Protobuf type google.cloud.documentai.v1beta3.Evaluation.ConfidenceLevelMetrics

Evaluation.Counters

Evaluation counters for the documents that were used.

Protobuf type google.cloud.documentai.v1beta3.Evaluation.Counters

Evaluation.Counters.Builder

Evaluation counters for the documents that were used.

Protobuf type google.cloud.documentai.v1beta3.Evaluation.Counters

Evaluation.Metrics

Evaluation metrics, either in aggregate or about a specific entity.

Protobuf type google.cloud.documentai.v1beta3.Evaluation.Metrics

Evaluation.Metrics.Builder

Evaluation metrics, either in aggregate or about a specific entity.

Protobuf type google.cloud.documentai.v1beta3.Evaluation.Metrics

Evaluation.MultiConfidenceMetrics

Metrics across multiple confidence levels.

Protobuf type google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics

Evaluation.MultiConfidenceMetrics.Builder

Metrics across multiple confidence levels.

Protobuf type google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics

EvaluationName

EvaluationName.Builder

Builder for projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processor_version}/evaluations/{evaluation}.

EvaluationReference

Gives a short summary of an evaluation, and links to the evaluation itself.

Protobuf type google.cloud.documentai.v1beta3.EvaluationReference

EvaluationReference.Builder

Gives a short summary of an evaluation, and links to the evaluation itself.

Protobuf type google.cloud.documentai.v1beta3.EvaluationReference

FetchProcessorTypesRequest

Request message for the FetchProcessorTypes method. Some processor types may require the project be added to an allowlist.

Protobuf type google.cloud.documentai.v1beta3.FetchProcessorTypesRequest

FetchProcessorTypesRequest.Builder

Request message for the FetchProcessorTypes method. Some processor types may require the project be added to an allowlist.

Protobuf type google.cloud.documentai.v1beta3.FetchProcessorTypesRequest

FetchProcessorTypesResponse

Response message for the FetchProcessorTypes method.

Protobuf type google.cloud.documentai.v1beta3.FetchProcessorTypesResponse

FetchProcessorTypesResponse.Builder

Response message for the FetchProcessorTypes method.

Protobuf type google.cloud.documentai.v1beta3.FetchProcessorTypesResponse

GcsDocument

Specifies a document stored on Cloud Storage.

Protobuf type google.cloud.documentai.v1beta3.GcsDocument

GcsDocument.Builder

Specifies a document stored on Cloud Storage.

Protobuf type google.cloud.documentai.v1beta3.GcsDocument

GcsDocuments

Specifies a set of documents on Cloud Storage.

Protobuf type google.cloud.documentai.v1beta3.GcsDocuments

GcsDocuments.Builder

Specifies a set of documents on Cloud Storage.

Protobuf type google.cloud.documentai.v1beta3.GcsDocuments

GcsPrefix

Specifies all documents on Cloud Storage with a common prefix.

Protobuf type google.cloud.documentai.v1beta3.GcsPrefix

GcsPrefix.Builder

Specifies all documents on Cloud Storage with a common prefix.

Protobuf type google.cloud.documentai.v1beta3.GcsPrefix

GeometryProto

GetDatasetSchemaRequest

Request for GetDatasetSchema.

Protobuf type google.cloud.documentai.v1beta3.GetDatasetSchemaRequest

GetDatasetSchemaRequest.Builder

Request for GetDatasetSchema.

Protobuf type google.cloud.documentai.v1beta3.GetDatasetSchemaRequest

GetEvaluationRequest

Retrieves a specific Evaluation.

Protobuf type google.cloud.documentai.v1beta3.GetEvaluationRequest

GetEvaluationRequest.Builder

Retrieves a specific Evaluation.

Protobuf type google.cloud.documentai.v1beta3.GetEvaluationRequest

GetProcessorRequest

Request message for the GetProcessor method.

Protobuf type google.cloud.documentai.v1beta3.GetProcessorRequest

GetProcessorRequest.Builder

Request message for the GetProcessor method.

Protobuf type google.cloud.documentai.v1beta3.GetProcessorRequest

GetProcessorTypeRequest

Request message for the GetProcessorType method.

Protobuf type google.cloud.documentai.v1beta3.GetProcessorTypeRequest

GetProcessorTypeRequest.Builder

Request message for the GetProcessorType method.

Protobuf type google.cloud.documentai.v1beta3.GetProcessorTypeRequest

GetProcessorVersionRequest

Request message for the GetProcessorVersion method.

Protobuf type google.cloud.documentai.v1beta3.GetProcessorVersionRequest

GetProcessorVersionRequest.Builder

Request message for the GetProcessorVersion method.

Protobuf type google.cloud.documentai.v1beta3.GetProcessorVersionRequest

HumanReviewConfigName

HumanReviewConfigName.Builder

Builder for projects/{project}/locations/{location}/processors/{processor}/humanReviewConfig.

HumanReviewStatus

The status of human review on a processed document.

Protobuf type google.cloud.documentai.v1beta3.HumanReviewStatus

HumanReviewStatus.Builder

The status of human review on a processed document.

Protobuf type google.cloud.documentai.v1beta3.HumanReviewStatus

ImportProcessorVersionMetadata

The long-running operation metadata for the ImportProcessorVersion method.

Protobuf type google.cloud.documentai.v1beta3.ImportProcessorVersionMetadata

ImportProcessorVersionMetadata.Builder

The long-running operation metadata for the ImportProcessorVersion method.

Protobuf type google.cloud.documentai.v1beta3.ImportProcessorVersionMetadata

ImportProcessorVersionRequest

The request message for the ImportProcessorVersion method. Requirements:

  • The source processor version and destination processor must be in the same location.
  • The Document AI Service Agent of the destination project must have Document AI Editor role on the source project.

    The destination project is specified as part of the parent field. The source project is specified as part of the source field.

Protobuf type google.cloud.documentai.v1beta3.ImportProcessorVersionRequest

ImportProcessorVersionRequest.Builder

The request message for the ImportProcessorVersion method. Requirements:

  • The source processor version and destination processor must be in the same location.
  • The Document AI Service Agent of the destination project must have Document AI Editor role on the source project.

    The destination project is specified as part of the parent field. The source project is specified as part of the source field.

Protobuf type google.cloud.documentai.v1beta3.ImportProcessorVersionRequest

ImportProcessorVersionResponse

The response message for the ImportProcessorVersion method.

Protobuf type google.cloud.documentai.v1beta3.ImportProcessorVersionResponse

ImportProcessorVersionResponse.Builder

The response message for the ImportProcessorVersion method.

Protobuf type google.cloud.documentai.v1beta3.ImportProcessorVersionResponse

ListEvaluationsRequest

Retrieves a list of evaluations for a given ProcessorVersion.

Protobuf type google.cloud.documentai.v1beta3.ListEvaluationsRequest

ListEvaluationsRequest.Builder

Retrieves a list of evaluations for a given ProcessorVersion.

Protobuf type google.cloud.documentai.v1beta3.ListEvaluationsRequest

ListEvaluationsResponse

The response from ListEvaluations.

Protobuf type google.cloud.documentai.v1beta3.ListEvaluationsResponse

ListEvaluationsResponse.Builder

The response from ListEvaluations.

Protobuf type google.cloud.documentai.v1beta3.ListEvaluationsResponse

ListProcessorTypesRequest

Request message for the ListProcessorTypes method. Some processor types may require the project be added to an allowlist.

Protobuf type google.cloud.documentai.v1beta3.ListProcessorTypesRequest

ListProcessorTypesRequest.Builder

Request message for the ListProcessorTypes method. Some processor types may require the project be added to an allowlist.

Protobuf type google.cloud.documentai.v1beta3.ListProcessorTypesRequest

ListProcessorTypesResponse

Response message for the ListProcessorTypes method.

Protobuf type google.cloud.documentai.v1beta3.ListProcessorTypesResponse

ListProcessorTypesResponse.Builder

Response message for the ListProcessorTypes method.

Protobuf type google.cloud.documentai.v1beta3.ListProcessorTypesResponse

ListProcessorVersionsRequest

Request message for list all processor versions belongs to a processor.

Protobuf type google.cloud.documentai.v1beta3.ListProcessorVersionsRequest

ListProcessorVersionsRequest.Builder

Request message for list all processor versions belongs to a processor.

Protobuf type google.cloud.documentai.v1beta3.ListProcessorVersionsRequest

ListProcessorVersionsResponse

Response message for the ListProcessorVersions method.

Protobuf type google.cloud.documentai.v1beta3.ListProcessorVersionsResponse

ListProcessorVersionsResponse.Builder

Response message for the ListProcessorVersions method.

Protobuf type google.cloud.documentai.v1beta3.ListProcessorVersionsResponse

ListProcessorsRequest

Request message for list all processors belongs to a project.

Protobuf type google.cloud.documentai.v1beta3.ListProcessorsRequest

ListProcessorsRequest.Builder

Request message for list all processors belongs to a project.

Protobuf type google.cloud.documentai.v1beta3.ListProcessorsRequest

ListProcessorsResponse

Response message for the ListProcessors method.

Protobuf type google.cloud.documentai.v1beta3.ListProcessorsResponse

ListProcessorsResponse.Builder

Response message for the ListProcessors method.

Protobuf type google.cloud.documentai.v1beta3.ListProcessorsResponse

LocationName

LocationName.Builder

Builder for projects/{project}/locations/{location}.

NormalizedVertex

A vertex represents a 2D point in the image. NOTE: the normalized vertex coordinates are relative to the original image and range from 0 to 1.

Protobuf type google.cloud.documentai.v1beta3.NormalizedVertex

NormalizedVertex.Builder

A vertex represents a 2D point in the image. NOTE: the normalized vertex coordinates are relative to the original image and range from 0 to 1.

Protobuf type google.cloud.documentai.v1beta3.NormalizedVertex

OcrConfig

Config for Document OCR.

Protobuf type google.cloud.documentai.v1beta3.OcrConfig

OcrConfig.Builder

Config for Document OCR.

Protobuf type google.cloud.documentai.v1beta3.OcrConfig

OcrConfig.Hints

Hints for OCR Engine

Protobuf type google.cloud.documentai.v1beta3.OcrConfig.Hints

OcrConfig.Hints.Builder

Hints for OCR Engine

Protobuf type google.cloud.documentai.v1beta3.OcrConfig.Hints

OperationMetadataProto

ProcessOptions

Options for Process API

Protobuf type google.cloud.documentai.v1beta3.ProcessOptions

ProcessOptions.Builder

Options for Process API

Protobuf type google.cloud.documentai.v1beta3.ProcessOptions

ProcessRequest

Request message for the ProcessDocument method.

Protobuf type google.cloud.documentai.v1beta3.ProcessRequest

ProcessRequest.Builder

Request message for the ProcessDocument method.

Protobuf type google.cloud.documentai.v1beta3.ProcessRequest

ProcessResponse

Response message for the ProcessDocument method.

Protobuf type google.cloud.documentai.v1beta3.ProcessResponse

ProcessResponse.Builder

Response message for the ProcessDocument method.

Protobuf type google.cloud.documentai.v1beta3.ProcessResponse

Processor

The first-class citizen for Document AI. Each processor defines how to extract structural information from a document.

Protobuf type google.cloud.documentai.v1beta3.Processor

Processor.Builder

The first-class citizen for Document AI. Each processor defines how to extract structural information from a document.

Protobuf type google.cloud.documentai.v1beta3.Processor

ProcessorName

ProcessorName.Builder

Builder for projects/{project}/locations/{location}/processors/{processor}.

ProcessorType

A processor type is responsible for performing a certain document understanding task on a certain type of document.

Protobuf type google.cloud.documentai.v1beta3.ProcessorType

ProcessorType.Builder

A processor type is responsible for performing a certain document understanding task on a certain type of document.

Protobuf type google.cloud.documentai.v1beta3.ProcessorType

ProcessorType.LocationInfo

The location information about where the processor is available.

Protobuf type google.cloud.documentai.v1beta3.ProcessorType.LocationInfo

ProcessorType.LocationInfo.Builder

The location information about where the processor is available.

Protobuf type google.cloud.documentai.v1beta3.ProcessorType.LocationInfo

ProcessorTypeName

ProcessorTypeName.Builder

Builder for projects/{project}/locations/{location}/processorTypes/{processor_type}.

ProcessorVersion

A processor version is an implementation of a processor. Each processor can have multiple versions, pretrained by Google internally or uptrained by the customer. A processor can only have one default version at a time. Its document-processing behavior is defined by that version.

Protobuf type google.cloud.documentai.v1beta3.ProcessorVersion

ProcessorVersion.Builder

A processor version is an implementation of a processor. Each processor can have multiple versions, pretrained by Google internally or uptrained by the customer. A processor can only have one default version at a time. Its document-processing behavior is defined by that version.

Protobuf type google.cloud.documentai.v1beta3.ProcessorVersion

ProcessorVersion.DeprecationInfo

Information about the upcoming deprecation of this processor version.

Protobuf type google.cloud.documentai.v1beta3.ProcessorVersion.DeprecationInfo

ProcessorVersion.DeprecationInfo.Builder

Information about the upcoming deprecation of this processor version.

Protobuf type google.cloud.documentai.v1beta3.ProcessorVersion.DeprecationInfo

ProcessorVersionName

ProcessorVersionName.Builder

Builder for projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processor_version}.

PropertyMetadata

Metadata about a property.

Protobuf type google.cloud.documentai.v1beta3.PropertyMetadata

PropertyMetadata.Builder

Metadata about a property.

Protobuf type google.cloud.documentai.v1beta3.PropertyMetadata

RawDocument

Payload message of raw document content (bytes).

Protobuf type google.cloud.documentai.v1beta3.RawDocument

RawDocument.Builder

Payload message of raw document content (bytes).

Protobuf type google.cloud.documentai.v1beta3.RawDocument

ReviewDocumentOperationMetadata

The long-running operation metadata for the ReviewDocument method.

Protobuf type google.cloud.documentai.v1beta3.ReviewDocumentOperationMetadata

ReviewDocumentOperationMetadata.Builder

The long-running operation metadata for the ReviewDocument method.

Protobuf type google.cloud.documentai.v1beta3.ReviewDocumentOperationMetadata

ReviewDocumentRequest

Request message for the ReviewDocument method.

Protobuf type google.cloud.documentai.v1beta3.ReviewDocumentRequest

ReviewDocumentRequest.Builder

Request message for the ReviewDocument method.

Protobuf type google.cloud.documentai.v1beta3.ReviewDocumentRequest

ReviewDocumentResponse

Response message for the ReviewDocument method.

Protobuf type google.cloud.documentai.v1beta3.ReviewDocumentResponse

ReviewDocumentResponse.Builder

Response message for the ReviewDocument method.

Protobuf type google.cloud.documentai.v1beta3.ReviewDocumentResponse

SetDefaultProcessorVersionMetadata

The long-running operation metadata for the SetDefaultProcessorVersion method.

Protobuf type google.cloud.documentai.v1beta3.SetDefaultProcessorVersionMetadata

SetDefaultProcessorVersionMetadata.Builder

The long-running operation metadata for the SetDefaultProcessorVersion method.

Protobuf type google.cloud.documentai.v1beta3.SetDefaultProcessorVersionMetadata

SetDefaultProcessorVersionRequest

Request message for the SetDefaultProcessorVersion method.

Protobuf type google.cloud.documentai.v1beta3.SetDefaultProcessorVersionRequest

SetDefaultProcessorVersionRequest.Builder

Request message for the SetDefaultProcessorVersion method.

Protobuf type google.cloud.documentai.v1beta3.SetDefaultProcessorVersionRequest

SetDefaultProcessorVersionResponse

Response message for the SetDefaultProcessorVersion method.

Protobuf type google.cloud.documentai.v1beta3.SetDefaultProcessorVersionResponse

SetDefaultProcessorVersionResponse.Builder

Response message for the SetDefaultProcessorVersion method.

Protobuf type google.cloud.documentai.v1beta3.SetDefaultProcessorVersionResponse

TrainProcessorVersionMetadata

The metadata that represents a processor version being created.

Protobuf type google.cloud.documentai.v1beta3.TrainProcessorVersionMetadata

TrainProcessorVersionMetadata.Builder

The metadata that represents a processor version being created.

Protobuf type google.cloud.documentai.v1beta3.TrainProcessorVersionMetadata

TrainProcessorVersionMetadata.DatasetValidation

The dataset validation information. This includes any and all errors with documents and the dataset.

Protobuf type google.cloud.documentai.v1beta3.TrainProcessorVersionMetadata.DatasetValidation

TrainProcessorVersionMetadata.DatasetValidation.Builder

The dataset validation information. This includes any and all errors with documents and the dataset.

Protobuf type google.cloud.documentai.v1beta3.TrainProcessorVersionMetadata.DatasetValidation

TrainProcessorVersionRequest

Request message for the TrainProcessorVersion method.

Protobuf type google.cloud.documentai.v1beta3.TrainProcessorVersionRequest

TrainProcessorVersionRequest.Builder

Request message for the TrainProcessorVersion method.

Protobuf type google.cloud.documentai.v1beta3.TrainProcessorVersionRequest

TrainProcessorVersionRequest.CustomDocumentExtractionOptions

Options to control the training of the Custom Document Extraction (CDE) Processor.

Protobuf type google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.CustomDocumentExtractionOptions

TrainProcessorVersionRequest.CustomDocumentExtractionOptions.Builder

Options to control the training of the Custom Document Extraction (CDE) Processor.

Protobuf type google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.CustomDocumentExtractionOptions

TrainProcessorVersionRequest.InputData

The input data used to train a new ProcessorVersion.

Protobuf type google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.InputData

TrainProcessorVersionRequest.InputData.Builder

The input data used to train a new ProcessorVersion.

Protobuf type google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.InputData

TrainProcessorVersionResponse

The response for TrainProcessorVersion.

Protobuf type google.cloud.documentai.v1beta3.TrainProcessorVersionResponse

TrainProcessorVersionResponse.Builder

The response for TrainProcessorVersion.

Protobuf type google.cloud.documentai.v1beta3.TrainProcessorVersionResponse

UndeployProcessorVersionMetadata

The long-running operation metadata for the UndeployProcessorVersion method.

Protobuf type google.cloud.documentai.v1beta3.UndeployProcessorVersionMetadata

UndeployProcessorVersionMetadata.Builder

The long-running operation metadata for the UndeployProcessorVersion method.

Protobuf type google.cloud.documentai.v1beta3.UndeployProcessorVersionMetadata

UndeployProcessorVersionRequest

Request message for the UndeployProcessorVersion method.

Protobuf type google.cloud.documentai.v1beta3.UndeployProcessorVersionRequest

UndeployProcessorVersionRequest.Builder

Request message for the UndeployProcessorVersion method.

Protobuf type google.cloud.documentai.v1beta3.UndeployProcessorVersionRequest

UndeployProcessorVersionResponse

Response message for the UndeployProcessorVersion method.

Protobuf type google.cloud.documentai.v1beta3.UndeployProcessorVersionResponse

UndeployProcessorVersionResponse.Builder

Response message for the UndeployProcessorVersion method.

Protobuf type google.cloud.documentai.v1beta3.UndeployProcessorVersionResponse

UpdateDatasetOperationMetadata

Protobuf type google.cloud.documentai.v1beta3.UpdateDatasetOperationMetadata

UpdateDatasetOperationMetadata.Builder

Protobuf type google.cloud.documentai.v1beta3.UpdateDatasetOperationMetadata

UpdateDatasetRequest

Protobuf type google.cloud.documentai.v1beta3.UpdateDatasetRequest

UpdateDatasetRequest.Builder

Protobuf type google.cloud.documentai.v1beta3.UpdateDatasetRequest

UpdateDatasetSchemaRequest

Request for UpdateDatasetSchema.

Protobuf type google.cloud.documentai.v1beta3.UpdateDatasetSchemaRequest

UpdateDatasetSchemaRequest.Builder

Request for UpdateDatasetSchema.

Protobuf type google.cloud.documentai.v1beta3.UpdateDatasetSchemaRequest

Vertex

A vertex represents a 2D point in the image. NOTE: the vertex coordinates are in the same scale as the original image.

Protobuf type google.cloud.documentai.v1beta3.Vertex

Vertex.Builder

A vertex represents a 2D point in the image. NOTE: the vertex coordinates are in the same scale as the original image.

Protobuf type google.cloud.documentai.v1beta3.Vertex

Interfaces

BarcodeOrBuilder

BatchDocumentsInputConfigOrBuilder

BatchProcessMetadata.IndividualProcessStatusOrBuilder

BatchProcessMetadataOrBuilder

BatchProcessRequest.BatchInputConfigOrBuilder

BatchProcessRequest.BatchOutputConfigOrBuilder

BatchProcessRequestOrBuilder

BatchProcessResponseOrBuilder

BoundingPolyOrBuilder

CommonOperationMetadataOrBuilder

CreateProcessorRequestOrBuilder

Dataset.DocumentWarehouseConfigOrBuilder

Dataset.GCSManagedConfigOrBuilder

Dataset.SpannerIndexingConfigOrBuilder

Dataset.UnmanagedDatasetConfigOrBuilder

DatasetOrBuilder

DatasetSchemaOrBuilder

DeleteProcessorMetadataOrBuilder

DeleteProcessorRequestOrBuilder

DeleteProcessorVersionMetadataOrBuilder

DeleteProcessorVersionRequestOrBuilder

DeployProcessorVersionMetadataOrBuilder

DeployProcessorVersionRequestOrBuilder

DeployProcessorVersionResponseOrBuilder

DisableProcessorMetadataOrBuilder

DisableProcessorRequestOrBuilder

DisableProcessorResponseOrBuilder

Document.Entity.NormalizedValueOrBuilder

Document.EntityOrBuilder

Document.EntityRelationOrBuilder

Document.Page.BlockOrBuilder

Document.Page.DetectedBarcodeOrBuilder

Document.Page.DetectedLanguageOrBuilder

Document.Page.DimensionOrBuilder

Document.Page.FormFieldOrBuilder

Document.Page.ImageOrBuilder

Document.Page.ImageQualityScores.DetectedDefectOrBuilder

Document.Page.ImageQualityScoresOrBuilder

Document.Page.LayoutOrBuilder

Document.Page.LineOrBuilder

Document.Page.MatrixOrBuilder

Document.Page.ParagraphOrBuilder

Document.Page.SymbolOrBuilder

Document.Page.Table.TableCellOrBuilder

Document.Page.Table.TableRowOrBuilder

Document.Page.TableOrBuilder

Document.Page.Token.DetectedBreakOrBuilder

Document.Page.Token.StyleInfoOrBuilder

Document.Page.TokenOrBuilder

Document.Page.VisualElementOrBuilder

Document.PageAnchor.PageRefOrBuilder

Document.PageAnchorOrBuilder

Document.PageOrBuilder

Document.Provenance.ParentOrBuilder

Document.ProvenanceOrBuilder

Document.Revision.HumanReviewOrBuilder

Document.RevisionOrBuilder

Document.ShardInfoOrBuilder

Document.Style.FontSizeOrBuilder

Document.StyleOrBuilder

Document.TextAnchor.TextSegmentOrBuilder

Document.TextAnchorOrBuilder

Document.TextChangeOrBuilder

DocumentOrBuilder

DocumentOutputConfig.GcsOutputConfig.ShardingConfigOrBuilder

DocumentOutputConfig.GcsOutputConfigOrBuilder

DocumentOutputConfigOrBuilder

DocumentProcessorServiceGrpc.AsyncService

Service to call Document AI to process documents according to the processor's definition. Processors are built using state-of-the-art Google AI such as natural language, computer vision, and translation to extract structured information from unstructured or semi-structured documents.

DocumentSchema.EntityType.EnumValuesOrBuilder

DocumentSchema.EntityType.PropertyOrBuilder

DocumentSchema.EntityTypeOrBuilder

DocumentSchema.MetadataOrBuilder

DocumentSchemaOrBuilder

DocumentServiceGrpc.AsyncService

Service to call Cloud DocumentAI to manage document collection (dataset).

EnableProcessorMetadataOrBuilder

EnableProcessorRequestOrBuilder

EnableProcessorResponseOrBuilder

EntityTypeMetadataOrBuilder

EvaluateProcessorVersionMetadataOrBuilder

EvaluateProcessorVersionRequestOrBuilder

EvaluateProcessorVersionResponseOrBuilder

Evaluation.ConfidenceLevelMetricsOrBuilder

Evaluation.CountersOrBuilder

Evaluation.MetricsOrBuilder

Evaluation.MultiConfidenceMetricsOrBuilder

EvaluationOrBuilder

EvaluationReferenceOrBuilder

FetchProcessorTypesRequestOrBuilder

FetchProcessorTypesResponseOrBuilder

GcsDocumentOrBuilder

GcsDocumentsOrBuilder

GcsPrefixOrBuilder

GetDatasetSchemaRequestOrBuilder

GetEvaluationRequestOrBuilder

GetProcessorRequestOrBuilder

GetProcessorTypeRequestOrBuilder

GetProcessorVersionRequestOrBuilder

HumanReviewStatusOrBuilder

ImportProcessorVersionMetadataOrBuilder

ImportProcessorVersionRequestOrBuilder

ImportProcessorVersionResponseOrBuilder

ListEvaluationsRequestOrBuilder

ListEvaluationsResponseOrBuilder

ListProcessorTypesRequestOrBuilder

ListProcessorTypesResponseOrBuilder

ListProcessorVersionsRequestOrBuilder

ListProcessorVersionsResponseOrBuilder

ListProcessorsRequestOrBuilder

ListProcessorsResponseOrBuilder

NormalizedVertexOrBuilder

OcrConfig.HintsOrBuilder

OcrConfigOrBuilder

ProcessOptionsOrBuilder

ProcessRequestOrBuilder

ProcessResponseOrBuilder

ProcessorOrBuilder

ProcessorType.LocationInfoOrBuilder

ProcessorTypeOrBuilder

ProcessorVersion.DeprecationInfoOrBuilder

ProcessorVersionOrBuilder

PropertyMetadataOrBuilder

RawDocumentOrBuilder

ReviewDocumentOperationMetadataOrBuilder

ReviewDocumentRequestOrBuilder

ReviewDocumentResponseOrBuilder

SetDefaultProcessorVersionMetadataOrBuilder

SetDefaultProcessorVersionRequestOrBuilder

SetDefaultProcessorVersionResponseOrBuilder

TrainProcessorVersionMetadata.DatasetValidationOrBuilder

TrainProcessorVersionMetadataOrBuilder

TrainProcessorVersionRequest.CustomDocumentExtractionOptionsOrBuilder

TrainProcessorVersionRequest.InputDataOrBuilder

TrainProcessorVersionRequestOrBuilder

TrainProcessorVersionResponseOrBuilder

UndeployProcessorVersionMetadataOrBuilder

UndeployProcessorVersionRequestOrBuilder

UndeployProcessorVersionResponseOrBuilder

UpdateDatasetOperationMetadataOrBuilder

UpdateDatasetRequestOrBuilder

UpdateDatasetSchemaRequestOrBuilder

VertexOrBuilder

Enums

BatchDocumentsInputConfig.SourceCase

BatchProcessMetadata.State

Possible states of the batch processing operation.

Protobuf enum google.cloud.documentai.v1beta3.BatchProcessMetadata.State

CommonOperationMetadata.State

State of the longrunning operation.

Protobuf enum google.cloud.documentai.v1beta3.CommonOperationMetadata.State

Dataset.IndexingSourceCase

Dataset.State

Different states of a dataset.

Protobuf enum google.cloud.documentai.v1beta3.Dataset.State

Dataset.StorageSourceCase

Document.Entity.NormalizedValue.StructuredValueCase

Document.Page.Layout.Orientation

Detected human reading orientation.

Protobuf enum google.cloud.documentai.v1beta3.Document.Page.Layout.Orientation

Document.Page.Token.DetectedBreak.Type

Enum to denote the type of break found.

Protobuf enum google.cloud.documentai.v1beta3.Document.Page.Token.DetectedBreak.Type

Document.PageAnchor.PageRef.LayoutType

The type of layout that is being referenced.

Protobuf enum google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef.LayoutType

Document.Provenance.OperationType

If a processor or agent does an explicit operation on existing elements.

Protobuf enum google.cloud.documentai.v1beta3.Document.Provenance.OperationType

Document.Revision.SourceCase

Document.SourceCase

DocumentOutputConfig.DestinationCase

DocumentSchema.EntityType.Property.OccurrenceType

Types of occurrences of the entity type in the document. This represents the number of instances of instances of an entity, not number of mentions of an entity. For example, a bank statement may only have one account_number, but this account number may be mentioned in several places on the document. In this case the 'account_number' would be considered a REQUIRED_ONCE entity type. If, on the other hand, we expect a bank statement to contain the status of multiple different accounts for the customers, the occurrence type will be set to REQUIRED_MULTIPLE.

Protobuf enum google.cloud.documentai.v1beta3.DocumentSchema.EntityType.Property.OccurrenceType

DocumentSchema.EntityType.ValueSourceCase

Evaluation.MultiConfidenceMetrics.MetricsType

A type that determines how metrics should be interpreted.

Protobuf enum google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics.MetricsType

HumanReviewStatus.State

The final state of human review on a processed document.

Protobuf enum google.cloud.documentai.v1beta3.HumanReviewStatus.State

ImportProcessorVersionRequest.SourceCase

ProcessRequest.SourceCase

Processor.State

The possible states of the processor.

Protobuf enum google.cloud.documentai.v1beta3.Processor.State

ProcessorVersion.State

The possible states of the processor version.

Protobuf enum google.cloud.documentai.v1beta3.ProcessorVersion.State

ReviewDocumentOperationMetadata.State

State of the long-running operation.

Protobuf enum google.cloud.documentai.v1beta3.ReviewDocumentOperationMetadata.State

ReviewDocumentRequest.Priority

The priority level of the human review task.

Protobuf enum google.cloud.documentai.v1beta3.ReviewDocumentRequest.Priority

ReviewDocumentRequest.SourceCase

ReviewDocumentResponse.State

Possible states of the review operation.

Protobuf enum google.cloud.documentai.v1beta3.ReviewDocumentResponse.State

TrainProcessorVersionRequest.CustomDocumentExtractionOptions.TrainingMethod

Training Method for CDE. TRAINING_METHOD_UNSPECIFIED will fallback to MODEL_BASED.

Protobuf enum google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.CustomDocumentExtractionOptions.TrainingMethod

TrainProcessorVersionRequest.ProcessorFlagsCase