Class protos.google.cloud.dialogflow.v2beta1.AnswerRecords

Represents an AnswerRecords

Inheritance

$protobuf.rpc.Service > protos.google.cloud.dialogflow.v2beta1.AnswerRecords

Package

@google-cloud/dialogflow

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new AnswerRecords 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): AnswerRecords;

Creates new AnswerRecords 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
AnswerRecords

RPC service. Useful where requests and/or responses are streamed.

getAnswerRecord(request, callback)

public getAnswerRecord(request: google.cloud.dialogflow.v2beta1.IGetAnswerRecordRequest, callback: google.cloud.dialogflow.v2beta1.AnswerRecords.GetAnswerRecordCallback): void;

Calls GetAnswerRecord.

Parameters
NameDescription
request google.cloud.dialogflow.v2beta1.IGetAnswerRecordRequest

GetAnswerRecordRequest message or plain object

callback google.cloud.dialogflow.v2beta1.AnswerRecords.GetAnswerRecordCallback

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

Returns
TypeDescription
void

getAnswerRecord(request)

public getAnswerRecord(request: google.cloud.dialogflow.v2beta1.IGetAnswerRecordRequest): Promise<google.cloud.dialogflow.v2beta1.AnswerRecord>;

Calls GetAnswerRecord.

Parameter
NameDescription
request google.cloud.dialogflow.v2beta1.IGetAnswerRecordRequest

GetAnswerRecordRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.dialogflow.v2beta1.AnswerRecord>

Promise

listAnswerRecords(request, callback)

public listAnswerRecords(request: google.cloud.dialogflow.v2beta1.IListAnswerRecordsRequest, callback: google.cloud.dialogflow.v2beta1.AnswerRecords.ListAnswerRecordsCallback): void;

Calls ListAnswerRecords.

Parameters
NameDescription
request google.cloud.dialogflow.v2beta1.IListAnswerRecordsRequest

ListAnswerRecordsRequest message or plain object

callback google.cloud.dialogflow.v2beta1.AnswerRecords.ListAnswerRecordsCallback

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

Returns
TypeDescription
void

listAnswerRecords(request)

public listAnswerRecords(request: google.cloud.dialogflow.v2beta1.IListAnswerRecordsRequest): Promise<google.cloud.dialogflow.v2beta1.ListAnswerRecordsResponse>;

Calls ListAnswerRecords.

Parameter
NameDescription
request google.cloud.dialogflow.v2beta1.IListAnswerRecordsRequest

ListAnswerRecordsRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.dialogflow.v2beta1.ListAnswerRecordsResponse>

Promise

updateAnswerRecord(request, callback)

public updateAnswerRecord(request: google.cloud.dialogflow.v2beta1.IUpdateAnswerRecordRequest, callback: google.cloud.dialogflow.v2beta1.AnswerRecords.UpdateAnswerRecordCallback): void;

Calls UpdateAnswerRecord.

Parameters
NameDescription
request IUpdateAnswerRecordRequest

UpdateAnswerRecordRequest message or plain object

callback google.cloud.dialogflow.v2beta1.AnswerRecords.UpdateAnswerRecordCallback

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

Returns
TypeDescription
void

updateAnswerRecord(request)

public updateAnswerRecord(request: google.cloud.dialogflow.v2beta1.IUpdateAnswerRecordRequest): Promise<google.cloud.dialogflow.v2beta1.AnswerRecord>;

Calls UpdateAnswerRecord.

Parameter
NameDescription
request IUpdateAnswerRecordRequest

UpdateAnswerRecordRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.dialogflow.v2beta1.AnswerRecord>

Promise