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
getAnswerRecord(request, callback) → {undefined}
Calls GetAnswerRecord.
Parameters:
Name | Type | Description |
---|---|---|
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:
Type | Description |
---|---|
undefined |
getAnswerRecord(request) → {Promise.<google.cloud.dialogflow.v2beta1.AnswerRecord>}
Calls GetAnswerRecord.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.v2beta1.IGetAnswerRecordRequest |
GetAnswerRecordRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.dialogflow.v2beta1.AnswerRecord> |
Promise |
listAnswerRecords(request, callback) → {undefined}
Calls ListAnswerRecords.
Parameters:
Name | Type | Description |
---|---|---|
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:
Type | Description |
---|---|
undefined |
listAnswerRecords(request) → {Promise.<google.cloud.dialogflow.v2beta1.ListAnswerRecordsResponse>}
Calls ListAnswerRecords.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.v2beta1.IListAnswerRecordsRequest |
ListAnswerRecordsRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.dialogflow.v2beta1.ListAnswerRecordsResponse> |
Promise |
updateAnswerRecord(request, callback) → {undefined}
Calls UpdateAnswerRecord.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.v2beta1.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:
Type | Description |
---|---|
undefined |
updateAnswerRecord(request) → {Promise.<google.cloud.dialogflow.v2beta1.AnswerRecord>}
Calls UpdateAnswerRecord.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.v2beta1.IUpdateAnswerRecordRequest |
UpdateAnswerRecordRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.dialogflow.v2beta1.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
GetAnswerRecordCallback(error, responseopt)
Callback as used by getAnswerRecord.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.dialogflow.v2beta1.AnswerRecord |
<optional> |
AnswerRecord |
ListAnswerRecordsCallback(error, responseopt)
Callback as used by listAnswerRecords.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.dialogflow.v2beta1.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.v2beta1.AnswerRecord |
<optional> |
AnswerRecord |