Class QuestionServiceClientImpl (2.0.0-alpha01)

public sealed class QuestionServiceClientImpl : QuestionServiceClient

QuestionService client wrapper implementation, for convenient use.

Inheritance

Object > QuestionServiceClient > QuestionServiceClientImpl

Namespace

Google.Cloud.DataQnA.V1Alpha

Assembly

Google.Cloud.DataQnA.V1Alpha.dll

Remarks

Service to interpret natural language queries. The service allows to create Question resources that are interpreted and are filled with one or more interpretations if the question could be interpreted. Once a Question resource is created and has at least one interpretation, an interpretation can be chosen for execution, which triggers a query to the backend (for BigQuery, it will create a job). Upon successful execution of that interpretation, backend specific information will be returned so that the client can retrieve the results from the backend.

The Question resources are named projects/*/locations/*/questions/*.

The Question resource has a singletion sub-resource UserFeedback named projects/*/locations/*/questions/*/userFeedback, which allows access to user feedback.

Constructors

QuestionServiceClientImpl(QuestionService.QuestionServiceClient, QuestionServiceSettings, ILogger)

public QuestionServiceClientImpl(QuestionService.QuestionServiceClient grpcClient, QuestionServiceSettings settings, ILogger logger)

Constructs a client wrapper for the QuestionService service, with the specified gRPC client and settings.

Parameters
NameDescription
grpcClientQuestionService.QuestionServiceClient

The underlying gRPC client.

settingsQuestionServiceSettings

The base QuestionServiceSettings used within this client.

loggerILogger

Optional ILogger to use within this client.

Properties

GrpcClient

public override QuestionService.QuestionServiceClient GrpcClient { get; }

The underlying gRPC QuestionService client

Property Value
TypeDescription
QuestionService.QuestionServiceClient
Overrides

Methods

CreateQuestion(CreateQuestionRequest, CallSettings)

public override Question CreateQuestion(CreateQuestionRequest request, CallSettings callSettings = null)

Creates a question.

Parameters
NameDescription
requestCreateQuestionRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Question

The RPC response.

Overrides

CreateQuestionAsync(CreateQuestionRequest, CallSettings)

public override Task<Question> CreateQuestionAsync(CreateQuestionRequest request, CallSettings callSettings = null)

Creates a question.

Parameters
NameDescription
requestCreateQuestionRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Question>

A Task containing the RPC response.

Overrides

ExecuteQuestion(ExecuteQuestionRequest, CallSettings)

public override Question ExecuteQuestion(ExecuteQuestionRequest request, CallSettings callSettings = null)

Executes an interpretation.

Parameters
NameDescription
requestExecuteQuestionRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Question

The RPC response.

Overrides

ExecuteQuestionAsync(ExecuteQuestionRequest, CallSettings)

public override Task<Question> ExecuteQuestionAsync(ExecuteQuestionRequest request, CallSettings callSettings = null)

Executes an interpretation.

Parameters
NameDescription
requestExecuteQuestionRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Question>

A Task containing the RPC response.

Overrides

GetQuestion(GetQuestionRequest, CallSettings)

public override Question GetQuestion(GetQuestionRequest request, CallSettings callSettings = null)

Gets a previously created question.

Parameters
NameDescription
requestGetQuestionRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Question

The RPC response.

Overrides

GetQuestionAsync(GetQuestionRequest, CallSettings)

public override Task<Question> GetQuestionAsync(GetQuestionRequest request, CallSettings callSettings = null)

Gets a previously created question.

Parameters
NameDescription
requestGetQuestionRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Question>

A Task containing the RPC response.

Overrides

GetUserFeedback(GetUserFeedbackRequest, CallSettings)

public override UserFeedback GetUserFeedback(GetUserFeedbackRequest request, CallSettings callSettings = null)

Gets previously created user feedback.

Parameters
NameDescription
requestGetUserFeedbackRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
UserFeedback

The RPC response.

Overrides

GetUserFeedbackAsync(GetUserFeedbackRequest, CallSettings)

public override Task<UserFeedback> GetUserFeedbackAsync(GetUserFeedbackRequest request, CallSettings callSettings = null)

Gets previously created user feedback.

Parameters
NameDescription
requestGetUserFeedbackRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<UserFeedback>

A Task containing the RPC response.

Overrides

UpdateUserFeedback(UpdateUserFeedbackRequest, CallSettings)

public override UserFeedback UpdateUserFeedback(UpdateUserFeedbackRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestUpdateUserFeedbackRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
UserFeedback

The RPC response.

Overrides

UpdateUserFeedbackAsync(UpdateUserFeedbackRequest, CallSettings)

public override Task<UserFeedback> UpdateUserFeedbackAsync(UpdateUserFeedbackRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestUpdateUserFeedbackRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<UserFeedback>

A Task containing the RPC response.

Overrides