Cloud Document AI v1beta3 API - Class DocumentService.DocumentServiceBase (2.0.0-beta18)

[BindServiceMethod(typeof(DocumentService), "BindService")]
public abstract class DocumentService.DocumentServiceBase

Reference documentation and code samples for the Cloud Document AI v1beta3 API class DocumentService.DocumentServiceBase.

Base class for server-side implementations of DocumentService

Inheritance

object > DocumentService.DocumentServiceBase

Namespace

Google.Cloud.DocumentAI.V1Beta3

Assembly

Google.Cloud.DocumentAI.V1Beta3.dll

Methods

BatchDeleteDocuments(BatchDeleteDocumentsRequest, ServerCallContext)

public virtual Task<Operation> BatchDeleteDocuments(BatchDeleteDocumentsRequest request, ServerCallContext context)

Deletes a set of documents.

Parameters
NameDescription
requestBatchDeleteDocumentsRequest

The request received from the client.

contextServerCallContext

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

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

The request received from the client.

contextServerCallContext

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

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

The request received from the client.

contextServerCallContext

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

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

The request received from the client.

contextServerCallContext

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

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

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
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.

Parameters
NameDescription
requestUpdateDatasetRequest

The request received from the client.

contextServerCallContext

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

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

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
TaskDatasetSchema

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