Class RecommendationServiceGrpc.RecommendationServiceFutureStub (0.28.0)

public static final class RecommendationServiceGrpc.RecommendationServiceFutureStub extends AbstractFutureStub<RecommendationServiceGrpc.RecommendationServiceFutureStub>

A stub to allow clients to do ListenableFuture-style rpc calls to service RecommendationService.

Service for making recommendations.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractFutureStub > RecommendationServiceGrpc.RecommendationServiceFutureStub

Methods

build(Channel channel, CallOptions callOptions)

protected RecommendationServiceGrpc.RecommendationServiceFutureStub build(Channel channel, CallOptions callOptions)
Parameters
NameDescription
channelio.grpc.Channel
callOptionsio.grpc.CallOptions
Returns
TypeDescription
RecommendationServiceGrpc.RecommendationServiceFutureStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

recommend(RecommendRequest request)

public ListenableFuture<RecommendResponse> recommend(RecommendRequest request)

Makes a recommendation, which requires a contextual user event.

Parameter
NameDescription
requestRecommendRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<RecommendResponse>