Data QnA v1alpha API - Class QuestionService.QuestionServiceClient (2.0.0-alpha02)

public class QuestionService.QuestionServiceClient : ClientBase<QuestionService.QuestionServiceClient>

Reference documentation and code samples for the Data QnA v1alpha API class QuestionService.QuestionServiceClient.

Client for QuestionService

Inheritance

object > ClientBase > ClientBaseQuestionServiceQuestionServiceClient > QuestionService.QuestionServiceClient

Namespace

Google.Cloud.DataQnA.V1Alpha

Assembly

Google.Cloud.DataQnA.V1Alpha.dll

Constructors

QuestionServiceClient()

protected QuestionServiceClient()

Protected parameterless constructor to allow creation of test doubles.

QuestionServiceClient(CallInvoker)

public QuestionServiceClient(CallInvoker callInvoker)

Creates a new client for QuestionService that uses a custom CallInvoker.

Parameter
NameDescription
callInvokerCallInvoker

The callInvoker to use to make remote calls.

QuestionServiceClient(ChannelBase)

public QuestionServiceClient(ChannelBase channel)

Creates a new client for QuestionService

Parameter
NameDescription
channelChannelBase

The channel to use to make remote calls.

QuestionServiceClient(ClientBaseConfiguration)

protected QuestionServiceClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration

The client configuration.

Methods

CreateQuestion(CreateQuestionRequest, CallOptions)

public virtual Question CreateQuestion(CreateQuestionRequest request, CallOptions options)

Creates a question.

Parameters
NameDescription
requestCreateQuestionRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Question

The response received from the server.

CreateQuestion(CreateQuestionRequest, Metadata, DateTime?, CancellationToken)

public virtual Question CreateQuestion(CreateQuestionRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Creates a question.

Parameters
NameDescription
requestCreateQuestionRequest

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
Question

The response received from the server.

CreateQuestionAsync(CreateQuestionRequest, CallOptions)

public virtual AsyncUnaryCall<Question> CreateQuestionAsync(CreateQuestionRequest request, CallOptions options)

Creates a question.

Parameters
NameDescription
requestCreateQuestionRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallQuestion

The call object.

CreateQuestionAsync(CreateQuestionRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Question> CreateQuestionAsync(CreateQuestionRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Creates a question.

Parameters
NameDescription
requestCreateQuestionRequest

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
AsyncUnaryCallQuestion

The call object.

ExecuteQuestion(ExecuteQuestionRequest, CallOptions)

public virtual Question ExecuteQuestion(ExecuteQuestionRequest request, CallOptions options)

Executes an interpretation.

Parameters
NameDescription
requestExecuteQuestionRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Question

The response received from the server.

ExecuteQuestion(ExecuteQuestionRequest, Metadata, DateTime?, CancellationToken)

public virtual Question ExecuteQuestion(ExecuteQuestionRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Executes an interpretation.

Parameters
NameDescription
requestExecuteQuestionRequest

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
Question

The response received from the server.

ExecuteQuestionAsync(ExecuteQuestionRequest, CallOptions)

public virtual AsyncUnaryCall<Question> ExecuteQuestionAsync(ExecuteQuestionRequest request, CallOptions options)

Executes an interpretation.

Parameters
NameDescription
requestExecuteQuestionRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallQuestion

The call object.

ExecuteQuestionAsync(ExecuteQuestionRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Question> ExecuteQuestionAsync(ExecuteQuestionRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Executes an interpretation.

Parameters
NameDescription
requestExecuteQuestionRequest

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
AsyncUnaryCallQuestion

The call object.

GetQuestion(GetQuestionRequest, CallOptions)

public virtual Question GetQuestion(GetQuestionRequest request, CallOptions options)

Gets a previously created question.

Parameters
NameDescription
requestGetQuestionRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Question

The response received from the server.

GetQuestion(GetQuestionRequest, Metadata, DateTime?, CancellationToken)

public virtual Question GetQuestion(GetQuestionRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Gets a previously created question.

Parameters
NameDescription
requestGetQuestionRequest

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
Question

The response received from the server.

GetQuestionAsync(GetQuestionRequest, CallOptions)

public virtual AsyncUnaryCall<Question> GetQuestionAsync(GetQuestionRequest request, CallOptions options)

Gets a previously created question.

Parameters
NameDescription
requestGetQuestionRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallQuestion

The call object.

GetQuestionAsync(GetQuestionRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Question> GetQuestionAsync(GetQuestionRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Gets a previously created question.

Parameters
NameDescription
requestGetQuestionRequest

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
AsyncUnaryCallQuestion

The call object.

GetUserFeedback(GetUserFeedbackRequest, CallOptions)

public virtual UserFeedback GetUserFeedback(GetUserFeedbackRequest request, CallOptions options)

Gets previously created user feedback.

Parameters
NameDescription
requestGetUserFeedbackRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
UserFeedback

The response received from the server.

GetUserFeedback(GetUserFeedbackRequest, Metadata, DateTime?, CancellationToken)

public virtual UserFeedback GetUserFeedback(GetUserFeedbackRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Gets previously created user feedback.

Parameters
NameDescription
requestGetUserFeedbackRequest

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
UserFeedback

The response received from the server.

GetUserFeedbackAsync(GetUserFeedbackRequest, CallOptions)

public virtual AsyncUnaryCall<UserFeedback> GetUserFeedbackAsync(GetUserFeedbackRequest request, CallOptions options)

Gets previously created user feedback.

Parameters
NameDescription
requestGetUserFeedbackRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallUserFeedback

The call object.

GetUserFeedbackAsync(GetUserFeedbackRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<UserFeedback> GetUserFeedbackAsync(GetUserFeedbackRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Gets previously created user feedback.

Parameters
NameDescription
requestGetUserFeedbackRequest

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
AsyncUnaryCallUserFeedback

The call object.

NewInstance(ClientBaseConfiguration)

protected override QuestionService.QuestionServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration
Returns
TypeDescription
QuestionServiceQuestionServiceClient
Overrides

UpdateUserFeedback(UpdateUserFeedbackRequest, CallOptions)

public virtual UserFeedback UpdateUserFeedback(UpdateUserFeedbackRequest request, CallOptions options)

Updates user feedback. This creates user feedback if there was none before (upsert).

Parameters
NameDescription
requestUpdateUserFeedbackRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
UserFeedback

The response received from the server.

UpdateUserFeedback(UpdateUserFeedbackRequest, Metadata, DateTime?, CancellationToken)

public virtual UserFeedback UpdateUserFeedback(UpdateUserFeedbackRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Updates user feedback. This creates user feedback if there was none before (upsert).

Parameters
NameDescription
requestUpdateUserFeedbackRequest

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
UserFeedback

The response received from the server.

UpdateUserFeedbackAsync(UpdateUserFeedbackRequest, CallOptions)

public virtual AsyncUnaryCall<UserFeedback> UpdateUserFeedbackAsync(UpdateUserFeedbackRequest request, CallOptions options)

Updates user feedback. This creates user feedback if there was none before (upsert).

Parameters
NameDescription
requestUpdateUserFeedbackRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallUserFeedback

The call object.

UpdateUserFeedbackAsync(UpdateUserFeedbackRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<UserFeedback> UpdateUserFeedbackAsync(UpdateUserFeedbackRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Updates user feedback. This creates user feedback if there was none before (upsert).

Parameters
NameDescription
requestUpdateUserFeedbackRequest

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
AsyncUnaryCallUserFeedback

The call object.