gitscope
← marzneshin / v0.5.0 / app/marznode/marznode_pb2.pyi
https://dev.kronoz.win/r/marzneshin.git
app/marznode/marznode_pb2.pyi · Python
Blame Raw
  1from google.protobuf.internal import containers as _containers
  2from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
  3from google.protobuf import descriptor as _descriptor
  4from google.protobuf import message as _message
  5from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union
  6
  7DESCRIPTOR: _descriptor.FileDescriptor
  8
  9class ConfigFormat(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
 10    __slots__ = ()
 11    PLAIN: _ClassVar[ConfigFormat]
 12    JSON: _ClassVar[ConfigFormat]
 13    YAML: _ClassVar[ConfigFormat]
 14PLAIN: ConfigFormat
 15JSON: ConfigFormat
 16YAML: ConfigFormat
 17
 18class Empty(_message.Message):
 19    __slots__ = ()
 20    def __init__(self) -> None: ...
 21
 22class Backend(_message.Message):
 23    __slots__ = ("name", "type", "version", "inbounds")
 24    NAME_FIELD_NUMBER: _ClassVar[int]
 25    TYPE_FIELD_NUMBER: _ClassVar[int]
 26    VERSION_FIELD_NUMBER: _ClassVar[int]
 27    INBOUNDS_FIELD_NUMBER: _ClassVar[int]
 28    name: str
 29    type: str
 30    version: str
 31    inbounds: _containers.RepeatedCompositeFieldContainer[Inbound]
 32    def __init__(self, name: _Optional[str] = ..., type: _Optional[str] = ..., version: _Optional[str] = ..., inbounds: _Optional[_Iterable[_Union[Inbound, _Mapping]]] = ...) -> None: ...
 33
 34class BackendsResponse(_message.Message):
 35    __slots__ = ("backends",)
 36    BACKENDS_FIELD_NUMBER: _ClassVar[int]
 37    backends: _containers.RepeatedCompositeFieldContainer[Backend]
 38    def __init__(self, backends: _Optional[_Iterable[_Union[Backend, _Mapping]]] = ...) -> None: ...
 39
 40class Inbound(_message.Message):
 41    __slots__ = ("tag", "config")
 42    TAG_FIELD_NUMBER: _ClassVar[int]
 43    CONFIG_FIELD_NUMBER: _ClassVar[int]
 44    tag: str
 45    config: str
 46    def __init__(self, tag: _Optional[str] = ..., config: _Optional[str] = ...) -> None: ...
 47
 48class User(_message.Message):
 49    __slots__ = ("id", "username", "key")
 50    ID_FIELD_NUMBER: _ClassVar[int]
 51    USERNAME_FIELD_NUMBER: _ClassVar[int]
 52    KEY_FIELD_NUMBER: _ClassVar[int]
 53    id: int
 54    username: str
 55    key: str
 56    def __init__(self, id: _Optional[int] = ..., username: _Optional[str] = ..., key: _Optional[str] = ...) -> None: ...
 57
 58class UserData(_message.Message):
 59    __slots__ = ("user", "inbounds")
 60    USER_FIELD_NUMBER: _ClassVar[int]
 61    INBOUNDS_FIELD_NUMBER: _ClassVar[int]
 62    user: User
 63    inbounds: _containers.RepeatedCompositeFieldContainer[Inbound]
 64    def __init__(self, user: _Optional[_Union[User, _Mapping]] = ..., inbounds: _Optional[_Iterable[_Union[Inbound, _Mapping]]] = ...) -> None: ...
 65
 66class UsersData(_message.Message):
 67    __slots__ = ("users_data",)
 68    USERS_DATA_FIELD_NUMBER: _ClassVar[int]
 69    users_data: _containers.RepeatedCompositeFieldContainer[UserData]
 70    def __init__(self, users_data: _Optional[_Iterable[_Union[UserData, _Mapping]]] = ...) -> None: ...
 71
 72class UsersStats(_message.Message):
 73    __slots__ = ("users_stats",)
 74    class UserStats(_message.Message):
 75        __slots__ = ("uid", "usage")
 76        UID_FIELD_NUMBER: _ClassVar[int]
 77        USAGE_FIELD_NUMBER: _ClassVar[int]
 78        uid: int
 79        usage: int
 80        def __init__(self, uid: _Optional[int] = ..., usage: _Optional[int] = ...) -> None: ...
 81    USERS_STATS_FIELD_NUMBER: _ClassVar[int]
 82    users_stats: _containers.RepeatedCompositeFieldContainer[UsersStats.UserStats]
 83    def __init__(self, users_stats: _Optional[_Iterable[_Union[UsersStats.UserStats, _Mapping]]] = ...) -> None: ...
 84
 85class LogLine(_message.Message):
 86    __slots__ = ("line",)
 87    LINE_FIELD_NUMBER: _ClassVar[int]
 88    line: str
 89    def __init__(self, line: _Optional[str] = ...) -> None: ...
 90
 91class BackendConfig(_message.Message):
 92    __slots__ = ("configuration", "config_format")
 93    CONFIGURATION_FIELD_NUMBER: _ClassVar[int]
 94    CONFIG_FORMAT_FIELD_NUMBER: _ClassVar[int]
 95    configuration: str
 96    config_format: ConfigFormat
 97    def __init__(self, configuration: _Optional[str] = ..., config_format: _Optional[_Union[ConfigFormat, str]] = ...) -> None: ...
 98
 99class BackendLogsRequest(_message.Message):
100    __slots__ = ("backend_name", "include_buffer")
101    BACKEND_NAME_FIELD_NUMBER: _ClassVar[int]
102    INCLUDE_BUFFER_FIELD_NUMBER: _ClassVar[int]
103    backend_name: str
104    include_buffer: bool
105    def __init__(self, backend_name: _Optional[str] = ..., include_buffer: bool = ...) -> None: ...
106
107class RestartBackendRequest(_message.Message):
108    __slots__ = ("backend_name", "config")
109    BACKEND_NAME_FIELD_NUMBER: _ClassVar[int]
110    CONFIG_FIELD_NUMBER: _ClassVar[int]
111    backend_name: str
112    config: BackendConfig
113    def __init__(self, backend_name: _Optional[str] = ..., config: _Optional[_Union[BackendConfig, _Mapping]] = ...) -> None: ...
114
115class BackendStats(_message.Message):
116    __slots__ = ("running",)
117    RUNNING_FIELD_NUMBER: _ClassVar[int]
118    running: bool
119    def __init__(self, running: bool = ...) -> None: ...