Discovery Engine v1beta API - Class SampleQueryServiceClientImpl (1.0.0-beta17)

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 > SampleQueryServiceClient > SampleQueryServiceClientImpl

Namespace

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 SampleQueryServiceSampleQueryServiceClient

The underlying gRPC client.

settings SampleQueryServiceSettings

The base SampleQueryServiceSettings used within this client.

logger ILogger

Optional ILogger to use within this client.

Properties

GrpcClient

public override SampleQueryService.SampleQueryServiceClient GrpcClient { get; }

The underlying gRPC SampleQueryService client

Property Value
Type Description
SampleQueryServiceSampleQueryServiceClient
Overrides

ImportSampleQueriesOperationsClient

public override OperationsClient ImportSampleQueriesOperationsClient { get; }

The long-running operations client for ImportSampleQueries.

Property Value
Type Description
OperationsClient
Overrides

LocationsClient

public override LocationsClient LocationsClient { get; }

The LocationsClient associated with this client.

Property Value
Type Description
LocationsClient
Overrides

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 CreateSampleQueryRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
SampleQuery

The RPC response.

Overrides

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 CreateSampleQueryRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskSampleQuery

A Task containing the RPC response.

Overrides

DeleteSampleQuery(DeleteSampleQueryRequest, CallSettings)

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

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

Parameters
Name Description
request DeleteSampleQueryRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Overrides

DeleteSampleQueryAsync(DeleteSampleQueryRequest, CallSettings)

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

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

Parameters
Name Description
request DeleteSampleQueryRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Overrides

GetSampleQuery(GetSampleQueryRequest, CallSettings)

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

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

Parameters
Name Description
request GetSampleQueryRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
SampleQuery

The RPC response.

Overrides

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 GetSampleQueryRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskSampleQuery

A Task containing the RPC response.

Overrides

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 ImportSampleQueriesRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationImportSampleQueriesResponseImportSampleQueriesMetadata

The RPC response.

Overrides

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 ImportSampleQueriesRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationImportSampleQueriesResponseImportSampleQueriesMetadata

A Task containing the RPC response.

Overrides

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 ListSampleQueriesRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListSampleQueriesResponseSampleQuery

A pageable sequence of SampleQuery resources.

Overrides

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 ListSampleQueriesRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListSampleQueriesResponseSampleQuery

A pageable asynchronous sequence of SampleQuery resources.

Overrides

UpdateSampleQuery(UpdateSampleQueryRequest, CallSettings)

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

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

Parameters
Name Description
request UpdateSampleQueryRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
SampleQuery

The RPC response.

Overrides

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 UpdateSampleQueryRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskSampleQuery

A Task containing the RPC response.

Overrides