Class protos.google.cloud.dialogflow.v2beta1.Conversations (4.4.0)

Represents a Conversations

Inheritance

$protobuf.rpc.Service > protos.google.cloud.dialogflow.v2beta1.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

batchCreateMessages(request, callback)

public batchCreateMessages(request: google.cloud.dialogflow.v2beta1.IBatchCreateMessagesRequest, callback: google.cloud.dialogflow.v2beta1.Conversations.BatchCreateMessagesCallback): void;

Calls BatchCreateMessages.

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

batchCreateMessages(request)

public batchCreateMessages(request: google.cloud.dialogflow.v2beta1.IBatchCreateMessagesRequest): Promise<google.cloud.dialogflow.v2beta1.BatchCreateMessagesResponse>;

Calls BatchCreateMessages.

Parameter
NameDescription
request IBatchCreateMessagesRequest

BatchCreateMessagesRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.dialogflow.v2beta1.BatchCreateMessagesResponse>

Promise

completeConversation(request, callback)

public completeConversation(request: google.cloud.dialogflow.v2beta1.ICompleteConversationRequest, callback: google.cloud.dialogflow.v2beta1.Conversations.CompleteConversationCallback): void;

Calls CompleteConversation.

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

completeConversation(request)

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

Calls CompleteConversation.

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

CompleteConversationRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.dialogflow.v2beta1.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.v2beta1.ICreateConversationRequest, callback: google.cloud.dialogflow.v2beta1.Conversations.CreateConversationCallback): void;

Calls CreateConversation.

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

createConversation(request)

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

Calls CreateConversation.

Parameter
NameDescription
request ICreateConversationRequest

CreateConversationRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.dialogflow.v2beta1.Conversation>

Promise

getConversation(request, callback)

public getConversation(request: google.cloud.dialogflow.v2beta1.IGetConversationRequest, callback: google.cloud.dialogflow.v2beta1.Conversations.GetConversationCallback): void;

Calls GetConversation.

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

getConversation(request)

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

Calls GetConversation.

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

GetConversationRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.dialogflow.v2beta1.Conversation>

Promise

listConversations(request, callback)

public listConversations(request: google.cloud.dialogflow.v2beta1.IListConversationsRequest, callback: google.cloud.dialogflow.v2beta1.Conversations.ListConversationsCallback): void;

Calls ListConversations.

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

listConversations(request)

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

Calls ListConversations.

Parameter
NameDescription
request google.cloud.dialogflow.v2beta1.IListConversationsRequest

ListConversationsRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.dialogflow.v2beta1.ListConversationsResponse>

Promise

listMessages(request, callback)

public listMessages(request: google.cloud.dialogflow.v2beta1.IListMessagesRequest, callback: google.cloud.dialogflow.v2beta1.Conversations.ListMessagesCallback): void;

Calls ListMessages.

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

listMessages(request)

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

Calls ListMessages.

Parameter
NameDescription
request IListMessagesRequest

ListMessagesRequest message or plain object

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

Promise