Package com.viam.component.nswitch.v1
Class SwitchServiceGrpc.SwitchServiceBlockingStub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractBlockingStub<SwitchServiceGrpc.SwitchServiceBlockingStub>
com.viam.component.nswitch.v1.SwitchServiceGrpc.SwitchServiceBlockingStub
- Enclosing class:
- SwitchServiceGrpc
public static final class SwitchServiceGrpc.SwitchServiceBlockingStub
extends io.grpc.stub.AbstractBlockingStub<SwitchServiceGrpc.SwitchServiceBlockingStub>
A stub to allow clients to do synchronous 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) doCommand
(Common.DoCommandRequest request) DoCommand sends/receives arbitrary commandsGet the number of positions that the switch supportsgetPosition
(Switch.GetPositionRequest request) Get the position of the switchsetPosition
(Switch.SetPositionRequest request) Set the position of the switchMethods inherited from class io.grpc.stub.AbstractBlockingStub
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.SwitchServiceBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
build
in classio.grpc.stub.AbstractStub<SwitchServiceGrpc.SwitchServiceBlockingStub>
-
setPosition
Set the position of the switch
-
getPosition
Get the position of the switch
-
getNumberOfPositions
public Switch.GetNumberOfPositionsResponse getNumberOfPositions(Switch.GetNumberOfPositionsRequest request) Get the number of positions that the switch supports
-
doCommand
DoCommand sends/receives arbitrary commands
-