[BindServiceMethod(typeof(DocumentService), "BindService")]
public abstract class DocumentService.DocumentServiceBaseReference documentation and code samples for the Cloud Document AI v1beta3 API class DocumentService.DocumentServiceBase.
Base class for server-side implementations of DocumentService
Namespace
Google.Cloud.DocumentAI.V1Beta3Assembly
Google.Cloud.DocumentAI.V1Beta3.dll
Methods
BatchDeleteDocuments(BatchDeleteDocumentsRequest, ServerCallContext)
public virtual Task<Operation> BatchDeleteDocuments(BatchDeleteDocumentsRequest request, ServerCallContext context)Deletes a set of documents.
| Parameters | |
|---|---|
| Name | Description |
request |
BatchDeleteDocumentsRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskOperation |
The response to send back to the client (wrapped by a task). |
GetDatasetSchema(GetDatasetSchemaRequest, ServerCallContext)
public virtual Task<DatasetSchema> GetDatasetSchema(GetDatasetSchemaRequest request, ServerCallContext context)Gets the DatasetSchema of a Dataset.
| Parameters | |
|---|---|
| Name | Description |
request |
GetDatasetSchemaRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskDatasetSchema |
The response to send back to the client (wrapped by a task). |
GetDocument(GetDocumentRequest, ServerCallContext)
public virtual Task<GetDocumentResponse> GetDocument(GetDocumentRequest request, ServerCallContext context)Returns relevant fields present in the requested document.
| Parameters | |
|---|---|
| Name | Description |
request |
GetDocumentRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskGetDocumentResponse |
The response to send back to the client (wrapped by a task). |
ImportDocuments(ImportDocumentsRequest, ServerCallContext)
public virtual Task<Operation> ImportDocuments(ImportDocumentsRequest request, ServerCallContext context)Import documents into a dataset.
| Parameters | |
|---|---|
| Name | Description |
request |
ImportDocumentsRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskOperation |
The response to send back to the client (wrapped by a task). |
ListDocuments(ListDocumentsRequest, ServerCallContext)
public virtual Task<ListDocumentsResponse> ListDocuments(ListDocumentsRequest request, ServerCallContext context)Returns a list of documents present in the dataset.
| Parameters | |
|---|---|
| Name | Description |
request |
ListDocumentsRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskListDocumentsResponse |
The response to send back to the client (wrapped by a task). |
UpdateDataset(UpdateDatasetRequest, ServerCallContext)
public virtual Task<Operation> UpdateDataset(UpdateDatasetRequest request, ServerCallContext context)Updates metadata associated with a dataset.
Note that this method requires the
documentai.googleapis.com/datasets.update permission on the project,
which is highly privileged. A user or service account with this permission
can create new processors that can interact with any gcs bucket in your
project.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateDatasetRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskOperation |
The response to send back to the client (wrapped by a task). |
UpdateDatasetSchema(UpdateDatasetSchemaRequest, ServerCallContext)
public virtual Task<DatasetSchema> UpdateDatasetSchema(UpdateDatasetSchemaRequest request, ServerCallContext context)Updates a DatasetSchema.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateDatasetSchemaRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskDatasetSchema |
The response to send back to the client (wrapped by a task). |