Class protos.google.cloud.discoveryengine.v1beta.RecommendationService (1.7.0)

Represents a RecommendationService

Inheritance

$protobuf.rpc.Service > protos.google.cloud.discoveryengine.v1beta.RecommendationService

Package

@google-cloud/discoveryengine

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new RecommendationService 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): RecommendationService;

Creates new RecommendationService 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
RecommendationService

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

recommend(request, callback)

public recommend(request: google.cloud.discoveryengine.v1beta.IRecommendRequest, callback: google.cloud.discoveryengine.v1beta.RecommendationService.RecommendCallback): void;

Calls Recommend.

Parameters
NameDescription
request IRecommendRequest

RecommendRequest message or plain object

callback RecommendCallback

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

Returns
TypeDescription
void

recommend(request)

public recommend(request: google.cloud.discoveryengine.v1beta.IRecommendRequest): Promise<google.cloud.discoveryengine.v1beta.RecommendResponse>;

Calls Recommend.

Parameter
NameDescription
request IRecommendRequest

RecommendRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.discoveryengine.v1beta.RecommendResponse>

Promise