Class DocumentUnderstandingServiceGrpc.DocumentUnderstandingServiceImplBase (2.17.0)

public abstract static class DocumentUnderstandingServiceGrpc.DocumentUnderstandingServiceImplBase implements BindableService

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 > DocumentUnderstandingServiceGrpc.DocumentUnderstandingServiceImplBase

Implements

io.grpc.BindableService

Constructors

DocumentUnderstandingServiceImplBase()

public DocumentUnderstandingServiceImplBase()

Methods

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
NameDescription
requestBatchProcessDocumentsRequest
responseObserverio.grpc.stub.StreamObserver<Operation>

bindService()

public final ServerServiceDefinition bindService()
Returns
TypeDescription
io.grpc.ServerServiceDefinition

processDocument(ProcessDocumentRequest request, StreamObserver<Document> responseObserver)

public void processDocument(ProcessDocumentRequest request, StreamObserver<Document> responseObserver)

Processes a single document.

Parameters
NameDescription
requestProcessDocumentRequest
responseObserverio.grpc.stub.StreamObserver<Document>