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

import abc
import collections.abc
import grpc
import grpc.aio
import typing
import yandex.cloud.ydb.v1.location_pb2
import yandex.cloud.ydb.v1.location_service_pb2

_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 LocationServiceStub:
    def __init__(self, channel: typing.Union[grpc.Channel, grpc.aio.Channel]) -> None: ...
    Get: grpc.UnaryUnaryMultiCallable[
        yandex.cloud.ydb.v1.location_service_pb2.GetLocationRequest,
        yandex.cloud.ydb.v1.location_pb2.Location,
    ]
    """Returns the specified location."""

    List: grpc.UnaryUnaryMultiCallable[
        yandex.cloud.ydb.v1.location_service_pb2.ListLocationsRequest,
        yandex.cloud.ydb.v1.location_service_pb2.ListLocationsResponse,
    ]
    """Returns the list of available locations."""

class LocationServiceAsyncStub:
    Get: grpc.aio.UnaryUnaryMultiCallable[
        yandex.cloud.ydb.v1.location_service_pb2.GetLocationRequest,
        yandex.cloud.ydb.v1.location_pb2.Location,
    ]
    """Returns the specified location."""

    List: grpc.aio.UnaryUnaryMultiCallable[
        yandex.cloud.ydb.v1.location_service_pb2.ListLocationsRequest,
        yandex.cloud.ydb.v1.location_service_pb2.ListLocationsResponse,
    ]
    """Returns the list of available locations."""

class LocationServiceServicer(metaclass=abc.ABCMeta):
    @abc.abstractmethod
    def Get(
        self,
        request: yandex.cloud.ydb.v1.location_service_pb2.GetLocationRequest,
        context: _ServicerContext,
    ) -> typing.Union[yandex.cloud.ydb.v1.location_pb2.Location, collections.abc.Awaitable[yandex.cloud.ydb.v1.location_pb2.Location]]:
        """Returns the specified location."""

    @abc.abstractmethod
    def List(
        self,
        request: yandex.cloud.ydb.v1.location_service_pb2.ListLocationsRequest,
        context: _ServicerContext,
    ) -> typing.Union[yandex.cloud.ydb.v1.location_service_pb2.ListLocationsResponse, collections.abc.Awaitable[yandex.cloud.ydb.v1.location_service_pb2.ListLocationsResponse]]:
        """Returns the list of available locations."""

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