Class RecommendationServiceGrpc.RecommendationServiceStub (0.3.0)

public static final class RecommendationServiceGrpc.RecommendationServiceStub extends AbstractAsyncStub<RecommendationServiceGrpc.RecommendationServiceStub>

Service for making recommendations.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractAsyncStub > RecommendationServiceGrpc.RecommendationServiceStub

Methods

build(Channel channel, CallOptions callOptions)

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

recommend(RecommendRequest request, StreamObserver<RecommendResponse> responseObserver)

public void recommend(RecommendRequest request, StreamObserver<RecommendResponse> responseObserver)

Makes a recommendation, which requires a contextual user event.

Parameters
NameDescription
requestRecommendRequest
responseObserverio.grpc.stub.StreamObserver<RecommendResponse>