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


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

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

        Args:
            channel: A grpc.Channel.
        """
        self.check_credentials = channel.unary_unary(
                '/compute.ComputeService/check_credentials',
                request_serializer=context__pb2.TeraFlowController.SerializeToString,
                response_deserializer=context__pb2.AuthenticationResult.FromString,
                )
        self.get_connectivity_service_status = channel.unary_unary(
                '/compute.ComputeService/get_connectivity_service_status',
                request_serializer=service__pb2.ServiceId.SerializeToString,
                response_deserializer=service__pb2.ServiceState.FromString,
                )
        self.create_connectivity_service = channel.unary_unary(
                '/compute.ComputeService/create_connectivity_service',
                request_serializer=service__pb2.Service.SerializeToString,
                response_deserializer=service__pb2.ServiceId.FromString,
                )
        self.edit_connectivity_service = channel.unary_unary(
                '/compute.ComputeService/edit_connectivity_service',
                request_serializer=service__pb2.Service.SerializeToString,
                response_deserializer=service__pb2.ServiceId.FromString,
                )
        self.delete_connectivity_service = channel.unary_unary(
                '/compute.ComputeService/delete_connectivity_service',
                request_serializer=service__pb2.Service.SerializeToString,
                response_deserializer=context__pb2.Empty.FromString,
                )
        self.get_all_active_connectivity_services = channel.unary_unary(
                '/compute.ComputeService/get_all_active_connectivity_services',
                request_serializer=context__pb2.Empty.SerializeToString,
                response_deserializer=service__pb2.ServiceIdList.FromString,
                )
        self.clear_all_connectivity_services = channel.unary_unary(
                '/compute.ComputeService/clear_all_connectivity_services',
                request_serializer=context__pb2.Empty.SerializeToString,
                response_deserializer=context__pb2.Empty.FromString,
                )


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

    def check_credentials(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 get_connectivity_service_status(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 create_connectivity_service(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 edit_connectivity_service(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 delete_connectivity_service(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 get_all_active_connectivity_services(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 clear_all_connectivity_services(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_ComputeServiceServicer_to_server(servicer, server):
    rpc_method_handlers = {
            'check_credentials': grpc.unary_unary_rpc_method_handler(
                    servicer.check_credentials,
                    request_deserializer=context__pb2.TeraFlowController.FromString,
                    response_serializer=context__pb2.AuthenticationResult.SerializeToString,
            ),
            'get_connectivity_service_status': grpc.unary_unary_rpc_method_handler(
                    servicer.get_connectivity_service_status,
                    request_deserializer=service__pb2.ServiceId.FromString,
                    response_serializer=service__pb2.ServiceState.SerializeToString,
            ),
            'create_connectivity_service': grpc.unary_unary_rpc_method_handler(
                    servicer.create_connectivity_service,
                    request_deserializer=service__pb2.Service.FromString,
                    response_serializer=service__pb2.ServiceId.SerializeToString,
            ),
            'edit_connectivity_service': grpc.unary_unary_rpc_method_handler(
                    servicer.edit_connectivity_service,
                    request_deserializer=service__pb2.Service.FromString,
                    response_serializer=service__pb2.ServiceId.SerializeToString,
            ),
            'delete_connectivity_service': grpc.unary_unary_rpc_method_handler(
                    servicer.delete_connectivity_service,
                    request_deserializer=service__pb2.Service.FromString,
                    response_serializer=context__pb2.Empty.SerializeToString,
            ),
            'get_all_active_connectivity_services': grpc.unary_unary_rpc_method_handler(
                    servicer.get_all_active_connectivity_services,
                    request_deserializer=context__pb2.Empty.FromString,
                    response_serializer=service__pb2.ServiceIdList.SerializeToString,
            ),
            'clear_all_connectivity_services': grpc.unary_unary_rpc_method_handler(
                    servicer.clear_all_connectivity_services,
                    request_deserializer=context__pb2.Empty.FromString,
                    response_serializer=context__pb2.Empty.SerializeToString,
            ),
    }
    generic_handler = grpc.method_handlers_generic_handler(
            'compute.ComputeService', rpc_method_handlers)
    server.add_generic_rpc_handlers((generic_handler,))


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

    @staticmethod
    def check_credentials(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, '/compute.ComputeService/check_credentials',
            context__pb2.TeraFlowController.SerializeToString,
            context__pb2.AuthenticationResult.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def get_connectivity_service_status(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, '/compute.ComputeService/get_connectivity_service_status',
            service__pb2.ServiceId.SerializeToString,
            service__pb2.ServiceState.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

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

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

    @staticmethod
    def delete_connectivity_service(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, '/compute.ComputeService/delete_connectivity_service',
            service__pb2.Service.SerializeToString,
            context__pb2.Empty.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def get_all_active_connectivity_services(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, '/compute.ComputeService/get_all_active_connectivity_services',
            context__pb2.Empty.SerializeToString,
            service__pb2.ServiceIdList.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

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