Represents a ConversationalSearchService
Inheritance
$protobuf.rpc.Service > protos.google.cloud.discoveryengine.v1alpha.ConversationalSearchServicePackage
@google-cloud/discoveryengineConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new ConversationalSearchService service.
Parameters | |
---|---|
Name | Description |
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.v1alpha.IConverseConversationRequest, callback: google.cloud.discoveryengine.v1alpha.ConversationalSearchService.ConverseConversationCallback): void;
Calls ConverseConversation.
Parameters | |
---|---|
Name | Description |
request |
IConverseConversationRequest
ConverseConversationRequest message or plain object |
callback |
ConverseConversationCallback
Node-style callback called with the error, if any, and ConverseConversationResponse |
Returns | |
---|---|
Type | Description |
void |
converseConversation(request)
public converseConversation(request: google.cloud.discoveryengine.v1alpha.IConverseConversationRequest): Promise<google.cloud.discoveryengine.v1alpha.ConverseConversationResponse>;
Calls ConverseConversation.
Parameter | |
---|---|
Name | Description |
request |
IConverseConversationRequest
ConverseConversationRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.discoveryengine.v1alpha.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 | |
---|---|
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Returns | |
---|---|
Type | Description |
ConversationalSearchService | RPC service. Useful where requests and/or responses are streamed. |
createConversation(request, callback)
public createConversation(request: google.cloud.discoveryengine.v1alpha.ICreateConversationRequest, callback: google.cloud.discoveryengine.v1alpha.ConversationalSearchService.CreateConversationCallback): void;
Calls CreateConversation.
Parameters | |
---|---|
Name | Description |
request |
ICreateConversationRequest
CreateConversationRequest message or plain object |
callback |
CreateConversationCallback
Node-style callback called with the error, if any, and Conversation |
Returns | |
---|---|
Type | Description |
void |
createConversation(request)
public createConversation(request: google.cloud.discoveryengine.v1alpha.ICreateConversationRequest): Promise<google.cloud.discoveryengine.v1alpha.Conversation>;
Calls CreateConversation.
Parameter | |
---|---|
Name | Description |
request |
ICreateConversationRequest
CreateConversationRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.discoveryengine.v1alpha.Conversation> | Promise |
deleteConversation(request, callback)
public deleteConversation(request: google.cloud.discoveryengine.v1alpha.IDeleteConversationRequest, callback: google.cloud.discoveryengine.v1alpha.ConversationalSearchService.DeleteConversationCallback): void;
Calls DeleteConversation.
Parameters | |
---|---|
Name | Description |
request |
IDeleteConversationRequest
DeleteConversationRequest message or plain object |
callback |
DeleteConversationCallback
Node-style callback called with the error, if any, and Empty |
Returns | |
---|---|
Type | Description |
void |
deleteConversation(request)
public deleteConversation(request: google.cloud.discoveryengine.v1alpha.IDeleteConversationRequest): Promise<google.protobuf.Empty>;
Calls DeleteConversation.
Parameter | |
---|---|
Name | Description |
request |
IDeleteConversationRequest
DeleteConversationRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.protobuf.Empty> | Promise |
getConversation(request, callback)
public getConversation(request: google.cloud.discoveryengine.v1alpha.IGetConversationRequest, callback: google.cloud.discoveryengine.v1alpha.ConversationalSearchService.GetConversationCallback): void;
Calls GetConversation.
Parameters | |
---|---|
Name | Description |
request |
IGetConversationRequest
GetConversationRequest message or plain object |
callback |
GetConversationCallback
Node-style callback called with the error, if any, and Conversation |
Returns | |
---|---|
Type | Description |
void |
getConversation(request)
public getConversation(request: google.cloud.discoveryengine.v1alpha.IGetConversationRequest): Promise<google.cloud.discoveryengine.v1alpha.Conversation>;
Calls GetConversation.
Parameter | |
---|---|
Name | Description |
request |
IGetConversationRequest
GetConversationRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.discoveryengine.v1alpha.Conversation> | Promise |
listConversations(request, callback)
public listConversations(request: google.cloud.discoveryengine.v1alpha.IListConversationsRequest, callback: google.cloud.discoveryengine.v1alpha.ConversationalSearchService.ListConversationsCallback): void;
Calls ListConversations.
Parameters | |
---|---|
Name | Description |
request |
IListConversationsRequest
ListConversationsRequest message or plain object |
callback |
ListConversationsCallback
Node-style callback called with the error, if any, and ListConversationsResponse |
Returns | |
---|---|
Type | Description |
void |
listConversations(request)
public listConversations(request: google.cloud.discoveryengine.v1alpha.IListConversationsRequest): Promise<google.cloud.discoveryengine.v1alpha.ListConversationsResponse>;
Calls ListConversations.
Parameter | |
---|---|
Name | Description |
request |
IListConversationsRequest
ListConversationsRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.discoveryengine.v1alpha.ListConversationsResponse> | Promise |
updateConversation(request, callback)
public updateConversation(request: google.cloud.discoveryengine.v1alpha.IUpdateConversationRequest, callback: google.cloud.discoveryengine.v1alpha.ConversationalSearchService.UpdateConversationCallback): void;
Calls UpdateConversation.
Parameters | |
---|---|
Name | Description |
request |
IUpdateConversationRequest
UpdateConversationRequest message or plain object |
callback |
UpdateConversationCallback
Node-style callback called with the error, if any, and Conversation |
Returns | |
---|---|
Type | Description |
void |
updateConversation(request)
public updateConversation(request: google.cloud.discoveryengine.v1alpha.IUpdateConversationRequest): Promise<google.cloud.discoveryengine.v1alpha.Conversation>;
Calls UpdateConversation.
Parameter | |
---|---|
Name | Description |
request |
IUpdateConversationRequest
UpdateConversationRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.discoveryengine.v1alpha.Conversation> | Promise |