Represents a SearchService
Inheritance
$protobuf.rpc.Service > protos.google.cloud.discoveryengine.v1beta.SearchServicePackage
@google-cloud/discoveryengineConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new SearchService service.
Parameters | |
---|---|
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Methods
create(rpcImpl, requestDelimited, responseDelimited)
public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): SearchService;
Creates new SearchService 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 |
SearchService | RPC service. Useful where requests and/or responses are streamed. |
search(request, callback)
public search(request: google.cloud.discoveryengine.v1beta.ISearchRequest, callback: google.cloud.discoveryengine.v1beta.SearchService.SearchCallback): void;
Calls Search.
Parameters | |
---|---|
Name | Description |
request |
ISearchRequest
SearchRequest message or plain object |
callback |
SearchCallback
Node-style callback called with the error, if any, and SearchResponse |
Returns | |
---|---|
Type | Description |
void |
search(request)
public search(request: google.cloud.discoveryengine.v1beta.ISearchRequest): Promise<google.cloud.discoveryengine.v1beta.SearchResponse>;
Calls Search.
Parameter | |
---|---|
Name | Description |
request |
ISearchRequest
SearchRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.discoveryengine.v1beta.SearchResponse> | Promise |