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

[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 > SampleQueryService.SampleQueryServiceBase

Namespace

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 CreateSampleQueryRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskSampleQuery

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 DeleteSampleQueryRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskEmpty

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 GetSampleQueryRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskSampleQuery

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 ImportSampleQueriesRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskOperation

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 ListSampleQueriesRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskListSampleQueriesResponse

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 UpdateSampleQueryRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskSampleQuery

The response to send back to the client (wrapped by a task).