Interface DocumentUnderstandingServiceGrpc.AsyncService (2.39.0)

public static interface DocumentUnderstandingServiceGrpc.AsyncService

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.

Methods

batchProcessDocuments(BatchProcessDocumentsRequest request, StreamObserver<Operation> responseObserver)

public default 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>

processDocument(ProcessDocumentRequest request, StreamObserver<Document> responseObserver)

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

Processes a single document.

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