Constructor
new QuestionService(rpcImpl, requestDelimitedopt, responseDelimitedopt)
Constructs a new QuestionService service.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
rpcImpl |
$protobuf.RPCImpl |
RPC implementation |
||
requestDelimited |
boolean |
<optional> |
false |
Whether requests are length-delimited |
responseDelimited |
boolean |
<optional> |
false |
Whether responses are length-delimited |
Extends
- $protobuf.rpc.Service
Methods
createQuestion(request, callback) → {undefined}
Calls CreateQuestion.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dataqna.v1alpha.ICreateQuestionRequest |
CreateQuestionRequest message or plain object |
callback |
google.cloud.dataqna.v1alpha.QuestionService.CreateQuestionCallback |
Node-style callback called with the error, if any, and Question |
Returns:
Type | Description |
---|---|
undefined |
createQuestion(request) → {Promise.<google.cloud.dataqna.v1alpha.Question>}
Calls CreateQuestion.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dataqna.v1alpha.ICreateQuestionRequest |
CreateQuestionRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.dataqna.v1alpha.Question> |
Promise |
executeQuestion(request, callback) → {undefined}
Calls ExecuteQuestion.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dataqna.v1alpha.IExecuteQuestionRequest |
ExecuteQuestionRequest message or plain object |
callback |
google.cloud.dataqna.v1alpha.QuestionService.ExecuteQuestionCallback |
Node-style callback called with the error, if any, and Question |
Returns:
Type | Description |
---|---|
undefined |
executeQuestion(request) → {Promise.<google.cloud.dataqna.v1alpha.Question>}
Calls ExecuteQuestion.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dataqna.v1alpha.IExecuteQuestionRequest |
ExecuteQuestionRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.dataqna.v1alpha.Question> |
Promise |
getQuestion(request, callback) → {undefined}
Calls GetQuestion.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dataqna.v1alpha.IGetQuestionRequest |
GetQuestionRequest message or plain object |
callback |
google.cloud.dataqna.v1alpha.QuestionService.GetQuestionCallback |
Node-style callback called with the error, if any, and Question |
Returns:
Type | Description |
---|---|
undefined |
getQuestion(request) → {Promise.<google.cloud.dataqna.v1alpha.Question>}
Calls GetQuestion.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dataqna.v1alpha.IGetQuestionRequest |
GetQuestionRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.dataqna.v1alpha.Question> |
Promise |
getUserFeedback(request, callback) → {undefined}
Calls GetUserFeedback.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dataqna.v1alpha.IGetUserFeedbackRequest |
GetUserFeedbackRequest message or plain object |
callback |
google.cloud.dataqna.v1alpha.QuestionService.GetUserFeedbackCallback |
Node-style callback called with the error, if any, and UserFeedback |
Returns:
Type | Description |
---|---|
undefined |
getUserFeedback(request) → {Promise.<google.cloud.dataqna.v1alpha.UserFeedback>}
Calls GetUserFeedback.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dataqna.v1alpha.IGetUserFeedbackRequest |
GetUserFeedbackRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.dataqna.v1alpha.UserFeedback> |
Promise |
updateUserFeedback(request, callback) → {undefined}
Calls UpdateUserFeedback.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dataqna.v1alpha.IUpdateUserFeedbackRequest |
UpdateUserFeedbackRequest message or plain object |
callback |
google.cloud.dataqna.v1alpha.QuestionService.UpdateUserFeedbackCallback |
Node-style callback called with the error, if any, and UserFeedback |
Returns:
Type | Description |
---|---|
undefined |
updateUserFeedback(request) → {Promise.<google.cloud.dataqna.v1alpha.UserFeedback>}
Calls UpdateUserFeedback.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dataqna.v1alpha.IUpdateUserFeedbackRequest |
UpdateUserFeedbackRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.dataqna.v1alpha.UserFeedback> |
Promise |
(static) create(rpcImpl, requestDelimitedopt, responseDelimitedopt) → {QuestionService}
Creates new QuestionService service using the specified rpc implementation.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
rpcImpl |
$protobuf.RPCImpl |
RPC implementation |
||
requestDelimited |
boolean |
<optional> |
false |
Whether requests are length-delimited |
responseDelimited |
boolean |
<optional> |
false |
Whether responses are length-delimited |
Returns:
Type | Description |
---|---|
QuestionService |
RPC service. Useful where requests and/or responses are streamed. |
Type Definitions
CreateQuestionCallback(error, responseopt)
Callback as used by createQuestion.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.dataqna.v1alpha.Question |
<optional> |
Question |
ExecuteQuestionCallback(error, responseopt)
Callback as used by executeQuestion.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.dataqna.v1alpha.Question |
<optional> |
Question |
GetQuestionCallback(error, responseopt)
Callback as used by getQuestion.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.dataqna.v1alpha.Question |
<optional> |
Question |
GetUserFeedbackCallback(error, responseopt)
Callback as used by getUserFeedback.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.dataqna.v1alpha.UserFeedback |
<optional> |
UserFeedback |
UpdateUserFeedbackCallback(error, responseopt)
Callback as used by updateUserFeedback.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.dataqna.v1alpha.UserFeedback |
<optional> |
UserFeedback |