# Generated by the Protocol Buffers compiler. DO NOT EDIT!
# source: auth.proto
# plugin: grpclib.plugin.main
import abc
import typing

import grpclib.const
import grpclib.client
if typing.TYPE_CHECKING:
    import grpclib.server

from . import auth_pb2


class AuthBase(abc.ABC):

    @abc.abstractmethod
    async def GetAuthToken(self, stream: 'grpclib.server.Stream[auth_pb2.GetAuthTokenRequest, auth_pb2.GetAuthTokenResponse]') -> None:
        pass

    def __mapping__(self) -> typing.Dict[str, grpclib.const.Handler]:
        return {
            '/Auth/GetAuthToken': grpclib.const.Handler(
                self.GetAuthToken,
                grpclib.const.Cardinality.UNARY_UNARY,
                auth_pb2.GetAuthTokenRequest,
                auth_pb2.GetAuthTokenResponse,
            ),
        }


class AuthStub:

    def __init__(self, channel: grpclib.client.Channel) -> None:
        self.GetAuthToken = grpclib.client.UnaryUnaryMethod(
            channel,
            '/Auth/GetAuthToken',
            auth_pb2.GetAuthTokenRequest,
            auth_pb2.GetAuthTokenResponse,
        )
