Class QuestionService (1.0.0-alpha03)

public static class QuestionService

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.

Inheritance

Object > QuestionService

Namespace

Google.Cloud.DataQnA.V1Alpha

Assembly

Google.Cloud.DataQnA.V1Alpha.dll

Methods

BindService(QuestionService.QuestionServiceBase)

public static ServerServiceDefinition BindService(QuestionService.QuestionServiceBase serviceImpl)

Creates service definition that can be registered with a server

Parameter
NameDescription
serviceImplQuestionService.QuestionServiceBase

An object implementing the server-side handling logic.

Returns
TypeDescription
ServerServiceDefinition

BindService(ServiceBinderBase, QuestionService.QuestionServiceBase)

public static void BindService(ServiceBinderBase serviceBinder, QuestionService.QuestionServiceBase serviceImpl)

Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. Note: this method is part of an experimental API that can change or be removed without any prior notice.

Parameters
NameDescription
serviceBinderServiceBinderBase

Service methods will be bound by calling AddMethod on this object.

serviceImplQuestionService.QuestionServiceBase

An object implementing the server-side handling logic.