Conversations

google.cloud.dialogflow.v2beta1. 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.

batchCreateMessages(request, callback) → {undefined}

Calls BatchCreateMessages.

Parameters:
Name Type Description
request google.cloud.dialogflow.v2beta1.IBatchCreateMessagesRequest

BatchCreateMessagesRequest message or plain object

callback google.cloud.dialogflow.v2beta1.Conversations.BatchCreateMessagesCallback

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

Returns:
Type Description
undefined

batchCreateMessages(request) → {Promise.<google.cloud.dialogflow.v2beta1.BatchCreateMessagesResponse>}

Calls BatchCreateMessages.

Parameters:
Name Type Description
request google.cloud.dialogflow.v2beta1.IBatchCreateMessagesRequest

BatchCreateMessagesRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.dialogflow.v2beta1.BatchCreateMessagesResponse>

Promise

completeConversation(request, callback) → {undefined}

Calls CompleteConversation.

Parameters:
Name Type 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

Returns:
Type Description
undefined

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

Calls CompleteConversation.

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

CompleteConversationRequest message or plain object

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

Promise

createConversation(request, callback) → {undefined}

Calls CreateConversation.

Parameters:
Name Type 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

Returns:
Type Description
undefined

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

Calls CreateConversation.

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

CreateConversationRequest message or plain object

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

Promise

getConversation(request, callback) → {undefined}

Calls GetConversation.

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

GetConversationRequest message or plain object

callback google.cloud.dialogflow.v2beta1.Conversations.GetConversationCallback

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

Returns:
Type Description
undefined

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

Calls GetConversation.

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

GetConversationRequest message or plain object

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

Promise

listConversations(request, callback) → {undefined}

Calls ListConversations.

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

ListConversationsRequest message or plain object

callback google.cloud.dialogflow.v2beta1.Conversations.ListConversationsCallback

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

Returns:
Type Description
undefined

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

Calls ListConversations.

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

ListConversationsRequest message or plain object

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

Promise

listMessages(request, callback) → {undefined}

Calls ListMessages.

Parameters:
Name Type 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

Returns:
Type Description
undefined

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

Calls ListMessages.

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

ListMessagesRequest message or plain object

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

Promise

Type Definitions

BatchCreateMessagesCallback(error, responseopt)

Callback as used by google.cloud.dialogflow.v2beta1.Conversations#batchCreateMessages.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.dialogflow.v2beta1.BatchCreateMessagesResponse <optional>

BatchCreateMessagesResponse

CompleteConversationCallback(error, responseopt)

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

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

Conversation

CreateConversationCallback(error, responseopt)

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

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

Conversation

GetConversationCallback(error, responseopt)

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

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

Conversation

ListConversationsCallback(error, responseopt)

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

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

ListConversationsResponse

ListMessagesCallback(error, responseopt)

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

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

ListMessagesResponse