Package com.viam.component.nswitch.v1
Class SwitchServiceGrpc
java.lang.Object
com.viam.component.nswitch.v1.SwitchServiceGrpc
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 ClassesModifier and TypeClassDescriptionstatic interfaceA SwitchService services switches associated with a machine.static final classA stub to allow clients to do limited synchronous rpc calls to service SwitchService.static final classA stub to allow clients to do synchronous rpc calls to service SwitchService.static final classA stub to allow clients to do ListenableFuture-style rpc calls to service SwitchService.static classBase class for the server implementation of the service SwitchService.static final classA stub to allow clients to do asynchronous rpc calls to service SwitchService. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic final io.grpc.ServerServiceDefinitionstatic io.grpc.MethodDescriptor<Common.DoCommandRequest, Common.DoCommandResponse> static io.grpc.MethodDescriptor<Switch.GetNumberOfPositionsRequest, Switch.GetNumberOfPositionsResponse> static io.grpc.MethodDescriptor<Switch.GetPositionRequest, Switch.GetPositionResponse> static io.grpc.ServiceDescriptorstatic io.grpc.MethodDescriptor<Switch.SetPositionRequest, Switch.SetPositionResponse> newBlockingStub(io.grpc.Channel channel) Creates a new blocking-style stub that supports unary and streaming output calls on the servicenewBlockingV2Stub(io.grpc.Channel channel) Creates a new blocking-style stub that supports all types of calls on the servicenewFutureStub(io.grpc.Channel channel) Creates a new ListenableFuture-style stub that supports unary calls on the servicenewStub(io.grpc.Channel channel) Creates a new async stub that supports all call types for the service
-
Field Details
-
SERVICE_NAME
- See Also:
-
-
Method Details
-
getSetPositionMethod
public static io.grpc.MethodDescriptor<Switch.SetPositionRequest,Switch.SetPositionResponse> getSetPositionMethod() -
getGetPositionMethod
public static io.grpc.MethodDescriptor<Switch.GetPositionRequest,Switch.GetPositionResponse> getGetPositionMethod() -
getGetNumberOfPositionsMethod
public static io.grpc.MethodDescriptor<Switch.GetNumberOfPositionsRequest,Switch.GetNumberOfPositionsResponse> getGetNumberOfPositionsMethod() -
getDoCommandMethod
public static io.grpc.MethodDescriptor<Common.DoCommandRequest,Common.DoCommandResponse> getDoCommandMethod() -
newStub
Creates a new async stub that supports all call types for the service -
newBlockingV2Stub
public static SwitchServiceGrpc.SwitchServiceBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) Creates a new blocking-style stub that supports all types of calls on the service -
newBlockingStub
Creates a new blocking-style stub that supports unary and streaming output calls on the service -
newFutureStub
Creates a new ListenableFuture-style stub that supports unary calls on the service -
bindService
public static final io.grpc.ServerServiceDefinition bindService(SwitchServiceGrpc.AsyncService service) -
getServiceDescriptor
public static io.grpc.ServiceDescriptor getServiceDescriptor()
-