Discovery Engine v1beta API - Class CompletionServiceClientImpl (1.0.0-beta06)

public sealed class CompletionServiceClientImpl : CompletionServiceClient

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

CompletionService client wrapper implementation, for convenient use.

Inheritance

object > CompletionServiceClient > CompletionServiceClientImpl

Namespace

Google.Cloud.DiscoveryEngine.V1Beta

Assembly

Google.Cloud.DiscoveryEngine.V1Beta.dll

Remarks

Service for Auto-Completion.

Constructors

CompletionServiceClientImpl(CompletionServiceClient, CompletionServiceSettings, ILogger)

public CompletionServiceClientImpl(CompletionService.CompletionServiceClient grpcClient, CompletionServiceSettings settings, ILogger logger)

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

Parameters
NameDescription
grpcClientCompletionServiceCompletionServiceClient

The underlying gRPC client.

settingsCompletionServiceSettings

The base CompletionServiceSettings used within this client.

loggerILogger

Optional ILogger to use within this client.

Properties

GrpcClient

public override CompletionService.CompletionServiceClient GrpcClient { get; }

The underlying gRPC CompletionService client

Property Value
TypeDescription
CompletionServiceCompletionServiceClient
Overrides

Methods

CompleteQuery(CompleteQueryRequest, CallSettings)

public override CompleteQueryResponse CompleteQuery(CompleteQueryRequest request, CallSettings callSettings = null)

Completes the specified user input with keyword suggestions.

Parameters
NameDescription
requestCompleteQueryRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
CompleteQueryResponse

The RPC response.

Overrides

CompleteQueryAsync(CompleteQueryRequest, CallSettings)

public override Task<CompleteQueryResponse> CompleteQueryAsync(CompleteQueryRequest request, CallSettings callSettings = null)

Completes the specified user input with keyword suggestions.

Parameters
NameDescription
requestCompleteQueryRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskCompleteQueryResponse

A Task containing the RPC response.

Overrides