AnswerRecords

google.cloud.dialogflow.v2. AnswerRecords

Represents an AnswerRecords

Constructor

new AnswerRecords(rpcImpl, requestDelimitedopt, responseDelimitedopt)

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

listAnswerRecords(request, callback) → {undefined}

Calls ListAnswerRecords.

Parameters:
Name Type Description
request google.cloud.dialogflow.v2.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:
Type Description
undefined

listAnswerRecords(request) → {Promise.<google.cloud.dialogflow.v2.ListAnswerRecordsResponse>}

Calls ListAnswerRecords.

Parameters:
Name Type Description
request google.cloud.dialogflow.v2.IListAnswerRecordsRequest

ListAnswerRecordsRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.dialogflow.v2.ListAnswerRecordsResponse>

Promise

updateAnswerRecord(request, callback) → {undefined}

Calls UpdateAnswerRecord.

Parameters:
Name Type Description
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:
Type Description
undefined

updateAnswerRecord(request) → {Promise.<google.cloud.dialogflow.v2.AnswerRecord>}

Calls UpdateAnswerRecord.

Parameters:
Name Type Description
request google.cloud.dialogflow.v2.IUpdateAnswerRecordRequest

UpdateAnswerRecordRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.dialogflow.v2.AnswerRecord>

Promise

(static) create(rpcImpl, requestDelimitedopt, responseDelimitedopt) → {AnswerRecords}

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

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

Type Definitions

ListAnswerRecordsCallback(error, responseopt)

Callback as used by listAnswerRecords.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.dialogflow.v2.ListAnswerRecordsResponse <optional>

ListAnswerRecordsResponse

UpdateAnswerRecordCallback(error, responseopt)

Callback as used by updateAnswerRecord.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.dialogflow.v2.AnswerRecord <optional>

AnswerRecord