Represents a Conversations
Inheritance
$protobuf.rpc.Service > protos.google.cloud.dialogflow.v2beta1.ConversationsPackage
@google-cloud/dialogflow!Constructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new Conversations service.
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Methods
batchCreateMessages(request, callback)
public batchCreateMessages(request: google.cloud.dialogflow.v2beta1.IBatchCreateMessagesRequest, callback: google.cloud.dialogflow.v2beta1.Conversations.BatchCreateMessagesCallback): void;
Calls BatchCreateMessages.
Name | Description |
request |
IBatchCreateMessagesRequest
BatchCreateMessagesRequest message or plain object |
callback |
google.cloud.dialogflow.v2beta1.Conversations.BatchCreateMessagesCallback
Node-style callback called with the error, if any, and BatchCreateMessagesResponse |
Type | Description |
void |
batchCreateMessages(request)
public batchCreateMessages(request: google.cloud.dialogflow.v2beta1.IBatchCreateMessagesRequest): Promise<google.cloud.dialogflow.v2beta1.BatchCreateMessagesResponse>;
Calls BatchCreateMessages.
Name | Description |
request |
IBatchCreateMessagesRequest
BatchCreateMessagesRequest message or plain object |
Type | Description |
Promise<google.cloud.dialogflow.v2beta1.BatchCreateMessagesResponse> | Promise |
completeConversation(request, callback)
public completeConversation(request: google.cloud.dialogflow.v2beta1.ICompleteConversationRequest, callback: google.cloud.dialogflow.v2beta1.Conversations.CompleteConversationCallback): void;
Calls CompleteConversation.
Name | Description |
request |
google.cloud.dialogflow.v2beta1.ICompleteConversationRequest
CompleteConversationRequest message or plain object |
callback |
google.cloud.dialogflow.v2beta1.Conversations.CompleteConversationCallback
Node-style callback called with the error, if any, and Conversation |
Type | Description |
void |
completeConversation(request)
public completeConversation(request: google.cloud.dialogflow.v2beta1.ICompleteConversationRequest): Promise<google.cloud.dialogflow.v2beta1.Conversation>;
Calls CompleteConversation.
Name | Description |
request |
google.cloud.dialogflow.v2beta1.ICompleteConversationRequest
CompleteConversationRequest message or plain object |
Type | Description |
Promise<google.cloud.dialogflow.v2beta1.Conversation> | Promise |
create(rpcImpl, requestDelimited, responseDelimited)
public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Conversations;
Creates new Conversations 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 |
Conversations | RPC service. Useful where requests and/or responses are streamed. |
createConversation(request, callback)
public createConversation(request: google.cloud.dialogflow.v2beta1.ICreateConversationRequest, callback: google.cloud.dialogflow.v2beta1.Conversations.CreateConversationCallback): void;
Calls CreateConversation.
Name | Description |
request |
google.cloud.dialogflow.v2beta1.ICreateConversationRequest
CreateConversationRequest message or plain object |
callback |
google.cloud.dialogflow.v2beta1.Conversations.CreateConversationCallback
Node-style callback called with the error, if any, and Conversation |
Type | Description |
void |
createConversation(request)
public createConversation(request: google.cloud.dialogflow.v2beta1.ICreateConversationRequest): Promise<google.cloud.dialogflow.v2beta1.Conversation>;
Calls CreateConversation.
Name | Description |
request |
google.cloud.dialogflow.v2beta1.ICreateConversationRequest
CreateConversationRequest message or plain object |
Type | Description |
Promise<google.cloud.dialogflow.v2beta1.Conversation> | Promise |
getConversation(request, callback)
public getConversation(request: google.cloud.dialogflow.v2beta1.IGetConversationRequest, callback: google.cloud.dialogflow.v2beta1.Conversations.GetConversationCallback): void;
Calls GetConversation.
Name | Description |
request |
IGetConversationRequest
GetConversationRequest message or plain object |
callback |
google.cloud.dialogflow.v2beta1.Conversations.GetConversationCallback
Node-style callback called with the error, if any, and Conversation |
Type | Description |
void |
getConversation(request)
public getConversation(request: google.cloud.dialogflow.v2beta1.IGetConversationRequest): Promise<google.cloud.dialogflow.v2beta1.Conversation>;
Calls GetConversation.
Name | Description |
request |
IGetConversationRequest
GetConversationRequest message or plain object |
Type | Description |
Promise<google.cloud.dialogflow.v2beta1.Conversation> | Promise |
listConversations(request, callback)
public listConversations(request: google.cloud.dialogflow.v2beta1.IListConversationsRequest, callback: google.cloud.dialogflow.v2beta1.Conversations.ListConversationsCallback): void;
Calls ListConversations.
Name | Description |
request |
IListConversationsRequest
ListConversationsRequest message or plain object |
callback |
google.cloud.dialogflow.v2beta1.Conversations.ListConversationsCallback
Node-style callback called with the error, if any, and ListConversationsResponse |
Type | Description |
void |
listConversations(request)
public listConversations(request: google.cloud.dialogflow.v2beta1.IListConversationsRequest): Promise<google.cloud.dialogflow.v2beta1.ListConversationsResponse>;
Calls ListConversations.
Name | Description |
request |
IListConversationsRequest
ListConversationsRequest message or plain object |
Type | Description |
Promise<google.cloud.dialogflow.v2beta1.ListConversationsResponse> | Promise |
listMessages(request, callback)
public listMessages(request: google.cloud.dialogflow.v2beta1.IListMessagesRequest, callback: google.cloud.dialogflow.v2beta1.Conversations.ListMessagesCallback): void;
Calls ListMessages.
Name | Description |
request |
google.cloud.dialogflow.v2beta1.IListMessagesRequest
ListMessagesRequest message or plain object |
callback |
google.cloud.dialogflow.v2beta1.Conversations.ListMessagesCallback
Node-style callback called with the error, if any, and ListMessagesResponse |
Type | Description |
void |
listMessages(request)
public listMessages(request: google.cloud.dialogflow.v2beta1.IListMessagesRequest): Promise<google.cloud.dialogflow.v2beta1.ListMessagesResponse>;
Calls ListMessages.
Name | Description |
request |
google.cloud.dialogflow.v2beta1.IListMessagesRequest
ListMessagesRequest message or plain object |
Type | Description |
Promise<google.cloud.dialogflow.v2beta1.ListMessagesResponse> | Promise |