viam.gen.component.switch.v1.switch_grpc

Classes

SwitchServiceBase

Helper class that provides a standard way to create an ABC using

UnimplementedSwitchServiceBase

Helper class that provides a standard way to create an ABC using

SwitchServiceStub

Module Contents

class viam.gen.component.switch.v1.switch_grpc.SwitchServiceBase[source]

Bases: abc.ABC

Helper class that provides a standard way to create an ABC using inheritance.

abstract SetPosition(stream: grpclib.server.Stream[component.switch.v1.switch_pb2.SetPositionRequest, component.switch.v1.switch_pb2.SetPositionResponse]) None[source]
Async:

abstract GetPosition(stream: grpclib.server.Stream[component.switch.v1.switch_pb2.GetPositionRequest, component.switch.v1.switch_pb2.GetPositionResponse]) None[source]
Async:

abstract GetNumberOfPositions(stream: grpclib.server.Stream[component.switch.v1.switch_pb2.GetNumberOfPositionsRequest, component.switch.v1.switch_pb2.GetNumberOfPositionsResponse]) None[source]
Async:

abstract DoCommand(stream: grpclib.server.Stream[common.v1.common_pb2.DoCommandRequest, common.v1.common_pb2.DoCommandResponse]) None[source]
Async:

__mapping__() Dict[str, grpclib.const.Handler][source]
class viam.gen.component.switch.v1.switch_grpc.UnimplementedSwitchServiceBase[source]

Bases: SwitchServiceBase

Helper class that provides a standard way to create an ABC using inheritance.

async SetPosition(stream: grpclib.server.Stream[component.switch.v1.switch_pb2.SetPositionRequest, component.switch.v1.switch_pb2.SetPositionResponse]) None[source]
async GetPosition(stream: grpclib.server.Stream[component.switch.v1.switch_pb2.GetPositionRequest, component.switch.v1.switch_pb2.GetPositionResponse]) None[source]
async GetNumberOfPositions(stream: grpclib.server.Stream[component.switch.v1.switch_pb2.GetNumberOfPositionsRequest, component.switch.v1.switch_pb2.GetNumberOfPositionsResponse]) None[source]
async DoCommand(stream: grpclib.server.Stream[common.v1.common_pb2.DoCommandRequest, common.v1.common_pb2.DoCommandResponse]) None[source]
class viam.gen.component.switch.v1.switch_grpc.SwitchServiceStub(channel: grpclib.client.Channel)[source]
SetPosition
GetPosition
GetNumberOfPositions
DoCommand