# 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.CreateKpi = channel.unary_unary(
                '/monitoring.MonitoringService/CreateKpi',
                request_serializer=monitoring__pb2.KpiDescriptor.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.GetStreamKpi = channel.unary_stream(
                '/monitoring.MonitoringService/GetStreamKpi',
                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,
                )
        self.CreateMetrics = channel.unary_unary(
                '/monitoring.MonitoringService/CreateMetrics',
                request_serializer=monitoring__pb2.MetricsDescriptor.SerializeToString,
                response_deserializer=monitoring__pb2.MetricsId.FromString,
                )
        self.GetMetricsDescriptor = channel.unary_unary(
                '/monitoring.MonitoringService/GetMetricsDescriptor',
                request_serializer=monitoring__pb2.MetricsId.SerializeToString,
                response_deserializer=monitoring__pb2.MetricsDescriptor.FromString,
                )
        self.IncludeMetrics = channel.unary_unary(
                '/monitoring.MonitoringService/IncludeMetrics',
                request_serializer=monitoring__pb2.Metrics.SerializeToString,
                response_deserializer=context__pb2.Empty.FromString,
                )
        self.MonitorMetrics = channel.unary_unary(
                '/monitoring.MonitoringService/MonitorMetrics',
                request_serializer=monitoring__pb2.MonitorMetricsRequest.SerializeToString,
                response_deserializer=context__pb2.Empty.FromString,
                )
        self.GetStreamMetrics = channel.unary_stream(
                '/monitoring.MonitoringService/GetStreamMetrics',
                request_serializer=monitoring__pb2.MetricsId.SerializeToString,
                response_deserializer=monitoring__pb2.Metrics.FromString,
                )
        self.GetInstantMetrics = channel.unary_unary(
                '/monitoring.MonitoringService/GetInstantMetrics',
                request_serializer=monitoring__pb2.MetricsId.SerializeToString,
                response_deserializer=monitoring__pb2.Metrics.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 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 GetStreamKpi(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 CreateMetrics(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 GetMetricsDescriptor(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 IncludeMetrics(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 MonitorMetrics(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 GetStreamMetrics(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 GetInstantMetrics(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,
            ),
            '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,
            ),
            'GetStreamKpi': grpc.unary_stream_rpc_method_handler(
                    servicer.GetStreamKpi,
                    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,
            ),
            'CreateMetrics': grpc.unary_unary_rpc_method_handler(
                    servicer.CreateMetrics,
                    request_deserializer=monitoring__pb2.MetricsDescriptor.FromString,
                    response_serializer=monitoring__pb2.MetricsId.SerializeToString,
            ),
            'GetMetricsDescriptor': grpc.unary_unary_rpc_method_handler(
                    servicer.GetMetricsDescriptor,
                    request_deserializer=monitoring__pb2.MetricsId.FromString,
                    response_serializer=monitoring__pb2.MetricsDescriptor.SerializeToString,
            ),
            'IncludeMetrics': grpc.unary_unary_rpc_method_handler(
                    servicer.IncludeMetrics,
                    request_deserializer=monitoring__pb2.Metrics.FromString,
                    response_serializer=context__pb2.Empty.SerializeToString,
            ),
            'MonitorMetrics': grpc.unary_unary_rpc_method_handler(
                    servicer.MonitorMetrics,
                    request_deserializer=monitoring__pb2.MonitorMetricsRequest.FromString,
                    response_serializer=context__pb2.Empty.SerializeToString,
            ),
            'GetStreamMetrics': grpc.unary_stream_rpc_method_handler(
                    servicer.GetStreamMetrics,
                    request_deserializer=monitoring__pb2.MetricsId.FromString,
                    response_serializer=monitoring__pb2.Metrics.SerializeToString,
            ),
            'GetInstantMetrics': grpc.unary_unary_rpc_method_handler(
                    servicer.GetInstantMetrics,
                    request_deserializer=monitoring__pb2.MetricsId.FromString,
                    response_serializer=monitoring__pb2.Metrics.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 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 GetStreamKpi(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/GetStreamKpi',
            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)

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

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

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

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

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

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