Represents a RecommendationService
Inheritance
$protobuf.rpc.Service > protos.google.cloud.discoveryengine.v1alpha.RecommendationServicePackage
@google-cloud/discoveryengineConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new RecommendationService 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): RecommendationService;
Creates new RecommendationService 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 |
RecommendationService |
RPC service. Useful where requests and/or responses are streamed. |
recommend(request, callback)
public recommend(request: google.cloud.discoveryengine.v1alpha.IRecommendRequest, callback: google.cloud.discoveryengine.v1alpha.RecommendationService.RecommendCallback): void;
Calls Recommend.
Parameters | |
---|---|
Name | Description |
request |
IRecommendRequest
RecommendRequest message or plain object |
callback |
RecommendCallback
Node-style callback called with the error, if any, and RecommendResponse |
Returns | |
---|---|
Type | Description |
void |
recommend(request)
public recommend(request: google.cloud.discoveryengine.v1alpha.IRecommendRequest): Promise<google.cloud.discoveryengine.v1alpha.RecommendResponse>;
Calls Recommend.
Parameter | |
---|---|
Name | Description |
request |
IRecommendRequest
RecommendRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.discoveryengine.v1alpha.RecommendResponse> |
Promise |