Class protos.google.cloud.dataqna.v1alpha.QuestionService (3.1.0)

Represents a QuestionService

Inheritance

$protobuf.rpc.Service > protos.google.cloud.dataqna.v1alpha.QuestionService

Package

@google-cloud/data-qna

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);

Constructs a new QuestionService service.

Parameters
NameDescription
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
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
TypeDescription
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
NameDescription
request ICreateQuestionRequest

CreateQuestionRequest message or plain object

callback CreateQuestionCallback

Node-style callback called with the error, if any, and Question

Returns
TypeDescription
void

createQuestion(request)

public createQuestion(request: google.cloud.dataqna.v1alpha.ICreateQuestionRequest): Promise<google.cloud.dataqna.v1alpha.Question>;

Calls CreateQuestion.

Parameter
NameDescription
request ICreateQuestionRequest

CreateQuestionRequest message or plain object

Returns
TypeDescription
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
NameDescription
request IExecuteQuestionRequest

ExecuteQuestionRequest message or plain object

callback ExecuteQuestionCallback

Node-style callback called with the error, if any, and Question

Returns
TypeDescription
void

executeQuestion(request)

public executeQuestion(request: google.cloud.dataqna.v1alpha.IExecuteQuestionRequest): Promise<google.cloud.dataqna.v1alpha.Question>;

Calls ExecuteQuestion.

Parameter
NameDescription
request IExecuteQuestionRequest

ExecuteQuestionRequest message or plain object

Returns
TypeDescription
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
NameDescription
request IGetQuestionRequest

GetQuestionRequest message or plain object

callback GetQuestionCallback

Node-style callback called with the error, if any, and Question

Returns
TypeDescription
void

getQuestion(request)

public getQuestion(request: google.cloud.dataqna.v1alpha.IGetQuestionRequest): Promise<google.cloud.dataqna.v1alpha.Question>;

Calls GetQuestion.

Parameter
NameDescription
request IGetQuestionRequest

GetQuestionRequest message or plain object

Returns
TypeDescription
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
NameDescription
request IGetUserFeedbackRequest

GetUserFeedbackRequest message or plain object

callback GetUserFeedbackCallback

Node-style callback called with the error, if any, and UserFeedback

Returns
TypeDescription
void

getUserFeedback(request)

public getUserFeedback(request: google.cloud.dataqna.v1alpha.IGetUserFeedbackRequest): Promise<google.cloud.dataqna.v1alpha.UserFeedback>;

Calls GetUserFeedback.

Parameter
NameDescription
request IGetUserFeedbackRequest

GetUserFeedbackRequest message or plain object

Returns
TypeDescription
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
NameDescription
request IUpdateUserFeedbackRequest

UpdateUserFeedbackRequest message or plain object

callback UpdateUserFeedbackCallback

Node-style callback called with the error, if any, and UserFeedback

Returns
TypeDescription
void

updateUserFeedback(request)

public updateUserFeedback(request: google.cloud.dataqna.v1alpha.IUpdateUserFeedbackRequest): Promise<google.cloud.dataqna.v1alpha.UserFeedback>;

Calls UpdateUserFeedback.

Parameter
NameDescription
request IUpdateUserFeedbackRequest

UpdateUserFeedbackRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.dataqna.v1alpha.UserFeedback>

Promise