viam.gen.component.switch.v1.switch_grpc ======================================== .. py:module:: viam.gen.component.switch.v1.switch_grpc Classes ------- .. autoapisummary:: viam.gen.component.switch.v1.switch_grpc.SwitchServiceBase viam.gen.component.switch.v1.switch_grpc.UnimplementedSwitchServiceBase viam.gen.component.switch.v1.switch_grpc.SwitchServiceStub Module Contents --------------- .. py:class:: SwitchServiceBase Bases: :py:obj:`abc.ABC` Helper class that provides a standard way to create an ABC using inheritance. .. py:method:: SetPosition(stream: grpclib.server.Stream[component.switch.v1.switch_pb2.SetPositionRequest, component.switch.v1.switch_pb2.SetPositionResponse]) -> None :abstractmethod: :async: .. py:method:: GetPosition(stream: grpclib.server.Stream[component.switch.v1.switch_pb2.GetPositionRequest, component.switch.v1.switch_pb2.GetPositionResponse]) -> None :abstractmethod: :async: .. py:method:: GetNumberOfPositions(stream: grpclib.server.Stream[component.switch.v1.switch_pb2.GetNumberOfPositionsRequest, component.switch.v1.switch_pb2.GetNumberOfPositionsResponse]) -> None :abstractmethod: :async: .. py:method:: DoCommand(stream: grpclib.server.Stream[common.v1.common_pb2.DoCommandRequest, common.v1.common_pb2.DoCommandResponse]) -> None :abstractmethod: :async: .. py:method:: __mapping__() -> Dict[str, grpclib.const.Handler] .. py:class:: UnimplementedSwitchServiceBase Bases: :py:obj:`SwitchServiceBase` Helper class that provides a standard way to create an ABC using inheritance. .. py:method:: SetPosition(stream: grpclib.server.Stream[component.switch.v1.switch_pb2.SetPositionRequest, component.switch.v1.switch_pb2.SetPositionResponse]) -> None :async: .. py:method:: GetPosition(stream: grpclib.server.Stream[component.switch.v1.switch_pb2.GetPositionRequest, component.switch.v1.switch_pb2.GetPositionResponse]) -> None :async: .. py:method:: GetNumberOfPositions(stream: grpclib.server.Stream[component.switch.v1.switch_pb2.GetNumberOfPositionsRequest, component.switch.v1.switch_pb2.GetNumberOfPositionsResponse]) -> None :async: .. py:method:: DoCommand(stream: grpclib.server.Stream[common.v1.common_pb2.DoCommandRequest, common.v1.common_pb2.DoCommandResponse]) -> None :async: .. py:class:: SwitchServiceStub(channel: grpclib.client.Channel) .. py:attribute:: SetPosition .. py:attribute:: GetPosition .. py:attribute:: GetNumberOfPositions .. py:attribute:: DoCommand