[BindServiceMethod(typeof(DocumentUnderstandingService), "BindService")]
public abstract class DocumentUnderstandingServiceBase
Base class for server-side implementations of DocumentUnderstandingService
Namespace
Google.Cloud.DocumentAI.V1Beta2Assembly
Google.Cloud.DocumentAI.V1Beta2.dll
Methods
BatchProcessDocuments(BatchProcessDocumentsRequest, ServerCallContext)
public virtual Task<Operation> BatchProcessDocuments(BatchProcessDocumentsRequest request, ServerCallContext context)
LRO endpoint to batch process many documents. The output is written to Cloud Storage as JSON in the [Document] format.
Type | Name | Description |
---|---|---|
BatchProcessDocumentsRequest | request | The request received from the client. |
ServerCallContext | context | The context of the server-side call handler being invoked. |
Type | Description |
---|---|
Task<Operation> | The response to send back to the client (wrapped by a task). |
ProcessDocument(ProcessDocumentRequest, ServerCallContext)
public virtual Task<Document> ProcessDocument(ProcessDocumentRequest request, ServerCallContext context)
Processes a single document.
Type | Name | Description |
---|---|---|
ProcessDocumentRequest | request | The request received from the client. |
ServerCallContext | context | The context of the server-side call handler being invoked. |
Type | Description |
---|---|
Task<Document> | The response to send back to the client (wrapped by a task). |