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