[BindServiceMethod(typeof(DocumentService), "BindService")]
public abstract class DocumentService.DocumentServiceBaseReference documentation and code samples for the Discovery Engine v1 API class DocumentService.DocumentServiceBase.
Base class for server-side implementations of DocumentService
Namespace
Google.Cloud.DiscoveryEngine.V1Assembly
Google.Cloud.DiscoveryEngine.V1.dll
Methods
BatchGetDocumentsMetadata(BatchGetDocumentsMetadataRequest, ServerCallContext)
public virtual Task<BatchGetDocumentsMetadataResponse> BatchGetDocumentsMetadata(BatchGetDocumentsMetadataRequest request, ServerCallContext context)Gets index freshness metadata for [Document][google.cloud.discoveryengine.v1.Document]s. Supported for website search only.
| Parameters | |
|---|---|
| Name | Description |
request |
BatchGetDocumentsMetadataRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskBatchGetDocumentsMetadataResponse |
The response to send back to the client (wrapped by a task). |
CreateDocument(CreateDocumentRequest, ServerCallContext)
public virtual Task<Document> CreateDocument(CreateDocumentRequest request, ServerCallContext context)Creates a [Document][google.cloud.discoveryengine.v1.Document].
| Parameters | |
|---|---|
| Name | Description |
request |
CreateDocumentRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskDocument |
The response to send back to the client (wrapped by a task). |
DeleteDocument(DeleteDocumentRequest, ServerCallContext)
public virtual Task<Empty> DeleteDocument(DeleteDocumentRequest request, ServerCallContext context)Deletes a [Document][google.cloud.discoveryengine.v1.Document].
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteDocumentRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskEmpty |
The response to send back to the client (wrapped by a task). |
GetDocument(GetDocumentRequest, ServerCallContext)
public virtual Task<Document> GetDocument(GetDocumentRequest request, ServerCallContext context)Gets a [Document][google.cloud.discoveryengine.v1.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 |
TaskDocument |
The response to send back to the client (wrapped by a task). |
ImportDocuments(ImportDocumentsRequest, ServerCallContext)
public virtual Task<Operation> ImportDocuments(ImportDocumentsRequest request, ServerCallContext context)Bulk import of multiple [Document][google.cloud.discoveryengine.v1.Document]s. Request processing may be synchronous. Non-existing items are created.
Note: It is possible for a subset of the [Document][google.cloud.discoveryengine.v1.Document]s to be successfully updated.
| 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)Gets a list of [Document][google.cloud.discoveryengine.v1.Document]s.
| 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). |
PurgeDocuments(PurgeDocumentsRequest, ServerCallContext)
public virtual Task<Operation> PurgeDocuments(PurgeDocumentsRequest request, ServerCallContext context)Permanently deletes all selected [Document][google.cloud.discoveryengine.v1.Document]s in a branch.
This process is asynchronous. Depending on the number of [Document][google.cloud.discoveryengine.v1.Document]s to be deleted, this operation can take hours to complete. Before the delete operation completes, some [Document][google.cloud.discoveryengine.v1.Document]s might still be returned by [DocumentService.GetDocument][google.cloud.discoveryengine.v1.DocumentService.GetDocument] or [DocumentService.ListDocuments][google.cloud.discoveryengine.v1.DocumentService.ListDocuments].
To get a list of the [Document][google.cloud.discoveryengine.v1.Document]s to be deleted, set [PurgeDocumentsRequest.force][google.cloud.discoveryengine.v1.PurgeDocumentsRequest.force] to false.
| Parameters | |
|---|---|
| Name | Description |
request |
PurgeDocumentsRequestThe 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). |
UpdateDocument(UpdateDocumentRequest, ServerCallContext)
public virtual Task<Document> UpdateDocument(UpdateDocumentRequest request, ServerCallContext context)Updates a [Document][google.cloud.discoveryengine.v1.Document].
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateDocumentRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskDocument |
The response to send back to the client (wrapped by a task). |