Data QnA v1alpha API - Class AutoSuggestionService.AutoSuggestionServiceClient (2.0.0-alpha02)

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.AutoSuggestionServiceClient

Namespace

Google.Cloud.DataQnA.V1Alpha

Assembly

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
NameDescription
callInvokerCallInvoker

The callInvoker to use to make remote calls.

AutoSuggestionServiceClient(ChannelBase)

public AutoSuggestionServiceClient(ChannelBase channel)

Creates a new client for AutoSuggestionService

Parameter
NameDescription
channelChannelBase

The channel to use to make remote calls.

AutoSuggestionServiceClient(ClientBaseConfiguration)

protected AutoSuggestionServiceClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration

The client configuration.

Methods

NewInstance(ClientBaseConfiguration)

protected override AutoSuggestionService.AutoSuggestionServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration
Returns
TypeDescription
AutoSuggestionServiceAutoSuggestionServiceClient
Overrides

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
NameDescription
requestSuggestQueriesRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestSuggestQueriesRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
NameDescription
requestSuggestQueriesRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestSuggestQueriesRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallSuggestQueriesResponse

The call object.