Represents an AnswerRecords
Inheritance
$protobuf.rpc.Service > protos.google.cloud.dialogflow.v2beta1.AnswerRecordsPackage
@google-cloud/dialogflowConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new AnswerRecords service.
Parameters | |
---|---|
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.
Parameters | |
---|---|
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request |
IGetAnswerRecordRequest
GetAnswerRecordRequest message or plain object |
callback |
GetAnswerRecordCallback
Node-style callback called with the error, if any, and AnswerRecord |
Returns | |
---|---|
Type | Description |
void |
getAnswerRecord(request)
public getAnswerRecord(request: google.cloud.dialogflow.v2beta1.IGetAnswerRecordRequest): Promise<google.cloud.dialogflow.v2beta1.AnswerRecord>;
Calls GetAnswerRecord.
Parameter | |
---|---|
Name | Description |
request |
IGetAnswerRecordRequest
GetAnswerRecordRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request |
IListAnswerRecordsRequest
ListAnswerRecordsRequest message or plain object |
callback |
ListAnswerRecordsCallback
Node-style callback called with the error, if any, and ListAnswerRecordsResponse |
Returns | |
---|---|
Type | Description |
void |
listAnswerRecords(request)
public listAnswerRecords(request: google.cloud.dialogflow.v2beta1.IListAnswerRecordsRequest): Promise<google.cloud.dialogflow.v2beta1.ListAnswerRecordsResponse>;
Calls ListAnswerRecords.
Parameter | |
---|---|
Name | Description |
request |
IListAnswerRecordsRequest
ListAnswerRecordsRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request |
IUpdateAnswerRecordRequest
UpdateAnswerRecordRequest message or plain object |
callback |
UpdateAnswerRecordCallback
Node-style callback called with the error, if any, and AnswerRecord |
Returns | |
---|---|
Type | Description |
void |
updateAnswerRecord(request)
public updateAnswerRecord(request: google.cloud.dialogflow.v2beta1.IUpdateAnswerRecordRequest): Promise<google.cloud.dialogflow.v2beta1.AnswerRecord>;
Calls UpdateAnswerRecord.
Parameter | |
---|---|
Name | Description |
request |
IUpdateAnswerRecordRequest
UpdateAnswerRecordRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.dialogflow.v2beta1.AnswerRecord> |
Promise |