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

from . import BeiHangGrpc_pb2 as BeiHangGrpc__pb2


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

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

        Args:
            channel: A grpc.Channel.
        """
        self.sendHelmet_Info = channel.unary_unary(
                '/Helmet_Reg/sendHelmet_Info',
                request_serializer=BeiHangGrpc__pb2.JinYu_Request.SerializeToString,
                response_deserializer=BeiHangGrpc__pb2.BHhelmet_Response.FromString,
                )


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

    def sendHelmet_Info(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_Helmet_RegServicer_to_server(servicer, server):
    rpc_method_handlers = {
            'sendHelmet_Info': grpc.unary_unary_rpc_method_handler(
                    servicer.sendHelmet_Info,
                    request_deserializer=BeiHangGrpc__pb2.JinYu_Request.FromString,
                    response_serializer=BeiHangGrpc__pb2.BHhelmet_Response.SerializeToString,
            ),
    }
    generic_handler = grpc.method_handlers_generic_handler(
            'Helmet_Reg', rpc_method_handlers)
    server.add_generic_rpc_handlers((generic_handler,))


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

    @staticmethod
    def sendHelmet_Info(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, '/Helmet_Reg/sendHelmet_Info',
            BeiHangGrpc__pb2.JinYu_Request.SerializeToString,
            BeiHangGrpc__pb2.BHhelmet_Response.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)


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

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

        Args:
            channel: A grpc.Channel.
        """
        self.sendFire_Info = channel.unary_unary(
                '/Fire_Reg/sendFire_Info',
                request_serializer=BeiHangGrpc__pb2.JinYu_Request.SerializeToString,
                response_deserializer=BeiHangGrpc__pb2.BHFire_Response.FromString,
                )


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

    def sendFire_Info(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_Fire_RegServicer_to_server(servicer, server):
    rpc_method_handlers = {
            'sendFire_Info': grpc.unary_unary_rpc_method_handler(
                    servicer.sendFire_Info,
                    request_deserializer=BeiHangGrpc__pb2.JinYu_Request.FromString,
                    response_serializer=BeiHangGrpc__pb2.BHFire_Response.SerializeToString,
            ),
    }
    generic_handler = grpc.method_handlers_generic_handler(
            'Fire_Reg', rpc_method_handlers)
    server.add_generic_rpc_handlers((generic_handler,))


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

    @staticmethod
    def sendFire_Info(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, '/Fire_Reg/sendFire_Info',
            BeiHangGrpc__pb2.JinYu_Request.SerializeToString,
            BeiHangGrpc__pb2.BHFire_Response.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)


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

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

        Args:
            channel: A grpc.Channel.
        """
        self.sendFA_Info = channel.unary_unary(
                '/FA_Reg/sendFA_Info',
                request_serializer=BeiHangGrpc__pb2.JinYu_Request.SerializeToString,
                response_deserializer=BeiHangGrpc__pb2.BHFA_Response.FromString,
                )


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

    def sendFA_Info(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_FA_RegServicer_to_server(servicer, server):
    rpc_method_handlers = {
            'sendFA_Info': grpc.unary_unary_rpc_method_handler(
                    servicer.sendFA_Info,
                    request_deserializer=BeiHangGrpc__pb2.JinYu_Request.FromString,
                    response_serializer=BeiHangGrpc__pb2.BHFA_Response.SerializeToString,
            ),
    }
    generic_handler = grpc.method_handlers_generic_handler(
            'FA_Reg', rpc_method_handlers)
    server.add_generic_rpc_handlers((generic_handler,))


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

    @staticmethod
    def sendFA_Info(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, '/FA_Reg/sendFA_Info',
            BeiHangGrpc__pb2.JinYu_Request.SerializeToString,
            BeiHangGrpc__pb2.BHFA_Response.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
