Represents an AnswerRecords
Inheritance
$protobuf.rpc.Service > protos.google.cloud.dialogflow.v2.AnswerRecordsPackage
@google-cloud/dialogflowConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new AnswerRecords service.
Name | Description |
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.
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Type | Description |
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.
Name | Description |
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 |
Type | Description |
void |
listAnswerRecords(request)
public listAnswerRecords(request: google.cloud.dialogflow.v2.IListAnswerRecordsRequest): Promise<google.cloud.dialogflow.v2.ListAnswerRecordsResponse>;
Calls ListAnswerRecords.
Name | Description |
request |
IListAnswerRecordsRequest
ListAnswerRecordsRequest message or plain object |
Type | Description |
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.
Name | 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 |
Type | Description |
void |
updateAnswerRecord(request)
public updateAnswerRecord(request: google.cloud.dialogflow.v2.IUpdateAnswerRecordRequest): Promise<google.cloud.dialogflow.v2.AnswerRecord>;
Calls UpdateAnswerRecord.
Name | Description |
request |
google.cloud.dialogflow.v2.IUpdateAnswerRecordRequest
UpdateAnswerRecordRequest message or plain object |
Type | Description |
Promise<google.cloud.dialogflow.v2.AnswerRecord> | Promise |