SearchService

google.cloud.retail.v2beta. SearchService

Represents a SearchService

Constructor

new SearchService(rpcImpl, requestDelimitedopt, responseDelimitedopt)

Constructs a new SearchService service.

Parameters:
Name Type Attributes Default Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean <optional>
false

Whether requests are length-delimited

responseDelimited boolean <optional>
false

Whether responses are length-delimited

Extends

  • $protobuf.rpc.Service

Methods

search(request, callback) → {undefined}

Calls Search.

Parameters:
Name Type Description
request google.cloud.retail.v2beta.ISearchRequest

SearchRequest message or plain object

callback google.cloud.retail.v2beta.SearchService.SearchCallback

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

Returns:
Type Description
undefined

search(request) → {Promise.<google.cloud.retail.v2beta.SearchResponse>}

Calls Search.

Parameters:
Name Type Description
request google.cloud.retail.v2beta.ISearchRequest

SearchRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.retail.v2beta.SearchResponse>

Promise

(static) create(rpcImpl, requestDelimitedopt, responseDelimitedopt) → {SearchService}

Creates new SearchService service using the specified rpc implementation.

Parameters:
Name Type Attributes Default Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean <optional>
false

Whether requests are length-delimited

responseDelimited boolean <optional>
false

Whether responses are length-delimited

Returns:
Type Description
SearchService

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

Type Definitions

SearchCallback(error, responseopt)

Callback as used by search.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.retail.v2beta.SearchResponse <optional>

SearchResponse