4.34.0 (latest) 4.33.0 4.32.0 4.31.0 4.30.0 4.29.0 4.28.0 4.27.0 4.26.0 4.25.0 4.24.0 4.23.0 4.22.0 4.21.0 4.20.0 4.19.0 4.18.0 4.17.0 4.16.0 4.15.0 4.14.0 4.13.0 4.12.0 4.11.0 4.10.0 4.9.0 4.8.0 4.7.0 4.6.0 4.5.0 4.4.0 4.3.0 4.2.0 4.1.0 4.0.0 3.11.0 3.10.0 3.9.0 3.8.0 3.7.0 3.6.0 3.5.0 3.4.0 3.3.0 3.2.0

    public sealed class DocumentsClientImpl : DocumentsClient

Reference documentation and code samples for the Google Cloud Dialogflow v2 API class DocumentsClientImpl.

Documents client wrapper implementation, for convenient use.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> [DocumentsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DocumentsClient.md.txt) \> DocumentsClientImpl

## Inherited Members

[DocumentsClient.DefaultEndpoint](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DocumentsClient.md.txt#Google_Cloud_Dialogflow_V2_DocumentsClient_DefaultEndpoint) [DocumentsClient.DefaultScopes](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DocumentsClient.md.txt#Google_Cloud_Dialogflow_V2_DocumentsClient_DefaultScopes) [DocumentsClient.ServiceMetadata](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DocumentsClient.md.txt#Google_Cloud_Dialogflow_V2_DocumentsClient_ServiceMetadata) [DocumentsClient.CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DocumentsClient.md.txt#Google_Cloud_Dialogflow_V2_DocumentsClient_CreateAsync_System_Threading_CancellationToken_) [DocumentsClient.Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DocumentsClient.md.txt#Google_Cloud_Dialogflow_V2_DocumentsClient_Create) [DocumentsClient.ShutdownDefaultChannelsAsync()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DocumentsClient.md.txt#Google_Cloud_Dialogflow_V2_DocumentsClient_ShutdownDefaultChannelsAsync) [DocumentsClient.ListDocuments(string, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DocumentsClient.md.txt#Google_Cloud_Dialogflow_V2_DocumentsClient_ListDocuments_System_String_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [DocumentsClient.ListDocumentsAsync(string, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DocumentsClient.md.txt#Google_Cloud_Dialogflow_V2_DocumentsClient_ListDocumentsAsync_System_String_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [DocumentsClient.ListDocuments(KnowledgeBaseName, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DocumentsClient.md.txt#Google_Cloud_Dialogflow_V2_DocumentsClient_ListDocuments_Google_Cloud_Dialogflow_V2_KnowledgeBaseName_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [DocumentsClient.ListDocumentsAsync(KnowledgeBaseName, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DocumentsClient.md.txt#Google_Cloud_Dialogflow_V2_DocumentsClient_ListDocumentsAsync_Google_Cloud_Dialogflow_V2_KnowledgeBaseName_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [DocumentsClient.GetDocumentAsync(GetDocumentRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DocumentsClient.md.txt#Google_Cloud_Dialogflow_V2_DocumentsClient_GetDocumentAsync_Google_Cloud_Dialogflow_V2_GetDocumentRequest_System_Threading_CancellationToken_) [DocumentsClient.GetDocument(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DocumentsClient.md.txt#Google_Cloud_Dialogflow_V2_DocumentsClient_GetDocument_System_String_Google_Api_Gax_Grpc_CallSettings_) [DocumentsClient.GetDocumentAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DocumentsClient.md.txt#Google_Cloud_Dialogflow_V2_DocumentsClient_GetDocumentAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [DocumentsClient.GetDocumentAsync(string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DocumentsClient.md.txt#Google_Cloud_Dialogflow_V2_DocumentsClient_GetDocumentAsync_System_String_System_Threading_CancellationToken_) [DocumentsClient.GetDocument(DocumentName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DocumentsClient.md.txt#Google_Cloud_Dialogflow_V2_DocumentsClient_GetDocument_Google_Cloud_Dialogflow_V2_DocumentName_Google_Api_Gax_Grpc_CallSettings_) [DocumentsClient.GetDocumentAsync(DocumentName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DocumentsClient.md.txt#Google_Cloud_Dialogflow_V2_DocumentsClient_GetDocumentAsync_Google_Cloud_Dialogflow_V2_DocumentName_Google_Api_Gax_Grpc_CallSettings_) [DocumentsClient.GetDocumentAsync(DocumentName, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DocumentsClient.md.txt#Google_Cloud_Dialogflow_V2_DocumentsClient_GetDocumentAsync_Google_Cloud_Dialogflow_V2_DocumentName_System_Threading_CancellationToken_) [DocumentsClient.CreateDocumentAsync(CreateDocumentRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DocumentsClient.md.txt#Google_Cloud_Dialogflow_V2_DocumentsClient_CreateDocumentAsync_Google_Cloud_Dialogflow_V2_CreateDocumentRequest_System_Threading_CancellationToken_) [DocumentsClient.PollOnceCreateDocument(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DocumentsClient.md.txt#Google_Cloud_Dialogflow_V2_DocumentsClient_PollOnceCreateDocument_System_String_Google_Api_Gax_Grpc_CallSettings_) [DocumentsClient.PollOnceCreateDocumentAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DocumentsClient.md.txt#Google_Cloud_Dialogflow_V2_DocumentsClient_PollOnceCreateDocumentAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [DocumentsClient.CreateDocument(string, Document, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DocumentsClient.md.txt#Google_Cloud_Dialogflow_V2_DocumentsClient_CreateDocument_System_String_Google_Cloud_Dialogflow_V2_Document_Google_Api_Gax_Grpc_CallSettings_) [DocumentsClient.CreateDocumentAsync(string, Document, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DocumentsClient.md.txt#Google_Cloud_Dialogflow_V2_DocumentsClient_CreateDocumentAsync_System_String_Google_Cloud_Dialogflow_V2_Document_Google_Api_Gax_Grpc_CallSettings_) [DocumentsClient.CreateDocumentAsync(string, Document, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DocumentsClient.md.txt#Google_Cloud_Dialogflow_V2_DocumentsClient_CreateDocumentAsync_System_String_Google_Cloud_Dialogflow_V2_Document_System_Threading_CancellationToken_) [DocumentsClient.CreateDocument(KnowledgeBaseName, Document, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DocumentsClient.md.txt#Google_Cloud_Dialogflow_V2_DocumentsClient_CreateDocument_Google_Cloud_Dialogflow_V2_KnowledgeBaseName_Google_Cloud_Dialogflow_V2_Document_Google_Api_Gax_Grpc_CallSettings_) [DocumentsClient.CreateDocumentAsync(KnowledgeBaseName, Document, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DocumentsClient.md.txt#Google_Cloud_Dialogflow_V2_DocumentsClient_CreateDocumentAsync_Google_Cloud_Dialogflow_V2_KnowledgeBaseName_Google_Cloud_Dialogflow_V2_Document_Google_Api_Gax_Grpc_CallSettings_) [DocumentsClient.CreateDocumentAsync(KnowledgeBaseName, Document, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DocumentsClient.md.txt#Google_Cloud_Dialogflow_V2_DocumentsClient_CreateDocumentAsync_Google_Cloud_Dialogflow_V2_KnowledgeBaseName_Google_Cloud_Dialogflow_V2_Document_System_Threading_CancellationToken_) [DocumentsClient.ImportDocumentsAsync(ImportDocumentsRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DocumentsClient.md.txt#Google_Cloud_Dialogflow_V2_DocumentsClient_ImportDocumentsAsync_Google_Cloud_Dialogflow_V2_ImportDocumentsRequest_System_Threading_CancellationToken_) [DocumentsClient.PollOnceImportDocuments(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DocumentsClient.md.txt#Google_Cloud_Dialogflow_V2_DocumentsClient_PollOnceImportDocuments_System_String_Google_Api_Gax_Grpc_CallSettings_) [DocumentsClient.PollOnceImportDocumentsAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DocumentsClient.md.txt#Google_Cloud_Dialogflow_V2_DocumentsClient_PollOnceImportDocumentsAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [DocumentsClient.DeleteDocumentAsync(DeleteDocumentRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DocumentsClient.md.txt#Google_Cloud_Dialogflow_V2_DocumentsClient_DeleteDocumentAsync_Google_Cloud_Dialogflow_V2_DeleteDocumentRequest_System_Threading_CancellationToken_) [DocumentsClient.PollOnceDeleteDocument(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DocumentsClient.md.txt#Google_Cloud_Dialogflow_V2_DocumentsClient_PollOnceDeleteDocument_System_String_Google_Api_Gax_Grpc_CallSettings_) [DocumentsClient.PollOnceDeleteDocumentAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DocumentsClient.md.txt#Google_Cloud_Dialogflow_V2_DocumentsClient_PollOnceDeleteDocumentAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [DocumentsClient.DeleteDocument(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DocumentsClient.md.txt#Google_Cloud_Dialogflow_V2_DocumentsClient_DeleteDocument_System_String_Google_Api_Gax_Grpc_CallSettings_) [DocumentsClient.DeleteDocumentAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DocumentsClient.md.txt#Google_Cloud_Dialogflow_V2_DocumentsClient_DeleteDocumentAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [DocumentsClient.DeleteDocumentAsync(string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DocumentsClient.md.txt#Google_Cloud_Dialogflow_V2_DocumentsClient_DeleteDocumentAsync_System_String_System_Threading_CancellationToken_) [DocumentsClient.DeleteDocument(DocumentName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DocumentsClient.md.txt#Google_Cloud_Dialogflow_V2_DocumentsClient_DeleteDocument_Google_Cloud_Dialogflow_V2_DocumentName_Google_Api_Gax_Grpc_CallSettings_) [DocumentsClient.DeleteDocumentAsync(DocumentName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DocumentsClient.md.txt#Google_Cloud_Dialogflow_V2_DocumentsClient_DeleteDocumentAsync_Google_Cloud_Dialogflow_V2_DocumentName_Google_Api_Gax_Grpc_CallSettings_) [DocumentsClient.DeleteDocumentAsync(DocumentName, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DocumentsClient.md.txt#Google_Cloud_Dialogflow_V2_DocumentsClient_DeleteDocumentAsync_Google_Cloud_Dialogflow_V2_DocumentName_System_Threading_CancellationToken_) [DocumentsClient.UpdateDocumentAsync(UpdateDocumentRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DocumentsClient.md.txt#Google_Cloud_Dialogflow_V2_DocumentsClient_UpdateDocumentAsync_Google_Cloud_Dialogflow_V2_UpdateDocumentRequest_System_Threading_CancellationToken_) [DocumentsClient.PollOnceUpdateDocument(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DocumentsClient.md.txt#Google_Cloud_Dialogflow_V2_DocumentsClient_PollOnceUpdateDocument_System_String_Google_Api_Gax_Grpc_CallSettings_) [DocumentsClient.PollOnceUpdateDocumentAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DocumentsClient.md.txt#Google_Cloud_Dialogflow_V2_DocumentsClient_PollOnceUpdateDocumentAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [DocumentsClient.UpdateDocument(Document, FieldMask, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DocumentsClient.md.txt#Google_Cloud_Dialogflow_V2_DocumentsClient_UpdateDocument_Google_Cloud_Dialogflow_V2_Document_Google_Protobuf_WellKnownTypes_FieldMask_Google_Api_Gax_Grpc_CallSettings_) [DocumentsClient.UpdateDocumentAsync(Document, FieldMask, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DocumentsClient.md.txt#Google_Cloud_Dialogflow_V2_DocumentsClient_UpdateDocumentAsync_Google_Cloud_Dialogflow_V2_Document_Google_Protobuf_WellKnownTypes_FieldMask_Google_Api_Gax_Grpc_CallSettings_) [DocumentsClient.UpdateDocumentAsync(Document, FieldMask, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DocumentsClient.md.txt#Google_Cloud_Dialogflow_V2_DocumentsClient_UpdateDocumentAsync_Google_Cloud_Dialogflow_V2_Document_Google_Protobuf_WellKnownTypes_FieldMask_System_Threading_CancellationToken_) [DocumentsClient.ReloadDocumentAsync(ReloadDocumentRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DocumentsClient.md.txt#Google_Cloud_Dialogflow_V2_DocumentsClient_ReloadDocumentAsync_Google_Cloud_Dialogflow_V2_ReloadDocumentRequest_System_Threading_CancellationToken_) [DocumentsClient.PollOnceReloadDocument(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DocumentsClient.md.txt#Google_Cloud_Dialogflow_V2_DocumentsClient_PollOnceReloadDocument_System_String_Google_Api_Gax_Grpc_CallSettings_) [DocumentsClient.PollOnceReloadDocumentAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DocumentsClient.md.txt#Google_Cloud_Dialogflow_V2_DocumentsClient_PollOnceReloadDocumentAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [DocumentsClient.ReloadDocument(string, string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DocumentsClient.md.txt#Google_Cloud_Dialogflow_V2_DocumentsClient_ReloadDocument_System_String_System_String_Google_Api_Gax_Grpc_CallSettings_) [DocumentsClient.ReloadDocumentAsync(string, string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DocumentsClient.md.txt#Google_Cloud_Dialogflow_V2_DocumentsClient_ReloadDocumentAsync_System_String_System_String_Google_Api_Gax_Grpc_CallSettings_) [DocumentsClient.ReloadDocumentAsync(string, string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DocumentsClient.md.txt#Google_Cloud_Dialogflow_V2_DocumentsClient_ReloadDocumentAsync_System_String_System_String_System_Threading_CancellationToken_) [DocumentsClient.ReloadDocument(DocumentName, string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DocumentsClient.md.txt#Google_Cloud_Dialogflow_V2_DocumentsClient_ReloadDocument_Google_Cloud_Dialogflow_V2_DocumentName_System_String_Google_Api_Gax_Grpc_CallSettings_) [DocumentsClient.ReloadDocumentAsync(DocumentName, string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DocumentsClient.md.txt#Google_Cloud_Dialogflow_V2_DocumentsClient_ReloadDocumentAsync_Google_Cloud_Dialogflow_V2_DocumentName_System_String_Google_Api_Gax_Grpc_CallSettings_) [DocumentsClient.ReloadDocumentAsync(DocumentName, string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DocumentsClient.md.txt#Google_Cloud_Dialogflow_V2_DocumentsClient_ReloadDocumentAsync_Google_Cloud_Dialogflow_V2_DocumentName_System_String_System_Threading_CancellationToken_) [DocumentsClient.ExportDocumentAsync(ExportDocumentRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DocumentsClient.md.txt#Google_Cloud_Dialogflow_V2_DocumentsClient_ExportDocumentAsync_Google_Cloud_Dialogflow_V2_ExportDocumentRequest_System_Threading_CancellationToken_) [DocumentsClient.PollOnceExportDocument(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DocumentsClient.md.txt#Google_Cloud_Dialogflow_V2_DocumentsClient_PollOnceExportDocument_System_String_Google_Api_Gax_Grpc_CallSettings_) [DocumentsClient.PollOnceExportDocumentAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DocumentsClient.md.txt#Google_Cloud_Dialogflow_V2_DocumentsClient_PollOnceExportDocumentAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Dialogflow.V2](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.md.txt)

## Assembly

Google.Cloud.Dialogflow.V2.dll

## Remarks

Service for managing knowledge
\[Documents\]\[google.cloud.dialogflow.v2.Document\].

## Constructors

### DocumentsClientImpl(DocumentsClient, DocumentsSettings, ILogger)

    public DocumentsClientImpl(Documents.DocumentsClient grpcClient, DocumentsSettings settings, ILogger logger)

Constructs a client wrapper for the Documents service, with the specified gRPC client and settings.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `grpcClient` | `DocumentsDocumentsClient` The underlying gRPC client. |
| `settings` | `DocumentsSettings` The base [DocumentsSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DocumentsSettings.md.txt) used within this client. |
| `logger` | `ILogger` Optional [ILogger](https://learn.microsoft.com/dotnet/api/microsoft.extensions.logging.ilogger) to use within this client. |

## Properties

### CreateDocumentOperationsClient

    public override OperationsClient CreateDocumentOperationsClient { get; }

The long-running operations client for `CreateDocument`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `OperationsClient` |   |

**Overrides** [DocumentsClient.CreateDocumentOperationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DocumentsClient.md.txt#Google_Cloud_Dialogflow_V2_DocumentsClient_CreateDocumentOperationsClient)

### DeleteDocumentOperationsClient

    public override OperationsClient DeleteDocumentOperationsClient { get; }

The long-running operations client for `DeleteDocument`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `OperationsClient` |   |

**Overrides** [DocumentsClient.DeleteDocumentOperationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DocumentsClient.md.txt#Google_Cloud_Dialogflow_V2_DocumentsClient_DeleteDocumentOperationsClient)

### ExportDocumentOperationsClient

    public override OperationsClient ExportDocumentOperationsClient { get; }

The long-running operations client for `ExportDocument`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `OperationsClient` |   |

**Overrides** [DocumentsClient.ExportDocumentOperationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DocumentsClient.md.txt#Google_Cloud_Dialogflow_V2_DocumentsClient_ExportDocumentOperationsClient)

### GrpcClient

    public override Documents.DocumentsClient GrpcClient { get; }

The underlying gRPC Documents client

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `DocumentsDocumentsClient` |   |

**Overrides** [DocumentsClient.GrpcClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DocumentsClient.md.txt#Google_Cloud_Dialogflow_V2_DocumentsClient_GrpcClient)

### ImportDocumentsOperationsClient

    public override OperationsClient ImportDocumentsOperationsClient { get; }

The long-running operations client for `ImportDocuments`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `OperationsClient` |   |

**Overrides** [DocumentsClient.ImportDocumentsOperationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DocumentsClient.md.txt#Google_Cloud_Dialogflow_V2_DocumentsClient_ImportDocumentsOperationsClient)

### LocationsClient

    public override LocationsClient LocationsClient { get; }

The [LocationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Location/latest/Google.Cloud.Location.LocationsClient.md.txt) associated with this client.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `LocationsClient` |   |

**Overrides** [DocumentsClient.LocationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DocumentsClient.md.txt#Google_Cloud_Dialogflow_V2_DocumentsClient_LocationsClient)

### ReloadDocumentOperationsClient

    public override OperationsClient ReloadDocumentOperationsClient { get; }

The long-running operations client for `ReloadDocument`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `OperationsClient` |   |

**Overrides** [DocumentsClient.ReloadDocumentOperationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DocumentsClient.md.txt#Google_Cloud_Dialogflow_V2_DocumentsClient_ReloadDocumentOperationsClient)

### UpdateDocumentOperationsClient

    public override OperationsClient UpdateDocumentOperationsClient { get; }

The long-running operations client for `UpdateDocument`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `OperationsClient` |   |

**Overrides** [DocumentsClient.UpdateDocumentOperationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DocumentsClient.md.txt#Google_Cloud_Dialogflow_V2_DocumentsClient_UpdateDocumentOperationsClient)

## Methods

### CreateDocument(CreateDocumentRequest, CallSettings)

    public override Operation<Document, KnowledgeOperationMetadata> CreateDocument(CreateDocumentRequest request, CallSettings callSettings = null)

Creates a new document.

This method is a [long-running
operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
The returned `Operation` type has the following method-specific fields:

- `metadata`: \[KnowledgeOperationMetadata\]\[google.cloud.dialogflow.v2.KnowledgeOperationMetadata\]
- `response`: \[Document\]\[google.cloud.dialogflow.v2.Document\]

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `CreateDocumentRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationDocumentKnowledgeOperationMetadata` | The RPC response. |

**Overrides** [DocumentsClient.CreateDocument(CreateDocumentRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DocumentsClient.md.txt#Google_Cloud_Dialogflow_V2_DocumentsClient_CreateDocument_Google_Cloud_Dialogflow_V2_CreateDocumentRequest_Google_Api_Gax_Grpc_CallSettings_)

### CreateDocumentAsync(CreateDocumentRequest, CallSettings)

    public override Task<Operation<Document, KnowledgeOperationMetadata>> CreateDocumentAsync(CreateDocumentRequest request, CallSettings callSettings = null)

Creates a new document.

This method is a [long-running
operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
The returned `Operation` type has the following method-specific fields:

- `metadata`: \[KnowledgeOperationMetadata\]\[google.cloud.dialogflow.v2.KnowledgeOperationMetadata\]
- `response`: \[Document\]\[google.cloud.dialogflow.v2.Document\]

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `CreateDocumentRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationDocumentKnowledgeOperationMetadata` | A Task containing the RPC response. |

**Overrides** [DocumentsClient.CreateDocumentAsync(CreateDocumentRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DocumentsClient.md.txt#Google_Cloud_Dialogflow_V2_DocumentsClient_CreateDocumentAsync_Google_Cloud_Dialogflow_V2_CreateDocumentRequest_Google_Api_Gax_Grpc_CallSettings_)

### DeleteDocument(DeleteDocumentRequest, CallSettings)

    public override Operation<Empty, KnowledgeOperationMetadata> DeleteDocument(DeleteDocumentRequest request, CallSettings callSettings = null)

Deletes the specified document.

This method is a [long-running
operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
The returned `Operation` type has the following method-specific fields:

- `metadata`: \[KnowledgeOperationMetadata\]\[google.cloud.dialogflow.v2.KnowledgeOperationMetadata\]
- `response`: An [Empty
  message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `DeleteDocumentRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationEmptyKnowledgeOperationMetadata` | The RPC response. |

**Overrides** [DocumentsClient.DeleteDocument(DeleteDocumentRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DocumentsClient.md.txt#Google_Cloud_Dialogflow_V2_DocumentsClient_DeleteDocument_Google_Cloud_Dialogflow_V2_DeleteDocumentRequest_Google_Api_Gax_Grpc_CallSettings_)

### DeleteDocumentAsync(DeleteDocumentRequest, CallSettings)

    public override Task<Operation<Empty, KnowledgeOperationMetadata>> DeleteDocumentAsync(DeleteDocumentRequest request, CallSettings callSettings = null)

Deletes the specified document.

This method is a [long-running
operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
The returned `Operation` type has the following method-specific fields:

- `metadata`: \[KnowledgeOperationMetadata\]\[google.cloud.dialogflow.v2.KnowledgeOperationMetadata\]
- `response`: An [Empty
  message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `DeleteDocumentRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationEmptyKnowledgeOperationMetadata` | A Task containing the RPC response. |

**Overrides** [DocumentsClient.DeleteDocumentAsync(DeleteDocumentRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DocumentsClient.md.txt#Google_Cloud_Dialogflow_V2_DocumentsClient_DeleteDocumentAsync_Google_Cloud_Dialogflow_V2_DeleteDocumentRequest_Google_Api_Gax_Grpc_CallSettings_)

### ExportDocument(ExportDocumentRequest, CallSettings)

    public override Operation<Document, KnowledgeOperationMetadata> ExportDocument(ExportDocumentRequest request, CallSettings callSettings = null)

Exports a smart messaging candidate document into the specified
destination.

This method is a [long-running
operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
The returned `Operation` type has the following method-specific fields:

- `metadata`: \[KnowledgeOperationMetadata\]\[google.cloud.dialogflow.v2.KnowledgeOperationMetadata\]
- `response`: \[Document\]\[google.cloud.dialogflow.v2.Document\]

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ExportDocumentRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationDocumentKnowledgeOperationMetadata` | The RPC response. |

**Overrides** [DocumentsClient.ExportDocument(ExportDocumentRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DocumentsClient.md.txt#Google_Cloud_Dialogflow_V2_DocumentsClient_ExportDocument_Google_Cloud_Dialogflow_V2_ExportDocumentRequest_Google_Api_Gax_Grpc_CallSettings_)

### ExportDocumentAsync(ExportDocumentRequest, CallSettings)

    public override Task<Operation<Document, KnowledgeOperationMetadata>> ExportDocumentAsync(ExportDocumentRequest request, CallSettings callSettings = null)

Exports a smart messaging candidate document into the specified
destination.

This method is a [long-running
operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
The returned `Operation` type has the following method-specific fields:

- `metadata`: \[KnowledgeOperationMetadata\]\[google.cloud.dialogflow.v2.KnowledgeOperationMetadata\]
- `response`: \[Document\]\[google.cloud.dialogflow.v2.Document\]

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ExportDocumentRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationDocumentKnowledgeOperationMetadata` | A Task containing the RPC response. |

**Overrides** [DocumentsClient.ExportDocumentAsync(ExportDocumentRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DocumentsClient.md.txt#Google_Cloud_Dialogflow_V2_DocumentsClient_ExportDocumentAsync_Google_Cloud_Dialogflow_V2_ExportDocumentRequest_Google_Api_Gax_Grpc_CallSettings_)

### GetDocument(GetDocumentRequest, CallSettings)

    public override Document GetDocument(GetDocumentRequest request, CallSettings callSettings = null)

Retrieves the specified document.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetDocumentRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Document` | The RPC response. |

**Overrides** [DocumentsClient.GetDocument(GetDocumentRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DocumentsClient.md.txt#Google_Cloud_Dialogflow_V2_DocumentsClient_GetDocument_Google_Cloud_Dialogflow_V2_GetDocumentRequest_Google_Api_Gax_Grpc_CallSettings_)

### GetDocumentAsync(GetDocumentRequest, CallSettings)

    public override Task<Document> GetDocumentAsync(GetDocumentRequest request, CallSettings callSettings = null)

Retrieves the specified document.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetDocumentRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskDocument` | A Task containing the RPC response. |

**Overrides** [DocumentsClient.GetDocumentAsync(GetDocumentRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DocumentsClient.md.txt#Google_Cloud_Dialogflow_V2_DocumentsClient_GetDocumentAsync_Google_Cloud_Dialogflow_V2_GetDocumentRequest_Google_Api_Gax_Grpc_CallSettings_)

### ImportDocuments(ImportDocumentsRequest, CallSettings)

    public override Operation<ImportDocumentsResponse, KnowledgeOperationMetadata> ImportDocuments(ImportDocumentsRequest request, CallSettings callSettings = null)

Creates documents by importing data from external sources.
Dialogflow supports up to 350 documents in each request. If you try to
import more, Dialogflow will return an error.

This method is a [long-running
operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
The returned `Operation` type has the following method-specific fields:

- `metadata`: \[KnowledgeOperationMetadata\]\[google.cloud.dialogflow.v2.KnowledgeOperationMetadata\]
- `response`: \[ImportDocumentsResponse\]\[google.cloud.dialogflow.v2.ImportDocumentsResponse\]

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ImportDocumentsRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationImportDocumentsResponseKnowledgeOperationMetadata` | The RPC response. |

**Overrides** [DocumentsClient.ImportDocuments(ImportDocumentsRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DocumentsClient.md.txt#Google_Cloud_Dialogflow_V2_DocumentsClient_ImportDocuments_Google_Cloud_Dialogflow_V2_ImportDocumentsRequest_Google_Api_Gax_Grpc_CallSettings_)

### ImportDocumentsAsync(ImportDocumentsRequest, CallSettings)

    public override Task<Operation<ImportDocumentsResponse, KnowledgeOperationMetadata>> ImportDocumentsAsync(ImportDocumentsRequest request, CallSettings callSettings = null)

Creates documents by importing data from external sources.
Dialogflow supports up to 350 documents in each request. If you try to
import more, Dialogflow will return an error.

This method is a [long-running
operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
The returned `Operation` type has the following method-specific fields:

- `metadata`: \[KnowledgeOperationMetadata\]\[google.cloud.dialogflow.v2.KnowledgeOperationMetadata\]
- `response`: \[ImportDocumentsResponse\]\[google.cloud.dialogflow.v2.ImportDocumentsResponse\]

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ImportDocumentsRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationImportDocumentsResponseKnowledgeOperationMetadata` | A Task containing the RPC response. |

**Overrides** [DocumentsClient.ImportDocumentsAsync(ImportDocumentsRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DocumentsClient.md.txt#Google_Cloud_Dialogflow_V2_DocumentsClient_ImportDocumentsAsync_Google_Cloud_Dialogflow_V2_ImportDocumentsRequest_Google_Api_Gax_Grpc_CallSettings_)

### ListDocuments(ListDocumentsRequest, CallSettings)

    public override PagedEnumerable<ListDocumentsResponse, Document> ListDocuments(ListDocumentsRequest request, CallSettings callSettings = null)

Returns the list of all documents of the knowledge base.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ListDocumentsRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `PagedEnumerableListDocumentsResponseDocument` | A pageable sequence of [Document](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.Document.md.txt) resources. |

**Overrides** [DocumentsClient.ListDocuments(ListDocumentsRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DocumentsClient.md.txt#Google_Cloud_Dialogflow_V2_DocumentsClient_ListDocuments_Google_Cloud_Dialogflow_V2_ListDocumentsRequest_Google_Api_Gax_Grpc_CallSettings_)

### ListDocumentsAsync(ListDocumentsRequest, CallSettings)

    public override PagedAsyncEnumerable<ListDocumentsResponse, Document> ListDocumentsAsync(ListDocumentsRequest request, CallSettings callSettings = null)

Returns the list of all documents of the knowledge base.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ListDocumentsRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `PagedAsyncEnumerableListDocumentsResponseDocument` | A pageable asynchronous sequence of [Document](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.Document.md.txt) resources. |

**Overrides** [DocumentsClient.ListDocumentsAsync(ListDocumentsRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DocumentsClient.md.txt#Google_Cloud_Dialogflow_V2_DocumentsClient_ListDocumentsAsync_Google_Cloud_Dialogflow_V2_ListDocumentsRequest_Google_Api_Gax_Grpc_CallSettings_)

### ReloadDocument(ReloadDocumentRequest, CallSettings)

    public override Operation<Document, KnowledgeOperationMetadata> ReloadDocument(ReloadDocumentRequest request, CallSettings callSettings = null)

Reloads the specified document from its specified source, content_uri or
content. The previously loaded content of the document will be deleted.
Note: Even when the content of the document has not changed, there still
may be side effects because of internal implementation changes.

This method is a [long-running
operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
The returned `Operation` type has the following method-specific fields:

- `metadata`: \[KnowledgeOperationMetadata\]\[google.cloud.dialogflow.v2.KnowledgeOperationMetadata\]
- `response`: \[Document\]\[google.cloud.dialogflow.v2.Document\]

Note: The `projects.agent.knowledgeBases.documents` resource is deprecated;
only use `projects.knowledgeBases.documents`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ReloadDocumentRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationDocumentKnowledgeOperationMetadata` | The RPC response. |

**Overrides** [DocumentsClient.ReloadDocument(ReloadDocumentRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DocumentsClient.md.txt#Google_Cloud_Dialogflow_V2_DocumentsClient_ReloadDocument_Google_Cloud_Dialogflow_V2_ReloadDocumentRequest_Google_Api_Gax_Grpc_CallSettings_)

### ReloadDocumentAsync(ReloadDocumentRequest, CallSettings)

    public override Task<Operation<Document, KnowledgeOperationMetadata>> ReloadDocumentAsync(ReloadDocumentRequest request, CallSettings callSettings = null)

Reloads the specified document from its specified source, content_uri or
content. The previously loaded content of the document will be deleted.
Note: Even when the content of the document has not changed, there still
may be side effects because of internal implementation changes.

This method is a [long-running
operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
The returned `Operation` type has the following method-specific fields:

- `metadata`: \[KnowledgeOperationMetadata\]\[google.cloud.dialogflow.v2.KnowledgeOperationMetadata\]
- `response`: \[Document\]\[google.cloud.dialogflow.v2.Document\]

Note: The `projects.agent.knowledgeBases.documents` resource is deprecated;
only use `projects.knowledgeBases.documents`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ReloadDocumentRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationDocumentKnowledgeOperationMetadata` | A Task containing the RPC response. |

**Overrides** [DocumentsClient.ReloadDocumentAsync(ReloadDocumentRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DocumentsClient.md.txt#Google_Cloud_Dialogflow_V2_DocumentsClient_ReloadDocumentAsync_Google_Cloud_Dialogflow_V2_ReloadDocumentRequest_Google_Api_Gax_Grpc_CallSettings_)

### UpdateDocument(UpdateDocumentRequest, CallSettings)

    public override Operation<Document, KnowledgeOperationMetadata> UpdateDocument(UpdateDocumentRequest request, CallSettings callSettings = null)

Updates the specified document.

This method is a [long-running
operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
The returned `Operation` type has the following method-specific fields:

- `metadata`: \[KnowledgeOperationMetadata\]\[google.cloud.dialogflow.v2.KnowledgeOperationMetadata\]
- `response`: \[Document\]\[google.cloud.dialogflow.v2.Document\]

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `UpdateDocumentRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationDocumentKnowledgeOperationMetadata` | The RPC response. |

**Overrides** [DocumentsClient.UpdateDocument(UpdateDocumentRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DocumentsClient.md.txt#Google_Cloud_Dialogflow_V2_DocumentsClient_UpdateDocument_Google_Cloud_Dialogflow_V2_UpdateDocumentRequest_Google_Api_Gax_Grpc_CallSettings_)

### UpdateDocumentAsync(UpdateDocumentRequest, CallSettings)

    public override Task<Operation<Document, KnowledgeOperationMetadata>> UpdateDocumentAsync(UpdateDocumentRequest request, CallSettings callSettings = null)

Updates the specified document.

This method is a [long-running
operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
The returned `Operation` type has the following method-specific fields:

- `metadata`: \[KnowledgeOperationMetadata\]\[google.cloud.dialogflow.v2.KnowledgeOperationMetadata\]
- `response`: \[Document\]\[google.cloud.dialogflow.v2.Document\]

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `UpdateDocumentRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationDocumentKnowledgeOperationMetadata` | A Task containing the RPC response. |

**Overrides** [DocumentsClient.UpdateDocumentAsync(UpdateDocumentRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DocumentsClient.md.txt#Google_Cloud_Dialogflow_V2_DocumentsClient_UpdateDocumentAsync_Google_Cloud_Dialogflow_V2_UpdateDocumentRequest_Google_Api_Gax_Grpc_CallSettings_)