Conversations

google.cloud.dialogflow.v2. Conversations

Represents a Conversations

Constructor

new Conversations(rpcImpl, requestDelimitedopt, responseDelimitedopt)

Constructs a new Conversations service.

Parameters:
Name Type Attributes Default Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean <optional>
false

Whether requests are length-delimited

responseDelimited boolean <optional>
false

Whether responses are length-delimited

Extends

  • $protobuf.rpc.Service

Methods

(static) create(rpcImpl, requestDelimitedopt, responseDelimitedopt) → {Conversations}

Creates new Conversations service using the specified rpc implementation.

Parameters:
Name Type Attributes Default Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean <optional>
false

Whether requests are length-delimited

responseDelimited boolean <optional>
false

Whether responses are length-delimited

Returns:
Type Description
Conversations

RPC service. Useful where requests and/or responses are streamed.

completeConversation(request, callback) → {undefined}

Calls CompleteConversation.

Parameters:
Name Type Description
request google.cloud.dialogflow.v2.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
undefined

completeConversation(request) → {Promise.<google.cloud.dialogflow.v2.Conversation>}

Calls CompleteConversation.

Parameters:
Name Type Description
request google.cloud.dialogflow.v2.ICompleteConversationRequest

CompleteConversationRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.dialogflow.v2.Conversation>

Promise

createConversation(request, callback) → {undefined}

Calls CreateConversation.

Parameters:
Name Type Description
request google.cloud.dialogflow.v2.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
undefined

createConversation(request) → {Promise.<google.cloud.dialogflow.v2.Conversation>}

Calls CreateConversation.

Parameters:
Name Type Description
request google.cloud.dialogflow.v2.ICreateConversationRequest

CreateConversationRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.dialogflow.v2.Conversation>

Promise

getConversation(request, callback) → {undefined}

Calls GetConversation.

Parameters:
Name Type Description
request google.cloud.dialogflow.v2.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
undefined

getConversation(request) → {Promise.<google.cloud.dialogflow.v2.Conversation>}

Calls GetConversation.

Parameters:
Name Type Description
request google.cloud.dialogflow.v2.IGetConversationRequest

GetConversationRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.dialogflow.v2.Conversation>

Promise

listConversations(request, callback) → {undefined}

Calls ListConversations.

Parameters:
Name Type Description
request google.cloud.dialogflow.v2.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
undefined

listConversations(request) → {Promise.<google.cloud.dialogflow.v2.ListConversationsResponse>}

Calls ListConversations.

Parameters:
Name Type Description
request google.cloud.dialogflow.v2.IListConversationsRequest

ListConversationsRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.dialogflow.v2.ListConversationsResponse>

Promise

listMessages(request, callback) → {undefined}

Calls ListMessages.

Parameters:
Name Type Description
request google.cloud.dialogflow.v2.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
undefined

listMessages(request) → {Promise.<google.cloud.dialogflow.v2.ListMessagesResponse>}

Calls ListMessages.

Parameters:
Name Type Description
request google.cloud.dialogflow.v2.IListMessagesRequest

ListMessagesRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.dialogflow.v2.ListMessagesResponse>

Promise

Type Definitions

CompleteConversationCallback(error, responseopt)

Callback as used by google.cloud.dialogflow.v2.Conversations#completeConversation.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.dialogflow.v2.Conversation <optional>

Conversation

CreateConversationCallback(error, responseopt)

Callback as used by google.cloud.dialogflow.v2.Conversations#createConversation.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.dialogflow.v2.Conversation <optional>

Conversation

GetConversationCallback(error, responseopt)

Callback as used by google.cloud.dialogflow.v2.Conversations#getConversation.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.dialogflow.v2.Conversation <optional>

Conversation

ListConversationsCallback(error, responseopt)

Callback as used by google.cloud.dialogflow.v2.Conversations#listConversations.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.dialogflow.v2.ListConversationsResponse <optional>

ListConversationsResponse

ListMessagesCallback(error, responseopt)

Callback as used by google.cloud.dialogflow.v2.Conversations#listMessages.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.dialogflow.v2.ListMessagesResponse <optional>

ListMessagesResponse