Class protos.google.cloud.retail.v2alpha.SearchService (2.3.1)

Represents a SearchService

Inheritance

$protobuf.rpc.Service > protos.google.cloud.retail.v2alpha.SearchService

Package

@google-cloud/retail

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new SearchService service.

Parameters
NameDescription
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
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
TypeDescription
SearchService

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

search(request, callback)

public search(request: google.cloud.retail.v2alpha.ISearchRequest, callback: google.cloud.retail.v2alpha.SearchService.SearchCallback): void;

Calls Search.

Parameters
NameDescription
request google.cloud.retail.v2alpha.ISearchRequest

SearchRequest message or plain object

callback google.cloud.retail.v2alpha.SearchService.SearchCallback

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

Returns
TypeDescription
void

search(request)

public search(request: google.cloud.retail.v2alpha.ISearchRequest): Promise<google.cloud.retail.v2alpha.SearchResponse>;

Calls Search.

Parameter
NameDescription
request google.cloud.retail.v2alpha.ISearchRequest

SearchRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.retail.v2alpha.SearchResponse>

Promise