"""
@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.loadtesting.agent.v1.agent_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 AgentServiceStub:
    def __init__(self, channel: typing.Union[grpc.Channel, grpc.aio.Channel]) -> None: ...
    ClaimStatus: grpc.UnaryUnaryMultiCallable[
        yandex.cloud.loadtesting.agent.v1.agent_service_pb2.ClaimAgentStatusRequest,
        yandex.cloud.loadtesting.agent.v1.agent_service_pb2.ClaimAgentStatusResponse,
    ]
    """Claims status for the specified agent."""

    ReportEventLogs: grpc.UnaryUnaryMultiCallable[
        yandex.cloud.loadtesting.agent.v1.agent_service_pb2.ReportEventLogsRequest,
        yandex.cloud.loadtesting.agent.v1.agent_service_pb2.ReportEventLogsResponse,
    ]

class AgentServiceAsyncStub:
    ClaimStatus: grpc.aio.UnaryUnaryMultiCallable[
        yandex.cloud.loadtesting.agent.v1.agent_service_pb2.ClaimAgentStatusRequest,
        yandex.cloud.loadtesting.agent.v1.agent_service_pb2.ClaimAgentStatusResponse,
    ]
    """Claims status for the specified agent."""

    ReportEventLogs: grpc.aio.UnaryUnaryMultiCallable[
        yandex.cloud.loadtesting.agent.v1.agent_service_pb2.ReportEventLogsRequest,
        yandex.cloud.loadtesting.agent.v1.agent_service_pb2.ReportEventLogsResponse,
    ]

class AgentServiceServicer(metaclass=abc.ABCMeta):
    @abc.abstractmethod
    def ClaimStatus(
        self,
        request: yandex.cloud.loadtesting.agent.v1.agent_service_pb2.ClaimAgentStatusRequest,
        context: _ServicerContext,
    ) -> typing.Union[yandex.cloud.loadtesting.agent.v1.agent_service_pb2.ClaimAgentStatusResponse, collections.abc.Awaitable[yandex.cloud.loadtesting.agent.v1.agent_service_pb2.ClaimAgentStatusResponse]]:
        """Claims status for the specified agent."""

    @abc.abstractmethod
    def ReportEventLogs(
        self,
        request: yandex.cloud.loadtesting.agent.v1.agent_service_pb2.ReportEventLogsRequest,
        context: _ServicerContext,
    ) -> typing.Union[yandex.cloud.loadtesting.agent.v1.agent_service_pb2.ReportEventLogsResponse, collections.abc.Awaitable[yandex.cloud.loadtesting.agent.v1.agent_service_pb2.ReportEventLogsResponse]]: ...

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