1.2.0 (latest) 1.1.0 1.0.0

    public sealed class DataObjectSearchServiceClientImpl : DataObjectSearchServiceClient

Reference documentation and code samples for the Vector Search v1 API class DataObjectSearchServiceClientImpl.

DataObjectSearchService client wrapper implementation, for convenient use.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> [DataObjectSearchServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VectorSearch.V1/latest/Google.Cloud.VectorSearch.V1.DataObjectSearchServiceClient) \> DataObjectSearchServiceClientImpl

## Inherited Members

[DataObjectSearchServiceClient.DefaultEndpoint](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VectorSearch.V1/latest/Google.Cloud.VectorSearch.V1.DataObjectSearchServiceClient#Google_Cloud_VectorSearch_V1_DataObjectSearchServiceClient_DefaultEndpoint) [DataObjectSearchServiceClient.DefaultScopes](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VectorSearch.V1/latest/Google.Cloud.VectorSearch.V1.DataObjectSearchServiceClient#Google_Cloud_VectorSearch_V1_DataObjectSearchServiceClient_DefaultScopes) [DataObjectSearchServiceClient.ServiceMetadata](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VectorSearch.V1/latest/Google.Cloud.VectorSearch.V1.DataObjectSearchServiceClient#Google_Cloud_VectorSearch_V1_DataObjectSearchServiceClient_ServiceMetadata) [DataObjectSearchServiceClient.CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VectorSearch.V1/latest/Google.Cloud.VectorSearch.V1.DataObjectSearchServiceClient#Google_Cloud_VectorSearch_V1_DataObjectSearchServiceClient_CreateAsync_System_Threading_CancellationToken_) [DataObjectSearchServiceClient.Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VectorSearch.V1/latest/Google.Cloud.VectorSearch.V1.DataObjectSearchServiceClient#Google_Cloud_VectorSearch_V1_DataObjectSearchServiceClient_Create) [DataObjectSearchServiceClient.ShutdownDefaultChannelsAsync()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VectorSearch.V1/latest/Google.Cloud.VectorSearch.V1.DataObjectSearchServiceClient#Google_Cloud_VectorSearch_V1_DataObjectSearchServiceClient_ShutdownDefaultChannelsAsync) [DataObjectSearchServiceClient.AggregateDataObjectsAsync(AggregateDataObjectsRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VectorSearch.V1/latest/Google.Cloud.VectorSearch.V1.DataObjectSearchServiceClient#Google_Cloud_VectorSearch_V1_DataObjectSearchServiceClient_AggregateDataObjectsAsync_Google_Cloud_VectorSearch_V1_AggregateDataObjectsRequest_System_Threading_CancellationToken_) [DataObjectSearchServiceClient.BatchSearchDataObjectsAsync(BatchSearchDataObjectsRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VectorSearch.V1/latest/Google.Cloud.VectorSearch.V1.DataObjectSearchServiceClient#Google_Cloud_VectorSearch_V1_DataObjectSearchServiceClient_BatchSearchDataObjectsAsync_Google_Cloud_VectorSearch_V1_BatchSearchDataObjectsRequest_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.VectorSearch.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VectorSearch.V1/latest/Google.Cloud.VectorSearch.V1)

## Assembly

Google.Cloud.VectorSearch.V1.dll

## Remarks

Service for searching data objects.

## Constructors

### DataObjectSearchServiceClientImpl(DataObjectSearchServiceClient, DataObjectSearchServiceSettings, ILogger)

    public DataObjectSearchServiceClientImpl(DataObjectSearchService.DataObjectSearchServiceClient grpcClient, DataObjectSearchServiceSettings settings, ILogger logger)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `grpcClient` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VectorSearch.V1/latest/Google.Cloud.VectorSearch.V1.DataObjectSearchServicehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VectorSearch.V1/latest/Google.Cloud.VectorSearch.V1.DataObjectSearchService.DataObjectSearchServiceClient` The underlying gRPC client. |
| `settings` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VectorSearch.V1/latest/Google.Cloud.VectorSearch.V1.DataObjectSearchServiceSettings` The base [DataObjectSearchServiceSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VectorSearch.V1/latest/Google.Cloud.VectorSearch.V1.DataObjectSearchServiceSettings) 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 DataObjectSearchService.DataObjectSearchServiceClient GrpcClient { get; }

The underlying gRPC DataObjectSearchService client

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VectorSearch.V1/latest/Google.Cloud.VectorSearch.V1.DataObjectSearchServicehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VectorSearch.V1/latest/Google.Cloud.VectorSearch.V1.DataObjectSearchService.DataObjectSearchServiceClient` |   |

**Overrides** [DataObjectSearchServiceClient.GrpcClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VectorSearch.V1/latest/Google.Cloud.VectorSearch.V1.DataObjectSearchServiceClient#Google_Cloud_VectorSearch_V1_DataObjectSearchServiceClient_GrpcClient)

### 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** [DataObjectSearchServiceClient.LocationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VectorSearch.V1/latest/Google.Cloud.VectorSearch.V1.DataObjectSearchServiceClient#Google_Cloud_VectorSearch_V1_DataObjectSearchServiceClient_LocationsClient)

## Methods

### AggregateDataObjects(AggregateDataObjectsRequest, CallSettings)

    public override AggregateDataObjectsResponse AggregateDataObjects(AggregateDataObjectsRequest request, CallSettings callSettings = null)

Aggregates data objects.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VectorSearch.V1/latest/Google.Cloud.VectorSearch.V1.AggregateDataObjectsRequest` 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.VectorSearch.V1/latest/Google.Cloud.VectorSearch.V1.AggregateDataObjectsResponse` | The RPC response. |

**Overrides** [DataObjectSearchServiceClient.AggregateDataObjects(AggregateDataObjectsRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VectorSearch.V1/latest/Google.Cloud.VectorSearch.V1.DataObjectSearchServiceClient#Google_Cloud_VectorSearch_V1_DataObjectSearchServiceClient_AggregateDataObjects_Google_Cloud_VectorSearch_V1_AggregateDataObjectsRequest_Google_Api_Gax_Grpc_CallSettings_)

### AggregateDataObjectsAsync(AggregateDataObjectsRequest, CallSettings)

    public override Task<AggregateDataObjectsResponse> AggregateDataObjectsAsync(AggregateDataObjectsRequest request, CallSettings callSettings = null)

Aggregates data objects.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VectorSearch.V1/latest/Google.Cloud.VectorSearch.V1.AggregateDataObjectsRequest` 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.VectorSearch.V1/latest/Google.Cloud.VectorSearch.V1.AggregateDataObjectsResponse` | A Task containing the RPC response. |

**Overrides** [DataObjectSearchServiceClient.AggregateDataObjectsAsync(AggregateDataObjectsRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VectorSearch.V1/latest/Google.Cloud.VectorSearch.V1.DataObjectSearchServiceClient#Google_Cloud_VectorSearch_V1_DataObjectSearchServiceClient_AggregateDataObjectsAsync_Google_Cloud_VectorSearch_V1_AggregateDataObjectsRequest_Google_Api_Gax_Grpc_CallSettings_)

### BatchSearchDataObjects(BatchSearchDataObjectsRequest, CallSettings)

    public override BatchSearchDataObjectsResponse BatchSearchDataObjects(BatchSearchDataObjectsRequest request, CallSettings callSettings = null)

Batch searches data objects.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VectorSearch.V1/latest/Google.Cloud.VectorSearch.V1.BatchSearchDataObjectsRequest` 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.VectorSearch.V1/latest/Google.Cloud.VectorSearch.V1.BatchSearchDataObjectsResponse` | The RPC response. |

**Overrides** [DataObjectSearchServiceClient.BatchSearchDataObjects(BatchSearchDataObjectsRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VectorSearch.V1/latest/Google.Cloud.VectorSearch.V1.DataObjectSearchServiceClient#Google_Cloud_VectorSearch_V1_DataObjectSearchServiceClient_BatchSearchDataObjects_Google_Cloud_VectorSearch_V1_BatchSearchDataObjectsRequest_Google_Api_Gax_Grpc_CallSettings_)

### BatchSearchDataObjectsAsync(BatchSearchDataObjectsRequest, CallSettings)

    public override Task<BatchSearchDataObjectsResponse> BatchSearchDataObjectsAsync(BatchSearchDataObjectsRequest request, CallSettings callSettings = null)

Batch searches data objects.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VectorSearch.V1/latest/Google.Cloud.VectorSearch.V1.BatchSearchDataObjectsRequest` 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.VectorSearch.V1/latest/Google.Cloud.VectorSearch.V1.BatchSearchDataObjectsResponse` | A Task containing the RPC response. |

**Overrides** [DataObjectSearchServiceClient.BatchSearchDataObjectsAsync(BatchSearchDataObjectsRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VectorSearch.V1/latest/Google.Cloud.VectorSearch.V1.DataObjectSearchServiceClient#Google_Cloud_VectorSearch_V1_DataObjectSearchServiceClient_BatchSearchDataObjectsAsync_Google_Cloud_VectorSearch_V1_BatchSearchDataObjectsRequest_Google_Api_Gax_Grpc_CallSettings_)

### QueryDataObjects(QueryDataObjectsRequest, CallSettings)

    public override PagedEnumerable<QueryDataObjectsResponse, DataObject> QueryDataObjects(QueryDataObjectsRequest request, CallSettings callSettings = null)

Queries data objects.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VectorSearch.V1/latest/Google.Cloud.VectorSearch.V1.QueryDataObjectsRequest` 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.VectorSearch.V1/latest/Google.Cloud.VectorSearch.V1.QueryDataObjectsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VectorSearch.V1/latest/Google.Cloud.VectorSearch.V1.DataObject` | A pageable sequence of [DataObject](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VectorSearch.V1/latest/Google.Cloud.VectorSearch.V1.DataObject) resources. |

**Overrides** [DataObjectSearchServiceClient.QueryDataObjects(QueryDataObjectsRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VectorSearch.V1/latest/Google.Cloud.VectorSearch.V1.DataObjectSearchServiceClient#Google_Cloud_VectorSearch_V1_DataObjectSearchServiceClient_QueryDataObjects_Google_Cloud_VectorSearch_V1_QueryDataObjectsRequest_Google_Api_Gax_Grpc_CallSettings_)

### QueryDataObjectsAsync(QueryDataObjectsRequest, CallSettings)

    public override PagedAsyncEnumerable<QueryDataObjectsResponse, DataObject> QueryDataObjectsAsync(QueryDataObjectsRequest request, CallSettings callSettings = null)

Queries data objects.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VectorSearch.V1/latest/Google.Cloud.VectorSearch.V1.QueryDataObjectsRequest` 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.VectorSearch.V1/latest/Google.Cloud.VectorSearch.V1.QueryDataObjectsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VectorSearch.V1/latest/Google.Cloud.VectorSearch.V1.DataObject` | A pageable asynchronous sequence of [DataObject](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VectorSearch.V1/latest/Google.Cloud.VectorSearch.V1.DataObject) resources. |

**Overrides** [DataObjectSearchServiceClient.QueryDataObjectsAsync(QueryDataObjectsRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VectorSearch.V1/latest/Google.Cloud.VectorSearch.V1.DataObjectSearchServiceClient#Google_Cloud_VectorSearch_V1_DataObjectSearchServiceClient_QueryDataObjectsAsync_Google_Cloud_VectorSearch_V1_QueryDataObjectsRequest_Google_Api_Gax_Grpc_CallSettings_)

### SearchDataObjects(SearchDataObjectsRequest, CallSettings)

    public override PagedEnumerable<SearchDataObjectsResponse, SearchResult> SearchDataObjects(SearchDataObjectsRequest request, CallSettings callSettings = null)

Searches data objects.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VectorSearch.V1/latest/Google.Cloud.VectorSearch.V1.SearchDataObjectsRequest` 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.VectorSearch.V1/latest/Google.Cloud.VectorSearch.V1.SearchDataObjectsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VectorSearch.V1/latest/Google.Cloud.VectorSearch.V1.SearchResult` | A pageable sequence of [SearchResult](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VectorSearch.V1/latest/Google.Cloud.VectorSearch.V1.SearchResult) resources. |

**Overrides** [DataObjectSearchServiceClient.SearchDataObjects(SearchDataObjectsRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VectorSearch.V1/latest/Google.Cloud.VectorSearch.V1.DataObjectSearchServiceClient#Google_Cloud_VectorSearch_V1_DataObjectSearchServiceClient_SearchDataObjects_Google_Cloud_VectorSearch_V1_SearchDataObjectsRequest_Google_Api_Gax_Grpc_CallSettings_)

### SearchDataObjectsAsync(SearchDataObjectsRequest, CallSettings)

    public override PagedAsyncEnumerable<SearchDataObjectsResponse, SearchResult> SearchDataObjectsAsync(SearchDataObjectsRequest request, CallSettings callSettings = null)

Searches data objects.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VectorSearch.V1/latest/Google.Cloud.VectorSearch.V1.SearchDataObjectsRequest` 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.VectorSearch.V1/latest/Google.Cloud.VectorSearch.V1.SearchDataObjectsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VectorSearch.V1/latest/Google.Cloud.VectorSearch.V1.SearchResult` | A pageable asynchronous sequence of [SearchResult](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VectorSearch.V1/latest/Google.Cloud.VectorSearch.V1.SearchResult) resources. |

**Overrides** [DataObjectSearchServiceClient.SearchDataObjectsAsync(SearchDataObjectsRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VectorSearch.V1/latest/Google.Cloud.VectorSearch.V1.DataObjectSearchServiceClient#Google_Cloud_VectorSearch_V1_DataObjectSearchServiceClient_SearchDataObjectsAsync_Google_Cloud_VectorSearch_V1_SearchDataObjectsRequest_Google_Api_Gax_Grpc_CallSettings_)