Interface DocumentUnderstandingServiceGrpc.AsyncService (2.50.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
Name Description
request BatchProcessDocumentsRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

processDocument(ProcessDocumentRequest request, StreamObserver<Document> responseObserver)

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

Processes a single document.

Parameters
Name Description
request ProcessDocumentRequest
responseObserver io.grpc.stub.StreamObserver<Document>