# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc

from cmvr.api import common_pb2 as cmvr_dot_api_dot_common__pb2
from cmvr.api import humanoid_robot_command_pb2 as cmvr_dot_api_dot_humanoid__robot__command__pb2


class HumanoidRobotServiceStub(object):
    """Missing associated documentation comment in .proto file."""

    def __init__(self, channel):
        """Constructor.

        Args:
            channel: A grpc.Channel.
        """
        self.torqueOff = channel.unary_unary(
                '/cmvr.api.HumanoidRobotService/torqueOff',
                request_serializer=cmvr_dot_api_dot_common__pb2.CommandHeader.Request.SerializeToString,
                response_deserializer=cmvr_dot_api_dot_common__pb2.CommandHeader.Feedback.FromString,
                )
        self.torqueOn = channel.unary_unary(
                '/cmvr.api.HumanoidRobotService/torqueOn',
                request_serializer=cmvr_dot_api_dot_common__pb2.CommandHeader.Request.SerializeToString,
                response_deserializer=cmvr_dot_api_dot_common__pb2.CommandHeader.Feedback.FromString,
                )
        self.moveJ = channel.unary_unary(
                '/cmvr.api.HumanoidRobotService/moveJ',
                request_serializer=cmvr_dot_api_dot_humanoid__robot__command__pb2.MoveJ.Request.SerializeToString,
                response_deserializer=cmvr_dot_api_dot_humanoid__robot__command__pb2.MoveJ.Response.FromString,
                )
        self.moveL = channel.unary_unary(
                '/cmvr.api.HumanoidRobotService/moveL',
                request_serializer=cmvr_dot_api_dot_humanoid__robot__command__pb2.MoveL.Request.SerializeToString,
                response_deserializer=cmvr_dot_api_dot_humanoid__robot__command__pb2.MoveL.Response.FromString,
                )
        self.speedJ = channel.unary_unary(
                '/cmvr.api.HumanoidRobotService/speedJ',
                request_serializer=cmvr_dot_api_dot_humanoid__robot__command__pb2.SpeedJ.Request.SerializeToString,
                response_deserializer=cmvr_dot_api_dot_humanoid__robot__command__pb2.SpeedJ.Response.FromString,
                )
        self.speedL = channel.unary_unary(
                '/cmvr.api.HumanoidRobotService/speedL',
                request_serializer=cmvr_dot_api_dot_humanoid__robot__command__pb2.SpeedL.Request.SerializeToString,
                response_deserializer=cmvr_dot_api_dot_humanoid__robot__command__pb2.SpeedL.Response.FromString,
                )
        self.getJointState = channel.unary_unary(
                '/cmvr.api.HumanoidRobotService/getJointState',
                request_serializer=cmvr_dot_api_dot_humanoid__robot__command__pb2.JointRequest.SerializeToString,
                response_deserializer=cmvr_dot_api_dot_humanoid__robot__command__pb2.JointResponse.FromString,
                )
        self.getPose = channel.unary_unary(
                '/cmvr.api.HumanoidRobotService/getPose',
                request_serializer=cmvr_dot_api_dot_humanoid__robot__command__pb2.GetPose.Request.SerializeToString,
                response_deserializer=cmvr_dot_api_dot_humanoid__robot__command__pb2.GetPose.Response.FromString,
                )


class HumanoidRobotServiceServicer(object):
    """Missing associated documentation comment in .proto file."""

    def torqueOff(self, request, context):
        """Missing associated documentation comment in .proto file."""
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def torqueOn(self, request, context):
        """Missing associated documentation comment in .proto file."""
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def moveJ(self, request, context):
        """Missing associated documentation comment in .proto file."""
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def moveL(self, request, context):
        """Missing associated documentation comment in .proto file."""
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def speedJ(self, request, context):
        """Missing associated documentation comment in .proto file."""
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def speedL(self, request, context):
        """Missing associated documentation comment in .proto file."""
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def getJointState(self, request, context):
        """Missing associated documentation comment in .proto file."""
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def getPose(self, request, context):
        """Missing associated documentation comment in .proto file."""
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')


def add_HumanoidRobotServiceServicer_to_server(servicer, server):
    rpc_method_handlers = {
            'torqueOff': grpc.unary_unary_rpc_method_handler(
                    servicer.torqueOff,
                    request_deserializer=cmvr_dot_api_dot_common__pb2.CommandHeader.Request.FromString,
                    response_serializer=cmvr_dot_api_dot_common__pb2.CommandHeader.Feedback.SerializeToString,
            ),
            'torqueOn': grpc.unary_unary_rpc_method_handler(
                    servicer.torqueOn,
                    request_deserializer=cmvr_dot_api_dot_common__pb2.CommandHeader.Request.FromString,
                    response_serializer=cmvr_dot_api_dot_common__pb2.CommandHeader.Feedback.SerializeToString,
            ),
            'moveJ': grpc.unary_unary_rpc_method_handler(
                    servicer.moveJ,
                    request_deserializer=cmvr_dot_api_dot_humanoid__robot__command__pb2.MoveJ.Request.FromString,
                    response_serializer=cmvr_dot_api_dot_humanoid__robot__command__pb2.MoveJ.Response.SerializeToString,
            ),
            'moveL': grpc.unary_unary_rpc_method_handler(
                    servicer.moveL,
                    request_deserializer=cmvr_dot_api_dot_humanoid__robot__command__pb2.MoveL.Request.FromString,
                    response_serializer=cmvr_dot_api_dot_humanoid__robot__command__pb2.MoveL.Response.SerializeToString,
            ),
            'speedJ': grpc.unary_unary_rpc_method_handler(
                    servicer.speedJ,
                    request_deserializer=cmvr_dot_api_dot_humanoid__robot__command__pb2.SpeedJ.Request.FromString,
                    response_serializer=cmvr_dot_api_dot_humanoid__robot__command__pb2.SpeedJ.Response.SerializeToString,
            ),
            'speedL': grpc.unary_unary_rpc_method_handler(
                    servicer.speedL,
                    request_deserializer=cmvr_dot_api_dot_humanoid__robot__command__pb2.SpeedL.Request.FromString,
                    response_serializer=cmvr_dot_api_dot_humanoid__robot__command__pb2.SpeedL.Response.SerializeToString,
            ),
            'getJointState': grpc.unary_unary_rpc_method_handler(
                    servicer.getJointState,
                    request_deserializer=cmvr_dot_api_dot_humanoid__robot__command__pb2.JointRequest.FromString,
                    response_serializer=cmvr_dot_api_dot_humanoid__robot__command__pb2.JointResponse.SerializeToString,
            ),
            'getPose': grpc.unary_unary_rpc_method_handler(
                    servicer.getPose,
                    request_deserializer=cmvr_dot_api_dot_humanoid__robot__command__pb2.GetPose.Request.FromString,
                    response_serializer=cmvr_dot_api_dot_humanoid__robot__command__pb2.GetPose.Response.SerializeToString,
            ),
    }
    generic_handler = grpc.method_handlers_generic_handler(
            'cmvr.api.HumanoidRobotService', rpc_method_handlers)
    server.add_generic_rpc_handlers((generic_handler,))


 # This class is part of an EXPERIMENTAL API.
