Class DocumentUnderstandingService.DocumentUnderstandingServiceBase (1.0.0-beta03)

[BindServiceMethod(typeof(DocumentUnderstandingService), "BindService")]
public abstract class DocumentUnderstandingServiceBase

Base class for server-side implementations of DocumentUnderstandingService

Inheritance

Object > DocumentUnderstandingService.DocumentUnderstandingServiceBase

Namespace

Google.Cloud.DocumentAI.V1Beta2

Assembly

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
NameDescription
requestBatchProcessDocumentsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
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
NameDescription
requestProcessDocumentRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Document>

The response to send back to the client (wrapped by a task).