Class BertLmGrpc.BertLmFutureStub
java.lang.Object
io.grpc.stub.AbstractStub<BertLmGrpc.BertLmFutureStub>
io.grpc.stub.AbstractFutureStub<BertLmGrpc.BertLmFutureStub>
org.languagetool.languagemodel.bert.grpc.BertLmGrpc.BertLmFutureStub
- Enclosing class:
BertLmGrpc
public static final class BertLmGrpc.BertLmFutureStub
extends io.grpc.stub.AbstractFutureStub<BertLmGrpc.BertLmFutureStub>
A stub to allow clients to do ListenableFuture-style rpc calls to service BertLm.
-
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>> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateBertLmFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) -
Method Summary
Modifier and TypeMethodDescriptioncom.google.common.util.concurrent.ListenableFuture<BertLmProto.BatchBertLmResponse> batchScore(BertLmProto.BatchScoreRequest request) protected BertLmGrpc.BertLmFutureStubbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions) com.google.common.util.concurrent.ListenableFuture<BertLmProto.BertLmResponse> score(BertLmProto.ScoreRequest request) Methods inherited from class io.grpc.stub.AbstractFutureStub
newStub, newStubMethods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
Constructor Details
-
BertLmFutureStub
private BertLmFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
-
-
Method Details
-
build
protected BertLmGrpc.BertLmFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<BertLmGrpc.BertLmFutureStub>
-
score
public com.google.common.util.concurrent.ListenableFuture<BertLmProto.BertLmResponse> score(BertLmProto.ScoreRequest request) -
batchScore
public com.google.common.util.concurrent.ListenableFuture<BertLmProto.BatchBertLmResponse> batchScore(BertLmProto.BatchScoreRequest request)
-