class HumanoidRobotService(object):
    """Missing associated documentation comment in .proto file."""

    @staticmethod
    def torqueOff(request,
            target,
            options=(),
            channel_credentials=None,
            call_credentials=None,
            insecure=False,
            compression=None,
            wait_for_ready=None,
            timeout=None,
            metadata=None):
        return grpc.experimental.unary_unary(request, target, '/cmvr.api.HumanoidRobotService/torqueOff',
            cmvr_dot_api_dot_common__pb2.CommandHeader.Request.SerializeToString,
            cmvr_dot_api_dot_common__pb2.CommandHeader.Feedback.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def torqueOn(request,
            target,
            options=(),
            channel_credentials=None,
            call_credentials=None,
            insecure=False,
            compression=None,
            wait_for_ready=None,
            timeout=None,
            metadata=None):
        return grpc.experimental.unary_unary(request, target, '/cmvr.api.HumanoidRobotService/torqueOn',
            cmvr_dot_api_dot_common__pb2.CommandHeader.Request.SerializeToString,
            cmvr_dot_api_dot_common__pb2.CommandHeader.Feedback.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def moveJ(request,
            target,
            options=(),
            channel_credentials=None,
            call_credentials=None,
            insecure=False,
            compression=None,
            wait_for_ready=None,
            timeout=None,
            metadata=None):
        return grpc.experimental.unary_unary(request, target, '/cmvr.api.HumanoidRobotService/moveJ',
            cmvr_dot_api_dot_humanoid__robot__command__pb2.MoveJ.Request.SerializeToString,
            cmvr_dot_api_dot_humanoid__robot__command__pb2.MoveJ.Response.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def moveL(request,
            target,
            options=(),
            channel_credentials=None,
            call_credentials=None,
            insecure=False,
            compression=None,
            wait_for_ready=None,
            timeout=None,
            metadata=None):
        return grpc.experimental.unary_unary(request, target, '/cmvr.api.HumanoidRobotService/moveL',
            cmvr_dot_api_dot_humanoid__robot__command__pb2.MoveL.Request.SerializeToString,
            cmvr_dot_api_dot_humanoid__robot__command__pb2.MoveL.Response.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def speedJ(request,
            target,
            options=(),
            channel_credentials=None,
            call_credentials=None,
            insecure=False,
            compression=None,
            wait_for_ready=None,
            timeout=None,
            metadata=None):
        return grpc.experimental.unary_unary(request, target, '/cmvr.api.HumanoidRobotService/speedJ',
            cmvr_dot_api_dot_humanoid__robot__command__pb2.SpeedJ.Request.SerializeToString,
            cmvr_dot_api_dot_humanoid__robot__command__pb2.SpeedJ.Response.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def speedL(request,
            target,
            options=(),
            channel_credentials=None,
            call_credentials=None,
            insecure=False,
            compression=None,
            wait_for_ready=None,
            timeout=None,
            metadata=None):
        return grpc.experimental.unary_unary(request, target, '/cmvr.api.HumanoidRobotService/speedL',
            cmvr_dot_api_dot_humanoid__robot__command__pb2.SpeedL.Request.SerializeToString,
            cmvr_dot_api_dot_humanoid__robot__command__pb2.SpeedL.Response.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def getJointState(request,
            target,
            options=(),
            channel_credentials=None,
            call_credentials=None,
            insecure=False,
            compression=None,
            wait_for_ready=None,
            timeout=None,
            metadata=None):
        return grpc.experimental.unary_unary(request, target, '/cmvr.api.HumanoidRobotService/getJointState',
            cmvr_dot_api_dot_humanoid__robot__command__pb2.JointRequest.SerializeToString,
            cmvr_dot_api_dot_humanoid__robot__command__pb2.JointResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def getPose(request,
            target,
            options=(),
            channel_credentials=None,
            call_credentials=None,
            insecure=False,
            compression=None,
            wait_for_ready=None,
            timeout=None,
            metadata=None):
        return grpc.experimental.unary_unary(request, target, '/cmvr.api.HumanoidRobotService/getPose',
            cmvr_dot_api_dot_humanoid__robot__command__pb2.GetPose.Request.SerializeToString,
            cmvr_dot_api_dot_humanoid__robot__command__pb2.GetPose.Response.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
