Represents a ConversationHistory
Inheritance
$protobuf.rpc.Service > protos.google.cloud.dialogflow.cx.v3beta1.ConversationHistoryPackage
@google-cloud/dialogflow-cxConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);Constructs a new ConversationHistory 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): ConversationHistory;Creates new ConversationHistory 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 |
ConversationHistory |
RPC service. Useful where requests and/or responses are streamed. |
deleteConversation(request, callback)
public deleteConversation(request: google.cloud.dialogflow.cx.v3beta1.IDeleteConversationRequest, callback: google.cloud.dialogflow.cx.v3beta1.ConversationHistory.DeleteConversationCallback): void;Calls DeleteConversation.
| Parameters | |
|---|---|
| Name | Description |
request |
IDeleteConversationRequest
DeleteConversationRequest message or plain object |
callback |
DeleteConversationCallback
Node-style callback called with the error, if any, and Empty |
| Returns | |
|---|---|
| Type | Description |
void |
|
deleteConversation(request)
public deleteConversation(request: google.cloud.dialogflow.cx.v3beta1.IDeleteConversationRequest): Promise<google.protobuf.Empty>;Calls DeleteConversation.
| Parameter | |
|---|---|
| Name | Description |
request |
IDeleteConversationRequest
DeleteConversationRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.protobuf.Empty> |
Promise |
getConversation(request, callback)
public getConversation(request: google.cloud.dialogflow.cx.v3beta1.IGetConversationRequest, callback: google.cloud.dialogflow.cx.v3beta1.ConversationHistory.GetConversationCallback): void;Calls GetConversation.
| Parameters | |
|---|---|
| Name | Description |
request |
IGetConversationRequest
GetConversationRequest message or plain object |
callback |
GetConversationCallback
Node-style callback called with the error, if any, and Conversation |
| Returns | |
|---|---|
| Type | Description |
void |
|
getConversation(request)
public getConversation(request: google.cloud.dialogflow.cx.v3beta1.IGetConversationRequest): Promise<google.cloud.dialogflow.cx.v3beta1.Conversation>;Calls GetConversation.
| Parameter | |
|---|---|
| Name | Description |
request |
IGetConversationRequest
GetConversationRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.cloud.dialogflow.cx.v3beta1.Conversation> |
Promise |
listConversations(request, callback)
public listConversations(request: google.cloud.dialogflow.cx.v3beta1.IListConversationsRequest, callback: google.cloud.dialogflow.cx.v3beta1.ConversationHistory.ListConversationsCallback): void;Calls ListConversations.
| Parameters | |
|---|---|
| Name | Description |
request |
IListConversationsRequest
ListConversationsRequest message or plain object |
callback |
ListConversationsCallback
Node-style callback called with the error, if any, and ListConversationsResponse |
| Returns | |
|---|---|
| Type | Description |
void |
|
listConversations(request)
public listConversations(request: google.cloud.dialogflow.cx.v3beta1.IListConversationsRequest): Promise<google.cloud.dialogflow.cx.v3beta1.ListConversationsResponse>;Calls ListConversations.
| Parameter | |
|---|---|
| Name | Description |
request |
IListConversationsRequest
ListConversationsRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.cloud.dialogflow.cx.v3beta1.ListConversationsResponse> |
Promise |