Class RecommendationServiceGrpc.RecommendationServiceStub (0.51.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
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Returns
Type Description
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
Name Description
request RecommendRequest
responseObserver io.grpc.stub.StreamObserver<RecommendResponse>