public static final class DocumentUnderstandingServiceGrpc.DocumentUnderstandingServiceStub extends 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.
Inheritance
java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractAsyncStub > DocumentUnderstandingServiceGrpc.DocumentUnderstandingServiceStubMethods
batchProcessDocuments(BatchProcessDocumentsRequest request, StreamObserver<Operation> responseObserver)
public void batchProcessDocuments(BatchProcessDocumentsRequest request, StreamObserver<Operation> responseObserver)LRO endpoint to batch process many documents. The output is written to Cloud Storage as JSON in the [Document] format.
| Parameters | |
|---|---|
| Name | Description |
request |
BatchProcessDocumentsRequest |
responseObserver |
io.grpc.stub.StreamObserver<Operation> |
build(Channel channel, CallOptions callOptions)
protected DocumentUnderstandingServiceGrpc.DocumentUnderstandingServiceStub build(Channel channel, CallOptions callOptions)| Parameters | |
|---|---|
| Name | Description |
channel |
io.grpc.Channel |
callOptions |
io.grpc.CallOptions |
| Returns | |
|---|---|
| Type | Description |
DocumentUnderstandingServiceGrpc.DocumentUnderstandingServiceStub |
|
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)
processDocument(ProcessDocumentRequest request, StreamObserver<Document> responseObserver)
public void processDocument(ProcessDocumentRequest request, StreamObserver<Document> responseObserver)Processes a single document.
| Parameters | |
|---|---|
| Name | Description |
request |
ProcessDocumentRequest |
responseObserver |
io.grpc.stub.StreamObserver<Document> |