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

from . import context_pb2 as context__pb2
from . 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.CreateKpi = channel.unary_unary(
                '/monitoring.MonitoringService/CreateKpi',
                request_serializer=monitoring__pb2.KpiDescriptor.SerializeToString,
                response_deserializer=monitoring__pb2.KpiId.FromString,
                )
        self.EditKpiDescriptor = channel.unary_unary(
                '/monitoring.MonitoringService/EditKpiDescriptor',
                request_serializer=monitoring__pb2.EditedKpiDescriptor.SerializeToString,
                response_deserializer=context__pb2.Empty.FromString,
                )
        self.DeleteKpi = channel.unary_unary(
                '/monitoring.MonitoringService/DeleteKpi',
                request_serializer=monitoring__pb2.KpiId.SerializeToString,
                response_deserializer=context__pb2.Empty.FromString,
                )
        self.GetKpiDescriptorList = channel.unary_unary(
                '/monitoring.MonitoringService/GetKpiDescriptorList',
                request_serializer=context__pb2.Empty.SerializeToString,
                response_deserializer=monitoring__pb2.KpiDescriptorList.FromString,
                )
        self.CreateBundleKpi = channel.unary_unary(
                '/monitoring.MonitoringService/CreateBundleKpi',
                request_serializer=monitoring__pb2.BundleKpiDescriptor.SerializeToString,
                response_deserializer=monitoring__pb2.KpiId.FromString,
                )
        self.GetKpiDescriptor = channel.unary_unary(
                '/monitoring.MonitoringService/GetKpiDescriptor',
                request_serializer=monitoring__pb2.KpiId.SerializeToString,
                response_deserializer=monitoring__pb2.KpiDescriptor.FromString,
                )
        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.MonitorKpiRequest.SerializeToString,
                response_deserializer=context__pb2.Empty.FromString,
                )
        self.QueryKpiData = channel.unary_unary(
                '/monitoring.MonitoringService/QueryKpiData',
                request_serializer=monitoring__pb2.KpiQuery.SerializeToString,
                response_deserializer=monitoring__pb2.KpiList.FromString,
                )
        self.SubscribeKpi = channel.unary_stream(
                '/monitoring.MonitoringService/SubscribeKpi',
                request_serializer=monitoring__pb2.SubsDescriptor.SerializeToString,
                response_deserializer=monitoring__pb2.KpiList.FromString,
                )
        self.GetSubsDescriptor = channel.unary_unary(
                '/monitoring.MonitoringService/GetSubsDescriptor',
                request_serializer=monitoring__pb2.SubscriptionID.SerializeToString,
                response_deserializer=monitoring__pb2.SubsDescriptor.FromString,
                )
        self.GetSubscriptions = channel.unary_unary(
                '/monitoring.MonitoringService/GetSubscriptions',
                request_serializer=context__pb2.Empty.SerializeToString,
                response_deserializer=monitoring__pb2.SubsIDList.FromString,
                )
        self.EditKpiSubscription = channel.unary_unary(
                '/monitoring.MonitoringService/EditKpiSubscription',
                request_serializer=monitoring__pb2.SubsDescriptor.SerializeToString,
                response_deserializer=context__pb2.Empty.FromString,
                )
        self.CreateKpiAlarm = channel.unary_unary(
                '/monitoring.MonitoringService/CreateKpiAlarm',
                request_serializer=monitoring__pb2.AlarmDescriptor.SerializeToString,
                response_deserializer=monitoring__pb2.AlarmResponse.FromString,
                )
        self.EditKpiAlarm = channel.unary_unary(
                '/monitoring.MonitoringService/EditKpiAlarm',
                request_serializer=monitoring__pb2.AlarmDescriptor.SerializeToString,
                response_deserializer=context__pb2.Empty.FromString,
                )
        self.GetAlarms = channel.unary_unary(
                '/monitoring.MonitoringService/GetAlarms',
                request_serializer=context__pb2.Empty.SerializeToString,
                response_deserializer=monitoring__pb2.AlarmIDList.FromString,
                )
        self.GetAlarmDescriptor = channel.unary_unary(
                '/monitoring.MonitoringService/GetAlarmDescriptor',
                request_serializer=monitoring__pb2.AlarmID.SerializeToString,
                response_deserializer=monitoring__pb2.AlarmDescriptor.FromString,
                )


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

    def CreateKpi(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 EditKpiDescriptor(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 DeleteKpi(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 GetKpiDescriptorList(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 CreateBundleKpi(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 GetKpiDescriptor(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 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 QueryKpiData(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 SubscribeKpi(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 GetSubsDescriptor(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 GetSubscriptions(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 EditKpiSubscription(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 CreateKpiAlarm(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 EditKpiAlarm(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 GetAlarms(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 GetAlarmDescriptor(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 = {
            'CreateKpi': grpc.unary_unary_rpc_method_handler(
                    servicer.CreateKpi,
                    request_deserializer=monitoring__pb2.KpiDescriptor.FromString,
                    response_serializer=monitoring__pb2.KpiId.SerializeToString,
            ),
            'EditKpiDescriptor': grpc.unary_unary_rpc_method_handler(
                    servicer.EditKpiDescriptor,
                    request_deserializer=monitoring__pb2.EditedKpiDescriptor.FromString,
                    response_serializer=context__pb2.Empty.SerializeToString,
            ),
            'DeleteKpi': grpc.unary_unary_rpc_method_handler(
                    servicer.DeleteKpi,
                    request_deserializer=monitoring__pb2.KpiId.FromString,
                    response_serializer=context__pb2.Empty.SerializeToString,
            ),
            'GetKpiDescriptorList': grpc.unary_unary_rpc_method_handler(
                    servicer.GetKpiDescriptorList,
                    request_deserializer=context__pb2.Empty.FromString,
                    response_serializer=monitoring__pb2.KpiDescriptorList.SerializeToString,
            ),
            'CreateBundleKpi': grpc.unary_unary_rpc_method_handler(
                    servicer.CreateBundleKpi,
                    request_deserializer=monitoring__pb2.BundleKpiDescriptor.FromString,
                    response_serializer=monitoring__pb2.KpiId.SerializeToString,
            ),
            'GetKpiDescriptor': grpc.unary_unary_rpc_method_handler(
                    servicer.GetKpiDescriptor,
                    request_deserializer=monitoring__pb2.KpiId.FromString,
                    response_serializer=monitoring__pb2.KpiDescriptor.SerializeToString,
            ),
            '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.MonitorKpiRequest.FromString,
                    response_serializer=context__pb2.Empty.SerializeToString,
            ),
            'QueryKpiData': grpc.unary_unary_rpc_method_handler(
                    servicer.QueryKpiData,
                    request_deserializer=monitoring__pb2.KpiQuery.FromString,
                    response_serializer=monitoring__pb2.KpiList.SerializeToString,
            ),
            'SubscribeKpi': grpc.unary_stream_rpc_method_handler(
                    servicer.SubscribeKpi,
                    request_deserializer=monitoring__pb2.SubsDescriptor.FromString,
                    response_serializer=monitoring__pb2.KpiList.SerializeToString,
            ),
            'GetSubsDescriptor': grpc.unary_unary_rpc_method_handler(
                    servicer.GetSubsDescriptor,
                    request_deserializer=monitoring__pb2.SubscriptionID.FromString,
                    response_serializer=monitoring__pb2.SubsDescriptor.SerializeToString,
            ),
            'GetSubscriptions': grpc.unary_unary_rpc_method_handler(
                    servicer.GetSubscriptions,
                    request_deserializer=context__pb2.Empty.FromString,
                    response_serializer=monitoring__pb2.SubsIDList.SerializeToString,
            ),
            'EditKpiSubscription': grpc.unary_unary_rpc_method_handler(
                    servicer.EditKpiSubscription,
                    request_deserializer=monitoring__pb2.SubsDescriptor.FromString,
                    response_serializer=context__pb2.Empty.SerializeToString,
            ),
            'CreateKpiAlarm': grpc.unary_unary_rpc_method_handler(
                    servicer.CreateKpiAlarm,
                    request_deserializer=monitoring__pb2.AlarmDescriptor.FromString,
                    response_serializer=monitoring__pb2.AlarmResponse.SerializeToString,
            ),
            'EditKpiAlarm': grpc.unary_unary_rpc_method_handler(
                    servicer.EditKpiAlarm,
                    request_deserializer=monitoring__pb2.AlarmDescriptor.FromString,
                    response_serializer=context__pb2.Empty.SerializeToString,
            ),
            'GetAlarms': grpc.unary_unary_rpc_method_handler(
                    servicer.GetAlarms,
                    request_deserializer=context__pb2.Empty.FromString,
                    response_serializer=monitoring__pb2.AlarmIDList.SerializeToString,
            ),
            'GetAlarmDescriptor': grpc.unary_unary_rpc_method_handler(
                    servicer.GetAlarmDescriptor,
                    request_deserializer=monitoring__pb2.AlarmID.FromString,
                    response_serializer=monitoring__pb2.AlarmDescriptor.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 CreateKpi(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/CreateKpi',
            monitoring__pb2.KpiDescriptor.SerializeToString,
            monitoring__pb2.KpiId.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

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

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

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

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

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

    @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.MonitorKpiRequest.SerializeToString,
            context__pb2.Empty.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def QueryKpiData(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/QueryKpiData',
            monitoring__pb2.KpiQuery.SerializeToString,
            monitoring__pb2.KpiList.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def SubscribeKpi(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/SubscribeKpi',
            monitoring__pb2.SubsDescriptor.SerializeToString,
            monitoring__pb2.KpiList.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def GetSubsDescriptor(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/GetSubsDescriptor',
            monitoring__pb2.SubscriptionID.SerializeToString,
            monitoring__pb2.SubsDescriptor.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

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

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

    @staticmethod
    def CreateKpiAlarm(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/CreateKpiAlarm',
            monitoring__pb2.AlarmDescriptor.SerializeToString,
            monitoring__pb2.AlarmResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

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

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

    @staticmethod
    def GetAlarmDescriptor(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/GetAlarmDescriptor',
            monitoring__pb2.AlarmID.SerializeToString,
            monitoring__pb2.AlarmDescriptor.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
