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.
Namespace
Google.Cloud.DiscoveryEngine.V1BetaAssembly
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 | |
---|---|
Name | Description |
grpcClient | CompletionServiceCompletionServiceClient The underlying gRPC client. |
settings | CompletionServiceSettings The base CompletionServiceSettings used within this client. |
logger | ILogger Optional ILogger to use within this client. |
Properties
GrpcClient
public override CompletionService.CompletionServiceClient GrpcClient { get; }
The underlying gRPC CompletionService client
Property Value | |
---|---|
Type | Description |
CompletionServiceCompletionServiceClient |
Methods
CompleteQuery(CompleteQueryRequest, CallSettings)
public override CompleteQueryResponse CompleteQuery(CompleteQueryRequest request, CallSettings callSettings = null)
Completes the specified user input with keyword suggestions.
Parameters | |
---|---|
Name | Description |
request | CompleteQueryRequest 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 |
CompleteQueryResponse | The RPC response. |
CompleteQueryAsync(CompleteQueryRequest, CallSettings)
public override Task<CompleteQueryResponse> CompleteQueryAsync(CompleteQueryRequest request, CallSettings callSettings = null)
Completes the specified user input with keyword suggestions.
Parameters | |
---|---|
Name | Description |
request | CompleteQueryRequest 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 |
TaskCompleteQueryResponse | A Task containing the RPC response. |