# # Autogenerated by Thrift # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # @generated # import folly.iobuf as _fbthrift_iobuf import typing as _typing from thrift.py3.server import RequestContext, ServiceInterface from abc import abstractmethod, ABCMeta import module.types as _module_types _MyServiceInterfaceT = _typing.TypeVar('_MyServiceInterfaceT', bound='MyServiceInterface') class MyServiceInterface( ServiceInterface, metaclass=ABCMeta, ): @abstractmethod async def hasDataById( self, id: int ) -> bool: ... @abstractmethod async def getDataById( self, id: int ) -> str: ... @abstractmethod async def putDataById( self, id: int, data: str ) -> None: ... @abstractmethod async def lobDataById( self, id: int, data: str ) -> None: ... pass _MyServiceFastInterfaceT = _typing.TypeVar('_MyServiceFastInterfaceT', bound='MyServiceFastInterface') class MyServiceFastInterface( ServiceInterface, metaclass=ABCMeta, ): @abstractmethod async def hasDataById( self, id: int ) -> bool: ... @abstractmethod async def getDataById( self, id: int ) -> str: ... @abstractmethod async def putDataById( self, id: int, data: str ) -> None: ... @abstractmethod async def lobDataById( self, id: int, data: str ) -> None: ... pass _DbMixedStackArgumentsInterfaceT = _typing.TypeVar('_DbMixedStackArgumentsInterfaceT', bound='DbMixedStackArgumentsInterface') class DbMixedStackArgumentsInterface( ServiceInterface, metaclass=ABCMeta, ): @abstractmethod async def getDataByKey0( self, key: str ) -> bytes: ... @abstractmethod async def getDataByKey1( self, key: str ) -> bytes: ... pass