@Generated("by gapic-generator-java")
Package com.google.cloud.documentai.v1beta2
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()) {
ProcessDocumentRequest request =
ProcessDocumentRequest.newBuilder()
.setParent("parent-995424086")
.setInputConfig(InputConfig.newBuilder().build())
.setOutputConfig(OutputConfig.newBuilder().build())
.setDocumentType("documentType-1473196299")
.setTableExtractionParams(TableExtractionParams.newBuilder().build())
.setFormExtractionParams(FormExtractionParams.newBuilder().build())
.setEntityExtractionParams(EntityExtractionParams.newBuilder().build())
.setOcrParams(OcrParams.newBuilder().build())
.setAutomlParams(AutoMlParams.newBuilder().build())
.build();
Document response = documentUnderstandingServiceClient.processDocument(request);
}
-
Class Summary Class Description AutoMlParams Parameters to control AutoML model prediction behavior.AutoMlParams.Builder Parameters to control AutoML model prediction behavior.Barcode Encodes the detailed information of a barcode.Barcode.Builder Encodes the detailed information of a barcode.BarcodeProto 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 AI.Document.Builder Document represents the canonical document resource in Document AI.Document.Entity An entity that could be a phrase in the text or a property that belongs to the document.Document.Entity.Builder An entity that could be a phrase in the text or a property that belongs to the document.Document.Entity.NormalizedValue Parsed and normalized entity value.Document.Entity.NormalizedValue.Builder Parsed and normalized entity value.Document.EntityRelation Relationship between [Entities][google.cloud.documentai.v1beta2.Document.Entity].Document.EntityRelation.Builder Relationship between [Entities][google.cloud.documentai.v1beta2.Document.Entity].Document.Label Label attaches schema information and/or other metadata to segments within a [Document][google.cloud.documentai.v1beta2.Document].Document.Label.Builder Label attaches schema information and/or other metadata to segments within a [Document][google.cloud.documentai.v1beta2.Document].Document.Page A page in a [Document][google.cloud.documentai.v1beta2.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.v1beta2.Document].Document.Page.DetectedBarcode A detected barcode.Document.Page.DetectedBarcode.Builder A detected barcode.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.Image Rendered image contents for this page.Document.Page.Image.Builder Rendered image contents for this page.Document.Page.ImageQualityScores Image quality scores for the page image.Document.Page.ImageQualityScores.Builder Image quality scores for the page image.Document.Page.ImageQualityScores.DetectedDefect Image Quality DefectsDocument.Page.ImageQualityScores.DetectedDefect.Builder Image Quality DefectsDocument.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.Matrix Representation for transformation matrix, intended to be compatible and used with OpenCV format for image manipulation.Document.Page.Matrix.Builder Representation for transformation matrix, intended to be compatible and used with OpenCV format for image manipulation.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.Symbol A detected symbol.Document.Page.Symbol.Builder A detected symbol.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.v1beta2.Document.Page.Token].Document.Page.Token.DetectedBreak.Builder Detected break at the end of a [Token][google.cloud.documentai.v1beta2.Document.Page.Token].Document.Page.Token.StyleInfo Font and other text style attributes.Document.Page.Token.StyleInfo.Builder Font and other text style attributes.Document.Page.VisualElement Detected non-text visual elements e.g.Document.Page.VisualElement.Builder Detected non-text visual elements e.g.Document.PageAnchor Referencing the visual context of the entity in the [Document.pages][google.cloud.documentai.v1beta2.Document.pages].Document.PageAnchor.Builder Referencing the visual context of the entity in the [Document.pages][google.cloud.documentai.v1beta2.Document.pages].Document.PageAnchor.PageRef Represents a weak reference to a page element within a document.Document.PageAnchor.PageRef.Builder Represents a weak reference to a page element within a document.Document.Provenance Structure to identify provenance relationships between annotations in different revisions.Document.Provenance.Builder Structure to identify provenance relationships between annotations in different revisions.Document.Provenance.Parent The parent element the current element is based on.Document.Provenance.Parent.Builder The parent element the current element is based on.Document.Revision Contains past or forward revisions of this document.Document.Revision.Builder Contains past or forward revisions of this document.Document.Revision.HumanReview Human Review information of the document.Document.Revision.HumanReview.Builder Human Review information of the document.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.v1beta2.Document.text].Document.TextAnchor.Builder Text reference indexing into the [Document.text][google.cloud.documentai.v1beta2.Document.text].Document.TextAnchor.TextSegment A text segment in the [Document.text][google.cloud.documentai.v1beta2.Document.text].Document.TextAnchor.TextSegment.Builder A text segment in the [Document.text][google.cloud.documentai.v1beta2.Document.text].Document.TextChange This message is used for text changes aka.Document.TextChange.Builder This message is used for text changes aka.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.DocumentUnderstandingServiceClient.ListLocationsFixedSizeCollection DocumentUnderstandingServiceClient.ListLocationsPage DocumentUnderstandingServiceClient.ListLocationsPagedResponse 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 Reserved for future use.KeyValuePairHint.Builder Reserved for future use.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.Entity.NormalizedValue.StructuredValueCase Document.Label.SourceCase Document.Page.Layout.Orientation Detected human reading orientation.Document.Page.Token.DetectedBreak.Type Enum to denote the type of break found.Document.PageAnchor.PageRef.LayoutType The type of layout that is being referenced.Document.Provenance.OperationType If a processor or agent does an explicit operation on existing elements.Document.Revision.SourceCase Document.SourceCase InputConfig.SourceCase OperationMetadata.State Protobuf enumgoogle.cloud.documentai.v1beta2.OperationMetadata.State
OutputConfig.DestinationCase