138 lines
5.9 KiB
Python
138 lines
5.9 KiB
Python
from google.protobuf.internal import containers as _containers
|
|
from google.protobuf import descriptor as _descriptor
|
|
from google.protobuf import message as _message
|
|
from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union
|
|
|
|
DESCRIPTOR: _descriptor.FileDescriptor
|
|
|
|
class Level(_message.Message):
|
|
__slots__ = ("visitor_threshold", "difficulty_factor")
|
|
VISITOR_THRESHOLD_FIELD_NUMBER: _ClassVar[int]
|
|
DIFFICULTY_FACTOR_FIELD_NUMBER: _ClassVar[int]
|
|
visitor_threshold: int
|
|
difficulty_factor: int
|
|
def __init__(self, visitor_threshold: _Optional[int] = ..., difficulty_factor: _Optional[int] = ...) -> None: ...
|
|
|
|
class Defense(_message.Message):
|
|
__slots__ = ("levels",)
|
|
LEVELS_FIELD_NUMBER: _ClassVar[int]
|
|
levels: _containers.RepeatedCompositeFieldContainer[Level]
|
|
def __init__(self, levels: _Optional[_Iterable[_Union[Level, _Mapping]]] = ...) -> None: ...
|
|
|
|
class MCaptcha(_message.Message):
|
|
__slots__ = ("visitor_threshold", "duration", "defense")
|
|
VISITOR_THRESHOLD_FIELD_NUMBER: _ClassVar[int]
|
|
DURATION_FIELD_NUMBER: _ClassVar[int]
|
|
DEFENSE_FIELD_NUMBER: _ClassVar[int]
|
|
visitor_threshold: int
|
|
duration: int
|
|
defense: Defense
|
|
def __init__(self, visitor_threshold: _Optional[int] = ..., duration: _Optional[int] = ..., defense: _Optional[_Union[Defense, _Mapping]] = ...) -> None: ...
|
|
|
|
class AddCaptcha(_message.Message):
|
|
__slots__ = ("id", "mcaptcha")
|
|
ID_FIELD_NUMBER: _ClassVar[int]
|
|
MCAPTCHA_FIELD_NUMBER: _ClassVar[int]
|
|
id: str
|
|
mcaptcha: MCaptcha
|
|
def __init__(self, id: _Optional[str] = ..., mcaptcha: _Optional[_Union[MCaptcha, _Mapping]] = ...) -> None: ...
|
|
|
|
class RenameCaptcha(_message.Message):
|
|
__slots__ = ("name", "rename_to")
|
|
NAME_FIELD_NUMBER: _ClassVar[int]
|
|
RENAME_TO_FIELD_NUMBER: _ClassVar[int]
|
|
name: str
|
|
rename_to: str
|
|
def __init__(self, name: _Optional[str] = ..., rename_to: _Optional[str] = ...) -> None: ...
|
|
|
|
class CachePoW(_message.Message):
|
|
__slots__ = ("string", "difficulty_factor", "duration", "key")
|
|
STRING_FIELD_NUMBER: _ClassVar[int]
|
|
DIFFICULTY_FACTOR_FIELD_NUMBER: _ClassVar[int]
|
|
DURATION_FIELD_NUMBER: _ClassVar[int]
|
|
KEY_FIELD_NUMBER: _ClassVar[int]
|
|
string: str
|
|
difficulty_factor: int
|
|
duration: int
|
|
key: str
|
|
def __init__(self, string: _Optional[str] = ..., difficulty_factor: _Optional[int] = ..., duration: _Optional[int] = ..., key: _Optional[str] = ...) -> None: ...
|
|
|
|
class CacheResult(_message.Message):
|
|
__slots__ = ("token", "key", "duration")
|
|
TOKEN_FIELD_NUMBER: _ClassVar[int]
|
|
KEY_FIELD_NUMBER: _ClassVar[int]
|
|
DURATION_FIELD_NUMBER: _ClassVar[int]
|
|
token: str
|
|
key: str
|
|
duration: int
|
|
def __init__(self, token: _Optional[str] = ..., key: _Optional[str] = ..., duration: _Optional[int] = ...) -> None: ...
|
|
|
|
class DeleteCaptchaResult(_message.Message):
|
|
__slots__ = ("token",)
|
|
TOKEN_FIELD_NUMBER: _ClassVar[int]
|
|
token: str
|
|
def __init__(self, token: _Optional[str] = ...) -> None: ...
|
|
|
|
class DcacheRequest(_message.Message):
|
|
__slots__ = ("AddVisitor", "add_captcha", "rename_captcha", "remove_captcha", "cache_pow", "delete_pow", "cache_result", "delete_captcha_result")
|
|
ADDVISITOR_FIELD_NUMBER: _ClassVar[int]
|
|
ADD_CAPTCHA_FIELD_NUMBER: _ClassVar[int]
|
|
RENAME_CAPTCHA_FIELD_NUMBER: _ClassVar[int]
|
|
REMOVE_CAPTCHA_FIELD_NUMBER: _ClassVar[int]
|
|
CACHE_POW_FIELD_NUMBER: _ClassVar[int]
|
|
DELETE_POW_FIELD_NUMBER: _ClassVar[int]
|
|
CACHE_RESULT_FIELD_NUMBER: _ClassVar[int]
|
|
DELETE_CAPTCHA_RESULT_FIELD_NUMBER: _ClassVar[int]
|
|
AddVisitor: str
|
|
add_captcha: AddCaptcha
|
|
rename_captcha: RenameCaptcha
|
|
remove_captcha: str
|
|
cache_pow: CachePoW
|
|
delete_pow: str
|
|
cache_result: CacheResult
|
|
delete_captcha_result: DeleteCaptchaResult
|
|
def __init__(self, AddVisitor: _Optional[str] = ..., add_captcha: _Optional[_Union[AddCaptcha, _Mapping]] = ..., rename_captcha: _Optional[_Union[RenameCaptcha, _Mapping]] = ..., remove_captcha: _Optional[str] = ..., cache_pow: _Optional[_Union[CachePoW, _Mapping]] = ..., delete_pow: _Optional[str] = ..., cache_result: _Optional[_Union[CacheResult, _Mapping]] = ..., delete_captcha_result: _Optional[_Union[DeleteCaptchaResult, _Mapping]] = ...) -> None: ...
|
|
|
|
class AddVisitorResult(_message.Message):
|
|
__slots__ = ("duration", "difficulty_factor")
|
|
DURATION_FIELD_NUMBER: _ClassVar[int]
|
|
DIFFICULTY_FACTOR_FIELD_NUMBER: _ClassVar[int]
|
|
duration: int
|
|
difficulty_factor: int
|
|
def __init__(self, duration: _Optional[int] = ..., difficulty_factor: _Optional[int] = ...) -> None: ...
|
|
|
|
class OptionAddVisitorResult(_message.Message):
|
|
__slots__ = ("result",)
|
|
RESULT_FIELD_NUMBER: _ClassVar[int]
|
|
result: AddVisitorResult
|
|
def __init__(self, result: _Optional[_Union[AddVisitorResult, _Mapping]] = ...) -> None: ...
|
|
|
|
class DcacheResponse(_message.Message):
|
|
__slots__ = ("option_add_visitor_result", "empty")
|
|
OPTION_ADD_VISITOR_RESULT_FIELD_NUMBER: _ClassVar[int]
|
|
EMPTY_FIELD_NUMBER: _ClassVar[int]
|
|
option_add_visitor_result: OptionAddVisitorResult
|
|
empty: int
|
|
def __init__(self, option_add_visitor_result: _Optional[_Union[OptionAddVisitorResult, _Mapping]] = ..., empty: _Optional[int] = ...) -> None: ...
|
|
|
|
class RaftRequest(_message.Message):
|
|
__slots__ = ("data",)
|
|
DATA_FIELD_NUMBER: _ClassVar[int]
|
|
data: str
|
|
def __init__(self, data: _Optional[str] = ...) -> None: ...
|
|
|
|
class RaftReply(_message.Message):
|
|
__slots__ = ("data", "error")
|
|
DATA_FIELD_NUMBER: _ClassVar[int]
|
|
ERROR_FIELD_NUMBER: _ClassVar[int]
|
|
data: str
|
|
error: str
|
|
def __init__(self, data: _Optional[str] = ..., error: _Optional[str] = ...) -> None: ...
|
|
|
|
class Learner(_message.Message):
|
|
__slots__ = ("id", "addr")
|
|
ID_FIELD_NUMBER: _ClassVar[int]
|
|
ADDR_FIELD_NUMBER: _ClassVar[int]
|
|
id: int
|
|
addr: str
|
|
def __init__(self, id: _Optional[int] = ..., addr: _Optional[str] = ...) -> None: ...
|