# Discovery Engine v1beta API - Class SampleQueryService.SampleQueryServiceBase (1.0.0-beta23)

1.0.0-beta23 (latest) 1.0.0-beta22

    [BindServiceMethod(typeof(SampleQueryService), "BindService")]
    public abstract class SampleQueryService.SampleQueryServiceBase

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

Base class for server-side implementations of SampleQueryService

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> SampleQueryService.SampleQueryServiceBase

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) [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

## Methods

### CreateSampleQuery(CreateSampleQueryRequest, ServerCallContext)

    public virtual Task<SampleQuery> CreateSampleQuery(CreateSampleQueryRequest request, ServerCallContext context)

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 received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **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` | The response to send back to the client (wrapped by a task). |

### DeleteSampleQuery(DeleteSampleQueryRequest, ServerCallContext)

    public virtual Task<Empty> DeleteSampleQuery(DeleteSampleQueryRequest request, ServerCallContext context)

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 received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.html` | The response to send back to the client (wrapped by a task). |

### GetSampleQuery(GetSampleQueryRequest, ServerCallContext)

    public virtual Task<SampleQuery> GetSampleQuery(GetSampleQueryRequest request, ServerCallContext context)

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 received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **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` | The response to send back to the client (wrapped by a task). |

### ImportSampleQueries(ImportSampleQueriesRequest, ServerCallContext)

    public virtual Task<Operation> ImportSampleQueries(ImportSampleQueriesRequest request, ServerCallContext context)

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 received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **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.html` | The response to send back to the client (wrapped by a task). |

### ListSampleQueries(ListSampleQueriesRequest, ServerCallContext)

    public virtual Task<ListSampleQueriesResponse> ListSampleQueries(ListSampleQueriesRequest request, ServerCallContext context)

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 received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **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.ListSampleQueriesResponse` | The response to send back to the client (wrapped by a task). |

### UpdateSampleQuery(UpdateSampleQueryRequest, ServerCallContext)

    public virtual Task<SampleQuery> UpdateSampleQuery(UpdateSampleQueryRequest request, ServerCallContext context)

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 received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **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` | The response to send back to the client (wrapped by a task). |