[BindServiceMethod(typeof(DocumentProcessorService), "BindService")]
public abstract class DocumentProcessorServiceBaseBase class for server-side implementations of DocumentProcessorService
Namespace
Google.Cloud.DocumentAI.V1Beta3Assembly
Google.Cloud.DocumentAI.V1Beta3.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 |
BatchProcessRequestThe request received from the client. |
context |
ServerCallContextThe 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). |
CreateProcessor(CreateProcessorRequest, ServerCallContext)
public virtual Task<Processor> CreateProcessor(CreateProcessorRequest request, ServerCallContext context)Creates a processor from the type processor that the user chose. The processor will be at "ENABLED" state by default after its creation.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateProcessorRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
Task<Processor> |
The response to send back to the client (wrapped by a task). |
DeleteProcessor(DeleteProcessorRequest, ServerCallContext)
public virtual Task<Operation> DeleteProcessor(DeleteProcessorRequest request, ServerCallContext context)Deletes the processor, unloads all deployed model artifacts if it was enabled and then deletes all artifacts associated with this processor.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteProcessorRequestThe request received from the client. |
context |
ServerCallContextThe 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). |
DisableProcessor(DisableProcessorRequest, ServerCallContext)
public virtual Task<Operation> DisableProcessor(DisableProcessorRequest request, ServerCallContext context)Disables a processor
| Parameters | |
|---|---|
| Name | Description |
request |
DisableProcessorRequestThe request received from the client. |
context |
ServerCallContextThe 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). |
EnableProcessor(EnableProcessorRequest, ServerCallContext)
public virtual Task<Operation> EnableProcessor(EnableProcessorRequest request, ServerCallContext context)Enables a processor
| Parameters | |
|---|---|
| Name | Description |
request |
EnableProcessorRequestThe request received from the client. |
context |
ServerCallContextThe 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). |
FetchProcessorTypes(FetchProcessorTypesRequest, ServerCallContext)
public virtual Task<FetchProcessorTypesResponse> FetchProcessorTypes(FetchProcessorTypesRequest request, ServerCallContext context)Fetches processor types.
| Parameters | |
|---|---|
| Name | Description |
request |
FetchProcessorTypesRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
Task<FetchProcessorTypesResponse> |
The response to send back to the client (wrapped by a task). |
ListProcessors(ListProcessorsRequest, ServerCallContext)
public virtual Task<ListProcessorsResponse> ListProcessors(ListProcessorsRequest request, ServerCallContext context)Lists all processors which belong to this project.
| Parameters | |
|---|---|
| Name | Description |
request |
ListProcessorsRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
Task<ListProcessorsResponse> |
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 |
ProcessRequestThe request received from the client. |
context |
ServerCallContextThe 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 |
ReviewDocumentRequestThe request received from the client. |
context |
ServerCallContextThe 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). |