Class protos.google.cloud.discoveryengine.v1beta.ConversationalSearchService (1.3.1)

Represents a ConversationalSearchService

Inheritance

$protobuf.rpc.Service > protos.google.cloud.discoveryengine.v1beta.ConversationalSearchService

Package

@google-cloud/discoveryengine

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);

Constructs a new ConversationalSearchService service.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Methods

converseConversation(request, callback)

public converseConversation(request: google.cloud.discoveryengine.v1beta.IConverseConversationRequest, callback: google.cloud.discoveryengine.v1beta.ConversationalSearchService.ConverseConversationCallback): void;

Calls ConverseConversation.

Parameters
NameDescription
request IConverseConversationRequest

ConverseConversationRequest message or plain object

callback ConverseConversationCallback

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

Returns
TypeDescription
void

converseConversation(request)

public converseConversation(request: google.cloud.discoveryengine.v1beta.IConverseConversationRequest): Promise<google.cloud.discoveryengine.v1beta.ConverseConversationResponse>;

Calls ConverseConversation.

Parameter
NameDescription
request IConverseConversationRequest

ConverseConversationRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.discoveryengine.v1beta.ConverseConversationResponse>

Promise

create(rpcImpl, requestDelimited, responseDelimited)

public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): ConversationalSearchService;

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

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

createConversation(request, callback)

public createConversation(request: google.cloud.discoveryengine.v1beta.ICreateConversationRequest, callback: google.cloud.discoveryengine.v1beta.ConversationalSearchService.CreateConversationCallback): void;

Calls CreateConversation.

Parameters
NameDescription
request ICreateConversationRequest

CreateConversationRequest message or plain object

callback CreateConversationCallback

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

Returns
TypeDescription
void

createConversation(request)

public createConversation(request: google.cloud.discoveryengine.v1beta.ICreateConversationRequest): Promise<google.cloud.discoveryengine.v1beta.Conversation>;

Calls CreateConversation.

Parameter
NameDescription
request ICreateConversationRequest

CreateConversationRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.discoveryengine.v1beta.Conversation>

Promise

deleteConversation(request, callback)

public deleteConversation(request: google.cloud.discoveryengine.v1beta.IDeleteConversationRequest, callback: google.cloud.discoveryengine.v1beta.ConversationalSearchService.DeleteConversationCallback): void;

Calls DeleteConversation.

Parameters
NameDescription
request IDeleteConversationRequest

DeleteConversationRequest message or plain object

callback DeleteConversationCallback

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

Returns
TypeDescription
void

deleteConversation(request)

public deleteConversation(request: google.cloud.discoveryengine.v1beta.IDeleteConversationRequest): Promise<google.protobuf.Empty>;

Calls DeleteConversation.

Parameter
NameDescription
request IDeleteConversationRequest

DeleteConversationRequest message or plain object

Returns
TypeDescription
Promise<google.protobuf.Empty>

Promise

getConversation(request, callback)

public getConversation(request: google.cloud.discoveryengine.v1beta.IGetConversationRequest, callback: google.cloud.discoveryengine.v1beta.ConversationalSearchService.GetConversationCallback): void;

Calls GetConversation.

Parameters
NameDescription
request IGetConversationRequest

GetConversationRequest message or plain object

callback GetConversationCallback

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

Returns
TypeDescription
void

getConversation(request)

public getConversation(request: google.cloud.discoveryengine.v1beta.IGetConversationRequest): Promise<google.cloud.discoveryengine.v1beta.Conversation>;

Calls GetConversation.

Parameter
NameDescription
request IGetConversationRequest

GetConversationRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.discoveryengine.v1beta.Conversation>

Promise

listConversations(request, callback)

public listConversations(request: google.cloud.discoveryengine.v1beta.IListConversationsRequest, callback: google.cloud.discoveryengine.v1beta.ConversationalSearchService.ListConversationsCallback): void;

Calls ListConversations.

Parameters
NameDescription
request IListConversationsRequest

ListConversationsRequest message or plain object

callback ListConversationsCallback

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

Returns
TypeDescription
void

listConversations(request)

public listConversations(request: google.cloud.discoveryengine.v1beta.IListConversationsRequest): Promise<google.cloud.discoveryengine.v1beta.ListConversationsResponse>;

Calls ListConversations.

Parameter
NameDescription
request IListConversationsRequest

ListConversationsRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.discoveryengine.v1beta.ListConversationsResponse>

Promise

updateConversation(request, callback)

public updateConversation(request: google.cloud.discoveryengine.v1beta.IUpdateConversationRequest, callback: google.cloud.discoveryengine.v1beta.ConversationalSearchService.UpdateConversationCallback): void;

Calls UpdateConversation.

Parameters
NameDescription
request IUpdateConversationRequest

UpdateConversationRequest message or plain object

callback UpdateConversationCallback

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

Returns
TypeDescription
void

updateConversation(request)

public updateConversation(request: google.cloud.discoveryengine.v1beta.IUpdateConversationRequest): Promise<google.cloud.discoveryengine.v1beta.Conversation>;

Calls UpdateConversation.

Parameter
NameDescription
request IUpdateConversationRequest

UpdateConversationRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.discoveryengine.v1beta.Conversation>

Promise