Class DocumentUnderstandingServiceGrpc.DocumentUnderstandingServiceStub
- java.lang.Object
-
- io.grpc.stub.AbstractStub<S>
-
- io.grpc.stub.AbstractAsyncStub<DocumentUnderstandingServiceGrpc.DocumentUnderstandingServiceStub>
-
- com.google.cloud.documentai.v1beta2.DocumentUnderstandingServiceGrpc.DocumentUnderstandingServiceStub
-
- Enclosing class:
- DocumentUnderstandingServiceGrpc
public static final class DocumentUnderstandingServiceGrpc.DocumentUnderstandingServiceStub extends io.grpc.stub.AbstractAsyncStub<DocumentUnderstandingServiceGrpc.DocumentUnderstandingServiceStub>
A stub to allow clients to do asynchronous rpc calls to service DocumentUnderstandingService.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.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
batchProcessDocuments(BatchProcessDocumentsRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
LRO endpoint to batch process many documents.protected DocumentUnderstandingServiceGrpc.DocumentUnderstandingServiceStub
build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
void
processDocument(ProcessDocumentRequest request, io.grpc.stub.StreamObserver<Document> responseObserver)
Processes a single document.
-
-
-
Method Detail
-
build
protected DocumentUnderstandingServiceGrpc.DocumentUnderstandingServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
- Specified by:
build
in classio.grpc.stub.AbstractStub<DocumentUnderstandingServiceGrpc.DocumentUnderstandingServiceStub>
-
batchProcessDocuments
public void batchProcessDocuments(BatchProcessDocumentsRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
LRO endpoint to batch process many documents. The output is written to Cloud Storage as JSON in the [Document] format.
-
processDocument
public void processDocument(ProcessDocumentRequest request, io.grpc.stub.StreamObserver<Document> responseObserver)
Processes a single document.
-
-