Package com.viam.component.nswitch.v1
Class SwitchServiceGrpc.SwitchServiceStub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractAsyncStub<SwitchServiceGrpc.SwitchServiceStub>
com.viam.component.nswitch.v1.SwitchServiceGrpc.SwitchServiceStub
- Enclosing class:
- SwitchServiceGrpc
public static final class SwitchServiceGrpc.SwitchServiceStub
extends io.grpc.stub.AbstractAsyncStub<SwitchServiceGrpc.SwitchServiceStub>
A stub to allow clients to do asynchronous 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 TypeMethodDescriptionprotected SwitchServiceGrpc.SwitchServiceStubbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions) voiddoCommand(Common.DoCommandRequest request, io.grpc.stub.StreamObserver<Common.DoCommandResponse> responseObserver) DoCommand sends/receives arbitrary commandsvoidgetNumberOfPositions(Switch.GetNumberOfPositionsRequest request, io.grpc.stub.StreamObserver<Switch.GetNumberOfPositionsResponse> responseObserver) Get the number of positions that the switch supportsvoidgetPosition(Switch.GetPositionRequest request, io.grpc.stub.StreamObserver<Switch.GetPositionResponse> responseObserver) Get the position of the switchvoidsetPosition(Switch.SetPositionRequest request, io.grpc.stub.StreamObserver<Switch.SetPositionResponse> responseObserver) Set the position of the switchMethods inherited from class io.grpc.stub.AbstractAsyncStub
newStub, newStubMethods 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.SwitchServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<SwitchServiceGrpc.SwitchServiceStub>
-
setPosition
public void setPosition(Switch.SetPositionRequest request, io.grpc.stub.StreamObserver<Switch.SetPositionResponse> responseObserver) Set the position of the switch
-
getPosition
public void getPosition(Switch.GetPositionRequest request, io.grpc.stub.StreamObserver<Switch.GetPositionResponse> responseObserver) Get the position of the switch
-
getNumberOfPositions
public void getNumberOfPositions(Switch.GetNumberOfPositionsRequest request, io.grpc.stub.StreamObserver<Switch.GetNumberOfPositionsResponse> responseObserver) Get the number of positions that the switch supports
-
doCommand
public void doCommand(Common.DoCommandRequest request, io.grpc.stub.StreamObserver<Common.DoCommandResponse> responseObserver) DoCommand sends/receives arbitrary commands
-