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

import eci_pb2 as eci__pb2

GRPC_GENERATED_VERSION = '1.75.1'
GRPC_VERSION = grpc.__version__
_version_not_supported = False

try:
    from grpc._utilities import first_version_is_lower
    _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
except ImportError:
    _version_not_supported = True

if _version_not_supported:
    raise RuntimeError(
        f'The grpc package installed is at version {GRPC_VERSION},'
        + f' but the generated code in eci_pb2_grpc.py depends on'
        + f' grpcio>={GRPC_GENERATED_VERSION}.'
        + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
        + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
    )


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

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

        Args:
            channel: A grpc.Channel.
        """
        self.Init = channel.unary_unary(
                '/eci.ECI/Init',
                request_serializer=eci__pb2.InitRequest.SerializeToString,
                response_deserializer=eci__pb2.InitReply.FromString,
                _registered_method=True)
        self.Tts = channel.stream_stream(
                '/eci.ECI/Tts',
                request_serializer=eci__pb2.TtsRequest.SerializeToString,
                response_deserializer=eci__pb2.TtsEvent.FromString,
                _registered_method=True)
        self.SetParam = channel.unary_unary(
                '/eci.ECI/SetParam',
                request_serializer=eci__pb2.SetParamRequest.SerializeToString,
                response_deserializer=eci__pb2.Empty.FromString,
                _registered_method=True)
        self.SetVParam = channel.unary_unary(
                '/eci.ECI/SetVParam',
                request_serializer=eci__pb2.SetVParamRequest.SerializeToString,
                response_deserializer=eci__pb2.Empty.FromString,
                _registered_method=True)
        self.GetVParam = channel.unary_unary(
                '/eci.ECI/GetVParam',
                request_serializer=eci__pb2.GetVParamRequest.SerializeToString,
                response_deserializer=eci__pb2.GetVParamReply.FromString,
                _registered_method=True)
        self.CopyVoice = channel.unary_unary(
                '/eci.ECI/CopyVoice',
                request_serializer=eci__pb2.CopyVoiceRequest.SerializeToString,
                response_deserializer=eci__pb2.Empty.FromString,
                _registered_method=True)
        self.Stop = channel.unary_unary(
                '/eci.ECI/Stop',
                request_serializer=eci__pb2.Empty.SerializeToString,
                response_deserializer=eci__pb2.Empty.FromString,
                _registered_method=True)


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

    def Init(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 Tts(self, request_iterator, 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 SetParam(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 SetVParam(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 GetVParam(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 CopyVoice(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 Stop(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_ECIServicer_to_server(servicer, server):
    rpc_method_handlers = {
            'Init': grpc.unary_unary_rpc_method_handler(
                    servicer.Init,
                    request_deserializer=eci__pb2.InitRequest.FromString,
                    response_serializer=eci__pb2.InitReply.SerializeToString,
            ),
            'Tts': grpc.stream_stream_rpc_method_handler(
                    servicer.Tts,
                    request_deserializer=eci__pb2.TtsRequest.FromString,
                    response_serializer=eci__pb2.TtsEvent.SerializeToString,
            ),
            'SetParam': grpc.unary_unary_rpc_method_handler(
                    servicer.SetParam,
                    request_deserializer=eci__pb2.SetParamRequest.FromString,
                    response_serializer=eci__pb2.Empty.SerializeToString,
            ),
            'SetVParam': grpc.unary_unary_rpc_method_handler(
                    servicer.SetVParam,
                    request_deserializer=eci__pb2.SetVParamRequest.FromString,
                    response_serializer=eci__pb2.Empty.SerializeToString,
            ),
            'GetVParam': grpc.unary_unary_rpc_method_handler(
                    servicer.GetVParam,
                    request_deserializer=eci__pb2.GetVParamRequest.FromString,
                    response_serializer=eci__pb2.GetVParamReply.SerializeToString,
            ),
            'CopyVoice': grpc.unary_unary_rpc_method_handler(
                    servicer.CopyVoice,
                    request_deserializer=eci__pb2.CopyVoiceRequest.FromString,
                    response_serializer=eci__pb2.Empty.SerializeToString,
            ),
            'Stop': grpc.unary_unary_rpc_method_handler(
                    servicer.Stop,
                    request_deserializer=eci__pb2.Empty.FromString,
                    response_serializer=eci__pb2.Empty.SerializeToString,
            ),
    }
    generic_handler = grpc.method_handlers_generic_handler(
            'eci.ECI', rpc_method_handlers)
    server.add_generic_rpc_handlers((generic_handler,))
    server.add_registered_method_handlers('eci.ECI', rpc_method_handlers)


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

    @staticmethod
    def Init(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,
            '/eci.ECI/Init',
            eci__pb2.InitRequest.SerializeToString,
            eci__pb2.InitReply.FromString,
            options,
            channel_credentials,
            insecure,
            call_credentials,
            compression,
            wait_for_ready,
            timeout,
            metadata,
            _registered_method=True)

    @staticmethod
    def Tts(request_iterator,
            target,
            options=(),
            channel_credentials=None,
            call_credentials=None,
            insecure=False,
            compression=None,
            wait_for_ready=None,
            timeout=None,
            metadata=None):
        return grpc.experimental.stream_stream(
            request_iterator,
            target,
            '/eci.ECI/Tts',
            eci__pb2.TtsRequest.SerializeToString,
            eci__pb2.TtsEvent.FromString,
            options,
            channel_credentials,
            insecure,
            call_credentials,
            compression,
            wait_for_ready,
            timeout,
            metadata,
            _registered_method=True)

    @staticmethod
    def SetParam(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,
            '/eci.ECI/SetParam',
            eci__pb2.SetParamRequest.SerializeToString,
            eci__pb2.Empty.FromString,
            options,
            channel_credentials,
            insecure,
            call_credentials,
            compression,
            wait_for_ready,
            timeout,
            metadata,
            _registered_method=True)

    @staticmethod
    def SetVParam(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,
            '/eci.ECI/SetVParam',
            eci__pb2.SetVParamRequest.SerializeToString,
            eci__pb2.Empty.FromString,
            options,
            channel_credentials,
            insecure,
            call_credentials,
            compression,
            wait_for_ready,
            timeout,
            metadata,
            _registered_method=True)

    @staticmethod
    def GetVParam(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,
            '/eci.ECI/GetVParam',
            eci__pb2.GetVParamRequest.SerializeToString,
            eci__pb2.GetVParamReply.FromString,
            options,
            channel_credentials,
            insecure,
            call_credentials,
            compression,
            wait_for_ready,
            timeout,
            metadata,
            _registered_method=True)

    @staticmethod
    def CopyVoice(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,
            '/eci.ECI/CopyVoice',
            eci__pb2.CopyVoiceRequest.SerializeToString,
            eci__pb2.Empty.FromString,
            options,
            channel_credentials,
            insecure,
            call_credentials,
            compression,
            wait_for_ready,
            timeout,
            metadata,
            _registered_method=True)

    @staticmethod
    def Stop(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,
            '/eci.ECI/Stop',
            eci__pb2.Empty.SerializeToString,
            eci__pb2.Empty.FromString,
            options,
            channel_credentials,
            insecure,
            call_credentials,
            compression,
            wait_for_ready,
            timeout,
            metadata,
            _registered_method=True)
