[BindServiceMethod(typeof(DocumentProcessorService), "BindService")]
public abstract class DocumentProcessorServiceBase
Base class for server-side implementations of DocumentProcessorService
Namespace
Google.Cloud.DocumentAI.V1Assembly
Google.Cloud.DocumentAI.V1.dll
Methods
BatchProcessDocuments(BatchProcessRequest, ServerCallContext)
public virtual Task<Operation> BatchProcessDocuments(BatchProcessRequest 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 | BatchProcessRequest 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(ProcessRequest, ServerCallContext)
public virtual Task<ProcessResponse> ProcessDocument(ProcessRequest request, ServerCallContext context)
Processes a single document.
Parameters | |
---|---|
Name | Description |
request | ProcessRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
Task<ProcessResponse> | The response to send back to the client (wrapped by a task). |
ReviewDocument(ReviewDocumentRequest, ServerCallContext)
public virtual Task<Operation> ReviewDocument(ReviewDocumentRequest request, ServerCallContext context)
Send a document for Human Review. The input document should be processed by the specified processor.
Parameters | |
---|---|
Name | Description |
request | ReviewDocumentRequest 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). |