public class AutoSuggestionServiceClient : ClientBase<AutoSuggestionService.AutoSuggestionServiceClient>Client for AutoSuggestionService
Inheritance
Object > ClientBase > ClientBase<AutoSuggestionService.AutoSuggestionServiceClient> > 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(ClientBase.ClientBaseConfiguration)
protected AutoSuggestionServiceClient(ClientBase.ClientBaseConfiguration configuration)Protected constructor to allow creation of configured clients.
| Parameter | |
|---|---|
| Name | Description |
configuration |
ClientBase.ClientBaseConfigurationThe client configuration. |
Methods
NewInstance(ClientBase.ClientBaseConfiguration)
protected override AutoSuggestionService.AutoSuggestionServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)Creates a new instance of client from given ClientBaseConfiguration.
| Parameter | |
|---|---|
| Name | Description |
configuration |
ClientBase.ClientBaseConfiguration |
| Returns | |
|---|---|
| Type | Description |
AutoSuggestionService.AutoSuggestionServiceClient |
|
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, Nullable<DateTime>, CancellationToken)
public virtual SuggestQueriesResponse SuggestQueries(SuggestQueriesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))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 |
Nullable<DateTime>An 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 |
AsyncUnaryCall<SuggestQueriesResponse> |
The call object. |
SuggestQueriesAsync(SuggestQueriesRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<SuggestQueriesResponse> SuggestQueriesAsync(SuggestQueriesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))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 |
Nullable<DateTime>An 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 |
AsyncUnaryCall<SuggestQueriesResponse> |
The call object. |