Package com.viam.component.nswitch.v1
Class SwitchServiceGrpc.SwitchServiceBlockingV2Stub
java.lang.Object
io.grpc.stub.AbstractStub<SwitchServiceGrpc.SwitchServiceBlockingV2Stub>
io.grpc.stub.AbstractBlockingStub<SwitchServiceGrpc.SwitchServiceBlockingV2Stub>
com.viam.component.nswitch.v1.SwitchServiceGrpc.SwitchServiceBlockingV2Stub
- Enclosing class:
SwitchServiceGrpc
public static final class SwitchServiceGrpc.SwitchServiceBlockingV2Stub
extends io.grpc.stub.AbstractBlockingStub<SwitchServiceGrpc.SwitchServiceBlockingV2Stub>
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, newStubMethods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
Method Details
-
build
protected SwitchServiceGrpc.SwitchServiceBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<SwitchServiceGrpc.SwitchServiceBlockingV2Stub>
-
setPosition
public Switch.SetPositionResponse setPosition(Switch.SetPositionRequest request) throws io.grpc.StatusException Set the position of the switch
- Throws:
io.grpc.StatusException
-
getPosition
public Switch.GetPositionResponse getPosition(Switch.GetPositionRequest request) throws io.grpc.StatusException Get the position of the switch
- Throws:
io.grpc.StatusException
-
getNumberOfPositions
public Switch.GetNumberOfPositionsResponse getNumberOfPositions(Switch.GetNumberOfPositionsRequest request) throws io.grpc.StatusException Get the number of positions that the switch supports
- Throws:
io.grpc.StatusException
-
doCommand
public Common.DoCommandResponse doCommand(Common.DoCommandRequest request) throws io.grpc.StatusException DoCommand sends/receives arbitrary commands
- Throws:
io.grpc.StatusException
-