Package com.viam.component.nswitch.v1
Class SwitchServiceGrpc.SwitchServiceFutureStub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractFutureStub<SwitchServiceGrpc.SwitchServiceFutureStub>
com.viam.component.nswitch.v1.SwitchServiceGrpc.SwitchServiceFutureStub
- Enclosing class:
- SwitchServiceGrpc
public static final class SwitchServiceGrpc.SwitchServiceFutureStub
extends io.grpc.stub.AbstractFutureStub<SwitchServiceGrpc.SwitchServiceFutureStub>
A stub to allow clients to do ListenableFuture-style rpc calls to service SwitchService.
A SwitchService services switches associated with a machine. Switches can have multiple discrete positions - e.g. a simple switch has 2 positions, but a knob could have 10 positions.
-
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<Common.DoCommandResponse>
doCommand
(Common.DoCommandRequest request) DoCommand sends/receives arbitrary commandscom.google.common.util.concurrent.ListenableFuture<Switch.GetNumberOfPositionsResponse>
Get the number of positions that the switch supportscom.google.common.util.concurrent.ListenableFuture<Switch.GetPositionResponse>
getPosition
(Switch.GetPositionRequest request) Get the position of the switchcom.google.common.util.concurrent.ListenableFuture<Switch.SetPositionResponse>
setPosition
(Switch.SetPositionRequest request) Set the position of the switchMethods 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 SwitchServiceGrpc.SwitchServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
build
in classio.grpc.stub.AbstractStub<SwitchServiceGrpc.SwitchServiceFutureStub>
-
setPosition
public com.google.common.util.concurrent.ListenableFuture<Switch.SetPositionResponse> setPosition(Switch.SetPositionRequest request) Set the position of the switch
-
getPosition
public com.google.common.util.concurrent.ListenableFuture<Switch.GetPositionResponse> getPosition(Switch.GetPositionRequest request) Get the position of the switch
-
getNumberOfPositions
public com.google.common.util.concurrent.ListenableFuture<Switch.GetNumberOfPositionsResponse> getNumberOfPositions(Switch.GetNumberOfPositionsRequest request) Get the number of positions that the switch supports
-
doCommand
public com.google.common.util.concurrent.ListenableFuture<Common.DoCommandResponse> doCommand(Common.DoCommandRequest request) DoCommand sends/receives arbitrary commands
-