public class AutoSuggestionService.AutoSuggestionServiceClient : ClientBase<AutoSuggestionService.AutoSuggestionServiceClient>Reference documentation and code samples for the Data QnA v1alpha API class AutoSuggestionService.AutoSuggestionServiceClient.
Client for AutoSuggestionService
Inheritance
object > ClientBase > ClientBaseAutoSuggestionServiceAutoSuggestionServiceClient > AutoSuggestionService.AutoSuggestionServiceClientNamespace
Google.Cloud.DataQnA.V1AlphaAssembly
Google.Cloud.DataQnA.V1Alpha.dll
Constructors
AutoSuggestionServiceClient()
protected AutoSuggestionServiceClient()Protected parameterless constructor to allow creation of test doubles.
AutoSuggestionServiceClient(CallInvoker)
public AutoSuggestionServiceClient(CallInvoker callInvoker)Creates a new client for AutoSuggestionService that uses a custom CallInvoker.
| Parameter | |
|---|---|
| Name | Description |
callInvoker |
CallInvokerThe callInvoker to use to make remote calls. |
AutoSuggestionServiceClient(ChannelBase)
public AutoSuggestionServiceClient(ChannelBase channel)Creates a new client for AutoSuggestionService
| Parameter | |
|---|---|
| Name | Description |
channel |
ChannelBaseThe channel to use to make remote calls. |
AutoSuggestionServiceClient(ClientBaseConfiguration)
protected AutoSuggestionServiceClient(ClientBase.ClientBaseConfiguration configuration)Protected constructor to allow creation of configured clients.
| Parameter | |
|---|---|
| Name | Description |
configuration |
ClientBaseClientBaseConfigurationThe client configuration. |
Methods
NewInstance(ClientBaseConfiguration)
protected override AutoSuggestionService.AutoSuggestionServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)Creates a new instance of client from given ClientBaseConfiguration.
| Parameter | |
|---|---|
| Name | Description |
configuration |
ClientBaseClientBaseConfiguration |
| Returns | |
|---|---|
| Type | Description |
AutoSuggestionServiceAutoSuggestionServiceClient |
|
SuggestQueries(SuggestQueriesRequest, CallOptions)
public virtual SuggestQueriesResponse SuggestQueries(SuggestQueriesRequest request, CallOptions options)Gets a list of suggestions based on a prefix string. AutoSuggestion tolerance should be less than 1 second.
| Parameters | |
|---|---|
| Name | Description |
request |
SuggestQueriesRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
SuggestQueriesResponse |
The response received from the server. |
SuggestQueries(SuggestQueriesRequest, Metadata, DateTime?, CancellationToken)
public virtual SuggestQueriesResponse SuggestQueries(SuggestQueriesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)Gets a list of suggestions based on a prefix string. AutoSuggestion tolerance should be less than 1 second.
| Parameters | |
|---|---|
| Name | Description |
request |
SuggestQueriesRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
SuggestQueriesResponse |
The response received from the server. |
SuggestQueriesAsync(SuggestQueriesRequest, CallOptions)
public virtual AsyncUnaryCall<SuggestQueriesResponse> SuggestQueriesAsync(SuggestQueriesRequest request, CallOptions options)Gets a list of suggestions based on a prefix string. AutoSuggestion tolerance should be less than 1 second.
| Parameters | |
|---|---|
| Name | Description |
request |
SuggestQueriesRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCallSuggestQueriesResponse |
The call object. |
SuggestQueriesAsync(SuggestQueriesRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncUnaryCall<SuggestQueriesResponse> SuggestQueriesAsync(SuggestQueriesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)Gets a list of suggestions based on a prefix string. AutoSuggestion tolerance should be less than 1 second.
| Parameters | |
|---|---|
| Name | Description |
request |
SuggestQueriesRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCallSuggestQueriesResponse |
The call object. |