Class QuestionService.QuestionServiceClient (2.0.0-alpha01)

public class QuestionServiceClient : ClientBase<QuestionService.QuestionServiceClient>

Client for QuestionService

Inheritance

Object > ClientBase > ClientBase<QuestionService.QuestionServiceClient> > 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(ClientBase.ClientBaseConfiguration)

protected QuestionServiceClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBase.ClientBaseConfiguration

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

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

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.

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

The call object.

CreateQuestionAsync(CreateQuestionRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

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.

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<Question>

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

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

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.

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

The call object.

ExecuteQuestionAsync(ExecuteQuestionRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

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.

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<Question>

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

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

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.

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

The call object.

GetQuestionAsync(GetQuestionRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

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.

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<Question>

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

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

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.

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

The call object.

GetUserFeedbackAsync(GetUserFeedbackRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

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.

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<UserFeedback>

The call object.

NewInstance(ClientBase.ClientBaseConfiguration)

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

Creates a new instance of client from given ClientBaseConfiguration.

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

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

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

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.

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

The call object.

UpdateUserFeedbackAsync(UpdateUserFeedbackRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

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.

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<UserFeedback>

The call object.