Package com.viam.service.mlmodel.v1
Class MLModelServiceGrpc.MLModelServiceFutureStub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractFutureStub<MLModelServiceGrpc.MLModelServiceFutureStub>
com.viam.service.mlmodel.v1.MLModelServiceGrpc.MLModelServiceFutureStub
- Enclosing class:
- MLModelServiceGrpc
public static final class MLModelServiceGrpc.MLModelServiceFutureStub
extends io.grpc.stub.AbstractFutureStub<MLModelServiceGrpc.MLModelServiceFutureStub>
A stub to allow clients to do ListenableFuture-style rpc calls to service MLModelService.
MLModelService declares the gRPC contract for a service that takes in a map of input arrays/tensors, runs them through an ML inference engine, and outputs a map of array/tensors.
-
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 TypeMethodDescriptionbuild
(io.grpc.Channel channel, io.grpc.CallOptions callOptions) com.google.common.util.concurrent.ListenableFuture<Mlmodel.InferResponse>
infer
(Mlmodel.InferRequest request) Infer takes an already ordered input tensor as a map, makes an inference on the model, and returns an output data map.com.google.common.util.concurrent.ListenableFuture<Mlmodel.MetadataResponse>
metadata
(Mlmodel.MetadataRequest request) Metadata returns the metadata associated with the ML model.Methods inherited from class io.grpc.stub.AbstractFutureStub
newStub, newStub
Methods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
Method Details
-
build
protected MLModelServiceGrpc.MLModelServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
build
in classio.grpc.stub.AbstractStub<MLModelServiceGrpc.MLModelServiceFutureStub>
-
infer
public com.google.common.util.concurrent.ListenableFuture<Mlmodel.InferResponse> infer(Mlmodel.InferRequest request) Infer takes an already ordered input tensor as a map, makes an inference on the model, and returns an output data map.
-
metadata
public com.google.common.util.concurrent.ListenableFuture<Mlmodel.MetadataResponse> metadata(Mlmodel.MetadataRequest request) Metadata returns the metadata associated with the ML model.
-