"""
@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.marketplace.stacklandlicenseapi.v1.license_server_pb2
import yandex.cloud.marketplace.stacklandlicenseapi.v1.sync_pb2
import yandex.cloud.operation.operation_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 LicenseServerServiceStub:
    """Service for managing license servers"""

    def __init__(self, channel: typing.Union[grpc.Channel, grpc.aio.Channel]) -> None: ...
    Register: grpc.UnaryUnaryMultiCallable[
        yandex.cloud.marketplace.stacklandlicenseapi.v1.license_server_pb2.RegisterRequest,
        yandex.cloud.operation.operation_pb2.Operation,
    ]
    """Register a new license server"""

    SyncUsage: grpc.UnaryUnaryMultiCallable[
        yandex.cloud.marketplace.stacklandlicenseapi.v1.sync_pb2.SyncRequest,
        yandex.cloud.operation.operation_pb2.Operation,
    ]
    """Synchronize: get license limits and submit usage data"""

class LicenseServerServiceAsyncStub:
    """Service for managing license servers"""

    Register: grpc.aio.UnaryUnaryMultiCallable[
        yandex.cloud.marketplace.stacklandlicenseapi.v1.license_server_pb2.RegisterRequest,
        yandex.cloud.operation.operation_pb2.Operation,
    ]
    """Register a new license server"""

    SyncUsage: grpc.aio.UnaryUnaryMultiCallable[
        yandex.cloud.marketplace.stacklandlicenseapi.v1.sync_pb2.SyncRequest,
        yandex.cloud.operation.operation_pb2.Operation,
    ]
    """Synchronize: get license limits and submit usage data"""

class LicenseServerServiceServicer(metaclass=abc.ABCMeta):
    """Service for managing license servers"""

    @abc.abstractmethod
    def Register(
        self,
        request: yandex.cloud.marketplace.stacklandlicenseapi.v1.license_server_pb2.RegisterRequest,
        context: _ServicerContext,
    ) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
        """Register a new license server"""

    @abc.abstractmethod
    def SyncUsage(
        self,
        request: yandex.cloud.marketplace.stacklandlicenseapi.v1.sync_pb2.SyncRequest,
        context: _ServicerContext,
    ) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
        """Synchronize: get license limits and submit usage data"""

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