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

from forch.proto import endpoint_server_pb2 as forch_dot_proto_dot_endpoint__server__pb2
from forch.proto import shared_constants_pb2 as forch_dot_proto_dot_shared__constants__pb2


class EndpointServerStub(object):
    """
    Device testing session server endpoint.
    """

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

        Args:
            channel: A grpc.Channel.
        """
        self.ConfigureInterface = channel.unary_unary(
                '/EndpointServer/ConfigureInterface',
                request_serializer=forch_dot_proto_dot_endpoint__server__pb2.Endpoint.SerializeToString,
                response_deserializer=forch_dot_proto_dot_shared__constants__pb2.Empty.FromString,
                )
        self.CleanupInterface = channel.unary_unary(
                '/EndpointServer/CleanupInterface',
                request_serializer=forch_dot_proto_dot_endpoint__server__pb2.Endpoint.SerializeToString,
                response_deserializer=forch_dot_proto_dot_shared__constants__pb2.Empty.FromString,
                )


class EndpointServerServicer(object):
    """
    Device testing session server endpoint.
    """

    def ConfigureInterface(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 CleanupInterface(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_EndpointServerServicer_to_server(servicer, server):
    rpc_method_handlers = {
            'ConfigureInterface': grpc.unary_unary_rpc_method_handler(
                    servicer.ConfigureInterface,
                    request_deserializer=forch_dot_proto_dot_endpoint__server__pb2.Endpoint.FromString,
                    response_serializer=forch_dot_proto_dot_shared__constants__pb2.Empty.SerializeToString,
            ),
            'CleanupInterface': grpc.unary_unary_rpc_method_handler(
                    servicer.CleanupInterface,
                    request_deserializer=forch_dot_proto_dot_endpoint__server__pb2.Endpoint.FromString,
                    response_serializer=forch_dot_proto_dot_shared__constants__pb2.Empty.SerializeToString,
            ),
    }
    generic_handler = grpc.method_handlers_generic_handler(
            'EndpointServer', rpc_method_handlers)
    server.add_generic_rpc_handlers((generic_handler,))


 # This class is part of an EXPERIMENTAL API.
class EndpointServer(object):
    """
    Device testing session server endpoint.
    """

    @staticmethod
    def ConfigureInterface(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, '/EndpointServer/ConfigureInterface',
            forch_dot_proto_dot_endpoint__server__pb2.Endpoint.SerializeToString,
            forch_dot_proto_dot_shared__constants__pb2.Empty.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def CleanupInterface(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, '/EndpointServer/CleanupInterface',
            forch_dot_proto_dot_endpoint__server__pb2.Endpoint.SerializeToString,
            forch_dot_proto_dot_shared__constants__pb2.Empty.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

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

from forch.proto import endpoint_server_pb2 as forch_dot_proto_dot_endpoint__server__pb2
from forch.proto import shared_constants_pb2 as forch_dot_proto_dot_shared__constants__pb2


class EndpointServerStub(object):
    """
    Device testing session server endpoint.
    """

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

        Args:
            channel: A grpc.Channel.
        """
        self.ConfigureInterface = channel.unary_unary(
                '/EndpointServer/ConfigureInterface',
                request_serializer=forch_dot_proto_dot_endpoint__server__pb2.Endpoint.SerializeToString,
                response_deserializer=forch_dot_proto_dot_shared__constants__pb2.Empty.FromString,
                )
        self.CleanupInterface = channel.unary_unary(
                '/EndpointServer/CleanupInterface',
                request_serializer=forch_dot_proto_dot_endpoint__server__pb2.Endpoint.SerializeToString,
                response_deserializer=forch_dot_proto_dot_shared__constants__pb2.Empty.FromString,
                )


class EndpointServerServicer(object):
    """
    Device testing session server endpoint.
    """

    def ConfigureInterface(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 CleanupInterface(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_EndpointServerServicer_to_server(servicer, server):
    rpc_method_handlers = {
            'ConfigureInterface': grpc.unary_unary_rpc_method_handler(
                    servicer.ConfigureInterface,
                    request_deserializer=forch_dot_proto_dot_endpoint__server__pb2.Endpoint.FromString,
                    response_serializer=forch_dot_proto_dot_shared__constants__pb2.Empty.SerializeToString,
            ),
            'CleanupInterface': grpc.unary_unary_rpc_method_handler(
                    servicer.CleanupInterface,
                    request_deserializer=forch_dot_proto_dot_endpoint__server__pb2.Endpoint.FromString,
                    response_serializer=forch_dot_proto_dot_shared__constants__pb2.Empty.SerializeToString,
            ),
    }
    generic_handler = grpc.method_handlers_generic_handler(
            'EndpointServer', rpc_method_handlers)
    server.add_generic_rpc_handlers((generic_handler,))


 # This class is part of an EXPERIMENTAL API.
class EndpointServer(object):
    """
    Device testing session server endpoint.
    """

    @staticmethod
    def ConfigureInterface(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, '/EndpointServer/ConfigureInterface',
            forch_dot_proto_dot_endpoint__server__pb2.Endpoint.SerializeToString,
            forch_dot_proto_dot_shared__constants__pb2.Empty.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def CleanupInterface(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, '/EndpointServer/CleanupInterface',
            forch_dot_proto_dot_endpoint__server__pb2.Endpoint.SerializeToString,
            forch_dot_proto_dot_shared__constants__pb2.Empty.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! Client and server classes corresponding to protobuf-defined services. Device testing session server endpoint. Constructor.          Args:             channel: A grpc.Channel. Device testing session server endpoint. Missing associated documentation comment in .proto file. Missing associated documentation comment in .proto file. # This class is part of an EXPERIMENTAL API. Device testing session server endpoint.