public class CompletionService.CompletionServiceClient : ClientBase<CompletionService.CompletionServiceClient>
Reference documentation and code samples for the Discovery Engine v1beta API class CompletionService.CompletionServiceClient.
Client for CompletionService
Inheritance
object > ClientBase > ClientBaseCompletionServiceCompletionServiceClient > CompletionService.CompletionServiceClientNamespace
Google.Cloud.DiscoveryEngine.V1BetaAssembly
Google.Cloud.DiscoveryEngine.V1Beta.dll
Constructors
CompletionServiceClient()
protected CompletionServiceClient()
Protected parameterless constructor to allow creation of test doubles.
CompletionServiceClient(CallInvoker)
public CompletionServiceClient(CallInvoker callInvoker)
Creates a new client for CompletionService that uses a custom CallInvoker
.
Parameter | |
---|---|
Name | Description |
callInvoker | CallInvoker The callInvoker to use to make remote calls. |
CompletionServiceClient(ChannelBase)
public CompletionServiceClient(ChannelBase channel)
Creates a new client for CompletionService
Parameter | |
---|---|
Name | Description |
channel | ChannelBase The channel to use to make remote calls. |
CompletionServiceClient(ClientBaseConfiguration)
protected CompletionServiceClient(ClientBase.ClientBaseConfiguration configuration)
Protected constructor to allow creation of configured clients.
Parameter | |
---|---|
Name | Description |
configuration | ClientBaseClientBaseConfiguration The client configuration. |
Methods
CompleteQuery(CompleteQueryRequest, CallOptions)
public virtual CompleteQueryResponse CompleteQuery(CompleteQueryRequest request, CallOptions options)
Completes the specified user input with keyword suggestions.
Parameters | |
---|---|
Name | Description |
request | CompleteQueryRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
CompleteQueryResponse | The response received from the server. |
CompleteQuery(CompleteQueryRequest, Metadata, DateTime?, CancellationToken)
public virtual CompleteQueryResponse CompleteQuery(CompleteQueryRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Completes the specified user input with keyword suggestions.
Parameters | |
---|---|
Name | Description |
request | CompleteQueryRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
CompleteQueryResponse | The response received from the server. |
CompleteQueryAsync(CompleteQueryRequest, CallOptions)
public virtual AsyncUnaryCall<CompleteQueryResponse> CompleteQueryAsync(CompleteQueryRequest request, CallOptions options)
Completes the specified user input with keyword suggestions.
Parameters | |
---|---|
Name | Description |
request | CompleteQueryRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallCompleteQueryResponse | The call object. |
CompleteQueryAsync(CompleteQueryRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncUnaryCall<CompleteQueryResponse> CompleteQueryAsync(CompleteQueryRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Completes the specified user input with keyword suggestions.
Parameters | |
---|---|
Name | Description |
request | CompleteQueryRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallCompleteQueryResponse | The call object. |
NewInstance(ClientBaseConfiguration)
protected override CompletionService.CompletionServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)
Creates a new instance of client from given ClientBaseConfiguration
.
Parameter | |
---|---|
Name | Description |
configuration | ClientBaseClientBaseConfiguration |
Returns | |
---|---|
Type | Description |
CompletionServiceCompletionServiceClient |