Class protos.google.cloud.dialogflow.v2.Conversations (6.12.0)

Represents a Conversations

Inheritance

$protobuf.rpc.Service > protos.google.cloud.dialogflow.v2.Conversations

Package

@google-cloud/dialogflow

Constructors

(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 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 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

generateStatelessSuggestion(request, callback)

public generateStatelessSuggestion(request: google.cloud.dialogflow.v2.IGenerateStatelessSuggestionRequest, callback: google.cloud.dialogflow.v2.Conversations.GenerateStatelessSuggestionCallback): void;

Calls GenerateStatelessSuggestion.

Parameters
Name Description
request IGenerateStatelessSuggestionRequest

GenerateStatelessSuggestionRequest message or plain object

callback GenerateStatelessSuggestionCallback

Node-style callback called with the error, if any, and GenerateStatelessSuggestionResponse

Returns
Type Description
void

generateStatelessSuggestion(request)

public generateStatelessSuggestion(request: google.cloud.dialogflow.v2.IGenerateStatelessSuggestionRequest): Promise<google.cloud.dialogflow.v2.GenerateStatelessSuggestionResponse>;

Calls GenerateStatelessSuggestion.

Parameter
Name Description
request IGenerateStatelessSuggestionRequest

GenerateStatelessSuggestionRequest message or plain object

Returns
Type Description
Promise<google.cloud.dialogflow.v2.GenerateStatelessSuggestionResponse>

Promise

generateStatelessSummary(request, callback)

public generateStatelessSummary(request: google.cloud.dialogflow.v2.IGenerateStatelessSummaryRequest, callback: google.cloud.dialogflow.v2.Conversations.GenerateStatelessSummaryCallback): void;

Calls GenerateStatelessSummary.

Parameters
Name Description
request IGenerateStatelessSummaryRequest

GenerateStatelessSummaryRequest message or plain object

callback GenerateStatelessSummaryCallback

Node-style callback called with the error, if any, and GenerateStatelessSummaryResponse

Returns
Type Description
void

generateStatelessSummary(request)

public generateStatelessSummary(request: google.cloud.dialogflow.v2.IGenerateStatelessSummaryRequest): Promise<google.cloud.dialogflow.v2.GenerateStatelessSummaryResponse>;

Calls GenerateStatelessSummary.

Parameter
Name Description
request IGenerateStatelessSummaryRequest

GenerateStatelessSummaryRequest message or plain object

Returns
Type Description
Promise<google.cloud.dialogflow.v2.GenerateStatelessSummaryResponse>

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 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 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 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

searchKnowledge(request, callback)

public searchKnowledge(request: google.cloud.dialogflow.v2.ISearchKnowledgeRequest, callback: google.cloud.dialogflow.v2.Conversations.SearchKnowledgeCallback): void;

Calls SearchKnowledge.

Parameters
Name Description
request ISearchKnowledgeRequest

SearchKnowledgeRequest message or plain object

callback SearchKnowledgeCallback

Node-style callback called with the error, if any, and SearchKnowledgeResponse

Returns
Type Description
void

searchKnowledge(request)

public searchKnowledge(request: google.cloud.dialogflow.v2.ISearchKnowledgeRequest): Promise<google.cloud.dialogflow.v2.SearchKnowledgeResponse>;

Calls SearchKnowledge.

Parameter
Name Description
request ISearchKnowledgeRequest

SearchKnowledgeRequest message or plain object

Returns
Type Description
Promise<google.cloud.dialogflow.v2.SearchKnowledgeResponse>

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 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