Package io.flowcean.learner.grpc
Class LearnerGrpc.LearnerStub
java.lang.Object
io.grpc.stub.AbstractStub<LearnerGrpc.LearnerStub>
io.grpc.stub.AbstractAsyncStub<LearnerGrpc.LearnerStub>
io.flowcean.learner.grpc.LearnerGrpc.LearnerStub
- Enclosing class:
LearnerGrpc
public static final class LearnerGrpc.LearnerStub
extends io.grpc.stub.AbstractAsyncStub<LearnerGrpc.LearnerStub>
A stub to allow clients to do asynchronous rpc calls to service Learner.
The Learner service provides RPCs for training, prediction, and export.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub
io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>> -
Method Summary
Modifier and TypeMethodDescriptionprotected LearnerGrpc.LearnerStubbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions) voidexport(LearnerOuterClass.Empty request, io.grpc.stub.StreamObserver<LearnerOuterClass.Empty> responseObserver) voidpredict(LearnerOuterClass.DataPackage request, io.grpc.stub.StreamObserver<LearnerOuterClass.Prediction> responseObserver) voidtrain(LearnerOuterClass.DataPackage request, io.grpc.stub.StreamObserver<LearnerOuterClass.StatusMessage> responseObserver) Methods inherited from class io.grpc.stub.AbstractAsyncStub
newStub, newStubMethods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOption, withWaitForReady
-
Method Details
-
build
- Specified by:
buildin classio.grpc.stub.AbstractStub<LearnerGrpc.LearnerStub>
-
train
public void train(LearnerOuterClass.DataPackage request, io.grpc.stub.StreamObserver<LearnerOuterClass.StatusMessage> responseObserver) -
predict
public void predict(LearnerOuterClass.DataPackage request, io.grpc.stub.StreamObserver<LearnerOuterClass.Prediction> responseObserver) -
export
public void export(LearnerOuterClass.Empty request, io.grpc.stub.StreamObserver<LearnerOuterClass.Empty> responseObserver)
-