Represents a CompletionService
Inheritance
$protobuf.rpc.Service > protos.google.cloud.discoveryengine.v1alpha.CompletionServicePackage
@google-cloud/discoveryengineConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new CompletionService service.
Parameters | |
---|---|
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Methods
completeQuery(request, callback)
public completeQuery(request: google.cloud.discoveryengine.v1alpha.ICompleteQueryRequest, callback: google.cloud.discoveryengine.v1alpha.CompletionService.CompleteQueryCallback): void;
Calls CompleteQuery.
Parameters | |
---|---|
Name | Description |
request |
ICompleteQueryRequest
CompleteQueryRequest message or plain object |
callback |
CompleteQueryCallback
Node-style callback called with the error, if any, and CompleteQueryResponse |
Returns | |
---|---|
Type | Description |
void |
completeQuery(request)
public completeQuery(request: google.cloud.discoveryengine.v1alpha.ICompleteQueryRequest): Promise<google.cloud.discoveryengine.v1alpha.CompleteQueryResponse>;
Calls CompleteQuery.
Parameter | |
---|---|
Name | Description |
request |
ICompleteQueryRequest
CompleteQueryRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.discoveryengine.v1alpha.CompleteQueryResponse> | Promise |
create(rpcImpl, requestDelimited, responseDelimited)
public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): CompletionService;
Creates new CompletionService 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 |
CompletionService | RPC service. Useful where requests and/or responses are streamed. |
importSuggestionDenyListEntries(request, callback)
public importSuggestionDenyListEntries(request: google.cloud.discoveryengine.v1alpha.IImportSuggestionDenyListEntriesRequest, callback: google.cloud.discoveryengine.v1alpha.CompletionService.ImportSuggestionDenyListEntriesCallback): void;
Calls ImportSuggestionDenyListEntries.
Parameters | |
---|---|
Name | Description |
request |
IImportSuggestionDenyListEntriesRequest
ImportSuggestionDenyListEntriesRequest message or plain object |
callback |
ImportSuggestionDenyListEntriesCallback
Node-style callback called with the error, if any, and Operation |
Returns | |
---|---|
Type | Description |
void |
importSuggestionDenyListEntries(request)
public importSuggestionDenyListEntries(request: google.cloud.discoveryengine.v1alpha.IImportSuggestionDenyListEntriesRequest): Promise<google.longrunning.Operation>;
Calls ImportSuggestionDenyListEntries.
Parameter | |
---|---|
Name | Description |
request |
IImportSuggestionDenyListEntriesRequest
ImportSuggestionDenyListEntriesRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.longrunning.Operation> | Promise |
purgeSuggestionDenyListEntries(request, callback)
public purgeSuggestionDenyListEntries(request: google.cloud.discoveryengine.v1alpha.IPurgeSuggestionDenyListEntriesRequest, callback: google.cloud.discoveryengine.v1alpha.CompletionService.PurgeSuggestionDenyListEntriesCallback): void;
Calls PurgeSuggestionDenyListEntries.
Parameters | |
---|---|
Name | Description |
request |
IPurgeSuggestionDenyListEntriesRequest
PurgeSuggestionDenyListEntriesRequest message or plain object |
callback |
PurgeSuggestionDenyListEntriesCallback
Node-style callback called with the error, if any, and Operation |
Returns | |
---|---|
Type | Description |
void |
purgeSuggestionDenyListEntries(request)
public purgeSuggestionDenyListEntries(request: google.cloud.discoveryengine.v1alpha.IPurgeSuggestionDenyListEntriesRequest): Promise<google.longrunning.Operation>;
Calls PurgeSuggestionDenyListEntries.
Parameter | |
---|---|
Name | Description |
request |
IPurgeSuggestionDenyListEntriesRequest
PurgeSuggestionDenyListEntriesRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.longrunning.Operation> | Promise |