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

import health_facility_pb2 as health__facility__pb2


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

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

        Args:
            channel: A grpc.Channel.
        """
        self.GetHealthFacility = channel.unary_unary(
                '/remis.hf.IHealthFacility/GetHealthFacility',
                request_serializer=health__facility__pb2.HealthFacilityRequest.SerializeToString,
                response_deserializer=health__facility__pb2.HealthFacilityResponse.FromString,
                )
        self.GetHealthFacilityList = channel.unary_unary(
                '/remis.hf.IHealthFacility/GetHealthFacilityList',
                request_serializer=health__facility__pb2.HealthFacilityRequest.SerializeToString,
                response_deserializer=health__facility__pb2.HealthFacilityListResponse.FromString,
                )
        self.GetCabinetList = channel.unary_unary(
                '/remis.hf.IHealthFacility/GetCabinetList',
                request_serializer=health__facility__pb2.CabinetRequest.SerializeToString,
                response_deserializer=health__facility__pb2.CabinetResponseList.FromString,
                )
        self.GetCabinetListByHF = channel.unary_unary(
                '/remis.hf.IHealthFacility/GetCabinetListByHF',
                request_serializer=health__facility__pb2.CabinetRequest.SerializeToString,
                response_deserializer=health__facility__pb2.CabinetResponseList.FromString,
                )
        self.GetCabinet = channel.unary_unary(
                '/remis.hf.IHealthFacility/GetCabinet',
                request_serializer=health__facility__pb2.CabinetRequest.SerializeToString,
                response_deserializer=health__facility__pb2.CabinetResponse.FromString,
                )


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

    def GetHealthFacility(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 GetHealthFacilityList(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 GetCabinetList(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 GetCabinetListByHF(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 GetCabinet(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_IHealthFacilityServicer_to_server(servicer, server):
    rpc_method_handlers = {
            'GetHealthFacility': grpc.unary_unary_rpc_method_handler(
                    servicer.GetHealthFacility,
                    request_deserializer=health__facility__pb2.HealthFacilityRequest.FromString,
                    response_serializer=health__facility__pb2.HealthFacilityResponse.SerializeToString,
            ),
            'GetHealthFacilityList': grpc.unary_unary_rpc_method_handler(
                    servicer.GetHealthFacilityList,
                    request_deserializer=health__facility__pb2.HealthFacilityRequest.FromString,
                    response_serializer=health__facility__pb2.HealthFacilityListResponse.SerializeToString,
            ),
            'GetCabinetList': grpc.unary_unary_rpc_method_handler(
                    servicer.GetCabinetList,
                    request_deserializer=health__facility__pb2.CabinetRequest.FromString,
                    response_serializer=health__facility__pb2.CabinetResponseList.SerializeToString,
            ),
            'GetCabinetListByHF': grpc.unary_unary_rpc_method_handler(
                    servicer.GetCabinetListByHF,
                    request_deserializer=health__facility__pb2.CabinetRequest.FromString,
                    response_serializer=health__facility__pb2.CabinetResponseList.SerializeToString,
            ),
            'GetCabinet': grpc.unary_unary_rpc_method_handler(
                    servicer.GetCabinet,
                    request_deserializer=health__facility__pb2.CabinetRequest.FromString,
                    response_serializer=health__facility__pb2.CabinetResponse.SerializeToString,
            ),
    }
    generic_handler = grpc.method_handlers_generic_handler(
            'remis.hf.IHealthFacility', rpc_method_handlers)
    server.add_generic_rpc_handlers((generic_handler,))


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

    @staticmethod
    def GetHealthFacility(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, '/remis.hf.IHealthFacility/GetHealthFacility',
            health__facility__pb2.HealthFacilityRequest.SerializeToString,
            health__facility__pb2.HealthFacilityResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def GetHealthFacilityList(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, '/remis.hf.IHealthFacility/GetHealthFacilityList',
            health__facility__pb2.HealthFacilityRequest.SerializeToString,
            health__facility__pb2.HealthFacilityListResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def GetCabinetList(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, '/remis.hf.IHealthFacility/GetCabinetList',
            health__facility__pb2.CabinetRequest.SerializeToString,
            health__facility__pb2.CabinetResponseList.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def GetCabinetListByHF(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, '/remis.hf.IHealthFacility/GetCabinetListByHF',
            health__facility__pb2.CabinetRequest.SerializeToString,
            health__facility__pb2.CabinetResponseList.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def GetCabinet(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, '/remis.hf.IHealthFacility/GetCabinet',
            health__facility__pb2.CabinetRequest.SerializeToString,
            health__facility__pb2.CabinetResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
