From 7309f6c3285f9657d7e05eb6ed084f161a51392f Mon Sep 17 00:00:00 2001 From: Starry-OvO Date: Mon, 19 Aug 2024 15:49:01 +0800 Subject: [PATCH 1/8] fix: cannot send msg for brand new users #223 --- aiotieba/client.py | 2 +- aiotieba/core/websocket.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/aiotieba/client.py b/aiotieba/client.py index f465d9b4..37d787ad 100644 --- a/aiotieba/client.py +++ b/aiotieba/client.py @@ -259,7 +259,7 @@ async def __upload_sec_key(self) -> None: for group in groups: if group.group_type == GroupType.PRIVATE_MSG: mid_manager.priv_gid = group.group_id - mid_manager.gid2mid = {g.group_id: MsgIDPair(g.last_msg_id, g.last_msg_id) for g in groups} + mid_manager.gid2mid |= {g.group_id: MsgIDPair(g.last_msg_id, g.last_msg_id) for g in groups} self._ws_core._status = WsStatus.OPEN diff --git a/aiotieba/core/websocket.py b/aiotieba/core/websocket.py index 7bd3fa93..d99cb888 100644 --- a/aiotieba/core/websocket.py +++ b/aiotieba/core/websocket.py @@ -101,8 +101,8 @@ class MsgIDPair: 长度为2的msg_id队列 记录新旧msg_id """ - last_id: int - curr_id: int + last_id: int = 0 + curr_id: int = 0 def update_msg_id(self, curr_id: int) -> None: """ @@ -122,8 +122,8 @@ class MsgIDManager: msg_id管理器 """ - priv_gid: int | None = None - gid2mid: dict[int, MsgIDPair] | None = None + priv_gid: int = 0 + gid2mid: dict[int, MsgIDPair] = dcs.field(default_factory=lambda: {0: MsgIDPair()}) def update_msg_id(self, group_id: int, msg_id: int) -> None: """ From cb5b3446dde6d696bb07b328957b0f8821bc76f8 Mon Sep 17 00:00:00 2001 From: Starry-OvO Date: Mon, 19 Aug 2024 15:49:37 +0800 Subject: [PATCH 2/8] chore: bump client version to 12.67.1.0 --- aiotieba/const.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aiotieba/const.py b/aiotieba/const.py index b5ddbf63..0a6eec40 100644 --- a/aiotieba/const.py +++ b/aiotieba/const.py @@ -1,4 +1,4 @@ -MAIN_VERSION = "12.66.1.1" +MAIN_VERSION = "12.67.1.0" POST_VERSION = "12.35.1.0" APP_SECURE_SCHEME = "https" From a70b78d44f784b2322093508c90c94cc069f2674 Mon Sep 17 00:00:00 2001 From: Starry-OvO Date: Mon, 19 Aug 2024 15:50:02 +0800 Subject: [PATCH 3/8] chore: bump version to 4.4.9a0 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 22a4ae4c..b6c070b3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "aiotieba" -version = "4.4.8" +version = "4.4.9a0" description = "Asynchronous I/O Client for Baidu Tieba" authors = [{ name = "Starry-OvO", email = "starry.qvq@gmail.com" }] urls = { Repository = "https://github.com/Starry-OvO/aiotieba/", Documentation = "https://aiotieba.cc/" } From 1b088e971488e0c2347f88616fa6b44ffbbb1601 Mon Sep 17 00:00:00 2001 From: Starry-OvO Date: Fri, 23 Aug 2024 09:04:30 +0800 Subject: [PATCH 4/8] feat: check protobuf runtime version --- aiotieba/api/_protobuf/Agree_pb2.py | 7 +++++-- aiotieba/api/_protobuf/CommonReq_pb2.py | 7 +++++-- aiotieba/api/_protobuf/Error_pb2.py | 7 +++++-- aiotieba/api/_protobuf/ForumList_pb2.py | 7 +++++-- aiotieba/api/_protobuf/FrsTabInfo_pb2.py | 7 +++++-- aiotieba/api/_protobuf/Media_pb2.py | 7 +++++-- aiotieba/api/_protobuf/Page_pb2.py | 7 +++++-- aiotieba/api/_protobuf/PbContent_pb2.py | 7 +++++-- aiotieba/api/_protobuf/PollInfo_pb2.py | 7 +++++-- aiotieba/api/_protobuf/PostInfoList_pb2.py | 7 +++++-- aiotieba/api/_protobuf/Post_pb2.py | 7 +++++-- aiotieba/api/_protobuf/SimpleForum_pb2.py | 7 +++++-- aiotieba/api/_protobuf/SubPostList_pb2.py | 7 +++++-- aiotieba/api/_protobuf/ThreadInfo_pb2.py | 7 +++++-- aiotieba/api/_protobuf/User_pb2.py | 7 +++++-- aiotieba/api/_protobuf/VideoInfo_pb2.py | 7 +++++-- aiotieba/api/_protobuf/Voice_pb2.py | 7 +++++-- aiotieba/api/add_post/protobuf/AddPostReqIdl_pb2.py | 7 +++++-- aiotieba/api/add_post/protobuf/AddPostResIdl_pb2.py | 7 +++++-- .../api/get_bawu_info/protobuf/GetBawuInfoReqIdl_pb2.py | 7 +++++-- .../api/get_bawu_info/protobuf/GetBawuInfoResIdl_pb2.py | 7 +++++-- .../protobuf/UserMuteQueryReqIdl_pb2.py | 9 +++++++-- .../protobuf/UserMuteQueryResIdl_pb2.py | 9 +++++++-- aiotieba/api/get_comments/protobuf/PbFloorReqIdl_pb2.py | 7 +++++-- aiotieba/api/get_comments/protobuf/PbFloorResIdl_pb2.py | 7 +++++-- .../protobuf/GetDislikeListReqIdl_pb2.py | 9 +++++++-- .../protobuf/GetDislikeListResIdl_pb2.py | 9 +++++++-- .../protobuf/GetForumDetailReqIdl_pb2.py | 9 +++++++-- .../protobuf/GetForumDetailResIdl_pb2.py | 9 +++++++-- .../api/get_group_msg/protobuf/GetGroupMsgReqIdl_pb2.py | 7 +++++-- .../api/get_group_msg/protobuf/GetGroupMsgResIdl_pb2.py | 7 +++++-- aiotieba/api/get_posts/protobuf/PbPageReqIdl_pb2.py | 7 +++++-- aiotieba/api/get_posts/protobuf/PbPageResIdl_pb2.py | 7 +++++-- aiotieba/api/get_replys/protobuf/ReplyMeReqIdl_pb2.py | 7 +++++-- aiotieba/api/get_replys/protobuf/ReplyMeResIdl_pb2.py | 7 +++++-- .../protobuf/GetForumSquareReqIdl_pb2.py | 9 +++++++-- .../protobuf/GetForumSquareResIdl_pb2.py | 9 +++++++-- .../get_tab_map/protobuf/SearchPostForumReqIdl_pb2.py | 9 +++++++-- .../get_tab_map/protobuf/SearchPostForumResIdl_pb2.py | 9 +++++++-- aiotieba/api/get_threads/protobuf/FrsPageReqIdl_pb2.py | 7 +++++-- aiotieba/api/get_threads/protobuf/FrsPageResIdl_pb2.py | 7 +++++-- .../protobuf/GetUserInfoReqIdl_pb2.py | 7 +++++-- .../protobuf/GetUserInfoResIdl_pb2.py | 7 +++++-- .../api/get_user_contents/protobuf/UserPostReqIdl_pb2.py | 7 +++++-- .../api/get_user_contents/protobuf/UserPostResIdl_pb2.py | 7 +++++-- .../protobuf/UpdateClientInfoReqIdl_pb2.py | 9 +++++++-- .../protobuf/UpdateClientInfoResIdl_pb2.py | 9 +++++++-- aiotieba/api/profile/protobuf/ProfileReqIdl_pb2.py | 7 +++++-- aiotieba/api/profile/protobuf/ProfileResIdl_pb2.py | 7 +++++-- .../api/push_notify/protobuf/PushNotifyResIdl_pb2.py | 7 +++++-- .../api/send_msg/protobuf/CommitPersonalMsgReqIdl_pb2.py | 9 +++++++-- .../api/send_msg/protobuf/CommitPersonalMsgResIdl_pb2.py | 9 +++++++-- .../api/set_blacklist/protobuf/SetUserBlackReqIdl_pb2.py | 9 +++++++-- .../api/set_blacklist/protobuf/SetUserBlackResIdl_pb2.py | 9 +++++++-- .../protobuf/CommitReceivedPmsgReqIdl_pb2.py | 9 +++++++-- .../protobuf/CommitReceivedPmsgResIdl_pb2.py | 9 +++++++-- .../protobuf/GetUserByTiebaUidReqIdl_pb2.py | 9 +++++++-- .../protobuf/GetUserByTiebaUidResIdl_pb2.py | 9 +++++++-- pyproject.toml | 4 ++-- 59 files changed, 332 insertions(+), 118 deletions(-) diff --git a/aiotieba/api/_protobuf/Agree_pb2.py b/aiotieba/api/_protobuf/Agree_pb2.py index ad91477a..62976955 100644 --- a/aiotieba/api/_protobuf/Agree_pb2.py +++ b/aiotieba/api/_protobuf/Agree_pb2.py @@ -2,9 +2,12 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'Agree.proto') + _sym_db = _symbol_database.Default() @@ -15,7 +18,7 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'Agree_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS is False: - DESCRIPTOR._options = None +if not _descriptor._USE_C_DESCRIPTORS: + DESCRIPTOR._loaded_options = None _globals['_AGREE']._serialized_start = 15 _globals['_AGREE']._serialized_end = 63 diff --git a/aiotieba/api/_protobuf/CommonReq_pb2.py b/aiotieba/api/_protobuf/CommonReq_pb2.py index 6c2a8244..064e013f 100644 --- a/aiotieba/api/_protobuf/CommonReq_pb2.py +++ b/aiotieba/api/_protobuf/CommonReq_pb2.py @@ -2,9 +2,12 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'CommonReq.proto') + _sym_db = _symbol_database.Default() @@ -15,7 +18,7 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'CommonReq_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS is False: - DESCRIPTOR._options = None +if not _descriptor._USE_C_DESCRIPTORS: + DESCRIPTOR._loaded_options = None _globals['_COMMONREQ']._serialized_start = 20 _globals['_COMMONREQ']._serialized_end = 858 diff --git a/aiotieba/api/_protobuf/Error_pb2.py b/aiotieba/api/_protobuf/Error_pb2.py index d4bccaa1..a213541f 100644 --- a/aiotieba/api/_protobuf/Error_pb2.py +++ b/aiotieba/api/_protobuf/Error_pb2.py @@ -2,9 +2,12 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'Error.proto') + _sym_db = _symbol_database.Default() @@ -15,7 +18,7 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'Error_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS is False: - DESCRIPTOR._options = None +if not _descriptor._USE_C_DESCRIPTORS: + DESCRIPTOR._loaded_options = None _globals['_ERROR']._serialized_start = 15 _globals['_ERROR']._serialized_end = 55 diff --git a/aiotieba/api/_protobuf/ForumList_pb2.py b/aiotieba/api/_protobuf/ForumList_pb2.py index 80978a7f..39266af3 100644 --- a/aiotieba/api/_protobuf/ForumList_pb2.py +++ b/aiotieba/api/_protobuf/ForumList_pb2.py @@ -2,9 +2,12 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'ForumList.proto') + _sym_db = _symbol_database.Default() @@ -15,7 +18,7 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'ForumList_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS is False: - DESCRIPTOR._options = None +if not _descriptor._USE_C_DESCRIPTORS: + DESCRIPTOR._loaded_options = None _globals['_FORUMLIST']._serialized_start = 19 _globals['_FORUMLIST']._serialized_end = 128 diff --git a/aiotieba/api/_protobuf/FrsTabInfo_pb2.py b/aiotieba/api/_protobuf/FrsTabInfo_pb2.py index b17ad120..16265b46 100644 --- a/aiotieba/api/_protobuf/FrsTabInfo_pb2.py +++ b/aiotieba/api/_protobuf/FrsTabInfo_pb2.py @@ -2,9 +2,12 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'FrsTabInfo.proto') + _sym_db = _symbol_database.Default() @@ -15,7 +18,7 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'FrsTabInfo_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS is False: - DESCRIPTOR._options = None +if not _descriptor._USE_C_DESCRIPTORS: + DESCRIPTOR._loaded_options = None _globals['_FRSTABINFO']._serialized_start = 20 _globals['_FRSTABINFO']._serialized_end = 66 diff --git a/aiotieba/api/_protobuf/Media_pb2.py b/aiotieba/api/_protobuf/Media_pb2.py index 67edb854..4aee7b45 100644 --- a/aiotieba/api/_protobuf/Media_pb2.py +++ b/aiotieba/api/_protobuf/Media_pb2.py @@ -2,9 +2,12 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'Media.proto') + _sym_db = _symbol_database.Default() @@ -15,7 +18,7 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'Media_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS is False: - DESCRIPTOR._options = None +if not _descriptor._USE_C_DESCRIPTORS: + DESCRIPTOR._loaded_options = None _globals['_MEDIA']._serialized_start = 16 _globals['_MEDIA']._serialized_end = 164 diff --git a/aiotieba/api/_protobuf/Page_pb2.py b/aiotieba/api/_protobuf/Page_pb2.py index be5d3980..a25c43bf 100644 --- a/aiotieba/api/_protobuf/Page_pb2.py +++ b/aiotieba/api/_protobuf/Page_pb2.py @@ -2,9 +2,12 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'Page.proto') + _sym_db = _symbol_database.Default() @@ -15,7 +18,7 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'Page_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS is False: - DESCRIPTOR._options = None +if not _descriptor._USE_C_DESCRIPTORS: + DESCRIPTOR._loaded_options = None _globals['_PAGE']._serialized_start = 14 _globals['_PAGE']._serialized_end = 138 diff --git a/aiotieba/api/_protobuf/PbContent_pb2.py b/aiotieba/api/_protobuf/PbContent_pb2.py index d1d5de74..1b9ac5df 100644 --- a/aiotieba/api/_protobuf/PbContent_pb2.py +++ b/aiotieba/api/_protobuf/PbContent_pb2.py @@ -2,9 +2,12 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'PbContent.proto') + _sym_db = _symbol_database.Default() @@ -15,8 +18,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'PbContent_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS is False: - DESCRIPTOR._options = None +if not _descriptor._USE_C_DESCRIPTORS: + DESCRIPTOR._loaded_options = None _globals['_PBCONTENT']._serialized_start = 20 _globals['_PBCONTENT']._serialized_end = 611 _globals['_PBCONTENT_TIEBAPLUSINFO']._serialized_start = 374 diff --git a/aiotieba/api/_protobuf/PollInfo_pb2.py b/aiotieba/api/_protobuf/PollInfo_pb2.py index f5dc2ab6..fd5dd87b 100644 --- a/aiotieba/api/_protobuf/PollInfo_pb2.py +++ b/aiotieba/api/_protobuf/PollInfo_pb2.py @@ -2,9 +2,12 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'PollInfo.proto') + _sym_db = _symbol_database.Default() @@ -15,8 +18,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'PollInfo_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS is False: - DESCRIPTOR._options = None +if not _descriptor._USE_C_DESCRIPTORS: + DESCRIPTOR._loaded_options = None _globals['_POLLINFO']._serialized_start = 19 _globals['_POLLINFO']._serialized_end = 181 _globals['_POLLINFO_POLLOPTION']._serialized_start = 142 diff --git a/aiotieba/api/_protobuf/PostInfoList_pb2.py b/aiotieba/api/_protobuf/PostInfoList_pb2.py index 75fa7f30..4433501e 100644 --- a/aiotieba/api/_protobuf/PostInfoList_pb2.py +++ b/aiotieba/api/_protobuf/PostInfoList_pb2.py @@ -2,9 +2,12 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'PostInfoList.proto') + _sym_db = _symbol_database.Default() @@ -22,8 +25,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'PostInfoList_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS is False: - DESCRIPTOR._options = None +if not _descriptor._USE_C_DESCRIPTORS: + DESCRIPTOR._loaded_options = None _globals['_POSTINFOLIST']._serialized_start = 112 _globals['_POSTINFOLIST']._serialized_end = 873 _globals['_POSTINFOLIST_POSTINFOCONTENT']._serialized_start = 643 diff --git a/aiotieba/api/_protobuf/Post_pb2.py b/aiotieba/api/_protobuf/Post_pb2.py index 2d722b5f..ddda4b63 100644 --- a/aiotieba/api/_protobuf/Post_pb2.py +++ b/aiotieba/api/_protobuf/Post_pb2.py @@ -2,9 +2,12 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'Post.proto') + _sym_db = _symbol_database.Default() @@ -20,8 +23,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'Post_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS is False: - DESCRIPTOR._options = None +if not _descriptor._USE_C_DESCRIPTORS: + DESCRIPTOR._loaded_options = None _globals['_POST']._serialized_start = 76 _globals['_POST']._serialized_end = 814 _globals['_POST_SUBPOST']._serialized_start = 508 diff --git a/aiotieba/api/_protobuf/SimpleForum_pb2.py b/aiotieba/api/_protobuf/SimpleForum_pb2.py index 7eebd4ca..5b77fdef 100644 --- a/aiotieba/api/_protobuf/SimpleForum_pb2.py +++ b/aiotieba/api/_protobuf/SimpleForum_pb2.py @@ -2,9 +2,12 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'SimpleForum.proto') + _sym_db = _symbol_database.Default() @@ -15,7 +18,7 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'SimpleForum_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS is False: - DESCRIPTOR._options = None +if not _descriptor._USE_C_DESCRIPTORS: + DESCRIPTOR._loaded_options = None _globals['_SIMPLEFORUM']._serialized_start = 21 _globals['_SIMPLEFORUM']._serialized_end = 141 diff --git a/aiotieba/api/_protobuf/SubPostList_pb2.py b/aiotieba/api/_protobuf/SubPostList_pb2.py index a115cfba..cc453057 100644 --- a/aiotieba/api/_protobuf/SubPostList_pb2.py +++ b/aiotieba/api/_protobuf/SubPostList_pb2.py @@ -2,9 +2,12 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'SubPostList.proto') + _sym_db = _symbol_database.Default() @@ -19,8 +22,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'SubPostList_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS is False: - DESCRIPTOR._options = None +if not _descriptor._USE_C_DESCRIPTORS: + DESCRIPTOR._loaded_options = None _globals['_SUBPOSTLIST']._serialized_start = 64 _globals['_SUBPOSTLIST']._serialized_end = 227 _globals['_SUBPOST']._serialized_start = 229 diff --git a/aiotieba/api/_protobuf/ThreadInfo_pb2.py b/aiotieba/api/_protobuf/ThreadInfo_pb2.py index b87a0cb8..ce541d4e 100644 --- a/aiotieba/api/_protobuf/ThreadInfo_pb2.py +++ b/aiotieba/api/_protobuf/ThreadInfo_pb2.py @@ -2,9 +2,12 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'ThreadInfo.proto') + _sym_db = _symbol_database.Default() @@ -23,8 +26,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'ThreadInfo_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS is False: - DESCRIPTOR._options = None +if not _descriptor._USE_C_DESCRIPTORS: + DESCRIPTOR._loaded_options = None _globals['_THREADINFO']._serialized_start = 122 _globals['_THREADINFO']._serialized_end = 1222 _globals['_THREADINFO_ORIGINTHREADINFO']._serialized_start = 919 diff --git a/aiotieba/api/_protobuf/User_pb2.py b/aiotieba/api/_protobuf/User_pb2.py index 2f4bd642..0bdd9a8d 100644 --- a/aiotieba/api/_protobuf/User_pb2.py +++ b/aiotieba/api/_protobuf/User_pb2.py @@ -2,9 +2,12 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'User.proto') + _sym_db = _symbol_database.Default() @@ -15,8 +18,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'User_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS is False: - DESCRIPTOR._options = None +if not _descriptor._USE_C_DESCRIPTORS: + DESCRIPTOR._loaded_options = None _globals['_USER']._serialized_start = 15 _globals['_USER']._serialized_end = 1313 _globals['_USER_ICON']._serialized_start = 752 diff --git a/aiotieba/api/_protobuf/VideoInfo_pb2.py b/aiotieba/api/_protobuf/VideoInfo_pb2.py index e349cc62..9d224ec1 100644 --- a/aiotieba/api/_protobuf/VideoInfo_pb2.py +++ b/aiotieba/api/_protobuf/VideoInfo_pb2.py @@ -2,9 +2,12 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'VideoInfo.proto') + _sym_db = _symbol_database.Default() @@ -15,7 +18,7 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'VideoInfo_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS is False: - DESCRIPTOR._options = None +if not _descriptor._USE_C_DESCRIPTORS: + DESCRIPTOR._loaded_options = None _globals['_VIDEOINFO']._serialized_start = 20 _globals['_VIDEOINFO']._serialized_end = 160 diff --git a/aiotieba/api/_protobuf/Voice_pb2.py b/aiotieba/api/_protobuf/Voice_pb2.py index 1e2a2c36..ec509c9b 100644 --- a/aiotieba/api/_protobuf/Voice_pb2.py +++ b/aiotieba/api/_protobuf/Voice_pb2.py @@ -2,9 +2,12 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'Voice.proto') + _sym_db = _symbol_database.Default() @@ -15,7 +18,7 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'Voice_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS is False: - DESCRIPTOR._options = None +if not _descriptor._USE_C_DESCRIPTORS: + DESCRIPTOR._loaded_options = None _globals['_VOICE']._serialized_start = 15 _globals['_VOICE']._serialized_end = 62 diff --git a/aiotieba/api/add_post/protobuf/AddPostReqIdl_pb2.py b/aiotieba/api/add_post/protobuf/AddPostReqIdl_pb2.py index 59d7243b..327b91bf 100644 --- a/aiotieba/api/add_post/protobuf/AddPostReqIdl_pb2.py +++ b/aiotieba/api/add_post/protobuf/AddPostReqIdl_pb2.py @@ -2,9 +2,12 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'AddPostReqIdl.proto') + _sym_db = _symbol_database.Default() @@ -17,8 +20,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'AddPostReqIdl_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS is False: - DESCRIPTOR._options = None +if not _descriptor._USE_C_DESCRIPTORS: + DESCRIPTOR._loaded_options = None _globals['_ADDPOSTREQIDL']._serialized_start = 41 _globals['_ADDPOSTREQIDL']._serialized_end = 555 _globals['_ADDPOSTREQIDL_DATAREQ']._serialized_start = 97 diff --git a/aiotieba/api/add_post/protobuf/AddPostResIdl_pb2.py b/aiotieba/api/add_post/protobuf/AddPostResIdl_pb2.py index f289ac6a..4cf4f3d0 100644 --- a/aiotieba/api/add_post/protobuf/AddPostResIdl_pb2.py +++ b/aiotieba/api/add_post/protobuf/AddPostResIdl_pb2.py @@ -2,9 +2,12 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'AddPostResIdl.proto') + _sym_db = _symbol_database.Default() @@ -17,8 +20,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'AddPostResIdl_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS is False: - DESCRIPTOR._options = None +if not _descriptor._USE_C_DESCRIPTORS: + DESCRIPTOR._loaded_options = None _globals['_ADDPOSTRESIDL']._serialized_start = 37 _globals['_ADDPOSTRESIDL']._serialized_end = 279 _globals['_ADDPOSTRESIDL_DATARES']._serialized_start = 116 diff --git a/aiotieba/api/get_bawu_info/protobuf/GetBawuInfoReqIdl_pb2.py b/aiotieba/api/get_bawu_info/protobuf/GetBawuInfoReqIdl_pb2.py index 368d8740..2bc8c3cd 100644 --- a/aiotieba/api/get_bawu_info/protobuf/GetBawuInfoReqIdl_pb2.py +++ b/aiotieba/api/get_bawu_info/protobuf/GetBawuInfoReqIdl_pb2.py @@ -2,9 +2,12 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'GetBawuInfoReqIdl.proto') + _sym_db = _symbol_database.Default() @@ -17,8 +20,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'GetBawuInfoReqIdl_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS is False: - DESCRIPTOR._options = None +if not _descriptor._USE_C_DESCRIPTORS: + DESCRIPTOR._loaded_options = None _globals['_GETBAWUINFOREQIDL']._serialized_start = 44 _globals['_GETBAWUINFOREQIDL']._serialized_end = 157 _globals['_GETBAWUINFOREQIDL_DATAREQ']._serialized_start = 107 diff --git a/aiotieba/api/get_bawu_info/protobuf/GetBawuInfoResIdl_pb2.py b/aiotieba/api/get_bawu_info/protobuf/GetBawuInfoResIdl_pb2.py index ff4380ad..de96b003 100644 --- a/aiotieba/api/get_bawu_info/protobuf/GetBawuInfoResIdl_pb2.py +++ b/aiotieba/api/get_bawu_info/protobuf/GetBawuInfoResIdl_pb2.py @@ -2,9 +2,12 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'GetBawuInfoResIdl.proto') + _sym_db = _symbol_database.Default() @@ -17,8 +20,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'GetBawuInfoResIdl_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS is False: - DESCRIPTOR._options = None +if not _descriptor._USE_C_DESCRIPTORS: + DESCRIPTOR._loaded_options = None _globals['_GETBAWUINFORESIDL']._serialized_start = 41 _globals['_GETBAWUINFORESIDL']._serialized_end = 534 _globals['_GETBAWUINFORESIDL_DATARES']._serialized_start = 128 diff --git a/aiotieba/api/get_blacklist_old/protobuf/UserMuteQueryReqIdl_pb2.py b/aiotieba/api/get_blacklist_old/protobuf/UserMuteQueryReqIdl_pb2.py index 720a1ab8..51595c48 100644 --- a/aiotieba/api/get_blacklist_old/protobuf/UserMuteQueryReqIdl_pb2.py +++ b/aiotieba/api/get_blacklist_old/protobuf/UserMuteQueryReqIdl_pb2.py @@ -2,9 +2,14 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'UserMuteQueryReqIdl.proto' +) + _sym_db = _symbol_database.Default() @@ -17,8 +22,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'UserMuteQueryReqIdl_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS is False: - DESCRIPTOR._options = None +if not _descriptor._USE_C_DESCRIPTORS: + DESCRIPTOR._loaded_options = None _globals['_USERMUTEQUERYREQIDL']._serialized_start = 47 _globals['_USERMUTEQUERYREQIDL']._serialized_end = 175 _globals['_USERMUTEQUERYREQIDL_DATAREQ']._serialized_start = 114 diff --git a/aiotieba/api/get_blacklist_old/protobuf/UserMuteQueryResIdl_pb2.py b/aiotieba/api/get_blacklist_old/protobuf/UserMuteQueryResIdl_pb2.py index 6b3a54b6..ac389477 100644 --- a/aiotieba/api/get_blacklist_old/protobuf/UserMuteQueryResIdl_pb2.py +++ b/aiotieba/api/get_blacklist_old/protobuf/UserMuteQueryResIdl_pb2.py @@ -2,9 +2,14 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'UserMuteQueryResIdl.proto' +) + _sym_db = _symbol_database.Default() @@ -18,8 +23,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'UserMuteQueryResIdl_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS is False: - DESCRIPTOR._options = None +if not _descriptor._USE_C_DESCRIPTORS: + DESCRIPTOR._loaded_options = None _globals['_USERMUTEQUERYRESIDL']._serialized_start = 55 _globals['_USERMUTEQUERYRESIDL']._serialized_end = 338 _globals['_USERMUTEQUERYRESIDL_DATARES']._serialized_start = 146 diff --git a/aiotieba/api/get_comments/protobuf/PbFloorReqIdl_pb2.py b/aiotieba/api/get_comments/protobuf/PbFloorReqIdl_pb2.py index 7aafacba..371a8c77 100644 --- a/aiotieba/api/get_comments/protobuf/PbFloorReqIdl_pb2.py +++ b/aiotieba/api/get_comments/protobuf/PbFloorReqIdl_pb2.py @@ -2,9 +2,12 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'PbFloorReqIdl.proto') + _sym_db = _symbol_database.Default() @@ -17,8 +20,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'PbFloorReqIdl_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS is False: - DESCRIPTOR._options = None +if not _descriptor._USE_C_DESCRIPTORS: + DESCRIPTOR._loaded_options = None _globals['_PBFLOORREQIDL']._serialized_start = 41 _globals['_PBFLOORREQIDL']._serialized_end = 184 _globals['_PBFLOORREQIDL_DATAREQ']._serialized_start = 96 diff --git a/aiotieba/api/get_comments/protobuf/PbFloorResIdl_pb2.py b/aiotieba/api/get_comments/protobuf/PbFloorResIdl_pb2.py index 97177152..50d3594d 100644 --- a/aiotieba/api/get_comments/protobuf/PbFloorResIdl_pb2.py +++ b/aiotieba/api/get_comments/protobuf/PbFloorResIdl_pb2.py @@ -2,9 +2,12 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'PbFloorResIdl.proto') + _sym_db = _symbol_database.Default() @@ -22,8 +25,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'PbFloorResIdl_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS is False: - DESCRIPTOR._options = None +if not _descriptor._USE_C_DESCRIPTORS: + DESCRIPTOR._loaded_options = None _globals['_PBFLOORRESIDL']._serialized_start = 117 _globals['_PBFLOORRESIDL']._serialized_end = 341 _globals['_PBFLOORRESIDL_DATARES']._serialized_start = 196 diff --git a/aiotieba/api/get_dislike_forums/protobuf/GetDislikeListReqIdl_pb2.py b/aiotieba/api/get_dislike_forums/protobuf/GetDislikeListReqIdl_pb2.py index 85c2a845..e7e7717d 100644 --- a/aiotieba/api/get_dislike_forums/protobuf/GetDislikeListReqIdl_pb2.py +++ b/aiotieba/api/get_dislike_forums/protobuf/GetDislikeListReqIdl_pb2.py @@ -2,9 +2,14 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'GetDislikeListReqIdl.proto' +) + _sym_db = _symbol_database.Default() @@ -17,8 +22,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'GetDislikeListReqIdl_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS is False: - DESCRIPTOR._options = None +if not _descriptor._USE_C_DESCRIPTORS: + DESCRIPTOR._loaded_options = None _globals['_GETDISLIKELISTREQIDL']._serialized_start = 48 _globals['_GETDISLIKELISTREQIDL']._serialized_end = 178 _globals['_GETDISLIKELISTREQIDL_DATAREQ']._serialized_start = 117 diff --git a/aiotieba/api/get_dislike_forums/protobuf/GetDislikeListResIdl_pb2.py b/aiotieba/api/get_dislike_forums/protobuf/GetDislikeListResIdl_pb2.py index ff4be2ff..e8192496 100644 --- a/aiotieba/api/get_dislike_forums/protobuf/GetDislikeListResIdl_pb2.py +++ b/aiotieba/api/get_dislike_forums/protobuf/GetDislikeListResIdl_pb2.py @@ -2,9 +2,14 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'GetDislikeListResIdl.proto' +) + _sym_db = _symbol_database.Default() @@ -18,8 +23,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'GetDislikeListResIdl_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS is False: - DESCRIPTOR._options = None +if not _descriptor._USE_C_DESCRIPTORS: + DESCRIPTOR._loaded_options = None _globals['_GETDISLIKELISTRESIDL']._serialized_start = 61 _globals['_GETDISLIKELISTRESIDL']._serialized_end = 230 _globals['_GETDISLIKELISTRESIDL_DATARES']._serialized_start = 153 diff --git a/aiotieba/api/get_forum_detail/protobuf/GetForumDetailReqIdl_pb2.py b/aiotieba/api/get_forum_detail/protobuf/GetForumDetailReqIdl_pb2.py index 2cb27f1a..d79922dd 100644 --- a/aiotieba/api/get_forum_detail/protobuf/GetForumDetailReqIdl_pb2.py +++ b/aiotieba/api/get_forum_detail/protobuf/GetForumDetailReqIdl_pb2.py @@ -2,9 +2,14 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'GetForumDetailReqIdl.proto' +) + _sym_db = _symbol_database.Default() @@ -17,8 +22,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'GetForumDetailReqIdl_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS is False: - DESCRIPTOR._options = None +if not _descriptor._USE_C_DESCRIPTORS: + DESCRIPTOR._loaded_options = None _globals['_GETFORUMDETAILREQIDL']._serialized_start = 47 _globals['_GETFORUMDETAILREQIDL']._serialized_end = 171 _globals['_GETFORUMDETAILREQIDL_DATAREQ']._serialized_start = 116 diff --git a/aiotieba/api/get_forum_detail/protobuf/GetForumDetailResIdl_pb2.py b/aiotieba/api/get_forum_detail/protobuf/GetForumDetailResIdl_pb2.py index 6565237e..78c28348 100644 --- a/aiotieba/api/get_forum_detail/protobuf/GetForumDetailResIdl_pb2.py +++ b/aiotieba/api/get_forum_detail/protobuf/GetForumDetailResIdl_pb2.py @@ -2,9 +2,14 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'GetForumDetailResIdl.proto' +) + _sym_db = _symbol_database.Default() @@ -17,8 +22,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'GetForumDetailResIdl_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS is False: - DESCRIPTOR._options = None +if not _descriptor._USE_C_DESCRIPTORS: + DESCRIPTOR._loaded_options = None _globals['_GETFORUMDETAILRESIDL']._serialized_start = 44 _globals['_GETFORUMDETAILRESIDL']._serialized_end = 515 _globals['_GETFORUMDETAILRESIDL_DATARES']._serialized_start = 137 diff --git a/aiotieba/api/get_group_msg/protobuf/GetGroupMsgReqIdl_pb2.py b/aiotieba/api/get_group_msg/protobuf/GetGroupMsgReqIdl_pb2.py index 794ab70d..650d6b57 100644 --- a/aiotieba/api/get_group_msg/protobuf/GetGroupMsgReqIdl_pb2.py +++ b/aiotieba/api/get_group_msg/protobuf/GetGroupMsgReqIdl_pb2.py @@ -2,9 +2,12 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'GetGroupMsgReqIdl.proto') + _sym_db = _symbol_database.Default() @@ -15,8 +18,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'GetGroupMsgReqIdl_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS is False: - DESCRIPTOR._options = None +if not _descriptor._USE_C_DESCRIPTORS: + DESCRIPTOR._loaded_options = None _globals['_GETGROUPMSGREQIDL']._serialized_start = 28 _globals['_GETGROUPMSGREQIDL']._serialized_end = 242 _globals['_GETGROUPMSGREQIDL_DATAREQ']._serialized_start = 106 diff --git a/aiotieba/api/get_group_msg/protobuf/GetGroupMsgResIdl_pb2.py b/aiotieba/api/get_group_msg/protobuf/GetGroupMsgResIdl_pb2.py index f13ef5d7..ba1c5d8c 100644 --- a/aiotieba/api/get_group_msg/protobuf/GetGroupMsgResIdl_pb2.py +++ b/aiotieba/api/get_group_msg/protobuf/GetGroupMsgResIdl_pb2.py @@ -2,9 +2,12 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'GetGroupMsgResIdl.proto') + _sym_db = _symbol_database.Default() @@ -17,8 +20,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'GetGroupMsgResIdl_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS is False: - DESCRIPTOR._options = None +if not _descriptor._USE_C_DESCRIPTORS: + DESCRIPTOR._loaded_options = None _globals['_GETGROUPMSGRESIDL']._serialized_start = 41 _globals['_GETGROUPMSGRESIDL']._serialized_end = 600 _globals['_GETGROUPMSGRESIDL_DATARES']._serialized_start = 128 diff --git a/aiotieba/api/get_posts/protobuf/PbPageReqIdl_pb2.py b/aiotieba/api/get_posts/protobuf/PbPageReqIdl_pb2.py index f3435269..52ffb9e4 100644 --- a/aiotieba/api/get_posts/protobuf/PbPageReqIdl_pb2.py +++ b/aiotieba/api/get_posts/protobuf/PbPageReqIdl_pb2.py @@ -2,9 +2,12 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'PbPageReqIdl.proto') + _sym_db = _symbol_database.Default() @@ -17,8 +20,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'PbPageReqIdl_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS is False: - DESCRIPTOR._options = None +if not _descriptor._USE_C_DESCRIPTORS: + DESCRIPTOR._loaded_options = None _globals['_PBPAGEREQIDL']._serialized_start = 40 _globals['_PBPAGEREQIDL']._serialized_end = 266 _globals['_PBPAGEREQIDL_DATAREQ']._serialized_start = 94 diff --git a/aiotieba/api/get_posts/protobuf/PbPageResIdl_pb2.py b/aiotieba/api/get_posts/protobuf/PbPageResIdl_pb2.py index ef1d78c4..eda9c11b 100644 --- a/aiotieba/api/get_posts/protobuf/PbPageResIdl_pb2.py +++ b/aiotieba/api/get_posts/protobuf/PbPageResIdl_pb2.py @@ -2,9 +2,12 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'PbPageResIdl.proto') + _sym_db = _symbol_database.Default() @@ -22,8 +25,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'PbPageResIdl_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS is False: - DESCRIPTOR._options = None +if not _descriptor._USE_C_DESCRIPTORS: + DESCRIPTOR._loaded_options = None _globals['_PBPAGERESIDL']._serialized_start = 109 _globals['_PBPAGERESIDL']._serialized_end = 351 _globals['_PBPAGERESIDL_DATARES']._serialized_start = 186 diff --git a/aiotieba/api/get_replys/protobuf/ReplyMeReqIdl_pb2.py b/aiotieba/api/get_replys/protobuf/ReplyMeReqIdl_pb2.py index a0e0ae5f..0dd2822d 100644 --- a/aiotieba/api/get_replys/protobuf/ReplyMeReqIdl_pb2.py +++ b/aiotieba/api/get_replys/protobuf/ReplyMeReqIdl_pb2.py @@ -2,9 +2,12 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'ReplyMeReqIdl.proto') + _sym_db = _symbol_database.Default() @@ -17,8 +20,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'ReplyMeReqIdl_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS is False: - DESCRIPTOR._options = None +if not _descriptor._USE_C_DESCRIPTORS: + DESCRIPTOR._loaded_options = None _globals['_REPLYMEREQIDL']._serialized_start = 40 _globals['_REPLYMEREQIDL']._serialized_end = 144 _globals['_REPLYMEREQIDL_DATAREQ']._serialized_start = 95 diff --git a/aiotieba/api/get_replys/protobuf/ReplyMeResIdl_pb2.py b/aiotieba/api/get_replys/protobuf/ReplyMeResIdl_pb2.py index 24dae893..c46952b4 100644 --- a/aiotieba/api/get_replys/protobuf/ReplyMeResIdl_pb2.py +++ b/aiotieba/api/get_replys/protobuf/ReplyMeResIdl_pb2.py @@ -2,9 +2,12 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'ReplyMeResIdl.proto') + _sym_db = _symbol_database.Default() @@ -19,8 +22,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'ReplyMeResIdl_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS is False: - DESCRIPTOR._options = None +if not _descriptor._USE_C_DESCRIPTORS: + DESCRIPTOR._loaded_options = None _globals['_REPLYMERESIDL']._serialized_start = 61 _globals['_REPLYMERESIDL']._serialized_end = 466 _globals['_REPLYMERESIDL_DATARES']._serialized_start = 140 diff --git a/aiotieba/api/get_square_forums/protobuf/GetForumSquareReqIdl_pb2.py b/aiotieba/api/get_square_forums/protobuf/GetForumSquareReqIdl_pb2.py index 40eff7dc..42720f49 100644 --- a/aiotieba/api/get_square_forums/protobuf/GetForumSquareReqIdl_pb2.py +++ b/aiotieba/api/get_square_forums/protobuf/GetForumSquareReqIdl_pb2.py @@ -2,9 +2,14 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'GetForumSquareReqIdl.proto' +) + _sym_db = _symbol_database.Default() @@ -17,8 +22,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'GetForumSquareReqIdl_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS is False: - DESCRIPTOR._options = None +if not _descriptor._USE_C_DESCRIPTORS: + DESCRIPTOR._loaded_options = None _globals['_GETFORUMSQUAREREQIDL']._serialized_start = 48 _globals['_GETFORUMSQUAREREQIDL']._serialized_end = 215 _globals['_GETFORUMSQUAREREQIDL_DATAREQ']._serialized_start = 117 diff --git a/aiotieba/api/get_square_forums/protobuf/GetForumSquareResIdl_pb2.py b/aiotieba/api/get_square_forums/protobuf/GetForumSquareResIdl_pb2.py index 35e24c00..057fe14c 100644 --- a/aiotieba/api/get_square_forums/protobuf/GetForumSquareResIdl_pb2.py +++ b/aiotieba/api/get_square_forums/protobuf/GetForumSquareResIdl_pb2.py @@ -2,9 +2,14 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'GetForumSquareResIdl.proto' +) + _sym_db = _symbol_database.Default() @@ -18,8 +23,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'GetForumSquareResIdl_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS is False: - DESCRIPTOR._options = None +if not _descriptor._USE_C_DESCRIPTORS: + DESCRIPTOR._loaded_options = None _globals['_GETFORUMSQUARERESIDL']._serialized_start = 56 _globals['_GETFORUMSQUARERESIDL']._serialized_end = 370 _globals['_GETFORUMSQUARERESIDL_DATARES']._serialized_start = 149 diff --git a/aiotieba/api/get_tab_map/protobuf/SearchPostForumReqIdl_pb2.py b/aiotieba/api/get_tab_map/protobuf/SearchPostForumReqIdl_pb2.py index 340f20e4..e539717f 100644 --- a/aiotieba/api/get_tab_map/protobuf/SearchPostForumReqIdl_pb2.py +++ b/aiotieba/api/get_tab_map/protobuf/SearchPostForumReqIdl_pb2.py @@ -2,9 +2,14 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'SearchPostForumReqIdl.proto' +) + _sym_db = _symbol_database.Default() @@ -17,8 +22,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'SearchPostForumReqIdl_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS is False: - DESCRIPTOR._options = None +if not _descriptor._USE_C_DESCRIPTORS: + DESCRIPTOR._loaded_options = None _globals['_SEARCHPOSTFORUMREQIDL']._serialized_start = 48 _globals['_SEARCHPOSTFORUMREQIDL']._serialized_end = 171 _globals['_SEARCHPOSTFORUMREQIDL_DATAREQ']._serialized_start = 119 diff --git a/aiotieba/api/get_tab_map/protobuf/SearchPostForumResIdl_pb2.py b/aiotieba/api/get_tab_map/protobuf/SearchPostForumResIdl_pb2.py index beff9f32..58ed3788 100644 --- a/aiotieba/api/get_tab_map/protobuf/SearchPostForumResIdl_pb2.py +++ b/aiotieba/api/get_tab_map/protobuf/SearchPostForumResIdl_pb2.py @@ -2,9 +2,14 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'SearchPostForumResIdl.proto' +) + _sym_db = _symbol_database.Default() @@ -18,8 +23,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'SearchPostForumResIdl_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS is False: - DESCRIPTOR._options = None +if not _descriptor._USE_C_DESCRIPTORS: + DESCRIPTOR._loaded_options = None _globals['_SEARCHPOSTFORUMRESIDL']._serialized_start = 63 _globals['_SEARCHPOSTFORUMRESIDL']._serialized_end = 316 _globals['_SEARCHPOSTFORUMRESIDL_DATARES']._serialized_start = 158 diff --git a/aiotieba/api/get_threads/protobuf/FrsPageReqIdl_pb2.py b/aiotieba/api/get_threads/protobuf/FrsPageReqIdl_pb2.py index dec3e83f..071d961d 100644 --- a/aiotieba/api/get_threads/protobuf/FrsPageReqIdl_pb2.py +++ b/aiotieba/api/get_threads/protobuf/FrsPageReqIdl_pb2.py @@ -2,9 +2,12 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'FrsPageReqIdl.proto') + _sym_db = _symbol_database.Default() @@ -17,8 +20,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'FrsPageReqIdl_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS is False: - DESCRIPTOR._options = None +if not _descriptor._USE_C_DESCRIPTORS: + DESCRIPTOR._loaded_options = None _globals['_FRSPAGEREQIDL']._serialized_start = 41 _globals['_FRSPAGEREQIDL']._serialized_end = 236 _globals['_FRSPAGEREQIDL_DATAREQ']._serialized_start = 97 diff --git a/aiotieba/api/get_threads/protobuf/FrsPageResIdl_pb2.py b/aiotieba/api/get_threads/protobuf/FrsPageResIdl_pb2.py index fddf69c8..61e6e468 100644 --- a/aiotieba/api/get_threads/protobuf/FrsPageResIdl_pb2.py +++ b/aiotieba/api/get_threads/protobuf/FrsPageResIdl_pb2.py @@ -2,9 +2,12 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'FrsPageResIdl.proto') + _sym_db = _symbol_database.Default() @@ -21,8 +24,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'FrsPageResIdl_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS is False: - DESCRIPTOR._options = None +if not _descriptor._USE_C_DESCRIPTORS: + DESCRIPTOR._loaded_options = None _globals['_FRSPAGERESIDL']._serialized_start = 97 _globals['_FRSPAGERESIDL']._serialized_end = 727 _globals['_FRSPAGERESIDL_DATARES']._serialized_start = 176 diff --git a/aiotieba/api/get_uinfo_getuserinfo_app/protobuf/GetUserInfoReqIdl_pb2.py b/aiotieba/api/get_uinfo_getuserinfo_app/protobuf/GetUserInfoReqIdl_pb2.py index a9e48a7a..5bb94836 100644 --- a/aiotieba/api/get_uinfo_getuserinfo_app/protobuf/GetUserInfoReqIdl_pb2.py +++ b/aiotieba/api/get_uinfo_getuserinfo_app/protobuf/GetUserInfoReqIdl_pb2.py @@ -2,9 +2,12 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'GetUserInfoReqIdl.proto') + _sym_db = _symbol_database.Default() @@ -15,8 +18,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'GetUserInfoReqIdl_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS is False: - DESCRIPTOR._options = None +if not _descriptor._USE_C_DESCRIPTORS: + DESCRIPTOR._loaded_options = None _globals['_GETUSERINFOREQIDL']._serialized_start = 27 _globals['_GETUSERINFOREQIDL']._serialized_end = 116 _globals['_GETUSERINFOREQIDL_DATAREQ']._serialized_start = 90 diff --git a/aiotieba/api/get_uinfo_getuserinfo_app/protobuf/GetUserInfoResIdl_pb2.py b/aiotieba/api/get_uinfo_getuserinfo_app/protobuf/GetUserInfoResIdl_pb2.py index ab8762f7..6f59ac6e 100644 --- a/aiotieba/api/get_uinfo_getuserinfo_app/protobuf/GetUserInfoResIdl_pb2.py +++ b/aiotieba/api/get_uinfo_getuserinfo_app/protobuf/GetUserInfoResIdl_pb2.py @@ -2,9 +2,12 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'GetUserInfoResIdl.proto') + _sym_db = _symbol_database.Default() @@ -18,8 +21,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'GetUserInfoResIdl_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS is False: - DESCRIPTOR._options = None +if not _descriptor._USE_C_DESCRIPTORS: + DESCRIPTOR._loaded_options = None _globals['_GETUSERINFORESIDL']._serialized_start = 52 _globals['_GETUSERINFORESIDL']._serialized_end = 168 _globals['_GETUSERINFORESIDL_DATARES']._serialized_start = 138 diff --git a/aiotieba/api/get_user_contents/protobuf/UserPostReqIdl_pb2.py b/aiotieba/api/get_user_contents/protobuf/UserPostReqIdl_pb2.py index 9470bbe8..20f1c51c 100644 --- a/aiotieba/api/get_user_contents/protobuf/UserPostReqIdl_pb2.py +++ b/aiotieba/api/get_user_contents/protobuf/UserPostReqIdl_pb2.py @@ -2,9 +2,12 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'UserPostReqIdl.proto') + _sym_db = _symbol_database.Default() @@ -17,8 +20,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'UserPostReqIdl_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS is False: - DESCRIPTOR._options = None +if not _descriptor._USE_C_DESCRIPTORS: + DESCRIPTOR._loaded_options = None _globals['_USERPOSTREQIDL']._serialized_start = 42 _globals['_USERPOSTREQIDL']._serialized_end = 241 _globals['_USERPOSTREQIDL_DATAREQ']._serialized_start = 100 diff --git a/aiotieba/api/get_user_contents/protobuf/UserPostResIdl_pb2.py b/aiotieba/api/get_user_contents/protobuf/UserPostResIdl_pb2.py index acb78caf..d83eee70 100644 --- a/aiotieba/api/get_user_contents/protobuf/UserPostResIdl_pb2.py +++ b/aiotieba/api/get_user_contents/protobuf/UserPostResIdl_pb2.py @@ -2,9 +2,12 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'UserPostResIdl.proto') + _sym_db = _symbol_database.Default() @@ -18,8 +21,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'UserPostResIdl_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS is False: - DESCRIPTOR._options = None +if not _descriptor._USE_C_DESCRIPTORS: + DESCRIPTOR._loaded_options = None _globals['_USERPOSTRESIDL']._serialized_start = 57 _globals['_USERPOSTRESIDL']._serialized_end = 180 _globals['_USERPOSTRESIDL_DATARES']._serialized_start = 137 diff --git a/aiotieba/api/init_websocket/protobuf/UpdateClientInfoReqIdl_pb2.py b/aiotieba/api/init_websocket/protobuf/UpdateClientInfoReqIdl_pb2.py index c4debe78..1605561b 100644 --- a/aiotieba/api/init_websocket/protobuf/UpdateClientInfoReqIdl_pb2.py +++ b/aiotieba/api/init_websocket/protobuf/UpdateClientInfoReqIdl_pb2.py @@ -2,9 +2,14 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'UpdateClientInfoReqIdl.proto' +) + _sym_db = _symbol_database.Default() @@ -15,8 +20,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'UpdateClientInfoReqIdl_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS is False: - DESCRIPTOR._options = None +if not _descriptor._USE_C_DESCRIPTORS: + DESCRIPTOR._loaded_options = None _globals['_UPDATECLIENTINFOREQIDL']._serialized_start = 33 _globals['_UPDATECLIENTINFOREQIDL']._serialized_end = 195 _globals['_UPDATECLIENTINFOREQIDL_DATAREQ']._serialized_start = 120 diff --git a/aiotieba/api/init_websocket/protobuf/UpdateClientInfoResIdl_pb2.py b/aiotieba/api/init_websocket/protobuf/UpdateClientInfoResIdl_pb2.py index 40b5feb3..28899ed6 100644 --- a/aiotieba/api/init_websocket/protobuf/UpdateClientInfoResIdl_pb2.py +++ b/aiotieba/api/init_websocket/protobuf/UpdateClientInfoResIdl_pb2.py @@ -2,9 +2,14 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'UpdateClientInfoResIdl.proto' +) + _sym_db = _symbol_database.Default() @@ -17,8 +22,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'UpdateClientInfoResIdl_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS is False: - DESCRIPTOR._options = None +if not _descriptor._USE_C_DESCRIPTORS: + DESCRIPTOR._loaded_options = None _globals['_UPDATECLIENTINFORESIDL']._serialized_start = 46 _globals['_UPDATECLIENTINFORESIDL']._serialized_end = 282 _globals['_UPDATECLIENTINFORESIDL_DATARES']._serialized_start = 143 diff --git a/aiotieba/api/profile/protobuf/ProfileReqIdl_pb2.py b/aiotieba/api/profile/protobuf/ProfileReqIdl_pb2.py index b83a52ab..9bf0ca17 100644 --- a/aiotieba/api/profile/protobuf/ProfileReqIdl_pb2.py +++ b/aiotieba/api/profile/protobuf/ProfileReqIdl_pb2.py @@ -2,9 +2,12 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'ProfileReqIdl.proto') + _sym_db = _symbol_database.Default() @@ -17,8 +20,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'ProfileReqIdl_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS is False: - DESCRIPTOR._options = None +if not _descriptor._USE_C_DESCRIPTORS: + DESCRIPTOR._loaded_options = None _globals['_PROFILEREQIDL']._serialized_start = 41 _globals['_PROFILEREQIDL']._serialized_end = 227 _globals['_PROFILEREQIDL_DATAREQ']._serialized_start = 97 diff --git a/aiotieba/api/profile/protobuf/ProfileResIdl_pb2.py b/aiotieba/api/profile/protobuf/ProfileResIdl_pb2.py index 26ff7e74..b0c9ab5a 100644 --- a/aiotieba/api/profile/protobuf/ProfileResIdl_pb2.py +++ b/aiotieba/api/profile/protobuf/ProfileResIdl_pb2.py @@ -2,9 +2,12 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'ProfileResIdl.proto') + _sym_db = _symbol_database.Default() @@ -19,8 +22,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'ProfileResIdl_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS is False: - DESCRIPTOR._options = None +if not _descriptor._USE_C_DESCRIPTORS: + DESCRIPTOR._loaded_options = None _globals['_PROFILERESIDL']._serialized_start = 69 _globals['_PROFILERESIDL']._serialized_end = 433 _globals['_PROFILERESIDL_DATARES']._serialized_start = 148 diff --git a/aiotieba/api/push_notify/protobuf/PushNotifyResIdl_pb2.py b/aiotieba/api/push_notify/protobuf/PushNotifyResIdl_pb2.py index 9ac4d53b..dd953a7e 100644 --- a/aiotieba/api/push_notify/protobuf/PushNotifyResIdl_pb2.py +++ b/aiotieba/api/push_notify/protobuf/PushNotifyResIdl_pb2.py @@ -2,9 +2,12 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'PushNotifyResIdl.proto') + _sym_db = _symbol_database.Default() @@ -15,8 +18,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'PushNotifyResIdl_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS is False: - DESCRIPTOR._options = None +if not _descriptor._USE_C_DESCRIPTORS: + DESCRIPTOR._loaded_options = None _globals['_PUSHNOTIFYRESIDL']._serialized_start = 27 _globals['_PUSHNOTIFYRESIDL']._serialized_end = 257 _globals['_PUSHNOTIFYRESIDL_PUSHERMSG']._serialized_start = 95 diff --git a/aiotieba/api/send_msg/protobuf/CommitPersonalMsgReqIdl_pb2.py b/aiotieba/api/send_msg/protobuf/CommitPersonalMsgReqIdl_pb2.py index 69b1626a..3fced217 100644 --- a/aiotieba/api/send_msg/protobuf/CommitPersonalMsgReqIdl_pb2.py +++ b/aiotieba/api/send_msg/protobuf/CommitPersonalMsgReqIdl_pb2.py @@ -2,9 +2,14 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'CommitPersonalMsgReqIdl.proto' +) + _sym_db = _symbol_database.Default() @@ -15,8 +20,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'CommitPersonalMsgReqIdl_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS is False: - DESCRIPTOR._options = None +if not _descriptor._USE_C_DESCRIPTORS: + DESCRIPTOR._loaded_options = None _globals['_COMMITPERSONALMSGREQIDL']._serialized_start = 34 _globals['_COMMITPERSONALMSGREQIDL']._serialized_end = 185 _globals['_COMMITPERSONALMSGREQIDL_DATAREQ']._serialized_start = 109 diff --git a/aiotieba/api/send_msg/protobuf/CommitPersonalMsgResIdl_pb2.py b/aiotieba/api/send_msg/protobuf/CommitPersonalMsgResIdl_pb2.py index 86c6507c..a9aefe7a 100644 --- a/aiotieba/api/send_msg/protobuf/CommitPersonalMsgResIdl_pb2.py +++ b/aiotieba/api/send_msg/protobuf/CommitPersonalMsgResIdl_pb2.py @@ -2,9 +2,14 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'CommitPersonalMsgResIdl.proto' +) + _sym_db = _symbol_database.Default() @@ -17,8 +22,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'CommitPersonalMsgResIdl_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS is False: - DESCRIPTOR._options = None +if not _descriptor._USE_C_DESCRIPTORS: + DESCRIPTOR._loaded_options = None _globals['_COMMITPERSONALMSGRESIDL']._serialized_start = 47 _globals['_COMMITPERSONALMSGRESIDL']._serialized_end = 287 _globals['_COMMITPERSONALMSGRESIDL_DATARES']._serialized_start = 146 diff --git a/aiotieba/api/set_blacklist/protobuf/SetUserBlackReqIdl_pb2.py b/aiotieba/api/set_blacklist/protobuf/SetUserBlackReqIdl_pb2.py index c7e89a4b..6f5cb24d 100644 --- a/aiotieba/api/set_blacklist/protobuf/SetUserBlackReqIdl_pb2.py +++ b/aiotieba/api/set_blacklist/protobuf/SetUserBlackReqIdl_pb2.py @@ -2,9 +2,14 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'SetUserBlackReqIdl.proto' +) + _sym_db = _symbol_database.Default() @@ -17,8 +22,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'SetUserBlackReqIdl_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS is False: - DESCRIPTOR._options = None +if not _descriptor._USE_C_DESCRIPTORS: + DESCRIPTOR._loaded_options = None _globals['_SETUSERBLACKREQIDL']._serialized_start = 46 _globals['_SETUSERBLACKREQIDL']._serialized_end = 297 _globals['_SETUSERBLACKREQIDL_DATAREQ']._serialized_start = 112 diff --git a/aiotieba/api/set_blacklist/protobuf/SetUserBlackResIdl_pb2.py b/aiotieba/api/set_blacklist/protobuf/SetUserBlackResIdl_pb2.py index 53ee5c00..2f719744 100644 --- a/aiotieba/api/set_blacklist/protobuf/SetUserBlackResIdl_pb2.py +++ b/aiotieba/api/set_blacklist/protobuf/SetUserBlackResIdl_pb2.py @@ -2,9 +2,14 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'SetUserBlackResIdl.proto' +) + _sym_db = _symbol_database.Default() @@ -17,7 +22,7 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'SetUserBlackResIdl_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS is False: - DESCRIPTOR._options = None +if not _descriptor._USE_C_DESCRIPTORS: + DESCRIPTOR._loaded_options = None _globals['_SETUSERBLACKRESIDL']._serialized_start = 41 _globals['_SETUSERBLACKRESIDL']._serialized_end = 84 diff --git a/aiotieba/api/set_msg_readed/protobuf/CommitReceivedPmsgReqIdl_pb2.py b/aiotieba/api/set_msg_readed/protobuf/CommitReceivedPmsgReqIdl_pb2.py index f263e20c..402a407c 100644 --- a/aiotieba/api/set_msg_readed/protobuf/CommitReceivedPmsgReqIdl_pb2.py +++ b/aiotieba/api/set_msg_readed/protobuf/CommitReceivedPmsgReqIdl_pb2.py @@ -2,9 +2,14 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'CommitReceivedPmsgReqIdl.proto' +) + _sym_db = _symbol_database.Default() @@ -15,8 +20,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'CommitReceivedPmsgReqIdl_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS is False: - DESCRIPTOR._options = None +if not _descriptor._USE_C_DESCRIPTORS: + DESCRIPTOR._loaded_options = None _globals['_COMMITRECEIVEDPMSGREQIDL']._serialized_start = 35 _globals['_COMMITRECEIVEDPMSGREQIDL']._serialized_end = 185 _globals['_COMMITRECEIVEDPMSGREQIDL_DATAREQ']._serialized_start = 112 diff --git a/aiotieba/api/set_msg_readed/protobuf/CommitReceivedPmsgResIdl_pb2.py b/aiotieba/api/set_msg_readed/protobuf/CommitReceivedPmsgResIdl_pb2.py index 042f7795..8a0e7b2f 100644 --- a/aiotieba/api/set_msg_readed/protobuf/CommitReceivedPmsgResIdl_pb2.py +++ b/aiotieba/api/set_msg_readed/protobuf/CommitReceivedPmsgResIdl_pb2.py @@ -2,9 +2,14 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'CommitReceivedPmsgResIdl.proto' +) + _sym_db = _symbol_database.Default() @@ -17,7 +22,7 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'CommitReceivedPmsgResIdl_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS is False: - DESCRIPTOR._options = None +if not _descriptor._USE_C_DESCRIPTORS: + DESCRIPTOR._loaded_options = None _globals['_COMMITRECEIVEDPMSGRESIDL']._serialized_start = 47 _globals['_COMMITRECEIVEDPMSGRESIDL']._serialized_end = 96 diff --git a/aiotieba/api/tieba_uid2user_info/protobuf/GetUserByTiebaUidReqIdl_pb2.py b/aiotieba/api/tieba_uid2user_info/protobuf/GetUserByTiebaUidReqIdl_pb2.py index 4e8432b2..ed8dca5e 100644 --- a/aiotieba/api/tieba_uid2user_info/protobuf/GetUserByTiebaUidReqIdl_pb2.py +++ b/aiotieba/api/tieba_uid2user_info/protobuf/GetUserByTiebaUidReqIdl_pb2.py @@ -2,9 +2,14 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'GetUserByTiebaUidReqIdl.proto' +) + _sym_db = _symbol_database.Default() @@ -17,8 +22,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'GetUserByTiebaUidReqIdl_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS is False: - DESCRIPTOR._options = None +if not _descriptor._USE_C_DESCRIPTORS: + DESCRIPTOR._loaded_options = None _globals['_GETUSERBYTIEBAUIDREQIDL']._serialized_start = 51 _globals['_GETUSERBYTIEBAUIDREQIDL']._serialized_end = 182 _globals['_GETUSERBYTIEBAUIDREQIDL_DATAREQ']._serialized_start = 126 diff --git a/aiotieba/api/tieba_uid2user_info/protobuf/GetUserByTiebaUidResIdl_pb2.py b/aiotieba/api/tieba_uid2user_info/protobuf/GetUserByTiebaUidResIdl_pb2.py index 32cfe824..b03123d3 100644 --- a/aiotieba/api/tieba_uid2user_info/protobuf/GetUserByTiebaUidResIdl_pb2.py +++ b/aiotieba/api/tieba_uid2user_info/protobuf/GetUserByTiebaUidResIdl_pb2.py @@ -2,9 +2,14 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'GetUserByTiebaUidResIdl.proto' +) + _sym_db = _symbol_database.Default() @@ -18,8 +23,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'GetUserByTiebaUidResIdl_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS is False: - DESCRIPTOR._options = None +if not _descriptor._USE_C_DESCRIPTORS: + DESCRIPTOR._loaded_options = None _globals['_GETUSERBYTIEBAUIDRESIDL']._serialized_start = 59 _globals['_GETUSERBYTIEBAUIDRESIDL']._serialized_end = 187 _globals['_GETUSERBYTIEBAUIDRESIDL_DATARES']._serialized_start = 157 diff --git a/pyproject.toml b/pyproject.toml index b6c070b3..c2c4de55 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "aiotieba" -version = "4.4.9a0" +version = "4.4.9a1" description = "Asynchronous I/O Client for Baidu Tieba" authors = [{ name = "Starry-OvO", email = "starry.qvq@gmail.com" }] urls = { Repository = "https://github.com/Starry-OvO/aiotieba/", Documentation = "https://aiotieba.cc/" } @@ -29,7 +29,7 @@ dependencies = [ "lxml>=4.6.4,<6;python_version=='3.10'", "lxml>=4.9.2,<6;python_version=='3.11'", "lxml>=4.9.3,<6;python_version>='3.12'", - "protobuf>=4.21.0,<6", + "protobuf>=5.27.0,<6", "cryptography>=35.0.0,<41;python_version>='3.9' and python_version<'3.12'", "cryptography>=35.0.0,<44;python_version>='3.12'", "cffi>=1.17.0rc1,<2;python_version>='3.13rc1'", From 647bb0cf93d3a3318a99c2997985c0be5ef38a41 Mon Sep 17 00:00:00 2001 From: Starry-OvO Date: Thu, 29 Aug 2024 16:52:12 +0800 Subject: [PATCH 5/8] chore: bump client version to 12.68.0.1 --- aiotieba/const.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aiotieba/const.py b/aiotieba/const.py index 0a6eec40..06529c62 100644 --- a/aiotieba/const.py +++ b/aiotieba/const.py @@ -1,4 +1,4 @@ -MAIN_VERSION = "12.67.1.0" +MAIN_VERSION = "12.68.0.1" POST_VERSION = "12.35.1.0" APP_SECURE_SCHEME = "https" From cb1e7e7430968ebf8c4e26a4759479b245f62335 Mon Sep 17 00:00:00 2001 From: Starry-OvO Date: Thu, 29 Aug 2024 16:56:10 +0800 Subject: [PATCH 6/8] chore: improve the readability of many_utils --- docs/tutorial/many_utils.md | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/docs/tutorial/many_utils.md b/docs/tutorial/many_utils.md index cd04078c..81e5c0d7 100644 --- a/docs/tutorial/many_utils.md +++ b/docs/tutorial/many_utils.md @@ -10,7 +10,7 @@ import asyncio import aiotieba as tb -async def sign(BDUSS_key: str, *, retry_times: int = 0) -> None: +async def sign(BDUSS_key: str, *, retry_times: int = 0): """ 各种签到 @@ -38,11 +38,12 @@ async def sign(BDUSS_key: str, *, retry_times: int = 0) -> None: # 互关任务 for _ in range(retry_times): await asyncio.sleep(1.0) + someone = 'tb.1.2fc1394a.ukuFqA26BTuAeXqYr1Nmwg' success = False - success = await client.unfollow_user('tb.1.2fc1394a.ukuFqA26BTuAeXqYr1Nmwg') + success = await client.unfollow_user(someone) if not success: continue - success = await client.follow_user('tb.1.2fc1394a.ukuFqA26BTuAeXqYr1Nmwg') + success = await client.follow_user(someone) if not success: continue if success: @@ -66,9 +67,9 @@ async def sign(BDUSS_key: str, *, retry_times: int = 0) -> None: retry_list = new_retry_list -async def main() -> None: - await sign("在此处输入你的BDUSS", retry_times=3) - await sign("在此处输入你的BDUSS", retry_times=3) +async def main(): + await sign("在此处输入待签到账号的BDUSS", retry_times=3) + await sign("在此处输入另一个待签到账号的BDUSS", retry_times=3) asyncio.run(main()) @@ -82,7 +83,7 @@ import asyncio import aiotieba as tb -async def main() -> None: +async def main(): async with tb.Client("在此处输入你的BDUSS") as client: # 海象运算符(:=)会在创建threads变量并赋值的同时返回该值,方便while语句检查其是否为空 # 更多信息请搜索“Python海象运算符” @@ -101,7 +102,7 @@ import asyncio import aiotieba as tb -async def main() -> None: +async def main(): async with tb.Client("在此处输入你的BDUSS") as client: await asyncio.gather( *[ @@ -126,7 +127,7 @@ import asyncio import aiotieba as tb -async def main() -> None: +async def main(): async with tb.Client("在此处输入你的BDUSS") as client: # 此列表用于设置例外 # 将你希望依然保持屏蔽的贴吧名填在这个列表里 @@ -172,7 +173,7 @@ import asyncio import aiotieba as tb -async def main() -> None: +async def main(): async with tb.Client("在此处输入你的BDUSS") as client: while fans := await client.get_fans(): await asyncio.gather(*[client.remove_fan(fan.user_id) for fan in fans]) @@ -189,7 +190,7 @@ import asyncio import aiotieba as tb -async def main() -> None: +async def main(): async with tb.Client("在此处输入你的BDUSS") as client: while posts_list := await client.get_user_posts(): await asyncio.gather(*[client.del_post(post.fid, post.tid, post.pid) for posts in posts_list for post in posts]) From aaf23da33d33e332eea0f4c326d2e90dc13a7379 Mon Sep 17 00:00:00 2001 From: Starry-OvO Date: Sat, 31 Aug 2024 18:48:38 +0800 Subject: [PATCH 7/8] feat: remove runtime checker in protobuf --- aiotieba/api/_protobuf/Agree_pb2.py | 3 -- aiotieba/api/_protobuf/CommonReq_pb2.py | 3 -- aiotieba/api/_protobuf/Error_pb2.py | 3 -- aiotieba/api/_protobuf/ForumList_pb2.py | 3 -- aiotieba/api/_protobuf/FrsTabInfo_pb2.py | 3 -- aiotieba/api/_protobuf/Media_pb2.py | 3 -- aiotieba/api/_protobuf/Page_pb2.py | 3 -- aiotieba/api/_protobuf/PbContent_pb2.py | 3 -- aiotieba/api/_protobuf/PollInfo_pb2.py | 3 -- aiotieba/api/_protobuf/PostInfoList_pb2.py | 3 -- aiotieba/api/_protobuf/Post_pb2.py | 3 -- aiotieba/api/_protobuf/SimpleForum_pb2.py | 3 -- aiotieba/api/_protobuf/SubPostList_pb2.py | 3 -- aiotieba/api/_protobuf/ThreadInfo_pb2.py | 3 -- aiotieba/api/_protobuf/User_pb2.py | 3 -- aiotieba/api/_protobuf/VideoInfo_pb2.py | 3 -- aiotieba/api/_protobuf/Voice_pb2.py | 3 -- .../add_post/protobuf/AddPostReqIdl_pb2.py | 3 -- .../add_post/protobuf/AddPostResIdl_pb2.py | 3 -- .../protobuf/GetBawuInfoReqIdl_pb2.py | 3 -- .../protobuf/GetBawuInfoResIdl_pb2.py | 3 -- .../protobuf/UserMuteQueryReqIdl_pb2.py | 5 --- .../protobuf/UserMuteQueryResIdl_pb2.py | 5 --- .../protobuf/PbFloorReqIdl_pb2.py | 3 -- .../protobuf/PbFloorResIdl_pb2.py | 3 -- .../protobuf/GetDislikeListReqIdl_pb2.py | 5 --- .../protobuf/GetDislikeListResIdl_pb2.py | 5 --- .../protobuf/GetForumDetailReqIdl_pb2.py | 5 --- .../protobuf/GetForumDetailResIdl_pb2.py | 5 --- .../protobuf/GetGroupMsgReqIdl_pb2.py | 3 -- .../protobuf/GetGroupMsgResIdl_pb2.py | 3 -- .../get_posts/protobuf/PbPageReqIdl_pb2.py | 3 -- .../get_posts/protobuf/PbPageResIdl_pb2.py | 3 -- .../get_replys/protobuf/ReplyMeReqIdl_pb2.py | 3 -- .../get_replys/protobuf/ReplyMeResIdl_pb2.py | 3 -- .../protobuf/GetForumSquareReqIdl_pb2.py | 5 --- .../protobuf/GetForumSquareResIdl_pb2.py | 5 --- .../protobuf/SearchPostForumReqIdl_pb2.py | 5 --- .../protobuf/SearchPostForumResIdl_pb2.py | 5 --- .../get_threads/protobuf/FrsPageReqIdl_pb2.py | 3 -- .../get_threads/protobuf/FrsPageResIdl_pb2.py | 3 -- .../protobuf/GetUserInfoReqIdl_pb2.py | 3 -- .../protobuf/GetUserInfoResIdl_pb2.py | 3 -- .../protobuf/UserPostReqIdl_pb2.py | 3 -- .../protobuf/UserPostResIdl_pb2.py | 3 -- .../protobuf/UpdateClientInfoReqIdl_pb2.py | 5 --- .../protobuf/UpdateClientInfoResIdl_pb2.py | 5 --- .../api/profile/protobuf/ProfileReqIdl_pb2.py | 3 -- .../api/profile/protobuf/ProfileResIdl_pb2.py | 3 -- .../protobuf/PushNotifyResIdl_pb2.py | 3 -- .../protobuf/CommitPersonalMsgReqIdl_pb2.py | 5 --- .../protobuf/CommitPersonalMsgResIdl_pb2.py | 5 --- .../protobuf/SetUserBlackReqIdl_pb2.py | 5 --- .../protobuf/SetUserBlackResIdl_pb2.py | 5 --- .../protobuf/CommitReceivedPmsgReqIdl_pb2.py | 5 --- .../protobuf/CommitReceivedPmsgResIdl_pb2.py | 5 --- .../protobuf/GetUserByTiebaUidReqIdl_pb2.py | 5 --- .../protobuf/GetUserByTiebaUidResIdl_pb2.py | 5 --- pyproject.toml | 2 +- scripts/proto_compile.py | 41 +++++++++++++------ 60 files changed, 30 insertions(+), 227 deletions(-) diff --git a/aiotieba/api/_protobuf/Agree_pb2.py b/aiotieba/api/_protobuf/Agree_pb2.py index 62976955..0eddae20 100644 --- a/aiotieba/api/_protobuf/Agree_pb2.py +++ b/aiotieba/api/_protobuf/Agree_pb2.py @@ -2,12 +2,9 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'Agree.proto') - _sym_db = _symbol_database.Default() diff --git a/aiotieba/api/_protobuf/CommonReq_pb2.py b/aiotieba/api/_protobuf/CommonReq_pb2.py index 064e013f..c15784c2 100644 --- a/aiotieba/api/_protobuf/CommonReq_pb2.py +++ b/aiotieba/api/_protobuf/CommonReq_pb2.py @@ -2,12 +2,9 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'CommonReq.proto') - _sym_db = _symbol_database.Default() diff --git a/aiotieba/api/_protobuf/Error_pb2.py b/aiotieba/api/_protobuf/Error_pb2.py index a213541f..ebd30b56 100644 --- a/aiotieba/api/_protobuf/Error_pb2.py +++ b/aiotieba/api/_protobuf/Error_pb2.py @@ -2,12 +2,9 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'Error.proto') - _sym_db = _symbol_database.Default() diff --git a/aiotieba/api/_protobuf/ForumList_pb2.py b/aiotieba/api/_protobuf/ForumList_pb2.py index 39266af3..85a7ab18 100644 --- a/aiotieba/api/_protobuf/ForumList_pb2.py +++ b/aiotieba/api/_protobuf/ForumList_pb2.py @@ -2,12 +2,9 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'ForumList.proto') - _sym_db = _symbol_database.Default() diff --git a/aiotieba/api/_protobuf/FrsTabInfo_pb2.py b/aiotieba/api/_protobuf/FrsTabInfo_pb2.py index 16265b46..dfcb577b 100644 --- a/aiotieba/api/_protobuf/FrsTabInfo_pb2.py +++ b/aiotieba/api/_protobuf/FrsTabInfo_pb2.py @@ -2,12 +2,9 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'FrsTabInfo.proto') - _sym_db = _symbol_database.Default() diff --git a/aiotieba/api/_protobuf/Media_pb2.py b/aiotieba/api/_protobuf/Media_pb2.py index 4aee7b45..2812bfdb 100644 --- a/aiotieba/api/_protobuf/Media_pb2.py +++ b/aiotieba/api/_protobuf/Media_pb2.py @@ -2,12 +2,9 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'Media.proto') - _sym_db = _symbol_database.Default() diff --git a/aiotieba/api/_protobuf/Page_pb2.py b/aiotieba/api/_protobuf/Page_pb2.py index a25c43bf..6fcebe08 100644 --- a/aiotieba/api/_protobuf/Page_pb2.py +++ b/aiotieba/api/_protobuf/Page_pb2.py @@ -2,12 +2,9 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'Page.proto') - _sym_db = _symbol_database.Default() diff --git a/aiotieba/api/_protobuf/PbContent_pb2.py b/aiotieba/api/_protobuf/PbContent_pb2.py index 1b9ac5df..6f54ad28 100644 --- a/aiotieba/api/_protobuf/PbContent_pb2.py +++ b/aiotieba/api/_protobuf/PbContent_pb2.py @@ -2,12 +2,9 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'PbContent.proto') - _sym_db = _symbol_database.Default() diff --git a/aiotieba/api/_protobuf/PollInfo_pb2.py b/aiotieba/api/_protobuf/PollInfo_pb2.py index fd5dd87b..30f9ff8a 100644 --- a/aiotieba/api/_protobuf/PollInfo_pb2.py +++ b/aiotieba/api/_protobuf/PollInfo_pb2.py @@ -2,12 +2,9 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'PollInfo.proto') - _sym_db = _symbol_database.Default() diff --git a/aiotieba/api/_protobuf/PostInfoList_pb2.py b/aiotieba/api/_protobuf/PostInfoList_pb2.py index 4433501e..3ef3fc87 100644 --- a/aiotieba/api/_protobuf/PostInfoList_pb2.py +++ b/aiotieba/api/_protobuf/PostInfoList_pb2.py @@ -2,12 +2,9 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'PostInfoList.proto') - _sym_db = _symbol_database.Default() diff --git a/aiotieba/api/_protobuf/Post_pb2.py b/aiotieba/api/_protobuf/Post_pb2.py index ddda4b63..4c6ec436 100644 --- a/aiotieba/api/_protobuf/Post_pb2.py +++ b/aiotieba/api/_protobuf/Post_pb2.py @@ -2,12 +2,9 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'Post.proto') - _sym_db = _symbol_database.Default() diff --git a/aiotieba/api/_protobuf/SimpleForum_pb2.py b/aiotieba/api/_protobuf/SimpleForum_pb2.py index 5b77fdef..83c18023 100644 --- a/aiotieba/api/_protobuf/SimpleForum_pb2.py +++ b/aiotieba/api/_protobuf/SimpleForum_pb2.py @@ -2,12 +2,9 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'SimpleForum.proto') - _sym_db = _symbol_database.Default() diff --git a/aiotieba/api/_protobuf/SubPostList_pb2.py b/aiotieba/api/_protobuf/SubPostList_pb2.py index cc453057..decad610 100644 --- a/aiotieba/api/_protobuf/SubPostList_pb2.py +++ b/aiotieba/api/_protobuf/SubPostList_pb2.py @@ -2,12 +2,9 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'SubPostList.proto') - _sym_db = _symbol_database.Default() diff --git a/aiotieba/api/_protobuf/ThreadInfo_pb2.py b/aiotieba/api/_protobuf/ThreadInfo_pb2.py index ce541d4e..141ff962 100644 --- a/aiotieba/api/_protobuf/ThreadInfo_pb2.py +++ b/aiotieba/api/_protobuf/ThreadInfo_pb2.py @@ -2,12 +2,9 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'ThreadInfo.proto') - _sym_db = _symbol_database.Default() diff --git a/aiotieba/api/_protobuf/User_pb2.py b/aiotieba/api/_protobuf/User_pb2.py index 0bdd9a8d..41d975f1 100644 --- a/aiotieba/api/_protobuf/User_pb2.py +++ b/aiotieba/api/_protobuf/User_pb2.py @@ -2,12 +2,9 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'User.proto') - _sym_db = _symbol_database.Default() diff --git a/aiotieba/api/_protobuf/VideoInfo_pb2.py b/aiotieba/api/_protobuf/VideoInfo_pb2.py index 9d224ec1..99b81ac6 100644 --- a/aiotieba/api/_protobuf/VideoInfo_pb2.py +++ b/aiotieba/api/_protobuf/VideoInfo_pb2.py @@ -2,12 +2,9 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'VideoInfo.proto') - _sym_db = _symbol_database.Default() diff --git a/aiotieba/api/_protobuf/Voice_pb2.py b/aiotieba/api/_protobuf/Voice_pb2.py index ec509c9b..4ff34ba1 100644 --- a/aiotieba/api/_protobuf/Voice_pb2.py +++ b/aiotieba/api/_protobuf/Voice_pb2.py @@ -2,12 +2,9 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'Voice.proto') - _sym_db = _symbol_database.Default() diff --git a/aiotieba/api/add_post/protobuf/AddPostReqIdl_pb2.py b/aiotieba/api/add_post/protobuf/AddPostReqIdl_pb2.py index 327b91bf..f9e3395e 100644 --- a/aiotieba/api/add_post/protobuf/AddPostReqIdl_pb2.py +++ b/aiotieba/api/add_post/protobuf/AddPostReqIdl_pb2.py @@ -2,12 +2,9 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'AddPostReqIdl.proto') - _sym_db = _symbol_database.Default() diff --git a/aiotieba/api/add_post/protobuf/AddPostResIdl_pb2.py b/aiotieba/api/add_post/protobuf/AddPostResIdl_pb2.py index 4cf4f3d0..538cf03a 100644 --- a/aiotieba/api/add_post/protobuf/AddPostResIdl_pb2.py +++ b/aiotieba/api/add_post/protobuf/AddPostResIdl_pb2.py @@ -2,12 +2,9 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'AddPostResIdl.proto') - _sym_db = _symbol_database.Default() diff --git a/aiotieba/api/get_bawu_info/protobuf/GetBawuInfoReqIdl_pb2.py b/aiotieba/api/get_bawu_info/protobuf/GetBawuInfoReqIdl_pb2.py index 2bc8c3cd..3f715b93 100644 --- a/aiotieba/api/get_bawu_info/protobuf/GetBawuInfoReqIdl_pb2.py +++ b/aiotieba/api/get_bawu_info/protobuf/GetBawuInfoReqIdl_pb2.py @@ -2,12 +2,9 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'GetBawuInfoReqIdl.proto') - _sym_db = _symbol_database.Default() diff --git a/aiotieba/api/get_bawu_info/protobuf/GetBawuInfoResIdl_pb2.py b/aiotieba/api/get_bawu_info/protobuf/GetBawuInfoResIdl_pb2.py index de96b003..a7c913e4 100644 --- a/aiotieba/api/get_bawu_info/protobuf/GetBawuInfoResIdl_pb2.py +++ b/aiotieba/api/get_bawu_info/protobuf/GetBawuInfoResIdl_pb2.py @@ -2,12 +2,9 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'GetBawuInfoResIdl.proto') - _sym_db = _symbol_database.Default() diff --git a/aiotieba/api/get_blacklist_old/protobuf/UserMuteQueryReqIdl_pb2.py b/aiotieba/api/get_blacklist_old/protobuf/UserMuteQueryReqIdl_pb2.py index 51595c48..41d42e4c 100644 --- a/aiotieba/api/get_blacklist_old/protobuf/UserMuteQueryReqIdl_pb2.py +++ b/aiotieba/api/get_blacklist_old/protobuf/UserMuteQueryReqIdl_pb2.py @@ -2,14 +2,9 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'UserMuteQueryReqIdl.proto' -) - _sym_db = _symbol_database.Default() diff --git a/aiotieba/api/get_blacklist_old/protobuf/UserMuteQueryResIdl_pb2.py b/aiotieba/api/get_blacklist_old/protobuf/UserMuteQueryResIdl_pb2.py index ac389477..8d79bad1 100644 --- a/aiotieba/api/get_blacklist_old/protobuf/UserMuteQueryResIdl_pb2.py +++ b/aiotieba/api/get_blacklist_old/protobuf/UserMuteQueryResIdl_pb2.py @@ -2,14 +2,9 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'UserMuteQueryResIdl.proto' -) - _sym_db = _symbol_database.Default() diff --git a/aiotieba/api/get_comments/protobuf/PbFloorReqIdl_pb2.py b/aiotieba/api/get_comments/protobuf/PbFloorReqIdl_pb2.py index 371a8c77..2a6fe832 100644 --- a/aiotieba/api/get_comments/protobuf/PbFloorReqIdl_pb2.py +++ b/aiotieba/api/get_comments/protobuf/PbFloorReqIdl_pb2.py @@ -2,12 +2,9 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'PbFloorReqIdl.proto') - _sym_db = _symbol_database.Default() diff --git a/aiotieba/api/get_comments/protobuf/PbFloorResIdl_pb2.py b/aiotieba/api/get_comments/protobuf/PbFloorResIdl_pb2.py index 50d3594d..8d790352 100644 --- a/aiotieba/api/get_comments/protobuf/PbFloorResIdl_pb2.py +++ b/aiotieba/api/get_comments/protobuf/PbFloorResIdl_pb2.py @@ -2,12 +2,9 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'PbFloorResIdl.proto') - _sym_db = _symbol_database.Default() diff --git a/aiotieba/api/get_dislike_forums/protobuf/GetDislikeListReqIdl_pb2.py b/aiotieba/api/get_dislike_forums/protobuf/GetDislikeListReqIdl_pb2.py index e7e7717d..9c93f071 100644 --- a/aiotieba/api/get_dislike_forums/protobuf/GetDislikeListReqIdl_pb2.py +++ b/aiotieba/api/get_dislike_forums/protobuf/GetDislikeListReqIdl_pb2.py @@ -2,14 +2,9 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'GetDislikeListReqIdl.proto' -) - _sym_db = _symbol_database.Default() diff --git a/aiotieba/api/get_dislike_forums/protobuf/GetDislikeListResIdl_pb2.py b/aiotieba/api/get_dislike_forums/protobuf/GetDislikeListResIdl_pb2.py index e8192496..b8853d31 100644 --- a/aiotieba/api/get_dislike_forums/protobuf/GetDislikeListResIdl_pb2.py +++ b/aiotieba/api/get_dislike_forums/protobuf/GetDislikeListResIdl_pb2.py @@ -2,14 +2,9 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'GetDislikeListResIdl.proto' -) - _sym_db = _symbol_database.Default() diff --git a/aiotieba/api/get_forum_detail/protobuf/GetForumDetailReqIdl_pb2.py b/aiotieba/api/get_forum_detail/protobuf/GetForumDetailReqIdl_pb2.py index d79922dd..3b552df1 100644 --- a/aiotieba/api/get_forum_detail/protobuf/GetForumDetailReqIdl_pb2.py +++ b/aiotieba/api/get_forum_detail/protobuf/GetForumDetailReqIdl_pb2.py @@ -2,14 +2,9 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'GetForumDetailReqIdl.proto' -) - _sym_db = _symbol_database.Default() diff --git a/aiotieba/api/get_forum_detail/protobuf/GetForumDetailResIdl_pb2.py b/aiotieba/api/get_forum_detail/protobuf/GetForumDetailResIdl_pb2.py index 78c28348..dd565521 100644 --- a/aiotieba/api/get_forum_detail/protobuf/GetForumDetailResIdl_pb2.py +++ b/aiotieba/api/get_forum_detail/protobuf/GetForumDetailResIdl_pb2.py @@ -2,14 +2,9 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'GetForumDetailResIdl.proto' -) - _sym_db = _symbol_database.Default() diff --git a/aiotieba/api/get_group_msg/protobuf/GetGroupMsgReqIdl_pb2.py b/aiotieba/api/get_group_msg/protobuf/GetGroupMsgReqIdl_pb2.py index 650d6b57..bff48a09 100644 --- a/aiotieba/api/get_group_msg/protobuf/GetGroupMsgReqIdl_pb2.py +++ b/aiotieba/api/get_group_msg/protobuf/GetGroupMsgReqIdl_pb2.py @@ -2,12 +2,9 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'GetGroupMsgReqIdl.proto') - _sym_db = _symbol_database.Default() diff --git a/aiotieba/api/get_group_msg/protobuf/GetGroupMsgResIdl_pb2.py b/aiotieba/api/get_group_msg/protobuf/GetGroupMsgResIdl_pb2.py index ba1c5d8c..56ea2041 100644 --- a/aiotieba/api/get_group_msg/protobuf/GetGroupMsgResIdl_pb2.py +++ b/aiotieba/api/get_group_msg/protobuf/GetGroupMsgResIdl_pb2.py @@ -2,12 +2,9 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'GetGroupMsgResIdl.proto') - _sym_db = _symbol_database.Default() diff --git a/aiotieba/api/get_posts/protobuf/PbPageReqIdl_pb2.py b/aiotieba/api/get_posts/protobuf/PbPageReqIdl_pb2.py index 52ffb9e4..346eb72a 100644 --- a/aiotieba/api/get_posts/protobuf/PbPageReqIdl_pb2.py +++ b/aiotieba/api/get_posts/protobuf/PbPageReqIdl_pb2.py @@ -2,12 +2,9 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'PbPageReqIdl.proto') - _sym_db = _symbol_database.Default() diff --git a/aiotieba/api/get_posts/protobuf/PbPageResIdl_pb2.py b/aiotieba/api/get_posts/protobuf/PbPageResIdl_pb2.py index eda9c11b..ef1f97e0 100644 --- a/aiotieba/api/get_posts/protobuf/PbPageResIdl_pb2.py +++ b/aiotieba/api/get_posts/protobuf/PbPageResIdl_pb2.py @@ -2,12 +2,9 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'PbPageResIdl.proto') - _sym_db = _symbol_database.Default() diff --git a/aiotieba/api/get_replys/protobuf/ReplyMeReqIdl_pb2.py b/aiotieba/api/get_replys/protobuf/ReplyMeReqIdl_pb2.py index 0dd2822d..73ca25c8 100644 --- a/aiotieba/api/get_replys/protobuf/ReplyMeReqIdl_pb2.py +++ b/aiotieba/api/get_replys/protobuf/ReplyMeReqIdl_pb2.py @@ -2,12 +2,9 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'ReplyMeReqIdl.proto') - _sym_db = _symbol_database.Default() diff --git a/aiotieba/api/get_replys/protobuf/ReplyMeResIdl_pb2.py b/aiotieba/api/get_replys/protobuf/ReplyMeResIdl_pb2.py index c46952b4..b332abfb 100644 --- a/aiotieba/api/get_replys/protobuf/ReplyMeResIdl_pb2.py +++ b/aiotieba/api/get_replys/protobuf/ReplyMeResIdl_pb2.py @@ -2,12 +2,9 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'ReplyMeResIdl.proto') - _sym_db = _symbol_database.Default() diff --git a/aiotieba/api/get_square_forums/protobuf/GetForumSquareReqIdl_pb2.py b/aiotieba/api/get_square_forums/protobuf/GetForumSquareReqIdl_pb2.py index 42720f49..d85241d3 100644 --- a/aiotieba/api/get_square_forums/protobuf/GetForumSquareReqIdl_pb2.py +++ b/aiotieba/api/get_square_forums/protobuf/GetForumSquareReqIdl_pb2.py @@ -2,14 +2,9 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'GetForumSquareReqIdl.proto' -) - _sym_db = _symbol_database.Default() diff --git a/aiotieba/api/get_square_forums/protobuf/GetForumSquareResIdl_pb2.py b/aiotieba/api/get_square_forums/protobuf/GetForumSquareResIdl_pb2.py index 057fe14c..27cdb2c4 100644 --- a/aiotieba/api/get_square_forums/protobuf/GetForumSquareResIdl_pb2.py +++ b/aiotieba/api/get_square_forums/protobuf/GetForumSquareResIdl_pb2.py @@ -2,14 +2,9 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'GetForumSquareResIdl.proto' -) - _sym_db = _symbol_database.Default() diff --git a/aiotieba/api/get_tab_map/protobuf/SearchPostForumReqIdl_pb2.py b/aiotieba/api/get_tab_map/protobuf/SearchPostForumReqIdl_pb2.py index e539717f..5e526473 100644 --- a/aiotieba/api/get_tab_map/protobuf/SearchPostForumReqIdl_pb2.py +++ b/aiotieba/api/get_tab_map/protobuf/SearchPostForumReqIdl_pb2.py @@ -2,14 +2,9 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'SearchPostForumReqIdl.proto' -) - _sym_db = _symbol_database.Default() diff --git a/aiotieba/api/get_tab_map/protobuf/SearchPostForumResIdl_pb2.py b/aiotieba/api/get_tab_map/protobuf/SearchPostForumResIdl_pb2.py index 58ed3788..a242b4b5 100644 --- a/aiotieba/api/get_tab_map/protobuf/SearchPostForumResIdl_pb2.py +++ b/aiotieba/api/get_tab_map/protobuf/SearchPostForumResIdl_pb2.py @@ -2,14 +2,9 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'SearchPostForumResIdl.proto' -) - _sym_db = _symbol_database.Default() diff --git a/aiotieba/api/get_threads/protobuf/FrsPageReqIdl_pb2.py b/aiotieba/api/get_threads/protobuf/FrsPageReqIdl_pb2.py index 071d961d..f0afd2a1 100644 --- a/aiotieba/api/get_threads/protobuf/FrsPageReqIdl_pb2.py +++ b/aiotieba/api/get_threads/protobuf/FrsPageReqIdl_pb2.py @@ -2,12 +2,9 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'FrsPageReqIdl.proto') - _sym_db = _symbol_database.Default() diff --git a/aiotieba/api/get_threads/protobuf/FrsPageResIdl_pb2.py b/aiotieba/api/get_threads/protobuf/FrsPageResIdl_pb2.py index 61e6e468..e8e0f28e 100644 --- a/aiotieba/api/get_threads/protobuf/FrsPageResIdl_pb2.py +++ b/aiotieba/api/get_threads/protobuf/FrsPageResIdl_pb2.py @@ -2,12 +2,9 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'FrsPageResIdl.proto') - _sym_db = _symbol_database.Default() diff --git a/aiotieba/api/get_uinfo_getuserinfo_app/protobuf/GetUserInfoReqIdl_pb2.py b/aiotieba/api/get_uinfo_getuserinfo_app/protobuf/GetUserInfoReqIdl_pb2.py index 5bb94836..c7a086f0 100644 --- a/aiotieba/api/get_uinfo_getuserinfo_app/protobuf/GetUserInfoReqIdl_pb2.py +++ b/aiotieba/api/get_uinfo_getuserinfo_app/protobuf/GetUserInfoReqIdl_pb2.py @@ -2,12 +2,9 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'GetUserInfoReqIdl.proto') - _sym_db = _symbol_database.Default() diff --git a/aiotieba/api/get_uinfo_getuserinfo_app/protobuf/GetUserInfoResIdl_pb2.py b/aiotieba/api/get_uinfo_getuserinfo_app/protobuf/GetUserInfoResIdl_pb2.py index 6f59ac6e..081393b2 100644 --- a/aiotieba/api/get_uinfo_getuserinfo_app/protobuf/GetUserInfoResIdl_pb2.py +++ b/aiotieba/api/get_uinfo_getuserinfo_app/protobuf/GetUserInfoResIdl_pb2.py @@ -2,12 +2,9 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'GetUserInfoResIdl.proto') - _sym_db = _symbol_database.Default() diff --git a/aiotieba/api/get_user_contents/protobuf/UserPostReqIdl_pb2.py b/aiotieba/api/get_user_contents/protobuf/UserPostReqIdl_pb2.py index 20f1c51c..7d983bdc 100644 --- a/aiotieba/api/get_user_contents/protobuf/UserPostReqIdl_pb2.py +++ b/aiotieba/api/get_user_contents/protobuf/UserPostReqIdl_pb2.py @@ -2,12 +2,9 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'UserPostReqIdl.proto') - _sym_db = _symbol_database.Default() diff --git a/aiotieba/api/get_user_contents/protobuf/UserPostResIdl_pb2.py b/aiotieba/api/get_user_contents/protobuf/UserPostResIdl_pb2.py index d83eee70..4320f4f3 100644 --- a/aiotieba/api/get_user_contents/protobuf/UserPostResIdl_pb2.py +++ b/aiotieba/api/get_user_contents/protobuf/UserPostResIdl_pb2.py @@ -2,12 +2,9 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'UserPostResIdl.proto') - _sym_db = _symbol_database.Default() diff --git a/aiotieba/api/init_websocket/protobuf/UpdateClientInfoReqIdl_pb2.py b/aiotieba/api/init_websocket/protobuf/UpdateClientInfoReqIdl_pb2.py index 1605561b..1d58e083 100644 --- a/aiotieba/api/init_websocket/protobuf/UpdateClientInfoReqIdl_pb2.py +++ b/aiotieba/api/init_websocket/protobuf/UpdateClientInfoReqIdl_pb2.py @@ -2,14 +2,9 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'UpdateClientInfoReqIdl.proto' -) - _sym_db = _symbol_database.Default() diff --git a/aiotieba/api/init_websocket/protobuf/UpdateClientInfoResIdl_pb2.py b/aiotieba/api/init_websocket/protobuf/UpdateClientInfoResIdl_pb2.py index 28899ed6..561540fc 100644 --- a/aiotieba/api/init_websocket/protobuf/UpdateClientInfoResIdl_pb2.py +++ b/aiotieba/api/init_websocket/protobuf/UpdateClientInfoResIdl_pb2.py @@ -2,14 +2,9 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'UpdateClientInfoResIdl.proto' -) - _sym_db = _symbol_database.Default() diff --git a/aiotieba/api/profile/protobuf/ProfileReqIdl_pb2.py b/aiotieba/api/profile/protobuf/ProfileReqIdl_pb2.py index 9bf0ca17..4f2d0203 100644 --- a/aiotieba/api/profile/protobuf/ProfileReqIdl_pb2.py +++ b/aiotieba/api/profile/protobuf/ProfileReqIdl_pb2.py @@ -2,12 +2,9 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'ProfileReqIdl.proto') - _sym_db = _symbol_database.Default() diff --git a/aiotieba/api/profile/protobuf/ProfileResIdl_pb2.py b/aiotieba/api/profile/protobuf/ProfileResIdl_pb2.py index b0c9ab5a..699906c7 100644 --- a/aiotieba/api/profile/protobuf/ProfileResIdl_pb2.py +++ b/aiotieba/api/profile/protobuf/ProfileResIdl_pb2.py @@ -2,12 +2,9 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'ProfileResIdl.proto') - _sym_db = _symbol_database.Default() diff --git a/aiotieba/api/push_notify/protobuf/PushNotifyResIdl_pb2.py b/aiotieba/api/push_notify/protobuf/PushNotifyResIdl_pb2.py index dd953a7e..ef815192 100644 --- a/aiotieba/api/push_notify/protobuf/PushNotifyResIdl_pb2.py +++ b/aiotieba/api/push_notify/protobuf/PushNotifyResIdl_pb2.py @@ -2,12 +2,9 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'PushNotifyResIdl.proto') - _sym_db = _symbol_database.Default() diff --git a/aiotieba/api/send_msg/protobuf/CommitPersonalMsgReqIdl_pb2.py b/aiotieba/api/send_msg/protobuf/CommitPersonalMsgReqIdl_pb2.py index 3fced217..0ce39e8f 100644 --- a/aiotieba/api/send_msg/protobuf/CommitPersonalMsgReqIdl_pb2.py +++ b/aiotieba/api/send_msg/protobuf/CommitPersonalMsgReqIdl_pb2.py @@ -2,14 +2,9 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'CommitPersonalMsgReqIdl.proto' -) - _sym_db = _symbol_database.Default() diff --git a/aiotieba/api/send_msg/protobuf/CommitPersonalMsgResIdl_pb2.py b/aiotieba/api/send_msg/protobuf/CommitPersonalMsgResIdl_pb2.py index a9aefe7a..4fd6e037 100644 --- a/aiotieba/api/send_msg/protobuf/CommitPersonalMsgResIdl_pb2.py +++ b/aiotieba/api/send_msg/protobuf/CommitPersonalMsgResIdl_pb2.py @@ -2,14 +2,9 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'CommitPersonalMsgResIdl.proto' -) - _sym_db = _symbol_database.Default() diff --git a/aiotieba/api/set_blacklist/protobuf/SetUserBlackReqIdl_pb2.py b/aiotieba/api/set_blacklist/protobuf/SetUserBlackReqIdl_pb2.py index 6f5cb24d..fe4da7e9 100644 --- a/aiotieba/api/set_blacklist/protobuf/SetUserBlackReqIdl_pb2.py +++ b/aiotieba/api/set_blacklist/protobuf/SetUserBlackReqIdl_pb2.py @@ -2,14 +2,9 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'SetUserBlackReqIdl.proto' -) - _sym_db = _symbol_database.Default() diff --git a/aiotieba/api/set_blacklist/protobuf/SetUserBlackResIdl_pb2.py b/aiotieba/api/set_blacklist/protobuf/SetUserBlackResIdl_pb2.py index 2f719744..1be65578 100644 --- a/aiotieba/api/set_blacklist/protobuf/SetUserBlackResIdl_pb2.py +++ b/aiotieba/api/set_blacklist/protobuf/SetUserBlackResIdl_pb2.py @@ -2,14 +2,9 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'SetUserBlackResIdl.proto' -) - _sym_db = _symbol_database.Default() diff --git a/aiotieba/api/set_msg_readed/protobuf/CommitReceivedPmsgReqIdl_pb2.py b/aiotieba/api/set_msg_readed/protobuf/CommitReceivedPmsgReqIdl_pb2.py index 402a407c..60cd3bb1 100644 --- a/aiotieba/api/set_msg_readed/protobuf/CommitReceivedPmsgReqIdl_pb2.py +++ b/aiotieba/api/set_msg_readed/protobuf/CommitReceivedPmsgReqIdl_pb2.py @@ -2,14 +2,9 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'CommitReceivedPmsgReqIdl.proto' -) - _sym_db = _symbol_database.Default() diff --git a/aiotieba/api/set_msg_readed/protobuf/CommitReceivedPmsgResIdl_pb2.py b/aiotieba/api/set_msg_readed/protobuf/CommitReceivedPmsgResIdl_pb2.py index 8a0e7b2f..63446f75 100644 --- a/aiotieba/api/set_msg_readed/protobuf/CommitReceivedPmsgResIdl_pb2.py +++ b/aiotieba/api/set_msg_readed/protobuf/CommitReceivedPmsgResIdl_pb2.py @@ -2,14 +2,9 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'CommitReceivedPmsgResIdl.proto' -) - _sym_db = _symbol_database.Default() diff --git a/aiotieba/api/tieba_uid2user_info/protobuf/GetUserByTiebaUidReqIdl_pb2.py b/aiotieba/api/tieba_uid2user_info/protobuf/GetUserByTiebaUidReqIdl_pb2.py index ed8dca5e..ec2df4bd 100644 --- a/aiotieba/api/tieba_uid2user_info/protobuf/GetUserByTiebaUidReqIdl_pb2.py +++ b/aiotieba/api/tieba_uid2user_info/protobuf/GetUserByTiebaUidReqIdl_pb2.py @@ -2,14 +2,9 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'GetUserByTiebaUidReqIdl.proto' -) - _sym_db = _symbol_database.Default() diff --git a/aiotieba/api/tieba_uid2user_info/protobuf/GetUserByTiebaUidResIdl_pb2.py b/aiotieba/api/tieba_uid2user_info/protobuf/GetUserByTiebaUidResIdl_pb2.py index b03123d3..b66714dc 100644 --- a/aiotieba/api/tieba_uid2user_info/protobuf/GetUserByTiebaUidResIdl_pb2.py +++ b/aiotieba/api/tieba_uid2user_info/protobuf/GetUserByTiebaUidResIdl_pb2.py @@ -2,14 +2,9 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, 5, 27, 0, '', 'GetUserByTiebaUidResIdl.proto' -) - _sym_db = _symbol_database.Default() diff --git a/pyproject.toml b/pyproject.toml index c2c4de55..7f84dc1b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -29,7 +29,7 @@ dependencies = [ "lxml>=4.6.4,<6;python_version=='3.10'", "lxml>=4.9.2,<6;python_version=='3.11'", "lxml>=4.9.3,<6;python_version>='3.12'", - "protobuf>=5.27.0,<6", + "protobuf>=4.21.1,<6", "cryptography>=35.0.0,<41;python_version>='3.9' and python_version<'3.12'", "cryptography>=35.0.0,<44;python_version>='3.12'", "cffi>=1.17.0rc1,<2;python_version>='3.13rc1'", diff --git a/scripts/proto_compile.py b/scripts/proto_compile.py index bac972d0..c9d831d2 100644 --- a/scripts/proto_compile.py +++ b/scripts/proto_compile.py @@ -1,4 +1,7 @@ +from __future__ import annotations + import subprocess +from collections.abc import Iterator from pathlib import Path commom_proto_pth = Path("aiotieba/api/_protobuf") @@ -8,18 +11,37 @@ subprocess.run("protoc --python_out=. *.proto", cwd=str(commom_proto_pth), check=True, timeout=60.0) + +def row_filter(rows: list[str], import_perfix: str) -> Iterator[str]: + is_runtime_checker = False + for row in rows: + if row.startswith('#'): + continue + + if not is_runtime_checker and row.startswith("_runtime"): + is_runtime_checker = True + if is_runtime_checker and row.startswith(')'): + is_runtime_checker = False + continue + if is_runtime_checker: + continue + + if "import runtime_version" in row: + continue + + if row.startswith("import"): + row = import_perfix + row + + yield row + + for fpth in commom_proto_pth.glob('*_pb2.py'): bak_fpth = fpth.with_suffix('.bak') with ( fpth.open('r') as f, bak_fpth.open('w') as bak_f, ): - for row in f.readlines(): - if row.startswith('#'): - continue - if row.startswith('import'): - row = "from . " + row - bak_f.write(row) + bak_f.writelines(row_filter(f, "from . ")) fpth.unlink() bak_fpth.rename(fpth) @@ -35,12 +57,7 @@ fpth.open('r') as f, bak_fpth.open('w') as bak_f, ): - for row in f.readlines(): - if row.startswith('#'): - continue - if row.startswith('import'): - row = "from ..._protobuf " + row - bak_f.write(row) + bak_f.writelines(row_filter(f, "from ..._protobuf ")) fpth.unlink() bak_fpth.rename(fpth) From 5088140b88abf68e2e5e09e0499cb7422b338527 Mon Sep 17 00:00:00 2001 From: Starry-OvO Date: Sun, 1 Sep 2024 11:02:51 +0800 Subject: [PATCH 8/8] chore: revert client version to 12.64.1.1 --- aiotieba/const.py | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/aiotieba/const.py b/aiotieba/const.py index 06529c62..e69b6c93 100644 --- a/aiotieba/const.py +++ b/aiotieba/const.py @@ -1,4 +1,4 @@ -MAIN_VERSION = "12.68.0.1" +MAIN_VERSION = "12.64.1.1" POST_VERSION = "12.35.1.0" APP_SECURE_SCHEME = "https" diff --git a/pyproject.toml b/pyproject.toml index 7f84dc1b..2f5e066e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "aiotieba" -version = "4.4.9a1" +version = "4.4.9" description = "Asynchronous I/O Client for Baidu Tieba" authors = [{ name = "Starry-OvO", email = "starry.qvq@gmail.com" }] urls = { Repository = "https://github.com/Starry-OvO/aiotieba/", Documentation = "https://aiotieba.cc/" }