Class protos.google.cloud.dialogflow.v2.AnswerRecords (4.6.0)

Represents an AnswerRecords

Inheritance

$protobuf.rpc.Service > protos.google.cloud.dialogflow.v2.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.

listAnswerRecords(request, callback)

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

Calls ListAnswerRecords.

Parameters
NameDescription
request IListAnswerRecordsRequest

ListAnswerRecordsRequest message or plain object

callback google.cloud.dialogflow.v2.AnswerRecords.ListAnswerRecordsCallback

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

Returns
TypeDescription
void

listAnswerRecords(request)

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

Calls ListAnswerRecords.

Parameter
NameDescription
request IListAnswerRecordsRequest

ListAnswerRecordsRequest message or plain object

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

Promise

updateAnswerRecord(request, callback)

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

Calls UpdateAnswerRecord.

Parameters
NameDescription
request google.cloud.dialogflow.v2.IUpdateAnswerRecordRequest

UpdateAnswerRecordRequest message or plain object

callback google.cloud.dialogflow.v2.AnswerRecords.UpdateAnswerRecordCallback

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

Returns
TypeDescription
void

updateAnswerRecord(request)

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

Calls UpdateAnswerRecord.

Parameter
NameDescription
request google.cloud.dialogflow.v2.IUpdateAnswerRecordRequest

UpdateAnswerRecordRequest message or plain object

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

Promise