"""
@generated by mypy-protobuf.  Do not edit manually!
isort:skip_file
"""

import abc
import arg_services.cbr.v1beta.adaptation_pb2
import collections.abc
import grpc
import grpc.aio
import typing

_T = typing.TypeVar("_T")

class _MaybeAsyncIterator(collections.abc.AsyncIterator[_T], collections.abc.Iterator[_T], metaclass=abc.ABCMeta): ...

class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext):  # type: ignore[misc, type-arg]
    ...

class AdaptationServiceStub:
    def __init__(self, channel: typing.Union[grpc.Channel, grpc.aio.Channel]) -> None: ...
    Adapt: grpc.UnaryUnaryMultiCallable[
        arg_services.cbr.v1beta.adaptation_pb2.AdaptRequest,
        arg_services.cbr.v1beta.adaptation_pb2.AdaptResponse,
    ]

class AdaptationServiceAsyncStub:
    Adapt: grpc.aio.UnaryUnaryMultiCallable[
        arg_services.cbr.v1beta.adaptation_pb2.AdaptRequest,
        arg_services.cbr.v1beta.adaptation_pb2.AdaptResponse,
    ]

class AdaptationServiceServicer(metaclass=abc.ABCMeta):
    @abc.abstractmethod
    def Adapt(
        self,
        request: arg_services.cbr.v1beta.adaptation_pb2.AdaptRequest,
        context: _ServicerContext,
    ) -> typing.Union[arg_services.cbr.v1beta.adaptation_pb2.AdaptResponse, collections.abc.Awaitable[arg_services.cbr.v1beta.adaptation_pb2.AdaptResponse]]: ...

def add_AdaptationServiceServicer_to_server(servicer: AdaptationServiceServicer, server: typing.Union[grpc.Server, grpc.aio.Server]) -> None: ...
