Represents a QuestionService
Inheritance
$protobuf.rpc.Service > protos.google.cloud.dataqna.v1alpha.QuestionServicePackage
@google-cloud/data-qnaConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new QuestionService service.
Parameters | |
---|---|
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Methods
create(rpcImpl, requestDelimited, responseDelimited)
public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): QuestionService;
Creates new QuestionService service using the specified rpc implementation.
Parameters | |
---|---|
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Returns | |
---|---|
Type | Description |
QuestionService | RPC service. Useful where requests and/or responses are streamed. |
createQuestion(request, callback)
public createQuestion(request: google.cloud.dataqna.v1alpha.ICreateQuestionRequest, callback: google.cloud.dataqna.v1alpha.QuestionService.CreateQuestionCallback): void;
Calls CreateQuestion.
Parameters | |
---|---|
Name | Description |
request |
ICreateQuestionRequest
CreateQuestionRequest message or plain object |
callback |
CreateQuestionCallback
Node-style callback called with the error, if any, and Question |
Returns | |
---|---|
Type | Description |
void |
createQuestion(request)
public createQuestion(request: google.cloud.dataqna.v1alpha.ICreateQuestionRequest): Promise<google.cloud.dataqna.v1alpha.Question>;
Calls CreateQuestion.
Parameter | |
---|---|
Name | Description |
request |
ICreateQuestionRequest
CreateQuestionRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.dataqna.v1alpha.Question> | Promise |
executeQuestion(request, callback)
public executeQuestion(request: google.cloud.dataqna.v1alpha.IExecuteQuestionRequest, callback: google.cloud.dataqna.v1alpha.QuestionService.ExecuteQuestionCallback): void;
Calls ExecuteQuestion.
Parameters | |
---|---|
Name | Description |
request |
IExecuteQuestionRequest
ExecuteQuestionRequest message or plain object |
callback |
ExecuteQuestionCallback
Node-style callback called with the error, if any, and Question |
Returns | |
---|---|
Type | Description |
void |
executeQuestion(request)
public executeQuestion(request: google.cloud.dataqna.v1alpha.IExecuteQuestionRequest): Promise<google.cloud.dataqna.v1alpha.Question>;
Calls ExecuteQuestion.
Parameter | |
---|---|
Name | Description |
request |
IExecuteQuestionRequest
ExecuteQuestionRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.dataqna.v1alpha.Question> | Promise |
getQuestion(request, callback)
public getQuestion(request: google.cloud.dataqna.v1alpha.IGetQuestionRequest, callback: google.cloud.dataqna.v1alpha.QuestionService.GetQuestionCallback): void;
Calls GetQuestion.
Parameters | |
---|---|
Name | Description |
request |
IGetQuestionRequest
GetQuestionRequest message or plain object |
callback |
GetQuestionCallback
Node-style callback called with the error, if any, and Question |
Returns | |
---|---|
Type | Description |
void |
getQuestion(request)
public getQuestion(request: google.cloud.dataqna.v1alpha.IGetQuestionRequest): Promise<google.cloud.dataqna.v1alpha.Question>;
Calls GetQuestion.
Parameter | |
---|---|
Name | Description |
request |
IGetQuestionRequest
GetQuestionRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.dataqna.v1alpha.Question> | Promise |
getUserFeedback(request, callback)
public getUserFeedback(request: google.cloud.dataqna.v1alpha.IGetUserFeedbackRequest, callback: google.cloud.dataqna.v1alpha.QuestionService.GetUserFeedbackCallback): void;
Calls GetUserFeedback.
Parameters | |
---|---|
Name | Description |
request |
IGetUserFeedbackRequest
GetUserFeedbackRequest message or plain object |
callback |
GetUserFeedbackCallback
Node-style callback called with the error, if any, and UserFeedback |
Returns | |
---|---|
Type | Description |
void |
getUserFeedback(request)
public getUserFeedback(request: google.cloud.dataqna.v1alpha.IGetUserFeedbackRequest): Promise<google.cloud.dataqna.v1alpha.UserFeedback>;
Calls GetUserFeedback.
Parameter | |
---|---|
Name | Description |
request |
IGetUserFeedbackRequest
GetUserFeedbackRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.dataqna.v1alpha.UserFeedback> | Promise |
updateUserFeedback(request, callback)
public updateUserFeedback(request: google.cloud.dataqna.v1alpha.IUpdateUserFeedbackRequest, callback: google.cloud.dataqna.v1alpha.QuestionService.UpdateUserFeedbackCallback): void;
Calls UpdateUserFeedback.
Parameters | |
---|---|
Name | Description |
request |
IUpdateUserFeedbackRequest
UpdateUserFeedbackRequest message or plain object |
callback |
UpdateUserFeedbackCallback
Node-style callback called with the error, if any, and UserFeedback |
Returns | |
---|---|
Type | Description |
void |
updateUserFeedback(request)
public updateUserFeedback(request: google.cloud.dataqna.v1alpha.IUpdateUserFeedbackRequest): Promise<google.cloud.dataqna.v1alpha.UserFeedback>;
Calls UpdateUserFeedback.
Parameter | |
---|---|
Name | Description |
request |
IUpdateUserFeedbackRequest
UpdateUserFeedbackRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.dataqna.v1alpha.UserFeedback> | Promise |