# Discovery Engine v1beta API - Class SampleQueryServiceClientImpl (1.0.0-beta23)

1.0.0-beta23 (latest) 1.0.0-beta22

    public sealed class SampleQueryServiceClientImpl : SampleQueryServiceClient

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

SampleQueryService client wrapper implementation, for convenient use.

## Inheritance

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

## Inherited Members

[SampleQueryServiceClient.DefaultEndpoint](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SampleQueryServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SampleQueryServiceClient_DefaultEndpoint) [SampleQueryServiceClient.DefaultScopes](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SampleQueryServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SampleQueryServiceClient_DefaultScopes) [SampleQueryServiceClient.ServiceMetadata](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SampleQueryServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SampleQueryServiceClient_ServiceMetadata) [SampleQueryServiceClient.CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SampleQueryServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SampleQueryServiceClient_CreateAsync_System_Threading_CancellationToken_) [SampleQueryServiceClient.Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SampleQueryServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SampleQueryServiceClient_Create) [SampleQueryServiceClient.ShutdownDefaultChannelsAsync()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SampleQueryServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SampleQueryServiceClient_ShutdownDefaultChannelsAsync) [SampleQueryServiceClient.GetSampleQueryAsync(GetSampleQueryRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SampleQueryServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SampleQueryServiceClient_GetSampleQueryAsync_Google_Cloud_DiscoveryEngine_V1Beta_GetSampleQueryRequest_System_Threading_CancellationToken_) [SampleQueryServiceClient.GetSampleQuery(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SampleQueryServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SampleQueryServiceClient_GetSampleQuery_System_String_Google_Api_Gax_Grpc_CallSettings_) [SampleQueryServiceClient.GetSampleQueryAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SampleQueryServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SampleQueryServiceClient_GetSampleQueryAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [SampleQueryServiceClient.GetSampleQueryAsync(string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SampleQueryServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SampleQueryServiceClient_GetSampleQueryAsync_System_String_System_Threading_CancellationToken_) [SampleQueryServiceClient.GetSampleQuery(SampleQueryName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SampleQueryServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SampleQueryServiceClient_GetSampleQuery_Google_Cloud_DiscoveryEngine_V1Beta_SampleQueryName_Google_Api_Gax_Grpc_CallSettings_) [SampleQueryServiceClient.GetSampleQueryAsync(SampleQueryName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SampleQueryServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SampleQueryServiceClient_GetSampleQueryAsync_Google_Cloud_DiscoveryEngine_V1Beta_SampleQueryName_Google_Api_Gax_Grpc_CallSettings_) [SampleQueryServiceClient.GetSampleQueryAsync(SampleQueryName, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SampleQueryServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SampleQueryServiceClient_GetSampleQueryAsync_Google_Cloud_DiscoveryEngine_V1Beta_SampleQueryName_System_Threading_CancellationToken_) [SampleQueryServiceClient.ListSampleQueries(string, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SampleQueryServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SampleQueryServiceClient_ListSampleQueries_System_String_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [SampleQueryServiceClient.ListSampleQueriesAsync(string, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SampleQueryServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SampleQueryServiceClient_ListSampleQueriesAsync_System_String_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [SampleQueryServiceClient.ListSampleQueries(SampleQuerySetName, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SampleQueryServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SampleQueryServiceClient_ListSampleQueries_Google_Cloud_DiscoveryEngine_V1Beta_SampleQuerySetName_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [SampleQueryServiceClient.ListSampleQueriesAsync(SampleQuerySetName, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SampleQueryServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SampleQueryServiceClient_ListSampleQueriesAsync_Google_Cloud_DiscoveryEngine_V1Beta_SampleQuerySetName_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [SampleQueryServiceClient.CreateSampleQueryAsync(CreateSampleQueryRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SampleQueryServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SampleQueryServiceClient_CreateSampleQueryAsync_Google_Cloud_DiscoveryEngine_V1Beta_CreateSampleQueryRequest_System_Threading_CancellationToken_) [SampleQueryServiceClient.CreateSampleQuery(string, SampleQuery, string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SampleQueryServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SampleQueryServiceClient_CreateSampleQuery_System_String_Google_Cloud_DiscoveryEngine_V1Beta_SampleQuery_System_String_Google_Api_Gax_Grpc_CallSettings_) [SampleQueryServiceClient.CreateSampleQueryAsync(string, SampleQuery, string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SampleQueryServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SampleQueryServiceClient_CreateSampleQueryAsync_System_String_Google_Cloud_DiscoveryEngine_V1Beta_SampleQuery_System_String_Google_Api_Gax_Grpc_CallSettings_) [SampleQueryServiceClient.CreateSampleQueryAsync(string, SampleQuery, string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SampleQueryServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SampleQueryServiceClient_CreateSampleQueryAsync_System_String_Google_Cloud_DiscoveryEngine_V1Beta_SampleQuery_System_String_System_Threading_CancellationToken_) [SampleQueryServiceClient.CreateSampleQuery(SampleQuerySetName, SampleQuery, string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SampleQueryServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SampleQueryServiceClient_CreateSampleQuery_Google_Cloud_DiscoveryEngine_V1Beta_SampleQuerySetName_Google_Cloud_DiscoveryEngine_V1Beta_SampleQuery_System_String_Google_Api_Gax_Grpc_CallSettings_) [SampleQueryServiceClient.CreateSampleQueryAsync(SampleQuerySetName, SampleQuery, string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SampleQueryServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SampleQueryServiceClient_CreateSampleQueryAsync_Google_Cloud_DiscoveryEngine_V1Beta_SampleQuerySetName_Google_Cloud_DiscoveryEngine_V1Beta_SampleQuery_System_String_Google_Api_Gax_Grpc_CallSettings_) [SampleQueryServiceClient.CreateSampleQueryAsync(SampleQuerySetName, SampleQuery, string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SampleQueryServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SampleQueryServiceClient_CreateSampleQueryAsync_Google_Cloud_DiscoveryEngine_V1Beta_SampleQuerySetName_Google_Cloud_DiscoveryEngine_V1Beta_SampleQuery_System_String_System_Threading_CancellationToken_) [SampleQueryServiceClient.UpdateSampleQueryAsync(UpdateSampleQueryRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SampleQueryServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SampleQueryServiceClient_UpdateSampleQueryAsync_Google_Cloud_DiscoveryEngine_V1Beta_UpdateSampleQueryRequest_System_Threading_CancellationToken_) [SampleQueryServiceClient.UpdateSampleQuery(SampleQuery, FieldMask, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SampleQueryServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SampleQueryServiceClient_UpdateSampleQuery_Google_Cloud_DiscoveryEngine_V1Beta_SampleQuery_Google_Protobuf_WellKnownTypes_FieldMask_Google_Api_Gax_Grpc_CallSettings_) [SampleQueryServiceClient.UpdateSampleQueryAsync(SampleQuery, FieldMask, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SampleQueryServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SampleQueryServiceClient_UpdateSampleQueryAsync_Google_Cloud_DiscoveryEngine_V1Beta_SampleQuery_Google_Protobuf_WellKnownTypes_FieldMask_Google_Api_Gax_Grpc_CallSettings_) [SampleQueryServiceClient.UpdateSampleQueryAsync(SampleQuery, FieldMask, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SampleQueryServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SampleQueryServiceClient_UpdateSampleQueryAsync_Google_Cloud_DiscoveryEngine_V1Beta_SampleQuery_Google_Protobuf_WellKnownTypes_FieldMask_System_Threading_CancellationToken_) [SampleQueryServiceClient.DeleteSampleQueryAsync(DeleteSampleQueryRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SampleQueryServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SampleQueryServiceClient_DeleteSampleQueryAsync_Google_Cloud_DiscoveryEngine_V1Beta_DeleteSampleQueryRequest_System_Threading_CancellationToken_) [SampleQueryServiceClient.DeleteSampleQuery(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SampleQueryServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SampleQueryServiceClient_DeleteSampleQuery_System_String_Google_Api_Gax_Grpc_CallSettings_) [SampleQueryServiceClient.DeleteSampleQueryAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SampleQueryServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SampleQueryServiceClient_DeleteSampleQueryAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [SampleQueryServiceClient.DeleteSampleQueryAsync(string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SampleQueryServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SampleQueryServiceClient_DeleteSampleQueryAsync_System_String_System_Threading_CancellationToken_) [SampleQueryServiceClient.DeleteSampleQuery(SampleQueryName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SampleQueryServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SampleQueryServiceClient_DeleteSampleQuery_Google_Cloud_DiscoveryEngine_V1Beta_SampleQueryName_Google_Api_Gax_Grpc_CallSettings_) [SampleQueryServiceClient.DeleteSampleQueryAsync(SampleQueryName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SampleQueryServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SampleQueryServiceClient_DeleteSampleQueryAsync_Google_Cloud_DiscoveryEngine_V1Beta_SampleQueryName_Google_Api_Gax_Grpc_CallSettings_) [SampleQueryServiceClient.DeleteSampleQueryAsync(SampleQueryName, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SampleQueryServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SampleQueryServiceClient_DeleteSampleQueryAsync_Google_Cloud_DiscoveryEngine_V1Beta_SampleQueryName_System_Threading_CancellationToken_) [SampleQueryServiceClient.ImportSampleQueriesAsync(ImportSampleQueriesRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SampleQueryServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SampleQueryServiceClient_ImportSampleQueriesAsync_Google_Cloud_DiscoveryEngine_V1Beta_ImportSampleQueriesRequest_System_Threading_CancellationToken_) [SampleQueryServiceClient.PollOnceImportSampleQueries(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SampleQueryServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SampleQueryServiceClient_PollOnceImportSampleQueries_System_String_Google_Api_Gax_Grpc_CallSettings_) [SampleQueryServiceClient.PollOnceImportSampleQueriesAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SampleQueryServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SampleQueryServiceClient_PollOnceImportSampleQueriesAsync_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.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 managing
\[SampleQuery\]\[google.cloud.discoveryengine.v1beta.SampleQuery\]s,

## Constructors

### SampleQueryServiceClientImpl(SampleQueryServiceClient, SampleQueryServiceSettings, ILogger)

    public SampleQueryServiceClientImpl(SampleQueryService.SampleQueryServiceClient grpcClient, SampleQueryServiceSettings settings, ILogger logger)

Constructs a client wrapper for the SampleQueryService 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.SampleQueryServicehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SampleQueryService.SampleQueryServiceClient` The underlying gRPC client. |
| `settings` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SampleQueryServiceSettings` The base [SampleQueryServiceSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SampleQueryServiceSettings) 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 SampleQueryService.SampleQueryServiceClient GrpcClient { get; }

The underlying gRPC SampleQueryService client

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SampleQueryServicehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SampleQueryService.SampleQueryServiceClient` |   |

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

### ImportSampleQueriesOperationsClient

    public override OperationsClient ImportSampleQueriesOperationsClient { get; }

The long-running operations client for `ImportSampleQueries`.

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

**Overrides** [SampleQueryServiceClient.ImportSampleQueriesOperationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SampleQueryServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SampleQueryServiceClient_ImportSampleQueriesOperationsClient)

### 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** [SampleQueryServiceClient.LocationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SampleQueryServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SampleQueryServiceClient_LocationsClient)

## Methods

### CreateSampleQuery(CreateSampleQueryRequest, CallSettings)

    public override SampleQuery CreateSampleQuery(CreateSampleQueryRequest request, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.CreateSampleQueryRequest` 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.SampleQuery` | The RPC response. |

**Overrides** [SampleQueryServiceClient.CreateSampleQuery(CreateSampleQueryRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SampleQueryServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SampleQueryServiceClient_CreateSampleQuery_Google_Cloud_DiscoveryEngine_V1Beta_CreateSampleQueryRequest_Google_Api_Gax_Grpc_CallSettings_)

### CreateSampleQueryAsync(CreateSampleQueryRequest, CallSettings)

    public override Task<SampleQuery> CreateSampleQueryAsync(CreateSampleQueryRequest request, CallSettings callSettings = null)

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

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

**Overrides** [SampleQueryServiceClient.CreateSampleQueryAsync(CreateSampleQueryRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SampleQueryServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SampleQueryServiceClient_CreateSampleQueryAsync_Google_Cloud_DiscoveryEngine_V1Beta_CreateSampleQueryRequest_Google_Api_Gax_Grpc_CallSettings_)

### DeleteSampleQuery(DeleteSampleQueryRequest, CallSettings)

    public override void DeleteSampleQuery(DeleteSampleQueryRequest request, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.DeleteSampleQueryRequest` 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** [SampleQueryServiceClient.DeleteSampleQuery(DeleteSampleQueryRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SampleQueryServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SampleQueryServiceClient_DeleteSampleQuery_Google_Cloud_DiscoveryEngine_V1Beta_DeleteSampleQueryRequest_Google_Api_Gax_Grpc_CallSettings_)

### DeleteSampleQueryAsync(DeleteSampleQueryRequest, CallSettings)

    public override Task DeleteSampleQueryAsync(DeleteSampleQueryRequest request, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.DeleteSampleQueryRequest` 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** [SampleQueryServiceClient.DeleteSampleQueryAsync(DeleteSampleQueryRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SampleQueryServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SampleQueryServiceClient_DeleteSampleQueryAsync_Google_Cloud_DiscoveryEngine_V1Beta_DeleteSampleQueryRequest_Google_Api_Gax_Grpc_CallSettings_)

### GetSampleQuery(GetSampleQueryRequest, CallSettings)

    public override SampleQuery GetSampleQuery(GetSampleQueryRequest request, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.GetSampleQueryRequest` 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.SampleQuery` | The RPC response. |

**Overrides** [SampleQueryServiceClient.GetSampleQuery(GetSampleQueryRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SampleQueryServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SampleQueryServiceClient_GetSampleQuery_Google_Cloud_DiscoveryEngine_V1Beta_GetSampleQueryRequest_Google_Api_Gax_Grpc_CallSettings_)

### GetSampleQueryAsync(GetSampleQueryRequest, CallSettings)

    public override Task<SampleQuery> GetSampleQueryAsync(GetSampleQueryRequest request, CallSettings callSettings = null)

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

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

**Overrides** [SampleQueryServiceClient.GetSampleQueryAsync(GetSampleQueryRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SampleQueryServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SampleQueryServiceClient_GetSampleQueryAsync_Google_Cloud_DiscoveryEngine_V1Beta_GetSampleQueryRequest_Google_Api_Gax_Grpc_CallSettings_)

### ImportSampleQueries(ImportSampleQueriesRequest, CallSettings)

    public override Operation<ImportSampleQueriesResponse, ImportSampleQueriesMetadata> ImportSampleQueries(ImportSampleQueriesRequest request, CallSettings callSettings = null)

Bulk import of multiple
\[SampleQuery\]\[google.cloud.discoveryengine.v1beta.SampleQuery\]s. Sample
queries that already exist may be deleted.

Note: It is possible for a subset of the
\[SampleQuery\]\[google.cloud.discoveryengine.v1beta.SampleQuery\]s to be
successfully imported.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.ImportSampleQueriesRequest` 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.ImportSampleQueriesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.ImportSampleQueriesMetadata` | The RPC response. |

**Overrides** [SampleQueryServiceClient.ImportSampleQueries(ImportSampleQueriesRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SampleQueryServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SampleQueryServiceClient_ImportSampleQueries_Google_Cloud_DiscoveryEngine_V1Beta_ImportSampleQueriesRequest_Google_Api_Gax_Grpc_CallSettings_)

### ImportSampleQueriesAsync(ImportSampleQueriesRequest, CallSettings)

    public override Task<Operation<ImportSampleQueriesResponse, ImportSampleQueriesMetadata>> ImportSampleQueriesAsync(ImportSampleQueriesRequest request, CallSettings callSettings = null)

Bulk import of multiple
\[SampleQuery\]\[google.cloud.discoveryengine.v1beta.SampleQuery\]s. Sample
queries that already exist may be deleted.

Note: It is possible for a subset of the
\[SampleQuery\]\[google.cloud.discoveryengine.v1beta.SampleQuery\]s to be
successfully imported.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.ImportSampleQueriesRequest` 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.ImportSampleQueriesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.ImportSampleQueriesMetadata` | A Task containing the RPC response. |

**Overrides** [SampleQueryServiceClient.ImportSampleQueriesAsync(ImportSampleQueriesRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SampleQueryServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SampleQueryServiceClient_ImportSampleQueriesAsync_Google_Cloud_DiscoveryEngine_V1Beta_ImportSampleQueriesRequest_Google_Api_Gax_Grpc_CallSettings_)

### ListSampleQueries(ListSampleQueriesRequest, CallSettings)

    public override PagedEnumerable<ListSampleQueriesResponse, SampleQuery> ListSampleQueries(ListSampleQueriesRequest request, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.ListSampleQueriesRequest` 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.ListSampleQueriesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SampleQuery` | A pageable sequence of [SampleQuery](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SampleQuery) resources. |

**Overrides** [SampleQueryServiceClient.ListSampleQueries(ListSampleQueriesRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SampleQueryServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SampleQueryServiceClient_ListSampleQueries_Google_Cloud_DiscoveryEngine_V1Beta_ListSampleQueriesRequest_Google_Api_Gax_Grpc_CallSettings_)

### ListSampleQueriesAsync(ListSampleQueriesRequest, CallSettings)

    public override PagedAsyncEnumerable<ListSampleQueriesResponse, SampleQuery> ListSampleQueriesAsync(ListSampleQueriesRequest request, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.ListSampleQueriesRequest` 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.ListSampleQueriesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SampleQuery` | A pageable asynchronous sequence of [SampleQuery](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SampleQuery) resources. |

**Overrides** [SampleQueryServiceClient.ListSampleQueriesAsync(ListSampleQueriesRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SampleQueryServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SampleQueryServiceClient_ListSampleQueriesAsync_Google_Cloud_DiscoveryEngine_V1Beta_ListSampleQueriesRequest_Google_Api_Gax_Grpc_CallSettings_)

### UpdateSampleQuery(UpdateSampleQueryRequest, CallSettings)

    public override SampleQuery UpdateSampleQuery(UpdateSampleQueryRequest request, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.UpdateSampleQueryRequest` 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.SampleQuery` | The RPC response. |

**Overrides** [SampleQueryServiceClient.UpdateSampleQuery(UpdateSampleQueryRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SampleQueryServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SampleQueryServiceClient_UpdateSampleQuery_Google_Cloud_DiscoveryEngine_V1Beta_UpdateSampleQueryRequest_Google_Api_Gax_Grpc_CallSettings_)

### UpdateSampleQueryAsync(UpdateSampleQueryRequest, CallSettings)

    public override Task<SampleQuery> UpdateSampleQueryAsync(UpdateSampleQueryRequest request, CallSettings callSettings = null)

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

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

**Overrides** [SampleQueryServiceClient.UpdateSampleQueryAsync(UpdateSampleQueryRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SampleQueryServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SampleQueryServiceClient_UpdateSampleQueryAsync_Google_Cloud_DiscoveryEngine_V1Beta_UpdateSampleQueryRequest_Google_Api_Gax_Grpc_CallSettings_)