Class RecommendationServiceGrpc.RecommendationServiceStub (0.23.0)

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

A stub to allow clients to do asynchronous rpc calls to service RecommendationService.

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>