Class protos.google.cloud.dialogflow.v2.Conversations

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
NameDescription
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
NameDescription
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
TypeDescription
void

completeConversation(request)

public completeConversation(request: google.cloud.dialogflow.v2.ICompleteConversationRequest): Promise<google.cloud.dialogflow.v2.Conversation>;

Calls CompleteConversation.

Parameter
NameDescription
request google.cloud.dialogflow.v2.ICompleteConversationRequest

CompleteConversationRequest message or plain object

Returns
TypeDescription
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
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
TypeDescription
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
NameDescription
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
TypeDescription
void

createConversation(request)

public createConversation(request: google.cloud.dialogflow.v2.ICreateConversationRequest): Promise<google.cloud.dialogflow.v2.Conversation>;

Calls CreateConversation.

Parameter
NameDescription
request google.cloud.dialogflow.v2.ICreateConversationRequest

CreateConversationRequest message or plain object

Returns
TypeDescription
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
NameDescription
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
TypeDescription
void

getConversation(request)

public getConversation(request: google.cloud.dialogflow.v2.IGetConversationRequest): Promise<google.cloud.dialogflow.v2.Conversation>;

Calls GetConversation.

Parameter
NameDescription
request google.cloud.dialogflow.v2.IGetConversationRequest

GetConversationRequest message or plain object

Returns
TypeDescription
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
NameDescription
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
TypeDescription
void

listConversations(request)

public listConversations(request: google.cloud.dialogflow.v2.IListConversationsRequest): Promise<google.cloud.dialogflow.v2.ListConversationsResponse>;

Calls ListConversations.

Parameter
NameDescription
request IListConversationsRequest

ListConversationsRequest message or plain object

Returns
TypeDescription
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
NameDescription
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
TypeDescription
void

listMessages(request)

public listMessages(request: google.cloud.dialogflow.v2.IListMessagesRequest): Promise<google.cloud.dialogflow.v2.ListMessagesResponse>;

Calls ListMessages.

Parameter
NameDescription
request google.cloud.dialogflow.v2.IListMessagesRequest

ListMessagesRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.dialogflow.v2.ListMessagesResponse>

Promise