Class AutoSuggestionService.AutoSuggestionServiceClient (1.0.0-alpha03)

public class AutoSuggestionServiceClient : ClientBase<AutoSuggestionService.AutoSuggestionServiceClient>

Client for AutoSuggestionService

Inheritance

Object > ClientBase > ClientBase<AutoSuggestionService.AutoSuggestionServiceClient> > 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(ClientBase.ClientBaseConfiguration)

protected AutoSuggestionServiceClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBase.ClientBaseConfiguration

The client configuration.

Methods

NewInstance(ClientBase.ClientBaseConfiguration)

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

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBase.ClientBaseConfiguration
Returns
TypeDescription
AutoSuggestionService.AutoSuggestionServiceClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.DataQnA.V1Alpha.AutoSuggestionService.AutoSuggestionServiceClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)

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, Nullable<DateTime>, CancellationToken)

public virtual SuggestQueriesResponse SuggestQueries(SuggestQueriesRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

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.

deadlineNullable<DateTime>

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
AsyncUnaryCall<SuggestQueriesResponse>

The call object.

SuggestQueriesAsync(SuggestQueriesRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<SuggestQueriesResponse> SuggestQueriesAsync(SuggestQueriesRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

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.

deadlineNullable<DateTime>

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
AsyncUnaryCall<SuggestQueriesResponse>

The call object.