# 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 service_pb2 as service__pb2


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

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

        Args:
            channel: A grpc.Channel.
        """
        self.GetServiceList = channel.unary_unary(
                '/service.ServiceService/GetServiceList',
                request_serializer=context__pb2.Empty.SerializeToString,
                response_deserializer=service__pb2.ServiceList.FromString,
                )
        self.CreateService = channel.unary_unary(
                '/service.ServiceService/CreateService',
                request_serializer=service__pb2.Service.SerializeToString,
                response_deserializer=service__pb2.ServiceId.FromString,
                )
        self.UpdateService = channel.unary_unary(
                '/service.ServiceService/UpdateService',
                request_serializer=service__pb2.Service.SerializeToString,
                response_deserializer=service__pb2.ServiceId.FromString,
                )
        self.DeleteService = channel.unary_unary(
                '/service.ServiceService/DeleteService',
                request_serializer=service__pb2.Service.SerializeToString,
                response_deserializer=service__pb2.ServiceId.FromString,
                )
        self.GetServiceById = channel.unary_unary(
                '/service.ServiceService/GetServiceById',
                request_serializer=service__pb2.ServiceId.SerializeToString,
                response_deserializer=service__pb2.Service.FromString,
                )
        self.GetConnectionList = channel.unary_unary(
                '/service.ServiceService/GetConnectionList',
                request_serializer=context__pb2.Empty.SerializeToString,
                response_deserializer=service__pb2.ConnectionList.FromString,
                )


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

    def GetServiceList(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 CreateService(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 UpdateService(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 DeleteService(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 GetServiceById(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 GetConnectionList(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_ServiceServiceServicer_to_server(servicer, server):
    rpc_method_handlers = {
            'GetServiceList': grpc.unary_unary_rpc_method_handler(
                    servicer.GetServiceList,
                    request_deserializer=context__pb2.Empty.FromString,
                    response_serializer=service__pb2.ServiceList.SerializeToString,
            ),
            'CreateService': grpc.unary_unary_rpc_method_handler(
                    servicer.CreateService,
                    request_deserializer=service__pb2.Service.FromString,
                    response_serializer=service__pb2.ServiceId.SerializeToString,
            ),
            'UpdateService': grpc.unary_unary_rpc_method_handler(
                    servicer.UpdateService,
                    request_deserializer=service__pb2.Service.FromString,
                    response_serializer=service__pb2.ServiceId.SerializeToString,
            ),
            'DeleteService': grpc.unary_unary_rpc_method_handler(
                    servicer.DeleteService,
                    request_deserializer=service__pb2.Service.FromString,
                    response_serializer=service__pb2.ServiceId.SerializeToString,
            ),
            'GetServiceById': grpc.unary_unary_rpc_method_handler(
                    servicer.GetServiceById,
                    request_deserializer=service__pb2.ServiceId.FromString,
                    response_serializer=service__pb2.Service.SerializeToString,
            ),
            'GetConnectionList': grpc.unary_unary_rpc_method_handler(
                    servicer.GetConnectionList,
                    request_deserializer=context__pb2.Empty.FromString,
                    response_serializer=service__pb2.ConnectionList.SerializeToString,
            ),
    }
    generic_handler = grpc.method_handlers_generic_handler(
            'service.ServiceService', rpc_method_handlers)
    server.add_generic_rpc_handlers((generic_handler,))


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

    @staticmethod
    def GetServiceList(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, '/service.ServiceService/GetServiceList',
            context__pb2.Empty.SerializeToString,
            service__pb2.ServiceList.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def CreateService(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, '/service.ServiceService/CreateService',
            service__pb2.Service.SerializeToString,
            service__pb2.ServiceId.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def UpdateService(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, '/service.ServiceService/UpdateService',
            service__pb2.Service.SerializeToString,
            service__pb2.ServiceId.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def DeleteService(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, '/service.ServiceService/DeleteService',
            service__pb2.Service.SerializeToString,
            service__pb2.ServiceId.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def GetServiceById(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, '/service.ServiceService/GetServiceById',
            service__pb2.ServiceId.SerializeToString,
            service__pb2.Service.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def GetConnectionList(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, '/service.ServiceService/GetConnectionList',
            context__pb2.Empty.SerializeToString,
            service__pb2.ConnectionList.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
