1.0.0-beta25 (latest) 1.0.0-beta24

    public sealed class DocumentServiceClientImpl : DocumentServiceClient

Reference documentation and code samples for the Discovery Engine v1beta API class DocumentServiceClientImpl.

DocumentService client wrapper implementation, for convenient use.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> [DocumentServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.DocumentServiceClient) \> DocumentServiceClientImpl

## Inherited Members

[DocumentServiceClient.DefaultEndpoint](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.DocumentServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_DocumentServiceClient_DefaultEndpoint) [DocumentServiceClient.DefaultScopes](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.DocumentServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_DocumentServiceClient_DefaultScopes) [DocumentServiceClient.ServiceMetadata](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.DocumentServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_DocumentServiceClient_ServiceMetadata) [DocumentServiceClient.CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.DocumentServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_DocumentServiceClient_CreateAsync_System_Threading_CancellationToken_) [DocumentServiceClient.Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.DocumentServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_DocumentServiceClient_Create) [DocumentServiceClient.ShutdownDefaultChannelsAsync()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.DocumentServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_DocumentServiceClient_ShutdownDefaultChannelsAsync) [DocumentServiceClient.GetDocumentAsync(GetDocumentRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.DocumentServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_DocumentServiceClient_GetDocumentAsync_Google_Cloud_DiscoveryEngine_V1Beta_GetDocumentRequest_System_Threading_CancellationToken_) [DocumentServiceClient.GetDocument(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.DocumentServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_DocumentServiceClient_GetDocument_System_String_Google_Api_Gax_Grpc_CallSettings_) [DocumentServiceClient.GetDocumentAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.DocumentServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_DocumentServiceClient_GetDocumentAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [DocumentServiceClient.GetDocumentAsync(string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.DocumentServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_DocumentServiceClient_GetDocumentAsync_System_String_System_Threading_CancellationToken_) [DocumentServiceClient.GetDocument(DocumentName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.DocumentServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_DocumentServiceClient_GetDocument_Google_Cloud_DiscoveryEngine_V1Beta_DocumentName_Google_Api_Gax_Grpc_CallSettings_) [DocumentServiceClient.GetDocumentAsync(DocumentName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.DocumentServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_DocumentServiceClient_GetDocumentAsync_Google_Cloud_DiscoveryEngine_V1Beta_DocumentName_Google_Api_Gax_Grpc_CallSettings_) [DocumentServiceClient.GetDocumentAsync(DocumentName, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.DocumentServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_DocumentServiceClient_GetDocumentAsync_Google_Cloud_DiscoveryEngine_V1Beta_DocumentName_System_Threading_CancellationToken_) [DocumentServiceClient.ListDocuments(string, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.DocumentServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_DocumentServiceClient_ListDocuments_System_String_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [DocumentServiceClient.ListDocumentsAsync(string, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.DocumentServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_DocumentServiceClient_ListDocumentsAsync_System_String_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [DocumentServiceClient.ListDocuments(BranchName, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.DocumentServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_DocumentServiceClient_ListDocuments_Google_Cloud_DiscoveryEngine_V1Beta_BranchName_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [DocumentServiceClient.ListDocumentsAsync(BranchName, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.DocumentServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_DocumentServiceClient_ListDocumentsAsync_Google_Cloud_DiscoveryEngine_V1Beta_BranchName_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [DocumentServiceClient.CreateDocumentAsync(CreateDocumentRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.DocumentServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_DocumentServiceClient_CreateDocumentAsync_Google_Cloud_DiscoveryEngine_V1Beta_CreateDocumentRequest_System_Threading_CancellationToken_) [DocumentServiceClient.CreateDocument(string, Document, string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.DocumentServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_DocumentServiceClient_CreateDocument_System_String_Google_Cloud_DiscoveryEngine_V1Beta_Document_System_String_Google_Api_Gax_Grpc_CallSettings_) [DocumentServiceClient.CreateDocumentAsync(string, Document, string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.DocumentServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_DocumentServiceClient_CreateDocumentAsync_System_String_Google_Cloud_DiscoveryEngine_V1Beta_Document_System_String_Google_Api_Gax_Grpc_CallSettings_) [DocumentServiceClient.CreateDocumentAsync(string, Document, string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.DocumentServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_DocumentServiceClient_CreateDocumentAsync_System_String_Google_Cloud_DiscoveryEngine_V1Beta_Document_System_String_System_Threading_CancellationToken_) [DocumentServiceClient.CreateDocument(BranchName, Document, string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.DocumentServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_DocumentServiceClient_CreateDocument_Google_Cloud_DiscoveryEngine_V1Beta_BranchName_Google_Cloud_DiscoveryEngine_V1Beta_Document_System_String_Google_Api_Gax_Grpc_CallSettings_) [DocumentServiceClient.CreateDocumentAsync(BranchName, Document, string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.DocumentServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_DocumentServiceClient_CreateDocumentAsync_Google_Cloud_DiscoveryEngine_V1Beta_BranchName_Google_Cloud_DiscoveryEngine_V1Beta_Document_System_String_Google_Api_Gax_Grpc_CallSettings_) [DocumentServiceClient.CreateDocumentAsync(BranchName, Document, string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.DocumentServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_DocumentServiceClient_CreateDocumentAsync_Google_Cloud_DiscoveryEngine_V1Beta_BranchName_Google_Cloud_DiscoveryEngine_V1Beta_Document_System_String_System_Threading_CancellationToken_) [DocumentServiceClient.UpdateDocumentAsync(UpdateDocumentRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.DocumentServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_DocumentServiceClient_UpdateDocumentAsync_Google_Cloud_DiscoveryEngine_V1Beta_UpdateDocumentRequest_System_Threading_CancellationToken_) [DocumentServiceClient.UpdateDocument(Document, FieldMask, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.DocumentServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_DocumentServiceClient_UpdateDocument_Google_Cloud_DiscoveryEngine_V1Beta_Document_Google_Protobuf_WellKnownTypes_FieldMask_Google_Api_Gax_Grpc_CallSettings_) [DocumentServiceClient.UpdateDocumentAsync(Document, FieldMask, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.DocumentServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_DocumentServiceClient_UpdateDocumentAsync_Google_Cloud_DiscoveryEngine_V1Beta_Document_Google_Protobuf_WellKnownTypes_FieldMask_Google_Api_Gax_Grpc_CallSettings_) [DocumentServiceClient.UpdateDocumentAsync(Document, FieldMask, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.DocumentServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_DocumentServiceClient_UpdateDocumentAsync_Google_Cloud_DiscoveryEngine_V1Beta_Document_Google_Protobuf_WellKnownTypes_FieldMask_System_Threading_CancellationToken_) [DocumentServiceClient.DeleteDocumentAsync(DeleteDocumentRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.DocumentServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_DocumentServiceClient_DeleteDocumentAsync_Google_Cloud_DiscoveryEngine_V1Beta_DeleteDocumentRequest_System_Threading_CancellationToken_) [DocumentServiceClient.DeleteDocument(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.DocumentServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_DocumentServiceClient_DeleteDocument_System_String_Google_Api_Gax_Grpc_CallSettings_) [DocumentServiceClient.DeleteDocumentAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.DocumentServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_DocumentServiceClient_DeleteDocumentAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [DocumentServiceClient.DeleteDocumentAsync(string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.DocumentServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_DocumentServiceClient_DeleteDocumentAsync_System_String_System_Threading_CancellationToken_) [DocumentServiceClient.DeleteDocument(DocumentName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.DocumentServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_DocumentServiceClient_DeleteDocument_Google_Cloud_DiscoveryEngine_V1Beta_DocumentName_Google_Api_Gax_Grpc_CallSettings_) [DocumentServiceClient.DeleteDocumentAsync(DocumentName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.DocumentServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_DocumentServiceClient_DeleteDocumentAsync_Google_Cloud_DiscoveryEngine_V1Beta_DocumentName_Google_Api_Gax_Grpc_CallSettings_) [DocumentServiceClient.DeleteDocumentAsync(DocumentName, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.DocumentServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_DocumentServiceClient_DeleteDocumentAsync_Google_Cloud_DiscoveryEngine_V1Beta_DocumentName_System_Threading_CancellationToken_) [DocumentServiceClient.ImportDocumentsAsync(ImportDocumentsRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.DocumentServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_DocumentServiceClient_ImportDocumentsAsync_Google_Cloud_DiscoveryEngine_V1Beta_ImportDocumentsRequest_System_Threading_CancellationToken_) [DocumentServiceClient.PollOnceImportDocuments(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.DocumentServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_DocumentServiceClient_PollOnceImportDocuments_System_String_Google_Api_Gax_Grpc_CallSettings_) [DocumentServiceClient.PollOnceImportDocumentsAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.DocumentServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_DocumentServiceClient_PollOnceImportDocumentsAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [DocumentServiceClient.PurgeDocumentsAsync(PurgeDocumentsRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.DocumentServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_DocumentServiceClient_PurgeDocumentsAsync_Google_Cloud_DiscoveryEngine_V1Beta_PurgeDocumentsRequest_System_Threading_CancellationToken_) [DocumentServiceClient.PollOncePurgeDocuments(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.DocumentServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_DocumentServiceClient_PollOncePurgeDocuments_System_String_Google_Api_Gax_Grpc_CallSettings_) [DocumentServiceClient.PollOncePurgeDocumentsAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.DocumentServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_DocumentServiceClient_PollOncePurgeDocumentsAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [DocumentServiceClient.BatchGetDocumentsMetadataAsync(BatchGetDocumentsMetadataRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.DocumentServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_DocumentServiceClient_BatchGetDocumentsMetadataAsync_Google_Cloud_DiscoveryEngine_V1Beta_BatchGetDocumentsMetadataRequest_System_Threading_CancellationToken_) [DocumentServiceClient.BatchGetDocumentsMetadata(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.DocumentServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_DocumentServiceClient_BatchGetDocumentsMetadata_System_String_Google_Api_Gax_Grpc_CallSettings_) [DocumentServiceClient.BatchGetDocumentsMetadataAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.DocumentServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_DocumentServiceClient_BatchGetDocumentsMetadataAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [DocumentServiceClient.BatchGetDocumentsMetadataAsync(string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.DocumentServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_DocumentServiceClient_BatchGetDocumentsMetadataAsync_System_String_System_Threading_CancellationToken_) [DocumentServiceClient.BatchGetDocumentsMetadata(BranchName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.DocumentServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_DocumentServiceClient_BatchGetDocumentsMetadata_Google_Cloud_DiscoveryEngine_V1Beta_BranchName_Google_Api_Gax_Grpc_CallSettings_) [DocumentServiceClient.BatchGetDocumentsMetadataAsync(BranchName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.DocumentServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_DocumentServiceClient_BatchGetDocumentsMetadataAsync_Google_Cloud_DiscoveryEngine_V1Beta_BranchName_Google_Api_Gax_Grpc_CallSettings_) [DocumentServiceClient.BatchGetDocumentsMetadataAsync(BranchName, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.DocumentServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_DocumentServiceClient_BatchGetDocumentsMetadataAsync_Google_Cloud_DiscoveryEngine_V1Beta_BranchName_System_Threading_CancellationToken_) [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.DiscoveryEngine.V1Beta](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta)

## Assembly

Google.Cloud.DiscoveryEngine.V1Beta.dll

## Remarks

Service for ingesting
\[Document\]\[google.cloud.discoveryengine.v1beta.Document\] information of the
customer's website.

## Constructors

### DocumentServiceClientImpl(DocumentServiceClient, DocumentServiceSettings, ILogger)

    public DocumentServiceClientImpl(DocumentService.DocumentServiceClient grpcClient, DocumentServiceSettings settings, ILogger logger)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `grpcClient` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.DocumentServicehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.DocumentService.DocumentServiceClient` The underlying gRPC client. |
| `settings` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.DocumentServiceSettings` The base [DocumentServiceSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.DocumentServiceSettings) used within this client. |
| `logger` | `https://learn.microsoft.com/dotnet/api/microsoft.extensions.logging.ilogger` Optional [ILogger](https://learn.microsoft.com/dotnet/api/microsoft.extensions.logging.ilogger) to use within this client. |

## Properties

### GrpcClient

    public override DocumentService.DocumentServiceClient GrpcClient { get; }

The underlying gRPC DocumentService client

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.DocumentServicehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.DocumentService.DocumentServiceClient` |   |

**Overrides** [DocumentServiceClient.GrpcClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.DocumentServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_DocumentServiceClient_GrpcClient)

### ImportDocumentsOperationsClient

    public override OperationsClient ImportDocumentsOperationsClient { get; }

The long-running operations client for `ImportDocuments`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.OperationsClient.html` |   |

**Overrides** [DocumentServiceClient.ImportDocumentsOperationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.DocumentServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_DocumentServiceClient_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.html) associated with this client.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Location/latest/Google.Cloud.Location.LocationsClient.html` |   |

**Overrides** [DocumentServiceClient.LocationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.DocumentServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_DocumentServiceClient_LocationsClient)

### PurgeDocumentsOperationsClient

    public override OperationsClient PurgeDocumentsOperationsClient { get; }

The long-running operations client for `PurgeDocuments`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.OperationsClient.html` |   |

**Overrides** [DocumentServiceClient.PurgeDocumentsOperationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.DocumentServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_DocumentServiceClient_PurgeDocumentsOperationsClient)

## Methods

### BatchGetDocumentsMetadata(BatchGetDocumentsMetadataRequest, CallSettings)

    public override BatchGetDocumentsMetadataResponse BatchGetDocumentsMetadata(BatchGetDocumentsMetadataRequest request, CallSettings callSettings = null)

Gets index freshness metadata for
\[Document\]\[google.cloud.discoveryengine.v1beta.Document\]s. Supported for
website search only.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.BatchGetDocumentsMetadataRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.BatchGetDocumentsMetadataResponse` | The RPC response. |

**Overrides** [DocumentServiceClient.BatchGetDocumentsMetadata(BatchGetDocumentsMetadataRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.DocumentServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_DocumentServiceClient_BatchGetDocumentsMetadata_Google_Cloud_DiscoveryEngine_V1Beta_BatchGetDocumentsMetadataRequest_Google_Api_Gax_Grpc_CallSettings_)

### BatchGetDocumentsMetadataAsync(BatchGetDocumentsMetadataRequest, CallSettings)

    public override Task<BatchGetDocumentsMetadataResponse> BatchGetDocumentsMetadataAsync(BatchGetDocumentsMetadataRequest request, CallSettings callSettings = null)

Gets index freshness metadata for
\[Document\]\[google.cloud.discoveryengine.v1beta.Document\]s. Supported for
website search only.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.BatchGetDocumentsMetadataRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.BatchGetDocumentsMetadataResponse` | A Task containing the RPC response. |

**Overrides** [DocumentServiceClient.BatchGetDocumentsMetadataAsync(BatchGetDocumentsMetadataRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.DocumentServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_DocumentServiceClient_BatchGetDocumentsMetadataAsync_Google_Cloud_DiscoveryEngine_V1Beta_BatchGetDocumentsMetadataRequest_Google_Api_Gax_Grpc_CallSettings_)

### CreateDocument(CreateDocumentRequest, CallSettings)

    public override Document CreateDocument(CreateDocumentRequest request, CallSettings callSettings = null)

Creates a \[Document\]\[google.cloud.discoveryengine.v1beta.Document\].

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.CreateDocumentRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.Document` | The RPC response. |

**Overrides** [DocumentServiceClient.CreateDocument(CreateDocumentRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.DocumentServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_DocumentServiceClient_CreateDocument_Google_Cloud_DiscoveryEngine_V1Beta_CreateDocumentRequest_Google_Api_Gax_Grpc_CallSettings_)

### CreateDocumentAsync(CreateDocumentRequest, CallSettings)

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

Creates a \[Document\]\[google.cloud.discoveryengine.v1beta.Document\].

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.CreateDocumentRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.Document` | A Task containing the RPC response. |

**Overrides** [DocumentServiceClient.CreateDocumentAsync(CreateDocumentRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.DocumentServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_DocumentServiceClient_CreateDocumentAsync_Google_Cloud_DiscoveryEngine_V1Beta_CreateDocumentRequest_Google_Api_Gax_Grpc_CallSettings_)

### DeleteDocument(DeleteDocumentRequest, CallSettings)

    public override void DeleteDocument(DeleteDocumentRequest request, CallSettings callSettings = null)

Deletes a \[Document\]\[google.cloud.discoveryengine.v1beta.Document\].

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.DeleteDocumentRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

**Overrides** [DocumentServiceClient.DeleteDocument(DeleteDocumentRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.DocumentServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_DocumentServiceClient_DeleteDocument_Google_Cloud_DiscoveryEngine_V1Beta_DeleteDocumentRequest_Google_Api_Gax_Grpc_CallSettings_)

### DeleteDocumentAsync(DeleteDocumentRequest, CallSettings)

    public override Task DeleteDocumentAsync(DeleteDocumentRequest request, CallSettings callSettings = null)

Deletes a \[Document\]\[google.cloud.discoveryengine.v1beta.Document\].

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.DeleteDocumentRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A Task containing the RPC response. |

**Overrides** [DocumentServiceClient.DeleteDocumentAsync(DeleteDocumentRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.DocumentServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_DocumentServiceClient_DeleteDocumentAsync_Google_Cloud_DiscoveryEngine_V1Beta_DeleteDocumentRequest_Google_Api_Gax_Grpc_CallSettings_)

### GetDocument(GetDocumentRequest, CallSettings)

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

Gets a \[Document\]\[google.cloud.discoveryengine.v1beta.Document\].

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.GetDocumentRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.Document` | The RPC response. |

**Overrides** [DocumentServiceClient.GetDocument(GetDocumentRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.DocumentServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_DocumentServiceClient_GetDocument_Google_Cloud_DiscoveryEngine_V1Beta_GetDocumentRequest_Google_Api_Gax_Grpc_CallSettings_)

### GetDocumentAsync(GetDocumentRequest, CallSettings)

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

Gets a \[Document\]\[google.cloud.discoveryengine.v1beta.Document\].

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.GetDocumentRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.Document` | A Task containing the RPC response. |

**Overrides** [DocumentServiceClient.GetDocumentAsync(GetDocumentRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.DocumentServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_DocumentServiceClient_GetDocumentAsync_Google_Cloud_DiscoveryEngine_V1Beta_GetDocumentRequest_Google_Api_Gax_Grpc_CallSettings_)

### ImportDocuments(ImportDocumentsRequest, CallSettings)

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

Bulk import of multiple
\[Document\]\[google.cloud.discoveryengine.v1beta.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.v1beta.Document\]s to be
successfully updated.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.ImportDocumentsRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.ImportDocumentsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.ImportDocumentsMetadata` | The RPC response. |

**Overrides** [DocumentServiceClient.ImportDocuments(ImportDocumentsRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.DocumentServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_DocumentServiceClient_ImportDocuments_Google_Cloud_DiscoveryEngine_V1Beta_ImportDocumentsRequest_Google_Api_Gax_Grpc_CallSettings_)

### ImportDocumentsAsync(ImportDocumentsRequest, CallSettings)

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

Bulk import of multiple
\[Document\]\[google.cloud.discoveryengine.v1beta.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.v1beta.Document\]s to be
successfully updated.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.ImportDocumentsRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.ImportDocumentsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.ImportDocumentsMetadata` | A Task containing the RPC response. |

**Overrides** [DocumentServiceClient.ImportDocumentsAsync(ImportDocumentsRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.DocumentServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_DocumentServiceClient_ImportDocumentsAsync_Google_Cloud_DiscoveryEngine_V1Beta_ImportDocumentsRequest_Google_Api_Gax_Grpc_CallSettings_)

### ListDocuments(ListDocumentsRequest, CallSettings)

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

Gets a list of \[Document\]\[google.cloud.discoveryengine.v1beta.Document\]s.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.ListDocumentsRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.ListDocumentsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.Document` | A pageable sequence of [Document](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.Document) resources. |

**Overrides** [DocumentServiceClient.ListDocuments(ListDocumentsRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.DocumentServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_DocumentServiceClient_ListDocuments_Google_Cloud_DiscoveryEngine_V1Beta_ListDocumentsRequest_Google_Api_Gax_Grpc_CallSettings_)

### ListDocumentsAsync(ListDocumentsRequest, CallSettings)

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

Gets a list of \[Document\]\[google.cloud.discoveryengine.v1beta.Document\]s.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.ListDocumentsRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.ListDocumentsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.Document` | A pageable asynchronous sequence of [Document](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.Document) resources. |

**Overrides** [DocumentServiceClient.ListDocumentsAsync(ListDocumentsRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.DocumentServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_DocumentServiceClient_ListDocumentsAsync_Google_Cloud_DiscoveryEngine_V1Beta_ListDocumentsRequest_Google_Api_Gax_Grpc_CallSettings_)

### PurgeDocuments(PurgeDocumentsRequest, CallSettings)

    public override Operation<PurgeDocumentsResponse, PurgeDocumentsMetadata> PurgeDocuments(PurgeDocumentsRequest request, CallSettings callSettings = null)

Permanently deletes all selected
\[Document\]\[google.cloud.discoveryengine.v1beta.Document\]s in a branch.

This process is asynchronous. Depending on the number of
\[Document\]\[google.cloud.discoveryengine.v1beta.Document\]s to be deleted,
this operation can take hours to complete. Before the delete operation
completes, some \[Document\]\[google.cloud.discoveryengine.v1beta.Document\]s
might still be returned by
\[DocumentService.GetDocument\]\[google.cloud.discoveryengine.v1beta.DocumentService.GetDocument\]
or
\[DocumentService.ListDocuments\]\[google.cloud.discoveryengine.v1beta.DocumentService.ListDocuments\].

To get a list of the
\[Document\]\[google.cloud.discoveryengine.v1beta.Document\]s to be deleted,
set
\[PurgeDocumentsRequest.force\]\[google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest.force\]
to false.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.PurgeDocumentsRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.PurgeDocumentsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.PurgeDocumentsMetadata` | The RPC response. |

**Overrides** [DocumentServiceClient.PurgeDocuments(PurgeDocumentsRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.DocumentServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_DocumentServiceClient_PurgeDocuments_Google_Cloud_DiscoveryEngine_V1Beta_PurgeDocumentsRequest_Google_Api_Gax_Grpc_CallSettings_)

### PurgeDocumentsAsync(PurgeDocumentsRequest, CallSettings)

    public override Task<Operation<PurgeDocumentsResponse, PurgeDocumentsMetadata>> PurgeDocumentsAsync(PurgeDocumentsRequest request, CallSettings callSettings = null)

Permanently deletes all selected
\[Document\]\[google.cloud.discoveryengine.v1beta.Document\]s in a branch.

This process is asynchronous. Depending on the number of
\[Document\]\[google.cloud.discoveryengine.v1beta.Document\]s to be deleted,
this operation can take hours to complete. Before the delete operation
completes, some \[Document\]\[google.cloud.discoveryengine.v1beta.Document\]s
might still be returned by
\[DocumentService.GetDocument\]\[google.cloud.discoveryengine.v1beta.DocumentService.GetDocument\]
or
\[DocumentService.ListDocuments\]\[google.cloud.discoveryengine.v1beta.DocumentService.ListDocuments\].

To get a list of the
\[Document\]\[google.cloud.discoveryengine.v1beta.Document\]s to be deleted,
set
\[PurgeDocumentsRequest.force\]\[google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest.force\]
to false.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.PurgeDocumentsRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.PurgeDocumentsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.PurgeDocumentsMetadata` | A Task containing the RPC response. |

**Overrides** [DocumentServiceClient.PurgeDocumentsAsync(PurgeDocumentsRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.DocumentServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_DocumentServiceClient_PurgeDocumentsAsync_Google_Cloud_DiscoveryEngine_V1Beta_PurgeDocumentsRequest_Google_Api_Gax_Grpc_CallSettings_)

### UpdateDocument(UpdateDocumentRequest, CallSettings)

    public override Document UpdateDocument(UpdateDocumentRequest request, CallSettings callSettings = null)

Updates a \[Document\]\[google.cloud.discoveryengine.v1beta.Document\].

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.UpdateDocumentRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.Document` | The RPC response. |

**Overrides** [DocumentServiceClient.UpdateDocument(UpdateDocumentRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.DocumentServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_DocumentServiceClient_UpdateDocument_Google_Cloud_DiscoveryEngine_V1Beta_UpdateDocumentRequest_Google_Api_Gax_Grpc_CallSettings_)

### UpdateDocumentAsync(UpdateDocumentRequest, CallSettings)

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

Updates a \[Document\]\[google.cloud.discoveryengine.v1beta.Document\].

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.UpdateDocumentRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.Document` | A Task containing the RPC response. |

**Overrides** [DocumentServiceClient.UpdateDocumentAsync(UpdateDocumentRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.DocumentServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_DocumentServiceClient_UpdateDocumentAsync_Google_Cloud_DiscoveryEngine_V1Beta_UpdateDocumentRequest_Google_Api_Gax_Grpc_CallSettings_)