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

import abc
import arg_services.cbr.v1beta.casebase_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 CasebaseServiceStub:
    def __init__(self, channel: typing.Union[grpc.Channel, grpc.aio.Channel]) -> None: ...
    Casebase: grpc.UnaryUnaryMultiCallable[
        arg_services.cbr.v1beta.casebase_pb2.CasebaseRequest,
        arg_services.cbr.v1beta.casebase_pb2.CasebaseResponse,
    ]

class CasebaseServiceAsyncStub:
    Casebase: grpc.aio.UnaryUnaryMultiCallable[
        arg_services.cbr.v1beta.casebase_pb2.CasebaseRequest,
        arg_services.cbr.v1beta.casebase_pb2.CasebaseResponse,
    ]

class CasebaseServiceServicer(metaclass=abc.ABCMeta):
    @abc.abstractmethod
    def Casebase(
        self,
        request: arg_services.cbr.v1beta.casebase_pb2.CasebaseRequest,
        context: _ServicerContext,
    ) -> typing.Union[arg_services.cbr.v1beta.casebase_pb2.CasebaseResponse, collections.abc.Awaitable[arg_services.cbr.v1beta.casebase_pb2.CasebaseResponse]]: ...

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