[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.
Parameters | |
---|---|
Name | Description |
request | BatchProcessDocumentsRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
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.
Parameters | |
---|---|
Name | Description |
request | ProcessDocumentRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
Task<Document> | The response to send back to the client (wrapped by a task). |