@Generated("by gapic-generator-java")
Package com.google.cloud.documentai.v1beta1
A client to Cloud Document AI API
The interfaces provided are listed below, along with usage samples.
======================= DocumentUnderstandingServiceClient =======================
Service Description: Service to parse structured information from unstructured or semi-structured documents using state-of-the-art Google AI such as natural language, computer vision, and translation.
Sample for DocumentUnderstandingServiceClient:
// 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 (DocumentUnderstandingServiceClient documentUnderstandingServiceClient =
DocumentUnderstandingServiceClient.create()) {
List<ProcessDocumentRequest> requests = new ArrayList<>();
BatchProcessDocumentsResponse response =
documentUnderstandingServiceClient.batchProcessDocumentsAsync(requests).get();
}
-
Class Summary Class Description BatchProcessDocumentsRequest Request to batch process documents as an asynchronous operation.BatchProcessDocumentsRequest.Builder Request to batch process documents as an asynchronous operation.BatchProcessDocumentsResponse Response to an batch document processing request.BatchProcessDocumentsResponse.Builder Response to an batch document processing request.BoundingPoly A bounding polygon for the detected image annotation.BoundingPoly.Builder A bounding polygon for the detected image annotation.Document Document represents the canonical document resource in Document Understanding AI.Document.Builder Document represents the canonical document resource in Document Understanding AI.Document.Entity A phrase in the text that is a known entity type, such as a person, an organization, or location.Document.Entity.Builder A phrase in the text that is a known entity type, such as a person, an organization, or location.Document.EntityRelation Relationship between [Entities][google.cloud.documentai.v1beta1.Document.Entity].Document.EntityRelation.Builder Relationship between [Entities][google.cloud.documentai.v1beta1.Document.Entity].Document.Page A page in a [Document][google.cloud.documentai.v1beta1.Document].Document.Page.Block A block has a set of lines (collected into paragraphs) that have a common line-spacing and orientation.Document.Page.Block.Builder A block has a set of lines (collected into paragraphs) that have a common line-spacing and orientation.Document.Page.Builder A page in a [Document][google.cloud.documentai.v1beta1.Document].Document.Page.DetectedLanguage Detected language for a structural component.Document.Page.DetectedLanguage.Builder Detected language for a structural component.Document.Page.Dimension Dimension for the page.Document.Page.Dimension.Builder Dimension for the page.Document.Page.FormField A form field detected on the page.Document.Page.FormField.Builder A form field detected on the page.Document.Page.Layout Visual element describing a layout unit on a page.Document.Page.Layout.Builder Visual element describing a layout unit on a page.Document.Page.Line A collection of tokens that a human would perceive as a line.Document.Page.Line.Builder A collection of tokens that a human would perceive as a line.Document.Page.Paragraph A collection of lines that a human would perceive as a paragraph.Document.Page.Paragraph.Builder A collection of lines that a human would perceive as a paragraph.Document.Page.Table A table representation similar to HTML table structure.Document.Page.Table.Builder A table representation similar to HTML table structure.Document.Page.Table.TableCell A cell representation inside the table.Document.Page.Table.TableCell.Builder A cell representation inside the table.Document.Page.Table.TableRow A row of table cells.Document.Page.Table.TableRow.Builder A row of table cells.Document.Page.Token A detected token.Document.Page.Token.Builder A detected token.Document.Page.Token.DetectedBreak Detected break at the end of a [Token][google.cloud.documentai.v1beta1.Document.Page.Token].Document.Page.Token.DetectedBreak.Builder Detected break at the end of a [Token][google.cloud.documentai.v1beta1.Document.Page.Token].Document.Page.VisualElement Detected non-text visual elements e.g.Document.Page.VisualElement.Builder Detected non-text visual elements e.g.Document.ShardInfo For a large document, sharding may be performed to produce several document shards.Document.ShardInfo.Builder For a large document, sharding may be performed to produce several document shards.Document.Style Annotation for common text style attributes.Document.Style.Builder Annotation for common text style attributes.Document.Style.FontSize Font size with unit.Document.Style.FontSize.Builder Font size with unit.Document.TextAnchor Text reference indexing into the [Document.text][google.cloud.documentai.v1beta1.Document.text].Document.TextAnchor.Builder Text reference indexing into the [Document.text][google.cloud.documentai.v1beta1.Document.text].Document.TextAnchor.TextSegment A text segment in the [Document.text][google.cloud.documentai.v1beta1.Document.text].Document.TextAnchor.TextSegment.Builder A text segment in the [Document.text][google.cloud.documentai.v1beta1.Document.text].DocumentAiProto DocumentProto DocumentUnderstandingServiceClient Service Description: Service to parse structured information from unstructured or semi-structured documents using state-of-the-art Google AI such as natural language, computer vision, and translation.DocumentUnderstandingServiceGrpc Service to parse structured information from unstructured or semi-structured documents using state-of-the-art Google AI such as natural language, computer vision, and translation.DocumentUnderstandingServiceGrpc.DocumentUnderstandingServiceBlockingStub A stub to allow clients to do synchronous rpc calls to service DocumentUnderstandingService.DocumentUnderstandingServiceGrpc.DocumentUnderstandingServiceFutureStub A stub to allow clients to do ListenableFuture-style rpc calls to service DocumentUnderstandingService.DocumentUnderstandingServiceGrpc.DocumentUnderstandingServiceImplBase Base class for the server implementation of the service DocumentUnderstandingService.DocumentUnderstandingServiceGrpc.DocumentUnderstandingServiceStub A stub to allow clients to do asynchronous rpc calls to service DocumentUnderstandingService.DocumentUnderstandingServiceSettings Settings class to configure an instance ofDocumentUnderstandingServiceClient
.DocumentUnderstandingServiceSettings.Builder Builder for DocumentUnderstandingServiceSettings.EntityExtractionParams Parameters to control entity extraction behavior.EntityExtractionParams.Builder Parameters to control entity extraction behavior.FormExtractionParams Parameters to control form extraction behavior.FormExtractionParams.Builder Parameters to control form extraction behavior.GcsDestination The Google Cloud Storage location where the output file will be written to.GcsDestination.Builder The Google Cloud Storage location where the output file will be written to.GcsSource The Google Cloud Storage location where the input file will be read from.GcsSource.Builder The Google Cloud Storage location where the input file will be read from.GeometryProto InputConfig The desired input location and metadata.InputConfig.Builder The desired input location and metadata.KeyValuePairHint User-provided hint for key value pair.KeyValuePairHint.Builder User-provided hint for key value pair.NormalizedVertex A vertex represents a 2D point in the image.NormalizedVertex.Builder A vertex represents a 2D point in the image.OcrParams Parameters to control Optical Character Recognition (OCR) behavior.OcrParams.Builder Parameters to control Optical Character Recognition (OCR) behavior.OperationMetadata Contains metadata for the BatchProcessDocuments operation.OperationMetadata.Builder Contains metadata for the BatchProcessDocuments operation.OutputConfig The desired output location and metadata.OutputConfig.Builder The desired output location and metadata.ProcessDocumentRequest Request to process one document.ProcessDocumentRequest.Builder Request to process one document.ProcessDocumentResponse Response to a single document processing request.ProcessDocumentResponse.Builder Response to a single document processing request.TableBoundHint A hint for a table bounding box on the page for table parsing.TableBoundHint.Builder A hint for a table bounding box on the page for table parsing.TableExtractionParams Parameters to control table extraction behavior.TableExtractionParams.Builder Parameters to control table extraction behavior.Vertex A vertex represents a 2D point in the image.Vertex.Builder A vertex represents a 2D point in the image. -
Enum Summary Enum Description Document.Page.Layout.Orientation Detected human reading orientation.Document.Page.Token.DetectedBreak.Type Enum to denote the type of break found.Document.SourceCase InputConfig.SourceCase OperationMetadata.State Protobuf enumgoogle.cloud.documentai.v1beta1.OperationMetadata.State
OutputConfig.DestinationCase