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

import context_pb2 as context__pb2
import monitoring_pb2 as monitoring__pb2


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

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

        Args:
            channel: A grpc.Channel.
        """
        self.IncludeKpi = channel.unary_unary(
                '/monitoring.MonitoringService/IncludeKpi',
                request_serializer=monitoring__pb2.Kpi.SerializeToString,
                response_deserializer=context__pb2.Empty.FromString,
                )
        self.MonitorKpi = channel.unary_unary(
                '/monitoring.MonitoringService/MonitorKpi',
                request_serializer=monitoring__pb2.KpiDevice.SerializeToString,
                response_deserializer=context__pb2.Empty.FromString,
                )
        self.GetStream_kpi = channel.unary_stream(
                '/monitoring.MonitoringService/GetStream_kpi',
                request_serializer=monitoring__pb2.KpiId.SerializeToString,
                response_deserializer=monitoring__pb2.Kpi.FromString,
                )
        self.GetInstantKpi = channel.unary_unary(
                '/monitoring.MonitoringService/GetInstantKpi',
                request_serializer=monitoring__pb2.KpiId.SerializeToString,
                response_deserializer=monitoring__pb2.Kpi.FromString,
                )


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

    def IncludeKpi(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 MonitorKpi(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 GetStream_kpi(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 GetInstantKpi(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_MonitoringServiceServicer_to_server(servicer, server):
    rpc_method_handlers = {
            'IncludeKpi': grpc.unary_unary_rpc_method_handler(
                    servicer.IncludeKpi,
                    request_deserializer=monitoring__pb2.Kpi.FromString,
                    response_serializer=context__pb2.Empty.SerializeToString,
            ),
            'MonitorKpi': grpc.unary_unary_rpc_method_handler(
                    servicer.MonitorKpi,
                    request_deserializer=monitoring__pb2.KpiDevice.FromString,
                    response_serializer=context__pb2.Empty.SerializeToString,
            ),
            'GetStream_kpi': grpc.unary_stream_rpc_method_handler(
                    servicer.GetStream_kpi,
                    request_deserializer=monitoring__pb2.KpiId.FromString,
                    response_serializer=monitoring__pb2.Kpi.SerializeToString,
            ),
            'GetInstantKpi': grpc.unary_unary_rpc_method_handler(
                    servicer.GetInstantKpi,
                    request_deserializer=monitoring__pb2.KpiId.FromString,
                    response_serializer=monitoring__pb2.Kpi.SerializeToString,
            ),
    }
    generic_handler = grpc.method_handlers_generic_handler(
            'monitoring.MonitoringService', rpc_method_handlers)
    server.add_generic_rpc_handlers((generic_handler,))


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

    @staticmethod
    def IncludeKpi(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, '/monitoring.MonitoringService/IncludeKpi',
            monitoring__pb2.Kpi.SerializeToString,
            context__pb2.Empty.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def MonitorKpi(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, '/monitoring.MonitoringService/MonitorKpi',
            monitoring__pb2.KpiDevice.SerializeToString,
            context__pb2.Empty.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def GetStream_kpi(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_stream(request, target, '/monitoring.MonitoringService/GetStream_kpi',
            monitoring__pb2.KpiId.SerializeToString,
            monitoring__pb2.Kpi.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def GetInstantKpi(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, '/monitoring.MonitoringService/GetInstantKpi',
            monitoring__pb2.KpiId.SerializeToString,
            monitoring__pb2.Kpi.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
