From f694212734ee048e625aba03fc45febc6fd5b75e Mon Sep 17 00:00:00 2001 From: DragonAura Date: Mon, 17 Apr 2023 14:08:19 +0800 Subject: [PATCH] feat(CAPI): :art: change team selection logic --- CAPI/cpp/API/include/AI.h | 10 +- CAPI/cpp/API/src/AI.cpp | 32 +- CAPI/cpp/API/src/logic.cpp | 2 +- CAPI/cpp/API/src/main.cpp | 15 +- CAPI/cpp/proto/Message2Clients.pb.cc | 3254 ++++++++++++-------------- CAPI/cpp/proto/Message2Clients.pb.h | 1717 +++++++------- CAPI/cpp/proto/Message2Server.pb.cc | 970 ++++---- CAPI/cpp/proto/Message2Server.pb.h | 405 ++-- CAPI/cpp/proto/MessageType.pb.cc | 16 +- CAPI/cpp/proto/MessageType.pb.h | 10 +- CAPI/cpp/proto/Services.pb.cc | 22 +- CAPI/cpp/proto/Services.pb.h | 10 +- CAPI/python/PyAPI/AI.py | 30 +- CAPI/python/PyAPI/Communication.py | 8 +- CAPI/python/PyAPI/logic.py | 16 +- CAPI/python/PyAPI/main.py | 12 +- CAPI/python/run.sh | 7 +- 17 files changed, 3253 insertions(+), 3283 deletions(-) diff --git a/CAPI/cpp/API/include/AI.h b/CAPI/cpp/API/include/AI.h index d87de1e..cb6b373 100644 --- a/CAPI/cpp/API/include/AI.h +++ b/CAPI/cpp/API/include/AI.h @@ -13,17 +13,21 @@ public: virtual void play(ITrickerAPI& api) = 0; }; -using CreateAIFunc = std::unique_ptr (*)(); +using CreateAIFunc = std::unique_ptr (*)(int64_t playerID); class AI : public IAI { public: - AI() : - IAI() + AI(int64_t pID) : + IAI(), + playerID(pID) { } void play(IStudentAPI& api) override; void play(ITrickerAPI& api) override; + +private: + int64_t playerID; }; #endif diff --git a/CAPI/cpp/API/src/AI.cpp b/CAPI/cpp/API/src/AI.cpp index ffd6d9f..8c58213 100644 --- a/CAPI/cpp/API/src/AI.cpp +++ b/CAPI/cpp/API/src/AI.cpp @@ -1,24 +1,44 @@ #include #include +#include #include "AI.h" #include "constants.h" // 为假则play()期间确保游戏状态不更新,为真则只保证游戏状态在调用相关方法时不更新 extern const bool asynchronous = false; -// 选手必须定义该变量来选择自己的阵营 -extern const THUAI6::PlayerType playerType = THUAI6::PlayerType::TrickerPlayer; +// 选手需要依次将player0到player4的职业在这里定义 -// 选手需要将两个都定义,本份代码中不选择的阵营任意定义即可 -extern const THUAI6::TrickerType trickerType = THUAI6::TrickerType::Assassin; +extern const std::array studentType = { + THUAI6::StudentType::Athlete, + THUAI6::StudentType::Teacher, + THUAI6::StudentType::StraightAStudent, + THUAI6::StudentType::Sunshine}; -extern const THUAI6::StudentType studentType = THUAI6::StudentType::Athlete; +extern const THUAI6::TrickerType trickerType = THUAI6::TrickerType::Assassin; // 选手只需写一个即可,为了调试方便写了两个的话也不会有影响 void AI::play(IStudentAPI& api) { - auto self = api.GetSelfInfo(); + // 公共操作 + if (this->playerID == 0) + { + // 玩家0执行操作 + } + else if (this->playerID == 1) + { + // 玩家1执行操作 + } + else if (this->playerID == 2) + { + // 玩家2执行操作 + } + else if (this->playerID == 3) + { + // 玩家3执行操作 + } + // 公共操作 } void AI::play(ITrickerAPI& api) diff --git a/CAPI/cpp/API/src/logic.cpp b/CAPI/cpp/API/src/logic.cpp index abb4440..40c5b24 100644 --- a/CAPI/cpp/API/src/logic.cpp +++ b/CAPI/cpp/API/src/logic.cpp @@ -863,7 +863,7 @@ void Logic::Main(CreateAIFunc createAI, std::string IP, std::string port, bool f cvAI.wait(lock, [this]() { return AIStart; }); } - auto ai = createAI(); + auto ai = createAI(playerID); while (AILoop) { diff --git a/CAPI/cpp/API/src/main.cpp b/CAPI/cpp/API/src/main.cpp index 037a842..cf4c756 100644 --- a/CAPI/cpp/API/src/main.cpp +++ b/CAPI/cpp/API/src/main.cpp @@ -2,6 +2,7 @@ #include "logic.h" #include "structures.h" #include +#include #ifdef _MSC_VER #pragma warning(disable : 4996) @@ -15,9 +16,8 @@ int THUAI6Main(int argc, char** argv, CreateAIFunc AIBuilder) bool file = false; bool print = false; bool warnOnly = false; - extern const THUAI6::PlayerType playerType; extern const THUAI6::TrickerType trickerType; - extern const THUAI6::StudentType studentType; + extern const std::array studentType; // { // file = true; // print = true; @@ -71,7 +71,12 @@ int THUAI6Main(int argc, char** argv, CreateAIFunc AIBuilder) } try { - Logic logic(playerType, pID, trickerType, studentType); + THUAI6::PlayerType playerType; + if (pID == 4) + playerType = THUAI6::PlayerType::TrickerPlayer; + else + playerType = THUAI6::PlayerType::StudentPlayer; + Logic logic(playerType, pID, trickerType, studentType[pID]); logic.Main(AIBuilder, sIP, sPort, file, print, warnOnly); } catch (const std::exception& e) @@ -81,9 +86,9 @@ int THUAI6Main(int argc, char** argv, CreateAIFunc AIBuilder) return 0; } -std::unique_ptr CreateAI() +std::unique_ptr CreateAI(int64_t pID) { - return std::make_unique(); + return std::make_unique(pID); } int main(int argc, char* argv[]) diff --git a/CAPI/cpp/proto/Message2Clients.pb.cc b/CAPI/cpp/proto/Message2Clients.pb.cc index 8cf5e17..3de566f 100644 --- a/CAPI/cpp/proto/Message2Clients.pb.cc +++ b/CAPI/cpp/proto/Message2Clients.pb.cc @@ -16,50 +16,23 @@ #include PROTOBUF_PRAGMA_INIT_SEG + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + namespace protobuf { - constexpr MessageOfStudent::MessageOfStudent( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized + PROTOBUF_CONSTEXPR MessageOfStudent::MessageOfStudent( + ::_pbi::ConstantInitialized ) : - time_until_skill_available_(), - prop_(), - _prop_cached_byte_size_(0), - buff_(), - _buff_cached_byte_size_(0), - x_(0), - y_(0), - speed_(0), - determination_(0), - addiction_(0), - place_(0) - - , - guid_(int64_t{0}), - player_state_(0) - - , - bullet_type_(0) - - , - learning_speed_(0), - treat_speed_(0), - player_id_(int64_t{0}), - view_range_(0), - radius_(0), - danger_alert_(0), - score_(0), - treat_progress_(0), - rescue_progress_(0), - student_type_(0) - - , - facing_direction_(0) + _impl_{ + /*decltype(_impl_.time_until_skill_available_)*/ {}, /*decltype(_impl_.prop_)*/ {}, /*decltype(_impl_._prop_cached_byte_size_)*/ {0}, /*decltype(_impl_.buff_)*/ {}, /*decltype(_impl_._buff_cached_byte_size_)*/ {0}, /*decltype(_impl_.x_)*/ 0, /*decltype(_impl_.y_)*/ 0, /*decltype(_impl_.speed_)*/ 0, /*decltype(_impl_.determination_)*/ 0, /*decltype(_impl_.addiction_)*/ 0, /*decltype(_impl_.place_)*/ 0, /*decltype(_impl_.guid_)*/ int64_t{0}, /*decltype(_impl_.player_state_)*/ 0, /*decltype(_impl_.bullet_type_)*/ 0, /*decltype(_impl_.learning_speed_)*/ 0, /*decltype(_impl_.treat_speed_)*/ 0, /*decltype(_impl_.player_id_)*/ int64_t{0}, /*decltype(_impl_.view_range_)*/ 0, /*decltype(_impl_.radius_)*/ 0, /*decltype(_impl_.danger_alert_)*/ 0, /*decltype(_impl_.score_)*/ 0, /*decltype(_impl_.treat_progress_)*/ 0, /*decltype(_impl_.rescue_progress_)*/ 0, /*decltype(_impl_.student_type_)*/ 0, /*decltype(_impl_.facing_direction_)*/ 0, /*decltype(_impl_._cached_size_)*/ {}} { } struct MessageOfStudentDefaultTypeInternal { - constexpr MessageOfStudentDefaultTypeInternal() : - _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) + PROTOBUF_CONSTEXPR MessageOfStudentDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) { } ~MessageOfStudentDefaultTypeInternal() @@ -70,44 +43,18 @@ namespace protobuf MessageOfStudent _instance; }; }; - PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MessageOfStudentDefaultTypeInternal _MessageOfStudent_default_instance_; - constexpr MessageOfTricker::MessageOfTricker( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized + PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfStudentDefaultTypeInternal _MessageOfStudent_default_instance_; + PROTOBUF_CONSTEXPR MessageOfTricker::MessageOfTricker( + ::_pbi::ConstantInitialized ) : - time_until_skill_available_(), - prop_(), - _prop_cached_byte_size_(0), - buff_(), - _buff_cached_byte_size_(0), - x_(0), - y_(0), - speed_(0), - place_(0) - - , - guid_(int64_t{0}), - tricker_type_(0) - - , - score_(0), - player_id_(int64_t{0}), - view_range_(0), - radius_(0), - trick_desire_(0), - class_volume_(0), - player_state_(0) - - , - bullet_type_(0) - - , - facing_direction_(0) + _impl_{ + /*decltype(_impl_.time_until_skill_available_)*/ {}, /*decltype(_impl_.prop_)*/ {}, /*decltype(_impl_._prop_cached_byte_size_)*/ {0}, /*decltype(_impl_.buff_)*/ {}, /*decltype(_impl_._buff_cached_byte_size_)*/ {0}, /*decltype(_impl_.x_)*/ 0, /*decltype(_impl_.y_)*/ 0, /*decltype(_impl_.speed_)*/ 0, /*decltype(_impl_.place_)*/ 0, /*decltype(_impl_.guid_)*/ int64_t{0}, /*decltype(_impl_.tricker_type_)*/ 0, /*decltype(_impl_.score_)*/ 0, /*decltype(_impl_.player_id_)*/ int64_t{0}, /*decltype(_impl_.view_range_)*/ 0, /*decltype(_impl_.radius_)*/ 0, /*decltype(_impl_.trick_desire_)*/ 0, /*decltype(_impl_.class_volume_)*/ 0, /*decltype(_impl_.player_state_)*/ 0, /*decltype(_impl_.bullet_type_)*/ 0, /*decltype(_impl_.facing_direction_)*/ 0, /*decltype(_impl_._cached_size_)*/ {}} { } struct MessageOfTrickerDefaultTypeInternal { - constexpr MessageOfTrickerDefaultTypeInternal() : - _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) + PROTOBUF_CONSTEXPR MessageOfTrickerDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) { } ~MessageOfTrickerDefaultTypeInternal() @@ -118,31 +65,18 @@ namespace protobuf MessageOfTricker _instance; }; }; - PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MessageOfTrickerDefaultTypeInternal _MessageOfTricker_default_instance_; - constexpr MessageOfBullet::MessageOfBullet( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized + PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfTrickerDefaultTypeInternal _MessageOfTricker_default_instance_; + PROTOBUF_CONSTEXPR MessageOfBullet::MessageOfBullet( + ::_pbi::ConstantInitialized ) : - type_(0) - - , - x_(0), - facing_direction_(0), - y_(0), - team_(0) - - , - guid_(int64_t{0}), - bomb_range_(0), - place_(0) - - , - speed_(0) + _impl_{ + /*decltype(_impl_.type_)*/ 0, /*decltype(_impl_.x_)*/ 0, /*decltype(_impl_.facing_direction_)*/ 0, /*decltype(_impl_.y_)*/ 0, /*decltype(_impl_.team_)*/ 0, /*decltype(_impl_.guid_)*/ int64_t{0}, /*decltype(_impl_.bomb_range_)*/ 0, /*decltype(_impl_.place_)*/ 0, /*decltype(_impl_.speed_)*/ 0, /*decltype(_impl_._cached_size_)*/ {}} { } struct MessageOfBulletDefaultTypeInternal { - constexpr MessageOfBulletDefaultTypeInternal() : - _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) + PROTOBUF_CONSTEXPR MessageOfBulletDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) { } ~MessageOfBulletDefaultTypeInternal() @@ -153,24 +87,18 @@ namespace protobuf MessageOfBullet _instance; }; }; - PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MessageOfBulletDefaultTypeInternal _MessageOfBullet_default_instance_; - constexpr MessageOfBombedBullet::MessageOfBombedBullet( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized + PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfBulletDefaultTypeInternal _MessageOfBullet_default_instance_; + PROTOBUF_CONSTEXPR MessageOfBombedBullet::MessageOfBombedBullet( + ::_pbi::ConstantInitialized ) : - type_(0) - - , - x_(0), - facing_direction_(0), - mapping_id_(int64_t{0}), - bomb_range_(0), - y_(0) + _impl_{ + /*decltype(_impl_.type_)*/ 0, /*decltype(_impl_.x_)*/ 0, /*decltype(_impl_.facing_direction_)*/ 0, /*decltype(_impl_.mapping_id_)*/ int64_t{0}, /*decltype(_impl_.bomb_range_)*/ 0, /*decltype(_impl_.y_)*/ 0, /*decltype(_impl_._cached_size_)*/ {}} { } struct MessageOfBombedBulletDefaultTypeInternal { - constexpr MessageOfBombedBulletDefaultTypeInternal() : - _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) + PROTOBUF_CONSTEXPR MessageOfBombedBulletDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) { } ~MessageOfBombedBulletDefaultTypeInternal() @@ -181,26 +109,18 @@ namespace protobuf MessageOfBombedBullet _instance; }; }; - PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MessageOfBombedBulletDefaultTypeInternal _MessageOfBombedBullet_default_instance_; - constexpr MessageOfProp::MessageOfProp( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized + PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfBombedBulletDefaultTypeInternal _MessageOfBombedBullet_default_instance_; + PROTOBUF_CONSTEXPR MessageOfProp::MessageOfProp( + ::_pbi::ConstantInitialized ) : - type_(0) - - , - x_(0), - facing_direction_(0), - y_(0), - place_(0) - - , - guid_(int64_t{0}) + _impl_{ + /*decltype(_impl_.type_)*/ 0, /*decltype(_impl_.x_)*/ 0, /*decltype(_impl_.facing_direction_)*/ 0, /*decltype(_impl_.y_)*/ 0, /*decltype(_impl_.place_)*/ 0, /*decltype(_impl_.guid_)*/ int64_t{0}, /*decltype(_impl_._cached_size_)*/ {}} { } struct MessageOfPropDefaultTypeInternal { - constexpr MessageOfPropDefaultTypeInternal() : - _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) + PROTOBUF_CONSTEXPR MessageOfPropDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) { } ~MessageOfPropDefaultTypeInternal() @@ -211,23 +131,18 @@ namespace protobuf MessageOfProp _instance; }; }; - PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MessageOfPropDefaultTypeInternal _MessageOfProp_default_instance_; - constexpr MessageOfPickedProp::MessageOfPickedProp( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized + PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfPropDefaultTypeInternal _MessageOfProp_default_instance_; + PROTOBUF_CONSTEXPR MessageOfPickedProp::MessageOfPickedProp( + ::_pbi::ConstantInitialized ) : - type_(0) - - , - x_(0), - facing_direction_(0), - mapping_id_(int64_t{0}), - y_(0) + _impl_{ + /*decltype(_impl_.type_)*/ 0, /*decltype(_impl_.x_)*/ 0, /*decltype(_impl_.facing_direction_)*/ 0, /*decltype(_impl_.mapping_id_)*/ int64_t{0}, /*decltype(_impl_.y_)*/ 0, /*decltype(_impl_._cached_size_)*/ {}} { } struct MessageOfPickedPropDefaultTypeInternal { - constexpr MessageOfPickedPropDefaultTypeInternal() : - _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) + PROTOBUF_CONSTEXPR MessageOfPickedPropDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) { } ~MessageOfPickedPropDefaultTypeInternal() @@ -238,19 +153,18 @@ namespace protobuf MessageOfPickedProp _instance; }; }; - PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MessageOfPickedPropDefaultTypeInternal _MessageOfPickedProp_default_instance_; - constexpr MessageOfClassroom::MessageOfClassroom( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized + PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfPickedPropDefaultTypeInternal _MessageOfPickedProp_default_instance_; + PROTOBUF_CONSTEXPR MessageOfClassroom::MessageOfClassroom( + ::_pbi::ConstantInitialized ) : - x_(0), - y_(0), - progress_(0) + _impl_{ + /*decltype(_impl_.x_)*/ 0, /*decltype(_impl_.y_)*/ 0, /*decltype(_impl_.progress_)*/ 0, /*decltype(_impl_._cached_size_)*/ {}} { } struct MessageOfClassroomDefaultTypeInternal { - constexpr MessageOfClassroomDefaultTypeInternal() : - _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) + PROTOBUF_CONSTEXPR MessageOfClassroomDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) { } ~MessageOfClassroomDefaultTypeInternal() @@ -261,19 +175,18 @@ namespace protobuf MessageOfClassroom _instance; }; }; - PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MessageOfClassroomDefaultTypeInternal _MessageOfClassroom_default_instance_; - constexpr MessageOfGate::MessageOfGate( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized + PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfClassroomDefaultTypeInternal _MessageOfClassroom_default_instance_; + PROTOBUF_CONSTEXPR MessageOfGate::MessageOfGate( + ::_pbi::ConstantInitialized ) : - x_(0), - y_(0), - progress_(0) + _impl_{ + /*decltype(_impl_.x_)*/ 0, /*decltype(_impl_.y_)*/ 0, /*decltype(_impl_.progress_)*/ 0, /*decltype(_impl_._cached_size_)*/ {}} { } struct MessageOfGateDefaultTypeInternal { - constexpr MessageOfGateDefaultTypeInternal() : - _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) + PROTOBUF_CONSTEXPR MessageOfGateDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) { } ~MessageOfGateDefaultTypeInternal() @@ -284,19 +197,18 @@ namespace protobuf MessageOfGate _instance; }; }; - PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MessageOfGateDefaultTypeInternal _MessageOfGate_default_instance_; - constexpr MessageOfHiddenGate::MessageOfHiddenGate( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized + PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfGateDefaultTypeInternal _MessageOfGate_default_instance_; + PROTOBUF_CONSTEXPR MessageOfHiddenGate::MessageOfHiddenGate( + ::_pbi::ConstantInitialized ) : - x_(0), - y_(0), - opened_(false) + _impl_{ + /*decltype(_impl_.x_)*/ 0, /*decltype(_impl_.y_)*/ 0, /*decltype(_impl_.opened_)*/ false, /*decltype(_impl_._cached_size_)*/ {}} { } struct MessageOfHiddenGateDefaultTypeInternal { - constexpr MessageOfHiddenGateDefaultTypeInternal() : - _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) + PROTOBUF_CONSTEXPR MessageOfHiddenGateDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) { } ~MessageOfHiddenGateDefaultTypeInternal() @@ -307,20 +219,18 @@ namespace protobuf MessageOfHiddenGate _instance; }; }; - PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MessageOfHiddenGateDefaultTypeInternal _MessageOfHiddenGate_default_instance_; - constexpr MessageOfDoor::MessageOfDoor( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized + PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfHiddenGateDefaultTypeInternal _MessageOfHiddenGate_default_instance_; + PROTOBUF_CONSTEXPR MessageOfDoor::MessageOfDoor( + ::_pbi::ConstantInitialized ) : - x_(0), - y_(0), - is_open_(false), - progress_(0) + _impl_{ + /*decltype(_impl_.x_)*/ 0, /*decltype(_impl_.y_)*/ 0, /*decltype(_impl_.is_open_)*/ false, /*decltype(_impl_.progress_)*/ 0, /*decltype(_impl_._cached_size_)*/ {}} { } struct MessageOfDoorDefaultTypeInternal { - constexpr MessageOfDoorDefaultTypeInternal() : - _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) + PROTOBUF_CONSTEXPR MessageOfDoorDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) { } ~MessageOfDoorDefaultTypeInternal() @@ -331,19 +241,18 @@ namespace protobuf MessageOfDoor _instance; }; }; - PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MessageOfDoorDefaultTypeInternal _MessageOfDoor_default_instance_; - constexpr MessageOfChest::MessageOfChest( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized + PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfDoorDefaultTypeInternal _MessageOfDoor_default_instance_; + PROTOBUF_CONSTEXPR MessageOfChest::MessageOfChest( + ::_pbi::ConstantInitialized ) : - x_(0), - y_(0), - progress_(0) + _impl_{ + /*decltype(_impl_.x_)*/ 0, /*decltype(_impl_.y_)*/ 0, /*decltype(_impl_.progress_)*/ 0, /*decltype(_impl_._cached_size_)*/ {}} { } struct MessageOfChestDefaultTypeInternal { - constexpr MessageOfChestDefaultTypeInternal() : - _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) + PROTOBUF_CONSTEXPR MessageOfChestDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) { } ~MessageOfChestDefaultTypeInternal() @@ -354,18 +263,18 @@ namespace protobuf MessageOfChest _instance; }; }; - PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MessageOfChestDefaultTypeInternal _MessageOfChest_default_instance_; - constexpr MessageOfMap_Row::MessageOfMap_Row( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized + PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfChestDefaultTypeInternal _MessageOfChest_default_instance_; + PROTOBUF_CONSTEXPR MessageOfMap_Row::MessageOfMap_Row( + ::_pbi::ConstantInitialized ) : - col_(), - _col_cached_byte_size_(0) + _impl_{ + /*decltype(_impl_.col_)*/ {}, /*decltype(_impl_._col_cached_byte_size_)*/ {0}, /*decltype(_impl_._cached_size_)*/ {}} { } struct MessageOfMap_RowDefaultTypeInternal { - constexpr MessageOfMap_RowDefaultTypeInternal() : - _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) + PROTOBUF_CONSTEXPR MessageOfMap_RowDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) { } ~MessageOfMap_RowDefaultTypeInternal() @@ -376,17 +285,18 @@ namespace protobuf MessageOfMap_Row _instance; }; }; - PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MessageOfMap_RowDefaultTypeInternal _MessageOfMap_Row_default_instance_; - constexpr MessageOfMap::MessageOfMap( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized + PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfMap_RowDefaultTypeInternal _MessageOfMap_Row_default_instance_; + PROTOBUF_CONSTEXPR MessageOfMap::MessageOfMap( + ::_pbi::ConstantInitialized ) : - row_() + _impl_{ + /*decltype(_impl_.row_)*/ {}, /*decltype(_impl_._cached_size_)*/ {}} { } struct MessageOfMapDefaultTypeInternal { - constexpr MessageOfMapDefaultTypeInternal() : - _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) + PROTOBUF_CONSTEXPR MessageOfMapDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) { } ~MessageOfMapDefaultTypeInternal() @@ -397,19 +307,18 @@ namespace protobuf MessageOfMap _instance; }; }; - PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MessageOfMapDefaultTypeInternal _MessageOfMap_default_instance_; - constexpr MessageOfNews::MessageOfNews( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized + PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfMapDefaultTypeInternal _MessageOfMap_default_instance_; + PROTOBUF_CONSTEXPR MessageOfNews::MessageOfNews( + ::_pbi::ConstantInitialized ) : - news_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string), - from_id_(int64_t{0}), - to_id_(int64_t{0}) + _impl_{ + /*decltype(_impl_.news_)*/ {&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}, /*decltype(_impl_.from_id_)*/ int64_t{0}, /*decltype(_impl_.to_id_)*/ int64_t{0}, /*decltype(_impl_._cached_size_)*/ {}} { } struct MessageOfNewsDefaultTypeInternal { - constexpr MessageOfNewsDefaultTypeInternal() : - _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) + PROTOBUF_CONSTEXPR MessageOfNewsDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) { } ~MessageOfNewsDefaultTypeInternal() @@ -420,17 +329,18 @@ namespace protobuf MessageOfNews _instance; }; }; - PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MessageOfNewsDefaultTypeInternal _MessageOfNews_default_instance_; - constexpr MessageOfObj::MessageOfObj( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized + PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfNewsDefaultTypeInternal _MessageOfNews_default_instance_; + PROTOBUF_CONSTEXPR MessageOfObj::MessageOfObj( + ::_pbi::ConstantInitialized ) : - _oneof_case_{} + _impl_{ + /*decltype(_impl_.message_of_obj_)*/ {}, /*decltype(_impl_._cached_size_)*/ {}, /*decltype(_impl_._oneof_case_)*/ {}} { } struct MessageOfObjDefaultTypeInternal { - constexpr MessageOfObjDefaultTypeInternal() : - _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) + PROTOBUF_CONSTEXPR MessageOfObjDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) { } ~MessageOfObjDefaultTypeInternal() @@ -441,22 +351,18 @@ namespace protobuf MessageOfObj _instance; }; }; - PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MessageOfObjDefaultTypeInternal _MessageOfObj_default_instance_; - constexpr MessageOfAll::MessageOfAll( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized + PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfObjDefaultTypeInternal _MessageOfObj_default_instance_; + PROTOBUF_CONSTEXPR MessageOfAll::MessageOfAll( + ::_pbi::ConstantInitialized ) : - game_time_(0), - subject_finished_(0), - student_graduated_(0), - student_quited_(0), - student_score_(0), - tricker_score_(0) + _impl_{ + /*decltype(_impl_.game_time_)*/ 0, /*decltype(_impl_.subject_finished_)*/ 0, /*decltype(_impl_.student_graduated_)*/ 0, /*decltype(_impl_.student_quited_)*/ 0, /*decltype(_impl_.student_score_)*/ 0, /*decltype(_impl_.tricker_score_)*/ 0, /*decltype(_impl_._cached_size_)*/ {}} { } struct MessageOfAllDefaultTypeInternal { - constexpr MessageOfAllDefaultTypeInternal() : - _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) + PROTOBUF_CONSTEXPR MessageOfAllDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) { } ~MessageOfAllDefaultTypeInternal() @@ -467,19 +373,18 @@ namespace protobuf MessageOfAll _instance; }; }; - PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MessageOfAllDefaultTypeInternal _MessageOfAll_default_instance_; - constexpr MessageToClient::MessageToClient( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized + PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfAllDefaultTypeInternal _MessageOfAll_default_instance_; + PROTOBUF_CONSTEXPR MessageToClient::MessageToClient( + ::_pbi::ConstantInitialized ) : - obj_message_(), - all_message_(nullptr), - game_state_(0) + _impl_{ + /*decltype(_impl_.obj_message_)*/ {}, /*decltype(_impl_.all_message_)*/ nullptr, /*decltype(_impl_.game_state_)*/ 0, /*decltype(_impl_._cached_size_)*/ {}} { } struct MessageToClientDefaultTypeInternal { - constexpr MessageToClientDefaultTypeInternal() : - _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) + PROTOBUF_CONSTEXPR MessageToClientDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) { } ~MessageToClientDefaultTypeInternal() @@ -490,19 +395,18 @@ namespace protobuf MessageToClient _instance; }; }; - PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MessageToClientDefaultTypeInternal _MessageToClient_default_instance_; - constexpr MoveRes::MoveRes( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized + PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageToClientDefaultTypeInternal _MessageToClient_default_instance_; + PROTOBUF_CONSTEXPR MoveRes::MoveRes( + ::_pbi::ConstantInitialized ) : - actual_speed_(int64_t{0}), - actual_angle_(0), - act_success_(false) + _impl_{ + /*decltype(_impl_.actual_speed_)*/ int64_t{0}, /*decltype(_impl_.actual_angle_)*/ 0, /*decltype(_impl_.act_success_)*/ false, /*decltype(_impl_._cached_size_)*/ {}} { } struct MoveResDefaultTypeInternal { - constexpr MoveResDefaultTypeInternal() : - _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) + PROTOBUF_CONSTEXPR MoveResDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) { } ~MoveResDefaultTypeInternal() @@ -513,17 +417,18 @@ namespace protobuf MoveRes _instance; }; }; - PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MoveResDefaultTypeInternal _MoveRes_default_instance_; - constexpr BoolRes::BoolRes( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized + PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MoveResDefaultTypeInternal _MoveRes_default_instance_; + PROTOBUF_CONSTEXPR BoolRes::BoolRes( + ::_pbi::ConstantInitialized ) : - act_success_(false) + _impl_{ + /*decltype(_impl_.act_success_)*/ false, /*decltype(_impl_._cached_size_)*/ {}} { } struct BoolResDefaultTypeInternal { - constexpr BoolResDefaultTypeInternal() : - _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) + PROTOBUF_CONSTEXPR BoolResDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) { } ~BoolResDefaultTypeInternal() @@ -534,11 +439,11 @@ namespace protobuf BoolRes _instance; }; }; - PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT BoolResDefaultTypeInternal _BoolRes_default_instance_; + PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BoolResDefaultTypeInternal _BoolRes_default_instance_; } // namespace protobuf -static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_Message2Clients_2eproto[19]; -static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_Message2Clients_2eproto = nullptr; -static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_Message2Clients_2eproto = nullptr; +static ::_pb::Metadata file_level_metadata_Message2Clients_2eproto[19]; +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_Message2Clients_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_Message2Clients_2eproto = nullptr; const uint32_t TableStruct_Message2Clients_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { ~0u, // no _has_bits_ @@ -547,230 +452,230 @@ const uint32_t TableStruct_Message2Clients_2eproto::offsets[] PROTOBUF_SECTION_V ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, x_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, y_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, speed_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, determination_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, addiction_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, time_until_skill_available_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, place_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, prop_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, player_state_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, guid_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, bullet_type_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, learning_speed_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, treat_speed_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, player_id_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, view_range_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, radius_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, danger_alert_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, score_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, treat_progress_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, rescue_progress_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, student_type_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, facing_direction_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, buff_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.x_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.y_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.speed_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.determination_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.addiction_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.time_until_skill_available_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.place_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.prop_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.player_state_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.guid_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.bullet_type_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.learning_speed_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.treat_speed_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.player_id_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.view_range_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.radius_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.danger_alert_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.score_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.treat_progress_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.rescue_progress_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.student_type_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.facing_direction_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.buff_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, x_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, y_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, speed_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, time_until_skill_available_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, place_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, prop_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, tricker_type_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, guid_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, score_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, player_id_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, view_range_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, radius_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, player_state_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, trick_desire_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, class_volume_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, facing_direction_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, bullet_type_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, buff_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.x_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.y_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.speed_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.time_until_skill_available_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.place_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.prop_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.tricker_type_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.guid_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.score_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.player_id_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.view_range_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.radius_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.player_state_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.trick_desire_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.class_volume_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.facing_direction_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.bullet_type_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.buff_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBullet, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBullet, type_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBullet, x_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBullet, y_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBullet, facing_direction_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBullet, guid_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBullet, team_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBullet, place_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBullet, bomb_range_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBullet, speed_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBullet, _impl_.type_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBullet, _impl_.x_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBullet, _impl_.y_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBullet, _impl_.facing_direction_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBullet, _impl_.guid_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBullet, _impl_.team_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBullet, _impl_.place_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBullet, _impl_.bomb_range_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBullet, _impl_.speed_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBombedBullet, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBombedBullet, type_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBombedBullet, x_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBombedBullet, y_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBombedBullet, facing_direction_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBombedBullet, mapping_id_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBombedBullet, bomb_range_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBombedBullet, _impl_.type_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBombedBullet, _impl_.x_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBombedBullet, _impl_.y_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBombedBullet, _impl_.facing_direction_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBombedBullet, _impl_.mapping_id_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBombedBullet, _impl_.bomb_range_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfProp, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfProp, type_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfProp, x_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfProp, y_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfProp, facing_direction_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfProp, guid_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfProp, place_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfProp, _impl_.type_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfProp, _impl_.x_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfProp, _impl_.y_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfProp, _impl_.facing_direction_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfProp, _impl_.guid_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfProp, _impl_.place_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfPickedProp, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfPickedProp, type_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfPickedProp, x_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfPickedProp, y_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfPickedProp, facing_direction_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfPickedProp, mapping_id_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfPickedProp, _impl_.type_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfPickedProp, _impl_.x_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfPickedProp, _impl_.y_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfPickedProp, _impl_.facing_direction_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfPickedProp, _impl_.mapping_id_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfClassroom, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfClassroom, x_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfClassroom, y_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfClassroom, progress_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfClassroom, _impl_.x_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfClassroom, _impl_.y_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfClassroom, _impl_.progress_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfGate, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfGate, x_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfGate, y_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfGate, progress_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfGate, _impl_.x_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfGate, _impl_.y_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfGate, _impl_.progress_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfHiddenGate, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfHiddenGate, x_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfHiddenGate, y_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfHiddenGate, opened_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfHiddenGate, _impl_.x_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfHiddenGate, _impl_.y_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfHiddenGate, _impl_.opened_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfDoor, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfDoor, x_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfDoor, y_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfDoor, is_open_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfDoor, progress_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfDoor, _impl_.x_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfDoor, _impl_.y_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfDoor, _impl_.is_open_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfDoor, _impl_.progress_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfChest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfChest, x_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfChest, y_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfChest, progress_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfChest, _impl_.x_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfChest, _impl_.y_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfChest, _impl_.progress_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfMap_Row, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfMap_Row, col_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfMap_Row, _impl_.col_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfMap, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfMap, row_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfMap, _impl_.row_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfNews, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfNews, news_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfNews, from_id_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfNews, to_id_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfNews, _impl_.news_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfNews, _impl_.from_id_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfNews, _impl_.to_id_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfObj, _internal_metadata_), ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfObj, _oneof_case_[0]), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfObj, _impl_._oneof_case_[0]), ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, - ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, - ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, - ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, - ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, - ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, - ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, - ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, - ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, - ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, - ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, - ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfObj, message_of_obj_), + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfObj, _impl_.message_of_obj_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfAll, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfAll, game_time_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfAll, subject_finished_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfAll, student_graduated_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfAll, student_quited_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfAll, student_score_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfAll, tricker_score_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfAll, _impl_.game_time_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfAll, _impl_.subject_finished_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfAll, _impl_.student_graduated_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfAll, _impl_.student_quited_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfAll, _impl_.student_score_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfAll, _impl_.tricker_score_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::protobuf::MessageToClient, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::protobuf::MessageToClient, obj_message_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageToClient, game_state_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageToClient, all_message_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageToClient, _impl_.obj_message_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageToClient, _impl_.game_state_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageToClient, _impl_.all_message_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::protobuf::MoveRes, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::protobuf::MoveRes, actual_speed_), - PROTOBUF_FIELD_OFFSET(::protobuf::MoveRes, actual_angle_), - PROTOBUF_FIELD_OFFSET(::protobuf::MoveRes, act_success_), + PROTOBUF_FIELD_OFFSET(::protobuf::MoveRes, _impl_.actual_speed_), + PROTOBUF_FIELD_OFFSET(::protobuf::MoveRes, _impl_.actual_angle_), + PROTOBUF_FIELD_OFFSET(::protobuf::MoveRes, _impl_.act_success_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::protobuf::BoolRes, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::protobuf::BoolRes, act_success_), + PROTOBUF_FIELD_OFFSET(::protobuf::BoolRes, _impl_.act_success_), }; -static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { {0, -1, -1, sizeof(::protobuf::MessageOfStudent)}, {29, -1, -1, sizeof(::protobuf::MessageOfTricker)}, {53, -1, -1, sizeof(::protobuf::MessageOfBullet)}, @@ -792,26 +697,26 @@ static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOB {221, -1, -1, sizeof(::protobuf::BoolRes)}, }; -static ::PROTOBUF_NAMESPACE_ID::Message const* const file_default_instances[] = { - reinterpret_cast(&::protobuf::_MessageOfStudent_default_instance_), - reinterpret_cast(&::protobuf::_MessageOfTricker_default_instance_), - reinterpret_cast(&::protobuf::_MessageOfBullet_default_instance_), - reinterpret_cast(&::protobuf::_MessageOfBombedBullet_default_instance_), - reinterpret_cast(&::protobuf::_MessageOfProp_default_instance_), - reinterpret_cast(&::protobuf::_MessageOfPickedProp_default_instance_), - reinterpret_cast(&::protobuf::_MessageOfClassroom_default_instance_), - reinterpret_cast(&::protobuf::_MessageOfGate_default_instance_), - reinterpret_cast(&::protobuf::_MessageOfHiddenGate_default_instance_), - reinterpret_cast(&::protobuf::_MessageOfDoor_default_instance_), - reinterpret_cast(&::protobuf::_MessageOfChest_default_instance_), - reinterpret_cast(&::protobuf::_MessageOfMap_Row_default_instance_), - reinterpret_cast(&::protobuf::_MessageOfMap_default_instance_), - reinterpret_cast(&::protobuf::_MessageOfNews_default_instance_), - reinterpret_cast(&::protobuf::_MessageOfObj_default_instance_), - reinterpret_cast(&::protobuf::_MessageOfAll_default_instance_), - reinterpret_cast(&::protobuf::_MessageToClient_default_instance_), - reinterpret_cast(&::protobuf::_MoveRes_default_instance_), - reinterpret_cast(&::protobuf::_BoolRes_default_instance_), +static const ::_pb::Message* const file_default_instances[] = { + &::protobuf::_MessageOfStudent_default_instance_._instance, + &::protobuf::_MessageOfTricker_default_instance_._instance, + &::protobuf::_MessageOfBullet_default_instance_._instance, + &::protobuf::_MessageOfBombedBullet_default_instance_._instance, + &::protobuf::_MessageOfProp_default_instance_._instance, + &::protobuf::_MessageOfPickedProp_default_instance_._instance, + &::protobuf::_MessageOfClassroom_default_instance_._instance, + &::protobuf::_MessageOfGate_default_instance_._instance, + &::protobuf::_MessageOfHiddenGate_default_instance_._instance, + &::protobuf::_MessageOfDoor_default_instance_._instance, + &::protobuf::_MessageOfChest_default_instance_._instance, + &::protobuf::_MessageOfMap_Row_default_instance_._instance, + &::protobuf::_MessageOfMap_default_instance_._instance, + &::protobuf::_MessageOfNews_default_instance_._instance, + &::protobuf::_MessageOfObj_default_instance_._instance, + &::protobuf::_MessageOfAll_default_instance_._instance, + &::protobuf::_MessageToClient_default_instance_._instance, + &::protobuf::_MoveRes_default_instance_._instance, + &::protobuf::_BoolRes_default_instance_._instance, }; const char descriptor_table_protodef_Message2Clients_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = @@ -900,11 +805,11 @@ const char descriptor_table_protodef_Message2Clients_2eproto[] PROTOBUF_SECTION_ "ual_speed\030\001 \001(\003\022\024\n\014actual_angle\030\002 \001(\001\022\023\n" "\013act_success\030\003 \001(\010\"\036\n\007BoolRes\022\023\n\013act_suc" "cess\030\001 \001(\010b\006proto3"; -static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable* const descriptor_table_Message2Clients_2eproto_deps[1] = { +static const ::_pbi::DescriptorTable* const descriptor_table_Message2Clients_2eproto_deps[1] = { &::descriptor_table_MessageType_2eproto, }; -static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_Message2Clients_2eproto_once; -const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_Message2Clients_2eproto = { +static ::_pbi::once_flag descriptor_table_Message2Clients_2eproto_once; +const ::_pbi::DescriptorTable descriptor_table_Message2Clients_2eproto = { false, false, 3378, @@ -921,13 +826,13 @@ const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_Messag file_level_enum_descriptors_Message2Clients_2eproto, file_level_service_descriptors_Message2Clients_2eproto, }; -PROTOBUF_ATTRIBUTE_WEAK const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable* descriptor_table_Message2Clients_2eproto_getter() +PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_Message2Clients_2eproto_getter() { return &descriptor_table_Message2Clients_2eproto; } // Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY static ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptorsRunner dynamic_init_dummy_Message2Clients_2eproto(&descriptor_table_Message2Clients_2eproto); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_Message2Clients_2eproto(&descriptor_table_Message2Clients_2eproto); namespace protobuf { @@ -939,59 +844,56 @@ namespace protobuf }; MessageOfStudent::MessageOfStudent(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : - ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), - time_until_skill_available_(arena), - prop_(arena), - buff_(arena) + ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) - { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfStudent) } MessageOfStudent::MessageOfStudent(const MessageOfStudent& from) : - ::PROTOBUF_NAMESPACE_ID::Message(), - time_until_skill_available_(from.time_until_skill_available_), - prop_(from.prop_), - buff_(from.buff_) + ::PROTOBUF_NAMESPACE_ID::Message() { + MessageOfStudent* const _this = this; + (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.time_until_skill_available_){from._impl_.time_until_skill_available_}, decltype(_impl_.prop_){from._impl_.prop_}, /*decltype(_impl_._prop_cached_byte_size_)*/ {0}, decltype(_impl_.buff_){from._impl_.buff_}, /*decltype(_impl_._buff_cached_byte_size_)*/ {0}, decltype(_impl_.x_){}, decltype(_impl_.y_){}, decltype(_impl_.speed_){}, decltype(_impl_.determination_){}, decltype(_impl_.addiction_){}, decltype(_impl_.place_){}, decltype(_impl_.guid_){}, decltype(_impl_.player_state_){}, decltype(_impl_.bullet_type_){}, decltype(_impl_.learning_speed_){}, decltype(_impl_.treat_speed_){}, decltype(_impl_.player_id_){}, decltype(_impl_.view_range_){}, decltype(_impl_.radius_){}, decltype(_impl_.danger_alert_){}, decltype(_impl_.score_){}, decltype(_impl_.treat_progress_){}, decltype(_impl_.rescue_progress_){}, decltype(_impl_.student_type_){}, decltype(_impl_.facing_direction_){}, /*decltype(_impl_._cached_size_)*/ {}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::memcpy(&x_, &from.x_, static_cast(reinterpret_cast(&facing_direction_) - reinterpret_cast(&x_)) + sizeof(facing_direction_)); + ::memcpy(&_impl_.x_, &from._impl_.x_, static_cast(reinterpret_cast(&_impl_.facing_direction_) - reinterpret_cast(&_impl_.x_)) + sizeof(_impl_.facing_direction_)); // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfStudent) } - inline void MessageOfStudent::SharedCtor() + inline void MessageOfStudent::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned + ) { - ::memset(reinterpret_cast(this) + static_cast(reinterpret_cast(&x_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&facing_direction_) - reinterpret_cast(&x_)) + sizeof(facing_direction_)); + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.time_until_skill_available_){arena}, decltype(_impl_.prop_){arena}, /*decltype(_impl_._prop_cached_byte_size_)*/ {0}, decltype(_impl_.buff_){arena}, /*decltype(_impl_._buff_cached_byte_size_)*/ {0}, decltype(_impl_.x_){0}, decltype(_impl_.y_){0}, decltype(_impl_.speed_){0}, decltype(_impl_.determination_){0}, decltype(_impl_.addiction_){0}, decltype(_impl_.place_){0}, decltype(_impl_.guid_){int64_t{0}}, decltype(_impl_.player_state_){0}, decltype(_impl_.bullet_type_){0}, decltype(_impl_.learning_speed_){0}, decltype(_impl_.treat_speed_){0}, decltype(_impl_.player_id_){int64_t{0}}, decltype(_impl_.view_range_){0}, decltype(_impl_.radius_){0}, decltype(_impl_.danger_alert_){0}, decltype(_impl_.score_){0}, decltype(_impl_.treat_progress_){0}, decltype(_impl_.rescue_progress_){0}, decltype(_impl_.student_type_){0}, decltype(_impl_.facing_direction_){0}, /*decltype(_impl_._cached_size_)*/ {}}; } MessageOfStudent::~MessageOfStudent() { // @@protoc_insertion_point(destructor:protobuf.MessageOfStudent) - if (GetArenaForAllocation() != nullptr) + if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) + { + (void)arena; return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void MessageOfStudent::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.time_until_skill_available_.~RepeatedField(); + _impl_.prop_.~RepeatedField(); + _impl_.buff_.~RepeatedField(); } - void MessageOfStudent::ArenaDtor(void* object) - { - MessageOfStudent* _this = reinterpret_cast(object); - (void)_this; - } - void MessageOfStudent::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) - { - } void MessageOfStudent::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void MessageOfStudent::Clear() @@ -1001,14 +903,14 @@ namespace protobuf // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; - time_until_skill_available_.Clear(); - prop_.Clear(); - buff_.Clear(); - ::memset(&x_, 0, static_cast(reinterpret_cast(&facing_direction_) - reinterpret_cast(&x_)) + sizeof(facing_direction_)); + _impl_.time_until_skill_available_.Clear(); + _impl_.prop_.Clear(); + _impl_.buff_.Clear(); + ::memset(&_impl_.x_, 0, static_cast(reinterpret_cast(&_impl_.facing_direction_) - reinterpret_cast(&_impl_.x_)) + sizeof(_impl_.facing_direction_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - const char* MessageOfStudent::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) + const char* MessageOfStudent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) \ if (PROTOBUF_PREDICT_FALSE(!(x))) \ @@ -1016,14 +918,14 @@ namespace protobuf while (!ctx->Done(&ptr)) { uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // int32 x = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -1033,7 +935,7 @@ namespace protobuf case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -1043,7 +945,7 @@ namespace protobuf case 3: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - speed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.speed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -1053,7 +955,7 @@ namespace protobuf case 4: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { - determination_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.determination_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -1063,7 +965,7 @@ namespace protobuf case 5: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { - addiction_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.addiction_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -1126,7 +1028,7 @@ namespace protobuf case 10: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 80)) { - guid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.guid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else @@ -1147,7 +1049,7 @@ namespace protobuf case 13: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 104)) { - learning_speed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.learning_speed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -1157,7 +1059,7 @@ namespace protobuf case 14: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 112)) { - treat_speed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.treat_speed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -1167,7 +1069,7 @@ namespace protobuf case 15: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 120)) { - player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else @@ -1177,7 +1079,7 @@ namespace protobuf case 16: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 128)) { - view_range_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.view_range_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -1187,7 +1089,7 @@ namespace protobuf case 17: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 136)) { - radius_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.radius_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -1197,7 +1099,7 @@ namespace protobuf case 19: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 153)) { - danger_alert_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + _impl_.danger_alert_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(double); } else @@ -1207,7 +1109,7 @@ namespace protobuf case 20: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 160)) { - score_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.score_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -1217,7 +1119,7 @@ namespace protobuf case 21: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 168)) { - treat_progress_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.treat_progress_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -1227,7 +1129,7 @@ namespace protobuf case 22: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 176)) { - rescue_progress_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.rescue_progress_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -1248,7 +1150,7 @@ namespace protobuf case 24: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 193)) { - facing_direction_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + _impl_.facing_direction_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(double); } else @@ -1308,35 +1210,35 @@ namespace protobuf if (this->_internal_x() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_x(), target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_x(), target); } // int32 y = 2; if (this->_internal_y() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_y(), target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_y(), target); } // int32 speed = 3; if (this->_internal_speed() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_speed(), target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_speed(), target); } // int32 determination = 4; if (this->_internal_determination() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_determination(), target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(4, this->_internal_determination(), target); } // int32 addiction = 5; if (this->_internal_addiction() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(5, this->_internal_addiction(), target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(5, this->_internal_addiction(), target); } // repeated double time_until_skill_available = 6; @@ -1349,18 +1251,18 @@ namespace protobuf if (this->_internal_place() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 7, this->_internal_place(), target ); } // repeated .protobuf.PropType prop = 8; { - int byte_size = _prop_cached_byte_size_.load(std::memory_order_relaxed); + int byte_size = _impl_._prop_cached_byte_size_.load(std::memory_order_relaxed); if (byte_size > 0) { target = stream->WriteEnumPacked( - 8, prop_, byte_size, target + 8, _impl_.prop_, byte_size, target ); } } @@ -1369,7 +1271,7 @@ namespace protobuf if (this->_internal_player_state() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 9, this->_internal_player_state(), target ); } @@ -1378,14 +1280,14 @@ namespace protobuf if (this->_internal_guid() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(10, this->_internal_guid(), target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(10, this->_internal_guid(), target); } // .protobuf.BulletType bullet_type = 12; if (this->_internal_bullet_type() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 12, this->_internal_bullet_type(), target ); } @@ -1394,35 +1296,35 @@ namespace protobuf if (this->_internal_learning_speed() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(13, this->_internal_learning_speed(), target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(13, this->_internal_learning_speed(), target); } // int32 treat_speed = 14; if (this->_internal_treat_speed() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(14, this->_internal_treat_speed(), target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(14, this->_internal_treat_speed(), target); } // int64 player_id = 15; if (this->_internal_player_id() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(15, this->_internal_player_id(), target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(15, this->_internal_player_id(), target); } // int32 view_range = 16; if (this->_internal_view_range() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(16, this->_internal_view_range(), target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(16, this->_internal_view_range(), target); } // int32 radius = 17; if (this->_internal_radius() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(17, this->_internal_radius(), target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(17, this->_internal_radius(), target); } // double danger_alert = 19; @@ -1433,35 +1335,35 @@ namespace protobuf if (raw_danger_alert != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(19, this->_internal_danger_alert(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(19, this->_internal_danger_alert(), target); } // int32 score = 20; if (this->_internal_score() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(20, this->_internal_score(), target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(20, this->_internal_score(), target); } // int32 treat_progress = 21; if (this->_internal_treat_progress() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(21, this->_internal_treat_progress(), target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(21, this->_internal_treat_progress(), target); } // int32 rescue_progress = 22; if (this->_internal_rescue_progress() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(22, this->_internal_rescue_progress(), target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(22, this->_internal_rescue_progress(), target); } // .protobuf.StudentType student_type = 23; if (this->_internal_student_type() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 23, this->_internal_student_type(), target ); } @@ -1474,23 +1376,23 @@ namespace protobuf if (raw_facing_direction != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(24, this->_internal_facing_direction(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(24, this->_internal_facing_direction(), target); } // repeated .protobuf.StudentBuffType buff = 25; { - int byte_size = _buff_cached_byte_size_.load(std::memory_order_relaxed); + int byte_size = _impl_._buff_cached_byte_size_.load(std::memory_order_relaxed); if (byte_size > 0) { target = stream->WriteEnumPacked( - 25, buff_, byte_size, target + 25, _impl_.buff_, byte_size, target ); } } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream ); } @@ -1514,9 +1416,7 @@ namespace protobuf if (data_size > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast(data_size) - ); + ::_pbi::WireFormatLite::Int32Size(static_cast(data_size)); } total_size += data_size; } @@ -1527,19 +1427,17 @@ namespace protobuf unsigned int count = static_cast(this->_internal_prop_size()); for (unsigned int i = 0; i < count; i++) { - data_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize( + data_size += ::_pbi::WireFormatLite::EnumSize( this->_internal_prop(static_cast(i)) ); } if (data_size > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast(data_size) - ); + ::_pbi::WireFormatLite::Int32Size(static_cast(data_size)); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); - _prop_cached_byte_size_.store(cached_size, std::memory_order_relaxed); + int cached_size = ::_pbi::ToCachedSize(data_size); + _impl_._prop_cached_byte_size_.store(cached_size, std::memory_order_relaxed); total_size += data_size; } @@ -1549,102 +1447,100 @@ namespace protobuf unsigned int count = static_cast(this->_internal_buff_size()); for (unsigned int i = 0; i < count; i++) { - data_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize( + data_size += ::_pbi::WireFormatLite::EnumSize( this->_internal_buff(static_cast(i)) ); } if (data_size > 0) { total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast(data_size) - ); + ::_pbi::WireFormatLite::Int32Size(static_cast(data_size)); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); - _buff_cached_byte_size_.store(cached_size, std::memory_order_relaxed); + int cached_size = ::_pbi::ToCachedSize(data_size); + _impl_._buff_cached_byte_size_.store(cached_size, std::memory_order_relaxed); total_size += data_size; } // int32 x = 1; if (this->_internal_x() != 0) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_x()); + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_x()); } // int32 y = 2; if (this->_internal_y() != 0) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_y()); + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_y()); } // int32 speed = 3; if (this->_internal_speed() != 0) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_speed()); + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_speed()); } // int32 determination = 4; if (this->_internal_determination() != 0) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_determination()); + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_determination()); } // int32 addiction = 5; if (this->_internal_addiction() != 0) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_addiction()); + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_addiction()); } // .protobuf.PlaceType place = 7; if (this->_internal_place() != 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_place()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_place()); } // int64 guid = 10; if (this->_internal_guid() != 0) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_guid()); + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_guid()); } // .protobuf.PlayerState player_state = 9; if (this->_internal_player_state() != 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_player_state()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_player_state()); } // .protobuf.BulletType bullet_type = 12; if (this->_internal_bullet_type() != 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_bullet_type()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_bullet_type()); } // int32 learning_speed = 13; if (this->_internal_learning_speed() != 0) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_learning_speed()); + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_learning_speed()); } // int32 treat_speed = 14; if (this->_internal_treat_speed() != 0) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_treat_speed()); + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_treat_speed()); } // int64 player_id = 15; if (this->_internal_player_id() != 0) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_player_id()); + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_player_id()); } // int32 view_range = 16; if (this->_internal_view_range() != 0) { total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( + ::_pbi::WireFormatLite::Int32Size( this->_internal_view_range() ); } @@ -1653,7 +1549,7 @@ namespace protobuf if (this->_internal_radius() != 0) { total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( + ::_pbi::WireFormatLite::Int32Size( this->_internal_radius() ); } @@ -1672,7 +1568,7 @@ namespace protobuf if (this->_internal_score() != 0) { total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( + ::_pbi::WireFormatLite::Int32Size( this->_internal_score() ); } @@ -1681,7 +1577,7 @@ namespace protobuf if (this->_internal_treat_progress() != 0) { total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( + ::_pbi::WireFormatLite::Int32Size( this->_internal_treat_progress() ); } @@ -1690,7 +1586,7 @@ namespace protobuf if (this->_internal_rescue_progress() != 0) { total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( + ::_pbi::WireFormatLite::Int32Size( this->_internal_rescue_progress() ); } @@ -1699,7 +1595,7 @@ namespace protobuf if (this->_internal_student_type() != 0) { total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_student_type()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_student_type()); } // double facing_direction = 24; @@ -1712,89 +1608,84 @@ namespace protobuf total_size += 2 + 8; } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfStudent::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, MessageOfStudent::MergeImpl}; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfStudent::GetClassData() const { return &_class_data_; } - void MessageOfStudent::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from) - { - static_cast(to)->MergeFrom( - static_cast(from) - ); - } - - void MessageOfStudent::MergeFrom(const MessageOfStudent& from) + void MessageOfStudent::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfStudent) - GOOGLE_DCHECK_NE(&from, this); + GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void)cached_has_bits; - time_until_skill_available_.MergeFrom(from.time_until_skill_available_); - prop_.MergeFrom(from.prop_); - buff_.MergeFrom(from.buff_); + _this->_impl_.time_until_skill_available_.MergeFrom(from._impl_.time_until_skill_available_); + _this->_impl_.prop_.MergeFrom(from._impl_.prop_); + _this->_impl_.buff_.MergeFrom(from._impl_.buff_); if (from._internal_x() != 0) { - _internal_set_x(from._internal_x()); + _this->_internal_set_x(from._internal_x()); } if (from._internal_y() != 0) { - _internal_set_y(from._internal_y()); + _this->_internal_set_y(from._internal_y()); } if (from._internal_speed() != 0) { - _internal_set_speed(from._internal_speed()); + _this->_internal_set_speed(from._internal_speed()); } if (from._internal_determination() != 0) { - _internal_set_determination(from._internal_determination()); + _this->_internal_set_determination(from._internal_determination()); } if (from._internal_addiction() != 0) { - _internal_set_addiction(from._internal_addiction()); + _this->_internal_set_addiction(from._internal_addiction()); } if (from._internal_place() != 0) { - _internal_set_place(from._internal_place()); + _this->_internal_set_place(from._internal_place()); } if (from._internal_guid() != 0) { - _internal_set_guid(from._internal_guid()); + _this->_internal_set_guid(from._internal_guid()); } if (from._internal_player_state() != 0) { - _internal_set_player_state(from._internal_player_state()); + _this->_internal_set_player_state(from._internal_player_state()); } if (from._internal_bullet_type() != 0) { - _internal_set_bullet_type(from._internal_bullet_type()); + _this->_internal_set_bullet_type(from._internal_bullet_type()); } if (from._internal_learning_speed() != 0) { - _internal_set_learning_speed(from._internal_learning_speed()); + _this->_internal_set_learning_speed(from._internal_learning_speed()); } if (from._internal_treat_speed() != 0) { - _internal_set_treat_speed(from._internal_treat_speed()); + _this->_internal_set_treat_speed(from._internal_treat_speed()); } if (from._internal_player_id() != 0) { - _internal_set_player_id(from._internal_player_id()); + _this->_internal_set_player_id(from._internal_player_id()); } if (from._internal_view_range() != 0) { - _internal_set_view_range(from._internal_view_range()); + _this->_internal_set_view_range(from._internal_view_range()); } if (from._internal_radius() != 0) { - _internal_set_radius(from._internal_radius()); + _this->_internal_set_radius(from._internal_radius()); } static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_danger_alert = from._internal_danger_alert(); @@ -1802,23 +1693,23 @@ namespace protobuf memcpy(&raw_danger_alert, &tmp_danger_alert, sizeof(tmp_danger_alert)); if (raw_danger_alert != 0) { - _internal_set_danger_alert(from._internal_danger_alert()); + _this->_internal_set_danger_alert(from._internal_danger_alert()); } if (from._internal_score() != 0) { - _internal_set_score(from._internal_score()); + _this->_internal_set_score(from._internal_score()); } if (from._internal_treat_progress() != 0) { - _internal_set_treat_progress(from._internal_treat_progress()); + _this->_internal_set_treat_progress(from._internal_treat_progress()); } if (from._internal_rescue_progress() != 0) { - _internal_set_rescue_progress(from._internal_rescue_progress()); + _this->_internal_set_rescue_progress(from._internal_rescue_progress()); } if (from._internal_student_type() != 0) { - _internal_set_student_type(from._internal_student_type()); + _this->_internal_set_student_type(from._internal_student_type()); } static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_facing_direction = from._internal_facing_direction(); @@ -1826,9 +1717,9 @@ namespace protobuf memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction)); if (raw_facing_direction != 0) { - _internal_set_facing_direction(from._internal_facing_direction()); + _this->_internal_set_facing_direction(from._internal_facing_direction()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MessageOfStudent::CopyFrom(const MessageOfStudent& from) @@ -1849,19 +1740,19 @@ namespace protobuf { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - time_until_skill_available_.InternalSwap(&other->time_until_skill_available_); - prop_.InternalSwap(&other->prop_); - buff_.InternalSwap(&other->buff_); + _impl_.time_until_skill_available_.InternalSwap(&other->_impl_.time_until_skill_available_); + _impl_.prop_.InternalSwap(&other->_impl_.prop_); + _impl_.buff_.InternalSwap(&other->_impl_.buff_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(MessageOfStudent, facing_direction_) + sizeof(MessageOfStudent::facing_direction_) - PROTOBUF_FIELD_OFFSET(MessageOfStudent, x_)>( - reinterpret_cast(&x_), - reinterpret_cast(&other->x_) + PROTOBUF_FIELD_OFFSET(MessageOfStudent, _impl_.facing_direction_) + sizeof(MessageOfStudent::_impl_.facing_direction_) - PROTOBUF_FIELD_OFFSET(MessageOfStudent, _impl_.x_)>( + reinterpret_cast(&_impl_.x_), + reinterpret_cast(&other->_impl_.x_) ); } ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfStudent::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[0] ); } @@ -1874,59 +1765,56 @@ namespace protobuf }; MessageOfTricker::MessageOfTricker(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : - ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), - time_until_skill_available_(arena), - prop_(arena), - buff_(arena) + ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) - { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfTricker) } MessageOfTricker::MessageOfTricker(const MessageOfTricker& from) : - ::PROTOBUF_NAMESPACE_ID::Message(), - time_until_skill_available_(from.time_until_skill_available_), - prop_(from.prop_), - buff_(from.buff_) + ::PROTOBUF_NAMESPACE_ID::Message() { + MessageOfTricker* const _this = this; + (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.time_until_skill_available_){from._impl_.time_until_skill_available_}, decltype(_impl_.prop_){from._impl_.prop_}, /*decltype(_impl_._prop_cached_byte_size_)*/ {0}, decltype(_impl_.buff_){from._impl_.buff_}, /*decltype(_impl_._buff_cached_byte_size_)*/ {0}, decltype(_impl_.x_){}, decltype(_impl_.y_){}, decltype(_impl_.speed_){}, decltype(_impl_.place_){}, decltype(_impl_.guid_){}, decltype(_impl_.tricker_type_){}, decltype(_impl_.score_){}, decltype(_impl_.player_id_){}, decltype(_impl_.view_range_){}, decltype(_impl_.radius_){}, decltype(_impl_.trick_desire_){}, decltype(_impl_.class_volume_){}, decltype(_impl_.player_state_){}, decltype(_impl_.bullet_type_){}, decltype(_impl_.facing_direction_){}, /*decltype(_impl_._cached_size_)*/ {}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::memcpy(&x_, &from.x_, static_cast(reinterpret_cast(&facing_direction_) - reinterpret_cast(&x_)) + sizeof(facing_direction_)); + ::memcpy(&_impl_.x_, &from._impl_.x_, static_cast(reinterpret_cast(&_impl_.facing_direction_) - reinterpret_cast(&_impl_.x_)) + sizeof(_impl_.facing_direction_)); // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfTricker) } - inline void MessageOfTricker::SharedCtor() + inline void MessageOfTricker::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned + ) { - ::memset(reinterpret_cast(this) + static_cast(reinterpret_cast(&x_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&facing_direction_) - reinterpret_cast(&x_)) + sizeof(facing_direction_)); + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.time_until_skill_available_){arena}, decltype(_impl_.prop_){arena}, /*decltype(_impl_._prop_cached_byte_size_)*/ {0}, decltype(_impl_.buff_){arena}, /*decltype(_impl_._buff_cached_byte_size_)*/ {0}, decltype(_impl_.x_){0}, decltype(_impl_.y_){0}, decltype(_impl_.speed_){0}, decltype(_impl_.place_){0}, decltype(_impl_.guid_){int64_t{0}}, decltype(_impl_.tricker_type_){0}, decltype(_impl_.score_){0}, decltype(_impl_.player_id_){int64_t{0}}, decltype(_impl_.view_range_){0}, decltype(_impl_.radius_){0}, decltype(_impl_.trick_desire_){0}, decltype(_impl_.class_volume_){0}, decltype(_impl_.player_state_){0}, decltype(_impl_.bullet_type_){0}, decltype(_impl_.facing_direction_){0}, /*decltype(_impl_._cached_size_)*/ {}}; } MessageOfTricker::~MessageOfTricker() { // @@protoc_insertion_point(destructor:protobuf.MessageOfTricker) - if (GetArenaForAllocation() != nullptr) + if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) + { + (void)arena; return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void MessageOfTricker::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.time_until_skill_available_.~RepeatedField(); + _impl_.prop_.~RepeatedField(); + _impl_.buff_.~RepeatedField(); } - void MessageOfTricker::ArenaDtor(void* object) - { - MessageOfTricker* _this = reinterpret_cast(object); - (void)_this; - } - void MessageOfTricker::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) - { - } void MessageOfTricker::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void MessageOfTricker::Clear() @@ -1936,14 +1824,14 @@ namespace protobuf // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; - time_until_skill_available_.Clear(); - prop_.Clear(); - buff_.Clear(); - ::memset(&x_, 0, static_cast(reinterpret_cast(&facing_direction_) - reinterpret_cast(&x_)) + sizeof(facing_direction_)); + _impl_.time_until_skill_available_.Clear(); + _impl_.prop_.Clear(); + _impl_.buff_.Clear(); + ::memset(&_impl_.x_, 0, static_cast(reinterpret_cast(&_impl_.facing_direction_) - reinterpret_cast(&_impl_.x_)) + sizeof(_impl_.facing_direction_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - const char* MessageOfTricker::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) + const char* MessageOfTricker::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) \ if (PROTOBUF_PREDICT_FALSE(!(x))) \ @@ -1951,14 +1839,14 @@ namespace protobuf while (!ctx->Done(&ptr)) { uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // int32 x = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -1968,7 +1856,7 @@ namespace protobuf case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -1978,7 +1866,7 @@ namespace protobuf case 3: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - speed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.speed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -2041,7 +1929,7 @@ namespace protobuf case 9: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 72)) { - guid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.guid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else @@ -2051,7 +1939,7 @@ namespace protobuf case 10: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 80)) { - score_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.score_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -2061,7 +1949,7 @@ namespace protobuf case 11: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 88)) { - player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else @@ -2071,7 +1959,7 @@ namespace protobuf case 12: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 96)) { - view_range_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.view_range_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -2081,7 +1969,7 @@ namespace protobuf case 13: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 104)) { - radius_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.radius_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -2102,7 +1990,7 @@ namespace protobuf case 15: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 121)) { - trick_desire_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + _impl_.trick_desire_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(double); } else @@ -2112,7 +2000,7 @@ namespace protobuf case 16: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 129)) { - class_volume_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + _impl_.class_volume_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(double); } else @@ -2122,7 +2010,7 @@ namespace protobuf case 17: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 137)) { - facing_direction_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + _impl_.facing_direction_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(double); } else @@ -2193,21 +2081,21 @@ namespace protobuf if (this->_internal_x() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_x(), target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_x(), target); } // int32 y = 2; if (this->_internal_y() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_y(), target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_y(), target); } // int32 speed = 3; if (this->_internal_speed() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_speed(), target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_speed(), target); } // repeated double time_until_skill_available = 5; @@ -2220,18 +2108,18 @@ namespace protobuf if (this->_internal_place() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 6, this->_internal_place(), target ); } // repeated .protobuf.PropType prop = 7; { - int byte_size = _prop_cached_byte_size_.load(std::memory_order_relaxed); + int byte_size = _impl_._prop_cached_byte_size_.load(std::memory_order_relaxed); if (byte_size > 0) { target = stream->WriteEnumPacked( - 7, prop_, byte_size, target + 7, _impl_.prop_, byte_size, target ); } } @@ -2240,7 +2128,7 @@ namespace protobuf if (this->_internal_tricker_type() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 8, this->_internal_tricker_type(), target ); } @@ -2249,42 +2137,42 @@ namespace protobuf if (this->_internal_guid() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(9, this->_internal_guid(), target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(9, this->_internal_guid(), target); } // int32 score = 10; if (this->_internal_score() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(10, this->_internal_score(), target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(10, this->_internal_score(), target); } // int64 player_id = 11; if (this->_internal_player_id() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(11, this->_internal_player_id(), target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(11, this->_internal_player_id(), target); } // int32 view_range = 12; if (this->_internal_view_range() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(12, this->_internal_view_range(), target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(12, this->_internal_view_range(), target); } // int32 radius = 13; if (this->_internal_radius() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(13, this->_internal_radius(), target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(13, this->_internal_radius(), target); } // .protobuf.PlayerState player_state = 14; if (this->_internal_player_state() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 14, this->_internal_player_state(), target ); } @@ -2297,7 +2185,7 @@ namespace protobuf if (raw_trick_desire != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(15, this->_internal_trick_desire(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(15, this->_internal_trick_desire(), target); } // double class_volume = 16; @@ -2308,7 +2196,7 @@ namespace protobuf if (raw_class_volume != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(16, this->_internal_class_volume(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(16, this->_internal_class_volume(), target); } // double facing_direction = 17; @@ -2319,32 +2207,32 @@ namespace protobuf if (raw_facing_direction != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(17, this->_internal_facing_direction(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(17, this->_internal_facing_direction(), target); } // .protobuf.BulletType bullet_type = 18; if (this->_internal_bullet_type() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 18, this->_internal_bullet_type(), target ); } // repeated .protobuf.TrickerBuffType buff = 19; { - int byte_size = _buff_cached_byte_size_.load(std::memory_order_relaxed); + int byte_size = _impl_._buff_cached_byte_size_.load(std::memory_order_relaxed); if (byte_size > 0) { target = stream->WriteEnumPacked( - 19, buff_, byte_size, target + 19, _impl_.buff_, byte_size, target ); } } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream ); } @@ -2368,9 +2256,7 @@ namespace protobuf if (data_size > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast(data_size) - ); + ::_pbi::WireFormatLite::Int32Size(static_cast(data_size)); } total_size += data_size; } @@ -2381,19 +2267,17 @@ namespace protobuf unsigned int count = static_cast(this->_internal_prop_size()); for (unsigned int i = 0; i < count; i++) { - data_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize( + data_size += ::_pbi::WireFormatLite::EnumSize( this->_internal_prop(static_cast(i)) ); } if (data_size > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast(data_size) - ); + ::_pbi::WireFormatLite::Int32Size(static_cast(data_size)); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); - _prop_cached_byte_size_.store(cached_size, std::memory_order_relaxed); + int cached_size = ::_pbi::ToCachedSize(data_size); + _impl_._prop_cached_byte_size_.store(cached_size, std::memory_order_relaxed); total_size += data_size; } @@ -2403,82 +2287,80 @@ namespace protobuf unsigned int count = static_cast(this->_internal_buff_size()); for (unsigned int i = 0; i < count; i++) { - data_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize( + data_size += ::_pbi::WireFormatLite::EnumSize( this->_internal_buff(static_cast(i)) ); } if (data_size > 0) { total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast(data_size) - ); + ::_pbi::WireFormatLite::Int32Size(static_cast(data_size)); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); - _buff_cached_byte_size_.store(cached_size, std::memory_order_relaxed); + int cached_size = ::_pbi::ToCachedSize(data_size); + _impl_._buff_cached_byte_size_.store(cached_size, std::memory_order_relaxed); total_size += data_size; } // int32 x = 1; if (this->_internal_x() != 0) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_x()); + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_x()); } // int32 y = 2; if (this->_internal_y() != 0) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_y()); + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_y()); } // int32 speed = 3; if (this->_internal_speed() != 0) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_speed()); + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_speed()); } // .protobuf.PlaceType place = 6; if (this->_internal_place() != 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_place()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_place()); } // int64 guid = 9; if (this->_internal_guid() != 0) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_guid()); + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_guid()); } // .protobuf.TrickerType tricker_type = 8; if (this->_internal_tricker_type() != 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_tricker_type()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_tricker_type()); } // int32 score = 10; if (this->_internal_score() != 0) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_score()); + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_score()); } // int64 player_id = 11; if (this->_internal_player_id() != 0) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_player_id()); + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_player_id()); } // int32 view_range = 12; if (this->_internal_view_range() != 0) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_view_range()); + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_view_range()); } // int32 radius = 13; if (this->_internal_radius() != 0) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_radius()); + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_radius()); } // double trick_desire = 15; @@ -2505,14 +2387,14 @@ namespace protobuf if (this->_internal_player_state() != 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_player_state()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_player_state()); } // .protobuf.BulletType bullet_type = 18; if (this->_internal_bullet_type() != 0) { total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_bullet_type()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_bullet_type()); } // double facing_direction = 17; @@ -2525,73 +2407,68 @@ namespace protobuf total_size += 2 + 8; } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfTricker::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, MessageOfTricker::MergeImpl}; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfTricker::GetClassData() const { return &_class_data_; } - void MessageOfTricker::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from) - { - static_cast(to)->MergeFrom( - static_cast(from) - ); - } - - void MessageOfTricker::MergeFrom(const MessageOfTricker& from) + void MessageOfTricker::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfTricker) - GOOGLE_DCHECK_NE(&from, this); + GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void)cached_has_bits; - time_until_skill_available_.MergeFrom(from.time_until_skill_available_); - prop_.MergeFrom(from.prop_); - buff_.MergeFrom(from.buff_); + _this->_impl_.time_until_skill_available_.MergeFrom(from._impl_.time_until_skill_available_); + _this->_impl_.prop_.MergeFrom(from._impl_.prop_); + _this->_impl_.buff_.MergeFrom(from._impl_.buff_); if (from._internal_x() != 0) { - _internal_set_x(from._internal_x()); + _this->_internal_set_x(from._internal_x()); } if (from._internal_y() != 0) { - _internal_set_y(from._internal_y()); + _this->_internal_set_y(from._internal_y()); } if (from._internal_speed() != 0) { - _internal_set_speed(from._internal_speed()); + _this->_internal_set_speed(from._internal_speed()); } if (from._internal_place() != 0) { - _internal_set_place(from._internal_place()); + _this->_internal_set_place(from._internal_place()); } if (from._internal_guid() != 0) { - _internal_set_guid(from._internal_guid()); + _this->_internal_set_guid(from._internal_guid()); } if (from._internal_tricker_type() != 0) { - _internal_set_tricker_type(from._internal_tricker_type()); + _this->_internal_set_tricker_type(from._internal_tricker_type()); } if (from._internal_score() != 0) { - _internal_set_score(from._internal_score()); + _this->_internal_set_score(from._internal_score()); } if (from._internal_player_id() != 0) { - _internal_set_player_id(from._internal_player_id()); + _this->_internal_set_player_id(from._internal_player_id()); } if (from._internal_view_range() != 0) { - _internal_set_view_range(from._internal_view_range()); + _this->_internal_set_view_range(from._internal_view_range()); } if (from._internal_radius() != 0) { - _internal_set_radius(from._internal_radius()); + _this->_internal_set_radius(from._internal_radius()); } static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_trick_desire = from._internal_trick_desire(); @@ -2599,7 +2476,7 @@ namespace protobuf memcpy(&raw_trick_desire, &tmp_trick_desire, sizeof(tmp_trick_desire)); if (raw_trick_desire != 0) { - _internal_set_trick_desire(from._internal_trick_desire()); + _this->_internal_set_trick_desire(from._internal_trick_desire()); } static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_class_volume = from._internal_class_volume(); @@ -2607,15 +2484,15 @@ namespace protobuf memcpy(&raw_class_volume, &tmp_class_volume, sizeof(tmp_class_volume)); if (raw_class_volume != 0) { - _internal_set_class_volume(from._internal_class_volume()); + _this->_internal_set_class_volume(from._internal_class_volume()); } if (from._internal_player_state() != 0) { - _internal_set_player_state(from._internal_player_state()); + _this->_internal_set_player_state(from._internal_player_state()); } if (from._internal_bullet_type() != 0) { - _internal_set_bullet_type(from._internal_bullet_type()); + _this->_internal_set_bullet_type(from._internal_bullet_type()); } static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_facing_direction = from._internal_facing_direction(); @@ -2623,9 +2500,9 @@ namespace protobuf memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction)); if (raw_facing_direction != 0) { - _internal_set_facing_direction(from._internal_facing_direction()); + _this->_internal_set_facing_direction(from._internal_facing_direction()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MessageOfTricker::CopyFrom(const MessageOfTricker& from) @@ -2646,19 +2523,19 @@ namespace protobuf { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - time_until_skill_available_.InternalSwap(&other->time_until_skill_available_); - prop_.InternalSwap(&other->prop_); - buff_.InternalSwap(&other->buff_); + _impl_.time_until_skill_available_.InternalSwap(&other->_impl_.time_until_skill_available_); + _impl_.prop_.InternalSwap(&other->_impl_.prop_); + _impl_.buff_.InternalSwap(&other->_impl_.buff_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(MessageOfTricker, facing_direction_) + sizeof(MessageOfTricker::facing_direction_) - PROTOBUF_FIELD_OFFSET(MessageOfTricker, x_)>( - reinterpret_cast(&x_), - reinterpret_cast(&other->x_) + PROTOBUF_FIELD_OFFSET(MessageOfTricker, _impl_.facing_direction_) + sizeof(MessageOfTricker::_impl_.facing_direction_) - PROTOBUF_FIELD_OFFSET(MessageOfTricker, _impl_.x_)>( + reinterpret_cast(&_impl_.x_), + reinterpret_cast(&other->_impl_.x_) ); } ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfTricker::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[1] ); } @@ -2673,33 +2550,41 @@ namespace protobuf MessageOfBullet::MessageOfBullet(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) - { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfBullet) } MessageOfBullet::MessageOfBullet(const MessageOfBullet& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + MessageOfBullet* const _this = this; + (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.type_){}, decltype(_impl_.x_){}, decltype(_impl_.facing_direction_){}, decltype(_impl_.y_){}, decltype(_impl_.team_){}, decltype(_impl_.guid_){}, decltype(_impl_.bomb_range_){}, decltype(_impl_.place_){}, decltype(_impl_.speed_){}, /*decltype(_impl_._cached_size_)*/ {}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::memcpy(&type_, &from.type_, static_cast(reinterpret_cast(&speed_) - reinterpret_cast(&type_)) + sizeof(speed_)); + ::memcpy(&_impl_.type_, &from._impl_.type_, static_cast(reinterpret_cast(&_impl_.speed_) - reinterpret_cast(&_impl_.type_)) + sizeof(_impl_.speed_)); // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfBullet) } - inline void MessageOfBullet::SharedCtor() + inline void MessageOfBullet::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned + ) { - ::memset(reinterpret_cast(this) + static_cast(reinterpret_cast(&type_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&speed_) - reinterpret_cast(&type_)) + sizeof(speed_)); + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.type_){0}, decltype(_impl_.x_){0}, decltype(_impl_.facing_direction_){0}, decltype(_impl_.y_){0}, decltype(_impl_.team_){0}, decltype(_impl_.guid_){int64_t{0}}, decltype(_impl_.bomb_range_){0}, decltype(_impl_.place_){0}, decltype(_impl_.speed_){0}, /*decltype(_impl_._cached_size_)*/ {}}; } MessageOfBullet::~MessageOfBullet() { // @@protoc_insertion_point(destructor:protobuf.MessageOfBullet) - if (GetArenaForAllocation() != nullptr) + if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) + { + (void)arena; return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void MessageOfBullet::SharedDtor() @@ -2707,17 +2592,9 @@ namespace protobuf GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } - void MessageOfBullet::ArenaDtor(void* object) - { - MessageOfBullet* _this = reinterpret_cast(object); - (void)_this; - } - void MessageOfBullet::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) - { - } void MessageOfBullet::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void MessageOfBullet::Clear() @@ -2727,11 +2604,11 @@ namespace protobuf // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; - ::memset(&type_, 0, static_cast(reinterpret_cast(&speed_) - reinterpret_cast(&type_)) + sizeof(speed_)); + ::memset(&_impl_.type_, 0, static_cast(reinterpret_cast(&_impl_.speed_) - reinterpret_cast(&_impl_.type_)) + sizeof(_impl_.speed_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - const char* MessageOfBullet::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) + const char* MessageOfBullet::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) \ if (PROTOBUF_PREDICT_FALSE(!(x))) \ @@ -2739,7 +2616,7 @@ namespace protobuf while (!ctx->Done(&ptr)) { uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .protobuf.BulletType type = 1; @@ -2757,7 +2634,7 @@ namespace protobuf case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -2767,7 +2644,7 @@ namespace protobuf case 3: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -2777,7 +2654,7 @@ namespace protobuf case 4: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 33)) { - facing_direction_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + _impl_.facing_direction_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(double); } else @@ -2787,7 +2664,7 @@ namespace protobuf case 5: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { - guid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.guid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else @@ -2819,7 +2696,7 @@ namespace protobuf case 8: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 65)) { - bomb_range_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + _impl_.bomb_range_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(double); } else @@ -2829,7 +2706,7 @@ namespace protobuf case 9: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 72)) { - speed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.speed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -2873,7 +2750,7 @@ namespace protobuf if (this->_internal_type() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 1, this->_internal_type(), target ); } @@ -2882,14 +2759,14 @@ namespace protobuf if (this->_internal_x() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_x(), target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_x(), target); } // int32 y = 3; if (this->_internal_y() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_y(), target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_y(), target); } // double facing_direction = 4; @@ -2900,21 +2777,21 @@ namespace protobuf if (raw_facing_direction != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(4, this->_internal_facing_direction(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(4, this->_internal_facing_direction(), target); } // int64 guid = 5; if (this->_internal_guid() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(5, this->_internal_guid(), target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(5, this->_internal_guid(), target); } // .protobuf.PlayerType team = 6; if (this->_internal_team() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 6, this->_internal_team(), target ); } @@ -2923,7 +2800,7 @@ namespace protobuf if (this->_internal_place() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 7, this->_internal_place(), target ); } @@ -2936,19 +2813,19 @@ namespace protobuf if (raw_bomb_range != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(8, this->_internal_bomb_range(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(8, this->_internal_bomb_range(), target); } // int32 speed = 9; if (this->_internal_speed() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(9, this->_internal_speed(), target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(9, this->_internal_speed(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream ); } @@ -2969,13 +2846,13 @@ namespace protobuf if (this->_internal_type() != 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_type()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_type()); } // int32 x = 2; if (this->_internal_x() != 0) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_x()); + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_x()); } // double facing_direction = 4; @@ -2991,20 +2868,20 @@ namespace protobuf // int32 y = 3; if (this->_internal_y() != 0) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_y()); + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_y()); } // .protobuf.PlayerType team = 6; if (this->_internal_team() != 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_team()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_team()); } // int64 guid = 5; if (this->_internal_guid() != 0) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_guid()); + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_guid()); } // double bomb_range = 8; @@ -3021,47 +2898,42 @@ namespace protobuf if (this->_internal_place() != 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_place()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_place()); } // int32 speed = 9; if (this->_internal_speed() != 0) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_speed()); + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_speed()); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfBullet::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, MessageOfBullet::MergeImpl}; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfBullet::GetClassData() const { return &_class_data_; } - void MessageOfBullet::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from) - { - static_cast(to)->MergeFrom( - static_cast(from) - ); - } - - void MessageOfBullet::MergeFrom(const MessageOfBullet& from) + void MessageOfBullet::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfBullet) - GOOGLE_DCHECK_NE(&from, this); + GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void)cached_has_bits; if (from._internal_type() != 0) { - _internal_set_type(from._internal_type()); + _this->_internal_set_type(from._internal_type()); } if (from._internal_x() != 0) { - _internal_set_x(from._internal_x()); + _this->_internal_set_x(from._internal_x()); } static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_facing_direction = from._internal_facing_direction(); @@ -3069,19 +2941,19 @@ namespace protobuf memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction)); if (raw_facing_direction != 0) { - _internal_set_facing_direction(from._internal_facing_direction()); + _this->_internal_set_facing_direction(from._internal_facing_direction()); } if (from._internal_y() != 0) { - _internal_set_y(from._internal_y()); + _this->_internal_set_y(from._internal_y()); } if (from._internal_team() != 0) { - _internal_set_team(from._internal_team()); + _this->_internal_set_team(from._internal_team()); } if (from._internal_guid() != 0) { - _internal_set_guid(from._internal_guid()); + _this->_internal_set_guid(from._internal_guid()); } static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_bomb_range = from._internal_bomb_range(); @@ -3089,17 +2961,17 @@ namespace protobuf memcpy(&raw_bomb_range, &tmp_bomb_range, sizeof(tmp_bomb_range)); if (raw_bomb_range != 0) { - _internal_set_bomb_range(from._internal_bomb_range()); + _this->_internal_set_bomb_range(from._internal_bomb_range()); } if (from._internal_place() != 0) { - _internal_set_place(from._internal_place()); + _this->_internal_set_place(from._internal_place()); } if (from._internal_speed() != 0) { - _internal_set_speed(from._internal_speed()); + _this->_internal_set_speed(from._internal_speed()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MessageOfBullet::CopyFrom(const MessageOfBullet& from) @@ -3121,15 +2993,15 @@ namespace protobuf using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(MessageOfBullet, speed_) + sizeof(MessageOfBullet::speed_) - PROTOBUF_FIELD_OFFSET(MessageOfBullet, type_)>( - reinterpret_cast(&type_), - reinterpret_cast(&other->type_) + PROTOBUF_FIELD_OFFSET(MessageOfBullet, _impl_.speed_) + sizeof(MessageOfBullet::_impl_.speed_) - PROTOBUF_FIELD_OFFSET(MessageOfBullet, _impl_.type_)>( + reinterpret_cast(&_impl_.type_), + reinterpret_cast(&other->_impl_.type_) ); } ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfBullet::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[2] ); } @@ -3144,33 +3016,41 @@ namespace protobuf MessageOfBombedBullet::MessageOfBombedBullet(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) - { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfBombedBullet) } MessageOfBombedBullet::MessageOfBombedBullet(const MessageOfBombedBullet& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + MessageOfBombedBullet* const _this = this; + (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.type_){}, decltype(_impl_.x_){}, decltype(_impl_.facing_direction_){}, decltype(_impl_.mapping_id_){}, decltype(_impl_.bomb_range_){}, decltype(_impl_.y_){}, /*decltype(_impl_._cached_size_)*/ {}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::memcpy(&type_, &from.type_, static_cast(reinterpret_cast(&y_) - reinterpret_cast(&type_)) + sizeof(y_)); + ::memcpy(&_impl_.type_, &from._impl_.type_, static_cast(reinterpret_cast(&_impl_.y_) - reinterpret_cast(&_impl_.type_)) + sizeof(_impl_.y_)); // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfBombedBullet) } - inline void MessageOfBombedBullet::SharedCtor() + inline void MessageOfBombedBullet::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned + ) { - ::memset(reinterpret_cast(this) + static_cast(reinterpret_cast(&type_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&y_) - reinterpret_cast(&type_)) + sizeof(y_)); + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.type_){0}, decltype(_impl_.x_){0}, decltype(_impl_.facing_direction_){0}, decltype(_impl_.mapping_id_){int64_t{0}}, decltype(_impl_.bomb_range_){0}, decltype(_impl_.y_){0}, /*decltype(_impl_._cached_size_)*/ {}}; } MessageOfBombedBullet::~MessageOfBombedBullet() { // @@protoc_insertion_point(destructor:protobuf.MessageOfBombedBullet) - if (GetArenaForAllocation() != nullptr) + if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) + { + (void)arena; return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void MessageOfBombedBullet::SharedDtor() @@ -3178,17 +3058,9 @@ namespace protobuf GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } - void MessageOfBombedBullet::ArenaDtor(void* object) - { - MessageOfBombedBullet* _this = reinterpret_cast(object); - (void)_this; - } - void MessageOfBombedBullet::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) - { - } void MessageOfBombedBullet::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void MessageOfBombedBullet::Clear() @@ -3198,11 +3070,11 @@ namespace protobuf // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; - ::memset(&type_, 0, static_cast(reinterpret_cast(&y_) - reinterpret_cast(&type_)) + sizeof(y_)); + ::memset(&_impl_.type_, 0, static_cast(reinterpret_cast(&_impl_.y_) - reinterpret_cast(&_impl_.type_)) + sizeof(_impl_.y_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - const char* MessageOfBombedBullet::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) + const char* MessageOfBombedBullet::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) \ if (PROTOBUF_PREDICT_FALSE(!(x))) \ @@ -3210,7 +3082,7 @@ namespace protobuf while (!ctx->Done(&ptr)) { uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .protobuf.BulletType type = 1; @@ -3228,7 +3100,7 @@ namespace protobuf case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -3238,7 +3110,7 @@ namespace protobuf case 3: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -3248,7 +3120,7 @@ namespace protobuf case 4: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 33)) { - facing_direction_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + _impl_.facing_direction_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(double); } else @@ -3258,7 +3130,7 @@ namespace protobuf case 5: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { - mapping_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.mapping_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else @@ -3268,7 +3140,7 @@ namespace protobuf case 6: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 49)) { - bomb_range_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + _impl_.bomb_range_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(double); } else @@ -3312,7 +3184,7 @@ namespace protobuf if (this->_internal_type() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 1, this->_internal_type(), target ); } @@ -3321,14 +3193,14 @@ namespace protobuf if (this->_internal_x() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_x(), target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_x(), target); } // int32 y = 3; if (this->_internal_y() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_y(), target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_y(), target); } // double facing_direction = 4; @@ -3339,14 +3211,14 @@ namespace protobuf if (raw_facing_direction != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(4, this->_internal_facing_direction(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(4, this->_internal_facing_direction(), target); } // int64 mapping_id = 5; if (this->_internal_mapping_id() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(5, this->_internal_mapping_id(), target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(5, this->_internal_mapping_id(), target); } // double bomb_range = 6; @@ -3357,12 +3229,12 @@ namespace protobuf if (raw_bomb_range != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(6, this->_internal_bomb_range(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(6, this->_internal_bomb_range(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream ); } @@ -3383,13 +3255,13 @@ namespace protobuf if (this->_internal_type() != 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_type()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_type()); } // int32 x = 2; if (this->_internal_x() != 0) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_x()); + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_x()); } // double facing_direction = 4; @@ -3405,7 +3277,7 @@ namespace protobuf // int64 mapping_id = 5; if (this->_internal_mapping_id() != 0) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_mapping_id()); + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_mapping_id()); } // double bomb_range = 6; @@ -3421,41 +3293,36 @@ namespace protobuf // int32 y = 3; if (this->_internal_y() != 0) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_y()); + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_y()); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfBombedBullet::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, MessageOfBombedBullet::MergeImpl}; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfBombedBullet::GetClassData() const { return &_class_data_; } - void MessageOfBombedBullet::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from) - { - static_cast(to)->MergeFrom( - static_cast(from) - ); - } - - void MessageOfBombedBullet::MergeFrom(const MessageOfBombedBullet& from) + void MessageOfBombedBullet::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfBombedBullet) - GOOGLE_DCHECK_NE(&from, this); + GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void)cached_has_bits; if (from._internal_type() != 0) { - _internal_set_type(from._internal_type()); + _this->_internal_set_type(from._internal_type()); } if (from._internal_x() != 0) { - _internal_set_x(from._internal_x()); + _this->_internal_set_x(from._internal_x()); } static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_facing_direction = from._internal_facing_direction(); @@ -3463,11 +3330,11 @@ namespace protobuf memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction)); if (raw_facing_direction != 0) { - _internal_set_facing_direction(from._internal_facing_direction()); + _this->_internal_set_facing_direction(from._internal_facing_direction()); } if (from._internal_mapping_id() != 0) { - _internal_set_mapping_id(from._internal_mapping_id()); + _this->_internal_set_mapping_id(from._internal_mapping_id()); } static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_bomb_range = from._internal_bomb_range(); @@ -3475,13 +3342,13 @@ namespace protobuf memcpy(&raw_bomb_range, &tmp_bomb_range, sizeof(tmp_bomb_range)); if (raw_bomb_range != 0) { - _internal_set_bomb_range(from._internal_bomb_range()); + _this->_internal_set_bomb_range(from._internal_bomb_range()); } if (from._internal_y() != 0) { - _internal_set_y(from._internal_y()); + _this->_internal_set_y(from._internal_y()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MessageOfBombedBullet::CopyFrom(const MessageOfBombedBullet& from) @@ -3503,15 +3370,15 @@ namespace protobuf using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(MessageOfBombedBullet, y_) + sizeof(MessageOfBombedBullet::y_) - PROTOBUF_FIELD_OFFSET(MessageOfBombedBullet, type_)>( - reinterpret_cast(&type_), - reinterpret_cast(&other->type_) + PROTOBUF_FIELD_OFFSET(MessageOfBombedBullet, _impl_.y_) + sizeof(MessageOfBombedBullet::_impl_.y_) - PROTOBUF_FIELD_OFFSET(MessageOfBombedBullet, _impl_.type_)>( + reinterpret_cast(&_impl_.type_), + reinterpret_cast(&other->_impl_.type_) ); } ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfBombedBullet::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[3] ); } @@ -3526,33 +3393,41 @@ namespace protobuf MessageOfProp::MessageOfProp(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) - { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfProp) } MessageOfProp::MessageOfProp(const MessageOfProp& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + MessageOfProp* const _this = this; + (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.type_){}, decltype(_impl_.x_){}, decltype(_impl_.facing_direction_){}, decltype(_impl_.y_){}, decltype(_impl_.place_){}, decltype(_impl_.guid_){}, /*decltype(_impl_._cached_size_)*/ {}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::memcpy(&type_, &from.type_, static_cast(reinterpret_cast(&guid_) - reinterpret_cast(&type_)) + sizeof(guid_)); + ::memcpy(&_impl_.type_, &from._impl_.type_, static_cast(reinterpret_cast(&_impl_.guid_) - reinterpret_cast(&_impl_.type_)) + sizeof(_impl_.guid_)); // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfProp) } - inline void MessageOfProp::SharedCtor() + inline void MessageOfProp::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned + ) { - ::memset(reinterpret_cast(this) + static_cast(reinterpret_cast(&type_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&guid_) - reinterpret_cast(&type_)) + sizeof(guid_)); + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.type_){0}, decltype(_impl_.x_){0}, decltype(_impl_.facing_direction_){0}, decltype(_impl_.y_){0}, decltype(_impl_.place_){0}, decltype(_impl_.guid_){int64_t{0}}, /*decltype(_impl_._cached_size_)*/ {}}; } MessageOfProp::~MessageOfProp() { // @@protoc_insertion_point(destructor:protobuf.MessageOfProp) - if (GetArenaForAllocation() != nullptr) + if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) + { + (void)arena; return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void MessageOfProp::SharedDtor() @@ -3560,17 +3435,9 @@ namespace protobuf GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } - void MessageOfProp::ArenaDtor(void* object) - { - MessageOfProp* _this = reinterpret_cast(object); - (void)_this; - } - void MessageOfProp::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) - { - } void MessageOfProp::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void MessageOfProp::Clear() @@ -3580,11 +3447,11 @@ namespace protobuf // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; - ::memset(&type_, 0, static_cast(reinterpret_cast(&guid_) - reinterpret_cast(&type_)) + sizeof(guid_)); + ::memset(&_impl_.type_, 0, static_cast(reinterpret_cast(&_impl_.guid_) - reinterpret_cast(&_impl_.type_)) + sizeof(_impl_.guid_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - const char* MessageOfProp::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) + const char* MessageOfProp::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) \ if (PROTOBUF_PREDICT_FALSE(!(x))) \ @@ -3592,7 +3459,7 @@ namespace protobuf while (!ctx->Done(&ptr)) { uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .protobuf.PropType type = 1; @@ -3610,7 +3477,7 @@ namespace protobuf case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -3620,7 +3487,7 @@ namespace protobuf case 3: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -3630,7 +3497,7 @@ namespace protobuf case 4: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 33)) { - facing_direction_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + _impl_.facing_direction_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(double); } else @@ -3640,7 +3507,7 @@ namespace protobuf case 5: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { - guid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.guid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else @@ -3695,7 +3562,7 @@ namespace protobuf if (this->_internal_type() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 1, this->_internal_type(), target ); } @@ -3704,14 +3571,14 @@ namespace protobuf if (this->_internal_x() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_x(), target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_x(), target); } // int32 y = 3; if (this->_internal_y() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_y(), target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_y(), target); } // double facing_direction = 4; @@ -3722,28 +3589,28 @@ namespace protobuf if (raw_facing_direction != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(4, this->_internal_facing_direction(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(4, this->_internal_facing_direction(), target); } // int64 guid = 5; if (this->_internal_guid() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(5, this->_internal_guid(), target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(5, this->_internal_guid(), target); } // .protobuf.PlaceType place = 6; if (this->_internal_place() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 6, this->_internal_place(), target ); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream ); } @@ -3764,13 +3631,13 @@ namespace protobuf if (this->_internal_type() != 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_type()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_type()); } // int32 x = 2; if (this->_internal_x() != 0) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_x()); + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_x()); } // double facing_direction = 4; @@ -3786,54 +3653,49 @@ namespace protobuf // int32 y = 3; if (this->_internal_y() != 0) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_y()); + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_y()); } // .protobuf.PlaceType place = 6; if (this->_internal_place() != 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_place()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_place()); } // int64 guid = 5; if (this->_internal_guid() != 0) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_guid()); + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_guid()); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfProp::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, MessageOfProp::MergeImpl}; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfProp::GetClassData() const { return &_class_data_; } - void MessageOfProp::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from) - { - static_cast(to)->MergeFrom( - static_cast(from) - ); - } - - void MessageOfProp::MergeFrom(const MessageOfProp& from) + void MessageOfProp::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfProp) - GOOGLE_DCHECK_NE(&from, this); + GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void)cached_has_bits; if (from._internal_type() != 0) { - _internal_set_type(from._internal_type()); + _this->_internal_set_type(from._internal_type()); } if (from._internal_x() != 0) { - _internal_set_x(from._internal_x()); + _this->_internal_set_x(from._internal_x()); } static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_facing_direction = from._internal_facing_direction(); @@ -3841,21 +3703,21 @@ namespace protobuf memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction)); if (raw_facing_direction != 0) { - _internal_set_facing_direction(from._internal_facing_direction()); + _this->_internal_set_facing_direction(from._internal_facing_direction()); } if (from._internal_y() != 0) { - _internal_set_y(from._internal_y()); + _this->_internal_set_y(from._internal_y()); } if (from._internal_place() != 0) { - _internal_set_place(from._internal_place()); + _this->_internal_set_place(from._internal_place()); } if (from._internal_guid() != 0) { - _internal_set_guid(from._internal_guid()); + _this->_internal_set_guid(from._internal_guid()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MessageOfProp::CopyFrom(const MessageOfProp& from) @@ -3877,15 +3739,15 @@ namespace protobuf using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(MessageOfProp, guid_) + sizeof(MessageOfProp::guid_) - PROTOBUF_FIELD_OFFSET(MessageOfProp, type_)>( - reinterpret_cast(&type_), - reinterpret_cast(&other->type_) + PROTOBUF_FIELD_OFFSET(MessageOfProp, _impl_.guid_) + sizeof(MessageOfProp::_impl_.guid_) - PROTOBUF_FIELD_OFFSET(MessageOfProp, _impl_.type_)>( + reinterpret_cast(&_impl_.type_), + reinterpret_cast(&other->_impl_.type_) ); } ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfProp::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[4] ); } @@ -3900,33 +3762,41 @@ namespace protobuf MessageOfPickedProp::MessageOfPickedProp(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) - { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfPickedProp) } MessageOfPickedProp::MessageOfPickedProp(const MessageOfPickedProp& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + MessageOfPickedProp* const _this = this; + (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.type_){}, decltype(_impl_.x_){}, decltype(_impl_.facing_direction_){}, decltype(_impl_.mapping_id_){}, decltype(_impl_.y_){}, /*decltype(_impl_._cached_size_)*/ {}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::memcpy(&type_, &from.type_, static_cast(reinterpret_cast(&y_) - reinterpret_cast(&type_)) + sizeof(y_)); + ::memcpy(&_impl_.type_, &from._impl_.type_, static_cast(reinterpret_cast(&_impl_.y_) - reinterpret_cast(&_impl_.type_)) + sizeof(_impl_.y_)); // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfPickedProp) } - inline void MessageOfPickedProp::SharedCtor() + inline void MessageOfPickedProp::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned + ) { - ::memset(reinterpret_cast(this) + static_cast(reinterpret_cast(&type_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&y_) - reinterpret_cast(&type_)) + sizeof(y_)); + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.type_){0}, decltype(_impl_.x_){0}, decltype(_impl_.facing_direction_){0}, decltype(_impl_.mapping_id_){int64_t{0}}, decltype(_impl_.y_){0}, /*decltype(_impl_._cached_size_)*/ {}}; } MessageOfPickedProp::~MessageOfPickedProp() { // @@protoc_insertion_point(destructor:protobuf.MessageOfPickedProp) - if (GetArenaForAllocation() != nullptr) + if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) + { + (void)arena; return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void MessageOfPickedProp::SharedDtor() @@ -3934,17 +3804,9 @@ namespace protobuf GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } - void MessageOfPickedProp::ArenaDtor(void* object) - { - MessageOfPickedProp* _this = reinterpret_cast(object); - (void)_this; - } - void MessageOfPickedProp::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) - { - } void MessageOfPickedProp::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void MessageOfPickedProp::Clear() @@ -3954,11 +3816,11 @@ namespace protobuf // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; - ::memset(&type_, 0, static_cast(reinterpret_cast(&y_) - reinterpret_cast(&type_)) + sizeof(y_)); + ::memset(&_impl_.type_, 0, static_cast(reinterpret_cast(&_impl_.y_) - reinterpret_cast(&_impl_.type_)) + sizeof(_impl_.y_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - const char* MessageOfPickedProp::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) + const char* MessageOfPickedProp::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) \ if (PROTOBUF_PREDICT_FALSE(!(x))) \ @@ -3966,7 +3828,7 @@ namespace protobuf while (!ctx->Done(&ptr)) { uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .protobuf.PropType type = 1; @@ -3984,7 +3846,7 @@ namespace protobuf case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -3994,7 +3856,7 @@ namespace protobuf case 3: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -4004,7 +3866,7 @@ namespace protobuf case 4: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 33)) { - facing_direction_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + _impl_.facing_direction_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(double); } else @@ -4014,7 +3876,7 @@ namespace protobuf case 5: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { - mapping_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.mapping_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else @@ -4058,7 +3920,7 @@ namespace protobuf if (this->_internal_type() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 1, this->_internal_type(), target ); } @@ -4067,14 +3929,14 @@ namespace protobuf if (this->_internal_x() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_x(), target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_x(), target); } // int32 y = 3; if (this->_internal_y() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_y(), target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_y(), target); } // double facing_direction = 4; @@ -4085,19 +3947,19 @@ namespace protobuf if (raw_facing_direction != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(4, this->_internal_facing_direction(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(4, this->_internal_facing_direction(), target); } // int64 mapping_id = 5; if (this->_internal_mapping_id() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(5, this->_internal_mapping_id(), target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(5, this->_internal_mapping_id(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream ); } @@ -4118,13 +3980,13 @@ namespace protobuf if (this->_internal_type() != 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_type()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_type()); } // int32 x = 2; if (this->_internal_x() != 0) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_x()); + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_x()); } // double facing_direction = 4; @@ -4140,47 +4002,42 @@ namespace protobuf // int64 mapping_id = 5; if (this->_internal_mapping_id() != 0) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_mapping_id()); + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_mapping_id()); } // int32 y = 3; if (this->_internal_y() != 0) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_y()); + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_y()); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfPickedProp::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, MessageOfPickedProp::MergeImpl}; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfPickedProp::GetClassData() const { return &_class_data_; } - void MessageOfPickedProp::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from) - { - static_cast(to)->MergeFrom( - static_cast(from) - ); - } - - void MessageOfPickedProp::MergeFrom(const MessageOfPickedProp& from) + void MessageOfPickedProp::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfPickedProp) - GOOGLE_DCHECK_NE(&from, this); + GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void)cached_has_bits; if (from._internal_type() != 0) { - _internal_set_type(from._internal_type()); + _this->_internal_set_type(from._internal_type()); } if (from._internal_x() != 0) { - _internal_set_x(from._internal_x()); + _this->_internal_set_x(from._internal_x()); } static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_facing_direction = from._internal_facing_direction(); @@ -4188,17 +4045,17 @@ namespace protobuf memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction)); if (raw_facing_direction != 0) { - _internal_set_facing_direction(from._internal_facing_direction()); + _this->_internal_set_facing_direction(from._internal_facing_direction()); } if (from._internal_mapping_id() != 0) { - _internal_set_mapping_id(from._internal_mapping_id()); + _this->_internal_set_mapping_id(from._internal_mapping_id()); } if (from._internal_y() != 0) { - _internal_set_y(from._internal_y()); + _this->_internal_set_y(from._internal_y()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MessageOfPickedProp::CopyFrom(const MessageOfPickedProp& from) @@ -4220,15 +4077,15 @@ namespace protobuf using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(MessageOfPickedProp, y_) + sizeof(MessageOfPickedProp::y_) - PROTOBUF_FIELD_OFFSET(MessageOfPickedProp, type_)>( - reinterpret_cast(&type_), - reinterpret_cast(&other->type_) + PROTOBUF_FIELD_OFFSET(MessageOfPickedProp, _impl_.y_) + sizeof(MessageOfPickedProp::_impl_.y_) - PROTOBUF_FIELD_OFFSET(MessageOfPickedProp, _impl_.type_)>( + reinterpret_cast(&_impl_.type_), + reinterpret_cast(&other->_impl_.type_) ); } ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfPickedProp::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[5] ); } @@ -4243,33 +4100,41 @@ namespace protobuf MessageOfClassroom::MessageOfClassroom(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) - { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfClassroom) } MessageOfClassroom::MessageOfClassroom(const MessageOfClassroom& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + MessageOfClassroom* const _this = this; + (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.x_){}, decltype(_impl_.y_){}, decltype(_impl_.progress_){}, /*decltype(_impl_._cached_size_)*/ {}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::memcpy(&x_, &from.x_, static_cast(reinterpret_cast(&progress_) - reinterpret_cast(&x_)) + sizeof(progress_)); + ::memcpy(&_impl_.x_, &from._impl_.x_, static_cast(reinterpret_cast(&_impl_.progress_) - reinterpret_cast(&_impl_.x_)) + sizeof(_impl_.progress_)); // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfClassroom) } - inline void MessageOfClassroom::SharedCtor() + inline void MessageOfClassroom::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned + ) { - ::memset(reinterpret_cast(this) + static_cast(reinterpret_cast(&x_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&progress_) - reinterpret_cast(&x_)) + sizeof(progress_)); + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.x_){0}, decltype(_impl_.y_){0}, decltype(_impl_.progress_){0}, /*decltype(_impl_._cached_size_)*/ {}}; } MessageOfClassroom::~MessageOfClassroom() { // @@protoc_insertion_point(destructor:protobuf.MessageOfClassroom) - if (GetArenaForAllocation() != nullptr) + if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) + { + (void)arena; return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void MessageOfClassroom::SharedDtor() @@ -4277,17 +4142,9 @@ namespace protobuf GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } - void MessageOfClassroom::ArenaDtor(void* object) - { - MessageOfClassroom* _this = reinterpret_cast(object); - (void)_this; - } - void MessageOfClassroom::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) - { - } void MessageOfClassroom::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void MessageOfClassroom::Clear() @@ -4297,11 +4154,11 @@ namespace protobuf // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; - ::memset(&x_, 0, static_cast(reinterpret_cast(&progress_) - reinterpret_cast(&x_)) + sizeof(progress_)); + ::memset(&_impl_.x_, 0, static_cast(reinterpret_cast(&_impl_.progress_) - reinterpret_cast(&_impl_.x_)) + sizeof(_impl_.progress_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - const char* MessageOfClassroom::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) + const char* MessageOfClassroom::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) \ if (PROTOBUF_PREDICT_FALSE(!(x))) \ @@ -4309,14 +4166,14 @@ namespace protobuf while (!ctx->Done(&ptr)) { uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // int32 x = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -4326,7 +4183,7 @@ namespace protobuf case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -4336,7 +4193,7 @@ namespace protobuf case 3: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - progress_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.progress_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -4380,26 +4237,26 @@ namespace protobuf if (this->_internal_x() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_x(), target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_x(), target); } // int32 y = 2; if (this->_internal_y() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_y(), target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_y(), target); } // int32 progress = 3; if (this->_internal_progress() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_progress(), target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_progress(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream ); } @@ -4419,59 +4276,54 @@ namespace protobuf // int32 x = 1; if (this->_internal_x() != 0) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_x()); + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_x()); } // int32 y = 2; if (this->_internal_y() != 0) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_y()); + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_y()); } // int32 progress = 3; if (this->_internal_progress() != 0) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_progress()); + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_progress()); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfClassroom::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, MessageOfClassroom::MergeImpl}; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfClassroom::GetClassData() const { return &_class_data_; } - void MessageOfClassroom::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from) - { - static_cast(to)->MergeFrom( - static_cast(from) - ); - } - - void MessageOfClassroom::MergeFrom(const MessageOfClassroom& from) + void MessageOfClassroom::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfClassroom) - GOOGLE_DCHECK_NE(&from, this); + GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void)cached_has_bits; if (from._internal_x() != 0) { - _internal_set_x(from._internal_x()); + _this->_internal_set_x(from._internal_x()); } if (from._internal_y() != 0) { - _internal_set_y(from._internal_y()); + _this->_internal_set_y(from._internal_y()); } if (from._internal_progress() != 0) { - _internal_set_progress(from._internal_progress()); + _this->_internal_set_progress(from._internal_progress()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MessageOfClassroom::CopyFrom(const MessageOfClassroom& from) @@ -4493,15 +4345,15 @@ namespace protobuf using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(MessageOfClassroom, progress_) + sizeof(MessageOfClassroom::progress_) - PROTOBUF_FIELD_OFFSET(MessageOfClassroom, x_)>( - reinterpret_cast(&x_), - reinterpret_cast(&other->x_) + PROTOBUF_FIELD_OFFSET(MessageOfClassroom, _impl_.progress_) + sizeof(MessageOfClassroom::_impl_.progress_) - PROTOBUF_FIELD_OFFSET(MessageOfClassroom, _impl_.x_)>( + reinterpret_cast(&_impl_.x_), + reinterpret_cast(&other->_impl_.x_) ); } ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfClassroom::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[6] ); } @@ -4516,33 +4368,41 @@ namespace protobuf MessageOfGate::MessageOfGate(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) - { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfGate) } MessageOfGate::MessageOfGate(const MessageOfGate& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + MessageOfGate* const _this = this; + (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.x_){}, decltype(_impl_.y_){}, decltype(_impl_.progress_){}, /*decltype(_impl_._cached_size_)*/ {}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::memcpy(&x_, &from.x_, static_cast(reinterpret_cast(&progress_) - reinterpret_cast(&x_)) + sizeof(progress_)); + ::memcpy(&_impl_.x_, &from._impl_.x_, static_cast(reinterpret_cast(&_impl_.progress_) - reinterpret_cast(&_impl_.x_)) + sizeof(_impl_.progress_)); // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfGate) } - inline void MessageOfGate::SharedCtor() + inline void MessageOfGate::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned + ) { - ::memset(reinterpret_cast(this) + static_cast(reinterpret_cast(&x_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&progress_) - reinterpret_cast(&x_)) + sizeof(progress_)); + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.x_){0}, decltype(_impl_.y_){0}, decltype(_impl_.progress_){0}, /*decltype(_impl_._cached_size_)*/ {}}; } MessageOfGate::~MessageOfGate() { // @@protoc_insertion_point(destructor:protobuf.MessageOfGate) - if (GetArenaForAllocation() != nullptr) + if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) + { + (void)arena; return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void MessageOfGate::SharedDtor() @@ -4550,17 +4410,9 @@ namespace protobuf GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } - void MessageOfGate::ArenaDtor(void* object) - { - MessageOfGate* _this = reinterpret_cast(object); - (void)_this; - } - void MessageOfGate::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) - { - } void MessageOfGate::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void MessageOfGate::Clear() @@ -4570,11 +4422,11 @@ namespace protobuf // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; - ::memset(&x_, 0, static_cast(reinterpret_cast(&progress_) - reinterpret_cast(&x_)) + sizeof(progress_)); + ::memset(&_impl_.x_, 0, static_cast(reinterpret_cast(&_impl_.progress_) - reinterpret_cast(&_impl_.x_)) + sizeof(_impl_.progress_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - const char* MessageOfGate::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) + const char* MessageOfGate::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) \ if (PROTOBUF_PREDICT_FALSE(!(x))) \ @@ -4582,14 +4434,14 @@ namespace protobuf while (!ctx->Done(&ptr)) { uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // int32 x = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -4599,7 +4451,7 @@ namespace protobuf case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -4609,7 +4461,7 @@ namespace protobuf case 3: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - progress_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.progress_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -4653,26 +4505,26 @@ namespace protobuf if (this->_internal_x() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_x(), target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_x(), target); } // int32 y = 2; if (this->_internal_y() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_y(), target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_y(), target); } // int32 progress = 3; if (this->_internal_progress() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_progress(), target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_progress(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream ); } @@ -4692,59 +4544,54 @@ namespace protobuf // int32 x = 1; if (this->_internal_x() != 0) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_x()); + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_x()); } // int32 y = 2; if (this->_internal_y() != 0) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_y()); + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_y()); } // int32 progress = 3; if (this->_internal_progress() != 0) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_progress()); + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_progress()); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfGate::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, MessageOfGate::MergeImpl}; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfGate::GetClassData() const { return &_class_data_; } - void MessageOfGate::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from) - { - static_cast(to)->MergeFrom( - static_cast(from) - ); - } - - void MessageOfGate::MergeFrom(const MessageOfGate& from) + void MessageOfGate::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfGate) - GOOGLE_DCHECK_NE(&from, this); + GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void)cached_has_bits; if (from._internal_x() != 0) { - _internal_set_x(from._internal_x()); + _this->_internal_set_x(from._internal_x()); } if (from._internal_y() != 0) { - _internal_set_y(from._internal_y()); + _this->_internal_set_y(from._internal_y()); } if (from._internal_progress() != 0) { - _internal_set_progress(from._internal_progress()); + _this->_internal_set_progress(from._internal_progress()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MessageOfGate::CopyFrom(const MessageOfGate& from) @@ -4766,15 +4613,15 @@ namespace protobuf using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(MessageOfGate, progress_) + sizeof(MessageOfGate::progress_) - PROTOBUF_FIELD_OFFSET(MessageOfGate, x_)>( - reinterpret_cast(&x_), - reinterpret_cast(&other->x_) + PROTOBUF_FIELD_OFFSET(MessageOfGate, _impl_.progress_) + sizeof(MessageOfGate::_impl_.progress_) - PROTOBUF_FIELD_OFFSET(MessageOfGate, _impl_.x_)>( + reinterpret_cast(&_impl_.x_), + reinterpret_cast(&other->_impl_.x_) ); } ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfGate::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[7] ); } @@ -4789,33 +4636,41 @@ namespace protobuf MessageOfHiddenGate::MessageOfHiddenGate(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) - { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfHiddenGate) } MessageOfHiddenGate::MessageOfHiddenGate(const MessageOfHiddenGate& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + MessageOfHiddenGate* const _this = this; + (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.x_){}, decltype(_impl_.y_){}, decltype(_impl_.opened_){}, /*decltype(_impl_._cached_size_)*/ {}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::memcpy(&x_, &from.x_, static_cast(reinterpret_cast(&opened_) - reinterpret_cast(&x_)) + sizeof(opened_)); + ::memcpy(&_impl_.x_, &from._impl_.x_, static_cast(reinterpret_cast(&_impl_.opened_) - reinterpret_cast(&_impl_.x_)) + sizeof(_impl_.opened_)); // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfHiddenGate) } - inline void MessageOfHiddenGate::SharedCtor() + inline void MessageOfHiddenGate::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned + ) { - ::memset(reinterpret_cast(this) + static_cast(reinterpret_cast(&x_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&opened_) - reinterpret_cast(&x_)) + sizeof(opened_)); + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.x_){0}, decltype(_impl_.y_){0}, decltype(_impl_.opened_){false}, /*decltype(_impl_._cached_size_)*/ {}}; } MessageOfHiddenGate::~MessageOfHiddenGate() { // @@protoc_insertion_point(destructor:protobuf.MessageOfHiddenGate) - if (GetArenaForAllocation() != nullptr) + if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) + { + (void)arena; return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void MessageOfHiddenGate::SharedDtor() @@ -4823,17 +4678,9 @@ namespace protobuf GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } - void MessageOfHiddenGate::ArenaDtor(void* object) - { - MessageOfHiddenGate* _this = reinterpret_cast(object); - (void)_this; - } - void MessageOfHiddenGate::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) - { - } void MessageOfHiddenGate::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void MessageOfHiddenGate::Clear() @@ -4843,11 +4690,11 @@ namespace protobuf // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; - ::memset(&x_, 0, static_cast(reinterpret_cast(&opened_) - reinterpret_cast(&x_)) + sizeof(opened_)); + ::memset(&_impl_.x_, 0, static_cast(reinterpret_cast(&_impl_.opened_) - reinterpret_cast(&_impl_.x_)) + sizeof(_impl_.opened_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - const char* MessageOfHiddenGate::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) + const char* MessageOfHiddenGate::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) \ if (PROTOBUF_PREDICT_FALSE(!(x))) \ @@ -4855,14 +4702,14 @@ namespace protobuf while (!ctx->Done(&ptr)) { uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // int32 x = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -4872,7 +4719,7 @@ namespace protobuf case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -4882,7 +4729,7 @@ namespace protobuf case 3: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - opened_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.opened_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else @@ -4926,26 +4773,26 @@ namespace protobuf if (this->_internal_x() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_x(), target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_x(), target); } // int32 y = 2; if (this->_internal_y() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_y(), target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_y(), target); } // bool opened = 3; if (this->_internal_opened() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(3, this->_internal_opened(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_opened(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream ); } @@ -4965,13 +4812,13 @@ namespace protobuf // int32 x = 1; if (this->_internal_x() != 0) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_x()); + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_x()); } // int32 y = 2; if (this->_internal_y() != 0) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_y()); + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_y()); } // bool opened = 3; @@ -4980,44 +4827,39 @@ namespace protobuf total_size += 1 + 1; } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfHiddenGate::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, MessageOfHiddenGate::MergeImpl}; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfHiddenGate::GetClassData() const { return &_class_data_; } - void MessageOfHiddenGate::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from) - { - static_cast(to)->MergeFrom( - static_cast(from) - ); - } - - void MessageOfHiddenGate::MergeFrom(const MessageOfHiddenGate& from) + void MessageOfHiddenGate::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfHiddenGate) - GOOGLE_DCHECK_NE(&from, this); + GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void)cached_has_bits; if (from._internal_x() != 0) { - _internal_set_x(from._internal_x()); + _this->_internal_set_x(from._internal_x()); } if (from._internal_y() != 0) { - _internal_set_y(from._internal_y()); + _this->_internal_set_y(from._internal_y()); } if (from._internal_opened() != 0) { - _internal_set_opened(from._internal_opened()); + _this->_internal_set_opened(from._internal_opened()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MessageOfHiddenGate::CopyFrom(const MessageOfHiddenGate& from) @@ -5039,15 +4881,15 @@ namespace protobuf using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(MessageOfHiddenGate, opened_) + sizeof(MessageOfHiddenGate::opened_) - PROTOBUF_FIELD_OFFSET(MessageOfHiddenGate, x_)>( - reinterpret_cast(&x_), - reinterpret_cast(&other->x_) + PROTOBUF_FIELD_OFFSET(MessageOfHiddenGate, _impl_.opened_) + sizeof(MessageOfHiddenGate::_impl_.opened_) - PROTOBUF_FIELD_OFFSET(MessageOfHiddenGate, _impl_.x_)>( + reinterpret_cast(&_impl_.x_), + reinterpret_cast(&other->_impl_.x_) ); } ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfHiddenGate::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[8] ); } @@ -5062,33 +4904,41 @@ namespace protobuf MessageOfDoor::MessageOfDoor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) - { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfDoor) } MessageOfDoor::MessageOfDoor(const MessageOfDoor& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + MessageOfDoor* const _this = this; + (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.x_){}, decltype(_impl_.y_){}, decltype(_impl_.is_open_){}, decltype(_impl_.progress_){}, /*decltype(_impl_._cached_size_)*/ {}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::memcpy(&x_, &from.x_, static_cast(reinterpret_cast(&progress_) - reinterpret_cast(&x_)) + sizeof(progress_)); + ::memcpy(&_impl_.x_, &from._impl_.x_, static_cast(reinterpret_cast(&_impl_.progress_) - reinterpret_cast(&_impl_.x_)) + sizeof(_impl_.progress_)); // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfDoor) } - inline void MessageOfDoor::SharedCtor() + inline void MessageOfDoor::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned + ) { - ::memset(reinterpret_cast(this) + static_cast(reinterpret_cast(&x_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&progress_) - reinterpret_cast(&x_)) + sizeof(progress_)); + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.x_){0}, decltype(_impl_.y_){0}, decltype(_impl_.is_open_){false}, decltype(_impl_.progress_){0}, /*decltype(_impl_._cached_size_)*/ {}}; } MessageOfDoor::~MessageOfDoor() { // @@protoc_insertion_point(destructor:protobuf.MessageOfDoor) - if (GetArenaForAllocation() != nullptr) + if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) + { + (void)arena; return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void MessageOfDoor::SharedDtor() @@ -5096,17 +4946,9 @@ namespace protobuf GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } - void MessageOfDoor::ArenaDtor(void* object) - { - MessageOfDoor* _this = reinterpret_cast(object); - (void)_this; - } - void MessageOfDoor::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) - { - } void MessageOfDoor::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void MessageOfDoor::Clear() @@ -5116,11 +4958,11 @@ namespace protobuf // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; - ::memset(&x_, 0, static_cast(reinterpret_cast(&progress_) - reinterpret_cast(&x_)) + sizeof(progress_)); + ::memset(&_impl_.x_, 0, static_cast(reinterpret_cast(&_impl_.progress_) - reinterpret_cast(&_impl_.x_)) + sizeof(_impl_.progress_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - const char* MessageOfDoor::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) + const char* MessageOfDoor::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) \ if (PROTOBUF_PREDICT_FALSE(!(x))) \ @@ -5128,14 +4970,14 @@ namespace protobuf while (!ctx->Done(&ptr)) { uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // int32 x = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -5145,7 +4987,7 @@ namespace protobuf case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -5155,7 +4997,7 @@ namespace protobuf case 3: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - is_open_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.is_open_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else @@ -5165,7 +5007,7 @@ namespace protobuf case 4: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { - progress_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.progress_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -5209,33 +5051,33 @@ namespace protobuf if (this->_internal_x() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_x(), target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_x(), target); } // int32 y = 2; if (this->_internal_y() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_y(), target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_y(), target); } // bool is_open = 3; if (this->_internal_is_open() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(3, this->_internal_is_open(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_is_open(), target); } // int32 progress = 4; if (this->_internal_progress() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_progress(), target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(4, this->_internal_progress(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream ); } @@ -5255,13 +5097,13 @@ namespace protobuf // int32 x = 1; if (this->_internal_x() != 0) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_x()); + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_x()); } // int32 y = 2; if (this->_internal_y() != 0) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_y()); + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_y()); } // bool is_open = 3; @@ -5273,51 +5115,46 @@ namespace protobuf // int32 progress = 4; if (this->_internal_progress() != 0) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_progress()); + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_progress()); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfDoor::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, MessageOfDoor::MergeImpl}; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfDoor::GetClassData() const { return &_class_data_; } - void MessageOfDoor::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from) - { - static_cast(to)->MergeFrom( - static_cast(from) - ); - } - - void MessageOfDoor::MergeFrom(const MessageOfDoor& from) + void MessageOfDoor::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfDoor) - GOOGLE_DCHECK_NE(&from, this); + GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void)cached_has_bits; if (from._internal_x() != 0) { - _internal_set_x(from._internal_x()); + _this->_internal_set_x(from._internal_x()); } if (from._internal_y() != 0) { - _internal_set_y(from._internal_y()); + _this->_internal_set_y(from._internal_y()); } if (from._internal_is_open() != 0) { - _internal_set_is_open(from._internal_is_open()); + _this->_internal_set_is_open(from._internal_is_open()); } if (from._internal_progress() != 0) { - _internal_set_progress(from._internal_progress()); + _this->_internal_set_progress(from._internal_progress()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MessageOfDoor::CopyFrom(const MessageOfDoor& from) @@ -5339,15 +5176,15 @@ namespace protobuf using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(MessageOfDoor, progress_) + sizeof(MessageOfDoor::progress_) - PROTOBUF_FIELD_OFFSET(MessageOfDoor, x_)>( - reinterpret_cast(&x_), - reinterpret_cast(&other->x_) + PROTOBUF_FIELD_OFFSET(MessageOfDoor, _impl_.progress_) + sizeof(MessageOfDoor::_impl_.progress_) - PROTOBUF_FIELD_OFFSET(MessageOfDoor, _impl_.x_)>( + reinterpret_cast(&_impl_.x_), + reinterpret_cast(&other->_impl_.x_) ); } ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfDoor::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[9] ); } @@ -5362,33 +5199,41 @@ namespace protobuf MessageOfChest::MessageOfChest(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) - { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfChest) } MessageOfChest::MessageOfChest(const MessageOfChest& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + MessageOfChest* const _this = this; + (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.x_){}, decltype(_impl_.y_){}, decltype(_impl_.progress_){}, /*decltype(_impl_._cached_size_)*/ {}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::memcpy(&x_, &from.x_, static_cast(reinterpret_cast(&progress_) - reinterpret_cast(&x_)) + sizeof(progress_)); + ::memcpy(&_impl_.x_, &from._impl_.x_, static_cast(reinterpret_cast(&_impl_.progress_) - reinterpret_cast(&_impl_.x_)) + sizeof(_impl_.progress_)); // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfChest) } - inline void MessageOfChest::SharedCtor() + inline void MessageOfChest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned + ) { - ::memset(reinterpret_cast(this) + static_cast(reinterpret_cast(&x_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&progress_) - reinterpret_cast(&x_)) + sizeof(progress_)); + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.x_){0}, decltype(_impl_.y_){0}, decltype(_impl_.progress_){0}, /*decltype(_impl_._cached_size_)*/ {}}; } MessageOfChest::~MessageOfChest() { // @@protoc_insertion_point(destructor:protobuf.MessageOfChest) - if (GetArenaForAllocation() != nullptr) + if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) + { + (void)arena; return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void MessageOfChest::SharedDtor() @@ -5396,17 +5241,9 @@ namespace protobuf GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } - void MessageOfChest::ArenaDtor(void* object) - { - MessageOfChest* _this = reinterpret_cast(object); - (void)_this; - } - void MessageOfChest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) - { - } void MessageOfChest::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void MessageOfChest::Clear() @@ -5416,11 +5253,11 @@ namespace protobuf // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; - ::memset(&x_, 0, static_cast(reinterpret_cast(&progress_) - reinterpret_cast(&x_)) + sizeof(progress_)); + ::memset(&_impl_.x_, 0, static_cast(reinterpret_cast(&_impl_.progress_) - reinterpret_cast(&_impl_.x_)) + sizeof(_impl_.progress_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - const char* MessageOfChest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) + const char* MessageOfChest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) \ if (PROTOBUF_PREDICT_FALSE(!(x))) \ @@ -5428,14 +5265,14 @@ namespace protobuf while (!ctx->Done(&ptr)) { uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // int32 x = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -5445,7 +5282,7 @@ namespace protobuf case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -5455,7 +5292,7 @@ namespace protobuf case 3: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - progress_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.progress_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -5499,26 +5336,26 @@ namespace protobuf if (this->_internal_x() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_x(), target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_x(), target); } // int32 y = 2; if (this->_internal_y() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_y(), target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_y(), target); } // int32 progress = 3; if (this->_internal_progress() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_progress(), target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_progress(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream ); } @@ -5538,59 +5375,54 @@ namespace protobuf // int32 x = 1; if (this->_internal_x() != 0) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_x()); + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_x()); } // int32 y = 2; if (this->_internal_y() != 0) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_y()); + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_y()); } // int32 progress = 3; if (this->_internal_progress() != 0) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_progress()); + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_progress()); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfChest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, MessageOfChest::MergeImpl}; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfChest::GetClassData() const { return &_class_data_; } - void MessageOfChest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from) - { - static_cast(to)->MergeFrom( - static_cast(from) - ); - } - - void MessageOfChest::MergeFrom(const MessageOfChest& from) + void MessageOfChest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfChest) - GOOGLE_DCHECK_NE(&from, this); + GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void)cached_has_bits; if (from._internal_x() != 0) { - _internal_set_x(from._internal_x()); + _this->_internal_set_x(from._internal_x()); } if (from._internal_y() != 0) { - _internal_set_y(from._internal_y()); + _this->_internal_set_y(from._internal_y()); } if (from._internal_progress() != 0) { - _internal_set_progress(from._internal_progress()); + _this->_internal_set_progress(from._internal_progress()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MessageOfChest::CopyFrom(const MessageOfChest& from) @@ -5612,15 +5444,15 @@ namespace protobuf using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(MessageOfChest, progress_) + sizeof(MessageOfChest::progress_) - PROTOBUF_FIELD_OFFSET(MessageOfChest, x_)>( - reinterpret_cast(&x_), - reinterpret_cast(&other->x_) + PROTOBUF_FIELD_OFFSET(MessageOfChest, _impl_.progress_) + sizeof(MessageOfChest::_impl_.progress_) - PROTOBUF_FIELD_OFFSET(MessageOfChest, _impl_.x_)>( + reinterpret_cast(&_impl_.x_), + reinterpret_cast(&other->_impl_.x_) ); } ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfChest::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[10] ); } @@ -5633,53 +5465,53 @@ namespace protobuf }; MessageOfMap_Row::MessageOfMap_Row(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : - ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), - col_(arena) + ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) - { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfMap.Row) } MessageOfMap_Row::MessageOfMap_Row(const MessageOfMap_Row& from) : - ::PROTOBUF_NAMESPACE_ID::Message(), - col_(from.col_) + ::PROTOBUF_NAMESPACE_ID::Message() { + MessageOfMap_Row* const _this = this; + (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.col_){from._impl_.col_}, /*decltype(_impl_._col_cached_byte_size_)*/ {0}, /*decltype(_impl_._cached_size_)*/ {}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfMap.Row) } - inline void MessageOfMap_Row::SharedCtor() + inline void MessageOfMap_Row::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned + ) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.col_){arena}, /*decltype(_impl_._col_cached_byte_size_)*/ {0}, /*decltype(_impl_._cached_size_)*/ {}}; } MessageOfMap_Row::~MessageOfMap_Row() { // @@protoc_insertion_point(destructor:protobuf.MessageOfMap.Row) - if (GetArenaForAllocation() != nullptr) + if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) + { + (void)arena; return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void MessageOfMap_Row::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.col_.~RepeatedField(); } - void MessageOfMap_Row::ArenaDtor(void* object) - { - MessageOfMap_Row* _this = reinterpret_cast(object); - (void)_this; - } - void MessageOfMap_Row::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) - { - } void MessageOfMap_Row::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void MessageOfMap_Row::Clear() @@ -5689,11 +5521,11 @@ namespace protobuf // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; - col_.Clear(); + _impl_.col_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - const char* MessageOfMap_Row::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) + const char* MessageOfMap_Row::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) \ if (PROTOBUF_PREDICT_FALSE(!(x))) \ @@ -5701,7 +5533,7 @@ namespace protobuf while (!ctx->Done(&ptr)) { uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // repeated .protobuf.PlaceType col = 1; @@ -5756,18 +5588,18 @@ namespace protobuf // repeated .protobuf.PlaceType col = 1; { - int byte_size = _col_cached_byte_size_.load(std::memory_order_relaxed); + int byte_size = _impl_._col_cached_byte_size_.load(std::memory_order_relaxed); if (byte_size > 0) { target = stream->WriteEnumPacked( - 1, col_, byte_size, target + 1, _impl_.col_, byte_size, target ); } } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream ); } @@ -5790,49 +5622,42 @@ namespace protobuf unsigned int count = static_cast(this->_internal_col_size()); for (unsigned int i = 0; i < count; i++) { - data_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize( + data_size += ::_pbi::WireFormatLite::EnumSize( this->_internal_col(static_cast(i)) ); } if (data_size > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast(data_size) - ); + ::_pbi::WireFormatLite::Int32Size(static_cast(data_size)); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); - _col_cached_byte_size_.store(cached_size, std::memory_order_relaxed); + int cached_size = ::_pbi::ToCachedSize(data_size); + _impl_._col_cached_byte_size_.store(cached_size, std::memory_order_relaxed); total_size += data_size; } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfMap_Row::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, MessageOfMap_Row::MergeImpl}; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfMap_Row::GetClassData() const { return &_class_data_; } - void MessageOfMap_Row::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from) - { - static_cast(to)->MergeFrom( - static_cast(from) - ); - } - - void MessageOfMap_Row::MergeFrom(const MessageOfMap_Row& from) + void MessageOfMap_Row::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfMap.Row) - GOOGLE_DCHECK_NE(&from, this); + GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void)cached_has_bits; - col_.MergeFrom(from.col_); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_.col_.MergeFrom(from._impl_.col_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MessageOfMap_Row::CopyFrom(const MessageOfMap_Row& from) @@ -5853,12 +5678,12 @@ namespace protobuf { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - col_.InternalSwap(&other->col_); + _impl_.col_.InternalSwap(&other->_impl_.col_); } ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfMap_Row::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[11] ); } @@ -5871,53 +5696,53 @@ namespace protobuf }; MessageOfMap::MessageOfMap(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : - ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), - row_(arena) + ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) - { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfMap) } MessageOfMap::MessageOfMap(const MessageOfMap& from) : - ::PROTOBUF_NAMESPACE_ID::Message(), - row_(from.row_) + ::PROTOBUF_NAMESPACE_ID::Message() { + MessageOfMap* const _this = this; + (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.row_){from._impl_.row_}, /*decltype(_impl_._cached_size_)*/ {}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfMap) } - inline void MessageOfMap::SharedCtor() + inline void MessageOfMap::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned + ) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.row_){arena}, /*decltype(_impl_._cached_size_)*/ {}}; } MessageOfMap::~MessageOfMap() { // @@protoc_insertion_point(destructor:protobuf.MessageOfMap) - if (GetArenaForAllocation() != nullptr) + if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) + { + (void)arena; return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void MessageOfMap::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.row_.~RepeatedPtrField(); } - void MessageOfMap::ArenaDtor(void* object) - { - MessageOfMap* _this = reinterpret_cast(object); - (void)_this; - } - void MessageOfMap::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) - { - } void MessageOfMap::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void MessageOfMap::Clear() @@ -5927,11 +5752,11 @@ namespace protobuf // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; - row_.Clear(); + _impl_.row_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - const char* MessageOfMap::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) + const char* MessageOfMap::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) \ if (PROTOBUF_PREDICT_FALSE(!(x))) \ @@ -5939,7 +5764,7 @@ namespace protobuf while (!ctx->Done(&ptr)) { uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // repeated .protobuf.MessageOfMap.Row row = 2; @@ -5994,19 +5819,19 @@ namespace protobuf (void)cached_has_bits; // repeated .protobuf.MessageOfMap.Row row = 2; - for (unsigned int i = 0, - n = static_cast(this->_internal_row_size()); + for (unsigned i = 0, + n = static_cast(this->_internal_row_size()); i < n; i++) { - target = stream->EnsureSpace(target); + const auto& repfield = this->_internal_row(i); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(2, this->_internal_row(i), target, stream); + InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream ); } @@ -6025,39 +5850,34 @@ namespace protobuf // repeated .protobuf.MessageOfMap.Row row = 2; total_size += 1UL * this->_internal_row_size(); - for (const auto& msg : this->row_) + for (const auto& msg : this->_impl_.row_) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfMap::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, MessageOfMap::MergeImpl}; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfMap::GetClassData() const { return &_class_data_; } - void MessageOfMap::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from) - { - static_cast(to)->MergeFrom( - static_cast(from) - ); - } - - void MessageOfMap::MergeFrom(const MessageOfMap& from) + void MessageOfMap::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfMap) - GOOGLE_DCHECK_NE(&from, this); + GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void)cached_has_bits; - row_.MergeFrom(from.row_); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_.row_.MergeFrom(from._impl_.row_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MessageOfMap::CopyFrom(const MessageOfMap& from) @@ -6078,12 +5898,12 @@ namespace protobuf { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - row_.InternalSwap(&other->row_); + _impl_.row_.InternalSwap(&other->_impl_.row_); } ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfMap::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[12] ); } @@ -6098,64 +5918,64 @@ namespace protobuf MessageOfNews::MessageOfNews(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) - { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfNews) } MessageOfNews::MessageOfNews(const MessageOfNews& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + MessageOfNews* const _this = this; + (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.news_){}, decltype(_impl_.from_id_){}, decltype(_impl_.to_id_){}, /*decltype(_impl_._cached_size_)*/ {}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - news_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.news_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - news_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.news_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_news().empty()) { - news_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_news(), GetArenaForAllocation()); + _this->_impl_.news_.Set(from._internal_news(), _this->GetArenaForAllocation()); } - ::memcpy(&from_id_, &from.from_id_, static_cast(reinterpret_cast(&to_id_) - reinterpret_cast(&from_id_)) + sizeof(to_id_)); + ::memcpy(&_impl_.from_id_, &from._impl_.from_id_, static_cast(reinterpret_cast(&_impl_.to_id_) - reinterpret_cast(&_impl_.from_id_)) + sizeof(_impl_.to_id_)); // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfNews) } - inline void MessageOfNews::SharedCtor() + inline void MessageOfNews::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned + ) { - news_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.news_){}, decltype(_impl_.from_id_){int64_t{0}}, decltype(_impl_.to_id_){int64_t{0}}, /*decltype(_impl_._cached_size_)*/ {}}; + _impl_.news_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - news_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.news_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - ::memset(reinterpret_cast(this) + static_cast(reinterpret_cast(&from_id_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&to_id_) - reinterpret_cast(&from_id_)) + sizeof(to_id_)); } MessageOfNews::~MessageOfNews() { // @@protoc_insertion_point(destructor:protobuf.MessageOfNews) - if (GetArenaForAllocation() != nullptr) + if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) + { + (void)arena; return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void MessageOfNews::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - news_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.news_.Destroy(); } - void MessageOfNews::ArenaDtor(void* object) - { - MessageOfNews* _this = reinterpret_cast(object); - (void)_this; - } - void MessageOfNews::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) - { - } void MessageOfNews::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void MessageOfNews::Clear() @@ -6165,12 +5985,12 @@ namespace protobuf // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; - news_.ClearToEmpty(); - ::memset(&from_id_, 0, static_cast(reinterpret_cast(&to_id_) - reinterpret_cast(&from_id_)) + sizeof(to_id_)); + _impl_.news_.ClearToEmpty(); + ::memset(&_impl_.from_id_, 0, static_cast(reinterpret_cast(&_impl_.to_id_) - reinterpret_cast(&_impl_.from_id_)) + sizeof(_impl_.to_id_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - const char* MessageOfNews::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) + const char* MessageOfNews::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) \ if (PROTOBUF_PREDICT_FALSE(!(x))) \ @@ -6178,7 +5998,7 @@ namespace protobuf while (!ctx->Done(&ptr)) { uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // string news = 1; @@ -6186,9 +6006,9 @@ namespace protobuf if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { auto str = _internal_mutable_news(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "protobuf.MessageOfNews.news")); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "protobuf.MessageOfNews.news")); } else goto handle_unusual; @@ -6197,7 +6017,7 @@ namespace protobuf case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - from_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.from_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else @@ -6207,7 +6027,7 @@ namespace protobuf case 3: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - to_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.to_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else @@ -6262,19 +6082,19 @@ namespace protobuf if (this->_internal_from_id() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->_internal_from_id(), target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(2, this->_internal_from_id(), target); } // int64 to_id = 3; if (this->_internal_to_id() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(3, this->_internal_to_id(), target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(3, this->_internal_to_id(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream ); } @@ -6303,53 +6123,48 @@ namespace protobuf // int64 from_id = 2; if (this->_internal_from_id() != 0) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_from_id()); + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_from_id()); } // int64 to_id = 3; if (this->_internal_to_id() != 0) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_to_id()); + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_to_id()); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfNews::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, MessageOfNews::MergeImpl}; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfNews::GetClassData() const { return &_class_data_; } - void MessageOfNews::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from) - { - static_cast(to)->MergeFrom( - static_cast(from) - ); - } - - void MessageOfNews::MergeFrom(const MessageOfNews& from) + void MessageOfNews::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfNews) - GOOGLE_DCHECK_NE(&from, this); + GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void)cached_has_bits; if (!from._internal_news().empty()) { - _internal_set_news(from._internal_news()); + _this->_internal_set_news(from._internal_news()); } if (from._internal_from_id() != 0) { - _internal_set_from_id(from._internal_from_id()); + _this->_internal_set_from_id(from._internal_from_id()); } if (from._internal_to_id() != 0) { - _internal_set_to_id(from._internal_to_id()); + _this->_internal_set_to_id(from._internal_to_id()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MessageOfNews::CopyFrom(const MessageOfNews& from) @@ -6373,22 +6188,18 @@ namespace protobuf auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &news_, - lhs_arena, - &other->news_, - rhs_arena + &_impl_.news_, lhs_arena, &other->_impl_.news_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(MessageOfNews, to_id_) + sizeof(MessageOfNews::to_id_) - PROTOBUF_FIELD_OFFSET(MessageOfNews, from_id_)>( - reinterpret_cast(&from_id_), - reinterpret_cast(&other->from_id_) + PROTOBUF_FIELD_OFFSET(MessageOfNews, _impl_.to_id_) + sizeof(MessageOfNews::_impl_.to_id_) - PROTOBUF_FIELD_OFFSET(MessageOfNews, _impl_.from_id_)>( + reinterpret_cast(&_impl_.from_id_), + reinterpret_cast(&other->_impl_.from_id_) ); } ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfNews::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[13] ); } @@ -6415,62 +6226,62 @@ namespace protobuf const ::protobuf::MessageOfStudent& MessageOfObj::_Internal::student_message(const MessageOfObj* msg) { - return *msg->message_of_obj_.student_message_; + return *msg->_impl_.message_of_obj_.student_message_; } const ::protobuf::MessageOfTricker& MessageOfObj::_Internal::tricker_message(const MessageOfObj* msg) { - return *msg->message_of_obj_.tricker_message_; + return *msg->_impl_.message_of_obj_.tricker_message_; } const ::protobuf::MessageOfProp& MessageOfObj::_Internal::prop_message(const MessageOfObj* msg) { - return *msg->message_of_obj_.prop_message_; + return *msg->_impl_.message_of_obj_.prop_message_; } const ::protobuf::MessageOfBullet& MessageOfObj::_Internal::bullet_message(const MessageOfObj* msg) { - return *msg->message_of_obj_.bullet_message_; + return *msg->_impl_.message_of_obj_.bullet_message_; } const ::protobuf::MessageOfBombedBullet& MessageOfObj::_Internal::bombed_bullet_message(const MessageOfObj* msg) { - return *msg->message_of_obj_.bombed_bullet_message_; + return *msg->_impl_.message_of_obj_.bombed_bullet_message_; } const ::protobuf::MessageOfClassroom& MessageOfObj::_Internal::classroom_message(const MessageOfObj* msg) { - return *msg->message_of_obj_.classroom_message_; + return *msg->_impl_.message_of_obj_.classroom_message_; } const ::protobuf::MessageOfDoor& MessageOfObj::_Internal::door_message(const MessageOfObj* msg) { - return *msg->message_of_obj_.door_message_; + return *msg->_impl_.message_of_obj_.door_message_; } const ::protobuf::MessageOfGate& MessageOfObj::_Internal::gate_message(const MessageOfObj* msg) { - return *msg->message_of_obj_.gate_message_; + return *msg->_impl_.message_of_obj_.gate_message_; } const ::protobuf::MessageOfChest& MessageOfObj::_Internal::chest_message(const MessageOfObj* msg) { - return *msg->message_of_obj_.chest_message_; + return *msg->_impl_.message_of_obj_.chest_message_; } const ::protobuf::MessageOfHiddenGate& MessageOfObj::_Internal::hidden_gate_message(const MessageOfObj* msg) { - return *msg->message_of_obj_.hidden_gate_message_; + return *msg->_impl_.message_of_obj_.hidden_gate_message_; } const ::protobuf::MessageOfNews& MessageOfObj::_Internal::news_message(const MessageOfObj* msg) { - return *msg->message_of_obj_.news_message_; + return *msg->_impl_.message_of_obj_.news_message_; } const ::protobuf::MessageOfMap& MessageOfObj::_Internal::map_message(const MessageOfObj* msg) { - return *msg->message_of_obj_.map_message_; + return *msg->_impl_.message_of_obj_.map_message_; } void MessageOfObj::set_allocated_student_message(::protobuf::MessageOfStudent* student_message) { @@ -6479,7 +6290,7 @@ namespace protobuf if (student_message) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::protobuf::MessageOfStudent>::GetOwningArena(student_message); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(student_message); if (message_arena != submessage_arena) { student_message = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( @@ -6487,7 +6298,7 @@ namespace protobuf ); } set_has_student_message(); - message_of_obj_.student_message_ = student_message; + _impl_.message_of_obj_.student_message_ = student_message; } // @@protoc_insertion_point(field_set_allocated:protobuf.MessageOfObj.student_message) } @@ -6498,7 +6309,7 @@ namespace protobuf if (tricker_message) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::protobuf::MessageOfTricker>::GetOwningArena(tricker_message); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(tricker_message); if (message_arena != submessage_arena) { tricker_message = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( @@ -6506,7 +6317,7 @@ namespace protobuf ); } set_has_tricker_message(); - message_of_obj_.tricker_message_ = tricker_message; + _impl_.message_of_obj_.tricker_message_ = tricker_message; } // @@protoc_insertion_point(field_set_allocated:protobuf.MessageOfObj.tricker_message) } @@ -6517,7 +6328,7 @@ namespace protobuf if (prop_message) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::protobuf::MessageOfProp>::GetOwningArena(prop_message); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(prop_message); if (message_arena != submessage_arena) { prop_message = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( @@ -6525,7 +6336,7 @@ namespace protobuf ); } set_has_prop_message(); - message_of_obj_.prop_message_ = prop_message; + _impl_.message_of_obj_.prop_message_ = prop_message; } // @@protoc_insertion_point(field_set_allocated:protobuf.MessageOfObj.prop_message) } @@ -6536,7 +6347,7 @@ namespace protobuf if (bullet_message) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::protobuf::MessageOfBullet>::GetOwningArena(bullet_message); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(bullet_message); if (message_arena != submessage_arena) { bullet_message = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( @@ -6544,7 +6355,7 @@ namespace protobuf ); } set_has_bullet_message(); - message_of_obj_.bullet_message_ = bullet_message; + _impl_.message_of_obj_.bullet_message_ = bullet_message; } // @@protoc_insertion_point(field_set_allocated:protobuf.MessageOfObj.bullet_message) } @@ -6555,7 +6366,7 @@ namespace protobuf if (bombed_bullet_message) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::protobuf::MessageOfBombedBullet>::GetOwningArena(bombed_bullet_message); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(bombed_bullet_message); if (message_arena != submessage_arena) { bombed_bullet_message = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( @@ -6563,7 +6374,7 @@ namespace protobuf ); } set_has_bombed_bullet_message(); - message_of_obj_.bombed_bullet_message_ = bombed_bullet_message; + _impl_.message_of_obj_.bombed_bullet_message_ = bombed_bullet_message; } // @@protoc_insertion_point(field_set_allocated:protobuf.MessageOfObj.bombed_bullet_message) } @@ -6574,7 +6385,7 @@ namespace protobuf if (classroom_message) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::protobuf::MessageOfClassroom>::GetOwningArena(classroom_message); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(classroom_message); if (message_arena != submessage_arena) { classroom_message = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( @@ -6582,7 +6393,7 @@ namespace protobuf ); } set_has_classroom_message(); - message_of_obj_.classroom_message_ = classroom_message; + _impl_.message_of_obj_.classroom_message_ = classroom_message; } // @@protoc_insertion_point(field_set_allocated:protobuf.MessageOfObj.classroom_message) } @@ -6593,7 +6404,7 @@ namespace protobuf if (door_message) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::protobuf::MessageOfDoor>::GetOwningArena(door_message); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(door_message); if (message_arena != submessage_arena) { door_message = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( @@ -6601,7 +6412,7 @@ namespace protobuf ); } set_has_door_message(); - message_of_obj_.door_message_ = door_message; + _impl_.message_of_obj_.door_message_ = door_message; } // @@protoc_insertion_point(field_set_allocated:protobuf.MessageOfObj.door_message) } @@ -6612,7 +6423,7 @@ namespace protobuf if (gate_message) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::protobuf::MessageOfGate>::GetOwningArena(gate_message); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(gate_message); if (message_arena != submessage_arena) { gate_message = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( @@ -6620,7 +6431,7 @@ namespace protobuf ); } set_has_gate_message(); - message_of_obj_.gate_message_ = gate_message; + _impl_.message_of_obj_.gate_message_ = gate_message; } // @@protoc_insertion_point(field_set_allocated:protobuf.MessageOfObj.gate_message) } @@ -6631,7 +6442,7 @@ namespace protobuf if (chest_message) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::protobuf::MessageOfChest>::GetOwningArena(chest_message); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(chest_message); if (message_arena != submessage_arena) { chest_message = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( @@ -6639,7 +6450,7 @@ namespace protobuf ); } set_has_chest_message(); - message_of_obj_.chest_message_ = chest_message; + _impl_.message_of_obj_.chest_message_ = chest_message; } // @@protoc_insertion_point(field_set_allocated:protobuf.MessageOfObj.chest_message) } @@ -6650,7 +6461,7 @@ namespace protobuf if (hidden_gate_message) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::protobuf::MessageOfHiddenGate>::GetOwningArena(hidden_gate_message); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(hidden_gate_message); if (message_arena != submessage_arena) { hidden_gate_message = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( @@ -6658,7 +6469,7 @@ namespace protobuf ); } set_has_hidden_gate_message(); - message_of_obj_.hidden_gate_message_ = hidden_gate_message; + _impl_.message_of_obj_.hidden_gate_message_ = hidden_gate_message; } // @@protoc_insertion_point(field_set_allocated:protobuf.MessageOfObj.hidden_gate_message) } @@ -6669,7 +6480,7 @@ namespace protobuf if (news_message) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::protobuf::MessageOfNews>::GetOwningArena(news_message); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(news_message); if (message_arena != submessage_arena) { news_message = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( @@ -6677,7 +6488,7 @@ namespace protobuf ); } set_has_news_message(); - message_of_obj_.news_message_ = news_message; + _impl_.message_of_obj_.news_message_ = news_message; } // @@protoc_insertion_point(field_set_allocated:protobuf.MessageOfObj.news_message) } @@ -6688,7 +6499,7 @@ namespace protobuf if (map_message) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::protobuf::MessageOfMap>::GetOwningArena(map_message); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(map_message); if (message_arena != submessage_arena) { map_message = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( @@ -6696,85 +6507,110 @@ namespace protobuf ); } set_has_map_message(); - message_of_obj_.map_message_ = map_message; + _impl_.message_of_obj_.map_message_ = map_message; } // @@protoc_insertion_point(field_set_allocated:protobuf.MessageOfObj.map_message) } MessageOfObj::MessageOfObj(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) - { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfObj) } MessageOfObj::MessageOfObj(const MessageOfObj& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + MessageOfObj* const _this = this; + (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.message_of_obj_){}, /*decltype(_impl_._cached_size_)*/ {}, /*decltype(_impl_._oneof_case_)*/ {}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); clear_has_message_of_obj(); switch (from.message_of_obj_case()) { case kStudentMessage: { - _internal_mutable_student_message()->::protobuf::MessageOfStudent::MergeFrom(from._internal_student_message()); + _this->_internal_mutable_student_message()->::protobuf::MessageOfStudent::MergeFrom( + from._internal_student_message() + ); break; } case kTrickerMessage: { - _internal_mutable_tricker_message()->::protobuf::MessageOfTricker::MergeFrom(from._internal_tricker_message()); + _this->_internal_mutable_tricker_message()->::protobuf::MessageOfTricker::MergeFrom( + from._internal_tricker_message() + ); break; } case kPropMessage: { - _internal_mutable_prop_message()->::protobuf::MessageOfProp::MergeFrom(from._internal_prop_message()); + _this->_internal_mutable_prop_message()->::protobuf::MessageOfProp::MergeFrom( + from._internal_prop_message() + ); break; } case kBulletMessage: { - _internal_mutable_bullet_message()->::protobuf::MessageOfBullet::MergeFrom(from._internal_bullet_message()); + _this->_internal_mutable_bullet_message()->::protobuf::MessageOfBullet::MergeFrom( + from._internal_bullet_message() + ); break; } case kBombedBulletMessage: { - _internal_mutable_bombed_bullet_message()->::protobuf::MessageOfBombedBullet::MergeFrom(from._internal_bombed_bullet_message()); + _this->_internal_mutable_bombed_bullet_message()->::protobuf::MessageOfBombedBullet::MergeFrom( + from._internal_bombed_bullet_message() + ); break; } case kClassroomMessage: { - _internal_mutable_classroom_message()->::protobuf::MessageOfClassroom::MergeFrom(from._internal_classroom_message()); + _this->_internal_mutable_classroom_message()->::protobuf::MessageOfClassroom::MergeFrom( + from._internal_classroom_message() + ); break; } case kDoorMessage: { - _internal_mutable_door_message()->::protobuf::MessageOfDoor::MergeFrom(from._internal_door_message()); + _this->_internal_mutable_door_message()->::protobuf::MessageOfDoor::MergeFrom( + from._internal_door_message() + ); break; } case kGateMessage: { - _internal_mutable_gate_message()->::protobuf::MessageOfGate::MergeFrom(from._internal_gate_message()); + _this->_internal_mutable_gate_message()->::protobuf::MessageOfGate::MergeFrom( + from._internal_gate_message() + ); break; } case kChestMessage: { - _internal_mutable_chest_message()->::protobuf::MessageOfChest::MergeFrom(from._internal_chest_message()); + _this->_internal_mutable_chest_message()->::protobuf::MessageOfChest::MergeFrom( + from._internal_chest_message() + ); break; } case kHiddenGateMessage: { - _internal_mutable_hidden_gate_message()->::protobuf::MessageOfHiddenGate::MergeFrom(from._internal_hidden_gate_message()); + _this->_internal_mutable_hidden_gate_message()->::protobuf::MessageOfHiddenGate::MergeFrom( + from._internal_hidden_gate_message() + ); break; } case kNewsMessage: { - _internal_mutable_news_message()->::protobuf::MessageOfNews::MergeFrom(from._internal_news_message()); + _this->_internal_mutable_news_message()->::protobuf::MessageOfNews::MergeFrom( + from._internal_news_message() + ); break; } case kMapMessage: { - _internal_mutable_map_message()->::protobuf::MessageOfMap::MergeFrom(from._internal_map_message()); + _this->_internal_mutable_map_message()->::protobuf::MessageOfMap::MergeFrom( + from._internal_map_message() + ); break; } case MESSAGE_OF_OBJ_NOT_SET: @@ -6785,18 +6621,26 @@ namespace protobuf // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfObj) } - inline void MessageOfObj::SharedCtor() + inline void MessageOfObj::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned + ) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.message_of_obj_){}, /*decltype(_impl_._cached_size_)*/ {}, /*decltype(_impl_._oneof_case_)*/ {}}; clear_has_message_of_obj(); } MessageOfObj::~MessageOfObj() { // @@protoc_insertion_point(destructor:protobuf.MessageOfObj) - if (GetArenaForAllocation() != nullptr) + if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) + { + (void)arena; return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void MessageOfObj::SharedDtor() @@ -6808,17 +6652,9 @@ namespace protobuf } } - void MessageOfObj::ArenaDtor(void* object) - { - MessageOfObj* _this = reinterpret_cast(object); - (void)_this; - } - void MessageOfObj::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) - { - } void MessageOfObj::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void MessageOfObj::clear_message_of_obj() @@ -6830,7 +6666,7 @@ namespace protobuf { if (GetArenaForAllocation() == nullptr) { - delete message_of_obj_.student_message_; + delete _impl_.message_of_obj_.student_message_; } break; } @@ -6838,7 +6674,7 @@ namespace protobuf { if (GetArenaForAllocation() == nullptr) { - delete message_of_obj_.tricker_message_; + delete _impl_.message_of_obj_.tricker_message_; } break; } @@ -6846,7 +6682,7 @@ namespace protobuf { if (GetArenaForAllocation() == nullptr) { - delete message_of_obj_.prop_message_; + delete _impl_.message_of_obj_.prop_message_; } break; } @@ -6854,7 +6690,7 @@ namespace protobuf { if (GetArenaForAllocation() == nullptr) { - delete message_of_obj_.bullet_message_; + delete _impl_.message_of_obj_.bullet_message_; } break; } @@ -6862,7 +6698,7 @@ namespace protobuf { if (GetArenaForAllocation() == nullptr) { - delete message_of_obj_.bombed_bullet_message_; + delete _impl_.message_of_obj_.bombed_bullet_message_; } break; } @@ -6870,7 +6706,7 @@ namespace protobuf { if (GetArenaForAllocation() == nullptr) { - delete message_of_obj_.classroom_message_; + delete _impl_.message_of_obj_.classroom_message_; } break; } @@ -6878,7 +6714,7 @@ namespace protobuf { if (GetArenaForAllocation() == nullptr) { - delete message_of_obj_.door_message_; + delete _impl_.message_of_obj_.door_message_; } break; } @@ -6886,7 +6722,7 @@ namespace protobuf { if (GetArenaForAllocation() == nullptr) { - delete message_of_obj_.gate_message_; + delete _impl_.message_of_obj_.gate_message_; } break; } @@ -6894,7 +6730,7 @@ namespace protobuf { if (GetArenaForAllocation() == nullptr) { - delete message_of_obj_.chest_message_; + delete _impl_.message_of_obj_.chest_message_; } break; } @@ -6902,7 +6738,7 @@ namespace protobuf { if (GetArenaForAllocation() == nullptr) { - delete message_of_obj_.hidden_gate_message_; + delete _impl_.message_of_obj_.hidden_gate_message_; } break; } @@ -6910,7 +6746,7 @@ namespace protobuf { if (GetArenaForAllocation() == nullptr) { - delete message_of_obj_.news_message_; + delete _impl_.message_of_obj_.news_message_; } break; } @@ -6918,7 +6754,7 @@ namespace protobuf { if (GetArenaForAllocation() == nullptr) { - delete message_of_obj_.map_message_; + delete _impl_.message_of_obj_.map_message_; } break; } @@ -6927,7 +6763,7 @@ namespace protobuf break; } } - _oneof_case_[0] = MESSAGE_OF_OBJ_NOT_SET; + _impl_._oneof_case_[0] = MESSAGE_OF_OBJ_NOT_SET; } void MessageOfObj::Clear() @@ -6941,7 +6777,7 @@ namespace protobuf _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - const char* MessageOfObj::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) + const char* MessageOfObj::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) \ if (PROTOBUF_PREDICT_FALSE(!(x))) \ @@ -6949,7 +6785,7 @@ namespace protobuf while (!ctx->Done(&ptr)) { uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .protobuf.MessageOfStudent student_message = 1; @@ -7109,126 +6945,90 @@ namespace protobuf // .protobuf.MessageOfStudent student_message = 1; if (_internal_has_student_message()) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::student_message(this), target, stream - ); + InternalWriteMessage(1, _Internal::student_message(this), _Internal::student_message(this).GetCachedSize(), target, stream); } // .protobuf.MessageOfTricker tricker_message = 2; if (_internal_has_tricker_message()) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 2, _Internal::tricker_message(this), target, stream - ); + InternalWriteMessage(2, _Internal::tricker_message(this), _Internal::tricker_message(this).GetCachedSize(), target, stream); } // .protobuf.MessageOfProp prop_message = 3; if (_internal_has_prop_message()) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 3, _Internal::prop_message(this), target, stream - ); + InternalWriteMessage(3, _Internal::prop_message(this), _Internal::prop_message(this).GetCachedSize(), target, stream); } // .protobuf.MessageOfBullet bullet_message = 4; if (_internal_has_bullet_message()) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 4, _Internal::bullet_message(this), target, stream - ); + InternalWriteMessage(4, _Internal::bullet_message(this), _Internal::bullet_message(this).GetCachedSize(), target, stream); } // .protobuf.MessageOfBombedBullet bombed_bullet_message = 5; if (_internal_has_bombed_bullet_message()) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 5, _Internal::bombed_bullet_message(this), target, stream - ); + InternalWriteMessage(5, _Internal::bombed_bullet_message(this), _Internal::bombed_bullet_message(this).GetCachedSize(), target, stream); } // .protobuf.MessageOfClassroom classroom_message = 6; if (_internal_has_classroom_message()) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 6, _Internal::classroom_message(this), target, stream - ); + InternalWriteMessage(6, _Internal::classroom_message(this), _Internal::classroom_message(this).GetCachedSize(), target, stream); } // .protobuf.MessageOfDoor door_message = 7; if (_internal_has_door_message()) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 7, _Internal::door_message(this), target, stream - ); + InternalWriteMessage(7, _Internal::door_message(this), _Internal::door_message(this).GetCachedSize(), target, stream); } // .protobuf.MessageOfGate gate_message = 8; if (_internal_has_gate_message()) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 8, _Internal::gate_message(this), target, stream - ); + InternalWriteMessage(8, _Internal::gate_message(this), _Internal::gate_message(this).GetCachedSize(), target, stream); } // .protobuf.MessageOfChest chest_message = 9; if (_internal_has_chest_message()) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 9, _Internal::chest_message(this), target, stream - ); + InternalWriteMessage(9, _Internal::chest_message(this), _Internal::chest_message(this).GetCachedSize(), target, stream); } // .protobuf.MessageOfHiddenGate hidden_gate_message = 10; if (_internal_has_hidden_gate_message()) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 10, _Internal::hidden_gate_message(this), target, stream - ); + InternalWriteMessage(10, _Internal::hidden_gate_message(this), _Internal::hidden_gate_message(this).GetCachedSize(), target, stream); } // .protobuf.MessageOfNews news_message = 11; if (_internal_has_news_message()) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 11, _Internal::news_message(this), target, stream - ); + InternalWriteMessage(11, _Internal::news_message(this), _Internal::news_message(this).GetCachedSize(), target, stream); } // .protobuf.MessageOfMap map_message = 12; if (_internal_has_map_message()) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 12, _Internal::map_message(this), target, stream - ); + InternalWriteMessage(12, _Internal::map_message(this), _Internal::map_message(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream ); } @@ -7252,7 +7052,7 @@ namespace protobuf { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *message_of_obj_.student_message_ + *_impl_.message_of_obj_.student_message_ ); break; } @@ -7261,7 +7061,7 @@ namespace protobuf { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *message_of_obj_.tricker_message_ + *_impl_.message_of_obj_.tricker_message_ ); break; } @@ -7270,7 +7070,7 @@ namespace protobuf { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *message_of_obj_.prop_message_ + *_impl_.message_of_obj_.prop_message_ ); break; } @@ -7279,7 +7079,7 @@ namespace protobuf { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *message_of_obj_.bullet_message_ + *_impl_.message_of_obj_.bullet_message_ ); break; } @@ -7288,7 +7088,7 @@ namespace protobuf { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *message_of_obj_.bombed_bullet_message_ + *_impl_.message_of_obj_.bombed_bullet_message_ ); break; } @@ -7297,7 +7097,7 @@ namespace protobuf { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *message_of_obj_.classroom_message_ + *_impl_.message_of_obj_.classroom_message_ ); break; } @@ -7306,7 +7106,7 @@ namespace protobuf { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *message_of_obj_.door_message_ + *_impl_.message_of_obj_.door_message_ ); break; } @@ -7315,7 +7115,7 @@ namespace protobuf { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *message_of_obj_.gate_message_ + *_impl_.message_of_obj_.gate_message_ ); break; } @@ -7324,7 +7124,7 @@ namespace protobuf { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *message_of_obj_.chest_message_ + *_impl_.message_of_obj_.chest_message_ ); break; } @@ -7333,7 +7133,7 @@ namespace protobuf { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *message_of_obj_.hidden_gate_message_ + *_impl_.message_of_obj_.hidden_gate_message_ ); break; } @@ -7342,7 +7142,7 @@ namespace protobuf { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *message_of_obj_.news_message_ + *_impl_.message_of_obj_.news_message_ ); break; } @@ -7351,7 +7151,7 @@ namespace protobuf { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *message_of_obj_.map_message_ + *_impl_.message_of_obj_.map_message_ ); break; } @@ -7360,28 +7160,23 @@ namespace protobuf break; } } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfObj::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, MessageOfObj::MergeImpl}; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfObj::GetClassData() const { return &_class_data_; } - void MessageOfObj::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from) - { - static_cast(to)->MergeFrom( - static_cast(from) - ); - } - - void MessageOfObj::MergeFrom(const MessageOfObj& from) + void MessageOfObj::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfObj) - GOOGLE_DCHECK_NE(&from, this); + GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void)cached_has_bits; @@ -7389,62 +7184,86 @@ namespace protobuf { case kStudentMessage: { - _internal_mutable_student_message()->::protobuf::MessageOfStudent::MergeFrom(from._internal_student_message()); + _this->_internal_mutable_student_message()->::protobuf::MessageOfStudent::MergeFrom( + from._internal_student_message() + ); break; } case kTrickerMessage: { - _internal_mutable_tricker_message()->::protobuf::MessageOfTricker::MergeFrom(from._internal_tricker_message()); + _this->_internal_mutable_tricker_message()->::protobuf::MessageOfTricker::MergeFrom( + from._internal_tricker_message() + ); break; } case kPropMessage: { - _internal_mutable_prop_message()->::protobuf::MessageOfProp::MergeFrom(from._internal_prop_message()); + _this->_internal_mutable_prop_message()->::protobuf::MessageOfProp::MergeFrom( + from._internal_prop_message() + ); break; } case kBulletMessage: { - _internal_mutable_bullet_message()->::protobuf::MessageOfBullet::MergeFrom(from._internal_bullet_message()); + _this->_internal_mutable_bullet_message()->::protobuf::MessageOfBullet::MergeFrom( + from._internal_bullet_message() + ); break; } case kBombedBulletMessage: { - _internal_mutable_bombed_bullet_message()->::protobuf::MessageOfBombedBullet::MergeFrom(from._internal_bombed_bullet_message()); + _this->_internal_mutable_bombed_bullet_message()->::protobuf::MessageOfBombedBullet::MergeFrom( + from._internal_bombed_bullet_message() + ); break; } case kClassroomMessage: { - _internal_mutable_classroom_message()->::protobuf::MessageOfClassroom::MergeFrom(from._internal_classroom_message()); + _this->_internal_mutable_classroom_message()->::protobuf::MessageOfClassroom::MergeFrom( + from._internal_classroom_message() + ); break; } case kDoorMessage: { - _internal_mutable_door_message()->::protobuf::MessageOfDoor::MergeFrom(from._internal_door_message()); + _this->_internal_mutable_door_message()->::protobuf::MessageOfDoor::MergeFrom( + from._internal_door_message() + ); break; } case kGateMessage: { - _internal_mutable_gate_message()->::protobuf::MessageOfGate::MergeFrom(from._internal_gate_message()); + _this->_internal_mutable_gate_message()->::protobuf::MessageOfGate::MergeFrom( + from._internal_gate_message() + ); break; } case kChestMessage: { - _internal_mutable_chest_message()->::protobuf::MessageOfChest::MergeFrom(from._internal_chest_message()); + _this->_internal_mutable_chest_message()->::protobuf::MessageOfChest::MergeFrom( + from._internal_chest_message() + ); break; } case kHiddenGateMessage: { - _internal_mutable_hidden_gate_message()->::protobuf::MessageOfHiddenGate::MergeFrom(from._internal_hidden_gate_message()); + _this->_internal_mutable_hidden_gate_message()->::protobuf::MessageOfHiddenGate::MergeFrom( + from._internal_hidden_gate_message() + ); break; } case kNewsMessage: { - _internal_mutable_news_message()->::protobuf::MessageOfNews::MergeFrom(from._internal_news_message()); + _this->_internal_mutable_news_message()->::protobuf::MessageOfNews::MergeFrom( + from._internal_news_message() + ); break; } case kMapMessage: { - _internal_mutable_map_message()->::protobuf::MessageOfMap::MergeFrom(from._internal_map_message()); + _this->_internal_mutable_map_message()->::protobuf::MessageOfMap::MergeFrom( + from._internal_map_message() + ); break; } case MESSAGE_OF_OBJ_NOT_SET: @@ -7452,7 +7271,7 @@ namespace protobuf break; } } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MessageOfObj::CopyFrom(const MessageOfObj& from) @@ -7473,13 +7292,13 @@ namespace protobuf { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(message_of_obj_, other->message_of_obj_); - swap(_oneof_case_[0], other->_oneof_case_[0]); + swap(_impl_.message_of_obj_, other->_impl_.message_of_obj_); + swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); } ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfObj::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[14] ); } @@ -7494,33 +7313,41 @@ namespace protobuf MessageOfAll::MessageOfAll(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) - { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfAll) } MessageOfAll::MessageOfAll(const MessageOfAll& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + MessageOfAll* const _this = this; + (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.game_time_){}, decltype(_impl_.subject_finished_){}, decltype(_impl_.student_graduated_){}, decltype(_impl_.student_quited_){}, decltype(_impl_.student_score_){}, decltype(_impl_.tricker_score_){}, /*decltype(_impl_._cached_size_)*/ {}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::memcpy(&game_time_, &from.game_time_, static_cast(reinterpret_cast(&tricker_score_) - reinterpret_cast(&game_time_)) + sizeof(tricker_score_)); + ::memcpy(&_impl_.game_time_, &from._impl_.game_time_, static_cast(reinterpret_cast(&_impl_.tricker_score_) - reinterpret_cast(&_impl_.game_time_)) + sizeof(_impl_.tricker_score_)); // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfAll) } - inline void MessageOfAll::SharedCtor() + inline void MessageOfAll::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned + ) { - ::memset(reinterpret_cast(this) + static_cast(reinterpret_cast(&game_time_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&tricker_score_) - reinterpret_cast(&game_time_)) + sizeof(tricker_score_)); + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.game_time_){0}, decltype(_impl_.subject_finished_){0}, decltype(_impl_.student_graduated_){0}, decltype(_impl_.student_quited_){0}, decltype(_impl_.student_score_){0}, decltype(_impl_.tricker_score_){0}, /*decltype(_impl_._cached_size_)*/ {}}; } MessageOfAll::~MessageOfAll() { // @@protoc_insertion_point(destructor:protobuf.MessageOfAll) - if (GetArenaForAllocation() != nullptr) + if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) + { + (void)arena; return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void MessageOfAll::SharedDtor() @@ -7528,17 +7355,9 @@ namespace protobuf GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } - void MessageOfAll::ArenaDtor(void* object) - { - MessageOfAll* _this = reinterpret_cast(object); - (void)_this; - } - void MessageOfAll::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) - { - } void MessageOfAll::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void MessageOfAll::Clear() @@ -7548,11 +7367,11 @@ namespace protobuf // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; - ::memset(&game_time_, 0, static_cast(reinterpret_cast(&tricker_score_) - reinterpret_cast(&game_time_)) + sizeof(tricker_score_)); + ::memset(&_impl_.game_time_, 0, static_cast(reinterpret_cast(&_impl_.tricker_score_) - reinterpret_cast(&_impl_.game_time_)) + sizeof(_impl_.tricker_score_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - const char* MessageOfAll::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) + const char* MessageOfAll::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) \ if (PROTOBUF_PREDICT_FALSE(!(x))) \ @@ -7560,14 +7379,14 @@ namespace protobuf while (!ctx->Done(&ptr)) { uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // int32 game_time = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - game_time_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.game_time_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -7577,7 +7396,7 @@ namespace protobuf case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - subject_finished_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.subject_finished_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -7587,7 +7406,7 @@ namespace protobuf case 3: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - student_graduated_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.student_graduated_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -7597,7 +7416,7 @@ namespace protobuf case 4: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { - student_quited_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.student_quited_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -7607,7 +7426,7 @@ namespace protobuf case 5: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { - student_score_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.student_score_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -7617,7 +7436,7 @@ namespace protobuf case 6: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 48)) { - tricker_score_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.tricker_score_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -7661,47 +7480,47 @@ namespace protobuf if (this->_internal_game_time() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_game_time(), target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_game_time(), target); } // int32 subject_finished = 2; if (this->_internal_subject_finished() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_subject_finished(), target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_subject_finished(), target); } // int32 student_graduated = 3; if (this->_internal_student_graduated() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_student_graduated(), target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_student_graduated(), target); } // int32 student_quited = 4; if (this->_internal_student_quited() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_student_quited(), target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(4, this->_internal_student_quited(), target); } // int32 student_score = 5; if (this->_internal_student_score() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(5, this->_internal_student_score(), target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(5, this->_internal_student_score(), target); } // int32 tricker_score = 6; if (this->_internal_tricker_score() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(6, this->_internal_tricker_score(), target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(6, this->_internal_tricker_score(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream ); } @@ -7721,89 +7540,84 @@ namespace protobuf // int32 game_time = 1; if (this->_internal_game_time() != 0) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_game_time()); + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_game_time()); } // int32 subject_finished = 2; if (this->_internal_subject_finished() != 0) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_subject_finished()); + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_subject_finished()); } // int32 student_graduated = 3; if (this->_internal_student_graduated() != 0) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_student_graduated()); + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_student_graduated()); } // int32 student_quited = 4; if (this->_internal_student_quited() != 0) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_student_quited()); + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_student_quited()); } // int32 student_score = 5; if (this->_internal_student_score() != 0) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_student_score()); + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_student_score()); } // int32 tricker_score = 6; if (this->_internal_tricker_score() != 0) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_tricker_score()); + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_tricker_score()); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfAll::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, MessageOfAll::MergeImpl}; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfAll::GetClassData() const { return &_class_data_; } - void MessageOfAll::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from) - { - static_cast(to)->MergeFrom( - static_cast(from) - ); - } - - void MessageOfAll::MergeFrom(const MessageOfAll& from) + void MessageOfAll::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfAll) - GOOGLE_DCHECK_NE(&from, this); + GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void)cached_has_bits; if (from._internal_game_time() != 0) { - _internal_set_game_time(from._internal_game_time()); + _this->_internal_set_game_time(from._internal_game_time()); } if (from._internal_subject_finished() != 0) { - _internal_set_subject_finished(from._internal_subject_finished()); + _this->_internal_set_subject_finished(from._internal_subject_finished()); } if (from._internal_student_graduated() != 0) { - _internal_set_student_graduated(from._internal_student_graduated()); + _this->_internal_set_student_graduated(from._internal_student_graduated()); } if (from._internal_student_quited() != 0) { - _internal_set_student_quited(from._internal_student_quited()); + _this->_internal_set_student_quited(from._internal_student_quited()); } if (from._internal_student_score() != 0) { - _internal_set_student_score(from._internal_student_score()); + _this->_internal_set_student_score(from._internal_student_score()); } if (from._internal_tricker_score() != 0) { - _internal_set_tricker_score(from._internal_tricker_score()); + _this->_internal_set_tricker_score(from._internal_tricker_score()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MessageOfAll::CopyFrom(const MessageOfAll& from) @@ -7825,15 +7639,15 @@ namespace protobuf using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(MessageOfAll, tricker_score_) + sizeof(MessageOfAll::tricker_score_) - PROTOBUF_FIELD_OFFSET(MessageOfAll, game_time_)>( - reinterpret_cast(&game_time_), - reinterpret_cast(&other->game_time_) + PROTOBUF_FIELD_OFFSET(MessageOfAll, _impl_.tricker_score_) + sizeof(MessageOfAll::_impl_.tricker_score_) - PROTOBUF_FIELD_OFFSET(MessageOfAll, _impl_.game_time_)>( + reinterpret_cast(&_impl_.game_time_), + reinterpret_cast(&other->_impl_.game_time_) ); } ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfAll::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[15] ); } @@ -7849,68 +7663,63 @@ namespace protobuf const ::protobuf::MessageOfAll& MessageToClient::_Internal::all_message(const MessageToClient* msg) { - return *msg->all_message_; + return *msg->_impl_.all_message_; } MessageToClient::MessageToClient(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : - ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), - obj_message_(arena) + ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) - { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:protobuf.MessageToClient) } MessageToClient::MessageToClient(const MessageToClient& from) : - ::PROTOBUF_NAMESPACE_ID::Message(), - obj_message_(from.obj_message_) + ::PROTOBUF_NAMESPACE_ID::Message() { + MessageToClient* const _this = this; + (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.obj_message_){from._impl_.obj_message_}, decltype(_impl_.all_message_){nullptr}, decltype(_impl_.game_state_){}, /*decltype(_impl_._cached_size_)*/ {}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); if (from._internal_has_all_message()) { - all_message_ = new ::protobuf::MessageOfAll(*from.all_message_); + _this->_impl_.all_message_ = new ::protobuf::MessageOfAll(*from._impl_.all_message_); } - else - { - all_message_ = nullptr; - } - game_state_ = from.game_state_; + _this->_impl_.game_state_ = from._impl_.game_state_; // @@protoc_insertion_point(copy_constructor:protobuf.MessageToClient) } - inline void MessageToClient::SharedCtor() + inline void MessageToClient::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned + ) { - ::memset(reinterpret_cast(this) + static_cast(reinterpret_cast(&all_message_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&game_state_) - reinterpret_cast(&all_message_)) + sizeof(game_state_)); + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.obj_message_){arena}, decltype(_impl_.all_message_){nullptr}, decltype(_impl_.game_state_){0}, /*decltype(_impl_._cached_size_)*/ {}}; } MessageToClient::~MessageToClient() { // @@protoc_insertion_point(destructor:protobuf.MessageToClient) - if (GetArenaForAllocation() != nullptr) + if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) + { + (void)arena; return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void MessageToClient::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.obj_message_.~RepeatedPtrField(); if (this != internal_default_instance()) - delete all_message_; + delete _impl_.all_message_; } - void MessageToClient::ArenaDtor(void* object) - { - MessageToClient* _this = reinterpret_cast(object); - (void)_this; - } - void MessageToClient::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) - { - } void MessageToClient::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void MessageToClient::Clear() @@ -7920,17 +7729,17 @@ namespace protobuf // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; - obj_message_.Clear(); - if (GetArenaForAllocation() == nullptr && all_message_ != nullptr) + _impl_.obj_message_.Clear(); + if (GetArenaForAllocation() == nullptr && _impl_.all_message_ != nullptr) { - delete all_message_; + delete _impl_.all_message_; } - all_message_ = nullptr; - game_state_ = 0; + _impl_.all_message_ = nullptr; + _impl_.game_state_ = 0; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - const char* MessageToClient::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) + const char* MessageToClient::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) \ if (PROTOBUF_PREDICT_FALSE(!(x))) \ @@ -7938,7 +7747,7 @@ namespace protobuf while (!ctx->Done(&ptr)) { uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // repeated .protobuf.MessageOfObj obj_message = 1; @@ -8014,21 +7823,21 @@ namespace protobuf (void)cached_has_bits; // repeated .protobuf.MessageOfObj obj_message = 1; - for (unsigned int i = 0, - n = static_cast(this->_internal_obj_message_size()); + for (unsigned i = 0, + n = static_cast(this->_internal_obj_message_size()); i < n; i++) { - target = stream->EnsureSpace(target); + const auto& repfield = this->_internal_obj_message(i); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, this->_internal_obj_message(i), target, stream); + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } // .protobuf.GameState game_state = 2; if (this->_internal_game_state() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 2, this->_internal_game_state(), target ); } @@ -8036,16 +7845,13 @@ namespace protobuf // .protobuf.MessageOfAll all_message = 3; if (this->_internal_has_all_message()) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 3, _Internal::all_message(this), target, stream - ); + InternalWriteMessage(3, _Internal::all_message(this), _Internal::all_message(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream ); } @@ -8064,7 +7870,7 @@ namespace protobuf // repeated .protobuf.MessageOfObj obj_message = 1; total_size += 1UL * this->_internal_obj_message_size(); - for (const auto& msg : this->obj_message_) + for (const auto& msg : this->_impl_.obj_message_) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); @@ -8075,7 +7881,7 @@ namespace protobuf { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *all_message_ + *_impl_.all_message_ ); } @@ -8083,44 +7889,41 @@ namespace protobuf if (this->_internal_game_state() != 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_game_state()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_game_state()); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageToClient::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, MessageToClient::MergeImpl}; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageToClient::GetClassData() const { return &_class_data_; } - void MessageToClient::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from) - { - static_cast(to)->MergeFrom( - static_cast(from) - ); - } - - void MessageToClient::MergeFrom(const MessageToClient& from) + void MessageToClient::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageToClient) - GOOGLE_DCHECK_NE(&from, this); + GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void)cached_has_bits; - obj_message_.MergeFrom(from.obj_message_); + _this->_impl_.obj_message_.MergeFrom(from._impl_.obj_message_); if (from._internal_has_all_message()) { - _internal_mutable_all_message()->::protobuf::MessageOfAll::MergeFrom(from._internal_all_message()); + _this->_internal_mutable_all_message()->::protobuf::MessageOfAll::MergeFrom( + from._internal_all_message() + ); } if (from._internal_game_state() != 0) { - _internal_set_game_state(from._internal_game_state()); + _this->_internal_set_game_state(from._internal_game_state()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MessageToClient::CopyFrom(const MessageToClient& from) @@ -8141,17 +7944,17 @@ namespace protobuf { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - obj_message_.InternalSwap(&other->obj_message_); + _impl_.obj_message_.InternalSwap(&other->_impl_.obj_message_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(MessageToClient, game_state_) + sizeof(MessageToClient::game_state_) - PROTOBUF_FIELD_OFFSET(MessageToClient, all_message_)>( - reinterpret_cast(&all_message_), - reinterpret_cast(&other->all_message_) + PROTOBUF_FIELD_OFFSET(MessageToClient, _impl_.game_state_) + sizeof(MessageToClient::_impl_.game_state_) - PROTOBUF_FIELD_OFFSET(MessageToClient, _impl_.all_message_)>( + reinterpret_cast(&_impl_.all_message_), + reinterpret_cast(&other->_impl_.all_message_) ); } ::PROTOBUF_NAMESPACE_ID::Metadata MessageToClient::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[16] ); } @@ -8166,33 +7969,41 @@ namespace protobuf MoveRes::MoveRes(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) - { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:protobuf.MoveRes) } MoveRes::MoveRes(const MoveRes& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + MoveRes* const _this = this; + (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.actual_speed_){}, decltype(_impl_.actual_angle_){}, decltype(_impl_.act_success_){}, /*decltype(_impl_._cached_size_)*/ {}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::memcpy(&actual_speed_, &from.actual_speed_, static_cast(reinterpret_cast(&act_success_) - reinterpret_cast(&actual_speed_)) + sizeof(act_success_)); + ::memcpy(&_impl_.actual_speed_, &from._impl_.actual_speed_, static_cast(reinterpret_cast(&_impl_.act_success_) - reinterpret_cast(&_impl_.actual_speed_)) + sizeof(_impl_.act_success_)); // @@protoc_insertion_point(copy_constructor:protobuf.MoveRes) } - inline void MoveRes::SharedCtor() + inline void MoveRes::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned + ) { - ::memset(reinterpret_cast(this) + static_cast(reinterpret_cast(&actual_speed_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&act_success_) - reinterpret_cast(&actual_speed_)) + sizeof(act_success_)); + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.actual_speed_){int64_t{0}}, decltype(_impl_.actual_angle_){0}, decltype(_impl_.act_success_){false}, /*decltype(_impl_._cached_size_)*/ {}}; } MoveRes::~MoveRes() { // @@protoc_insertion_point(destructor:protobuf.MoveRes) - if (GetArenaForAllocation() != nullptr) + if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) + { + (void)arena; return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void MoveRes::SharedDtor() @@ -8200,17 +8011,9 @@ namespace protobuf GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } - void MoveRes::ArenaDtor(void* object) - { - MoveRes* _this = reinterpret_cast(object); - (void)_this; - } - void MoveRes::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) - { - } void MoveRes::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void MoveRes::Clear() @@ -8220,11 +8023,11 @@ namespace protobuf // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; - ::memset(&actual_speed_, 0, static_cast(reinterpret_cast(&act_success_) - reinterpret_cast(&actual_speed_)) + sizeof(act_success_)); + ::memset(&_impl_.actual_speed_, 0, static_cast(reinterpret_cast(&_impl_.act_success_) - reinterpret_cast(&_impl_.actual_speed_)) + sizeof(_impl_.act_success_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - const char* MoveRes::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) + const char* MoveRes::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) \ if (PROTOBUF_PREDICT_FALSE(!(x))) \ @@ -8232,14 +8035,14 @@ namespace protobuf while (!ctx->Done(&ptr)) { uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // int64 actual_speed = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - actual_speed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.actual_speed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else @@ -8249,7 +8052,7 @@ namespace protobuf case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 17)) { - actual_angle_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + _impl_.actual_angle_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(double); } else @@ -8259,7 +8062,7 @@ namespace protobuf case 3: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - act_success_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.act_success_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else @@ -8303,7 +8106,7 @@ namespace protobuf if (this->_internal_actual_speed() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_actual_speed(), target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(1, this->_internal_actual_speed(), target); } // double actual_angle = 2; @@ -8314,19 +8117,19 @@ namespace protobuf if (raw_actual_angle != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(2, this->_internal_actual_angle(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(2, this->_internal_actual_angle(), target); } // bool act_success = 3; if (this->_internal_act_success() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(3, this->_internal_act_success(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_act_success(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream ); } @@ -8346,7 +8149,7 @@ namespace protobuf // int64 actual_speed = 1; if (this->_internal_actual_speed() != 0) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_actual_speed()); + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_actual_speed()); } // double actual_angle = 2; @@ -8365,34 +8168,29 @@ namespace protobuf total_size += 1 + 1; } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MoveRes::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, MoveRes::MergeImpl}; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MoveRes::GetClassData() const { return &_class_data_; } - void MoveRes::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from) - { - static_cast(to)->MergeFrom( - static_cast(from) - ); - } - - void MoveRes::MergeFrom(const MoveRes& from) + void MoveRes::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MoveRes) - GOOGLE_DCHECK_NE(&from, this); + GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void)cached_has_bits; if (from._internal_actual_speed() != 0) { - _internal_set_actual_speed(from._internal_actual_speed()); + _this->_internal_set_actual_speed(from._internal_actual_speed()); } static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_actual_angle = from._internal_actual_angle(); @@ -8400,13 +8198,13 @@ namespace protobuf memcpy(&raw_actual_angle, &tmp_actual_angle, sizeof(tmp_actual_angle)); if (raw_actual_angle != 0) { - _internal_set_actual_angle(from._internal_actual_angle()); + _this->_internal_set_actual_angle(from._internal_actual_angle()); } if (from._internal_act_success() != 0) { - _internal_set_act_success(from._internal_act_success()); + _this->_internal_set_act_success(from._internal_act_success()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MoveRes::CopyFrom(const MoveRes& from) @@ -8428,15 +8226,15 @@ namespace protobuf using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(MoveRes, act_success_) + sizeof(MoveRes::act_success_) - PROTOBUF_FIELD_OFFSET(MoveRes, actual_speed_)>( - reinterpret_cast(&actual_speed_), - reinterpret_cast(&other->actual_speed_) + PROTOBUF_FIELD_OFFSET(MoveRes, _impl_.act_success_) + sizeof(MoveRes::_impl_.act_success_) - PROTOBUF_FIELD_OFFSET(MoveRes, _impl_.actual_speed_)>( + reinterpret_cast(&_impl_.actual_speed_), + reinterpret_cast(&other->_impl_.actual_speed_) ); } ::PROTOBUF_NAMESPACE_ID::Metadata MoveRes::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[17] ); } @@ -8451,33 +8249,41 @@ namespace protobuf BoolRes::BoolRes(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) - { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:protobuf.BoolRes) } BoolRes::BoolRes(const BoolRes& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + BoolRes* const _this = this; + (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.act_success_){}, /*decltype(_impl_._cached_size_)*/ {}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - act_success_ = from.act_success_; + _this->_impl_.act_success_ = from._impl_.act_success_; // @@protoc_insertion_point(copy_constructor:protobuf.BoolRes) } - inline void BoolRes::SharedCtor() + inline void BoolRes::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned + ) { - act_success_ = false; + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.act_success_){false}, /*decltype(_impl_._cached_size_)*/ {}}; } BoolRes::~BoolRes() { // @@protoc_insertion_point(destructor:protobuf.BoolRes) - if (GetArenaForAllocation() != nullptr) + if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) + { + (void)arena; return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void BoolRes::SharedDtor() @@ -8485,17 +8291,9 @@ namespace protobuf GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } - void BoolRes::ArenaDtor(void* object) - { - BoolRes* _this = reinterpret_cast(object); - (void)_this; - } - void BoolRes::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) - { - } void BoolRes::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void BoolRes::Clear() @@ -8505,11 +8303,11 @@ namespace protobuf // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; - act_success_ = false; + _impl_.act_success_ = false; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - const char* BoolRes::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) + const char* BoolRes::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) \ if (PROTOBUF_PREDICT_FALSE(!(x))) \ @@ -8517,14 +8315,14 @@ namespace protobuf while (!ctx->Done(&ptr)) { uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // bool act_success = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - act_success_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.act_success_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else @@ -8568,12 +8366,12 @@ namespace protobuf if (this->_internal_act_success() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_act_success(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this->_internal_act_success(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream ); } @@ -8596,36 +8394,31 @@ namespace protobuf total_size += 1 + 1; } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData BoolRes::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, BoolRes::MergeImpl}; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* BoolRes::GetClassData() const { return &_class_data_; } - void BoolRes::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from) - { - static_cast(to)->MergeFrom( - static_cast(from) - ); - } - - void BoolRes::MergeFrom(const BoolRes& from) + void BoolRes::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.BoolRes) - GOOGLE_DCHECK_NE(&from, this); + GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void)cached_has_bits; if (from._internal_act_success() != 0) { - _internal_set_act_success(from._internal_act_success()); + _this->_internal_set_act_success(from._internal_act_success()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void BoolRes::CopyFrom(const BoolRes& from) @@ -8646,12 +8439,12 @@ namespace protobuf { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(act_success_, other->act_success_); + swap(_impl_.act_success_, other->_impl_.act_success_); } ::PROTOBUF_NAMESPACE_ID::Metadata BoolRes::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[18] ); } @@ -8660,97 +8453,116 @@ namespace protobuf } // namespace protobuf PROTOBUF_NAMESPACE_OPEN template<> -PROTOBUF_NOINLINE ::protobuf::MessageOfStudent* Arena::CreateMaybeMessage<::protobuf::MessageOfStudent>(Arena* arena) +PROTOBUF_NOINLINE ::protobuf::MessageOfStudent* + Arena::CreateMaybeMessage<::protobuf::MessageOfStudent>(Arena* arena) { return Arena::CreateMessageInternal<::protobuf::MessageOfStudent>(arena); } template<> -PROTOBUF_NOINLINE ::protobuf::MessageOfTricker* Arena::CreateMaybeMessage<::protobuf::MessageOfTricker>(Arena* arena) +PROTOBUF_NOINLINE ::protobuf::MessageOfTricker* + Arena::CreateMaybeMessage<::protobuf::MessageOfTricker>(Arena* arena) { return Arena::CreateMessageInternal<::protobuf::MessageOfTricker>(arena); } template<> -PROTOBUF_NOINLINE ::protobuf::MessageOfBullet* Arena::CreateMaybeMessage<::protobuf::MessageOfBullet>(Arena* arena) +PROTOBUF_NOINLINE ::protobuf::MessageOfBullet* + Arena::CreateMaybeMessage<::protobuf::MessageOfBullet>(Arena* arena) { return Arena::CreateMessageInternal<::protobuf::MessageOfBullet>(arena); } template<> -PROTOBUF_NOINLINE ::protobuf::MessageOfBombedBullet* Arena::CreateMaybeMessage<::protobuf::MessageOfBombedBullet>(Arena* arena) +PROTOBUF_NOINLINE ::protobuf::MessageOfBombedBullet* + Arena::CreateMaybeMessage<::protobuf::MessageOfBombedBullet>(Arena* arena) { return Arena::CreateMessageInternal<::protobuf::MessageOfBombedBullet>(arena); } template<> -PROTOBUF_NOINLINE ::protobuf::MessageOfProp* Arena::CreateMaybeMessage<::protobuf::MessageOfProp>(Arena* arena) +PROTOBUF_NOINLINE ::protobuf::MessageOfProp* + Arena::CreateMaybeMessage<::protobuf::MessageOfProp>(Arena* arena) { return Arena::CreateMessageInternal<::protobuf::MessageOfProp>(arena); } template<> -PROTOBUF_NOINLINE ::protobuf::MessageOfPickedProp* Arena::CreateMaybeMessage<::protobuf::MessageOfPickedProp>(Arena* arena) +PROTOBUF_NOINLINE ::protobuf::MessageOfPickedProp* + Arena::CreateMaybeMessage<::protobuf::MessageOfPickedProp>(Arena* arena) { return Arena::CreateMessageInternal<::protobuf::MessageOfPickedProp>(arena); } template<> -PROTOBUF_NOINLINE ::protobuf::MessageOfClassroom* Arena::CreateMaybeMessage<::protobuf::MessageOfClassroom>(Arena* arena) +PROTOBUF_NOINLINE ::protobuf::MessageOfClassroom* + Arena::CreateMaybeMessage<::protobuf::MessageOfClassroom>(Arena* arena) { return Arena::CreateMessageInternal<::protobuf::MessageOfClassroom>(arena); } template<> -PROTOBUF_NOINLINE ::protobuf::MessageOfGate* Arena::CreateMaybeMessage<::protobuf::MessageOfGate>(Arena* arena) +PROTOBUF_NOINLINE ::protobuf::MessageOfGate* + Arena::CreateMaybeMessage<::protobuf::MessageOfGate>(Arena* arena) { return Arena::CreateMessageInternal<::protobuf::MessageOfGate>(arena); } template<> -PROTOBUF_NOINLINE ::protobuf::MessageOfHiddenGate* Arena::CreateMaybeMessage<::protobuf::MessageOfHiddenGate>(Arena* arena) +PROTOBUF_NOINLINE ::protobuf::MessageOfHiddenGate* + Arena::CreateMaybeMessage<::protobuf::MessageOfHiddenGate>(Arena* arena) { return Arena::CreateMessageInternal<::protobuf::MessageOfHiddenGate>(arena); } template<> -PROTOBUF_NOINLINE ::protobuf::MessageOfDoor* Arena::CreateMaybeMessage<::protobuf::MessageOfDoor>(Arena* arena) +PROTOBUF_NOINLINE ::protobuf::MessageOfDoor* + Arena::CreateMaybeMessage<::protobuf::MessageOfDoor>(Arena* arena) { return Arena::CreateMessageInternal<::protobuf::MessageOfDoor>(arena); } template<> -PROTOBUF_NOINLINE ::protobuf::MessageOfChest* Arena::CreateMaybeMessage<::protobuf::MessageOfChest>(Arena* arena) +PROTOBUF_NOINLINE ::protobuf::MessageOfChest* + Arena::CreateMaybeMessage<::protobuf::MessageOfChest>(Arena* arena) { return Arena::CreateMessageInternal<::protobuf::MessageOfChest>(arena); } template<> -PROTOBUF_NOINLINE ::protobuf::MessageOfMap_Row* Arena::CreateMaybeMessage<::protobuf::MessageOfMap_Row>(Arena* arena) +PROTOBUF_NOINLINE ::protobuf::MessageOfMap_Row* + Arena::CreateMaybeMessage<::protobuf::MessageOfMap_Row>(Arena* arena) { return Arena::CreateMessageInternal<::protobuf::MessageOfMap_Row>(arena); } template<> -PROTOBUF_NOINLINE ::protobuf::MessageOfMap* Arena::CreateMaybeMessage<::protobuf::MessageOfMap>(Arena* arena) +PROTOBUF_NOINLINE ::protobuf::MessageOfMap* + Arena::CreateMaybeMessage<::protobuf::MessageOfMap>(Arena* arena) { return Arena::CreateMessageInternal<::protobuf::MessageOfMap>(arena); } template<> -PROTOBUF_NOINLINE ::protobuf::MessageOfNews* Arena::CreateMaybeMessage<::protobuf::MessageOfNews>(Arena* arena) +PROTOBUF_NOINLINE ::protobuf::MessageOfNews* + Arena::CreateMaybeMessage<::protobuf::MessageOfNews>(Arena* arena) { return Arena::CreateMessageInternal<::protobuf::MessageOfNews>(arena); } template<> -PROTOBUF_NOINLINE ::protobuf::MessageOfObj* Arena::CreateMaybeMessage<::protobuf::MessageOfObj>(Arena* arena) +PROTOBUF_NOINLINE ::protobuf::MessageOfObj* + Arena::CreateMaybeMessage<::protobuf::MessageOfObj>(Arena* arena) { return Arena::CreateMessageInternal<::protobuf::MessageOfObj>(arena); } template<> -PROTOBUF_NOINLINE ::protobuf::MessageOfAll* Arena::CreateMaybeMessage<::protobuf::MessageOfAll>(Arena* arena) +PROTOBUF_NOINLINE ::protobuf::MessageOfAll* + Arena::CreateMaybeMessage<::protobuf::MessageOfAll>(Arena* arena) { return Arena::CreateMessageInternal<::protobuf::MessageOfAll>(arena); } template<> -PROTOBUF_NOINLINE ::protobuf::MessageToClient* Arena::CreateMaybeMessage<::protobuf::MessageToClient>(Arena* arena) +PROTOBUF_NOINLINE ::protobuf::MessageToClient* + Arena::CreateMaybeMessage<::protobuf::MessageToClient>(Arena* arena) { return Arena::CreateMessageInternal<::protobuf::MessageToClient>(arena); } template<> -PROTOBUF_NOINLINE ::protobuf::MoveRes* Arena::CreateMaybeMessage<::protobuf::MoveRes>(Arena* arena) +PROTOBUF_NOINLINE ::protobuf::MoveRes* + Arena::CreateMaybeMessage<::protobuf::MoveRes>(Arena* arena) { return Arena::CreateMessageInternal<::protobuf::MoveRes>(arena); } template<> -PROTOBUF_NOINLINE ::protobuf::BoolRes* Arena::CreateMaybeMessage<::protobuf::BoolRes>(Arena* arena) +PROTOBUF_NOINLINE ::protobuf::BoolRes* + Arena::CreateMaybeMessage<::protobuf::BoolRes>(Arena* arena) { return Arena::CreateMessageInternal<::protobuf::BoolRes>(arena); } diff --git a/CAPI/cpp/proto/Message2Clients.pb.h b/CAPI/cpp/proto/Message2Clients.pb.h index 82a050f..c1050a1 100644 --- a/CAPI/cpp/proto/Message2Clients.pb.h +++ b/CAPI/cpp/proto/Message2Clients.pb.h @@ -8,12 +8,12 @@ #include #include -#if PROTOBUF_VERSION < 3019000 +#if PROTOBUF_VERSION < 3021000 #error This file was generated by a newer version of protoc which is #error incompatible with your Protocol Buffer headers. Please update #error your headers. #endif -#if 3019004 < PROTOBUF_MIN_PROTOC_VERSION +#if 3021005 < PROTOBUF_MIN_PROTOC_VERSION #error This file was generated by an older version of protoc which is #error incompatible with your Protocol Buffer headers. Please #error regenerate this file with a newer version of protoc. @@ -23,7 +23,6 @@ #include #include #include -#include #include #include #include @@ -45,11 +44,6 @@ PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_Message2Clients_2eproto { - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[19] PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; - static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; static const uint32_t offsets[]; }; extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_Message2Clients_2eproto; @@ -167,7 +161,7 @@ namespace protobuf { } ~MessageOfStudent() override; - explicit constexpr MessageOfStudent(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR MessageOfStudent(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); MessageOfStudent(const MessageOfStudent& from); MessageOfStudent(MessageOfStudent&& from) noexcept @@ -266,10 +260,13 @@ namespace protobuf using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const MessageOfStudent& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const MessageOfStudent& from); + void MergeFrom(const MessageOfStudent& from) + { + MessageOfStudent::MergeImpl(*this, from); + } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; @@ -282,11 +279,11 @@ namespace protobuf ) const final; int GetCachedSize() const final { - return _cached_size_.Get(); + return _impl_._cached_size_.Get(); } private: - void SharedCtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(MessageOfStudent* other); @@ -301,10 +298,6 @@ namespace protobuf protected: explicit MessageOfStudent(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: static const ClassData _class_data_; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final; @@ -618,32 +611,39 @@ namespace protobuf friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField time_until_skill_available_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField prop_; - mutable std::atomic _prop_cached_byte_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField buff_; - mutable std::atomic _buff_cached_byte_size_; - int32_t x_; - int32_t y_; - int32_t speed_; - int32_t determination_; - int32_t addiction_; - int place_; - int64_t guid_; - int player_state_; - int bullet_type_; - int32_t learning_speed_; - int32_t treat_speed_; - int64_t player_id_; - int32_t view_range_; - int32_t radius_; - double danger_alert_; - int32_t score_; - int32_t treat_progress_; - int32_t rescue_progress_; - int student_type_; - double facing_direction_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ + { + ::PROTOBUF_NAMESPACE_ID::RepeatedField time_until_skill_available_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField prop_; + mutable std::atomic _prop_cached_byte_size_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField buff_; + mutable std::atomic _buff_cached_byte_size_; + int32_t x_; + int32_t y_; + int32_t speed_; + int32_t determination_; + int32_t addiction_; + int place_; + int64_t guid_; + int player_state_; + int bullet_type_; + int32_t learning_speed_; + int32_t treat_speed_; + int64_t player_id_; + int32_t view_range_; + int32_t radius_; + double danger_alert_; + int32_t score_; + int32_t treat_progress_; + int32_t rescue_progress_; + int student_type_; + double facing_direction_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union + { + Impl_ _impl_; + }; friend struct ::TableStruct_Message2Clients_2eproto; }; // ------------------------------------------------------------------- @@ -657,7 +657,7 @@ namespace protobuf { } ~MessageOfTricker() override; - explicit constexpr MessageOfTricker(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR MessageOfTricker(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); MessageOfTricker(const MessageOfTricker& from); MessageOfTricker(MessageOfTricker&& from) noexcept @@ -756,10 +756,13 @@ namespace protobuf using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const MessageOfTricker& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const MessageOfTricker& from); + void MergeFrom(const MessageOfTricker& from) + { + MessageOfTricker::MergeImpl(*this, from); + } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; @@ -772,11 +775,11 @@ namespace protobuf ) const final; int GetCachedSize() const final { - return _cached_size_.Get(); + return _impl_._cached_size_.Get(); } private: - void SharedCtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(MessageOfTricker* other); @@ -791,10 +794,6 @@ namespace protobuf protected: explicit MessageOfTricker(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: static const ClassData _class_data_; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final; @@ -1053,27 +1052,34 @@ namespace protobuf friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField time_until_skill_available_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField prop_; - mutable std::atomic _prop_cached_byte_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField buff_; - mutable std::atomic _buff_cached_byte_size_; - int32_t x_; - int32_t y_; - int32_t speed_; - int place_; - int64_t guid_; - int tricker_type_; - int32_t score_; - int64_t player_id_; - int32_t view_range_; - int32_t radius_; - double trick_desire_; - double class_volume_; - int player_state_; - int bullet_type_; - double facing_direction_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ + { + ::PROTOBUF_NAMESPACE_ID::RepeatedField time_until_skill_available_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField prop_; + mutable std::atomic _prop_cached_byte_size_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField buff_; + mutable std::atomic _buff_cached_byte_size_; + int32_t x_; + int32_t y_; + int32_t speed_; + int place_; + int64_t guid_; + int tricker_type_; + int32_t score_; + int64_t player_id_; + int32_t view_range_; + int32_t radius_; + double trick_desire_; + double class_volume_; + int player_state_; + int bullet_type_; + double facing_direction_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union + { + Impl_ _impl_; + }; friend struct ::TableStruct_Message2Clients_2eproto; }; // ------------------------------------------------------------------- @@ -1087,7 +1093,7 @@ namespace protobuf { } ~MessageOfBullet() override; - explicit constexpr MessageOfBullet(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR MessageOfBullet(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); MessageOfBullet(const MessageOfBullet& from); MessageOfBullet(MessageOfBullet&& from) noexcept @@ -1186,10 +1192,13 @@ namespace protobuf using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const MessageOfBullet& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const MessageOfBullet& from); + void MergeFrom(const MessageOfBullet& from) + { + MessageOfBullet::MergeImpl(*this, from); + } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; @@ -1202,11 +1211,11 @@ namespace protobuf ) const final; int GetCachedSize() const final { - return _cached_size_.Get(); + return _impl_._cached_size_.Get(); } private: - void SharedCtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(MessageOfBullet* other); @@ -1221,10 +1230,6 @@ namespace protobuf protected: explicit MessageOfBullet(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: static const ClassData _class_data_; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final; @@ -1346,16 +1351,23 @@ namespace protobuf friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - int type_; - int32_t x_; - double facing_direction_; - int32_t y_; - int team_; - int64_t guid_; - double bomb_range_; - int place_; - int32_t speed_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ + { + int type_; + int32_t x_; + double facing_direction_; + int32_t y_; + int team_; + int64_t guid_; + double bomb_range_; + int place_; + int32_t speed_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union + { + Impl_ _impl_; + }; friend struct ::TableStruct_Message2Clients_2eproto; }; // ------------------------------------------------------------------- @@ -1369,7 +1381,7 @@ namespace protobuf { } ~MessageOfBombedBullet() override; - explicit constexpr MessageOfBombedBullet(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR MessageOfBombedBullet(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); MessageOfBombedBullet(const MessageOfBombedBullet& from); MessageOfBombedBullet(MessageOfBombedBullet&& from) noexcept @@ -1468,10 +1480,13 @@ namespace protobuf using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const MessageOfBombedBullet& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const MessageOfBombedBullet& from); + void MergeFrom(const MessageOfBombedBullet& from) + { + MessageOfBombedBullet::MergeImpl(*this, from); + } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; @@ -1484,11 +1499,11 @@ namespace protobuf ) const final; int GetCachedSize() const final { - return _cached_size_.Get(); + return _impl_._cached_size_.Get(); } private: - void SharedCtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(MessageOfBombedBullet* other); @@ -1503,10 +1518,6 @@ namespace protobuf protected: explicit MessageOfBombedBullet(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: static const ClassData _class_data_; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final; @@ -1595,13 +1606,20 @@ namespace protobuf friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - int type_; - int32_t x_; - double facing_direction_; - int64_t mapping_id_; - double bomb_range_; - int32_t y_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ + { + int type_; + int32_t x_; + double facing_direction_; + int64_t mapping_id_; + double bomb_range_; + int32_t y_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union + { + Impl_ _impl_; + }; friend struct ::TableStruct_Message2Clients_2eproto; }; // ------------------------------------------------------------------- @@ -1615,7 +1633,7 @@ namespace protobuf { } ~MessageOfProp() override; - explicit constexpr MessageOfProp(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR MessageOfProp(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); MessageOfProp(const MessageOfProp& from); MessageOfProp(MessageOfProp&& from) noexcept @@ -1714,10 +1732,13 @@ namespace protobuf using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const MessageOfProp& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const MessageOfProp& from); + void MergeFrom(const MessageOfProp& from) + { + MessageOfProp::MergeImpl(*this, from); + } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; @@ -1730,11 +1751,11 @@ namespace protobuf ) const final; int GetCachedSize() const final { - return _cached_size_.Get(); + return _impl_._cached_size_.Get(); } private: - void SharedCtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(MessageOfProp* other); @@ -1749,10 +1770,6 @@ namespace protobuf protected: explicit MessageOfProp(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: static const ClassData _class_data_; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final; @@ -1841,13 +1858,20 @@ namespace protobuf friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - int type_; - int32_t x_; - double facing_direction_; - int32_t y_; - int place_; - int64_t guid_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ + { + int type_; + int32_t x_; + double facing_direction_; + int32_t y_; + int place_; + int64_t guid_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union + { + Impl_ _impl_; + }; friend struct ::TableStruct_Message2Clients_2eproto; }; // ------------------------------------------------------------------- @@ -1861,7 +1885,7 @@ namespace protobuf { } ~MessageOfPickedProp() override; - explicit constexpr MessageOfPickedProp(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR MessageOfPickedProp(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); MessageOfPickedProp(const MessageOfPickedProp& from); MessageOfPickedProp(MessageOfPickedProp&& from) noexcept @@ -1960,10 +1984,13 @@ namespace protobuf using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const MessageOfPickedProp& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const MessageOfPickedProp& from); + void MergeFrom(const MessageOfPickedProp& from) + { + MessageOfPickedProp::MergeImpl(*this, from); + } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; @@ -1976,11 +2003,11 @@ namespace protobuf ) const final; int GetCachedSize() const final { - return _cached_size_.Get(); + return _impl_._cached_size_.Get(); } private: - void SharedCtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(MessageOfPickedProp* other); @@ -1995,10 +2022,6 @@ namespace protobuf protected: explicit MessageOfPickedProp(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: static const ClassData _class_data_; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final; @@ -2076,12 +2099,19 @@ namespace protobuf friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - int type_; - int32_t x_; - double facing_direction_; - int64_t mapping_id_; - int32_t y_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ + { + int type_; + int32_t x_; + double facing_direction_; + int64_t mapping_id_; + int32_t y_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union + { + Impl_ _impl_; + }; friend struct ::TableStruct_Message2Clients_2eproto; }; // ------------------------------------------------------------------- @@ -2095,7 +2125,7 @@ namespace protobuf { } ~MessageOfClassroom() override; - explicit constexpr MessageOfClassroom(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR MessageOfClassroom(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); MessageOfClassroom(const MessageOfClassroom& from); MessageOfClassroom(MessageOfClassroom&& from) noexcept @@ -2194,10 +2224,13 @@ namespace protobuf using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const MessageOfClassroom& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const MessageOfClassroom& from); + void MergeFrom(const MessageOfClassroom& from) + { + MessageOfClassroom::MergeImpl(*this, from); + } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; @@ -2210,11 +2243,11 @@ namespace protobuf ) const final; int GetCachedSize() const final { - return _cached_size_.Get(); + return _impl_._cached_size_.Get(); } private: - void SharedCtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(MessageOfClassroom* other); @@ -2229,10 +2262,6 @@ namespace protobuf protected: explicit MessageOfClassroom(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: static const ClassData _class_data_; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final; @@ -2288,10 +2317,17 @@ namespace protobuf friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - int32_t x_; - int32_t y_; - int32_t progress_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ + { + int32_t x_; + int32_t y_; + int32_t progress_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union + { + Impl_ _impl_; + }; friend struct ::TableStruct_Message2Clients_2eproto; }; // ------------------------------------------------------------------- @@ -2305,7 +2341,7 @@ namespace protobuf { } ~MessageOfGate() override; - explicit constexpr MessageOfGate(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR MessageOfGate(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); MessageOfGate(const MessageOfGate& from); MessageOfGate(MessageOfGate&& from) noexcept @@ -2404,10 +2440,13 @@ namespace protobuf using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const MessageOfGate& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const MessageOfGate& from); + void MergeFrom(const MessageOfGate& from) + { + MessageOfGate::MergeImpl(*this, from); + } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; @@ -2420,11 +2459,11 @@ namespace protobuf ) const final; int GetCachedSize() const final { - return _cached_size_.Get(); + return _impl_._cached_size_.Get(); } private: - void SharedCtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(MessageOfGate* other); @@ -2439,10 +2478,6 @@ namespace protobuf protected: explicit MessageOfGate(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: static const ClassData _class_data_; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final; @@ -2498,10 +2533,17 @@ namespace protobuf friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - int32_t x_; - int32_t y_; - int32_t progress_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ + { + int32_t x_; + int32_t y_; + int32_t progress_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union + { + Impl_ _impl_; + }; friend struct ::TableStruct_Message2Clients_2eproto; }; // ------------------------------------------------------------------- @@ -2515,7 +2557,7 @@ namespace protobuf { } ~MessageOfHiddenGate() override; - explicit constexpr MessageOfHiddenGate(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR MessageOfHiddenGate(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); MessageOfHiddenGate(const MessageOfHiddenGate& from); MessageOfHiddenGate(MessageOfHiddenGate&& from) noexcept @@ -2614,10 +2656,13 @@ namespace protobuf using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const MessageOfHiddenGate& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const MessageOfHiddenGate& from); + void MergeFrom(const MessageOfHiddenGate& from) + { + MessageOfHiddenGate::MergeImpl(*this, from); + } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; @@ -2630,11 +2675,11 @@ namespace protobuf ) const final; int GetCachedSize() const final { - return _cached_size_.Get(); + return _impl_._cached_size_.Get(); } private: - void SharedCtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(MessageOfHiddenGate* other); @@ -2649,10 +2694,6 @@ namespace protobuf protected: explicit MessageOfHiddenGate(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: static const ClassData _class_data_; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final; @@ -2708,10 +2749,17 @@ namespace protobuf friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - int32_t x_; - int32_t y_; - bool opened_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ + { + int32_t x_; + int32_t y_; + bool opened_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union + { + Impl_ _impl_; + }; friend struct ::TableStruct_Message2Clients_2eproto; }; // ------------------------------------------------------------------- @@ -2725,7 +2773,7 @@ namespace protobuf { } ~MessageOfDoor() override; - explicit constexpr MessageOfDoor(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR MessageOfDoor(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); MessageOfDoor(const MessageOfDoor& from); MessageOfDoor(MessageOfDoor&& from) noexcept @@ -2824,10 +2872,13 @@ namespace protobuf using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const MessageOfDoor& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const MessageOfDoor& from); + void MergeFrom(const MessageOfDoor& from) + { + MessageOfDoor::MergeImpl(*this, from); + } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; @@ -2840,11 +2891,11 @@ namespace protobuf ) const final; int GetCachedSize() const final { - return _cached_size_.Get(); + return _impl_._cached_size_.Get(); } private: - void SharedCtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(MessageOfDoor* other); @@ -2859,10 +2910,6 @@ namespace protobuf protected: explicit MessageOfDoor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: static const ClassData _class_data_; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final; @@ -2929,11 +2976,18 @@ namespace protobuf friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - int32_t x_; - int32_t y_; - bool is_open_; - int32_t progress_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ + { + int32_t x_; + int32_t y_; + bool is_open_; + int32_t progress_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union + { + Impl_ _impl_; + }; friend struct ::TableStruct_Message2Clients_2eproto; }; // ------------------------------------------------------------------- @@ -2947,7 +3001,7 @@ namespace protobuf { } ~MessageOfChest() override; - explicit constexpr MessageOfChest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR MessageOfChest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); MessageOfChest(const MessageOfChest& from); MessageOfChest(MessageOfChest&& from) noexcept @@ -3046,10 +3100,13 @@ namespace protobuf using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const MessageOfChest& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const MessageOfChest& from); + void MergeFrom(const MessageOfChest& from) + { + MessageOfChest::MergeImpl(*this, from); + } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; @@ -3062,11 +3119,11 @@ namespace protobuf ) const final; int GetCachedSize() const final { - return _cached_size_.Get(); + return _impl_._cached_size_.Get(); } private: - void SharedCtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(MessageOfChest* other); @@ -3081,10 +3138,6 @@ namespace protobuf protected: explicit MessageOfChest(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: static const ClassData _class_data_; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final; @@ -3140,10 +3193,17 @@ namespace protobuf friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - int32_t x_; - int32_t y_; - int32_t progress_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ + { + int32_t x_; + int32_t y_; + int32_t progress_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union + { + Impl_ _impl_; + }; friend struct ::TableStruct_Message2Clients_2eproto; }; // ------------------------------------------------------------------- @@ -3157,7 +3217,7 @@ namespace protobuf { } ~MessageOfMap_Row() override; - explicit constexpr MessageOfMap_Row(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR MessageOfMap_Row(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); MessageOfMap_Row(const MessageOfMap_Row& from); MessageOfMap_Row(MessageOfMap_Row&& from) noexcept @@ -3256,10 +3316,13 @@ namespace protobuf using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const MessageOfMap_Row& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const MessageOfMap_Row& from); + void MergeFrom(const MessageOfMap_Row& from) + { + MessageOfMap_Row::MergeImpl(*this, from); + } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; @@ -3272,11 +3335,11 @@ namespace protobuf ) const final; int GetCachedSize() const final { - return _cached_size_.Get(); + return _impl_._cached_size_.Get(); } private: - void SharedCtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(MessageOfMap_Row* other); @@ -3291,10 +3354,6 @@ namespace protobuf protected: explicit MessageOfMap_Row(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: static const ClassData _class_data_; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final; @@ -3339,9 +3398,16 @@ namespace protobuf friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField col_; - mutable std::atomic _col_cached_byte_size_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ + { + ::PROTOBUF_NAMESPACE_ID::RepeatedField col_; + mutable std::atomic _col_cached_byte_size_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union + { + Impl_ _impl_; + }; friend struct ::TableStruct_Message2Clients_2eproto; }; // ------------------------------------------------------------------- @@ -3355,7 +3421,7 @@ namespace protobuf { } ~MessageOfMap() override; - explicit constexpr MessageOfMap(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR MessageOfMap(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); MessageOfMap(const MessageOfMap& from); MessageOfMap(MessageOfMap&& from) noexcept @@ -3454,10 +3520,13 @@ namespace protobuf using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const MessageOfMap& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const MessageOfMap& from); + void MergeFrom(const MessageOfMap& from) + { + MessageOfMap::MergeImpl(*this, from); + } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; @@ -3470,11 +3539,11 @@ namespace protobuf ) const final; int GetCachedSize() const final { - return _cached_size_.Get(); + return _impl_._cached_size_.Get(); } private: - void SharedCtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(MessageOfMap* other); @@ -3489,10 +3558,6 @@ namespace protobuf protected: explicit MessageOfMap(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: static const ClassData _class_data_; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final; @@ -3540,8 +3605,15 @@ namespace protobuf friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::protobuf::MessageOfMap_Row> row_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ + { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::protobuf::MessageOfMap_Row> row_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union + { + Impl_ _impl_; + }; friend struct ::TableStruct_Message2Clients_2eproto; }; // ------------------------------------------------------------------- @@ -3555,7 +3627,7 @@ namespace protobuf { } ~MessageOfNews() override; - explicit constexpr MessageOfNews(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR MessageOfNews(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); MessageOfNews(const MessageOfNews& from); MessageOfNews(MessageOfNews&& from) noexcept @@ -3654,10 +3726,13 @@ namespace protobuf using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const MessageOfNews& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const MessageOfNews& from); + void MergeFrom(const MessageOfNews& from) + { + MessageOfNews::MergeImpl(*this, from); + } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; @@ -3670,11 +3745,11 @@ namespace protobuf ) const final; int GetCachedSize() const final { - return _cached_size_.Get(); + return _impl_._cached_size_.Get(); } private: - void SharedCtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(MessageOfNews* other); @@ -3689,10 +3764,6 @@ namespace protobuf protected: explicit MessageOfNews(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: static const ClassData _class_data_; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final; @@ -3753,10 +3824,17 @@ namespace protobuf friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr news_; - int64_t from_id_; - int64_t to_id_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ + { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr news_; + int64_t from_id_; + int64_t to_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union + { + Impl_ _impl_; + }; friend struct ::TableStruct_Message2Clients_2eproto; }; // ------------------------------------------------------------------- @@ -3770,7 +3848,7 @@ namespace protobuf { } ~MessageOfObj() override; - explicit constexpr MessageOfObj(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR MessageOfObj(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); MessageOfObj(const MessageOfObj& from); MessageOfObj(MessageOfObj&& from) noexcept @@ -3886,10 +3964,13 @@ namespace protobuf using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const MessageOfObj& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const MessageOfObj& from); + void MergeFrom(const MessageOfObj& from) + { + MessageOfObj::MergeImpl(*this, from); + } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; @@ -3902,11 +3983,11 @@ namespace protobuf ) const final; int GetCachedSize() const final { - return _cached_size_.Get(); + return _impl_._cached_size_.Get(); } private: - void SharedCtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(MessageOfObj* other); @@ -3921,10 +4002,6 @@ namespace protobuf protected: explicit MessageOfObj(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: static const ClassData _class_data_; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final; @@ -4252,29 +4329,35 @@ namespace protobuf friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - union MessageOfObjUnion + struct Impl_ { - constexpr MessageOfObjUnion() : - _constinit_{} + union MessageOfObjUnion { - } - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; - ::protobuf::MessageOfStudent* student_message_; - ::protobuf::MessageOfTricker* tricker_message_; - ::protobuf::MessageOfProp* prop_message_; - ::protobuf::MessageOfBullet* bullet_message_; - ::protobuf::MessageOfBombedBullet* bombed_bullet_message_; - ::protobuf::MessageOfClassroom* classroom_message_; - ::protobuf::MessageOfDoor* door_message_; - ::protobuf::MessageOfGate* gate_message_; - ::protobuf::MessageOfChest* chest_message_; - ::protobuf::MessageOfHiddenGate* hidden_gate_message_; - ::protobuf::MessageOfNews* news_message_; - ::protobuf::MessageOfMap* map_message_; - } message_of_obj_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - uint32_t _oneof_case_[1]; - + constexpr MessageOfObjUnion() : + _constinit_{} + { + } + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + ::protobuf::MessageOfStudent* student_message_; + ::protobuf::MessageOfTricker* tricker_message_; + ::protobuf::MessageOfProp* prop_message_; + ::protobuf::MessageOfBullet* bullet_message_; + ::protobuf::MessageOfBombedBullet* bombed_bullet_message_; + ::protobuf::MessageOfClassroom* classroom_message_; + ::protobuf::MessageOfDoor* door_message_; + ::protobuf::MessageOfGate* gate_message_; + ::protobuf::MessageOfChest* chest_message_; + ::protobuf::MessageOfHiddenGate* hidden_gate_message_; + ::protobuf::MessageOfNews* news_message_; + ::protobuf::MessageOfMap* map_message_; + } message_of_obj_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + uint32_t _oneof_case_[1]; + }; + union + { + Impl_ _impl_; + }; friend struct ::TableStruct_Message2Clients_2eproto; }; // ------------------------------------------------------------------- @@ -4288,7 +4371,7 @@ namespace protobuf { } ~MessageOfAll() override; - explicit constexpr MessageOfAll(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR MessageOfAll(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); MessageOfAll(const MessageOfAll& from); MessageOfAll(MessageOfAll&& from) noexcept @@ -4387,10 +4470,13 @@ namespace protobuf using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const MessageOfAll& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const MessageOfAll& from); + void MergeFrom(const MessageOfAll& from) + { + MessageOfAll::MergeImpl(*this, from); + } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; @@ -4403,11 +4489,11 @@ namespace protobuf ) const final; int GetCachedSize() const final { - return _cached_size_.Get(); + return _impl_._cached_size_.Get(); } private: - void SharedCtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(MessageOfAll* other); @@ -4422,10 +4508,6 @@ namespace protobuf protected: explicit MessageOfAll(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: static const ClassData _class_data_; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final; @@ -4514,13 +4596,20 @@ namespace protobuf friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - int32_t game_time_; - int32_t subject_finished_; - int32_t student_graduated_; - int32_t student_quited_; - int32_t student_score_; - int32_t tricker_score_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ + { + int32_t game_time_; + int32_t subject_finished_; + int32_t student_graduated_; + int32_t student_quited_; + int32_t student_score_; + int32_t tricker_score_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union + { + Impl_ _impl_; + }; friend struct ::TableStruct_Message2Clients_2eproto; }; // ------------------------------------------------------------------- @@ -4534,7 +4623,7 @@ namespace protobuf { } ~MessageToClient() override; - explicit constexpr MessageToClient(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR MessageToClient(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); MessageToClient(const MessageToClient& from); MessageToClient(MessageToClient&& from) noexcept @@ -4633,10 +4722,13 @@ namespace protobuf using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const MessageToClient& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const MessageToClient& from); + void MergeFrom(const MessageToClient& from) + { + MessageToClient::MergeImpl(*this, from); + } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; @@ -4649,11 +4741,11 @@ namespace protobuf ) const final; int GetCachedSize() const final { - return _cached_size_.Get(); + return _impl_._cached_size_.Get(); } private: - void SharedCtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(MessageToClient* other); @@ -4668,10 +4760,6 @@ namespace protobuf protected: explicit MessageToClient(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: static const ClassData _class_data_; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final; @@ -4752,10 +4840,17 @@ namespace protobuf friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::protobuf::MessageOfObj> obj_message_; - ::protobuf::MessageOfAll* all_message_; - int game_state_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ + { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::protobuf::MessageOfObj> obj_message_; + ::protobuf::MessageOfAll* all_message_; + int game_state_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union + { + Impl_ _impl_; + }; friend struct ::TableStruct_Message2Clients_2eproto; }; // ------------------------------------------------------------------- @@ -4769,7 +4864,7 @@ namespace protobuf { } ~MoveRes() override; - explicit constexpr MoveRes(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR MoveRes(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); MoveRes(const MoveRes& from); MoveRes(MoveRes&& from) noexcept @@ -4868,10 +4963,13 @@ namespace protobuf using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const MoveRes& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const MoveRes& from); + void MergeFrom(const MoveRes& from) + { + MoveRes::MergeImpl(*this, from); + } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; @@ -4884,11 +4982,11 @@ namespace protobuf ) const final; int GetCachedSize() const final { - return _cached_size_.Get(); + return _impl_._cached_size_.Get(); } private: - void SharedCtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(MoveRes* other); @@ -4903,10 +5001,6 @@ namespace protobuf protected: explicit MoveRes(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: static const ClassData _class_data_; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final; @@ -4962,10 +5056,17 @@ namespace protobuf friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - int64_t actual_speed_; - double actual_angle_; - bool act_success_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ + { + int64_t actual_speed_; + double actual_angle_; + bool act_success_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union + { + Impl_ _impl_; + }; friend struct ::TableStruct_Message2Clients_2eproto; }; // ------------------------------------------------------------------- @@ -4979,7 +5080,7 @@ namespace protobuf { } ~BoolRes() override; - explicit constexpr BoolRes(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR BoolRes(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); BoolRes(const BoolRes& from); BoolRes(BoolRes&& from) noexcept @@ -5078,10 +5179,13 @@ namespace protobuf using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const BoolRes& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const BoolRes& from); + void MergeFrom(const BoolRes& from) + { + BoolRes::MergeImpl(*this, from); + } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; @@ -5094,11 +5198,11 @@ namespace protobuf ) const final; int GetCachedSize() const final { - return _cached_size_.Get(); + return _impl_._cached_size_.Get(); } private: - void SharedCtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(BoolRes* other); @@ -5113,10 +5217,6 @@ namespace protobuf protected: explicit BoolRes(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: static const ClassData _class_data_; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final; @@ -5150,8 +5250,15 @@ namespace protobuf friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - bool act_success_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ + { + bool act_success_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union + { + Impl_ _impl_; + }; friend struct ::TableStruct_Message2Clients_2eproto; }; // =================================================================== @@ -5167,11 +5274,11 @@ namespace protobuf // int32 x = 1; inline void MessageOfStudent::clear_x() { - x_ = 0; + _impl_.x_ = 0; } inline int32_t MessageOfStudent::_internal_x() const { - return x_; + return _impl_.x_; } inline int32_t MessageOfStudent::x() const { @@ -5180,7 +5287,7 @@ namespace protobuf } inline void MessageOfStudent::_internal_set_x(int32_t value) { - x_ = value; + _impl_.x_ = value; } inline void MessageOfStudent::set_x(int32_t value) { @@ -5191,11 +5298,11 @@ namespace protobuf // int32 y = 2; inline void MessageOfStudent::clear_y() { - y_ = 0; + _impl_.y_ = 0; } inline int32_t MessageOfStudent::_internal_y() const { - return y_; + return _impl_.y_; } inline int32_t MessageOfStudent::y() const { @@ -5204,7 +5311,7 @@ namespace protobuf } inline void MessageOfStudent::_internal_set_y(int32_t value) { - y_ = value; + _impl_.y_ = value; } inline void MessageOfStudent::set_y(int32_t value) { @@ -5215,11 +5322,11 @@ namespace protobuf // int32 speed = 3; inline void MessageOfStudent::clear_speed() { - speed_ = 0; + _impl_.speed_ = 0; } inline int32_t MessageOfStudent::_internal_speed() const { - return speed_; + return _impl_.speed_; } inline int32_t MessageOfStudent::speed() const { @@ -5228,7 +5335,7 @@ namespace protobuf } inline void MessageOfStudent::_internal_set_speed(int32_t value) { - speed_ = value; + _impl_.speed_ = value; } inline void MessageOfStudent::set_speed(int32_t value) { @@ -5239,11 +5346,11 @@ namespace protobuf // int32 determination = 4; inline void MessageOfStudent::clear_determination() { - determination_ = 0; + _impl_.determination_ = 0; } inline int32_t MessageOfStudent::_internal_determination() const { - return determination_; + return _impl_.determination_; } inline int32_t MessageOfStudent::determination() const { @@ -5252,7 +5359,7 @@ namespace protobuf } inline void MessageOfStudent::_internal_set_determination(int32_t value) { - determination_ = value; + _impl_.determination_ = value; } inline void MessageOfStudent::set_determination(int32_t value) { @@ -5263,11 +5370,11 @@ namespace protobuf // int32 addiction = 5; inline void MessageOfStudent::clear_addiction() { - addiction_ = 0; + _impl_.addiction_ = 0; } inline int32_t MessageOfStudent::_internal_addiction() const { - return addiction_; + return _impl_.addiction_; } inline int32_t MessageOfStudent::addiction() const { @@ -5276,7 +5383,7 @@ namespace protobuf } inline void MessageOfStudent::_internal_set_addiction(int32_t value) { - addiction_ = value; + _impl_.addiction_ = value; } inline void MessageOfStudent::set_addiction(int32_t value) { @@ -5287,7 +5394,7 @@ namespace protobuf // repeated double time_until_skill_available = 6; inline int MessageOfStudent::_internal_time_until_skill_available_size() const { - return time_until_skill_available_.size(); + return _impl_.time_until_skill_available_.size(); } inline int MessageOfStudent::time_until_skill_available_size() const { @@ -5295,11 +5402,11 @@ namespace protobuf } inline void MessageOfStudent::clear_time_until_skill_available() { - time_until_skill_available_.Clear(); + _impl_.time_until_skill_available_.Clear(); } inline double MessageOfStudent::_internal_time_until_skill_available(int index) const { - return time_until_skill_available_.Get(index); + return _impl_.time_until_skill_available_.Get(index); } inline double MessageOfStudent::time_until_skill_available(int index) const { @@ -5308,12 +5415,12 @@ namespace protobuf } inline void MessageOfStudent::set_time_until_skill_available(int index, double value) { - time_until_skill_available_.Set(index, value); + _impl_.time_until_skill_available_.Set(index, value); // @@protoc_insertion_point(field_set:protobuf.MessageOfStudent.time_until_skill_available) } inline void MessageOfStudent::_internal_add_time_until_skill_available(double value) { - time_until_skill_available_.Add(value); + _impl_.time_until_skill_available_.Add(value); } inline void MessageOfStudent::add_time_until_skill_available(double value) { @@ -5323,7 +5430,7 @@ namespace protobuf inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField& MessageOfStudent::_internal_time_until_skill_available() const { - return time_until_skill_available_; + return _impl_.time_until_skill_available_; } inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField& MessageOfStudent::time_until_skill_available() const @@ -5334,7 +5441,7 @@ namespace protobuf inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* MessageOfStudent::_internal_mutable_time_until_skill_available() { - return &time_until_skill_available_; + return &_impl_.time_until_skill_available_; } inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* MessageOfStudent::mutable_time_until_skill_available() @@ -5346,11 +5453,11 @@ namespace protobuf // .protobuf.PlaceType place = 7; inline void MessageOfStudent::clear_place() { - place_ = 0; + _impl_.place_ = 0; } inline ::protobuf::PlaceType MessageOfStudent::_internal_place() const { - return static_cast<::protobuf::PlaceType>(place_); + return static_cast<::protobuf::PlaceType>(_impl_.place_); } inline ::protobuf::PlaceType MessageOfStudent::place() const { @@ -5359,7 +5466,7 @@ namespace protobuf } inline void MessageOfStudent::_internal_set_place(::protobuf::PlaceType value) { - place_ = value; + _impl_.place_ = value; } inline void MessageOfStudent::set_place(::protobuf::PlaceType value) { @@ -5370,7 +5477,7 @@ namespace protobuf // repeated .protobuf.PropType prop = 8; inline int MessageOfStudent::_internal_prop_size() const { - return prop_.size(); + return _impl_.prop_.size(); } inline int MessageOfStudent::prop_size() const { @@ -5378,11 +5485,11 @@ namespace protobuf } inline void MessageOfStudent::clear_prop() { - prop_.Clear(); + _impl_.prop_.Clear(); } inline ::protobuf::PropType MessageOfStudent::_internal_prop(int index) const { - return static_cast<::protobuf::PropType>(prop_.Get(index)); + return static_cast<::protobuf::PropType>(_impl_.prop_.Get(index)); } inline ::protobuf::PropType MessageOfStudent::prop(int index) const { @@ -5391,12 +5498,12 @@ namespace protobuf } inline void MessageOfStudent::set_prop(int index, ::protobuf::PropType value) { - prop_.Set(index, value); + _impl_.prop_.Set(index, value); // @@protoc_insertion_point(field_set:protobuf.MessageOfStudent.prop) } inline void MessageOfStudent::_internal_add_prop(::protobuf::PropType value) { - prop_.Add(value); + _impl_.prop_.Add(value); } inline void MessageOfStudent::add_prop(::protobuf::PropType value) { @@ -5407,12 +5514,12 @@ namespace protobuf MessageOfStudent::prop() const { // @@protoc_insertion_point(field_list:protobuf.MessageOfStudent.prop) - return prop_; + return _impl_.prop_; } inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* MessageOfStudent::_internal_mutable_prop() { - return &prop_; + return &_impl_.prop_; } inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* MessageOfStudent::mutable_prop() @@ -5424,11 +5531,11 @@ namespace protobuf // .protobuf.PlayerState player_state = 9; inline void MessageOfStudent::clear_player_state() { - player_state_ = 0; + _impl_.player_state_ = 0; } inline ::protobuf::PlayerState MessageOfStudent::_internal_player_state() const { - return static_cast<::protobuf::PlayerState>(player_state_); + return static_cast<::protobuf::PlayerState>(_impl_.player_state_); } inline ::protobuf::PlayerState MessageOfStudent::player_state() const { @@ -5437,7 +5544,7 @@ namespace protobuf } inline void MessageOfStudent::_internal_set_player_state(::protobuf::PlayerState value) { - player_state_ = value; + _impl_.player_state_ = value; } inline void MessageOfStudent::set_player_state(::protobuf::PlayerState value) { @@ -5448,11 +5555,11 @@ namespace protobuf // int64 guid = 10; inline void MessageOfStudent::clear_guid() { - guid_ = int64_t{0}; + _impl_.guid_ = int64_t{0}; } inline int64_t MessageOfStudent::_internal_guid() const { - return guid_; + return _impl_.guid_; } inline int64_t MessageOfStudent::guid() const { @@ -5461,7 +5568,7 @@ namespace protobuf } inline void MessageOfStudent::_internal_set_guid(int64_t value) { - guid_ = value; + _impl_.guid_ = value; } inline void MessageOfStudent::set_guid(int64_t value) { @@ -5472,11 +5579,11 @@ namespace protobuf // .protobuf.BulletType bullet_type = 12; inline void MessageOfStudent::clear_bullet_type() { - bullet_type_ = 0; + _impl_.bullet_type_ = 0; } inline ::protobuf::BulletType MessageOfStudent::_internal_bullet_type() const { - return static_cast<::protobuf::BulletType>(bullet_type_); + return static_cast<::protobuf::BulletType>(_impl_.bullet_type_); } inline ::protobuf::BulletType MessageOfStudent::bullet_type() const { @@ -5485,7 +5592,7 @@ namespace protobuf } inline void MessageOfStudent::_internal_set_bullet_type(::protobuf::BulletType value) { - bullet_type_ = value; + _impl_.bullet_type_ = value; } inline void MessageOfStudent::set_bullet_type(::protobuf::BulletType value) { @@ -5496,11 +5603,11 @@ namespace protobuf // int32 learning_speed = 13; inline void MessageOfStudent::clear_learning_speed() { - learning_speed_ = 0; + _impl_.learning_speed_ = 0; } inline int32_t MessageOfStudent::_internal_learning_speed() const { - return learning_speed_; + return _impl_.learning_speed_; } inline int32_t MessageOfStudent::learning_speed() const { @@ -5509,7 +5616,7 @@ namespace protobuf } inline void MessageOfStudent::_internal_set_learning_speed(int32_t value) { - learning_speed_ = value; + _impl_.learning_speed_ = value; } inline void MessageOfStudent::set_learning_speed(int32_t value) { @@ -5520,11 +5627,11 @@ namespace protobuf // int32 treat_speed = 14; inline void MessageOfStudent::clear_treat_speed() { - treat_speed_ = 0; + _impl_.treat_speed_ = 0; } inline int32_t MessageOfStudent::_internal_treat_speed() const { - return treat_speed_; + return _impl_.treat_speed_; } inline int32_t MessageOfStudent::treat_speed() const { @@ -5533,7 +5640,7 @@ namespace protobuf } inline void MessageOfStudent::_internal_set_treat_speed(int32_t value) { - treat_speed_ = value; + _impl_.treat_speed_ = value; } inline void MessageOfStudent::set_treat_speed(int32_t value) { @@ -5544,11 +5651,11 @@ namespace protobuf // int64 player_id = 15; inline void MessageOfStudent::clear_player_id() { - player_id_ = int64_t{0}; + _impl_.player_id_ = int64_t{0}; } inline int64_t MessageOfStudent::_internal_player_id() const { - return player_id_; + return _impl_.player_id_; } inline int64_t MessageOfStudent::player_id() const { @@ -5557,7 +5664,7 @@ namespace protobuf } inline void MessageOfStudent::_internal_set_player_id(int64_t value) { - player_id_ = value; + _impl_.player_id_ = value; } inline void MessageOfStudent::set_player_id(int64_t value) { @@ -5568,11 +5675,11 @@ namespace protobuf // int32 view_range = 16; inline void MessageOfStudent::clear_view_range() { - view_range_ = 0; + _impl_.view_range_ = 0; } inline int32_t MessageOfStudent::_internal_view_range() const { - return view_range_; + return _impl_.view_range_; } inline int32_t MessageOfStudent::view_range() const { @@ -5581,7 +5688,7 @@ namespace protobuf } inline void MessageOfStudent::_internal_set_view_range(int32_t value) { - view_range_ = value; + _impl_.view_range_ = value; } inline void MessageOfStudent::set_view_range(int32_t value) { @@ -5592,11 +5699,11 @@ namespace protobuf // int32 radius = 17; inline void MessageOfStudent::clear_radius() { - radius_ = 0; + _impl_.radius_ = 0; } inline int32_t MessageOfStudent::_internal_radius() const { - return radius_; + return _impl_.radius_; } inline int32_t MessageOfStudent::radius() const { @@ -5605,7 +5712,7 @@ namespace protobuf } inline void MessageOfStudent::_internal_set_radius(int32_t value) { - radius_ = value; + _impl_.radius_ = value; } inline void MessageOfStudent::set_radius(int32_t value) { @@ -5616,11 +5723,11 @@ namespace protobuf // double danger_alert = 19; inline void MessageOfStudent::clear_danger_alert() { - danger_alert_ = 0; + _impl_.danger_alert_ = 0; } inline double MessageOfStudent::_internal_danger_alert() const { - return danger_alert_; + return _impl_.danger_alert_; } inline double MessageOfStudent::danger_alert() const { @@ -5629,7 +5736,7 @@ namespace protobuf } inline void MessageOfStudent::_internal_set_danger_alert(double value) { - danger_alert_ = value; + _impl_.danger_alert_ = value; } inline void MessageOfStudent::set_danger_alert(double value) { @@ -5640,11 +5747,11 @@ namespace protobuf // int32 score = 20; inline void MessageOfStudent::clear_score() { - score_ = 0; + _impl_.score_ = 0; } inline int32_t MessageOfStudent::_internal_score() const { - return score_; + return _impl_.score_; } inline int32_t MessageOfStudent::score() const { @@ -5653,7 +5760,7 @@ namespace protobuf } inline void MessageOfStudent::_internal_set_score(int32_t value) { - score_ = value; + _impl_.score_ = value; } inline void MessageOfStudent::set_score(int32_t value) { @@ -5664,11 +5771,11 @@ namespace protobuf // int32 treat_progress = 21; inline void MessageOfStudent::clear_treat_progress() { - treat_progress_ = 0; + _impl_.treat_progress_ = 0; } inline int32_t MessageOfStudent::_internal_treat_progress() const { - return treat_progress_; + return _impl_.treat_progress_; } inline int32_t MessageOfStudent::treat_progress() const { @@ -5677,7 +5784,7 @@ namespace protobuf } inline void MessageOfStudent::_internal_set_treat_progress(int32_t value) { - treat_progress_ = value; + _impl_.treat_progress_ = value; } inline void MessageOfStudent::set_treat_progress(int32_t value) { @@ -5688,11 +5795,11 @@ namespace protobuf // int32 rescue_progress = 22; inline void MessageOfStudent::clear_rescue_progress() { - rescue_progress_ = 0; + _impl_.rescue_progress_ = 0; } inline int32_t MessageOfStudent::_internal_rescue_progress() const { - return rescue_progress_; + return _impl_.rescue_progress_; } inline int32_t MessageOfStudent::rescue_progress() const { @@ -5701,7 +5808,7 @@ namespace protobuf } inline void MessageOfStudent::_internal_set_rescue_progress(int32_t value) { - rescue_progress_ = value; + _impl_.rescue_progress_ = value; } inline void MessageOfStudent::set_rescue_progress(int32_t value) { @@ -5712,11 +5819,11 @@ namespace protobuf // .protobuf.StudentType student_type = 23; inline void MessageOfStudent::clear_student_type() { - student_type_ = 0; + _impl_.student_type_ = 0; } inline ::protobuf::StudentType MessageOfStudent::_internal_student_type() const { - return static_cast<::protobuf::StudentType>(student_type_); + return static_cast<::protobuf::StudentType>(_impl_.student_type_); } inline ::protobuf::StudentType MessageOfStudent::student_type() const { @@ -5725,7 +5832,7 @@ namespace protobuf } inline void MessageOfStudent::_internal_set_student_type(::protobuf::StudentType value) { - student_type_ = value; + _impl_.student_type_ = value; } inline void MessageOfStudent::set_student_type(::protobuf::StudentType value) { @@ -5736,11 +5843,11 @@ namespace protobuf // double facing_direction = 24; inline void MessageOfStudent::clear_facing_direction() { - facing_direction_ = 0; + _impl_.facing_direction_ = 0; } inline double MessageOfStudent::_internal_facing_direction() const { - return facing_direction_; + return _impl_.facing_direction_; } inline double MessageOfStudent::facing_direction() const { @@ -5749,7 +5856,7 @@ namespace protobuf } inline void MessageOfStudent::_internal_set_facing_direction(double value) { - facing_direction_ = value; + _impl_.facing_direction_ = value; } inline void MessageOfStudent::set_facing_direction(double value) { @@ -5760,7 +5867,7 @@ namespace protobuf // repeated .protobuf.StudentBuffType buff = 25; inline int MessageOfStudent::_internal_buff_size() const { - return buff_.size(); + return _impl_.buff_.size(); } inline int MessageOfStudent::buff_size() const { @@ -5768,11 +5875,11 @@ namespace protobuf } inline void MessageOfStudent::clear_buff() { - buff_.Clear(); + _impl_.buff_.Clear(); } inline ::protobuf::StudentBuffType MessageOfStudent::_internal_buff(int index) const { - return static_cast<::protobuf::StudentBuffType>(buff_.Get(index)); + return static_cast<::protobuf::StudentBuffType>(_impl_.buff_.Get(index)); } inline ::protobuf::StudentBuffType MessageOfStudent::buff(int index) const { @@ -5781,12 +5888,12 @@ namespace protobuf } inline void MessageOfStudent::set_buff(int index, ::protobuf::StudentBuffType value) { - buff_.Set(index, value); + _impl_.buff_.Set(index, value); // @@protoc_insertion_point(field_set:protobuf.MessageOfStudent.buff) } inline void MessageOfStudent::_internal_add_buff(::protobuf::StudentBuffType value) { - buff_.Add(value); + _impl_.buff_.Add(value); } inline void MessageOfStudent::add_buff(::protobuf::StudentBuffType value) { @@ -5797,12 +5904,12 @@ namespace protobuf MessageOfStudent::buff() const { // @@protoc_insertion_point(field_list:protobuf.MessageOfStudent.buff) - return buff_; + return _impl_.buff_; } inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* MessageOfStudent::_internal_mutable_buff() { - return &buff_; + return &_impl_.buff_; } inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* MessageOfStudent::mutable_buff() @@ -5818,11 +5925,11 @@ namespace protobuf // int32 x = 1; inline void MessageOfTricker::clear_x() { - x_ = 0; + _impl_.x_ = 0; } inline int32_t MessageOfTricker::_internal_x() const { - return x_; + return _impl_.x_; } inline int32_t MessageOfTricker::x() const { @@ -5831,7 +5938,7 @@ namespace protobuf } inline void MessageOfTricker::_internal_set_x(int32_t value) { - x_ = value; + _impl_.x_ = value; } inline void MessageOfTricker::set_x(int32_t value) { @@ -5842,11 +5949,11 @@ namespace protobuf // int32 y = 2; inline void MessageOfTricker::clear_y() { - y_ = 0; + _impl_.y_ = 0; } inline int32_t MessageOfTricker::_internal_y() const { - return y_; + return _impl_.y_; } inline int32_t MessageOfTricker::y() const { @@ -5855,7 +5962,7 @@ namespace protobuf } inline void MessageOfTricker::_internal_set_y(int32_t value) { - y_ = value; + _impl_.y_ = value; } inline void MessageOfTricker::set_y(int32_t value) { @@ -5866,11 +5973,11 @@ namespace protobuf // int32 speed = 3; inline void MessageOfTricker::clear_speed() { - speed_ = 0; + _impl_.speed_ = 0; } inline int32_t MessageOfTricker::_internal_speed() const { - return speed_; + return _impl_.speed_; } inline int32_t MessageOfTricker::speed() const { @@ -5879,7 +5986,7 @@ namespace protobuf } inline void MessageOfTricker::_internal_set_speed(int32_t value) { - speed_ = value; + _impl_.speed_ = value; } inline void MessageOfTricker::set_speed(int32_t value) { @@ -5890,7 +5997,7 @@ namespace protobuf // repeated double time_until_skill_available = 5; inline int MessageOfTricker::_internal_time_until_skill_available_size() const { - return time_until_skill_available_.size(); + return _impl_.time_until_skill_available_.size(); } inline int MessageOfTricker::time_until_skill_available_size() const { @@ -5898,11 +6005,11 @@ namespace protobuf } inline void MessageOfTricker::clear_time_until_skill_available() { - time_until_skill_available_.Clear(); + _impl_.time_until_skill_available_.Clear(); } inline double MessageOfTricker::_internal_time_until_skill_available(int index) const { - return time_until_skill_available_.Get(index); + return _impl_.time_until_skill_available_.Get(index); } inline double MessageOfTricker::time_until_skill_available(int index) const { @@ -5911,12 +6018,12 @@ namespace protobuf } inline void MessageOfTricker::set_time_until_skill_available(int index, double value) { - time_until_skill_available_.Set(index, value); + _impl_.time_until_skill_available_.Set(index, value); // @@protoc_insertion_point(field_set:protobuf.MessageOfTricker.time_until_skill_available) } inline void MessageOfTricker::_internal_add_time_until_skill_available(double value) { - time_until_skill_available_.Add(value); + _impl_.time_until_skill_available_.Add(value); } inline void MessageOfTricker::add_time_until_skill_available(double value) { @@ -5926,7 +6033,7 @@ namespace protobuf inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField& MessageOfTricker::_internal_time_until_skill_available() const { - return time_until_skill_available_; + return _impl_.time_until_skill_available_; } inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField& MessageOfTricker::time_until_skill_available() const @@ -5937,7 +6044,7 @@ namespace protobuf inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* MessageOfTricker::_internal_mutable_time_until_skill_available() { - return &time_until_skill_available_; + return &_impl_.time_until_skill_available_; } inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* MessageOfTricker::mutable_time_until_skill_available() @@ -5949,11 +6056,11 @@ namespace protobuf // .protobuf.PlaceType place = 6; inline void MessageOfTricker::clear_place() { - place_ = 0; + _impl_.place_ = 0; } inline ::protobuf::PlaceType MessageOfTricker::_internal_place() const { - return static_cast<::protobuf::PlaceType>(place_); + return static_cast<::protobuf::PlaceType>(_impl_.place_); } inline ::protobuf::PlaceType MessageOfTricker::place() const { @@ -5962,7 +6069,7 @@ namespace protobuf } inline void MessageOfTricker::_internal_set_place(::protobuf::PlaceType value) { - place_ = value; + _impl_.place_ = value; } inline void MessageOfTricker::set_place(::protobuf::PlaceType value) { @@ -5973,7 +6080,7 @@ namespace protobuf // repeated .protobuf.PropType prop = 7; inline int MessageOfTricker::_internal_prop_size() const { - return prop_.size(); + return _impl_.prop_.size(); } inline int MessageOfTricker::prop_size() const { @@ -5981,11 +6088,11 @@ namespace protobuf } inline void MessageOfTricker::clear_prop() { - prop_.Clear(); + _impl_.prop_.Clear(); } inline ::protobuf::PropType MessageOfTricker::_internal_prop(int index) const { - return static_cast<::protobuf::PropType>(prop_.Get(index)); + return static_cast<::protobuf::PropType>(_impl_.prop_.Get(index)); } inline ::protobuf::PropType MessageOfTricker::prop(int index) const { @@ -5994,12 +6101,12 @@ namespace protobuf } inline void MessageOfTricker::set_prop(int index, ::protobuf::PropType value) { - prop_.Set(index, value); + _impl_.prop_.Set(index, value); // @@protoc_insertion_point(field_set:protobuf.MessageOfTricker.prop) } inline void MessageOfTricker::_internal_add_prop(::protobuf::PropType value) { - prop_.Add(value); + _impl_.prop_.Add(value); } inline void MessageOfTricker::add_prop(::protobuf::PropType value) { @@ -6010,12 +6117,12 @@ namespace protobuf MessageOfTricker::prop() const { // @@protoc_insertion_point(field_list:protobuf.MessageOfTricker.prop) - return prop_; + return _impl_.prop_; } inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* MessageOfTricker::_internal_mutable_prop() { - return &prop_; + return &_impl_.prop_; } inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* MessageOfTricker::mutable_prop() @@ -6027,11 +6134,11 @@ namespace protobuf // .protobuf.TrickerType tricker_type = 8; inline void MessageOfTricker::clear_tricker_type() { - tricker_type_ = 0; + _impl_.tricker_type_ = 0; } inline ::protobuf::TrickerType MessageOfTricker::_internal_tricker_type() const { - return static_cast<::protobuf::TrickerType>(tricker_type_); + return static_cast<::protobuf::TrickerType>(_impl_.tricker_type_); } inline ::protobuf::TrickerType MessageOfTricker::tricker_type() const { @@ -6040,7 +6147,7 @@ namespace protobuf } inline void MessageOfTricker::_internal_set_tricker_type(::protobuf::TrickerType value) { - tricker_type_ = value; + _impl_.tricker_type_ = value; } inline void MessageOfTricker::set_tricker_type(::protobuf::TrickerType value) { @@ -6051,11 +6158,11 @@ namespace protobuf // int64 guid = 9; inline void MessageOfTricker::clear_guid() { - guid_ = int64_t{0}; + _impl_.guid_ = int64_t{0}; } inline int64_t MessageOfTricker::_internal_guid() const { - return guid_; + return _impl_.guid_; } inline int64_t MessageOfTricker::guid() const { @@ -6064,7 +6171,7 @@ namespace protobuf } inline void MessageOfTricker::_internal_set_guid(int64_t value) { - guid_ = value; + _impl_.guid_ = value; } inline void MessageOfTricker::set_guid(int64_t value) { @@ -6075,11 +6182,11 @@ namespace protobuf // int32 score = 10; inline void MessageOfTricker::clear_score() { - score_ = 0; + _impl_.score_ = 0; } inline int32_t MessageOfTricker::_internal_score() const { - return score_; + return _impl_.score_; } inline int32_t MessageOfTricker::score() const { @@ -6088,7 +6195,7 @@ namespace protobuf } inline void MessageOfTricker::_internal_set_score(int32_t value) { - score_ = value; + _impl_.score_ = value; } inline void MessageOfTricker::set_score(int32_t value) { @@ -6099,11 +6206,11 @@ namespace protobuf // int64 player_id = 11; inline void MessageOfTricker::clear_player_id() { - player_id_ = int64_t{0}; + _impl_.player_id_ = int64_t{0}; } inline int64_t MessageOfTricker::_internal_player_id() const { - return player_id_; + return _impl_.player_id_; } inline int64_t MessageOfTricker::player_id() const { @@ -6112,7 +6219,7 @@ namespace protobuf } inline void MessageOfTricker::_internal_set_player_id(int64_t value) { - player_id_ = value; + _impl_.player_id_ = value; } inline void MessageOfTricker::set_player_id(int64_t value) { @@ -6123,11 +6230,11 @@ namespace protobuf // int32 view_range = 12; inline void MessageOfTricker::clear_view_range() { - view_range_ = 0; + _impl_.view_range_ = 0; } inline int32_t MessageOfTricker::_internal_view_range() const { - return view_range_; + return _impl_.view_range_; } inline int32_t MessageOfTricker::view_range() const { @@ -6136,7 +6243,7 @@ namespace protobuf } inline void MessageOfTricker::_internal_set_view_range(int32_t value) { - view_range_ = value; + _impl_.view_range_ = value; } inline void MessageOfTricker::set_view_range(int32_t value) { @@ -6147,11 +6254,11 @@ namespace protobuf // int32 radius = 13; inline void MessageOfTricker::clear_radius() { - radius_ = 0; + _impl_.radius_ = 0; } inline int32_t MessageOfTricker::_internal_radius() const { - return radius_; + return _impl_.radius_; } inline int32_t MessageOfTricker::radius() const { @@ -6160,7 +6267,7 @@ namespace protobuf } inline void MessageOfTricker::_internal_set_radius(int32_t value) { - radius_ = value; + _impl_.radius_ = value; } inline void MessageOfTricker::set_radius(int32_t value) { @@ -6171,11 +6278,11 @@ namespace protobuf // .protobuf.PlayerState player_state = 14; inline void MessageOfTricker::clear_player_state() { - player_state_ = 0; + _impl_.player_state_ = 0; } inline ::protobuf::PlayerState MessageOfTricker::_internal_player_state() const { - return static_cast<::protobuf::PlayerState>(player_state_); + return static_cast<::protobuf::PlayerState>(_impl_.player_state_); } inline ::protobuf::PlayerState MessageOfTricker::player_state() const { @@ -6184,7 +6291,7 @@ namespace protobuf } inline void MessageOfTricker::_internal_set_player_state(::protobuf::PlayerState value) { - player_state_ = value; + _impl_.player_state_ = value; } inline void MessageOfTricker::set_player_state(::protobuf::PlayerState value) { @@ -6195,11 +6302,11 @@ namespace protobuf // double trick_desire = 15; inline void MessageOfTricker::clear_trick_desire() { - trick_desire_ = 0; + _impl_.trick_desire_ = 0; } inline double MessageOfTricker::_internal_trick_desire() const { - return trick_desire_; + return _impl_.trick_desire_; } inline double MessageOfTricker::trick_desire() const { @@ -6208,7 +6315,7 @@ namespace protobuf } inline void MessageOfTricker::_internal_set_trick_desire(double value) { - trick_desire_ = value; + _impl_.trick_desire_ = value; } inline void MessageOfTricker::set_trick_desire(double value) { @@ -6219,11 +6326,11 @@ namespace protobuf // double class_volume = 16; inline void MessageOfTricker::clear_class_volume() { - class_volume_ = 0; + _impl_.class_volume_ = 0; } inline double MessageOfTricker::_internal_class_volume() const { - return class_volume_; + return _impl_.class_volume_; } inline double MessageOfTricker::class_volume() const { @@ -6232,7 +6339,7 @@ namespace protobuf } inline void MessageOfTricker::_internal_set_class_volume(double value) { - class_volume_ = value; + _impl_.class_volume_ = value; } inline void MessageOfTricker::set_class_volume(double value) { @@ -6243,11 +6350,11 @@ namespace protobuf // double facing_direction = 17; inline void MessageOfTricker::clear_facing_direction() { - facing_direction_ = 0; + _impl_.facing_direction_ = 0; } inline double MessageOfTricker::_internal_facing_direction() const { - return facing_direction_; + return _impl_.facing_direction_; } inline double MessageOfTricker::facing_direction() const { @@ -6256,7 +6363,7 @@ namespace protobuf } inline void MessageOfTricker::_internal_set_facing_direction(double value) { - facing_direction_ = value; + _impl_.facing_direction_ = value; } inline void MessageOfTricker::set_facing_direction(double value) { @@ -6267,11 +6374,11 @@ namespace protobuf // .protobuf.BulletType bullet_type = 18; inline void MessageOfTricker::clear_bullet_type() { - bullet_type_ = 0; + _impl_.bullet_type_ = 0; } inline ::protobuf::BulletType MessageOfTricker::_internal_bullet_type() const { - return static_cast<::protobuf::BulletType>(bullet_type_); + return static_cast<::protobuf::BulletType>(_impl_.bullet_type_); } inline ::protobuf::BulletType MessageOfTricker::bullet_type() const { @@ -6280,7 +6387,7 @@ namespace protobuf } inline void MessageOfTricker::_internal_set_bullet_type(::protobuf::BulletType value) { - bullet_type_ = value; + _impl_.bullet_type_ = value; } inline void MessageOfTricker::set_bullet_type(::protobuf::BulletType value) { @@ -6291,7 +6398,7 @@ namespace protobuf // repeated .protobuf.TrickerBuffType buff = 19; inline int MessageOfTricker::_internal_buff_size() const { - return buff_.size(); + return _impl_.buff_.size(); } inline int MessageOfTricker::buff_size() const { @@ -6299,11 +6406,11 @@ namespace protobuf } inline void MessageOfTricker::clear_buff() { - buff_.Clear(); + _impl_.buff_.Clear(); } inline ::protobuf::TrickerBuffType MessageOfTricker::_internal_buff(int index) const { - return static_cast<::protobuf::TrickerBuffType>(buff_.Get(index)); + return static_cast<::protobuf::TrickerBuffType>(_impl_.buff_.Get(index)); } inline ::protobuf::TrickerBuffType MessageOfTricker::buff(int index) const { @@ -6312,12 +6419,12 @@ namespace protobuf } inline void MessageOfTricker::set_buff(int index, ::protobuf::TrickerBuffType value) { - buff_.Set(index, value); + _impl_.buff_.Set(index, value); // @@protoc_insertion_point(field_set:protobuf.MessageOfTricker.buff) } inline void MessageOfTricker::_internal_add_buff(::protobuf::TrickerBuffType value) { - buff_.Add(value); + _impl_.buff_.Add(value); } inline void MessageOfTricker::add_buff(::protobuf::TrickerBuffType value) { @@ -6328,12 +6435,12 @@ namespace protobuf MessageOfTricker::buff() const { // @@protoc_insertion_point(field_list:protobuf.MessageOfTricker.buff) - return buff_; + return _impl_.buff_; } inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* MessageOfTricker::_internal_mutable_buff() { - return &buff_; + return &_impl_.buff_; } inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* MessageOfTricker::mutable_buff() @@ -6349,11 +6456,11 @@ namespace protobuf // .protobuf.BulletType type = 1; inline void MessageOfBullet::clear_type() { - type_ = 0; + _impl_.type_ = 0; } inline ::protobuf::BulletType MessageOfBullet::_internal_type() const { - return static_cast<::protobuf::BulletType>(type_); + return static_cast<::protobuf::BulletType>(_impl_.type_); } inline ::protobuf::BulletType MessageOfBullet::type() const { @@ -6362,7 +6469,7 @@ namespace protobuf } inline void MessageOfBullet::_internal_set_type(::protobuf::BulletType value) { - type_ = value; + _impl_.type_ = value; } inline void MessageOfBullet::set_type(::protobuf::BulletType value) { @@ -6373,11 +6480,11 @@ namespace protobuf // int32 x = 2; inline void MessageOfBullet::clear_x() { - x_ = 0; + _impl_.x_ = 0; } inline int32_t MessageOfBullet::_internal_x() const { - return x_; + return _impl_.x_; } inline int32_t MessageOfBullet::x() const { @@ -6386,7 +6493,7 @@ namespace protobuf } inline void MessageOfBullet::_internal_set_x(int32_t value) { - x_ = value; + _impl_.x_ = value; } inline void MessageOfBullet::set_x(int32_t value) { @@ -6397,11 +6504,11 @@ namespace protobuf // int32 y = 3; inline void MessageOfBullet::clear_y() { - y_ = 0; + _impl_.y_ = 0; } inline int32_t MessageOfBullet::_internal_y() const { - return y_; + return _impl_.y_; } inline int32_t MessageOfBullet::y() const { @@ -6410,7 +6517,7 @@ namespace protobuf } inline void MessageOfBullet::_internal_set_y(int32_t value) { - y_ = value; + _impl_.y_ = value; } inline void MessageOfBullet::set_y(int32_t value) { @@ -6421,11 +6528,11 @@ namespace protobuf // double facing_direction = 4; inline void MessageOfBullet::clear_facing_direction() { - facing_direction_ = 0; + _impl_.facing_direction_ = 0; } inline double MessageOfBullet::_internal_facing_direction() const { - return facing_direction_; + return _impl_.facing_direction_; } inline double MessageOfBullet::facing_direction() const { @@ -6434,7 +6541,7 @@ namespace protobuf } inline void MessageOfBullet::_internal_set_facing_direction(double value) { - facing_direction_ = value; + _impl_.facing_direction_ = value; } inline void MessageOfBullet::set_facing_direction(double value) { @@ -6445,11 +6552,11 @@ namespace protobuf // int64 guid = 5; inline void MessageOfBullet::clear_guid() { - guid_ = int64_t{0}; + _impl_.guid_ = int64_t{0}; } inline int64_t MessageOfBullet::_internal_guid() const { - return guid_; + return _impl_.guid_; } inline int64_t MessageOfBullet::guid() const { @@ -6458,7 +6565,7 @@ namespace protobuf } inline void MessageOfBullet::_internal_set_guid(int64_t value) { - guid_ = value; + _impl_.guid_ = value; } inline void MessageOfBullet::set_guid(int64_t value) { @@ -6469,11 +6576,11 @@ namespace protobuf // .protobuf.PlayerType team = 6; inline void MessageOfBullet::clear_team() { - team_ = 0; + _impl_.team_ = 0; } inline ::protobuf::PlayerType MessageOfBullet::_internal_team() const { - return static_cast<::protobuf::PlayerType>(team_); + return static_cast<::protobuf::PlayerType>(_impl_.team_); } inline ::protobuf::PlayerType MessageOfBullet::team() const { @@ -6482,7 +6589,7 @@ namespace protobuf } inline void MessageOfBullet::_internal_set_team(::protobuf::PlayerType value) { - team_ = value; + _impl_.team_ = value; } inline void MessageOfBullet::set_team(::protobuf::PlayerType value) { @@ -6493,11 +6600,11 @@ namespace protobuf // .protobuf.PlaceType place = 7; inline void MessageOfBullet::clear_place() { - place_ = 0; + _impl_.place_ = 0; } inline ::protobuf::PlaceType MessageOfBullet::_internal_place() const { - return static_cast<::protobuf::PlaceType>(place_); + return static_cast<::protobuf::PlaceType>(_impl_.place_); } inline ::protobuf::PlaceType MessageOfBullet::place() const { @@ -6506,7 +6613,7 @@ namespace protobuf } inline void MessageOfBullet::_internal_set_place(::protobuf::PlaceType value) { - place_ = value; + _impl_.place_ = value; } inline void MessageOfBullet::set_place(::protobuf::PlaceType value) { @@ -6517,11 +6624,11 @@ namespace protobuf // double bomb_range = 8; inline void MessageOfBullet::clear_bomb_range() { - bomb_range_ = 0; + _impl_.bomb_range_ = 0; } inline double MessageOfBullet::_internal_bomb_range() const { - return bomb_range_; + return _impl_.bomb_range_; } inline double MessageOfBullet::bomb_range() const { @@ -6530,7 +6637,7 @@ namespace protobuf } inline void MessageOfBullet::_internal_set_bomb_range(double value) { - bomb_range_ = value; + _impl_.bomb_range_ = value; } inline void MessageOfBullet::set_bomb_range(double value) { @@ -6541,11 +6648,11 @@ namespace protobuf // int32 speed = 9; inline void MessageOfBullet::clear_speed() { - speed_ = 0; + _impl_.speed_ = 0; } inline int32_t MessageOfBullet::_internal_speed() const { - return speed_; + return _impl_.speed_; } inline int32_t MessageOfBullet::speed() const { @@ -6554,7 +6661,7 @@ namespace protobuf } inline void MessageOfBullet::_internal_set_speed(int32_t value) { - speed_ = value; + _impl_.speed_ = value; } inline void MessageOfBullet::set_speed(int32_t value) { @@ -6569,11 +6676,11 @@ namespace protobuf // .protobuf.BulletType type = 1; inline void MessageOfBombedBullet::clear_type() { - type_ = 0; + _impl_.type_ = 0; } inline ::protobuf::BulletType MessageOfBombedBullet::_internal_type() const { - return static_cast<::protobuf::BulletType>(type_); + return static_cast<::protobuf::BulletType>(_impl_.type_); } inline ::protobuf::BulletType MessageOfBombedBullet::type() const { @@ -6582,7 +6689,7 @@ namespace protobuf } inline void MessageOfBombedBullet::_internal_set_type(::protobuf::BulletType value) { - type_ = value; + _impl_.type_ = value; } inline void MessageOfBombedBullet::set_type(::protobuf::BulletType value) { @@ -6593,11 +6700,11 @@ namespace protobuf // int32 x = 2; inline void MessageOfBombedBullet::clear_x() { - x_ = 0; + _impl_.x_ = 0; } inline int32_t MessageOfBombedBullet::_internal_x() const { - return x_; + return _impl_.x_; } inline int32_t MessageOfBombedBullet::x() const { @@ -6606,7 +6713,7 @@ namespace protobuf } inline void MessageOfBombedBullet::_internal_set_x(int32_t value) { - x_ = value; + _impl_.x_ = value; } inline void MessageOfBombedBullet::set_x(int32_t value) { @@ -6617,11 +6724,11 @@ namespace protobuf // int32 y = 3; inline void MessageOfBombedBullet::clear_y() { - y_ = 0; + _impl_.y_ = 0; } inline int32_t MessageOfBombedBullet::_internal_y() const { - return y_; + return _impl_.y_; } inline int32_t MessageOfBombedBullet::y() const { @@ -6630,7 +6737,7 @@ namespace protobuf } inline void MessageOfBombedBullet::_internal_set_y(int32_t value) { - y_ = value; + _impl_.y_ = value; } inline void MessageOfBombedBullet::set_y(int32_t value) { @@ -6641,11 +6748,11 @@ namespace protobuf // double facing_direction = 4; inline void MessageOfBombedBullet::clear_facing_direction() { - facing_direction_ = 0; + _impl_.facing_direction_ = 0; } inline double MessageOfBombedBullet::_internal_facing_direction() const { - return facing_direction_; + return _impl_.facing_direction_; } inline double MessageOfBombedBullet::facing_direction() const { @@ -6654,7 +6761,7 @@ namespace protobuf } inline void MessageOfBombedBullet::_internal_set_facing_direction(double value) { - facing_direction_ = value; + _impl_.facing_direction_ = value; } inline void MessageOfBombedBullet::set_facing_direction(double value) { @@ -6665,11 +6772,11 @@ namespace protobuf // int64 mapping_id = 5; inline void MessageOfBombedBullet::clear_mapping_id() { - mapping_id_ = int64_t{0}; + _impl_.mapping_id_ = int64_t{0}; } inline int64_t MessageOfBombedBullet::_internal_mapping_id() const { - return mapping_id_; + return _impl_.mapping_id_; } inline int64_t MessageOfBombedBullet::mapping_id() const { @@ -6678,7 +6785,7 @@ namespace protobuf } inline void MessageOfBombedBullet::_internal_set_mapping_id(int64_t value) { - mapping_id_ = value; + _impl_.mapping_id_ = value; } inline void MessageOfBombedBullet::set_mapping_id(int64_t value) { @@ -6689,11 +6796,11 @@ namespace protobuf // double bomb_range = 6; inline void MessageOfBombedBullet::clear_bomb_range() { - bomb_range_ = 0; + _impl_.bomb_range_ = 0; } inline double MessageOfBombedBullet::_internal_bomb_range() const { - return bomb_range_; + return _impl_.bomb_range_; } inline double MessageOfBombedBullet::bomb_range() const { @@ -6702,7 +6809,7 @@ namespace protobuf } inline void MessageOfBombedBullet::_internal_set_bomb_range(double value) { - bomb_range_ = value; + _impl_.bomb_range_ = value; } inline void MessageOfBombedBullet::set_bomb_range(double value) { @@ -6717,11 +6824,11 @@ namespace protobuf // .protobuf.PropType type = 1; inline void MessageOfProp::clear_type() { - type_ = 0; + _impl_.type_ = 0; } inline ::protobuf::PropType MessageOfProp::_internal_type() const { - return static_cast<::protobuf::PropType>(type_); + return static_cast<::protobuf::PropType>(_impl_.type_); } inline ::protobuf::PropType MessageOfProp::type() const { @@ -6730,7 +6837,7 @@ namespace protobuf } inline void MessageOfProp::_internal_set_type(::protobuf::PropType value) { - type_ = value; + _impl_.type_ = value; } inline void MessageOfProp::set_type(::protobuf::PropType value) { @@ -6741,11 +6848,11 @@ namespace protobuf // int32 x = 2; inline void MessageOfProp::clear_x() { - x_ = 0; + _impl_.x_ = 0; } inline int32_t MessageOfProp::_internal_x() const { - return x_; + return _impl_.x_; } inline int32_t MessageOfProp::x() const { @@ -6754,7 +6861,7 @@ namespace protobuf } inline void MessageOfProp::_internal_set_x(int32_t value) { - x_ = value; + _impl_.x_ = value; } inline void MessageOfProp::set_x(int32_t value) { @@ -6765,11 +6872,11 @@ namespace protobuf // int32 y = 3; inline void MessageOfProp::clear_y() { - y_ = 0; + _impl_.y_ = 0; } inline int32_t MessageOfProp::_internal_y() const { - return y_; + return _impl_.y_; } inline int32_t MessageOfProp::y() const { @@ -6778,7 +6885,7 @@ namespace protobuf } inline void MessageOfProp::_internal_set_y(int32_t value) { - y_ = value; + _impl_.y_ = value; } inline void MessageOfProp::set_y(int32_t value) { @@ -6789,11 +6896,11 @@ namespace protobuf // double facing_direction = 4; inline void MessageOfProp::clear_facing_direction() { - facing_direction_ = 0; + _impl_.facing_direction_ = 0; } inline double MessageOfProp::_internal_facing_direction() const { - return facing_direction_; + return _impl_.facing_direction_; } inline double MessageOfProp::facing_direction() const { @@ -6802,7 +6909,7 @@ namespace protobuf } inline void MessageOfProp::_internal_set_facing_direction(double value) { - facing_direction_ = value; + _impl_.facing_direction_ = value; } inline void MessageOfProp::set_facing_direction(double value) { @@ -6813,11 +6920,11 @@ namespace protobuf // int64 guid = 5; inline void MessageOfProp::clear_guid() { - guid_ = int64_t{0}; + _impl_.guid_ = int64_t{0}; } inline int64_t MessageOfProp::_internal_guid() const { - return guid_; + return _impl_.guid_; } inline int64_t MessageOfProp::guid() const { @@ -6826,7 +6933,7 @@ namespace protobuf } inline void MessageOfProp::_internal_set_guid(int64_t value) { - guid_ = value; + _impl_.guid_ = value; } inline void MessageOfProp::set_guid(int64_t value) { @@ -6837,11 +6944,11 @@ namespace protobuf // .protobuf.PlaceType place = 6; inline void MessageOfProp::clear_place() { - place_ = 0; + _impl_.place_ = 0; } inline ::protobuf::PlaceType MessageOfProp::_internal_place() const { - return static_cast<::protobuf::PlaceType>(place_); + return static_cast<::protobuf::PlaceType>(_impl_.place_); } inline ::protobuf::PlaceType MessageOfProp::place() const { @@ -6850,7 +6957,7 @@ namespace protobuf } inline void MessageOfProp::_internal_set_place(::protobuf::PlaceType value) { - place_ = value; + _impl_.place_ = value; } inline void MessageOfProp::set_place(::protobuf::PlaceType value) { @@ -6865,11 +6972,11 @@ namespace protobuf // .protobuf.PropType type = 1; inline void MessageOfPickedProp::clear_type() { - type_ = 0; + _impl_.type_ = 0; } inline ::protobuf::PropType MessageOfPickedProp::_internal_type() const { - return static_cast<::protobuf::PropType>(type_); + return static_cast<::protobuf::PropType>(_impl_.type_); } inline ::protobuf::PropType MessageOfPickedProp::type() const { @@ -6878,7 +6985,7 @@ namespace protobuf } inline void MessageOfPickedProp::_internal_set_type(::protobuf::PropType value) { - type_ = value; + _impl_.type_ = value; } inline void MessageOfPickedProp::set_type(::protobuf::PropType value) { @@ -6889,11 +6996,11 @@ namespace protobuf // int32 x = 2; inline void MessageOfPickedProp::clear_x() { - x_ = 0; + _impl_.x_ = 0; } inline int32_t MessageOfPickedProp::_internal_x() const { - return x_; + return _impl_.x_; } inline int32_t MessageOfPickedProp::x() const { @@ -6902,7 +7009,7 @@ namespace protobuf } inline void MessageOfPickedProp::_internal_set_x(int32_t value) { - x_ = value; + _impl_.x_ = value; } inline void MessageOfPickedProp::set_x(int32_t value) { @@ -6913,11 +7020,11 @@ namespace protobuf // int32 y = 3; inline void MessageOfPickedProp::clear_y() { - y_ = 0; + _impl_.y_ = 0; } inline int32_t MessageOfPickedProp::_internal_y() const { - return y_; + return _impl_.y_; } inline int32_t MessageOfPickedProp::y() const { @@ -6926,7 +7033,7 @@ namespace protobuf } inline void MessageOfPickedProp::_internal_set_y(int32_t value) { - y_ = value; + _impl_.y_ = value; } inline void MessageOfPickedProp::set_y(int32_t value) { @@ -6937,11 +7044,11 @@ namespace protobuf // double facing_direction = 4; inline void MessageOfPickedProp::clear_facing_direction() { - facing_direction_ = 0; + _impl_.facing_direction_ = 0; } inline double MessageOfPickedProp::_internal_facing_direction() const { - return facing_direction_; + return _impl_.facing_direction_; } inline double MessageOfPickedProp::facing_direction() const { @@ -6950,7 +7057,7 @@ namespace protobuf } inline void MessageOfPickedProp::_internal_set_facing_direction(double value) { - facing_direction_ = value; + _impl_.facing_direction_ = value; } inline void MessageOfPickedProp::set_facing_direction(double value) { @@ -6961,11 +7068,11 @@ namespace protobuf // int64 mapping_id = 5; inline void MessageOfPickedProp::clear_mapping_id() { - mapping_id_ = int64_t{0}; + _impl_.mapping_id_ = int64_t{0}; } inline int64_t MessageOfPickedProp::_internal_mapping_id() const { - return mapping_id_; + return _impl_.mapping_id_; } inline int64_t MessageOfPickedProp::mapping_id() const { @@ -6974,7 +7081,7 @@ namespace protobuf } inline void MessageOfPickedProp::_internal_set_mapping_id(int64_t value) { - mapping_id_ = value; + _impl_.mapping_id_ = value; } inline void MessageOfPickedProp::set_mapping_id(int64_t value) { @@ -6989,11 +7096,11 @@ namespace protobuf // int32 x = 1; inline void MessageOfClassroom::clear_x() { - x_ = 0; + _impl_.x_ = 0; } inline int32_t MessageOfClassroom::_internal_x() const { - return x_; + return _impl_.x_; } inline int32_t MessageOfClassroom::x() const { @@ -7002,7 +7109,7 @@ namespace protobuf } inline void MessageOfClassroom::_internal_set_x(int32_t value) { - x_ = value; + _impl_.x_ = value; } inline void MessageOfClassroom::set_x(int32_t value) { @@ -7013,11 +7120,11 @@ namespace protobuf // int32 y = 2; inline void MessageOfClassroom::clear_y() { - y_ = 0; + _impl_.y_ = 0; } inline int32_t MessageOfClassroom::_internal_y() const { - return y_; + return _impl_.y_; } inline int32_t MessageOfClassroom::y() const { @@ -7026,7 +7133,7 @@ namespace protobuf } inline void MessageOfClassroom::_internal_set_y(int32_t value) { - y_ = value; + _impl_.y_ = value; } inline void MessageOfClassroom::set_y(int32_t value) { @@ -7037,11 +7144,11 @@ namespace protobuf // int32 progress = 3; inline void MessageOfClassroom::clear_progress() { - progress_ = 0; + _impl_.progress_ = 0; } inline int32_t MessageOfClassroom::_internal_progress() const { - return progress_; + return _impl_.progress_; } inline int32_t MessageOfClassroom::progress() const { @@ -7050,7 +7157,7 @@ namespace protobuf } inline void MessageOfClassroom::_internal_set_progress(int32_t value) { - progress_ = value; + _impl_.progress_ = value; } inline void MessageOfClassroom::set_progress(int32_t value) { @@ -7065,11 +7172,11 @@ namespace protobuf // int32 x = 1; inline void MessageOfGate::clear_x() { - x_ = 0; + _impl_.x_ = 0; } inline int32_t MessageOfGate::_internal_x() const { - return x_; + return _impl_.x_; } inline int32_t MessageOfGate::x() const { @@ -7078,7 +7185,7 @@ namespace protobuf } inline void MessageOfGate::_internal_set_x(int32_t value) { - x_ = value; + _impl_.x_ = value; } inline void MessageOfGate::set_x(int32_t value) { @@ -7089,11 +7196,11 @@ namespace protobuf // int32 y = 2; inline void MessageOfGate::clear_y() { - y_ = 0; + _impl_.y_ = 0; } inline int32_t MessageOfGate::_internal_y() const { - return y_; + return _impl_.y_; } inline int32_t MessageOfGate::y() const { @@ -7102,7 +7209,7 @@ namespace protobuf } inline void MessageOfGate::_internal_set_y(int32_t value) { - y_ = value; + _impl_.y_ = value; } inline void MessageOfGate::set_y(int32_t value) { @@ -7113,11 +7220,11 @@ namespace protobuf // int32 progress = 3; inline void MessageOfGate::clear_progress() { - progress_ = 0; + _impl_.progress_ = 0; } inline int32_t MessageOfGate::_internal_progress() const { - return progress_; + return _impl_.progress_; } inline int32_t MessageOfGate::progress() const { @@ -7126,7 +7233,7 @@ namespace protobuf } inline void MessageOfGate::_internal_set_progress(int32_t value) { - progress_ = value; + _impl_.progress_ = value; } inline void MessageOfGate::set_progress(int32_t value) { @@ -7141,11 +7248,11 @@ namespace protobuf // int32 x = 1; inline void MessageOfHiddenGate::clear_x() { - x_ = 0; + _impl_.x_ = 0; } inline int32_t MessageOfHiddenGate::_internal_x() const { - return x_; + return _impl_.x_; } inline int32_t MessageOfHiddenGate::x() const { @@ -7154,7 +7261,7 @@ namespace protobuf } inline void MessageOfHiddenGate::_internal_set_x(int32_t value) { - x_ = value; + _impl_.x_ = value; } inline void MessageOfHiddenGate::set_x(int32_t value) { @@ -7165,11 +7272,11 @@ namespace protobuf // int32 y = 2; inline void MessageOfHiddenGate::clear_y() { - y_ = 0; + _impl_.y_ = 0; } inline int32_t MessageOfHiddenGate::_internal_y() const { - return y_; + return _impl_.y_; } inline int32_t MessageOfHiddenGate::y() const { @@ -7178,7 +7285,7 @@ namespace protobuf } inline void MessageOfHiddenGate::_internal_set_y(int32_t value) { - y_ = value; + _impl_.y_ = value; } inline void MessageOfHiddenGate::set_y(int32_t value) { @@ -7189,11 +7296,11 @@ namespace protobuf // bool opened = 3; inline void MessageOfHiddenGate::clear_opened() { - opened_ = false; + _impl_.opened_ = false; } inline bool MessageOfHiddenGate::_internal_opened() const { - return opened_; + return _impl_.opened_; } inline bool MessageOfHiddenGate::opened() const { @@ -7202,7 +7309,7 @@ namespace protobuf } inline void MessageOfHiddenGate::_internal_set_opened(bool value) { - opened_ = value; + _impl_.opened_ = value; } inline void MessageOfHiddenGate::set_opened(bool value) { @@ -7217,11 +7324,11 @@ namespace protobuf // int32 x = 1; inline void MessageOfDoor::clear_x() { - x_ = 0; + _impl_.x_ = 0; } inline int32_t MessageOfDoor::_internal_x() const { - return x_; + return _impl_.x_; } inline int32_t MessageOfDoor::x() const { @@ -7230,7 +7337,7 @@ namespace protobuf } inline void MessageOfDoor::_internal_set_x(int32_t value) { - x_ = value; + _impl_.x_ = value; } inline void MessageOfDoor::set_x(int32_t value) { @@ -7241,11 +7348,11 @@ namespace protobuf // int32 y = 2; inline void MessageOfDoor::clear_y() { - y_ = 0; + _impl_.y_ = 0; } inline int32_t MessageOfDoor::_internal_y() const { - return y_; + return _impl_.y_; } inline int32_t MessageOfDoor::y() const { @@ -7254,7 +7361,7 @@ namespace protobuf } inline void MessageOfDoor::_internal_set_y(int32_t value) { - y_ = value; + _impl_.y_ = value; } inline void MessageOfDoor::set_y(int32_t value) { @@ -7265,11 +7372,11 @@ namespace protobuf // bool is_open = 3; inline void MessageOfDoor::clear_is_open() { - is_open_ = false; + _impl_.is_open_ = false; } inline bool MessageOfDoor::_internal_is_open() const { - return is_open_; + return _impl_.is_open_; } inline bool MessageOfDoor::is_open() const { @@ -7278,7 +7385,7 @@ namespace protobuf } inline void MessageOfDoor::_internal_set_is_open(bool value) { - is_open_ = value; + _impl_.is_open_ = value; } inline void MessageOfDoor::set_is_open(bool value) { @@ -7289,11 +7396,11 @@ namespace protobuf // int32 progress = 4; inline void MessageOfDoor::clear_progress() { - progress_ = 0; + _impl_.progress_ = 0; } inline int32_t MessageOfDoor::_internal_progress() const { - return progress_; + return _impl_.progress_; } inline int32_t MessageOfDoor::progress() const { @@ -7302,7 +7409,7 @@ namespace protobuf } inline void MessageOfDoor::_internal_set_progress(int32_t value) { - progress_ = value; + _impl_.progress_ = value; } inline void MessageOfDoor::set_progress(int32_t value) { @@ -7317,11 +7424,11 @@ namespace protobuf // int32 x = 1; inline void MessageOfChest::clear_x() { - x_ = 0; + _impl_.x_ = 0; } inline int32_t MessageOfChest::_internal_x() const { - return x_; + return _impl_.x_; } inline int32_t MessageOfChest::x() const { @@ -7330,7 +7437,7 @@ namespace protobuf } inline void MessageOfChest::_internal_set_x(int32_t value) { - x_ = value; + _impl_.x_ = value; } inline void MessageOfChest::set_x(int32_t value) { @@ -7341,11 +7448,11 @@ namespace protobuf // int32 y = 2; inline void MessageOfChest::clear_y() { - y_ = 0; + _impl_.y_ = 0; } inline int32_t MessageOfChest::_internal_y() const { - return y_; + return _impl_.y_; } inline int32_t MessageOfChest::y() const { @@ -7354,7 +7461,7 @@ namespace protobuf } inline void MessageOfChest::_internal_set_y(int32_t value) { - y_ = value; + _impl_.y_ = value; } inline void MessageOfChest::set_y(int32_t value) { @@ -7365,11 +7472,11 @@ namespace protobuf // int32 progress = 3; inline void MessageOfChest::clear_progress() { - progress_ = 0; + _impl_.progress_ = 0; } inline int32_t MessageOfChest::_internal_progress() const { - return progress_; + return _impl_.progress_; } inline int32_t MessageOfChest::progress() const { @@ -7378,7 +7485,7 @@ namespace protobuf } inline void MessageOfChest::_internal_set_progress(int32_t value) { - progress_ = value; + _impl_.progress_ = value; } inline void MessageOfChest::set_progress(int32_t value) { @@ -7393,7 +7500,7 @@ namespace protobuf // repeated .protobuf.PlaceType col = 1; inline int MessageOfMap_Row::_internal_col_size() const { - return col_.size(); + return _impl_.col_.size(); } inline int MessageOfMap_Row::col_size() const { @@ -7401,11 +7508,11 @@ namespace protobuf } inline void MessageOfMap_Row::clear_col() { - col_.Clear(); + _impl_.col_.Clear(); } inline ::protobuf::PlaceType MessageOfMap_Row::_internal_col(int index) const { - return static_cast<::protobuf::PlaceType>(col_.Get(index)); + return static_cast<::protobuf::PlaceType>(_impl_.col_.Get(index)); } inline ::protobuf::PlaceType MessageOfMap_Row::col(int index) const { @@ -7414,12 +7521,12 @@ namespace protobuf } inline void MessageOfMap_Row::set_col(int index, ::protobuf::PlaceType value) { - col_.Set(index, value); + _impl_.col_.Set(index, value); // @@protoc_insertion_point(field_set:protobuf.MessageOfMap.Row.col) } inline void MessageOfMap_Row::_internal_add_col(::protobuf::PlaceType value) { - col_.Add(value); + _impl_.col_.Add(value); } inline void MessageOfMap_Row::add_col(::protobuf::PlaceType value) { @@ -7430,12 +7537,12 @@ namespace protobuf MessageOfMap_Row::col() const { // @@protoc_insertion_point(field_list:protobuf.MessageOfMap.Row.col) - return col_; + return _impl_.col_; } inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* MessageOfMap_Row::_internal_mutable_col() { - return &col_; + return &_impl_.col_; } inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* MessageOfMap_Row::mutable_col() @@ -7451,7 +7558,7 @@ namespace protobuf // repeated .protobuf.MessageOfMap.Row row = 2; inline int MessageOfMap::_internal_row_size() const { - return row_.size(); + return _impl_.row_.size(); } inline int MessageOfMap::row_size() const { @@ -7459,22 +7566,22 @@ namespace protobuf } inline void MessageOfMap::clear_row() { - row_.Clear(); + _impl_.row_.Clear(); } inline ::protobuf::MessageOfMap_Row* MessageOfMap::mutable_row(int index) { // @@protoc_insertion_point(field_mutable:protobuf.MessageOfMap.row) - return row_.Mutable(index); + return _impl_.row_.Mutable(index); } inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::protobuf::MessageOfMap_Row>* MessageOfMap::mutable_row() { // @@protoc_insertion_point(field_mutable_list:protobuf.MessageOfMap.row) - return &row_; + return &_impl_.row_; } inline const ::protobuf::MessageOfMap_Row& MessageOfMap::_internal_row(int index) const { - return row_.Get(index); + return _impl_.row_.Get(index); } inline const ::protobuf::MessageOfMap_Row& MessageOfMap::row(int index) const { @@ -7483,7 +7590,7 @@ namespace protobuf } inline ::protobuf::MessageOfMap_Row* MessageOfMap::_internal_add_row() { - return row_.Add(); + return _impl_.row_.Add(); } inline ::protobuf::MessageOfMap_Row* MessageOfMap::add_row() { @@ -7495,7 +7602,7 @@ namespace protobuf MessageOfMap::row() const { // @@protoc_insertion_point(field_list:protobuf.MessageOfMap.row) - return row_; + return _impl_.row_; } // ------------------------------------------------------------------- @@ -7505,7 +7612,7 @@ namespace protobuf // string news = 1; inline void MessageOfNews::clear_news() { - news_.ClearToEmpty(); + _impl_.news_.ClearToEmpty(); } inline const std::string& MessageOfNews::news() const { @@ -7515,7 +7622,7 @@ namespace protobuf template inline PROTOBUF_ALWAYS_INLINE void MessageOfNews::set_news(ArgT0&& arg0, ArgT... args) { - news_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + _impl_.news_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:protobuf.MessageOfNews.news) } inline std::string* MessageOfNews::mutable_news() @@ -7526,20 +7633,20 @@ namespace protobuf } inline const std::string& MessageOfNews::_internal_news() const { - return news_.Get(); + return _impl_.news_.Get(); } inline void MessageOfNews::_internal_set_news(const std::string& value) { - news_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); + _impl_.news_.Set(value, GetArenaForAllocation()); } inline std::string* MessageOfNews::_internal_mutable_news() { - return news_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); + return _impl_.news_.Mutable(GetArenaForAllocation()); } inline std::string* MessageOfNews::release_news() { // @@protoc_insertion_point(field_release:protobuf.MessageOfNews.news) - return news_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); + return _impl_.news_.Release(); } inline void MessageOfNews::set_allocated_news(std::string* news) { @@ -7549,11 +7656,11 @@ namespace protobuf else { } - news_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), news, GetArenaForAllocation()); + _impl_.news_.SetAllocated(news, GetArenaForAllocation()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (news_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) + if (_impl_.news_.IsDefault()) { - news_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.news_.Set("", GetArenaForAllocation()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:protobuf.MessageOfNews.news) @@ -7562,11 +7669,11 @@ namespace protobuf // int64 from_id = 2; inline void MessageOfNews::clear_from_id() { - from_id_ = int64_t{0}; + _impl_.from_id_ = int64_t{0}; } inline int64_t MessageOfNews::_internal_from_id() const { - return from_id_; + return _impl_.from_id_; } inline int64_t MessageOfNews::from_id() const { @@ -7575,7 +7682,7 @@ namespace protobuf } inline void MessageOfNews::_internal_set_from_id(int64_t value) { - from_id_ = value; + _impl_.from_id_ = value; } inline void MessageOfNews::set_from_id(int64_t value) { @@ -7586,11 +7693,11 @@ namespace protobuf // int64 to_id = 3; inline void MessageOfNews::clear_to_id() { - to_id_ = int64_t{0}; + _impl_.to_id_ = int64_t{0}; } inline int64_t MessageOfNews::_internal_to_id() const { - return to_id_; + return _impl_.to_id_; } inline int64_t MessageOfNews::to_id() const { @@ -7599,7 +7706,7 @@ namespace protobuf } inline void MessageOfNews::_internal_set_to_id(int64_t value) { - to_id_ = value; + _impl_.to_id_ = value; } inline void MessageOfNews::set_to_id(int64_t value) { @@ -7622,7 +7729,7 @@ namespace protobuf } inline void MessageOfObj::set_has_student_message() { - _oneof_case_[0] = kStudentMessage; + _impl_._oneof_case_[0] = kStudentMessage; } inline void MessageOfObj::clear_student_message() { @@ -7630,7 +7737,7 @@ namespace protobuf { if (GetArenaForAllocation() == nullptr) { - delete message_of_obj_.student_message_; + delete _impl_.message_of_obj_.student_message_; } clear_has_message_of_obj(); } @@ -7641,12 +7748,12 @@ namespace protobuf if (_internal_has_student_message()) { clear_has_message_of_obj(); - ::protobuf::MessageOfStudent* temp = message_of_obj_.student_message_; + ::protobuf::MessageOfStudent* temp = _impl_.message_of_obj_.student_message_; if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - message_of_obj_.student_message_ = nullptr; + _impl_.message_of_obj_.student_message_ = nullptr; return temp; } else @@ -7656,7 +7763,7 @@ namespace protobuf } inline const ::protobuf::MessageOfStudent& MessageOfObj::_internal_student_message() const { - return _internal_has_student_message() ? *message_of_obj_.student_message_ : reinterpret_cast<::protobuf::MessageOfStudent&>(::protobuf::_MessageOfStudent_default_instance_); + return _internal_has_student_message() ? *_impl_.message_of_obj_.student_message_ : reinterpret_cast<::protobuf::MessageOfStudent&>(::protobuf::_MessageOfStudent_default_instance_); } inline const ::protobuf::MessageOfStudent& MessageOfObj::student_message() const { @@ -7669,8 +7776,8 @@ namespace protobuf if (_internal_has_student_message()) { clear_has_message_of_obj(); - ::protobuf::MessageOfStudent* temp = message_of_obj_.student_message_; - message_of_obj_.student_message_ = nullptr; + ::protobuf::MessageOfStudent* temp = _impl_.message_of_obj_.student_message_; + _impl_.message_of_obj_.student_message_ = nullptr; return temp; } else @@ -7684,7 +7791,7 @@ namespace protobuf if (student_message) { set_has_student_message(); - message_of_obj_.student_message_ = student_message; + _impl_.message_of_obj_.student_message_ = student_message; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf.MessageOfObj.student_message) } @@ -7694,9 +7801,9 @@ namespace protobuf { clear_message_of_obj(); set_has_student_message(); - message_of_obj_.student_message_ = CreateMaybeMessage<::protobuf::MessageOfStudent>(GetArenaForAllocation()); + _impl_.message_of_obj_.student_message_ = CreateMaybeMessage<::protobuf::MessageOfStudent>(GetArenaForAllocation()); } - return message_of_obj_.student_message_; + return _impl_.message_of_obj_.student_message_; } inline ::protobuf::MessageOfStudent* MessageOfObj::mutable_student_message() { @@ -7716,7 +7823,7 @@ namespace protobuf } inline void MessageOfObj::set_has_tricker_message() { - _oneof_case_[0] = kTrickerMessage; + _impl_._oneof_case_[0] = kTrickerMessage; } inline void MessageOfObj::clear_tricker_message() { @@ -7724,7 +7831,7 @@ namespace protobuf { if (GetArenaForAllocation() == nullptr) { - delete message_of_obj_.tricker_message_; + delete _impl_.message_of_obj_.tricker_message_; } clear_has_message_of_obj(); } @@ -7735,12 +7842,12 @@ namespace protobuf if (_internal_has_tricker_message()) { clear_has_message_of_obj(); - ::protobuf::MessageOfTricker* temp = message_of_obj_.tricker_message_; + ::protobuf::MessageOfTricker* temp = _impl_.message_of_obj_.tricker_message_; if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - message_of_obj_.tricker_message_ = nullptr; + _impl_.message_of_obj_.tricker_message_ = nullptr; return temp; } else @@ -7750,7 +7857,7 @@ namespace protobuf } inline const ::protobuf::MessageOfTricker& MessageOfObj::_internal_tricker_message() const { - return _internal_has_tricker_message() ? *message_of_obj_.tricker_message_ : reinterpret_cast<::protobuf::MessageOfTricker&>(::protobuf::_MessageOfTricker_default_instance_); + return _internal_has_tricker_message() ? *_impl_.message_of_obj_.tricker_message_ : reinterpret_cast<::protobuf::MessageOfTricker&>(::protobuf::_MessageOfTricker_default_instance_); } inline const ::protobuf::MessageOfTricker& MessageOfObj::tricker_message() const { @@ -7763,8 +7870,8 @@ namespace protobuf if (_internal_has_tricker_message()) { clear_has_message_of_obj(); - ::protobuf::MessageOfTricker* temp = message_of_obj_.tricker_message_; - message_of_obj_.tricker_message_ = nullptr; + ::protobuf::MessageOfTricker* temp = _impl_.message_of_obj_.tricker_message_; + _impl_.message_of_obj_.tricker_message_ = nullptr; return temp; } else @@ -7778,7 +7885,7 @@ namespace protobuf if (tricker_message) { set_has_tricker_message(); - message_of_obj_.tricker_message_ = tricker_message; + _impl_.message_of_obj_.tricker_message_ = tricker_message; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf.MessageOfObj.tricker_message) } @@ -7788,9 +7895,9 @@ namespace protobuf { clear_message_of_obj(); set_has_tricker_message(); - message_of_obj_.tricker_message_ = CreateMaybeMessage<::protobuf::MessageOfTricker>(GetArenaForAllocation()); + _impl_.message_of_obj_.tricker_message_ = CreateMaybeMessage<::protobuf::MessageOfTricker>(GetArenaForAllocation()); } - return message_of_obj_.tricker_message_; + return _impl_.message_of_obj_.tricker_message_; } inline ::protobuf::MessageOfTricker* MessageOfObj::mutable_tricker_message() { @@ -7810,7 +7917,7 @@ namespace protobuf } inline void MessageOfObj::set_has_prop_message() { - _oneof_case_[0] = kPropMessage; + _impl_._oneof_case_[0] = kPropMessage; } inline void MessageOfObj::clear_prop_message() { @@ -7818,7 +7925,7 @@ namespace protobuf { if (GetArenaForAllocation() == nullptr) { - delete message_of_obj_.prop_message_; + delete _impl_.message_of_obj_.prop_message_; } clear_has_message_of_obj(); } @@ -7829,12 +7936,12 @@ namespace protobuf if (_internal_has_prop_message()) { clear_has_message_of_obj(); - ::protobuf::MessageOfProp* temp = message_of_obj_.prop_message_; + ::protobuf::MessageOfProp* temp = _impl_.message_of_obj_.prop_message_; if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - message_of_obj_.prop_message_ = nullptr; + _impl_.message_of_obj_.prop_message_ = nullptr; return temp; } else @@ -7844,7 +7951,7 @@ namespace protobuf } inline const ::protobuf::MessageOfProp& MessageOfObj::_internal_prop_message() const { - return _internal_has_prop_message() ? *message_of_obj_.prop_message_ : reinterpret_cast<::protobuf::MessageOfProp&>(::protobuf::_MessageOfProp_default_instance_); + return _internal_has_prop_message() ? *_impl_.message_of_obj_.prop_message_ : reinterpret_cast<::protobuf::MessageOfProp&>(::protobuf::_MessageOfProp_default_instance_); } inline const ::protobuf::MessageOfProp& MessageOfObj::prop_message() const { @@ -7857,8 +7964,8 @@ namespace protobuf if (_internal_has_prop_message()) { clear_has_message_of_obj(); - ::protobuf::MessageOfProp* temp = message_of_obj_.prop_message_; - message_of_obj_.prop_message_ = nullptr; + ::protobuf::MessageOfProp* temp = _impl_.message_of_obj_.prop_message_; + _impl_.message_of_obj_.prop_message_ = nullptr; return temp; } else @@ -7872,7 +7979,7 @@ namespace protobuf if (prop_message) { set_has_prop_message(); - message_of_obj_.prop_message_ = prop_message; + _impl_.message_of_obj_.prop_message_ = prop_message; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf.MessageOfObj.prop_message) } @@ -7882,9 +7989,9 @@ namespace protobuf { clear_message_of_obj(); set_has_prop_message(); - message_of_obj_.prop_message_ = CreateMaybeMessage<::protobuf::MessageOfProp>(GetArenaForAllocation()); + _impl_.message_of_obj_.prop_message_ = CreateMaybeMessage<::protobuf::MessageOfProp>(GetArenaForAllocation()); } - return message_of_obj_.prop_message_; + return _impl_.message_of_obj_.prop_message_; } inline ::protobuf::MessageOfProp* MessageOfObj::mutable_prop_message() { @@ -7904,7 +8011,7 @@ namespace protobuf } inline void MessageOfObj::set_has_bullet_message() { - _oneof_case_[0] = kBulletMessage; + _impl_._oneof_case_[0] = kBulletMessage; } inline void MessageOfObj::clear_bullet_message() { @@ -7912,7 +8019,7 @@ namespace protobuf { if (GetArenaForAllocation() == nullptr) { - delete message_of_obj_.bullet_message_; + delete _impl_.message_of_obj_.bullet_message_; } clear_has_message_of_obj(); } @@ -7923,12 +8030,12 @@ namespace protobuf if (_internal_has_bullet_message()) { clear_has_message_of_obj(); - ::protobuf::MessageOfBullet* temp = message_of_obj_.bullet_message_; + ::protobuf::MessageOfBullet* temp = _impl_.message_of_obj_.bullet_message_; if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - message_of_obj_.bullet_message_ = nullptr; + _impl_.message_of_obj_.bullet_message_ = nullptr; return temp; } else @@ -7938,7 +8045,7 @@ namespace protobuf } inline const ::protobuf::MessageOfBullet& MessageOfObj::_internal_bullet_message() const { - return _internal_has_bullet_message() ? *message_of_obj_.bullet_message_ : reinterpret_cast<::protobuf::MessageOfBullet&>(::protobuf::_MessageOfBullet_default_instance_); + return _internal_has_bullet_message() ? *_impl_.message_of_obj_.bullet_message_ : reinterpret_cast<::protobuf::MessageOfBullet&>(::protobuf::_MessageOfBullet_default_instance_); } inline const ::protobuf::MessageOfBullet& MessageOfObj::bullet_message() const { @@ -7951,8 +8058,8 @@ namespace protobuf if (_internal_has_bullet_message()) { clear_has_message_of_obj(); - ::protobuf::MessageOfBullet* temp = message_of_obj_.bullet_message_; - message_of_obj_.bullet_message_ = nullptr; + ::protobuf::MessageOfBullet* temp = _impl_.message_of_obj_.bullet_message_; + _impl_.message_of_obj_.bullet_message_ = nullptr; return temp; } else @@ -7966,7 +8073,7 @@ namespace protobuf if (bullet_message) { set_has_bullet_message(); - message_of_obj_.bullet_message_ = bullet_message; + _impl_.message_of_obj_.bullet_message_ = bullet_message; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf.MessageOfObj.bullet_message) } @@ -7976,9 +8083,9 @@ namespace protobuf { clear_message_of_obj(); set_has_bullet_message(); - message_of_obj_.bullet_message_ = CreateMaybeMessage<::protobuf::MessageOfBullet>(GetArenaForAllocation()); + _impl_.message_of_obj_.bullet_message_ = CreateMaybeMessage<::protobuf::MessageOfBullet>(GetArenaForAllocation()); } - return message_of_obj_.bullet_message_; + return _impl_.message_of_obj_.bullet_message_; } inline ::protobuf::MessageOfBullet* MessageOfObj::mutable_bullet_message() { @@ -7998,7 +8105,7 @@ namespace protobuf } inline void MessageOfObj::set_has_bombed_bullet_message() { - _oneof_case_[0] = kBombedBulletMessage; + _impl_._oneof_case_[0] = kBombedBulletMessage; } inline void MessageOfObj::clear_bombed_bullet_message() { @@ -8006,7 +8113,7 @@ namespace protobuf { if (GetArenaForAllocation() == nullptr) { - delete message_of_obj_.bombed_bullet_message_; + delete _impl_.message_of_obj_.bombed_bullet_message_; } clear_has_message_of_obj(); } @@ -8017,12 +8124,12 @@ namespace protobuf if (_internal_has_bombed_bullet_message()) { clear_has_message_of_obj(); - ::protobuf::MessageOfBombedBullet* temp = message_of_obj_.bombed_bullet_message_; + ::protobuf::MessageOfBombedBullet* temp = _impl_.message_of_obj_.bombed_bullet_message_; if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - message_of_obj_.bombed_bullet_message_ = nullptr; + _impl_.message_of_obj_.bombed_bullet_message_ = nullptr; return temp; } else @@ -8032,7 +8139,7 @@ namespace protobuf } inline const ::protobuf::MessageOfBombedBullet& MessageOfObj::_internal_bombed_bullet_message() const { - return _internal_has_bombed_bullet_message() ? *message_of_obj_.bombed_bullet_message_ : reinterpret_cast<::protobuf::MessageOfBombedBullet&>(::protobuf::_MessageOfBombedBullet_default_instance_); + return _internal_has_bombed_bullet_message() ? *_impl_.message_of_obj_.bombed_bullet_message_ : reinterpret_cast<::protobuf::MessageOfBombedBullet&>(::protobuf::_MessageOfBombedBullet_default_instance_); } inline const ::protobuf::MessageOfBombedBullet& MessageOfObj::bombed_bullet_message() const { @@ -8045,8 +8152,8 @@ namespace protobuf if (_internal_has_bombed_bullet_message()) { clear_has_message_of_obj(); - ::protobuf::MessageOfBombedBullet* temp = message_of_obj_.bombed_bullet_message_; - message_of_obj_.bombed_bullet_message_ = nullptr; + ::protobuf::MessageOfBombedBullet* temp = _impl_.message_of_obj_.bombed_bullet_message_; + _impl_.message_of_obj_.bombed_bullet_message_ = nullptr; return temp; } else @@ -8060,7 +8167,7 @@ namespace protobuf if (bombed_bullet_message) { set_has_bombed_bullet_message(); - message_of_obj_.bombed_bullet_message_ = bombed_bullet_message; + _impl_.message_of_obj_.bombed_bullet_message_ = bombed_bullet_message; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf.MessageOfObj.bombed_bullet_message) } @@ -8070,9 +8177,9 @@ namespace protobuf { clear_message_of_obj(); set_has_bombed_bullet_message(); - message_of_obj_.bombed_bullet_message_ = CreateMaybeMessage<::protobuf::MessageOfBombedBullet>(GetArenaForAllocation()); + _impl_.message_of_obj_.bombed_bullet_message_ = CreateMaybeMessage<::protobuf::MessageOfBombedBullet>(GetArenaForAllocation()); } - return message_of_obj_.bombed_bullet_message_; + return _impl_.message_of_obj_.bombed_bullet_message_; } inline ::protobuf::MessageOfBombedBullet* MessageOfObj::mutable_bombed_bullet_message() { @@ -8092,7 +8199,7 @@ namespace protobuf } inline void MessageOfObj::set_has_classroom_message() { - _oneof_case_[0] = kClassroomMessage; + _impl_._oneof_case_[0] = kClassroomMessage; } inline void MessageOfObj::clear_classroom_message() { @@ -8100,7 +8207,7 @@ namespace protobuf { if (GetArenaForAllocation() == nullptr) { - delete message_of_obj_.classroom_message_; + delete _impl_.message_of_obj_.classroom_message_; } clear_has_message_of_obj(); } @@ -8111,12 +8218,12 @@ namespace protobuf if (_internal_has_classroom_message()) { clear_has_message_of_obj(); - ::protobuf::MessageOfClassroom* temp = message_of_obj_.classroom_message_; + ::protobuf::MessageOfClassroom* temp = _impl_.message_of_obj_.classroom_message_; if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - message_of_obj_.classroom_message_ = nullptr; + _impl_.message_of_obj_.classroom_message_ = nullptr; return temp; } else @@ -8126,7 +8233,7 @@ namespace protobuf } inline const ::protobuf::MessageOfClassroom& MessageOfObj::_internal_classroom_message() const { - return _internal_has_classroom_message() ? *message_of_obj_.classroom_message_ : reinterpret_cast<::protobuf::MessageOfClassroom&>(::protobuf::_MessageOfClassroom_default_instance_); + return _internal_has_classroom_message() ? *_impl_.message_of_obj_.classroom_message_ : reinterpret_cast<::protobuf::MessageOfClassroom&>(::protobuf::_MessageOfClassroom_default_instance_); } inline const ::protobuf::MessageOfClassroom& MessageOfObj::classroom_message() const { @@ -8139,8 +8246,8 @@ namespace protobuf if (_internal_has_classroom_message()) { clear_has_message_of_obj(); - ::protobuf::MessageOfClassroom* temp = message_of_obj_.classroom_message_; - message_of_obj_.classroom_message_ = nullptr; + ::protobuf::MessageOfClassroom* temp = _impl_.message_of_obj_.classroom_message_; + _impl_.message_of_obj_.classroom_message_ = nullptr; return temp; } else @@ -8154,7 +8261,7 @@ namespace protobuf if (classroom_message) { set_has_classroom_message(); - message_of_obj_.classroom_message_ = classroom_message; + _impl_.message_of_obj_.classroom_message_ = classroom_message; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf.MessageOfObj.classroom_message) } @@ -8164,9 +8271,9 @@ namespace protobuf { clear_message_of_obj(); set_has_classroom_message(); - message_of_obj_.classroom_message_ = CreateMaybeMessage<::protobuf::MessageOfClassroom>(GetArenaForAllocation()); + _impl_.message_of_obj_.classroom_message_ = CreateMaybeMessage<::protobuf::MessageOfClassroom>(GetArenaForAllocation()); } - return message_of_obj_.classroom_message_; + return _impl_.message_of_obj_.classroom_message_; } inline ::protobuf::MessageOfClassroom* MessageOfObj::mutable_classroom_message() { @@ -8186,7 +8293,7 @@ namespace protobuf } inline void MessageOfObj::set_has_door_message() { - _oneof_case_[0] = kDoorMessage; + _impl_._oneof_case_[0] = kDoorMessage; } inline void MessageOfObj::clear_door_message() { @@ -8194,7 +8301,7 @@ namespace protobuf { if (GetArenaForAllocation() == nullptr) { - delete message_of_obj_.door_message_; + delete _impl_.message_of_obj_.door_message_; } clear_has_message_of_obj(); } @@ -8205,12 +8312,12 @@ namespace protobuf if (_internal_has_door_message()) { clear_has_message_of_obj(); - ::protobuf::MessageOfDoor* temp = message_of_obj_.door_message_; + ::protobuf::MessageOfDoor* temp = _impl_.message_of_obj_.door_message_; if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - message_of_obj_.door_message_ = nullptr; + _impl_.message_of_obj_.door_message_ = nullptr; return temp; } else @@ -8220,7 +8327,7 @@ namespace protobuf } inline const ::protobuf::MessageOfDoor& MessageOfObj::_internal_door_message() const { - return _internal_has_door_message() ? *message_of_obj_.door_message_ : reinterpret_cast<::protobuf::MessageOfDoor&>(::protobuf::_MessageOfDoor_default_instance_); + return _internal_has_door_message() ? *_impl_.message_of_obj_.door_message_ : reinterpret_cast<::protobuf::MessageOfDoor&>(::protobuf::_MessageOfDoor_default_instance_); } inline const ::protobuf::MessageOfDoor& MessageOfObj::door_message() const { @@ -8233,8 +8340,8 @@ namespace protobuf if (_internal_has_door_message()) { clear_has_message_of_obj(); - ::protobuf::MessageOfDoor* temp = message_of_obj_.door_message_; - message_of_obj_.door_message_ = nullptr; + ::protobuf::MessageOfDoor* temp = _impl_.message_of_obj_.door_message_; + _impl_.message_of_obj_.door_message_ = nullptr; return temp; } else @@ -8248,7 +8355,7 @@ namespace protobuf if (door_message) { set_has_door_message(); - message_of_obj_.door_message_ = door_message; + _impl_.message_of_obj_.door_message_ = door_message; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf.MessageOfObj.door_message) } @@ -8258,9 +8365,9 @@ namespace protobuf { clear_message_of_obj(); set_has_door_message(); - message_of_obj_.door_message_ = CreateMaybeMessage<::protobuf::MessageOfDoor>(GetArenaForAllocation()); + _impl_.message_of_obj_.door_message_ = CreateMaybeMessage<::protobuf::MessageOfDoor>(GetArenaForAllocation()); } - return message_of_obj_.door_message_; + return _impl_.message_of_obj_.door_message_; } inline ::protobuf::MessageOfDoor* MessageOfObj::mutable_door_message() { @@ -8280,7 +8387,7 @@ namespace protobuf } inline void MessageOfObj::set_has_gate_message() { - _oneof_case_[0] = kGateMessage; + _impl_._oneof_case_[0] = kGateMessage; } inline void MessageOfObj::clear_gate_message() { @@ -8288,7 +8395,7 @@ namespace protobuf { if (GetArenaForAllocation() == nullptr) { - delete message_of_obj_.gate_message_; + delete _impl_.message_of_obj_.gate_message_; } clear_has_message_of_obj(); } @@ -8299,12 +8406,12 @@ namespace protobuf if (_internal_has_gate_message()) { clear_has_message_of_obj(); - ::protobuf::MessageOfGate* temp = message_of_obj_.gate_message_; + ::protobuf::MessageOfGate* temp = _impl_.message_of_obj_.gate_message_; if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - message_of_obj_.gate_message_ = nullptr; + _impl_.message_of_obj_.gate_message_ = nullptr; return temp; } else @@ -8314,7 +8421,7 @@ namespace protobuf } inline const ::protobuf::MessageOfGate& MessageOfObj::_internal_gate_message() const { - return _internal_has_gate_message() ? *message_of_obj_.gate_message_ : reinterpret_cast<::protobuf::MessageOfGate&>(::protobuf::_MessageOfGate_default_instance_); + return _internal_has_gate_message() ? *_impl_.message_of_obj_.gate_message_ : reinterpret_cast<::protobuf::MessageOfGate&>(::protobuf::_MessageOfGate_default_instance_); } inline const ::protobuf::MessageOfGate& MessageOfObj::gate_message() const { @@ -8327,8 +8434,8 @@ namespace protobuf if (_internal_has_gate_message()) { clear_has_message_of_obj(); - ::protobuf::MessageOfGate* temp = message_of_obj_.gate_message_; - message_of_obj_.gate_message_ = nullptr; + ::protobuf::MessageOfGate* temp = _impl_.message_of_obj_.gate_message_; + _impl_.message_of_obj_.gate_message_ = nullptr; return temp; } else @@ -8342,7 +8449,7 @@ namespace protobuf if (gate_message) { set_has_gate_message(); - message_of_obj_.gate_message_ = gate_message; + _impl_.message_of_obj_.gate_message_ = gate_message; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf.MessageOfObj.gate_message) } @@ -8352,9 +8459,9 @@ namespace protobuf { clear_message_of_obj(); set_has_gate_message(); - message_of_obj_.gate_message_ = CreateMaybeMessage<::protobuf::MessageOfGate>(GetArenaForAllocation()); + _impl_.message_of_obj_.gate_message_ = CreateMaybeMessage<::protobuf::MessageOfGate>(GetArenaForAllocation()); } - return message_of_obj_.gate_message_; + return _impl_.message_of_obj_.gate_message_; } inline ::protobuf::MessageOfGate* MessageOfObj::mutable_gate_message() { @@ -8374,7 +8481,7 @@ namespace protobuf } inline void MessageOfObj::set_has_chest_message() { - _oneof_case_[0] = kChestMessage; + _impl_._oneof_case_[0] = kChestMessage; } inline void MessageOfObj::clear_chest_message() { @@ -8382,7 +8489,7 @@ namespace protobuf { if (GetArenaForAllocation() == nullptr) { - delete message_of_obj_.chest_message_; + delete _impl_.message_of_obj_.chest_message_; } clear_has_message_of_obj(); } @@ -8393,12 +8500,12 @@ namespace protobuf if (_internal_has_chest_message()) { clear_has_message_of_obj(); - ::protobuf::MessageOfChest* temp = message_of_obj_.chest_message_; + ::protobuf::MessageOfChest* temp = _impl_.message_of_obj_.chest_message_; if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - message_of_obj_.chest_message_ = nullptr; + _impl_.message_of_obj_.chest_message_ = nullptr; return temp; } else @@ -8408,7 +8515,7 @@ namespace protobuf } inline const ::protobuf::MessageOfChest& MessageOfObj::_internal_chest_message() const { - return _internal_has_chest_message() ? *message_of_obj_.chest_message_ : reinterpret_cast<::protobuf::MessageOfChest&>(::protobuf::_MessageOfChest_default_instance_); + return _internal_has_chest_message() ? *_impl_.message_of_obj_.chest_message_ : reinterpret_cast<::protobuf::MessageOfChest&>(::protobuf::_MessageOfChest_default_instance_); } inline const ::protobuf::MessageOfChest& MessageOfObj::chest_message() const { @@ -8421,8 +8528,8 @@ namespace protobuf if (_internal_has_chest_message()) { clear_has_message_of_obj(); - ::protobuf::MessageOfChest* temp = message_of_obj_.chest_message_; - message_of_obj_.chest_message_ = nullptr; + ::protobuf::MessageOfChest* temp = _impl_.message_of_obj_.chest_message_; + _impl_.message_of_obj_.chest_message_ = nullptr; return temp; } else @@ -8436,7 +8543,7 @@ namespace protobuf if (chest_message) { set_has_chest_message(); - message_of_obj_.chest_message_ = chest_message; + _impl_.message_of_obj_.chest_message_ = chest_message; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf.MessageOfObj.chest_message) } @@ -8446,9 +8553,9 @@ namespace protobuf { clear_message_of_obj(); set_has_chest_message(); - message_of_obj_.chest_message_ = CreateMaybeMessage<::protobuf::MessageOfChest>(GetArenaForAllocation()); + _impl_.message_of_obj_.chest_message_ = CreateMaybeMessage<::protobuf::MessageOfChest>(GetArenaForAllocation()); } - return message_of_obj_.chest_message_; + return _impl_.message_of_obj_.chest_message_; } inline ::protobuf::MessageOfChest* MessageOfObj::mutable_chest_message() { @@ -8468,7 +8575,7 @@ namespace protobuf } inline void MessageOfObj::set_has_hidden_gate_message() { - _oneof_case_[0] = kHiddenGateMessage; + _impl_._oneof_case_[0] = kHiddenGateMessage; } inline void MessageOfObj::clear_hidden_gate_message() { @@ -8476,7 +8583,7 @@ namespace protobuf { if (GetArenaForAllocation() == nullptr) { - delete message_of_obj_.hidden_gate_message_; + delete _impl_.message_of_obj_.hidden_gate_message_; } clear_has_message_of_obj(); } @@ -8487,12 +8594,12 @@ namespace protobuf if (_internal_has_hidden_gate_message()) { clear_has_message_of_obj(); - ::protobuf::MessageOfHiddenGate* temp = message_of_obj_.hidden_gate_message_; + ::protobuf::MessageOfHiddenGate* temp = _impl_.message_of_obj_.hidden_gate_message_; if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - message_of_obj_.hidden_gate_message_ = nullptr; + _impl_.message_of_obj_.hidden_gate_message_ = nullptr; return temp; } else @@ -8502,7 +8609,7 @@ namespace protobuf } inline const ::protobuf::MessageOfHiddenGate& MessageOfObj::_internal_hidden_gate_message() const { - return _internal_has_hidden_gate_message() ? *message_of_obj_.hidden_gate_message_ : reinterpret_cast<::protobuf::MessageOfHiddenGate&>(::protobuf::_MessageOfHiddenGate_default_instance_); + return _internal_has_hidden_gate_message() ? *_impl_.message_of_obj_.hidden_gate_message_ : reinterpret_cast<::protobuf::MessageOfHiddenGate&>(::protobuf::_MessageOfHiddenGate_default_instance_); } inline const ::protobuf::MessageOfHiddenGate& MessageOfObj::hidden_gate_message() const { @@ -8515,8 +8622,8 @@ namespace protobuf if (_internal_has_hidden_gate_message()) { clear_has_message_of_obj(); - ::protobuf::MessageOfHiddenGate* temp = message_of_obj_.hidden_gate_message_; - message_of_obj_.hidden_gate_message_ = nullptr; + ::protobuf::MessageOfHiddenGate* temp = _impl_.message_of_obj_.hidden_gate_message_; + _impl_.message_of_obj_.hidden_gate_message_ = nullptr; return temp; } else @@ -8530,7 +8637,7 @@ namespace protobuf if (hidden_gate_message) { set_has_hidden_gate_message(); - message_of_obj_.hidden_gate_message_ = hidden_gate_message; + _impl_.message_of_obj_.hidden_gate_message_ = hidden_gate_message; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf.MessageOfObj.hidden_gate_message) } @@ -8540,9 +8647,9 @@ namespace protobuf { clear_message_of_obj(); set_has_hidden_gate_message(); - message_of_obj_.hidden_gate_message_ = CreateMaybeMessage<::protobuf::MessageOfHiddenGate>(GetArenaForAllocation()); + _impl_.message_of_obj_.hidden_gate_message_ = CreateMaybeMessage<::protobuf::MessageOfHiddenGate>(GetArenaForAllocation()); } - return message_of_obj_.hidden_gate_message_; + return _impl_.message_of_obj_.hidden_gate_message_; } inline ::protobuf::MessageOfHiddenGate* MessageOfObj::mutable_hidden_gate_message() { @@ -8562,7 +8669,7 @@ namespace protobuf } inline void MessageOfObj::set_has_news_message() { - _oneof_case_[0] = kNewsMessage; + _impl_._oneof_case_[0] = kNewsMessage; } inline void MessageOfObj::clear_news_message() { @@ -8570,7 +8677,7 @@ namespace protobuf { if (GetArenaForAllocation() == nullptr) { - delete message_of_obj_.news_message_; + delete _impl_.message_of_obj_.news_message_; } clear_has_message_of_obj(); } @@ -8581,12 +8688,12 @@ namespace protobuf if (_internal_has_news_message()) { clear_has_message_of_obj(); - ::protobuf::MessageOfNews* temp = message_of_obj_.news_message_; + ::protobuf::MessageOfNews* temp = _impl_.message_of_obj_.news_message_; if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - message_of_obj_.news_message_ = nullptr; + _impl_.message_of_obj_.news_message_ = nullptr; return temp; } else @@ -8596,7 +8703,7 @@ namespace protobuf } inline const ::protobuf::MessageOfNews& MessageOfObj::_internal_news_message() const { - return _internal_has_news_message() ? *message_of_obj_.news_message_ : reinterpret_cast<::protobuf::MessageOfNews&>(::protobuf::_MessageOfNews_default_instance_); + return _internal_has_news_message() ? *_impl_.message_of_obj_.news_message_ : reinterpret_cast<::protobuf::MessageOfNews&>(::protobuf::_MessageOfNews_default_instance_); } inline const ::protobuf::MessageOfNews& MessageOfObj::news_message() const { @@ -8609,8 +8716,8 @@ namespace protobuf if (_internal_has_news_message()) { clear_has_message_of_obj(); - ::protobuf::MessageOfNews* temp = message_of_obj_.news_message_; - message_of_obj_.news_message_ = nullptr; + ::protobuf::MessageOfNews* temp = _impl_.message_of_obj_.news_message_; + _impl_.message_of_obj_.news_message_ = nullptr; return temp; } else @@ -8624,7 +8731,7 @@ namespace protobuf if (news_message) { set_has_news_message(); - message_of_obj_.news_message_ = news_message; + _impl_.message_of_obj_.news_message_ = news_message; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf.MessageOfObj.news_message) } @@ -8634,9 +8741,9 @@ namespace protobuf { clear_message_of_obj(); set_has_news_message(); - message_of_obj_.news_message_ = CreateMaybeMessage<::protobuf::MessageOfNews>(GetArenaForAllocation()); + _impl_.message_of_obj_.news_message_ = CreateMaybeMessage<::protobuf::MessageOfNews>(GetArenaForAllocation()); } - return message_of_obj_.news_message_; + return _impl_.message_of_obj_.news_message_; } inline ::protobuf::MessageOfNews* MessageOfObj::mutable_news_message() { @@ -8656,7 +8763,7 @@ namespace protobuf } inline void MessageOfObj::set_has_map_message() { - _oneof_case_[0] = kMapMessage; + _impl_._oneof_case_[0] = kMapMessage; } inline void MessageOfObj::clear_map_message() { @@ -8664,7 +8771,7 @@ namespace protobuf { if (GetArenaForAllocation() == nullptr) { - delete message_of_obj_.map_message_; + delete _impl_.message_of_obj_.map_message_; } clear_has_message_of_obj(); } @@ -8675,12 +8782,12 @@ namespace protobuf if (_internal_has_map_message()) { clear_has_message_of_obj(); - ::protobuf::MessageOfMap* temp = message_of_obj_.map_message_; + ::protobuf::MessageOfMap* temp = _impl_.message_of_obj_.map_message_; if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - message_of_obj_.map_message_ = nullptr; + _impl_.message_of_obj_.map_message_ = nullptr; return temp; } else @@ -8690,7 +8797,7 @@ namespace protobuf } inline const ::protobuf::MessageOfMap& MessageOfObj::_internal_map_message() const { - return _internal_has_map_message() ? *message_of_obj_.map_message_ : reinterpret_cast<::protobuf::MessageOfMap&>(::protobuf::_MessageOfMap_default_instance_); + return _internal_has_map_message() ? *_impl_.message_of_obj_.map_message_ : reinterpret_cast<::protobuf::MessageOfMap&>(::protobuf::_MessageOfMap_default_instance_); } inline const ::protobuf::MessageOfMap& MessageOfObj::map_message() const { @@ -8703,8 +8810,8 @@ namespace protobuf if (_internal_has_map_message()) { clear_has_message_of_obj(); - ::protobuf::MessageOfMap* temp = message_of_obj_.map_message_; - message_of_obj_.map_message_ = nullptr; + ::protobuf::MessageOfMap* temp = _impl_.message_of_obj_.map_message_; + _impl_.message_of_obj_.map_message_ = nullptr; return temp; } else @@ -8718,7 +8825,7 @@ namespace protobuf if (map_message) { set_has_map_message(); - message_of_obj_.map_message_ = map_message; + _impl_.message_of_obj_.map_message_ = map_message; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf.MessageOfObj.map_message) } @@ -8728,9 +8835,9 @@ namespace protobuf { clear_message_of_obj(); set_has_map_message(); - message_of_obj_.map_message_ = CreateMaybeMessage<::protobuf::MessageOfMap>(GetArenaForAllocation()); + _impl_.message_of_obj_.map_message_ = CreateMaybeMessage<::protobuf::MessageOfMap>(GetArenaForAllocation()); } - return message_of_obj_.map_message_; + return _impl_.message_of_obj_.map_message_; } inline ::protobuf::MessageOfMap* MessageOfObj::mutable_map_message() { @@ -8745,11 +8852,11 @@ namespace protobuf } inline void MessageOfObj::clear_has_message_of_obj() { - _oneof_case_[0] = MESSAGE_OF_OBJ_NOT_SET; + _impl_._oneof_case_[0] = MESSAGE_OF_OBJ_NOT_SET; } inline MessageOfObj::MessageOfObjCase MessageOfObj::message_of_obj_case() const { - return MessageOfObj::MessageOfObjCase(_oneof_case_[0]); + return MessageOfObj::MessageOfObjCase(_impl_._oneof_case_[0]); } // ------------------------------------------------------------------- @@ -8758,11 +8865,11 @@ namespace protobuf // int32 game_time = 1; inline void MessageOfAll::clear_game_time() { - game_time_ = 0; + _impl_.game_time_ = 0; } inline int32_t MessageOfAll::_internal_game_time() const { - return game_time_; + return _impl_.game_time_; } inline int32_t MessageOfAll::game_time() const { @@ -8771,7 +8878,7 @@ namespace protobuf } inline void MessageOfAll::_internal_set_game_time(int32_t value) { - game_time_ = value; + _impl_.game_time_ = value; } inline void MessageOfAll::set_game_time(int32_t value) { @@ -8782,11 +8889,11 @@ namespace protobuf // int32 subject_finished = 2; inline void MessageOfAll::clear_subject_finished() { - subject_finished_ = 0; + _impl_.subject_finished_ = 0; } inline int32_t MessageOfAll::_internal_subject_finished() const { - return subject_finished_; + return _impl_.subject_finished_; } inline int32_t MessageOfAll::subject_finished() const { @@ -8795,7 +8902,7 @@ namespace protobuf } inline void MessageOfAll::_internal_set_subject_finished(int32_t value) { - subject_finished_ = value; + _impl_.subject_finished_ = value; } inline void MessageOfAll::set_subject_finished(int32_t value) { @@ -8806,11 +8913,11 @@ namespace protobuf // int32 student_graduated = 3; inline void MessageOfAll::clear_student_graduated() { - student_graduated_ = 0; + _impl_.student_graduated_ = 0; } inline int32_t MessageOfAll::_internal_student_graduated() const { - return student_graduated_; + return _impl_.student_graduated_; } inline int32_t MessageOfAll::student_graduated() const { @@ -8819,7 +8926,7 @@ namespace protobuf } inline void MessageOfAll::_internal_set_student_graduated(int32_t value) { - student_graduated_ = value; + _impl_.student_graduated_ = value; } inline void MessageOfAll::set_student_graduated(int32_t value) { @@ -8830,11 +8937,11 @@ namespace protobuf // int32 student_quited = 4; inline void MessageOfAll::clear_student_quited() { - student_quited_ = 0; + _impl_.student_quited_ = 0; } inline int32_t MessageOfAll::_internal_student_quited() const { - return student_quited_; + return _impl_.student_quited_; } inline int32_t MessageOfAll::student_quited() const { @@ -8843,7 +8950,7 @@ namespace protobuf } inline void MessageOfAll::_internal_set_student_quited(int32_t value) { - student_quited_ = value; + _impl_.student_quited_ = value; } inline void MessageOfAll::set_student_quited(int32_t value) { @@ -8854,11 +8961,11 @@ namespace protobuf // int32 student_score = 5; inline void MessageOfAll::clear_student_score() { - student_score_ = 0; + _impl_.student_score_ = 0; } inline int32_t MessageOfAll::_internal_student_score() const { - return student_score_; + return _impl_.student_score_; } inline int32_t MessageOfAll::student_score() const { @@ -8867,7 +8974,7 @@ namespace protobuf } inline void MessageOfAll::_internal_set_student_score(int32_t value) { - student_score_ = value; + _impl_.student_score_ = value; } inline void MessageOfAll::set_student_score(int32_t value) { @@ -8878,11 +8985,11 @@ namespace protobuf // int32 tricker_score = 6; inline void MessageOfAll::clear_tricker_score() { - tricker_score_ = 0; + _impl_.tricker_score_ = 0; } inline int32_t MessageOfAll::_internal_tricker_score() const { - return tricker_score_; + return _impl_.tricker_score_; } inline int32_t MessageOfAll::tricker_score() const { @@ -8891,7 +8998,7 @@ namespace protobuf } inline void MessageOfAll::_internal_set_tricker_score(int32_t value) { - tricker_score_ = value; + _impl_.tricker_score_ = value; } inline void MessageOfAll::set_tricker_score(int32_t value) { @@ -8906,7 +9013,7 @@ namespace protobuf // repeated .protobuf.MessageOfObj obj_message = 1; inline int MessageToClient::_internal_obj_message_size() const { - return obj_message_.size(); + return _impl_.obj_message_.size(); } inline int MessageToClient::obj_message_size() const { @@ -8914,22 +9021,22 @@ namespace protobuf } inline void MessageToClient::clear_obj_message() { - obj_message_.Clear(); + _impl_.obj_message_.Clear(); } inline ::protobuf::MessageOfObj* MessageToClient::mutable_obj_message(int index) { // @@protoc_insertion_point(field_mutable:protobuf.MessageToClient.obj_message) - return obj_message_.Mutable(index); + return _impl_.obj_message_.Mutable(index); } inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::protobuf::MessageOfObj>* MessageToClient::mutable_obj_message() { // @@protoc_insertion_point(field_mutable_list:protobuf.MessageToClient.obj_message) - return &obj_message_; + return &_impl_.obj_message_; } inline const ::protobuf::MessageOfObj& MessageToClient::_internal_obj_message(int index) const { - return obj_message_.Get(index); + return _impl_.obj_message_.Get(index); } inline const ::protobuf::MessageOfObj& MessageToClient::obj_message(int index) const { @@ -8938,7 +9045,7 @@ namespace protobuf } inline ::protobuf::MessageOfObj* MessageToClient::_internal_add_obj_message() { - return obj_message_.Add(); + return _impl_.obj_message_.Add(); } inline ::protobuf::MessageOfObj* MessageToClient::add_obj_message() { @@ -8950,17 +9057,17 @@ namespace protobuf MessageToClient::obj_message() const { // @@protoc_insertion_point(field_list:protobuf.MessageToClient.obj_message) - return obj_message_; + return _impl_.obj_message_; } // .protobuf.GameState game_state = 2; inline void MessageToClient::clear_game_state() { - game_state_ = 0; + _impl_.game_state_ = 0; } inline ::protobuf::GameState MessageToClient::_internal_game_state() const { - return static_cast<::protobuf::GameState>(game_state_); + return static_cast<::protobuf::GameState>(_impl_.game_state_); } inline ::protobuf::GameState MessageToClient::game_state() const { @@ -8969,7 +9076,7 @@ namespace protobuf } inline void MessageToClient::_internal_set_game_state(::protobuf::GameState value) { - game_state_ = value; + _impl_.game_state_ = value; } inline void MessageToClient::set_game_state(::protobuf::GameState value) { @@ -8980,7 +9087,7 @@ namespace protobuf // .protobuf.MessageOfAll all_message = 3; inline bool MessageToClient::_internal_has_all_message() const { - return this != internal_default_instance() && all_message_ != nullptr; + return this != internal_default_instance() && _impl_.all_message_ != nullptr; } inline bool MessageToClient::has_all_message() const { @@ -8988,15 +9095,15 @@ namespace protobuf } inline void MessageToClient::clear_all_message() { - if (GetArenaForAllocation() == nullptr && all_message_ != nullptr) + if (GetArenaForAllocation() == nullptr && _impl_.all_message_ != nullptr) { - delete all_message_; + delete _impl_.all_message_; } - all_message_ = nullptr; + _impl_.all_message_ = nullptr; } inline const ::protobuf::MessageOfAll& MessageToClient::_internal_all_message() const { - const ::protobuf::MessageOfAll* p = all_message_; + const ::protobuf::MessageOfAll* p = _impl_.all_message_; return p != nullptr ? *p : reinterpret_cast(::protobuf::_MessageOfAll_default_instance_); } inline const ::protobuf::MessageOfAll& MessageToClient::all_message() const @@ -9010,9 +9117,9 @@ namespace protobuf { if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(all_message_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.all_message_); } - all_message_ = all_message; + _impl_.all_message_ = all_message; if (all_message) { } @@ -9023,8 +9130,8 @@ namespace protobuf } inline ::protobuf::MessageOfAll* MessageToClient::release_all_message() { - ::protobuf::MessageOfAll* temp = all_message_; - all_message_ = nullptr; + ::protobuf::MessageOfAll* temp = _impl_.all_message_; + _impl_.all_message_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); @@ -9044,18 +9151,18 @@ namespace protobuf { // @@protoc_insertion_point(field_release:protobuf.MessageToClient.all_message) - ::protobuf::MessageOfAll* temp = all_message_; - all_message_ = nullptr; + ::protobuf::MessageOfAll* temp = _impl_.all_message_; + _impl_.all_message_ = nullptr; return temp; } inline ::protobuf::MessageOfAll* MessageToClient::_internal_mutable_all_message() { - if (all_message_ == nullptr) + if (_impl_.all_message_ == nullptr) { auto* p = CreateMaybeMessage<::protobuf::MessageOfAll>(GetArenaForAllocation()); - all_message_ = p; + _impl_.all_message_ = p; } - return all_message_; + return _impl_.all_message_; } inline ::protobuf::MessageOfAll* MessageToClient::mutable_all_message() { @@ -9068,12 +9175,12 @@ namespace protobuf ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete all_message_; + delete _impl_.all_message_; } if (all_message) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::protobuf::MessageOfAll>::GetOwningArena(all_message); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(all_message); if (message_arena != submessage_arena) { all_message = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( @@ -9084,7 +9191,7 @@ namespace protobuf else { } - all_message_ = all_message; + _impl_.all_message_ = all_message; // @@protoc_insertion_point(field_set_allocated:protobuf.MessageToClient.all_message) } @@ -9095,11 +9202,11 @@ namespace protobuf // int64 actual_speed = 1; inline void MoveRes::clear_actual_speed() { - actual_speed_ = int64_t{0}; + _impl_.actual_speed_ = int64_t{0}; } inline int64_t MoveRes::_internal_actual_speed() const { - return actual_speed_; + return _impl_.actual_speed_; } inline int64_t MoveRes::actual_speed() const { @@ -9108,7 +9215,7 @@ namespace protobuf } inline void MoveRes::_internal_set_actual_speed(int64_t value) { - actual_speed_ = value; + _impl_.actual_speed_ = value; } inline void MoveRes::set_actual_speed(int64_t value) { @@ -9119,11 +9226,11 @@ namespace protobuf // double actual_angle = 2; inline void MoveRes::clear_actual_angle() { - actual_angle_ = 0; + _impl_.actual_angle_ = 0; } inline double MoveRes::_internal_actual_angle() const { - return actual_angle_; + return _impl_.actual_angle_; } inline double MoveRes::actual_angle() const { @@ -9132,7 +9239,7 @@ namespace protobuf } inline void MoveRes::_internal_set_actual_angle(double value) { - actual_angle_ = value; + _impl_.actual_angle_ = value; } inline void MoveRes::set_actual_angle(double value) { @@ -9143,11 +9250,11 @@ namespace protobuf // bool act_success = 3; inline void MoveRes::clear_act_success() { - act_success_ = false; + _impl_.act_success_ = false; } inline bool MoveRes::_internal_act_success() const { - return act_success_; + return _impl_.act_success_; } inline bool MoveRes::act_success() const { @@ -9156,7 +9263,7 @@ namespace protobuf } inline void MoveRes::_internal_set_act_success(bool value) { - act_success_ = value; + _impl_.act_success_ = value; } inline void MoveRes::set_act_success(bool value) { @@ -9171,11 +9278,11 @@ namespace protobuf // bool act_success = 1; inline void BoolRes::clear_act_success() { - act_success_ = false; + _impl_.act_success_ = false; } inline bool BoolRes::_internal_act_success() const { - return act_success_; + return _impl_.act_success_; } inline bool BoolRes::act_success() const { @@ -9184,7 +9291,7 @@ namespace protobuf } inline void BoolRes::_internal_set_act_success(bool value) { - act_success_ = value; + _impl_.act_success_ = value; } inline void BoolRes::set_act_success(bool value) { diff --git a/CAPI/cpp/proto/Message2Server.pb.cc b/CAPI/cpp/proto/Message2Server.pb.cc index 60620bb..e54b2cd 100644 --- a/CAPI/cpp/proto/Message2Server.pb.cc +++ b/CAPI/cpp/proto/Message2Server.pb.cc @@ -16,22 +16,23 @@ #include PROTOBUF_PRAGMA_INIT_SEG + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + namespace protobuf { - constexpr PlayerMsg::PlayerMsg( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized + PROTOBUF_CONSTEXPR PlayerMsg::PlayerMsg( + ::_pbi::ConstantInitialized ) : - player_id_(int64_t{0}), - player_type_(0) - - , - _oneof_case_{} + _impl_{ + /*decltype(_impl_.player_id_)*/ int64_t{0}, /*decltype(_impl_.player_type_)*/ 0, /*decltype(_impl_.job_type_)*/ {}, /*decltype(_impl_._cached_size_)*/ {}, /*decltype(_impl_._oneof_case_)*/ {}} { } struct PlayerMsgDefaultTypeInternal { - constexpr PlayerMsgDefaultTypeInternal() : - _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) + PROTOBUF_CONSTEXPR PlayerMsgDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) { } ~PlayerMsgDefaultTypeInternal() @@ -42,19 +43,18 @@ namespace protobuf PlayerMsg _instance; }; }; - PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PlayerMsgDefaultTypeInternal _PlayerMsg_default_instance_; - constexpr MoveMsg::MoveMsg( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized + PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PlayerMsgDefaultTypeInternal _PlayerMsg_default_instance_; + PROTOBUF_CONSTEXPR MoveMsg::MoveMsg( + ::_pbi::ConstantInitialized ) : - player_id_(int64_t{0}), - angle_(0), - time_in_milliseconds_(int64_t{0}) + _impl_{ + /*decltype(_impl_.player_id_)*/ int64_t{0}, /*decltype(_impl_.angle_)*/ 0, /*decltype(_impl_.time_in_milliseconds_)*/ int64_t{0}, /*decltype(_impl_._cached_size_)*/ {}} { } struct MoveMsgDefaultTypeInternal { - constexpr MoveMsgDefaultTypeInternal() : - _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) + PROTOBUF_CONSTEXPR MoveMsgDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) { } ~MoveMsgDefaultTypeInternal() @@ -65,18 +65,18 @@ namespace protobuf MoveMsg _instance; }; }; - PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MoveMsgDefaultTypeInternal _MoveMsg_default_instance_; - constexpr PropMsg::PropMsg( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized + PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MoveMsgDefaultTypeInternal _MoveMsg_default_instance_; + PROTOBUF_CONSTEXPR PropMsg::PropMsg( + ::_pbi::ConstantInitialized ) : - player_id_(int64_t{0}), - prop_type_(0) + _impl_{ + /*decltype(_impl_.player_id_)*/ int64_t{0}, /*decltype(_impl_.prop_type_)*/ 0, /*decltype(_impl_._cached_size_)*/ {}} { } struct PropMsgDefaultTypeInternal { - constexpr PropMsgDefaultTypeInternal() : - _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) + PROTOBUF_CONSTEXPR PropMsgDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) { } ~PropMsgDefaultTypeInternal() @@ -87,19 +87,18 @@ namespace protobuf PropMsg _instance; }; }; - PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PropMsgDefaultTypeInternal _PropMsg_default_instance_; - constexpr SendMsg::SendMsg( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized + PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PropMsgDefaultTypeInternal _PropMsg_default_instance_; + PROTOBUF_CONSTEXPR SendMsg::SendMsg( + ::_pbi::ConstantInitialized ) : - message_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string), - player_id_(int64_t{0}), - to_player_id_(int64_t{0}) + _impl_{ + /*decltype(_impl_.message_)*/ {&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}, /*decltype(_impl_.player_id_)*/ int64_t{0}, /*decltype(_impl_.to_player_id_)*/ int64_t{0}, /*decltype(_impl_._cached_size_)*/ {}} { } struct SendMsgDefaultTypeInternal { - constexpr SendMsgDefaultTypeInternal() : - _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) + PROTOBUF_CONSTEXPR SendMsgDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) { } ~SendMsgDefaultTypeInternal() @@ -110,18 +109,18 @@ namespace protobuf SendMsg _instance; }; }; - PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SendMsgDefaultTypeInternal _SendMsg_default_instance_; - constexpr AttackMsg::AttackMsg( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized + PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SendMsgDefaultTypeInternal _SendMsg_default_instance_; + PROTOBUF_CONSTEXPR AttackMsg::AttackMsg( + ::_pbi::ConstantInitialized ) : - player_id_(int64_t{0}), - angle_(0) + _impl_{ + /*decltype(_impl_.player_id_)*/ int64_t{0}, /*decltype(_impl_.angle_)*/ 0, /*decltype(_impl_._cached_size_)*/ {}} { } struct AttackMsgDefaultTypeInternal { - constexpr AttackMsgDefaultTypeInternal() : - _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) + PROTOBUF_CONSTEXPR AttackMsgDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) { } ~AttackMsgDefaultTypeInternal() @@ -132,17 +131,18 @@ namespace protobuf AttackMsg _instance; }; }; - PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AttackMsgDefaultTypeInternal _AttackMsg_default_instance_; - constexpr IDMsg::IDMsg( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized + PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AttackMsgDefaultTypeInternal _AttackMsg_default_instance_; + PROTOBUF_CONSTEXPR IDMsg::IDMsg( + ::_pbi::ConstantInitialized ) : - player_id_(int64_t{0}) + _impl_{ + /*decltype(_impl_.player_id_)*/ int64_t{0}, /*decltype(_impl_._cached_size_)*/ {}} { } struct IDMsgDefaultTypeInternal { - constexpr IDMsgDefaultTypeInternal() : - _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) + PROTOBUF_CONSTEXPR IDMsgDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) { } ~IDMsgDefaultTypeInternal() @@ -153,18 +153,18 @@ namespace protobuf IDMsg _instance; }; }; - PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT IDMsgDefaultTypeInternal _IDMsg_default_instance_; - constexpr TreatAndRescueMsg::TreatAndRescueMsg( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized + PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IDMsgDefaultTypeInternal _IDMsg_default_instance_; + PROTOBUF_CONSTEXPR TreatAndRescueMsg::TreatAndRescueMsg( + ::_pbi::ConstantInitialized ) : - player_id_(int64_t{0}), - to_player_id_(int64_t{0}) + _impl_{ + /*decltype(_impl_.player_id_)*/ int64_t{0}, /*decltype(_impl_.to_player_id_)*/ int64_t{0}, /*decltype(_impl_._cached_size_)*/ {}} { } struct TreatAndRescueMsgDefaultTypeInternal { - constexpr TreatAndRescueMsgDefaultTypeInternal() : - _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) + PROTOBUF_CONSTEXPR TreatAndRescueMsgDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) { } ~TreatAndRescueMsgDefaultTypeInternal() @@ -175,18 +175,18 @@ namespace protobuf TreatAndRescueMsg _instance; }; }; - PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT TreatAndRescueMsgDefaultTypeInternal _TreatAndRescueMsg_default_instance_; - constexpr SkillMsg::SkillMsg( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized + PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TreatAndRescueMsgDefaultTypeInternal _TreatAndRescueMsg_default_instance_; + PROTOBUF_CONSTEXPR SkillMsg::SkillMsg( + ::_pbi::ConstantInitialized ) : - player_id_(int64_t{0}), - skill_id_(0) + _impl_{ + /*decltype(_impl_.player_id_)*/ int64_t{0}, /*decltype(_impl_.skill_id_)*/ 0, /*decltype(_impl_._cached_size_)*/ {}} { } struct SkillMsgDefaultTypeInternal { - constexpr SkillMsgDefaultTypeInternal() : - _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) + PROTOBUF_CONSTEXPR SkillMsgDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) { } ~SkillMsgDefaultTypeInternal() @@ -197,83 +197,83 @@ namespace protobuf SkillMsg _instance; }; }; - PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SkillMsgDefaultTypeInternal _SkillMsg_default_instance_; + PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SkillMsgDefaultTypeInternal _SkillMsg_default_instance_; } // namespace protobuf -static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_Message2Server_2eproto[8]; -static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_Message2Server_2eproto = nullptr; -static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_Message2Server_2eproto = nullptr; +static ::_pb::Metadata file_level_metadata_Message2Server_2eproto[8]; +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_Message2Server_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_Message2Server_2eproto = nullptr; const uint32_t TableStruct_Message2Server_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::protobuf::PlayerMsg, _internal_metadata_), ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::protobuf::PlayerMsg, _oneof_case_[0]), + PROTOBUF_FIELD_OFFSET(::protobuf::PlayerMsg, _impl_._oneof_case_[0]), ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::protobuf::PlayerMsg, player_id_), - ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, - ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, - PROTOBUF_FIELD_OFFSET(::protobuf::PlayerMsg, player_type_), - PROTOBUF_FIELD_OFFSET(::protobuf::PlayerMsg, job_type_), + PROTOBUF_FIELD_OFFSET(::protobuf::PlayerMsg, _impl_.player_id_), + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::protobuf::PlayerMsg, _impl_.player_type_), + PROTOBUF_FIELD_OFFSET(::protobuf::PlayerMsg, _impl_.job_type_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::protobuf::MoveMsg, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::protobuf::MoveMsg, player_id_), - PROTOBUF_FIELD_OFFSET(::protobuf::MoveMsg, angle_), - PROTOBUF_FIELD_OFFSET(::protobuf::MoveMsg, time_in_milliseconds_), + PROTOBUF_FIELD_OFFSET(::protobuf::MoveMsg, _impl_.player_id_), + PROTOBUF_FIELD_OFFSET(::protobuf::MoveMsg, _impl_.angle_), + PROTOBUF_FIELD_OFFSET(::protobuf::MoveMsg, _impl_.time_in_milliseconds_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::protobuf::PropMsg, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::protobuf::PropMsg, player_id_), - PROTOBUF_FIELD_OFFSET(::protobuf::PropMsg, prop_type_), + PROTOBUF_FIELD_OFFSET(::protobuf::PropMsg, _impl_.player_id_), + PROTOBUF_FIELD_OFFSET(::protobuf::PropMsg, _impl_.prop_type_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::protobuf::SendMsg, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::protobuf::SendMsg, player_id_), - PROTOBUF_FIELD_OFFSET(::protobuf::SendMsg, to_player_id_), - PROTOBUF_FIELD_OFFSET(::protobuf::SendMsg, message_), + PROTOBUF_FIELD_OFFSET(::protobuf::SendMsg, _impl_.player_id_), + PROTOBUF_FIELD_OFFSET(::protobuf::SendMsg, _impl_.to_player_id_), + PROTOBUF_FIELD_OFFSET(::protobuf::SendMsg, _impl_.message_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::protobuf::AttackMsg, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::protobuf::AttackMsg, player_id_), - PROTOBUF_FIELD_OFFSET(::protobuf::AttackMsg, angle_), + PROTOBUF_FIELD_OFFSET(::protobuf::AttackMsg, _impl_.player_id_), + PROTOBUF_FIELD_OFFSET(::protobuf::AttackMsg, _impl_.angle_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::protobuf::IDMsg, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::protobuf::IDMsg, player_id_), + PROTOBUF_FIELD_OFFSET(::protobuf::IDMsg, _impl_.player_id_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::protobuf::TreatAndRescueMsg, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::protobuf::TreatAndRescueMsg, player_id_), - PROTOBUF_FIELD_OFFSET(::protobuf::TreatAndRescueMsg, to_player_id_), + PROTOBUF_FIELD_OFFSET(::protobuf::TreatAndRescueMsg, _impl_.player_id_), + PROTOBUF_FIELD_OFFSET(::protobuf::TreatAndRescueMsg, _impl_.to_player_id_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::protobuf::SkillMsg, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::protobuf::SkillMsg, player_id_), - PROTOBUF_FIELD_OFFSET(::protobuf::SkillMsg, skill_id_), + PROTOBUF_FIELD_OFFSET(::protobuf::SkillMsg, _impl_.player_id_), + PROTOBUF_FIELD_OFFSET(::protobuf::SkillMsg, _impl_.skill_id_), }; -static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { {0, -1, -1, sizeof(::protobuf::PlayerMsg)}, {11, -1, -1, sizeof(::protobuf::MoveMsg)}, {20, -1, -1, sizeof(::protobuf::PropMsg)}, @@ -284,15 +284,15 @@ static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOB {60, -1, -1, sizeof(::protobuf::SkillMsg)}, }; -static ::PROTOBUF_NAMESPACE_ID::Message const* const file_default_instances[] = { - reinterpret_cast(&::protobuf::_PlayerMsg_default_instance_), - reinterpret_cast(&::protobuf::_MoveMsg_default_instance_), - reinterpret_cast(&::protobuf::_PropMsg_default_instance_), - reinterpret_cast(&::protobuf::_SendMsg_default_instance_), - reinterpret_cast(&::protobuf::_AttackMsg_default_instance_), - reinterpret_cast(&::protobuf::_IDMsg_default_instance_), - reinterpret_cast(&::protobuf::_TreatAndRescueMsg_default_instance_), - reinterpret_cast(&::protobuf::_SkillMsg_default_instance_), +static const ::_pb::Message* const file_default_instances[] = { + &::protobuf::_PlayerMsg_default_instance_._instance, + &::protobuf::_MoveMsg_default_instance_._instance, + &::protobuf::_PropMsg_default_instance_._instance, + &::protobuf::_SendMsg_default_instance_._instance, + &::protobuf::_AttackMsg_default_instance_._instance, + &::protobuf::_IDMsg_default_instance_._instance, + &::protobuf::_TreatAndRescueMsg_default_instance_._instance, + &::protobuf::_SkillMsg_default_instance_._instance, }; const char descriptor_table_protodef_Message2Server_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = @@ -312,11 +312,11 @@ const char descriptor_table_protodef_Message2Server_2eproto[] PROTOBUF_SECTION_V "\003\"<\n\021TreatAndRescueMsg\022\021\n\tplayer_id\030\001 \001(" "\003\022\024\n\014to_player_id\030\002 \001(\003\"/\n\010SkillMsg\022\021\n\tp" "layer_id\030\001 \001(\003\022\020\n\010skill_id\030\002 \001(\005b\006proto3"; -static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable* const descriptor_table_Message2Server_2eproto_deps[1] = { +static const ::_pbi::DescriptorTable* const descriptor_table_Message2Server_2eproto_deps[1] = { &::descriptor_table_MessageType_2eproto, }; -static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_Message2Server_2eproto_once; -const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_Message2Server_2eproto = { +static ::_pbi::once_flag descriptor_table_Message2Server_2eproto_once; +const ::_pbi::DescriptorTable descriptor_table_Message2Server_2eproto = { false, false, 640, @@ -333,13 +333,13 @@ const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_Messag file_level_enum_descriptors_Message2Server_2eproto, file_level_service_descriptors_Message2Server_2eproto, }; -PROTOBUF_ATTRIBUTE_WEAK const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable* descriptor_table_Message2Server_2eproto_getter() +PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_Message2Server_2eproto_getter() { return &descriptor_table_Message2Server_2eproto; } // Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY static ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptorsRunner dynamic_init_dummy_Message2Server_2eproto(&descriptor_table_Message2Server_2eproto); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_Message2Server_2eproto(&descriptor_table_Message2Server_2eproto); namespace protobuf { @@ -353,29 +353,30 @@ namespace protobuf PlayerMsg::PlayerMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) - { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:protobuf.PlayerMsg) } PlayerMsg::PlayerMsg(const PlayerMsg& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + PlayerMsg* const _this = this; + (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.player_id_){}, decltype(_impl_.player_type_){}, decltype(_impl_.job_type_){}, /*decltype(_impl_._cached_size_)*/ {}, /*decltype(_impl_._oneof_case_)*/ {}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::memcpy(&player_id_, &from.player_id_, static_cast(reinterpret_cast(&player_type_) - reinterpret_cast(&player_id_)) + sizeof(player_type_)); + ::memcpy(&_impl_.player_id_, &from._impl_.player_id_, static_cast(reinterpret_cast(&_impl_.player_type_) - reinterpret_cast(&_impl_.player_id_)) + sizeof(_impl_.player_type_)); clear_has_job_type(); switch (from.job_type_case()) { case kStudentType: { - _internal_set_student_type(from._internal_student_type()); + _this->_internal_set_student_type(from._internal_student_type()); break; } case kTrickerType: { - _internal_set_tricker_type(from._internal_tricker_type()); + _this->_internal_set_tricker_type(from._internal_tricker_type()); break; } case JOB_TYPE_NOT_SET: @@ -386,19 +387,26 @@ namespace protobuf // @@protoc_insertion_point(copy_constructor:protobuf.PlayerMsg) } - inline void PlayerMsg::SharedCtor() + inline void PlayerMsg::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned + ) { - ::memset(reinterpret_cast(this) + static_cast(reinterpret_cast(&player_id_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&player_type_) - reinterpret_cast(&player_id_)) + sizeof(player_type_)); + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.player_id_){int64_t{0}}, decltype(_impl_.player_type_){0}, decltype(_impl_.job_type_){}, /*decltype(_impl_._cached_size_)*/ {}, /*decltype(_impl_._oneof_case_)*/ {}}; clear_has_job_type(); } PlayerMsg::~PlayerMsg() { // @@protoc_insertion_point(destructor:protobuf.PlayerMsg) - if (GetArenaForAllocation() != nullptr) + if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) + { + (void)arena; return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void PlayerMsg::SharedDtor() @@ -410,17 +418,9 @@ namespace protobuf } } - void PlayerMsg::ArenaDtor(void* object) - { - PlayerMsg* _this = reinterpret_cast(object); - (void)_this; - } - void PlayerMsg::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) - { - } void PlayerMsg::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void PlayerMsg::clear_job_type() @@ -443,7 +443,7 @@ namespace protobuf break; } } - _oneof_case_[0] = JOB_TYPE_NOT_SET; + _impl_._oneof_case_[0] = JOB_TYPE_NOT_SET; } void PlayerMsg::Clear() @@ -453,12 +453,12 @@ namespace protobuf // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; - ::memset(&player_id_, 0, static_cast(reinterpret_cast(&player_type_) - reinterpret_cast(&player_id_)) + sizeof(player_type_)); + ::memset(&_impl_.player_id_, 0, static_cast(reinterpret_cast(&_impl_.player_type_) - reinterpret_cast(&_impl_.player_id_)) + sizeof(_impl_.player_type_)); clear_job_type(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - const char* PlayerMsg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) + const char* PlayerMsg::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) \ if (PROTOBUF_PREDICT_FALSE(!(x))) \ @@ -466,14 +466,14 @@ namespace protobuf while (!ctx->Done(&ptr)) { uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // int64 player_id = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else @@ -550,14 +550,14 @@ namespace protobuf if (this->_internal_player_id() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_player_id(), target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(1, this->_internal_player_id(), target); } // .protobuf.StudentType student_type = 2; if (_internal_has_student_type()) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 2, this->_internal_student_type(), target ); } @@ -566,7 +566,7 @@ namespace protobuf if (_internal_has_tricker_type()) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 3, this->_internal_tricker_type(), target ); } @@ -575,14 +575,14 @@ namespace protobuf if (this->_internal_player_type() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 4, this->_internal_player_type(), target ); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream ); } @@ -602,14 +602,14 @@ namespace protobuf // int64 player_id = 1; if (this->_internal_player_id() != 0) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_player_id()); + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_player_id()); } // .protobuf.PlayerType player_type = 4; if (this->_internal_player_type() != 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_player_type()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_player_type()); } switch (job_type_case()) @@ -618,14 +618,14 @@ namespace protobuf case kStudentType: { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_student_type()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_student_type()); break; } // .protobuf.TrickerType tricker_type = 3; case kTrickerType: { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_tricker_type()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_tricker_type()); break; } case JOB_TYPE_NOT_SET: @@ -633,49 +633,44 @@ namespace protobuf break; } } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PlayerMsg::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, PlayerMsg::MergeImpl}; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* PlayerMsg::GetClassData() const { return &_class_data_; } - void PlayerMsg::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from) - { - static_cast(to)->MergeFrom( - static_cast(from) - ); - } - - void PlayerMsg::MergeFrom(const PlayerMsg& from) + void PlayerMsg::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.PlayerMsg) - GOOGLE_DCHECK_NE(&from, this); + GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void)cached_has_bits; if (from._internal_player_id() != 0) { - _internal_set_player_id(from._internal_player_id()); + _this->_internal_set_player_id(from._internal_player_id()); } if (from._internal_player_type() != 0) { - _internal_set_player_type(from._internal_player_type()); + _this->_internal_set_player_type(from._internal_player_type()); } switch (from.job_type_case()) { case kStudentType: { - _internal_set_student_type(from._internal_student_type()); + _this->_internal_set_student_type(from._internal_student_type()); break; } case kTrickerType: { - _internal_set_tricker_type(from._internal_tricker_type()); + _this->_internal_set_tricker_type(from._internal_tricker_type()); break; } case JOB_TYPE_NOT_SET: @@ -683,7 +678,7 @@ namespace protobuf break; } } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void PlayerMsg::CopyFrom(const PlayerMsg& from) @@ -705,17 +700,17 @@ namespace protobuf using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(PlayerMsg, player_type_) + sizeof(PlayerMsg::player_type_) - PROTOBUF_FIELD_OFFSET(PlayerMsg, player_id_)>( - reinterpret_cast(&player_id_), - reinterpret_cast(&other->player_id_) + PROTOBUF_FIELD_OFFSET(PlayerMsg, _impl_.player_type_) + sizeof(PlayerMsg::_impl_.player_type_) - PROTOBUF_FIELD_OFFSET(PlayerMsg, _impl_.player_id_)>( + reinterpret_cast(&_impl_.player_id_), + reinterpret_cast(&other->_impl_.player_id_) ); - swap(job_type_, other->job_type_); - swap(_oneof_case_[0], other->_oneof_case_[0]); + swap(_impl_.job_type_, other->_impl_.job_type_); + swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); } ::PROTOBUF_NAMESPACE_ID::Metadata PlayerMsg::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_Message2Server_2eproto_getter, &descriptor_table_Message2Server_2eproto_once, file_level_metadata_Message2Server_2eproto[0] ); } @@ -730,33 +725,41 @@ namespace protobuf MoveMsg::MoveMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) - { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:protobuf.MoveMsg) } MoveMsg::MoveMsg(const MoveMsg& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + MoveMsg* const _this = this; + (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.player_id_){}, decltype(_impl_.angle_){}, decltype(_impl_.time_in_milliseconds_){}, /*decltype(_impl_._cached_size_)*/ {}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::memcpy(&player_id_, &from.player_id_, static_cast(reinterpret_cast(&time_in_milliseconds_) - reinterpret_cast(&player_id_)) + sizeof(time_in_milliseconds_)); + ::memcpy(&_impl_.player_id_, &from._impl_.player_id_, static_cast(reinterpret_cast(&_impl_.time_in_milliseconds_) - reinterpret_cast(&_impl_.player_id_)) + sizeof(_impl_.time_in_milliseconds_)); // @@protoc_insertion_point(copy_constructor:protobuf.MoveMsg) } - inline void MoveMsg::SharedCtor() + inline void MoveMsg::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned + ) { - ::memset(reinterpret_cast(this) + static_cast(reinterpret_cast(&player_id_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&time_in_milliseconds_) - reinterpret_cast(&player_id_)) + sizeof(time_in_milliseconds_)); + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.player_id_){int64_t{0}}, decltype(_impl_.angle_){0}, decltype(_impl_.time_in_milliseconds_){int64_t{0}}, /*decltype(_impl_._cached_size_)*/ {}}; } MoveMsg::~MoveMsg() { // @@protoc_insertion_point(destructor:protobuf.MoveMsg) - if (GetArenaForAllocation() != nullptr) + if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) + { + (void)arena; return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void MoveMsg::SharedDtor() @@ -764,17 +767,9 @@ namespace protobuf GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } - void MoveMsg::ArenaDtor(void* object) - { - MoveMsg* _this = reinterpret_cast(object); - (void)_this; - } - void MoveMsg::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) - { - } void MoveMsg::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void MoveMsg::Clear() @@ -784,11 +779,11 @@ namespace protobuf // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; - ::memset(&player_id_, 0, static_cast(reinterpret_cast(&time_in_milliseconds_) - reinterpret_cast(&player_id_)) + sizeof(time_in_milliseconds_)); + ::memset(&_impl_.player_id_, 0, static_cast(reinterpret_cast(&_impl_.time_in_milliseconds_) - reinterpret_cast(&_impl_.player_id_)) + sizeof(_impl_.time_in_milliseconds_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - const char* MoveMsg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) + const char* MoveMsg::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) \ if (PROTOBUF_PREDICT_FALSE(!(x))) \ @@ -796,14 +791,14 @@ namespace protobuf while (!ctx->Done(&ptr)) { uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // int64 player_id = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else @@ -813,7 +808,7 @@ namespace protobuf case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 17)) { - angle_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + _impl_.angle_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(double); } else @@ -823,7 +818,7 @@ namespace protobuf case 3: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - time_in_milliseconds_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.time_in_milliseconds_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else @@ -867,7 +862,7 @@ namespace protobuf if (this->_internal_player_id() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_player_id(), target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(1, this->_internal_player_id(), target); } // double angle = 2; @@ -878,19 +873,19 @@ namespace protobuf if (raw_angle != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(2, this->_internal_angle(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(2, this->_internal_angle(), target); } // int64 time_in_milliseconds = 3; if (this->_internal_time_in_milliseconds() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(3, this->_internal_time_in_milliseconds(), target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(3, this->_internal_time_in_milliseconds(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream ); } @@ -910,7 +905,7 @@ namespace protobuf // int64 player_id = 1; if (this->_internal_player_id() != 0) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_player_id()); + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_player_id()); } // double angle = 2; @@ -926,37 +921,32 @@ namespace protobuf // int64 time_in_milliseconds = 3; if (this->_internal_time_in_milliseconds() != 0) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_time_in_milliseconds()); + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_time_in_milliseconds()); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MoveMsg::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, MoveMsg::MergeImpl}; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MoveMsg::GetClassData() const { return &_class_data_; } - void MoveMsg::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from) - { - static_cast(to)->MergeFrom( - static_cast(from) - ); - } - - void MoveMsg::MergeFrom(const MoveMsg& from) + void MoveMsg::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MoveMsg) - GOOGLE_DCHECK_NE(&from, this); + GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void)cached_has_bits; if (from._internal_player_id() != 0) { - _internal_set_player_id(from._internal_player_id()); + _this->_internal_set_player_id(from._internal_player_id()); } static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_angle = from._internal_angle(); @@ -964,13 +954,13 @@ namespace protobuf memcpy(&raw_angle, &tmp_angle, sizeof(tmp_angle)); if (raw_angle != 0) { - _internal_set_angle(from._internal_angle()); + _this->_internal_set_angle(from._internal_angle()); } if (from._internal_time_in_milliseconds() != 0) { - _internal_set_time_in_milliseconds(from._internal_time_in_milliseconds()); + _this->_internal_set_time_in_milliseconds(from._internal_time_in_milliseconds()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MoveMsg::CopyFrom(const MoveMsg& from) @@ -992,15 +982,15 @@ namespace protobuf using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(MoveMsg, time_in_milliseconds_) + sizeof(MoveMsg::time_in_milliseconds_) - PROTOBUF_FIELD_OFFSET(MoveMsg, player_id_)>( - reinterpret_cast(&player_id_), - reinterpret_cast(&other->player_id_) + PROTOBUF_FIELD_OFFSET(MoveMsg, _impl_.time_in_milliseconds_) + sizeof(MoveMsg::_impl_.time_in_milliseconds_) - PROTOBUF_FIELD_OFFSET(MoveMsg, _impl_.player_id_)>( + reinterpret_cast(&_impl_.player_id_), + reinterpret_cast(&other->_impl_.player_id_) ); } ::PROTOBUF_NAMESPACE_ID::Metadata MoveMsg::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_Message2Server_2eproto_getter, &descriptor_table_Message2Server_2eproto_once, file_level_metadata_Message2Server_2eproto[1] ); } @@ -1015,33 +1005,41 @@ namespace protobuf PropMsg::PropMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) - { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:protobuf.PropMsg) } PropMsg::PropMsg(const PropMsg& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + PropMsg* const _this = this; + (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.player_id_){}, decltype(_impl_.prop_type_){}, /*decltype(_impl_._cached_size_)*/ {}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::memcpy(&player_id_, &from.player_id_, static_cast(reinterpret_cast(&prop_type_) - reinterpret_cast(&player_id_)) + sizeof(prop_type_)); + ::memcpy(&_impl_.player_id_, &from._impl_.player_id_, static_cast(reinterpret_cast(&_impl_.prop_type_) - reinterpret_cast(&_impl_.player_id_)) + sizeof(_impl_.prop_type_)); // @@protoc_insertion_point(copy_constructor:protobuf.PropMsg) } - inline void PropMsg::SharedCtor() + inline void PropMsg::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned + ) { - ::memset(reinterpret_cast(this) + static_cast(reinterpret_cast(&player_id_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&prop_type_) - reinterpret_cast(&player_id_)) + sizeof(prop_type_)); + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.player_id_){int64_t{0}}, decltype(_impl_.prop_type_){0}, /*decltype(_impl_._cached_size_)*/ {}}; } PropMsg::~PropMsg() { // @@protoc_insertion_point(destructor:protobuf.PropMsg) - if (GetArenaForAllocation() != nullptr) + if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) + { + (void)arena; return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void PropMsg::SharedDtor() @@ -1049,17 +1047,9 @@ namespace protobuf GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } - void PropMsg::ArenaDtor(void* object) - { - PropMsg* _this = reinterpret_cast(object); - (void)_this; - } - void PropMsg::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) - { - } void PropMsg::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void PropMsg::Clear() @@ -1069,11 +1059,11 @@ namespace protobuf // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; - ::memset(&player_id_, 0, static_cast(reinterpret_cast(&prop_type_) - reinterpret_cast(&player_id_)) + sizeof(prop_type_)); + ::memset(&_impl_.player_id_, 0, static_cast(reinterpret_cast(&_impl_.prop_type_) - reinterpret_cast(&_impl_.player_id_)) + sizeof(_impl_.prop_type_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - const char* PropMsg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) + const char* PropMsg::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) \ if (PROTOBUF_PREDICT_FALSE(!(x))) \ @@ -1081,14 +1071,14 @@ namespace protobuf while (!ctx->Done(&ptr)) { uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // int64 player_id = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else @@ -1143,21 +1133,21 @@ namespace protobuf if (this->_internal_player_id() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_player_id(), target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(1, this->_internal_player_id(), target); } // .protobuf.PropType prop_type = 2; if (this->_internal_prop_type() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 2, this->_internal_prop_type(), target ); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream ); } @@ -1177,50 +1167,45 @@ namespace protobuf // int64 player_id = 1; if (this->_internal_player_id() != 0) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_player_id()); + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_player_id()); } // .protobuf.PropType prop_type = 2; if (this->_internal_prop_type() != 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_prop_type()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_prop_type()); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PropMsg::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, PropMsg::MergeImpl}; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* PropMsg::GetClassData() const { return &_class_data_; } - void PropMsg::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from) - { - static_cast(to)->MergeFrom( - static_cast(from) - ); - } - - void PropMsg::MergeFrom(const PropMsg& from) + void PropMsg::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.PropMsg) - GOOGLE_DCHECK_NE(&from, this); + GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void)cached_has_bits; if (from._internal_player_id() != 0) { - _internal_set_player_id(from._internal_player_id()); + _this->_internal_set_player_id(from._internal_player_id()); } if (from._internal_prop_type() != 0) { - _internal_set_prop_type(from._internal_prop_type()); + _this->_internal_set_prop_type(from._internal_prop_type()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void PropMsg::CopyFrom(const PropMsg& from) @@ -1242,15 +1227,15 @@ namespace protobuf using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(PropMsg, prop_type_) + sizeof(PropMsg::prop_type_) - PROTOBUF_FIELD_OFFSET(PropMsg, player_id_)>( - reinterpret_cast(&player_id_), - reinterpret_cast(&other->player_id_) + PROTOBUF_FIELD_OFFSET(PropMsg, _impl_.prop_type_) + sizeof(PropMsg::_impl_.prop_type_) - PROTOBUF_FIELD_OFFSET(PropMsg, _impl_.player_id_)>( + reinterpret_cast(&_impl_.player_id_), + reinterpret_cast(&other->_impl_.player_id_) ); } ::PROTOBUF_NAMESPACE_ID::Metadata PropMsg::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_Message2Server_2eproto_getter, &descriptor_table_Message2Server_2eproto_once, file_level_metadata_Message2Server_2eproto[2] ); } @@ -1265,64 +1250,64 @@ namespace protobuf SendMsg::SendMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) - { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:protobuf.SendMsg) } SendMsg::SendMsg(const SendMsg& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + SendMsg* const _this = this; + (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.message_){}, decltype(_impl_.player_id_){}, decltype(_impl_.to_player_id_){}, /*decltype(_impl_._cached_size_)*/ {}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - message_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.message_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - message_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.message_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_message().empty()) { - message_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_message(), GetArenaForAllocation()); + _this->_impl_.message_.Set(from._internal_message(), _this->GetArenaForAllocation()); } - ::memcpy(&player_id_, &from.player_id_, static_cast(reinterpret_cast(&to_player_id_) - reinterpret_cast(&player_id_)) + sizeof(to_player_id_)); + ::memcpy(&_impl_.player_id_, &from._impl_.player_id_, static_cast(reinterpret_cast(&_impl_.to_player_id_) - reinterpret_cast(&_impl_.player_id_)) + sizeof(_impl_.to_player_id_)); // @@protoc_insertion_point(copy_constructor:protobuf.SendMsg) } - inline void SendMsg::SharedCtor() + inline void SendMsg::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned + ) { - message_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.message_){}, decltype(_impl_.player_id_){int64_t{0}}, decltype(_impl_.to_player_id_){int64_t{0}}, /*decltype(_impl_._cached_size_)*/ {}}; + _impl_.message_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - message_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.message_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - ::memset(reinterpret_cast(this) + static_cast(reinterpret_cast(&player_id_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&to_player_id_) - reinterpret_cast(&player_id_)) + sizeof(to_player_id_)); } SendMsg::~SendMsg() { // @@protoc_insertion_point(destructor:protobuf.SendMsg) - if (GetArenaForAllocation() != nullptr) + if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) + { + (void)arena; return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void SendMsg::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - message_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.message_.Destroy(); } - void SendMsg::ArenaDtor(void* object) - { - SendMsg* _this = reinterpret_cast(object); - (void)_this; - } - void SendMsg::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) - { - } void SendMsg::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void SendMsg::Clear() @@ -1332,12 +1317,12 @@ namespace protobuf // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; - message_.ClearToEmpty(); - ::memset(&player_id_, 0, static_cast(reinterpret_cast(&to_player_id_) - reinterpret_cast(&player_id_)) + sizeof(to_player_id_)); + _impl_.message_.ClearToEmpty(); + ::memset(&_impl_.player_id_, 0, static_cast(reinterpret_cast(&_impl_.to_player_id_) - reinterpret_cast(&_impl_.player_id_)) + sizeof(_impl_.to_player_id_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - const char* SendMsg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) + const char* SendMsg::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) \ if (PROTOBUF_PREDICT_FALSE(!(x))) \ @@ -1345,14 +1330,14 @@ namespace protobuf while (!ctx->Done(&ptr)) { uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // int64 player_id = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else @@ -1362,7 +1347,7 @@ namespace protobuf case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - to_player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.to_player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else @@ -1373,9 +1358,9 @@ namespace protobuf if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { auto str = _internal_mutable_message(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "protobuf.SendMsg.message")); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "protobuf.SendMsg.message")); } else goto handle_unusual; @@ -1418,14 +1403,14 @@ namespace protobuf if (this->_internal_player_id() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_player_id(), target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(1, this->_internal_player_id(), target); } // int64 to_player_id = 2; if (this->_internal_to_player_id() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->_internal_to_player_id(), target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(2, this->_internal_to_player_id(), target); } // string message = 3; @@ -1441,7 +1426,7 @@ namespace protobuf if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream ); } @@ -1470,53 +1455,48 @@ namespace protobuf // int64 player_id = 1; if (this->_internal_player_id() != 0) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_player_id()); + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_player_id()); } // int64 to_player_id = 2; if (this->_internal_to_player_id() != 0) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_to_player_id()); + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_to_player_id()); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SendMsg::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, SendMsg::MergeImpl}; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* SendMsg::GetClassData() const { return &_class_data_; } - void SendMsg::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from) - { - static_cast(to)->MergeFrom( - static_cast(from) - ); - } - - void SendMsg::MergeFrom(const SendMsg& from) + void SendMsg::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.SendMsg) - GOOGLE_DCHECK_NE(&from, this); + GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void)cached_has_bits; if (!from._internal_message().empty()) { - _internal_set_message(from._internal_message()); + _this->_internal_set_message(from._internal_message()); } if (from._internal_player_id() != 0) { - _internal_set_player_id(from._internal_player_id()); + _this->_internal_set_player_id(from._internal_player_id()); } if (from._internal_to_player_id() != 0) { - _internal_set_to_player_id(from._internal_to_player_id()); + _this->_internal_set_to_player_id(from._internal_to_player_id()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void SendMsg::CopyFrom(const SendMsg& from) @@ -1540,22 +1520,18 @@ namespace protobuf auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &message_, - lhs_arena, - &other->message_, - rhs_arena + &_impl_.message_, lhs_arena, &other->_impl_.message_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(SendMsg, to_player_id_) + sizeof(SendMsg::to_player_id_) - PROTOBUF_FIELD_OFFSET(SendMsg, player_id_)>( - reinterpret_cast(&player_id_), - reinterpret_cast(&other->player_id_) + PROTOBUF_FIELD_OFFSET(SendMsg, _impl_.to_player_id_) + sizeof(SendMsg::_impl_.to_player_id_) - PROTOBUF_FIELD_OFFSET(SendMsg, _impl_.player_id_)>( + reinterpret_cast(&_impl_.player_id_), + reinterpret_cast(&other->_impl_.player_id_) ); } ::PROTOBUF_NAMESPACE_ID::Metadata SendMsg::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_Message2Server_2eproto_getter, &descriptor_table_Message2Server_2eproto_once, file_level_metadata_Message2Server_2eproto[3] ); } @@ -1570,33 +1546,41 @@ namespace protobuf AttackMsg::AttackMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) - { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:protobuf.AttackMsg) } AttackMsg::AttackMsg(const AttackMsg& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + AttackMsg* const _this = this; + (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.player_id_){}, decltype(_impl_.angle_){}, /*decltype(_impl_._cached_size_)*/ {}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::memcpy(&player_id_, &from.player_id_, static_cast(reinterpret_cast(&angle_) - reinterpret_cast(&player_id_)) + sizeof(angle_)); + ::memcpy(&_impl_.player_id_, &from._impl_.player_id_, static_cast(reinterpret_cast(&_impl_.angle_) - reinterpret_cast(&_impl_.player_id_)) + sizeof(_impl_.angle_)); // @@protoc_insertion_point(copy_constructor:protobuf.AttackMsg) } - inline void AttackMsg::SharedCtor() + inline void AttackMsg::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned + ) { - ::memset(reinterpret_cast(this) + static_cast(reinterpret_cast(&player_id_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&angle_) - reinterpret_cast(&player_id_)) + sizeof(angle_)); + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.player_id_){int64_t{0}}, decltype(_impl_.angle_){0}, /*decltype(_impl_._cached_size_)*/ {}}; } AttackMsg::~AttackMsg() { // @@protoc_insertion_point(destructor:protobuf.AttackMsg) - if (GetArenaForAllocation() != nullptr) + if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) + { + (void)arena; return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void AttackMsg::SharedDtor() @@ -1604,17 +1588,9 @@ namespace protobuf GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } - void AttackMsg::ArenaDtor(void* object) - { - AttackMsg* _this = reinterpret_cast(object); - (void)_this; - } - void AttackMsg::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) - { - } void AttackMsg::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void AttackMsg::Clear() @@ -1624,11 +1600,11 @@ namespace protobuf // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; - ::memset(&player_id_, 0, static_cast(reinterpret_cast(&angle_) - reinterpret_cast(&player_id_)) + sizeof(angle_)); + ::memset(&_impl_.player_id_, 0, static_cast(reinterpret_cast(&_impl_.angle_) - reinterpret_cast(&_impl_.player_id_)) + sizeof(_impl_.angle_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - const char* AttackMsg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) + const char* AttackMsg::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) \ if (PROTOBUF_PREDICT_FALSE(!(x))) \ @@ -1636,14 +1612,14 @@ namespace protobuf while (!ctx->Done(&ptr)) { uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // int64 player_id = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else @@ -1653,7 +1629,7 @@ namespace protobuf case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 17)) { - angle_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + _impl_.angle_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(double); } else @@ -1697,7 +1673,7 @@ namespace protobuf if (this->_internal_player_id() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_player_id(), target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(1, this->_internal_player_id(), target); } // double angle = 2; @@ -1708,12 +1684,12 @@ namespace protobuf if (raw_angle != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(2, this->_internal_angle(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(2, this->_internal_angle(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream ); } @@ -1733,7 +1709,7 @@ namespace protobuf // int64 player_id = 1; if (this->_internal_player_id() != 0) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_player_id()); + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_player_id()); } // double angle = 2; @@ -1746,34 +1722,29 @@ namespace protobuf total_size += 1 + 8; } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AttackMsg::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, AttackMsg::MergeImpl}; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* AttackMsg::GetClassData() const { return &_class_data_; } - void AttackMsg::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from) - { - static_cast(to)->MergeFrom( - static_cast(from) - ); - } - - void AttackMsg::MergeFrom(const AttackMsg& from) + void AttackMsg::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.AttackMsg) - GOOGLE_DCHECK_NE(&from, this); + GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void)cached_has_bits; if (from._internal_player_id() != 0) { - _internal_set_player_id(from._internal_player_id()); + _this->_internal_set_player_id(from._internal_player_id()); } static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_angle = from._internal_angle(); @@ -1781,9 +1752,9 @@ namespace protobuf memcpy(&raw_angle, &tmp_angle, sizeof(tmp_angle)); if (raw_angle != 0) { - _internal_set_angle(from._internal_angle()); + _this->_internal_set_angle(from._internal_angle()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void AttackMsg::CopyFrom(const AttackMsg& from) @@ -1805,15 +1776,15 @@ namespace protobuf using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(AttackMsg, angle_) + sizeof(AttackMsg::angle_) - PROTOBUF_FIELD_OFFSET(AttackMsg, player_id_)>( - reinterpret_cast(&player_id_), - reinterpret_cast(&other->player_id_) + PROTOBUF_FIELD_OFFSET(AttackMsg, _impl_.angle_) + sizeof(AttackMsg::_impl_.angle_) - PROTOBUF_FIELD_OFFSET(AttackMsg, _impl_.player_id_)>( + reinterpret_cast(&_impl_.player_id_), + reinterpret_cast(&other->_impl_.player_id_) ); } ::PROTOBUF_NAMESPACE_ID::Metadata AttackMsg::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_Message2Server_2eproto_getter, &descriptor_table_Message2Server_2eproto_once, file_level_metadata_Message2Server_2eproto[4] ); } @@ -1828,33 +1799,41 @@ namespace protobuf IDMsg::IDMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) - { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:protobuf.IDMsg) } IDMsg::IDMsg(const IDMsg& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + IDMsg* const _this = this; + (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.player_id_){}, /*decltype(_impl_._cached_size_)*/ {}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - player_id_ = from.player_id_; + _this->_impl_.player_id_ = from._impl_.player_id_; // @@protoc_insertion_point(copy_constructor:protobuf.IDMsg) } - inline void IDMsg::SharedCtor() + inline void IDMsg::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned + ) { - player_id_ = int64_t{0}; + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.player_id_){int64_t{0}}, /*decltype(_impl_._cached_size_)*/ {}}; } IDMsg::~IDMsg() { // @@protoc_insertion_point(destructor:protobuf.IDMsg) - if (GetArenaForAllocation() != nullptr) + if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) + { + (void)arena; return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void IDMsg::SharedDtor() @@ -1862,17 +1841,9 @@ namespace protobuf GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } - void IDMsg::ArenaDtor(void* object) - { - IDMsg* _this = reinterpret_cast(object); - (void)_this; - } - void IDMsg::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) - { - } void IDMsg::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void IDMsg::Clear() @@ -1882,11 +1853,11 @@ namespace protobuf // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; - player_id_ = int64_t{0}; + _impl_.player_id_ = int64_t{0}; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - const char* IDMsg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) + const char* IDMsg::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) \ if (PROTOBUF_PREDICT_FALSE(!(x))) \ @@ -1894,14 +1865,14 @@ namespace protobuf while (!ctx->Done(&ptr)) { uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // int64 player_id = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else @@ -1945,12 +1916,12 @@ namespace protobuf if (this->_internal_player_id() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_player_id(), target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(1, this->_internal_player_id(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream ); } @@ -1970,39 +1941,34 @@ namespace protobuf // int64 player_id = 1; if (this->_internal_player_id() != 0) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_player_id()); + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_player_id()); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData IDMsg::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, IDMsg::MergeImpl}; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* IDMsg::GetClassData() const { return &_class_data_; } - void IDMsg::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from) - { - static_cast(to)->MergeFrom( - static_cast(from) - ); - } - - void IDMsg::MergeFrom(const IDMsg& from) + void IDMsg::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.IDMsg) - GOOGLE_DCHECK_NE(&from, this); + GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void)cached_has_bits; if (from._internal_player_id() != 0) { - _internal_set_player_id(from._internal_player_id()); + _this->_internal_set_player_id(from._internal_player_id()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void IDMsg::CopyFrom(const IDMsg& from) @@ -2023,12 +1989,12 @@ namespace protobuf { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(player_id_, other->player_id_); + swap(_impl_.player_id_, other->_impl_.player_id_); } ::PROTOBUF_NAMESPACE_ID::Metadata IDMsg::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_Message2Server_2eproto_getter, &descriptor_table_Message2Server_2eproto_once, file_level_metadata_Message2Server_2eproto[5] ); } @@ -2043,33 +2009,41 @@ namespace protobuf TreatAndRescueMsg::TreatAndRescueMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) - { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:protobuf.TreatAndRescueMsg) } TreatAndRescueMsg::TreatAndRescueMsg(const TreatAndRescueMsg& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + TreatAndRescueMsg* const _this = this; + (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.player_id_){}, decltype(_impl_.to_player_id_){}, /*decltype(_impl_._cached_size_)*/ {}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::memcpy(&player_id_, &from.player_id_, static_cast(reinterpret_cast(&to_player_id_) - reinterpret_cast(&player_id_)) + sizeof(to_player_id_)); + ::memcpy(&_impl_.player_id_, &from._impl_.player_id_, static_cast(reinterpret_cast(&_impl_.to_player_id_) - reinterpret_cast(&_impl_.player_id_)) + sizeof(_impl_.to_player_id_)); // @@protoc_insertion_point(copy_constructor:protobuf.TreatAndRescueMsg) } - inline void TreatAndRescueMsg::SharedCtor() + inline void TreatAndRescueMsg::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned + ) { - ::memset(reinterpret_cast(this) + static_cast(reinterpret_cast(&player_id_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&to_player_id_) - reinterpret_cast(&player_id_)) + sizeof(to_player_id_)); + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.player_id_){int64_t{0}}, decltype(_impl_.to_player_id_){int64_t{0}}, /*decltype(_impl_._cached_size_)*/ {}}; } TreatAndRescueMsg::~TreatAndRescueMsg() { // @@protoc_insertion_point(destructor:protobuf.TreatAndRescueMsg) - if (GetArenaForAllocation() != nullptr) + if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) + { + (void)arena; return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void TreatAndRescueMsg::SharedDtor() @@ -2077,17 +2051,9 @@ namespace protobuf GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } - void TreatAndRescueMsg::ArenaDtor(void* object) - { - TreatAndRescueMsg* _this = reinterpret_cast(object); - (void)_this; - } - void TreatAndRescueMsg::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) - { - } void TreatAndRescueMsg::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void TreatAndRescueMsg::Clear() @@ -2097,11 +2063,11 @@ namespace protobuf // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; - ::memset(&player_id_, 0, static_cast(reinterpret_cast(&to_player_id_) - reinterpret_cast(&player_id_)) + sizeof(to_player_id_)); + ::memset(&_impl_.player_id_, 0, static_cast(reinterpret_cast(&_impl_.to_player_id_) - reinterpret_cast(&_impl_.player_id_)) + sizeof(_impl_.to_player_id_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - const char* TreatAndRescueMsg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) + const char* TreatAndRescueMsg::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) \ if (PROTOBUF_PREDICT_FALSE(!(x))) \ @@ -2109,14 +2075,14 @@ namespace protobuf while (!ctx->Done(&ptr)) { uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // int64 player_id = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else @@ -2126,7 +2092,7 @@ namespace protobuf case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - to_player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.to_player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else @@ -2170,19 +2136,19 @@ namespace protobuf if (this->_internal_player_id() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_player_id(), target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(1, this->_internal_player_id(), target); } // int64 to_player_id = 2; if (this->_internal_to_player_id() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->_internal_to_player_id(), target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(2, this->_internal_to_player_id(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream ); } @@ -2202,49 +2168,44 @@ namespace protobuf // int64 player_id = 1; if (this->_internal_player_id() != 0) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_player_id()); + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_player_id()); } // int64 to_player_id = 2; if (this->_internal_to_player_id() != 0) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_to_player_id()); + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_to_player_id()); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData TreatAndRescueMsg::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, TreatAndRescueMsg::MergeImpl}; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* TreatAndRescueMsg::GetClassData() const { return &_class_data_; } - void TreatAndRescueMsg::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from) - { - static_cast(to)->MergeFrom( - static_cast(from) - ); - } - - void TreatAndRescueMsg::MergeFrom(const TreatAndRescueMsg& from) + void TreatAndRescueMsg::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.TreatAndRescueMsg) - GOOGLE_DCHECK_NE(&from, this); + GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void)cached_has_bits; if (from._internal_player_id() != 0) { - _internal_set_player_id(from._internal_player_id()); + _this->_internal_set_player_id(from._internal_player_id()); } if (from._internal_to_player_id() != 0) { - _internal_set_to_player_id(from._internal_to_player_id()); + _this->_internal_set_to_player_id(from._internal_to_player_id()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void TreatAndRescueMsg::CopyFrom(const TreatAndRescueMsg& from) @@ -2266,15 +2227,15 @@ namespace protobuf using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(TreatAndRescueMsg, to_player_id_) + sizeof(TreatAndRescueMsg::to_player_id_) - PROTOBUF_FIELD_OFFSET(TreatAndRescueMsg, player_id_)>( - reinterpret_cast(&player_id_), - reinterpret_cast(&other->player_id_) + PROTOBUF_FIELD_OFFSET(TreatAndRescueMsg, _impl_.to_player_id_) + sizeof(TreatAndRescueMsg::_impl_.to_player_id_) - PROTOBUF_FIELD_OFFSET(TreatAndRescueMsg, _impl_.player_id_)>( + reinterpret_cast(&_impl_.player_id_), + reinterpret_cast(&other->_impl_.player_id_) ); } ::PROTOBUF_NAMESPACE_ID::Metadata TreatAndRescueMsg::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_Message2Server_2eproto_getter, &descriptor_table_Message2Server_2eproto_once, file_level_metadata_Message2Server_2eproto[6] ); } @@ -2289,33 +2250,41 @@ namespace protobuf SkillMsg::SkillMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) - { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:protobuf.SkillMsg) } SkillMsg::SkillMsg(const SkillMsg& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + SkillMsg* const _this = this; + (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.player_id_){}, decltype(_impl_.skill_id_){}, /*decltype(_impl_._cached_size_)*/ {}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::memcpy(&player_id_, &from.player_id_, static_cast(reinterpret_cast(&skill_id_) - reinterpret_cast(&player_id_)) + sizeof(skill_id_)); + ::memcpy(&_impl_.player_id_, &from._impl_.player_id_, static_cast(reinterpret_cast(&_impl_.skill_id_) - reinterpret_cast(&_impl_.player_id_)) + sizeof(_impl_.skill_id_)); // @@protoc_insertion_point(copy_constructor:protobuf.SkillMsg) } - inline void SkillMsg::SharedCtor() + inline void SkillMsg::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned + ) { - ::memset(reinterpret_cast(this) + static_cast(reinterpret_cast(&player_id_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&skill_id_) - reinterpret_cast(&player_id_)) + sizeof(skill_id_)); + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.player_id_){int64_t{0}}, decltype(_impl_.skill_id_){0}, /*decltype(_impl_._cached_size_)*/ {}}; } SkillMsg::~SkillMsg() { // @@protoc_insertion_point(destructor:protobuf.SkillMsg) - if (GetArenaForAllocation() != nullptr) + if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) + { + (void)arena; return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void SkillMsg::SharedDtor() @@ -2323,17 +2292,9 @@ namespace protobuf GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } - void SkillMsg::ArenaDtor(void* object) - { - SkillMsg* _this = reinterpret_cast(object); - (void)_this; - } - void SkillMsg::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) - { - } void SkillMsg::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void SkillMsg::Clear() @@ -2343,11 +2304,11 @@ namespace protobuf // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; - ::memset(&player_id_, 0, static_cast(reinterpret_cast(&skill_id_) - reinterpret_cast(&player_id_)) + sizeof(skill_id_)); + ::memset(&_impl_.player_id_, 0, static_cast(reinterpret_cast(&_impl_.skill_id_) - reinterpret_cast(&_impl_.player_id_)) + sizeof(_impl_.skill_id_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - const char* SkillMsg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) + const char* SkillMsg::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) \ if (PROTOBUF_PREDICT_FALSE(!(x))) \ @@ -2355,14 +2316,14 @@ namespace protobuf while (!ctx->Done(&ptr)) { uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // int64 player_id = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else @@ -2372,7 +2333,7 @@ namespace protobuf case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - skill_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.skill_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -2416,19 +2377,19 @@ namespace protobuf if (this->_internal_player_id() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_player_id(), target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(1, this->_internal_player_id(), target); } // int32 skill_id = 2; if (this->_internal_skill_id() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_skill_id(), target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_skill_id(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream ); } @@ -2448,49 +2409,44 @@ namespace protobuf // int64 player_id = 1; if (this->_internal_player_id() != 0) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_player_id()); + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_player_id()); } // int32 skill_id = 2; if (this->_internal_skill_id() != 0) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_skill_id()); + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_skill_id()); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SkillMsg::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, SkillMsg::MergeImpl}; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* SkillMsg::GetClassData() const { return &_class_data_; } - void SkillMsg::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from) - { - static_cast(to)->MergeFrom( - static_cast(from) - ); - } - - void SkillMsg::MergeFrom(const SkillMsg& from) + void SkillMsg::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.SkillMsg) - GOOGLE_DCHECK_NE(&from, this); + GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void)cached_has_bits; if (from._internal_player_id() != 0) { - _internal_set_player_id(from._internal_player_id()); + _this->_internal_set_player_id(from._internal_player_id()); } if (from._internal_skill_id() != 0) { - _internal_set_skill_id(from._internal_skill_id()); + _this->_internal_set_skill_id(from._internal_skill_id()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void SkillMsg::CopyFrom(const SkillMsg& from) @@ -2512,15 +2468,15 @@ namespace protobuf using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(SkillMsg, skill_id_) + sizeof(SkillMsg::skill_id_) - PROTOBUF_FIELD_OFFSET(SkillMsg, player_id_)>( - reinterpret_cast(&player_id_), - reinterpret_cast(&other->player_id_) + PROTOBUF_FIELD_OFFSET(SkillMsg, _impl_.skill_id_) + sizeof(SkillMsg::_impl_.skill_id_) - PROTOBUF_FIELD_OFFSET(SkillMsg, _impl_.player_id_)>( + reinterpret_cast(&_impl_.player_id_), + reinterpret_cast(&other->_impl_.player_id_) ); } ::PROTOBUF_NAMESPACE_ID::Metadata SkillMsg::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_Message2Server_2eproto_getter, &descriptor_table_Message2Server_2eproto_once, file_level_metadata_Message2Server_2eproto[7] ); } @@ -2529,42 +2485,50 @@ namespace protobuf } // namespace protobuf PROTOBUF_NAMESPACE_OPEN template<> -PROTOBUF_NOINLINE ::protobuf::PlayerMsg* Arena::CreateMaybeMessage<::protobuf::PlayerMsg>(Arena* arena) +PROTOBUF_NOINLINE ::protobuf::PlayerMsg* + Arena::CreateMaybeMessage<::protobuf::PlayerMsg>(Arena* arena) { return Arena::CreateMessageInternal<::protobuf::PlayerMsg>(arena); } template<> -PROTOBUF_NOINLINE ::protobuf::MoveMsg* Arena::CreateMaybeMessage<::protobuf::MoveMsg>(Arena* arena) +PROTOBUF_NOINLINE ::protobuf::MoveMsg* + Arena::CreateMaybeMessage<::protobuf::MoveMsg>(Arena* arena) { return Arena::CreateMessageInternal<::protobuf::MoveMsg>(arena); } template<> -PROTOBUF_NOINLINE ::protobuf::PropMsg* Arena::CreateMaybeMessage<::protobuf::PropMsg>(Arena* arena) +PROTOBUF_NOINLINE ::protobuf::PropMsg* + Arena::CreateMaybeMessage<::protobuf::PropMsg>(Arena* arena) { return Arena::CreateMessageInternal<::protobuf::PropMsg>(arena); } template<> -PROTOBUF_NOINLINE ::protobuf::SendMsg* Arena::CreateMaybeMessage<::protobuf::SendMsg>(Arena* arena) +PROTOBUF_NOINLINE ::protobuf::SendMsg* + Arena::CreateMaybeMessage<::protobuf::SendMsg>(Arena* arena) { return Arena::CreateMessageInternal<::protobuf::SendMsg>(arena); } template<> -PROTOBUF_NOINLINE ::protobuf::AttackMsg* Arena::CreateMaybeMessage<::protobuf::AttackMsg>(Arena* arena) +PROTOBUF_NOINLINE ::protobuf::AttackMsg* + Arena::CreateMaybeMessage<::protobuf::AttackMsg>(Arena* arena) { return Arena::CreateMessageInternal<::protobuf::AttackMsg>(arena); } template<> -PROTOBUF_NOINLINE ::protobuf::IDMsg* Arena::CreateMaybeMessage<::protobuf::IDMsg>(Arena* arena) +PROTOBUF_NOINLINE ::protobuf::IDMsg* + Arena::CreateMaybeMessage<::protobuf::IDMsg>(Arena* arena) { return Arena::CreateMessageInternal<::protobuf::IDMsg>(arena); } template<> -PROTOBUF_NOINLINE ::protobuf::TreatAndRescueMsg* Arena::CreateMaybeMessage<::protobuf::TreatAndRescueMsg>(Arena* arena) +PROTOBUF_NOINLINE ::protobuf::TreatAndRescueMsg* + Arena::CreateMaybeMessage<::protobuf::TreatAndRescueMsg>(Arena* arena) { return Arena::CreateMessageInternal<::protobuf::TreatAndRescueMsg>(arena); } template<> -PROTOBUF_NOINLINE ::protobuf::SkillMsg* Arena::CreateMaybeMessage<::protobuf::SkillMsg>(Arena* arena) +PROTOBUF_NOINLINE ::protobuf::SkillMsg* + Arena::CreateMaybeMessage<::protobuf::SkillMsg>(Arena* arena) { return Arena::CreateMessageInternal<::protobuf::SkillMsg>(arena); } diff --git a/CAPI/cpp/proto/Message2Server.pb.h b/CAPI/cpp/proto/Message2Server.pb.h index 0836daf..1322b48 100644 --- a/CAPI/cpp/proto/Message2Server.pb.h +++ b/CAPI/cpp/proto/Message2Server.pb.h @@ -8,12 +8,12 @@ #include #include -#if PROTOBUF_VERSION < 3019000 +#if PROTOBUF_VERSION < 3021000 #error This file was generated by a newer version of protoc which is #error incompatible with your Protocol Buffer headers. Please update #error your headers. #endif -#if 3019004 < PROTOBUF_MIN_PROTOC_VERSION +#if 3021005 < PROTOBUF_MIN_PROTOC_VERSION #error This file was generated by an older version of protoc which is #error incompatible with your Protocol Buffer headers. Please #error regenerate this file with a newer version of protoc. @@ -23,7 +23,6 @@ #include #include #include -#include #include #include #include @@ -45,11 +44,6 @@ PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_Message2Server_2eproto { - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[8] PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; - static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; static const uint32_t offsets[]; }; extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_Message2Server_2eproto; @@ -112,7 +106,7 @@ namespace protobuf { } ~PlayerMsg() override; - explicit constexpr PlayerMsg(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR PlayerMsg(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); PlayerMsg(const PlayerMsg& from); PlayerMsg(PlayerMsg&& from) noexcept @@ -218,10 +212,13 @@ namespace protobuf using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const PlayerMsg& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const PlayerMsg& from); + void MergeFrom(const PlayerMsg& from) + { + PlayerMsg::MergeImpl(*this, from); + } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; @@ -234,11 +231,11 @@ namespace protobuf ) const final; int GetCachedSize() const final { - return _cached_size_.Get(); + return _impl_._cached_size_.Get(); } private: - void SharedCtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(PlayerMsg* other); @@ -253,10 +250,6 @@ namespace protobuf protected: explicit PlayerMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: static const ClassData _class_data_; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final; @@ -342,21 +335,27 @@ namespace protobuf friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - int64_t player_id_; - int player_type_; - union JobTypeUnion + struct Impl_ { - constexpr JobTypeUnion() : - _constinit_{} + int64_t player_id_; + int player_type_; + union JobTypeUnion { - } - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; - int student_type_; - int tricker_type_; - } job_type_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - uint32_t _oneof_case_[1]; - + constexpr JobTypeUnion() : + _constinit_{} + { + } + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + int student_type_; + int tricker_type_; + } job_type_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + uint32_t _oneof_case_[1]; + }; + union + { + Impl_ _impl_; + }; friend struct ::TableStruct_Message2Server_2eproto; }; // ------------------------------------------------------------------- @@ -370,7 +369,7 @@ namespace protobuf { } ~MoveMsg() override; - explicit constexpr MoveMsg(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR MoveMsg(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); MoveMsg(const MoveMsg& from); MoveMsg(MoveMsg&& from) noexcept @@ -469,10 +468,13 @@ namespace protobuf using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const MoveMsg& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const MoveMsg& from); + void MergeFrom(const MoveMsg& from) + { + MoveMsg::MergeImpl(*this, from); + } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; @@ -485,11 +487,11 @@ namespace protobuf ) const final; int GetCachedSize() const final { - return _cached_size_.Get(); + return _impl_._cached_size_.Get(); } private: - void SharedCtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(MoveMsg* other); @@ -504,10 +506,6 @@ namespace protobuf protected: explicit MoveMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: static const ClassData _class_data_; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final; @@ -563,10 +561,17 @@ namespace protobuf friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - int64_t player_id_; - double angle_; - int64_t time_in_milliseconds_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ + { + int64_t player_id_; + double angle_; + int64_t time_in_milliseconds_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union + { + Impl_ _impl_; + }; friend struct ::TableStruct_Message2Server_2eproto; }; // ------------------------------------------------------------------- @@ -580,7 +585,7 @@ namespace protobuf { } ~PropMsg() override; - explicit constexpr PropMsg(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR PropMsg(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); PropMsg(const PropMsg& from); PropMsg(PropMsg&& from) noexcept @@ -679,10 +684,13 @@ namespace protobuf using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const PropMsg& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const PropMsg& from); + void MergeFrom(const PropMsg& from) + { + PropMsg::MergeImpl(*this, from); + } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; @@ -695,11 +703,11 @@ namespace protobuf ) const final; int GetCachedSize() const final { - return _cached_size_.Get(); + return _impl_._cached_size_.Get(); } private: - void SharedCtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(PropMsg* other); @@ -714,10 +722,6 @@ namespace protobuf protected: explicit PropMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: static const ClassData _class_data_; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final; @@ -762,9 +766,16 @@ namespace protobuf friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - int64_t player_id_; - int prop_type_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ + { + int64_t player_id_; + int prop_type_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union + { + Impl_ _impl_; + }; friend struct ::TableStruct_Message2Server_2eproto; }; // ------------------------------------------------------------------- @@ -778,7 +789,7 @@ namespace protobuf { } ~SendMsg() override; - explicit constexpr SendMsg(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR SendMsg(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); SendMsg(const SendMsg& from); SendMsg(SendMsg&& from) noexcept @@ -877,10 +888,13 @@ namespace protobuf using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const SendMsg& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const SendMsg& from); + void MergeFrom(const SendMsg& from) + { + SendMsg::MergeImpl(*this, from); + } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; @@ -893,11 +907,11 @@ namespace protobuf ) const final; int GetCachedSize() const final { - return _cached_size_.Get(); + return _impl_._cached_size_.Get(); } private: - void SharedCtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(SendMsg* other); @@ -912,10 +926,6 @@ namespace protobuf protected: explicit SendMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: static const ClassData _class_data_; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final; @@ -976,10 +986,17 @@ namespace protobuf friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr message_; - int64_t player_id_; - int64_t to_player_id_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ + { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr message_; + int64_t player_id_; + int64_t to_player_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union + { + Impl_ _impl_; + }; friend struct ::TableStruct_Message2Server_2eproto; }; // ------------------------------------------------------------------- @@ -993,7 +1010,7 @@ namespace protobuf { } ~AttackMsg() override; - explicit constexpr AttackMsg(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR AttackMsg(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); AttackMsg(const AttackMsg& from); AttackMsg(AttackMsg&& from) noexcept @@ -1092,10 +1109,13 @@ namespace protobuf using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const AttackMsg& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const AttackMsg& from); + void MergeFrom(const AttackMsg& from) + { + AttackMsg::MergeImpl(*this, from); + } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; @@ -1108,11 +1128,11 @@ namespace protobuf ) const final; int GetCachedSize() const final { - return _cached_size_.Get(); + return _impl_._cached_size_.Get(); } private: - void SharedCtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(AttackMsg* other); @@ -1127,10 +1147,6 @@ namespace protobuf protected: explicit AttackMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: static const ClassData _class_data_; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final; @@ -1175,9 +1191,16 @@ namespace protobuf friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - int64_t player_id_; - double angle_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ + { + int64_t player_id_; + double angle_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union + { + Impl_ _impl_; + }; friend struct ::TableStruct_Message2Server_2eproto; }; // ------------------------------------------------------------------- @@ -1191,7 +1214,7 @@ namespace protobuf { } ~IDMsg() override; - explicit constexpr IDMsg(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR IDMsg(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); IDMsg(const IDMsg& from); IDMsg(IDMsg&& from) noexcept @@ -1290,10 +1313,13 @@ namespace protobuf using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const IDMsg& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const IDMsg& from); + void MergeFrom(const IDMsg& from) + { + IDMsg::MergeImpl(*this, from); + } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; @@ -1306,11 +1332,11 @@ namespace protobuf ) const final; int GetCachedSize() const final { - return _cached_size_.Get(); + return _impl_._cached_size_.Get(); } private: - void SharedCtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(IDMsg* other); @@ -1325,10 +1351,6 @@ namespace protobuf protected: explicit IDMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: static const ClassData _class_data_; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final; @@ -1362,8 +1384,15 @@ namespace protobuf friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - int64_t player_id_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ + { + int64_t player_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union + { + Impl_ _impl_; + }; friend struct ::TableStruct_Message2Server_2eproto; }; // ------------------------------------------------------------------- @@ -1377,7 +1406,7 @@ namespace protobuf { } ~TreatAndRescueMsg() override; - explicit constexpr TreatAndRescueMsg(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR TreatAndRescueMsg(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); TreatAndRescueMsg(const TreatAndRescueMsg& from); TreatAndRescueMsg(TreatAndRescueMsg&& from) noexcept @@ -1476,10 +1505,13 @@ namespace protobuf using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const TreatAndRescueMsg& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const TreatAndRescueMsg& from); + void MergeFrom(const TreatAndRescueMsg& from) + { + TreatAndRescueMsg::MergeImpl(*this, from); + } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; @@ -1492,11 +1524,11 @@ namespace protobuf ) const final; int GetCachedSize() const final { - return _cached_size_.Get(); + return _impl_._cached_size_.Get(); } private: - void SharedCtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(TreatAndRescueMsg* other); @@ -1511,10 +1543,6 @@ namespace protobuf protected: explicit TreatAndRescueMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: static const ClassData _class_data_; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final; @@ -1559,9 +1587,16 @@ namespace protobuf friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - int64_t player_id_; - int64_t to_player_id_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ + { + int64_t player_id_; + int64_t to_player_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union + { + Impl_ _impl_; + }; friend struct ::TableStruct_Message2Server_2eproto; }; // ------------------------------------------------------------------- @@ -1575,7 +1610,7 @@ namespace protobuf { } ~SkillMsg() override; - explicit constexpr SkillMsg(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR SkillMsg(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); SkillMsg(const SkillMsg& from); SkillMsg(SkillMsg&& from) noexcept @@ -1674,10 +1709,13 @@ namespace protobuf using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const SkillMsg& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const SkillMsg& from); + void MergeFrom(const SkillMsg& from) + { + SkillMsg::MergeImpl(*this, from); + } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; @@ -1690,11 +1728,11 @@ namespace protobuf ) const final; int GetCachedSize() const final { - return _cached_size_.Get(); + return _impl_._cached_size_.Get(); } private: - void SharedCtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(SkillMsg* other); @@ -1709,10 +1747,6 @@ namespace protobuf protected: explicit SkillMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: static const ClassData _class_data_; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final; @@ -1757,9 +1791,16 @@ namespace protobuf friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - int64_t player_id_; - int32_t skill_id_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ + { + int64_t player_id_; + int32_t skill_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union + { + Impl_ _impl_; + }; friend struct ::TableStruct_Message2Server_2eproto; }; // =================================================================== @@ -1775,11 +1816,11 @@ namespace protobuf // int64 player_id = 1; inline void PlayerMsg::clear_player_id() { - player_id_ = int64_t{0}; + _impl_.player_id_ = int64_t{0}; } inline int64_t PlayerMsg::_internal_player_id() const { - return player_id_; + return _impl_.player_id_; } inline int64_t PlayerMsg::player_id() const { @@ -1788,7 +1829,7 @@ namespace protobuf } inline void PlayerMsg::_internal_set_player_id(int64_t value) { - player_id_ = value; + _impl_.player_id_ = value; } inline void PlayerMsg::set_player_id(int64_t value) { @@ -1807,13 +1848,13 @@ namespace protobuf } inline void PlayerMsg::set_has_student_type() { - _oneof_case_[0] = kStudentType; + _impl_._oneof_case_[0] = kStudentType; } inline void PlayerMsg::clear_student_type() { if (_internal_has_student_type()) { - job_type_.student_type_ = 0; + _impl_.job_type_.student_type_ = 0; clear_has_job_type(); } } @@ -1821,7 +1862,7 @@ namespace protobuf { if (_internal_has_student_type()) { - return static_cast<::protobuf::StudentType>(job_type_.student_type_); + return static_cast<::protobuf::StudentType>(_impl_.job_type_.student_type_); } return static_cast<::protobuf::StudentType>(0); } @@ -1837,7 +1878,7 @@ namespace protobuf clear_job_type(); set_has_student_type(); } - job_type_.student_type_ = value; + _impl_.job_type_.student_type_ = value; } inline void PlayerMsg::set_student_type(::protobuf::StudentType value) { @@ -1856,13 +1897,13 @@ namespace protobuf } inline void PlayerMsg::set_has_tricker_type() { - _oneof_case_[0] = kTrickerType; + _impl_._oneof_case_[0] = kTrickerType; } inline void PlayerMsg::clear_tricker_type() { if (_internal_has_tricker_type()) { - job_type_.tricker_type_ = 0; + _impl_.job_type_.tricker_type_ = 0; clear_has_job_type(); } } @@ -1870,7 +1911,7 @@ namespace protobuf { if (_internal_has_tricker_type()) { - return static_cast<::protobuf::TrickerType>(job_type_.tricker_type_); + return static_cast<::protobuf::TrickerType>(_impl_.job_type_.tricker_type_); } return static_cast<::protobuf::TrickerType>(0); } @@ -1886,7 +1927,7 @@ namespace protobuf clear_job_type(); set_has_tricker_type(); } - job_type_.tricker_type_ = value; + _impl_.job_type_.tricker_type_ = value; } inline void PlayerMsg::set_tricker_type(::protobuf::TrickerType value) { @@ -1897,11 +1938,11 @@ namespace protobuf // .protobuf.PlayerType player_type = 4; inline void PlayerMsg::clear_player_type() { - player_type_ = 0; + _impl_.player_type_ = 0; } inline ::protobuf::PlayerType PlayerMsg::_internal_player_type() const { - return static_cast<::protobuf::PlayerType>(player_type_); + return static_cast<::protobuf::PlayerType>(_impl_.player_type_); } inline ::protobuf::PlayerType PlayerMsg::player_type() const { @@ -1910,7 +1951,7 @@ namespace protobuf } inline void PlayerMsg::_internal_set_player_type(::protobuf::PlayerType value) { - player_type_ = value; + _impl_.player_type_ = value; } inline void PlayerMsg::set_player_type(::protobuf::PlayerType value) { @@ -1924,11 +1965,11 @@ namespace protobuf } inline void PlayerMsg::clear_has_job_type() { - _oneof_case_[0] = JOB_TYPE_NOT_SET; + _impl_._oneof_case_[0] = JOB_TYPE_NOT_SET; } inline PlayerMsg::JobTypeCase PlayerMsg::job_type_case() const { - return PlayerMsg::JobTypeCase(_oneof_case_[0]); + return PlayerMsg::JobTypeCase(_impl_._oneof_case_[0]); } // ------------------------------------------------------------------- @@ -1937,11 +1978,11 @@ namespace protobuf // int64 player_id = 1; inline void MoveMsg::clear_player_id() { - player_id_ = int64_t{0}; + _impl_.player_id_ = int64_t{0}; } inline int64_t MoveMsg::_internal_player_id() const { - return player_id_; + return _impl_.player_id_; } inline int64_t MoveMsg::player_id() const { @@ -1950,7 +1991,7 @@ namespace protobuf } inline void MoveMsg::_internal_set_player_id(int64_t value) { - player_id_ = value; + _impl_.player_id_ = value; } inline void MoveMsg::set_player_id(int64_t value) { @@ -1961,11 +2002,11 @@ namespace protobuf // double angle = 2; inline void MoveMsg::clear_angle() { - angle_ = 0; + _impl_.angle_ = 0; } inline double MoveMsg::_internal_angle() const { - return angle_; + return _impl_.angle_; } inline double MoveMsg::angle() const { @@ -1974,7 +2015,7 @@ namespace protobuf } inline void MoveMsg::_internal_set_angle(double value) { - angle_ = value; + _impl_.angle_ = value; } inline void MoveMsg::set_angle(double value) { @@ -1985,11 +2026,11 @@ namespace protobuf // int64 time_in_milliseconds = 3; inline void MoveMsg::clear_time_in_milliseconds() { - time_in_milliseconds_ = int64_t{0}; + _impl_.time_in_milliseconds_ = int64_t{0}; } inline int64_t MoveMsg::_internal_time_in_milliseconds() const { - return time_in_milliseconds_; + return _impl_.time_in_milliseconds_; } inline int64_t MoveMsg::time_in_milliseconds() const { @@ -1998,7 +2039,7 @@ namespace protobuf } inline void MoveMsg::_internal_set_time_in_milliseconds(int64_t value) { - time_in_milliseconds_ = value; + _impl_.time_in_milliseconds_ = value; } inline void MoveMsg::set_time_in_milliseconds(int64_t value) { @@ -2013,11 +2054,11 @@ namespace protobuf // int64 player_id = 1; inline void PropMsg::clear_player_id() { - player_id_ = int64_t{0}; + _impl_.player_id_ = int64_t{0}; } inline int64_t PropMsg::_internal_player_id() const { - return player_id_; + return _impl_.player_id_; } inline int64_t PropMsg::player_id() const { @@ -2026,7 +2067,7 @@ namespace protobuf } inline void PropMsg::_internal_set_player_id(int64_t value) { - player_id_ = value; + _impl_.player_id_ = value; } inline void PropMsg::set_player_id(int64_t value) { @@ -2037,11 +2078,11 @@ namespace protobuf // .protobuf.PropType prop_type = 2; inline void PropMsg::clear_prop_type() { - prop_type_ = 0; + _impl_.prop_type_ = 0; } inline ::protobuf::PropType PropMsg::_internal_prop_type() const { - return static_cast<::protobuf::PropType>(prop_type_); + return static_cast<::protobuf::PropType>(_impl_.prop_type_); } inline ::protobuf::PropType PropMsg::prop_type() const { @@ -2050,7 +2091,7 @@ namespace protobuf } inline void PropMsg::_internal_set_prop_type(::protobuf::PropType value) { - prop_type_ = value; + _impl_.prop_type_ = value; } inline void PropMsg::set_prop_type(::protobuf::PropType value) { @@ -2065,11 +2106,11 @@ namespace protobuf // int64 player_id = 1; inline void SendMsg::clear_player_id() { - player_id_ = int64_t{0}; + _impl_.player_id_ = int64_t{0}; } inline int64_t SendMsg::_internal_player_id() const { - return player_id_; + return _impl_.player_id_; } inline int64_t SendMsg::player_id() const { @@ -2078,7 +2119,7 @@ namespace protobuf } inline void SendMsg::_internal_set_player_id(int64_t value) { - player_id_ = value; + _impl_.player_id_ = value; } inline void SendMsg::set_player_id(int64_t value) { @@ -2089,11 +2130,11 @@ namespace protobuf // int64 to_player_id = 2; inline void SendMsg::clear_to_player_id() { - to_player_id_ = int64_t{0}; + _impl_.to_player_id_ = int64_t{0}; } inline int64_t SendMsg::_internal_to_player_id() const { - return to_player_id_; + return _impl_.to_player_id_; } inline int64_t SendMsg::to_player_id() const { @@ -2102,7 +2143,7 @@ namespace protobuf } inline void SendMsg::_internal_set_to_player_id(int64_t value) { - to_player_id_ = value; + _impl_.to_player_id_ = value; } inline void SendMsg::set_to_player_id(int64_t value) { @@ -2113,7 +2154,7 @@ namespace protobuf // string message = 3; inline void SendMsg::clear_message() { - message_.ClearToEmpty(); + _impl_.message_.ClearToEmpty(); } inline const std::string& SendMsg::message() const { @@ -2123,7 +2164,7 @@ namespace protobuf template inline PROTOBUF_ALWAYS_INLINE void SendMsg::set_message(ArgT0&& arg0, ArgT... args) { - message_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + _impl_.message_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:protobuf.SendMsg.message) } inline std::string* SendMsg::mutable_message() @@ -2134,20 +2175,20 @@ namespace protobuf } inline const std::string& SendMsg::_internal_message() const { - return message_.Get(); + return _impl_.message_.Get(); } inline void SendMsg::_internal_set_message(const std::string& value) { - message_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); + _impl_.message_.Set(value, GetArenaForAllocation()); } inline std::string* SendMsg::_internal_mutable_message() { - return message_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); + return _impl_.message_.Mutable(GetArenaForAllocation()); } inline std::string* SendMsg::release_message() { // @@protoc_insertion_point(field_release:protobuf.SendMsg.message) - return message_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); + return _impl_.message_.Release(); } inline void SendMsg::set_allocated_message(std::string* message) { @@ -2157,11 +2198,11 @@ namespace protobuf else { } - message_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), message, GetArenaForAllocation()); + _impl_.message_.SetAllocated(message, GetArenaForAllocation()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (message_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) + if (_impl_.message_.IsDefault()) { - message_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.message_.Set("", GetArenaForAllocation()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:protobuf.SendMsg.message) @@ -2174,11 +2215,11 @@ namespace protobuf // int64 player_id = 1; inline void AttackMsg::clear_player_id() { - player_id_ = int64_t{0}; + _impl_.player_id_ = int64_t{0}; } inline int64_t AttackMsg::_internal_player_id() const { - return player_id_; + return _impl_.player_id_; } inline int64_t AttackMsg::player_id() const { @@ -2187,7 +2228,7 @@ namespace protobuf } inline void AttackMsg::_internal_set_player_id(int64_t value) { - player_id_ = value; + _impl_.player_id_ = value; } inline void AttackMsg::set_player_id(int64_t value) { @@ -2198,11 +2239,11 @@ namespace protobuf // double angle = 2; inline void AttackMsg::clear_angle() { - angle_ = 0; + _impl_.angle_ = 0; } inline double AttackMsg::_internal_angle() const { - return angle_; + return _impl_.angle_; } inline double AttackMsg::angle() const { @@ -2211,7 +2252,7 @@ namespace protobuf } inline void AttackMsg::_internal_set_angle(double value) { - angle_ = value; + _impl_.angle_ = value; } inline void AttackMsg::set_angle(double value) { @@ -2226,11 +2267,11 @@ namespace protobuf // int64 player_id = 1; inline void IDMsg::clear_player_id() { - player_id_ = int64_t{0}; + _impl_.player_id_ = int64_t{0}; } inline int64_t IDMsg::_internal_player_id() const { - return player_id_; + return _impl_.player_id_; } inline int64_t IDMsg::player_id() const { @@ -2239,7 +2280,7 @@ namespace protobuf } inline void IDMsg::_internal_set_player_id(int64_t value) { - player_id_ = value; + _impl_.player_id_ = value; } inline void IDMsg::set_player_id(int64_t value) { @@ -2254,11 +2295,11 @@ namespace protobuf // int64 player_id = 1; inline void TreatAndRescueMsg::clear_player_id() { - player_id_ = int64_t{0}; + _impl_.player_id_ = int64_t{0}; } inline int64_t TreatAndRescueMsg::_internal_player_id() const { - return player_id_; + return _impl_.player_id_; } inline int64_t TreatAndRescueMsg::player_id() const { @@ -2267,7 +2308,7 @@ namespace protobuf } inline void TreatAndRescueMsg::_internal_set_player_id(int64_t value) { - player_id_ = value; + _impl_.player_id_ = value; } inline void TreatAndRescueMsg::set_player_id(int64_t value) { @@ -2278,11 +2319,11 @@ namespace protobuf // int64 to_player_id = 2; inline void TreatAndRescueMsg::clear_to_player_id() { - to_player_id_ = int64_t{0}; + _impl_.to_player_id_ = int64_t{0}; } inline int64_t TreatAndRescueMsg::_internal_to_player_id() const { - return to_player_id_; + return _impl_.to_player_id_; } inline int64_t TreatAndRescueMsg::to_player_id() const { @@ -2291,7 +2332,7 @@ namespace protobuf } inline void TreatAndRescueMsg::_internal_set_to_player_id(int64_t value) { - to_player_id_ = value; + _impl_.to_player_id_ = value; } inline void TreatAndRescueMsg::set_to_player_id(int64_t value) { @@ -2306,11 +2347,11 @@ namespace protobuf // int64 player_id = 1; inline void SkillMsg::clear_player_id() { - player_id_ = int64_t{0}; + _impl_.player_id_ = int64_t{0}; } inline int64_t SkillMsg::_internal_player_id() const { - return player_id_; + return _impl_.player_id_; } inline int64_t SkillMsg::player_id() const { @@ -2319,7 +2360,7 @@ namespace protobuf } inline void SkillMsg::_internal_set_player_id(int64_t value) { - player_id_ = value; + _impl_.player_id_ = value; } inline void SkillMsg::set_player_id(int64_t value) { @@ -2330,11 +2371,11 @@ namespace protobuf // int32 skill_id = 2; inline void SkillMsg::clear_skill_id() { - skill_id_ = 0; + _impl_.skill_id_ = 0; } inline int32_t SkillMsg::_internal_skill_id() const { - return skill_id_; + return _impl_.skill_id_; } inline int32_t SkillMsg::skill_id() const { @@ -2343,7 +2384,7 @@ namespace protobuf } inline void SkillMsg::_internal_set_skill_id(int32_t value) { - skill_id_ = value; + _impl_.skill_id_ = value; } inline void SkillMsg::set_skill_id(int32_t value) { diff --git a/CAPI/cpp/proto/MessageType.pb.cc b/CAPI/cpp/proto/MessageType.pb.cc index 7b2e493..d00f04c 100644 --- a/CAPI/cpp/proto/MessageType.pb.cc +++ b/CAPI/cpp/proto/MessageType.pb.cc @@ -16,14 +16,18 @@ #include PROTOBUF_PRAGMA_INIT_SEG + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + namespace protobuf { } // namespace protobuf -static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_MessageType_2eproto[11]; -static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_MessageType_2eproto = nullptr; +static const ::_pb::EnumDescriptor* file_level_enum_descriptors_MessageType_2eproto[11]; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_MessageType_2eproto = nullptr; const uint32_t TableStruct_MessageType_2eproto::offsets[1] = {}; -static constexpr ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema* schemas = nullptr; -static constexpr ::PROTOBUF_NAMESPACE_ID::Message* const* file_default_instances = nullptr; +static constexpr ::_pbi::MigrationSchema* schemas = nullptr; +static constexpr ::_pb::Message* const* file_default_instances = nullptr; const char descriptor_table_protodef_MessageType_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = "\n\021MessageType.proto\022\010protobuf*\202\001\n\nBullet" @@ -82,13 +86,13 @@ const ::_pbi::DescriptorTable descriptor_table_MessageType_2eproto = { file_level_enum_descriptors_MessageType_2eproto, file_level_service_descriptors_MessageType_2eproto, }; -PROTOBUF_ATTRIBUTE_WEAK const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable* descriptor_table_MessageType_2eproto_getter() +PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_MessageType_2eproto_getter() { return &descriptor_table_MessageType_2eproto; } // Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY static ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptorsRunner dynamic_init_dummy_MessageType_2eproto(&descriptor_table_MessageType_2eproto); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_MessageType_2eproto(&descriptor_table_MessageType_2eproto); namespace protobuf { const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* BulletType_descriptor() diff --git a/CAPI/cpp/proto/MessageType.pb.h b/CAPI/cpp/proto/MessageType.pb.h index 6dc5305..b4b70cf 100644 --- a/CAPI/cpp/proto/MessageType.pb.h +++ b/CAPI/cpp/proto/MessageType.pb.h @@ -8,12 +8,12 @@ #include #include -#if PROTOBUF_VERSION < 3019000 +#if PROTOBUF_VERSION < 3021000 #error This file was generated by a newer version of protoc which is #error incompatible with your Protocol Buffer headers. Please update #error your headers. #endif -#if 3019004 < PROTOBUF_MIN_PROTOC_VERSION +#if 3021005 < PROTOBUF_MIN_PROTOC_VERSION #error This file was generated by an older version of protoc which is #error incompatible with your Protocol Buffer headers. Please #error regenerate this file with a newer version of protoc. @@ -23,7 +23,6 @@ #include #include #include -#include #include #include #include @@ -43,11 +42,6 @@ PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_MessageType_2eproto { - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1] PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; - static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; static const uint32_t offsets[]; }; extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_MessageType_2eproto; diff --git a/CAPI/cpp/proto/Services.pb.cc b/CAPI/cpp/proto/Services.pb.cc index 19ee898..aa348ff 100644 --- a/CAPI/cpp/proto/Services.pb.cc +++ b/CAPI/cpp/proto/Services.pb.cc @@ -16,14 +16,18 @@ #include PROTOBUF_PRAGMA_INIT_SEG + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + namespace protobuf { } // namespace protobuf -static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_Services_2eproto = nullptr; -static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_Services_2eproto = nullptr; +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_Services_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_Services_2eproto = nullptr; const uint32_t TableStruct_Services_2eproto::offsets[1] = {}; -static constexpr ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema* schemas = nullptr; -static constexpr ::PROTOBUF_NAMESPACE_ID::Message* const* file_default_instances = nullptr; +static constexpr ::_pbi::MigrationSchema* schemas = nullptr; +static constexpr ::_pb::Message* const* file_default_instances = nullptr; const char descriptor_table_protodef_Services_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = "\n\016Services.proto\022\010protobuf\032\025Message2Clie" @@ -54,12 +58,12 @@ const char descriptor_table_protodef_Services_2eproto[] PROTOBUF_SECTION_VARIABL "tOpenChest\022\017.protobuf.IDMsg\032\021.protobuf.B" "oolRes\0222\n\014EndAllAction\022\017.protobuf.IDMsg\032" "\021.protobuf.BoolResb\006proto3"; -static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable* const descriptor_table_Services_2eproto_deps[2] = { +static const ::_pbi::DescriptorTable* const descriptor_table_Services_2eproto_deps[2] = { &::descriptor_table_Message2Clients_2eproto, &::descriptor_table_Message2Server_2eproto, }; -static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_Services_2eproto_once; -const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_Services_2eproto = { +static ::_pbi::once_flag descriptor_table_Services_2eproto_once; +const ::_pbi::DescriptorTable descriptor_table_Services_2eproto = { false, false, 1106, @@ -76,13 +80,13 @@ const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_Servic file_level_enum_descriptors_Services_2eproto, file_level_service_descriptors_Services_2eproto, }; -PROTOBUF_ATTRIBUTE_WEAK const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable* descriptor_table_Services_2eproto_getter() +PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_Services_2eproto_getter() { return &descriptor_table_Services_2eproto; } // Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY static ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptorsRunner dynamic_init_dummy_Services_2eproto(&descriptor_table_Services_2eproto); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_Services_2eproto(&descriptor_table_Services_2eproto); namespace protobuf { diff --git a/CAPI/cpp/proto/Services.pb.h b/CAPI/cpp/proto/Services.pb.h index 7c26b0a..10d177e 100644 --- a/CAPI/cpp/proto/Services.pb.h +++ b/CAPI/cpp/proto/Services.pb.h @@ -8,12 +8,12 @@ #include #include -#if PROTOBUF_VERSION < 3019000 +#if PROTOBUF_VERSION < 3021000 #error This file was generated by a newer version of protoc which is #error incompatible with your Protocol Buffer headers. Please update #error your headers. #endif -#if 3019004 < PROTOBUF_MIN_PROTOC_VERSION +#if 3021005 < PROTOBUF_MIN_PROTOC_VERSION #error This file was generated by an older version of protoc which is #error incompatible with your Protocol Buffer headers. Please #error regenerate this file with a newer version of protoc. @@ -23,7 +23,6 @@ #include #include #include -#include #include #include #include @@ -44,11 +43,6 @@ PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_Services_2eproto { - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1] PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; - static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; static const uint32_t offsets[]; }; extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_Services_2eproto; diff --git a/CAPI/python/PyAPI/AI.py b/CAPI/python/PyAPI/AI.py index ea4507d..8a7d5e9 100644 --- a/CAPI/python/PyAPI/AI.py +++ b/CAPI/python/PyAPI/AI.py @@ -1,6 +1,6 @@ import PyAPI.structures as THUAI6 from PyAPI.Interface import IStudentAPI, ITrickerAPI, IAI -from typing import Union, Final, cast +from typing import Union, Final, cast, List from PyAPI.constants import Constants import queue @@ -13,15 +13,10 @@ class Setting: def asynchronous() -> bool: return True - # 选手必须修改该函数的返回值来选择自己的阵营 + # 选手需要依次将player0到player4的职业都定义 @staticmethod - def playerType() -> THUAI6.PlayerType: - return THUAI6.PlayerType.StudentPlayer - - # 选手需要将两个都定义,本份代码中不选择的阵营任意定义即可 - @staticmethod - def studentType() -> THUAI6.StudentType: - return THUAI6.StudentType.Athlete + def studentType() -> List[THUAI6.StudentType]: + return [THUAI6.StudentType.Athlete, THUAI6.StudentType.Teacher, THUAI6.StudentType.StraightAStudent, THUAI6.StudentType.Sunshine] @staticmethod def trickerType() -> THUAI6.TrickerType: @@ -44,10 +39,23 @@ class AssistFunction: class AI(IAI): + def __init__(self, pID: int): + self.__playerID = pID # 选手在这里实现自己的逻辑,要求和上面选择的阵营保持一致 + def StudentPlay(self, api: IStudentAPI) -> None: - selfInfo = api.GetSelfInfo() - api.PrintSelfInfo() + if self.__playerID == 0: + # 玩家0执行操作 + return + elif self.__playerID == 1: + # 玩家1执行操作 + return + elif self.__playerID == 2: + # 玩家2执行操作 + return + elif self.__playerID == 3: + # 玩家3执行操作 + return return def TrickerPlay(self, api: ITrickerAPI) -> None: diff --git a/CAPI/python/PyAPI/Communication.py b/CAPI/python/PyAPI/Communication.py index adeea1f..e3b5960 100644 --- a/CAPI/python/PyAPI/Communication.py +++ b/CAPI/python/PyAPI/Communication.py @@ -198,11 +198,15 @@ class Communication: self.__haveNewMessage = False return self.__message2Client - def AddPlayer(self, playerID: int) -> None: + def AddPlayer(self, playerID: int, playerType: THUAI6.PlayerType) -> None: def tMessage(): try: + if playerType == THUAI6.PlayerType.StudentPlayer: + studentType = Setting.studentType()[playerID] + else: + studentType = THUAI6.StudentType.NullStudentType playerMsg = THUAI62Proto.THUAI62ProtobufPlayer( - playerID, Setting.playerType(), Setting.studentType(), Setting.trickerType()) + playerID, playerType, studentType, Setting.trickerType()) for msg in self.__THUAI6Stub.AddPlayer(playerMsg): with self.__cvMessage: self.__haveNewMessage = True diff --git a/CAPI/python/PyAPI/logic.py b/CAPI/python/PyAPI/logic.py index 1db66a7..5dce4cc 100644 --- a/CAPI/python/PyAPI/logic.py +++ b/CAPI/python/PyAPI/logic.py @@ -18,12 +18,14 @@ from PyAPI.Interface import ILogic, IGameTimer class Logic(ILogic): - def __init__(self, playerID: int) -> None: + def __init__(self, playerID: int, playerType: THUAI6.PlayerType) -> None: # ID self.__playerID: int = playerID self.__playerGUIDs: List[int] = [] + self.__playerType: THUAI6.PlayerType = playerType + # 通信 self.__comm: Communication @@ -268,7 +270,7 @@ class Logic(ILogic): def __ProcessMessage(self) -> None: def messageThread(): self.__logger.info("Message thread start!") - self.__comm.AddPlayer(self.__playerID) + self.__comm.AddPlayer(self.__playerID, self.__playerType) self.__logger.info("Join the player!") while self.__gameState != THUAI6.GameState.GameEnd: @@ -344,7 +346,7 @@ class Logic(ILogic): self.__logger.debug("Buffer cleared!") self.__bufferState.gameInfo = Proto2THUAI6.Protobuf2THUAI6GameInfo( message.all_message) - if Setting.playerType() == THUAI6.PlayerType.StudentPlayer: + if self.__playerType == THUAI6.PlayerType.StudentPlayer: for item in message.obj_message: if item.WhichOneof("message_of_obj") == "student_message": if item.student_message.player_id == self.__playerID: @@ -590,20 +592,20 @@ class Logic(ILogic): self.__logger.info("asynchronous: %s", Setting.asynchronous()) self.__logger.info("server: %s:%s", IP, port) self.__logger.info("playerID: %s", self.__playerID) - self.__logger.info("player type: %s", Setting.playerType().name) + self.__logger.info("player type: %s", self.__playerType.name) self.__logger.info("****************************") # 建立通信组件 self.__comm = Communication(IP, port) # 构造timer - if Setting.playerType() == THUAI6.PlayerType.StudentPlayer: + if self.__playerType == THUAI6.PlayerType.StudentPlayer: if not file and not screen: self.__timer = StudentAPI(self) else: self.__timer = StudentDebugAPI( self, file, screen, warnOnly, self.__playerID) - elif Setting.playerType() == THUAI6.PlayerType.TrickerPlayer: + elif self.__playerType == THUAI6.PlayerType.TrickerPlayer: if not file and not screen: self.__timer = TrickerAPI(self) else: @@ -615,7 +617,7 @@ class Logic(ILogic): with self.__cvAI: self.__cvAI.wait_for(lambda: self.__AIStart) - ai = createAI() + ai = createAI(self.__playerID) while self.__AILoop: if Setting.asynchronous(): self.__Wait() diff --git a/CAPI/python/PyAPI/main.py b/CAPI/python/PyAPI/main.py index 5622a3b..d915634 100644 --- a/CAPI/python/PyAPI/main.py +++ b/CAPI/python/PyAPI/main.py @@ -9,6 +9,7 @@ from PyAPI.AI import AI from PyAPI.logic import Logic from typing import List, Callable import argparse +import PyAPI.structures as THUAI6 def THUAI6Main(argv: List[str], AIBuilder: Callable) -> None: @@ -39,12 +40,17 @@ def THUAI6Main(argv: List[str], AIBuilder: Callable) -> None: file = args.file screen = args.screen warnOnly = args.warnOnly - logic = Logic(pID) + playerType = THUAI6.PlayerType.NullPlayerType + if pID == 4: + playerType = THUAI6.PlayerType.TrickerPlayer + else: + playerType = THUAI6.PlayerType.StudentPlayer + logic = Logic(pID, playerType) logic.Main(AIBuilder, sIP, sPort, file, screen, warnOnly) -def CreateAI() -> IAI: - return AI() +def CreateAI(pID: int) -> IAI: + return AI(pID) if __name__ == '__main__': diff --git a/CAPI/python/run.sh b/CAPI/python/run.sh index ec08c25..ae82681 100755 --- a/CAPI/python/run.sh +++ b/CAPI/python/run.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash python PyAPI/main.py -I 172.22.32.1 -P 8888 -p 0 -d -o & -# python PyAPI/main.py -I 172.22.32.1 -P 8888 -p 1 -d & -# python PyAPI/main.py -I 172.22.32.1 -P 8888 -p 2 -d & -# python PyAPI/main.py -I 172.22.32.1 -P 8888 -p 3 -d & \ No newline at end of file +python PyAPI/main.py -I 172.22.32.1 -P 8888 -p 1 -d & +python PyAPI/main.py -I 172.22.32.1 -P 8888 -p 2 -d & +python PyAPI/main.py -I 172.22.32.1 -P 8888 -p 3 -d & +python PyAPI/main.py -I 172.22.32.1 -P 8888 -p 4 -d & \ No newline at end of file