ConversationHistory

google.cloud.dialogflow.cx.v3beta1. ConversationHistory

Represents a ConversationHistory

Constructor

new ConversationHistory(rpcImpl, requestDelimitedopt, responseDelimitedopt)

Constructs a new ConversationHistory 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

deleteConversation(request, callback) → {undefined}

Calls DeleteConversation.

Parameters:
Name Type Description
request google.cloud.dialogflow.cx.v3beta1.IDeleteConversationRequest

DeleteConversationRequest message or plain object

callback google.cloud.dialogflow.cx.v3beta1.ConversationHistory.DeleteConversationCallback

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

Returns:
Type Description
undefined

deleteConversation(request) → {Promise.<google.protobuf.Empty>}

Calls DeleteConversation.

Parameters:
Name Type Description
request google.cloud.dialogflow.cx.v3beta1.IDeleteConversationRequest

DeleteConversationRequest message or plain object

Returns:
Type Description
Promise.<google.protobuf.Empty>

Promise

getConversation(request, callback) → {undefined}

Calls GetConversation.

Parameters:
Name Type Description
request google.cloud.dialogflow.cx.v3beta1.IGetConversationRequest

GetConversationRequest message or plain object

callback google.cloud.dialogflow.cx.v3beta1.ConversationHistory.GetConversationCallback

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

Returns:
Type Description
undefined

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

Calls GetConversation.

Parameters:
Name Type Description
request google.cloud.dialogflow.cx.v3beta1.IGetConversationRequest

GetConversationRequest message or plain object

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

Promise

listConversations(request, callback) → {undefined}

Calls ListConversations.

Parameters:
Name Type Description
request google.cloud.dialogflow.cx.v3beta1.IListConversationsRequest

ListConversationsRequest message or plain object

callback google.cloud.dialogflow.cx.v3beta1.ConversationHistory.ListConversationsCallback

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

Returns:
Type Description
undefined

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

Calls ListConversations.

Parameters:
Name Type Description
request google.cloud.dialogflow.cx.v3beta1.IListConversationsRequest

ListConversationsRequest message or plain object

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

Promise

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

Creates new ConversationHistory 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
ConversationHistory

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

Type Definitions

DeleteConversationCallback(error, responseopt)

Callback as used by deleteConversation.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.protobuf.Empty <optional>

Empty

GetConversationCallback(error, responseopt)

Callback as used by getConversation.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.dialogflow.cx.v3beta1.Conversation <optional>

Conversation

ListConversationsCallback(error, responseopt)

Callback as used by listConversations.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.dialogflow.cx.v3beta1.ListConversationsResponse <optional>

ListConversationsResponse