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

public static class QuestionService

Reference documentation and code samples for the Data QnA v1alpha API 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(QuestionServiceBase)

public static ServerServiceDefinition BindService(QuestionService.QuestionServiceBase serviceImpl)

Creates service definition that can be registered with a server

Parameter
NameDescription
serviceImplQuestionServiceQuestionServiceBase

An object implementing the server-side handling logic.

Returns
TypeDescription
ServerServiceDefinition

BindService(ServiceBinderBase, 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.

serviceImplQuestionServiceQuestionServiceBase

An object implementing the server-side handling logic.