From 07c6cdba048513a0ad158dd7f49a3c11b783c70f Mon Sep 17 00:00:00 2001 From: sendssf <2336526392@qq.com> Date: Sat, 15 Apr 2023 19:23:05 +0800 Subject: [PATCH 1/8] merge --- dependency/Dockerfile/Dockerfile | 2 +- installer/Installer/Model.cs | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/dependency/Dockerfile/Dockerfile b/dependency/Dockerfile/Dockerfile index 6553c13..9425c22 100644 --- a/dependency/Dockerfile/Dockerfile +++ b/dependency/Dockerfile/Dockerfile @@ -32,7 +32,7 @@ RUN make -j$(nproc) RUN make install RUN ldconfig -COPY ./CAPI /usr/local/PlayerCode +COPY ./README.md /usr/local/PlayerCode RUN cd /usr/local/PlayerCode/CAPI RUN cmake CMakeLists.txt RUN make diff --git a/installer/Installer/Model.cs b/installer/Installer/Model.cs index 371bd97..5b4e5df 100644 --- a/installer/Installer/Model.cs +++ b/installer/Installer/Model.cs @@ -397,8 +397,9 @@ namespace Downloader .Build(); // 创建 CosXmlConfig 对象 // 永久密钥访问凭证 - string secretId = "***"; //"云 API 密钥 SecretId"; - string secretKey = "***"; //"云 API 密钥 SecretKey"; + string secretId = "AKIDvhEVXN4cv0ugIlFYiniV6Wk1McfkplYA"; //"云 API 密钥 SecretId"; + string secretKey = "YyGLGCJG4f5VsEUddnz9JSRPSSK8sYBo"; //"云 API 密钥 SecretKey"; + long durationSecond = 1000; // 每次请求签名有效时长,单位为秒 QCloudCredentialProvider cosCredentialProvider = new DefaultQCloudCredentialProvider( @@ -1113,7 +1114,7 @@ namespace WebConnect try { string content; - client.DefaultRequestHeaders.Authorization = new("bearertoken", logintoken); + client.DefaultRequestHeaders.Authorization = new("Bearer", logintoken); if (!File.Exists(tarfile)) { //Console.WriteLine("文件不存在!"); From afce723a77b0fb751b0a571239326621c6e31861 Mon Sep 17 00:00:00 2001 From: sendssf <2336526392@qq.com> Date: Sat, 15 Apr 2023 23:33:15 +0800 Subject: [PATCH 2/8] Chore: Fix some File Bugs --- 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 | 20 +- CAPI/cpp/proto/MessageType.pb.h | 10 +- CAPI/cpp/proto/Services.pb.cc | 22 +- CAPI/cpp/proto/Services.pb.h | 10 +- dependency/Dockerfile/Dockerfile | 26 +- installer/Installer/Model.cs | 134 +- installer/Installer/ViewModel.cs | 20 +- 11 files changed, 3405 insertions(+), 3183 deletions(-) diff --git a/CAPI/cpp/proto/Message2Clients.pb.cc b/CAPI/cpp/proto/Message2Clients.pb.cc index 3de566f..8cf5e17 100644 --- a/CAPI/cpp/proto/Message2Clients.pb.cc +++ b/CAPI/cpp/proto/Message2Clients.pb.cc @@ -16,23 +16,50 @@ #include PROTOBUF_PRAGMA_INIT_SEG - -namespace _pb = ::PROTOBUF_NAMESPACE_ID; -namespace _pbi = _pb::internal; - namespace protobuf { - PROTOBUF_CONSTEXPR MessageOfStudent::MessageOfStudent( - ::_pbi::ConstantInitialized + constexpr MessageOfStudent::MessageOfStudent( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized ) : - _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_)*/ {}} + 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) { } struct MessageOfStudentDefaultTypeInternal { - PROTOBUF_CONSTEXPR MessageOfStudentDefaultTypeInternal() : - _instance(::_pbi::ConstantInitialized{}) + constexpr MessageOfStudentDefaultTypeInternal() : + _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) { } ~MessageOfStudentDefaultTypeInternal() @@ -43,18 +70,44 @@ namespace protobuf MessageOfStudent _instance; }; }; - PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfStudentDefaultTypeInternal _MessageOfStudent_default_instance_; - PROTOBUF_CONSTEXPR MessageOfTricker::MessageOfTricker( - ::_pbi::ConstantInitialized + PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MessageOfStudentDefaultTypeInternal _MessageOfStudent_default_instance_; + constexpr MessageOfTricker::MessageOfTricker( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized ) : - _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_)*/ {}} + 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) { } struct MessageOfTrickerDefaultTypeInternal { - PROTOBUF_CONSTEXPR MessageOfTrickerDefaultTypeInternal() : - _instance(::_pbi::ConstantInitialized{}) + constexpr MessageOfTrickerDefaultTypeInternal() : + _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) { } ~MessageOfTrickerDefaultTypeInternal() @@ -65,18 +118,31 @@ namespace protobuf MessageOfTricker _instance; }; }; - PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfTrickerDefaultTypeInternal _MessageOfTricker_default_instance_; - PROTOBUF_CONSTEXPR MessageOfBullet::MessageOfBullet( - ::_pbi::ConstantInitialized + PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MessageOfTrickerDefaultTypeInternal _MessageOfTricker_default_instance_; + constexpr MessageOfBullet::MessageOfBullet( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized ) : - _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_)*/ {}} + type_(0) + + , + x_(0), + facing_direction_(0), + y_(0), + team_(0) + + , + guid_(int64_t{0}), + bomb_range_(0), + place_(0) + + , + speed_(0) { } struct MessageOfBulletDefaultTypeInternal { - PROTOBUF_CONSTEXPR MessageOfBulletDefaultTypeInternal() : - _instance(::_pbi::ConstantInitialized{}) + constexpr MessageOfBulletDefaultTypeInternal() : + _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) { } ~MessageOfBulletDefaultTypeInternal() @@ -87,18 +153,24 @@ namespace protobuf MessageOfBullet _instance; }; }; - PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfBulletDefaultTypeInternal _MessageOfBullet_default_instance_; - PROTOBUF_CONSTEXPR MessageOfBombedBullet::MessageOfBombedBullet( - ::_pbi::ConstantInitialized + PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MessageOfBulletDefaultTypeInternal _MessageOfBullet_default_instance_; + constexpr MessageOfBombedBullet::MessageOfBombedBullet( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized ) : - _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_)*/ {}} + type_(0) + + , + x_(0), + facing_direction_(0), + mapping_id_(int64_t{0}), + bomb_range_(0), + y_(0) { } struct MessageOfBombedBulletDefaultTypeInternal { - PROTOBUF_CONSTEXPR MessageOfBombedBulletDefaultTypeInternal() : - _instance(::_pbi::ConstantInitialized{}) + constexpr MessageOfBombedBulletDefaultTypeInternal() : + _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) { } ~MessageOfBombedBulletDefaultTypeInternal() @@ -109,18 +181,26 @@ namespace protobuf MessageOfBombedBullet _instance; }; }; - PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfBombedBulletDefaultTypeInternal _MessageOfBombedBullet_default_instance_; - PROTOBUF_CONSTEXPR MessageOfProp::MessageOfProp( - ::_pbi::ConstantInitialized + PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MessageOfBombedBulletDefaultTypeInternal _MessageOfBombedBullet_default_instance_; + constexpr MessageOfProp::MessageOfProp( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized ) : - _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_)*/ {}} + type_(0) + + , + x_(0), + facing_direction_(0), + y_(0), + place_(0) + + , + guid_(int64_t{0}) { } struct MessageOfPropDefaultTypeInternal { - PROTOBUF_CONSTEXPR MessageOfPropDefaultTypeInternal() : - _instance(::_pbi::ConstantInitialized{}) + constexpr MessageOfPropDefaultTypeInternal() : + _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) { } ~MessageOfPropDefaultTypeInternal() @@ -131,18 +211,23 @@ namespace protobuf MessageOfProp _instance; }; }; - PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfPropDefaultTypeInternal _MessageOfProp_default_instance_; - PROTOBUF_CONSTEXPR MessageOfPickedProp::MessageOfPickedProp( - ::_pbi::ConstantInitialized + PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MessageOfPropDefaultTypeInternal _MessageOfProp_default_instance_; + constexpr MessageOfPickedProp::MessageOfPickedProp( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized ) : - _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_)*/ {}} + type_(0) + + , + x_(0), + facing_direction_(0), + mapping_id_(int64_t{0}), + y_(0) { } struct MessageOfPickedPropDefaultTypeInternal { - PROTOBUF_CONSTEXPR MessageOfPickedPropDefaultTypeInternal() : - _instance(::_pbi::ConstantInitialized{}) + constexpr MessageOfPickedPropDefaultTypeInternal() : + _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) { } ~MessageOfPickedPropDefaultTypeInternal() @@ -153,18 +238,19 @@ namespace protobuf MessageOfPickedProp _instance; }; }; - PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfPickedPropDefaultTypeInternal _MessageOfPickedProp_default_instance_; - PROTOBUF_CONSTEXPR MessageOfClassroom::MessageOfClassroom( - ::_pbi::ConstantInitialized + PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MessageOfPickedPropDefaultTypeInternal _MessageOfPickedProp_default_instance_; + constexpr MessageOfClassroom::MessageOfClassroom( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized ) : - _impl_{ - /*decltype(_impl_.x_)*/ 0, /*decltype(_impl_.y_)*/ 0, /*decltype(_impl_.progress_)*/ 0, /*decltype(_impl_._cached_size_)*/ {}} + x_(0), + y_(0), + progress_(0) { } struct MessageOfClassroomDefaultTypeInternal { - PROTOBUF_CONSTEXPR MessageOfClassroomDefaultTypeInternal() : - _instance(::_pbi::ConstantInitialized{}) + constexpr MessageOfClassroomDefaultTypeInternal() : + _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) { } ~MessageOfClassroomDefaultTypeInternal() @@ -175,18 +261,19 @@ namespace protobuf MessageOfClassroom _instance; }; }; - PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfClassroomDefaultTypeInternal _MessageOfClassroom_default_instance_; - PROTOBUF_CONSTEXPR MessageOfGate::MessageOfGate( - ::_pbi::ConstantInitialized + PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MessageOfClassroomDefaultTypeInternal _MessageOfClassroom_default_instance_; + constexpr MessageOfGate::MessageOfGate( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized ) : - _impl_{ - /*decltype(_impl_.x_)*/ 0, /*decltype(_impl_.y_)*/ 0, /*decltype(_impl_.progress_)*/ 0, /*decltype(_impl_._cached_size_)*/ {}} + x_(0), + y_(0), + progress_(0) { } struct MessageOfGateDefaultTypeInternal { - PROTOBUF_CONSTEXPR MessageOfGateDefaultTypeInternal() : - _instance(::_pbi::ConstantInitialized{}) + constexpr MessageOfGateDefaultTypeInternal() : + _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) { } ~MessageOfGateDefaultTypeInternal() @@ -197,18 +284,19 @@ namespace protobuf MessageOfGate _instance; }; }; - PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfGateDefaultTypeInternal _MessageOfGate_default_instance_; - PROTOBUF_CONSTEXPR MessageOfHiddenGate::MessageOfHiddenGate( - ::_pbi::ConstantInitialized + PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MessageOfGateDefaultTypeInternal _MessageOfGate_default_instance_; + constexpr MessageOfHiddenGate::MessageOfHiddenGate( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized ) : - _impl_{ - /*decltype(_impl_.x_)*/ 0, /*decltype(_impl_.y_)*/ 0, /*decltype(_impl_.opened_)*/ false, /*decltype(_impl_._cached_size_)*/ {}} + x_(0), + y_(0), + opened_(false) { } struct MessageOfHiddenGateDefaultTypeInternal { - PROTOBUF_CONSTEXPR MessageOfHiddenGateDefaultTypeInternal() : - _instance(::_pbi::ConstantInitialized{}) + constexpr MessageOfHiddenGateDefaultTypeInternal() : + _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) { } ~MessageOfHiddenGateDefaultTypeInternal() @@ -219,18 +307,20 @@ namespace protobuf MessageOfHiddenGate _instance; }; }; - PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfHiddenGateDefaultTypeInternal _MessageOfHiddenGate_default_instance_; - PROTOBUF_CONSTEXPR MessageOfDoor::MessageOfDoor( - ::_pbi::ConstantInitialized + PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MessageOfHiddenGateDefaultTypeInternal _MessageOfHiddenGate_default_instance_; + constexpr MessageOfDoor::MessageOfDoor( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized ) : - _impl_{ - /*decltype(_impl_.x_)*/ 0, /*decltype(_impl_.y_)*/ 0, /*decltype(_impl_.is_open_)*/ false, /*decltype(_impl_.progress_)*/ 0, /*decltype(_impl_._cached_size_)*/ {}} + x_(0), + y_(0), + is_open_(false), + progress_(0) { } struct MessageOfDoorDefaultTypeInternal { - PROTOBUF_CONSTEXPR MessageOfDoorDefaultTypeInternal() : - _instance(::_pbi::ConstantInitialized{}) + constexpr MessageOfDoorDefaultTypeInternal() : + _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) { } ~MessageOfDoorDefaultTypeInternal() @@ -241,18 +331,19 @@ namespace protobuf MessageOfDoor _instance; }; }; - PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfDoorDefaultTypeInternal _MessageOfDoor_default_instance_; - PROTOBUF_CONSTEXPR MessageOfChest::MessageOfChest( - ::_pbi::ConstantInitialized + PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MessageOfDoorDefaultTypeInternal _MessageOfDoor_default_instance_; + constexpr MessageOfChest::MessageOfChest( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized ) : - _impl_{ - /*decltype(_impl_.x_)*/ 0, /*decltype(_impl_.y_)*/ 0, /*decltype(_impl_.progress_)*/ 0, /*decltype(_impl_._cached_size_)*/ {}} + x_(0), + y_(0), + progress_(0) { } struct MessageOfChestDefaultTypeInternal { - PROTOBUF_CONSTEXPR MessageOfChestDefaultTypeInternal() : - _instance(::_pbi::ConstantInitialized{}) + constexpr MessageOfChestDefaultTypeInternal() : + _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) { } ~MessageOfChestDefaultTypeInternal() @@ -263,18 +354,18 @@ namespace protobuf MessageOfChest _instance; }; }; - PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfChestDefaultTypeInternal _MessageOfChest_default_instance_; - PROTOBUF_CONSTEXPR MessageOfMap_Row::MessageOfMap_Row( - ::_pbi::ConstantInitialized + PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MessageOfChestDefaultTypeInternal _MessageOfChest_default_instance_; + constexpr MessageOfMap_Row::MessageOfMap_Row( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized ) : - _impl_{ - /*decltype(_impl_.col_)*/ {}, /*decltype(_impl_._col_cached_byte_size_)*/ {0}, /*decltype(_impl_._cached_size_)*/ {}} + col_(), + _col_cached_byte_size_(0) { } struct MessageOfMap_RowDefaultTypeInternal { - PROTOBUF_CONSTEXPR MessageOfMap_RowDefaultTypeInternal() : - _instance(::_pbi::ConstantInitialized{}) + constexpr MessageOfMap_RowDefaultTypeInternal() : + _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) { } ~MessageOfMap_RowDefaultTypeInternal() @@ -285,18 +376,17 @@ namespace protobuf MessageOfMap_Row _instance; }; }; - PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfMap_RowDefaultTypeInternal _MessageOfMap_Row_default_instance_; - PROTOBUF_CONSTEXPR MessageOfMap::MessageOfMap( - ::_pbi::ConstantInitialized + PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MessageOfMap_RowDefaultTypeInternal _MessageOfMap_Row_default_instance_; + constexpr MessageOfMap::MessageOfMap( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized ) : - _impl_{ - /*decltype(_impl_.row_)*/ {}, /*decltype(_impl_._cached_size_)*/ {}} + row_() { } struct MessageOfMapDefaultTypeInternal { - PROTOBUF_CONSTEXPR MessageOfMapDefaultTypeInternal() : - _instance(::_pbi::ConstantInitialized{}) + constexpr MessageOfMapDefaultTypeInternal() : + _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) { } ~MessageOfMapDefaultTypeInternal() @@ -307,18 +397,19 @@ namespace protobuf MessageOfMap _instance; }; }; - PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfMapDefaultTypeInternal _MessageOfMap_default_instance_; - PROTOBUF_CONSTEXPR MessageOfNews::MessageOfNews( - ::_pbi::ConstantInitialized + PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MessageOfMapDefaultTypeInternal _MessageOfMap_default_instance_; + constexpr MessageOfNews::MessageOfNews( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized ) : - _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_)*/ {}} + news_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string), + from_id_(int64_t{0}), + to_id_(int64_t{0}) { } struct MessageOfNewsDefaultTypeInternal { - PROTOBUF_CONSTEXPR MessageOfNewsDefaultTypeInternal() : - _instance(::_pbi::ConstantInitialized{}) + constexpr MessageOfNewsDefaultTypeInternal() : + _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) { } ~MessageOfNewsDefaultTypeInternal() @@ -329,18 +420,17 @@ namespace protobuf MessageOfNews _instance; }; }; - PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfNewsDefaultTypeInternal _MessageOfNews_default_instance_; - PROTOBUF_CONSTEXPR MessageOfObj::MessageOfObj( - ::_pbi::ConstantInitialized + PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MessageOfNewsDefaultTypeInternal _MessageOfNews_default_instance_; + constexpr MessageOfObj::MessageOfObj( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized ) : - _impl_{ - /*decltype(_impl_.message_of_obj_)*/ {}, /*decltype(_impl_._cached_size_)*/ {}, /*decltype(_impl_._oneof_case_)*/ {}} + _oneof_case_{} { } struct MessageOfObjDefaultTypeInternal { - PROTOBUF_CONSTEXPR MessageOfObjDefaultTypeInternal() : - _instance(::_pbi::ConstantInitialized{}) + constexpr MessageOfObjDefaultTypeInternal() : + _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) { } ~MessageOfObjDefaultTypeInternal() @@ -351,18 +441,22 @@ namespace protobuf MessageOfObj _instance; }; }; - PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfObjDefaultTypeInternal _MessageOfObj_default_instance_; - PROTOBUF_CONSTEXPR MessageOfAll::MessageOfAll( - ::_pbi::ConstantInitialized + PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MessageOfObjDefaultTypeInternal _MessageOfObj_default_instance_; + constexpr MessageOfAll::MessageOfAll( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized ) : - _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_)*/ {}} + game_time_(0), + subject_finished_(0), + student_graduated_(0), + student_quited_(0), + student_score_(0), + tricker_score_(0) { } struct MessageOfAllDefaultTypeInternal { - PROTOBUF_CONSTEXPR MessageOfAllDefaultTypeInternal() : - _instance(::_pbi::ConstantInitialized{}) + constexpr MessageOfAllDefaultTypeInternal() : + _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) { } ~MessageOfAllDefaultTypeInternal() @@ -373,18 +467,19 @@ namespace protobuf MessageOfAll _instance; }; }; - PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfAllDefaultTypeInternal _MessageOfAll_default_instance_; - PROTOBUF_CONSTEXPR MessageToClient::MessageToClient( - ::_pbi::ConstantInitialized + PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MessageOfAllDefaultTypeInternal _MessageOfAll_default_instance_; + constexpr MessageToClient::MessageToClient( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized ) : - _impl_{ - /*decltype(_impl_.obj_message_)*/ {}, /*decltype(_impl_.all_message_)*/ nullptr, /*decltype(_impl_.game_state_)*/ 0, /*decltype(_impl_._cached_size_)*/ {}} + obj_message_(), + all_message_(nullptr), + game_state_(0) { } struct MessageToClientDefaultTypeInternal { - PROTOBUF_CONSTEXPR MessageToClientDefaultTypeInternal() : - _instance(::_pbi::ConstantInitialized{}) + constexpr MessageToClientDefaultTypeInternal() : + _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) { } ~MessageToClientDefaultTypeInternal() @@ -395,18 +490,19 @@ namespace protobuf MessageToClient _instance; }; }; - PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageToClientDefaultTypeInternal _MessageToClient_default_instance_; - PROTOBUF_CONSTEXPR MoveRes::MoveRes( - ::_pbi::ConstantInitialized + PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MessageToClientDefaultTypeInternal _MessageToClient_default_instance_; + constexpr MoveRes::MoveRes( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized ) : - _impl_{ - /*decltype(_impl_.actual_speed_)*/ int64_t{0}, /*decltype(_impl_.actual_angle_)*/ 0, /*decltype(_impl_.act_success_)*/ false, /*decltype(_impl_._cached_size_)*/ {}} + actual_speed_(int64_t{0}), + actual_angle_(0), + act_success_(false) { } struct MoveResDefaultTypeInternal { - PROTOBUF_CONSTEXPR MoveResDefaultTypeInternal() : - _instance(::_pbi::ConstantInitialized{}) + constexpr MoveResDefaultTypeInternal() : + _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) { } ~MoveResDefaultTypeInternal() @@ -417,18 +513,17 @@ namespace protobuf MoveRes _instance; }; }; - PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MoveResDefaultTypeInternal _MoveRes_default_instance_; - PROTOBUF_CONSTEXPR BoolRes::BoolRes( - ::_pbi::ConstantInitialized + PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MoveResDefaultTypeInternal _MoveRes_default_instance_; + constexpr BoolRes::BoolRes( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized ) : - _impl_{ - /*decltype(_impl_.act_success_)*/ false, /*decltype(_impl_._cached_size_)*/ {}} + act_success_(false) { } struct BoolResDefaultTypeInternal { - PROTOBUF_CONSTEXPR BoolResDefaultTypeInternal() : - _instance(::_pbi::ConstantInitialized{}) + constexpr BoolResDefaultTypeInternal() : + _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) { } ~BoolResDefaultTypeInternal() @@ -439,11 +534,11 @@ namespace protobuf BoolRes _instance; }; }; - PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BoolResDefaultTypeInternal _BoolRes_default_instance_; + PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT BoolResDefaultTypeInternal _BoolRes_default_instance_; } // namespace protobuf -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; +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; const uint32_t TableStruct_Message2Clients_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { ~0u, // no _has_bits_ @@ -452,230 +547,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, _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_), + 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_), ~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, _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_), + 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_), ~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, _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_), + 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_), ~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, _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_), + 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_), ~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, _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_), + 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_), ~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, _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_), + 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_), ~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, _impl_.x_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfClassroom, _impl_.y_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfClassroom, _impl_.progress_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfClassroom, x_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfClassroom, y_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfClassroom, 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, _impl_.x_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfGate, _impl_.y_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfGate, _impl_.progress_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfGate, x_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfGate, y_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfGate, 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, _impl_.x_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfHiddenGate, _impl_.y_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfHiddenGate, _impl_.opened_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfHiddenGate, x_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfHiddenGate, y_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfHiddenGate, 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, _impl_.x_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfDoor, _impl_.y_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfDoor, _impl_.is_open_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfDoor, _impl_.progress_), + 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_), ~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, _impl_.x_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfChest, _impl_.y_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfChest, _impl_.progress_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfChest, x_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfChest, y_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfChest, 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, _impl_.col_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfMap_Row, 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, _impl_.row_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfMap, 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, _impl_.news_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfNews, _impl_.from_id_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfNews, _impl_.to_id_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfNews, news_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfNews, from_id_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfNews, to_id_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfObj, _internal_metadata_), ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfObj, _impl_._oneof_case_[0]), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfObj, _oneof_case_[0]), ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - ::_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_), + ::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_), ~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, _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_), + 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_), ~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, _impl_.obj_message_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageToClient, _impl_.game_state_), - PROTOBUF_FIELD_OFFSET(::protobuf::MessageToClient, _impl_.all_message_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageToClient, obj_message_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageToClient, game_state_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageToClient, 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, _impl_.actual_speed_), - PROTOBUF_FIELD_OFFSET(::protobuf::MoveRes, _impl_.actual_angle_), - PROTOBUF_FIELD_OFFSET(::protobuf::MoveRes, _impl_.act_success_), + PROTOBUF_FIELD_OFFSET(::protobuf::MoveRes, actual_speed_), + PROTOBUF_FIELD_OFFSET(::protobuf::MoveRes, actual_angle_), + PROTOBUF_FIELD_OFFSET(::protobuf::MoveRes, 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, _impl_.act_success_), + PROTOBUF_FIELD_OFFSET(::protobuf::BoolRes, act_success_), }; -static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { +static const ::PROTOBUF_NAMESPACE_ID::internal::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)}, @@ -697,26 +792,26 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode {221, -1, -1, sizeof(::protobuf::BoolRes)}, }; -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, +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_), }; const char descriptor_table_protodef_Message2Clients_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = @@ -805,11 +900,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 ::_pbi::DescriptorTable* const descriptor_table_Message2Clients_2eproto_deps[1] = { +static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable* const descriptor_table_Message2Clients_2eproto_deps[1] = { &::descriptor_table_MessageType_2eproto, }; -static ::_pbi::once_flag descriptor_table_Message2Clients_2eproto_once; -const ::_pbi::DescriptorTable descriptor_table_Message2Clients_2eproto = { +static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_Message2Clients_2eproto_once; +const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_Message2Clients_2eproto = { false, false, 3378, @@ -826,13 +921,13 @@ const ::_pbi::DescriptorTable descriptor_table_Message2Clients_2eproto = { file_level_enum_descriptors_Message2Clients_2eproto, file_level_service_descriptors_Message2Clients_2eproto, }; -PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_Message2Clients_2eproto_getter() +PROTOBUF_ATTRIBUTE_WEAK const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable* descriptor_table_Message2Clients_2eproto_getter() { return &descriptor_table_Message2Clients_2eproto; } // Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_Message2Clients_2eproto(&descriptor_table_Message2Clients_2eproto); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY static ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptorsRunner dynamic_init_dummy_Message2Clients_2eproto(&descriptor_table_Message2Clients_2eproto); namespace protobuf { @@ -844,56 +939,59 @@ namespace protobuf }; MessageOfStudent::MessageOfStudent(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : - ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) + ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + time_until_skill_available_(arena), + prop_(arena), + buff_(arena) { - SharedCtor(arena, is_message_owned); + SharedCtor(); + if (!is_message_owned) + { + RegisterArenaDtor(arena); + } // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfStudent) } MessageOfStudent::MessageOfStudent(const MessageOfStudent& from) : - ::PROTOBUF_NAMESPACE_ID::Message() + ::PROTOBUF_NAMESPACE_ID::Message(), + time_until_skill_available_(from.time_until_skill_available_), + prop_(from.prop_), + buff_(from.buff_) { - 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(&_impl_.x_, &from._impl_.x_, static_cast(reinterpret_cast(&_impl_.facing_direction_) - reinterpret_cast(&_impl_.x_)) + sizeof(_impl_.facing_direction_)); + ::memcpy(&x_, &from.x_, static_cast(reinterpret_cast(&facing_direction_) - reinterpret_cast(&x_)) + sizeof(facing_direction_)); // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfStudent) } - inline void MessageOfStudent::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned - ) + inline void MessageOfStudent::SharedCtor() { - (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_)*/ {}}; + ::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_)); } MessageOfStudent::~MessageOfStudent() { // @@protoc_insertion_point(destructor:protobuf.MessageOfStudent) - if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) - { - (void)arena; + if (GetArenaForAllocation() != nullptr) 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 { - _impl_._cached_size_.Set(size); + _cached_size_.Set(size); } void MessageOfStudent::Clear() @@ -903,14 +1001,14 @@ namespace protobuf // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; - _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_)); + time_until_skill_available_.Clear(); + prop_.Clear(); + buff_.Clear(); + ::memset(&x_, 0, static_cast(reinterpret_cast(&facing_direction_) - reinterpret_cast(&x_)) + sizeof(facing_direction_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - const char* MessageOfStudent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) + const char* MessageOfStudent::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) \ if (PROTOBUF_PREDICT_FALSE(!(x))) \ @@ -918,14 +1016,14 @@ namespace protobuf while (!ctx->Done(&ptr)) { uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); switch (tag >> 3) { // int32 x = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -935,7 +1033,7 @@ namespace protobuf case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -945,7 +1043,7 @@ namespace protobuf case 3: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - _impl_.speed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + speed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -955,7 +1053,7 @@ namespace protobuf case 4: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { - _impl_.determination_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + determination_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -965,7 +1063,7 @@ namespace protobuf case 5: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { - _impl_.addiction_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + addiction_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -1028,7 +1126,7 @@ namespace protobuf case 10: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 80)) { - _impl_.guid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + guid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else @@ -1049,7 +1147,7 @@ namespace protobuf case 13: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 104)) { - _impl_.learning_speed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + learning_speed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -1059,7 +1157,7 @@ namespace protobuf case 14: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 112)) { - _impl_.treat_speed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + treat_speed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -1069,7 +1167,7 @@ namespace protobuf case 15: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 120)) { - _impl_.player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else @@ -1079,7 +1177,7 @@ namespace protobuf case 16: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 128)) { - _impl_.view_range_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + view_range_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -1089,7 +1187,7 @@ namespace protobuf case 17: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 136)) { - _impl_.radius_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + radius_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -1099,7 +1197,7 @@ namespace protobuf case 19: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 153)) { - _impl_.danger_alert_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + danger_alert_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(double); } else @@ -1109,7 +1207,7 @@ namespace protobuf case 20: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 160)) { - _impl_.score_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + score_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -1119,7 +1217,7 @@ namespace protobuf case 21: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 168)) { - _impl_.treat_progress_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + treat_progress_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -1129,7 +1227,7 @@ namespace protobuf case 22: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 176)) { - _impl_.rescue_progress_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + rescue_progress_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -1150,7 +1248,7 @@ namespace protobuf case 24: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 193)) { - _impl_.facing_direction_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + facing_direction_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(double); } else @@ -1210,35 +1308,35 @@ namespace protobuf if (this->_internal_x() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_x(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_x(), target); } // int32 y = 2; if (this->_internal_y() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_y(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_y(), target); } // int32 speed = 3; if (this->_internal_speed() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_speed(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_speed(), target); } // int32 determination = 4; if (this->_internal_determination() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray(4, this->_internal_determination(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_determination(), target); } // int32 addiction = 5; if (this->_internal_addiction() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray(5, this->_internal_addiction(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(5, this->_internal_addiction(), target); } // repeated double time_until_skill_available = 6; @@ -1251,18 +1349,18 @@ namespace protobuf if (this->_internal_place() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( 7, this->_internal_place(), target ); } // repeated .protobuf.PropType prop = 8; { - int byte_size = _impl_._prop_cached_byte_size_.load(std::memory_order_relaxed); + int byte_size = _prop_cached_byte_size_.load(std::memory_order_relaxed); if (byte_size > 0) { target = stream->WriteEnumPacked( - 8, _impl_.prop_, byte_size, target + 8, prop_, byte_size, target ); } } @@ -1271,7 +1369,7 @@ namespace protobuf if (this->_internal_player_state() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( 9, this->_internal_player_state(), target ); } @@ -1280,14 +1378,14 @@ namespace protobuf if (this->_internal_guid() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt64ToArray(10, this->_internal_guid(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(10, this->_internal_guid(), target); } // .protobuf.BulletType bullet_type = 12; if (this->_internal_bullet_type() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( 12, this->_internal_bullet_type(), target ); } @@ -1296,35 +1394,35 @@ namespace protobuf if (this->_internal_learning_speed() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray(13, this->_internal_learning_speed(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(13, this->_internal_learning_speed(), target); } // int32 treat_speed = 14; if (this->_internal_treat_speed() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray(14, this->_internal_treat_speed(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(14, this->_internal_treat_speed(), target); } // int64 player_id = 15; if (this->_internal_player_id() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt64ToArray(15, this->_internal_player_id(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(15, this->_internal_player_id(), target); } // int32 view_range = 16; if (this->_internal_view_range() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray(16, this->_internal_view_range(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(16, this->_internal_view_range(), target); } // int32 radius = 17; if (this->_internal_radius() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray(17, this->_internal_radius(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(17, this->_internal_radius(), target); } // double danger_alert = 19; @@ -1335,35 +1433,35 @@ namespace protobuf if (raw_danger_alert != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray(19, this->_internal_danger_alert(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(19, this->_internal_danger_alert(), target); } // int32 score = 20; if (this->_internal_score() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray(20, this->_internal_score(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(20, this->_internal_score(), target); } // int32 treat_progress = 21; if (this->_internal_treat_progress() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray(21, this->_internal_treat_progress(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(21, this->_internal_treat_progress(), target); } // int32 rescue_progress = 22; if (this->_internal_rescue_progress() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray(22, this->_internal_rescue_progress(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(22, this->_internal_rescue_progress(), target); } // .protobuf.StudentType student_type = 23; if (this->_internal_student_type() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( 23, this->_internal_student_type(), target ); } @@ -1376,23 +1474,23 @@ namespace protobuf if (raw_facing_direction != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray(24, this->_internal_facing_direction(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(24, this->_internal_facing_direction(), target); } // repeated .protobuf.StudentBuffType buff = 25; { - int byte_size = _impl_._buff_cached_byte_size_.load(std::memory_order_relaxed); + int byte_size = _buff_cached_byte_size_.load(std::memory_order_relaxed); if (byte_size > 0) { target = stream->WriteEnumPacked( - 25, _impl_.buff_, byte_size, target + 25, buff_, byte_size, target ); } } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream ); } @@ -1416,7 +1514,9 @@ namespace protobuf if (data_size > 0) { total_size += 1 + - ::_pbi::WireFormatLite::Int32Size(static_cast(data_size)); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( + static_cast(data_size) + ); } total_size += data_size; } @@ -1427,17 +1527,19 @@ namespace protobuf unsigned int count = static_cast(this->_internal_prop_size()); for (unsigned int i = 0; i < count; i++) { - data_size += ::_pbi::WireFormatLite::EnumSize( + data_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize( this->_internal_prop(static_cast(i)) ); } if (data_size > 0) { total_size += 1 + - ::_pbi::WireFormatLite::Int32Size(static_cast(data_size)); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( + static_cast(data_size) + ); } - int cached_size = ::_pbi::ToCachedSize(data_size); - _impl_._prop_cached_byte_size_.store(cached_size, std::memory_order_relaxed); + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); + _prop_cached_byte_size_.store(cached_size, std::memory_order_relaxed); total_size += data_size; } @@ -1447,100 +1549,102 @@ namespace protobuf unsigned int count = static_cast(this->_internal_buff_size()); for (unsigned int i = 0; i < count; i++) { - data_size += ::_pbi::WireFormatLite::EnumSize( + data_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize( this->_internal_buff(static_cast(i)) ); } if (data_size > 0) { total_size += 2 + - ::_pbi::WireFormatLite::Int32Size(static_cast(data_size)); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( + static_cast(data_size) + ); } - int cached_size = ::_pbi::ToCachedSize(data_size); - _impl_._buff_cached_byte_size_.store(cached_size, std::memory_order_relaxed); + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); + _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 += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_x()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_x()); } // int32 y = 2; if (this->_internal_y() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_y()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_y()); } // int32 speed = 3; if (this->_internal_speed() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_speed()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_speed()); } // int32 determination = 4; if (this->_internal_determination() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_determination()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_determination()); } // int32 addiction = 5; if (this->_internal_addiction() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_addiction()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_addiction()); } // .protobuf.PlaceType place = 7; if (this->_internal_place() != 0) { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_place()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_place()); } // int64 guid = 10; if (this->_internal_guid() != 0) { - total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_guid()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_guid()); } // .protobuf.PlayerState player_state = 9; if (this->_internal_player_state() != 0) { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_player_state()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_player_state()); } // .protobuf.BulletType bullet_type = 12; if (this->_internal_bullet_type() != 0) { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_bullet_type()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_bullet_type()); } // int32 learning_speed = 13; if (this->_internal_learning_speed() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_learning_speed()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_learning_speed()); } // int32 treat_speed = 14; if (this->_internal_treat_speed() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_treat_speed()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_treat_speed()); } // int64 player_id = 15; if (this->_internal_player_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_player_id()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_player_id()); } // int32 view_range = 16; if (this->_internal_view_range() != 0) { total_size += 2 + - ::_pbi::WireFormatLite::Int32Size( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( this->_internal_view_range() ); } @@ -1549,7 +1653,7 @@ namespace protobuf if (this->_internal_radius() != 0) { total_size += 2 + - ::_pbi::WireFormatLite::Int32Size( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( this->_internal_radius() ); } @@ -1568,7 +1672,7 @@ namespace protobuf if (this->_internal_score() != 0) { total_size += 2 + - ::_pbi::WireFormatLite::Int32Size( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( this->_internal_score() ); } @@ -1577,7 +1681,7 @@ namespace protobuf if (this->_internal_treat_progress() != 0) { total_size += 2 + - ::_pbi::WireFormatLite::Int32Size( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( this->_internal_treat_progress() ); } @@ -1586,7 +1690,7 @@ namespace protobuf if (this->_internal_rescue_progress() != 0) { total_size += 2 + - ::_pbi::WireFormatLite::Int32Size( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( this->_internal_rescue_progress() ); } @@ -1595,7 +1699,7 @@ namespace protobuf if (this->_internal_student_type() != 0) { total_size += 2 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_student_type()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_student_type()); } // double facing_direction = 24; @@ -1608,84 +1712,89 @@ namespace protobuf total_size += 2 + 8; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfStudent::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, MessageOfStudent::MergeImpl}; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfStudent::GetClassData() const { return &_class_data_; } - void MessageOfStudent::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) + 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) { - 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; - _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_); + time_until_skill_available_.MergeFrom(from.time_until_skill_available_); + prop_.MergeFrom(from.prop_); + buff_.MergeFrom(from.buff_); if (from._internal_x() != 0) { - _this->_internal_set_x(from._internal_x()); + _internal_set_x(from._internal_x()); } if (from._internal_y() != 0) { - _this->_internal_set_y(from._internal_y()); + _internal_set_y(from._internal_y()); } if (from._internal_speed() != 0) { - _this->_internal_set_speed(from._internal_speed()); + _internal_set_speed(from._internal_speed()); } if (from._internal_determination() != 0) { - _this->_internal_set_determination(from._internal_determination()); + _internal_set_determination(from._internal_determination()); } if (from._internal_addiction() != 0) { - _this->_internal_set_addiction(from._internal_addiction()); + _internal_set_addiction(from._internal_addiction()); } if (from._internal_place() != 0) { - _this->_internal_set_place(from._internal_place()); + _internal_set_place(from._internal_place()); } if (from._internal_guid() != 0) { - _this->_internal_set_guid(from._internal_guid()); + _internal_set_guid(from._internal_guid()); } if (from._internal_player_state() != 0) { - _this->_internal_set_player_state(from._internal_player_state()); + _internal_set_player_state(from._internal_player_state()); } if (from._internal_bullet_type() != 0) { - _this->_internal_set_bullet_type(from._internal_bullet_type()); + _internal_set_bullet_type(from._internal_bullet_type()); } if (from._internal_learning_speed() != 0) { - _this->_internal_set_learning_speed(from._internal_learning_speed()); + _internal_set_learning_speed(from._internal_learning_speed()); } if (from._internal_treat_speed() != 0) { - _this->_internal_set_treat_speed(from._internal_treat_speed()); + _internal_set_treat_speed(from._internal_treat_speed()); } if (from._internal_player_id() != 0) { - _this->_internal_set_player_id(from._internal_player_id()); + _internal_set_player_id(from._internal_player_id()); } if (from._internal_view_range() != 0) { - _this->_internal_set_view_range(from._internal_view_range()); + _internal_set_view_range(from._internal_view_range()); } if (from._internal_radius() != 0) { - _this->_internal_set_radius(from._internal_radius()); + _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(); @@ -1693,23 +1802,23 @@ namespace protobuf memcpy(&raw_danger_alert, &tmp_danger_alert, sizeof(tmp_danger_alert)); if (raw_danger_alert != 0) { - _this->_internal_set_danger_alert(from._internal_danger_alert()); + _internal_set_danger_alert(from._internal_danger_alert()); } if (from._internal_score() != 0) { - _this->_internal_set_score(from._internal_score()); + _internal_set_score(from._internal_score()); } if (from._internal_treat_progress() != 0) { - _this->_internal_set_treat_progress(from._internal_treat_progress()); + _internal_set_treat_progress(from._internal_treat_progress()); } if (from._internal_rescue_progress() != 0) { - _this->_internal_set_rescue_progress(from._internal_rescue_progress()); + _internal_set_rescue_progress(from._internal_rescue_progress()); } if (from._internal_student_type() != 0) { - _this->_internal_set_student_type(from._internal_student_type()); + _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(); @@ -1717,9 +1826,9 @@ namespace protobuf memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction)); if (raw_facing_direction != 0) { - _this->_internal_set_facing_direction(from._internal_facing_direction()); + _internal_set_facing_direction(from._internal_facing_direction()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MessageOfStudent::CopyFrom(const MessageOfStudent& from) @@ -1740,19 +1849,19 @@ namespace protobuf { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.time_until_skill_available_.InternalSwap(&other->_impl_.time_until_skill_available_); - _impl_.prop_.InternalSwap(&other->_impl_.prop_); - _impl_.buff_.InternalSwap(&other->_impl_.buff_); + time_until_skill_available_.InternalSwap(&other->time_until_skill_available_); + prop_.InternalSwap(&other->prop_); + buff_.InternalSwap(&other->buff_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - 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_FIELD_OFFSET(MessageOfStudent, facing_direction_) + sizeof(MessageOfStudent::facing_direction_) - PROTOBUF_FIELD_OFFSET(MessageOfStudent, x_)>( + reinterpret_cast(&x_), + reinterpret_cast(&other->x_) ); } ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfStudent::GetMetadata() const { - return ::_pbi::AssignDescriptors( + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[0] ); } @@ -1765,56 +1874,59 @@ namespace protobuf }; MessageOfTricker::MessageOfTricker(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : - ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) + ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + time_until_skill_available_(arena), + prop_(arena), + buff_(arena) { - SharedCtor(arena, is_message_owned); + SharedCtor(); + if (!is_message_owned) + { + RegisterArenaDtor(arena); + } // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfTricker) } MessageOfTricker::MessageOfTricker(const MessageOfTricker& from) : - ::PROTOBUF_NAMESPACE_ID::Message() + ::PROTOBUF_NAMESPACE_ID::Message(), + time_until_skill_available_(from.time_until_skill_available_), + prop_(from.prop_), + buff_(from.buff_) { - 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(&_impl_.x_, &from._impl_.x_, static_cast(reinterpret_cast(&_impl_.facing_direction_) - reinterpret_cast(&_impl_.x_)) + sizeof(_impl_.facing_direction_)); + ::memcpy(&x_, &from.x_, static_cast(reinterpret_cast(&facing_direction_) - reinterpret_cast(&x_)) + sizeof(facing_direction_)); // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfTricker) } - inline void MessageOfTricker::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned - ) + inline void MessageOfTricker::SharedCtor() { - (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_)*/ {}}; + ::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_)); } MessageOfTricker::~MessageOfTricker() { // @@protoc_insertion_point(destructor:protobuf.MessageOfTricker) - if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) - { - (void)arena; + if (GetArenaForAllocation() != nullptr) 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 { - _impl_._cached_size_.Set(size); + _cached_size_.Set(size); } void MessageOfTricker::Clear() @@ -1824,14 +1936,14 @@ namespace protobuf // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; - _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_)); + time_until_skill_available_.Clear(); + prop_.Clear(); + buff_.Clear(); + ::memset(&x_, 0, static_cast(reinterpret_cast(&facing_direction_) - reinterpret_cast(&x_)) + sizeof(facing_direction_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - const char* MessageOfTricker::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) + const char* MessageOfTricker::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) \ if (PROTOBUF_PREDICT_FALSE(!(x))) \ @@ -1839,14 +1951,14 @@ namespace protobuf while (!ctx->Done(&ptr)) { uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); switch (tag >> 3) { // int32 x = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -1856,7 +1968,7 @@ namespace protobuf case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -1866,7 +1978,7 @@ namespace protobuf case 3: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - _impl_.speed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + speed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -1929,7 +2041,7 @@ namespace protobuf case 9: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 72)) { - _impl_.guid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + guid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else @@ -1939,7 +2051,7 @@ namespace protobuf case 10: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 80)) { - _impl_.score_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + score_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -1949,7 +2061,7 @@ namespace protobuf case 11: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 88)) { - _impl_.player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else @@ -1959,7 +2071,7 @@ namespace protobuf case 12: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 96)) { - _impl_.view_range_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + view_range_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -1969,7 +2081,7 @@ namespace protobuf case 13: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 104)) { - _impl_.radius_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + radius_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -1990,7 +2102,7 @@ namespace protobuf case 15: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 121)) { - _impl_.trick_desire_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + trick_desire_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(double); } else @@ -2000,7 +2112,7 @@ namespace protobuf case 16: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 129)) { - _impl_.class_volume_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + class_volume_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(double); } else @@ -2010,7 +2122,7 @@ namespace protobuf case 17: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 137)) { - _impl_.facing_direction_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + facing_direction_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(double); } else @@ -2081,21 +2193,21 @@ namespace protobuf if (this->_internal_x() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_x(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_x(), target); } // int32 y = 2; if (this->_internal_y() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_y(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_y(), target); } // int32 speed = 3; if (this->_internal_speed() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_speed(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_speed(), target); } // repeated double time_until_skill_available = 5; @@ -2108,18 +2220,18 @@ namespace protobuf if (this->_internal_place() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( 6, this->_internal_place(), target ); } // repeated .protobuf.PropType prop = 7; { - int byte_size = _impl_._prop_cached_byte_size_.load(std::memory_order_relaxed); + int byte_size = _prop_cached_byte_size_.load(std::memory_order_relaxed); if (byte_size > 0) { target = stream->WriteEnumPacked( - 7, _impl_.prop_, byte_size, target + 7, prop_, byte_size, target ); } } @@ -2128,7 +2240,7 @@ namespace protobuf if (this->_internal_tricker_type() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( 8, this->_internal_tricker_type(), target ); } @@ -2137,42 +2249,42 @@ namespace protobuf if (this->_internal_guid() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt64ToArray(9, this->_internal_guid(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(9, this->_internal_guid(), target); } // int32 score = 10; if (this->_internal_score() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray(10, this->_internal_score(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(10, this->_internal_score(), target); } // int64 player_id = 11; if (this->_internal_player_id() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt64ToArray(11, this->_internal_player_id(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(11, this->_internal_player_id(), target); } // int32 view_range = 12; if (this->_internal_view_range() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray(12, this->_internal_view_range(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(12, this->_internal_view_range(), target); } // int32 radius = 13; if (this->_internal_radius() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray(13, this->_internal_radius(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(13, this->_internal_radius(), target); } // .protobuf.PlayerState player_state = 14; if (this->_internal_player_state() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( 14, this->_internal_player_state(), target ); } @@ -2185,7 +2297,7 @@ namespace protobuf if (raw_trick_desire != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray(15, this->_internal_trick_desire(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(15, this->_internal_trick_desire(), target); } // double class_volume = 16; @@ -2196,7 +2308,7 @@ namespace protobuf if (raw_class_volume != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray(16, this->_internal_class_volume(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(16, this->_internal_class_volume(), target); } // double facing_direction = 17; @@ -2207,32 +2319,32 @@ namespace protobuf if (raw_facing_direction != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray(17, this->_internal_facing_direction(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(17, this->_internal_facing_direction(), target); } // .protobuf.BulletType bullet_type = 18; if (this->_internal_bullet_type() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( 18, this->_internal_bullet_type(), target ); } // repeated .protobuf.TrickerBuffType buff = 19; { - int byte_size = _impl_._buff_cached_byte_size_.load(std::memory_order_relaxed); + int byte_size = _buff_cached_byte_size_.load(std::memory_order_relaxed); if (byte_size > 0) { target = stream->WriteEnumPacked( - 19, _impl_.buff_, byte_size, target + 19, buff_, byte_size, target ); } } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream ); } @@ -2256,7 +2368,9 @@ namespace protobuf if (data_size > 0) { total_size += 1 + - ::_pbi::WireFormatLite::Int32Size(static_cast(data_size)); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( + static_cast(data_size) + ); } total_size += data_size; } @@ -2267,17 +2381,19 @@ namespace protobuf unsigned int count = static_cast(this->_internal_prop_size()); for (unsigned int i = 0; i < count; i++) { - data_size += ::_pbi::WireFormatLite::EnumSize( + data_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize( this->_internal_prop(static_cast(i)) ); } if (data_size > 0) { total_size += 1 + - ::_pbi::WireFormatLite::Int32Size(static_cast(data_size)); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( + static_cast(data_size) + ); } - int cached_size = ::_pbi::ToCachedSize(data_size); - _impl_._prop_cached_byte_size_.store(cached_size, std::memory_order_relaxed); + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); + _prop_cached_byte_size_.store(cached_size, std::memory_order_relaxed); total_size += data_size; } @@ -2287,80 +2403,82 @@ namespace protobuf unsigned int count = static_cast(this->_internal_buff_size()); for (unsigned int i = 0; i < count; i++) { - data_size += ::_pbi::WireFormatLite::EnumSize( + data_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize( this->_internal_buff(static_cast(i)) ); } if (data_size > 0) { total_size += 2 + - ::_pbi::WireFormatLite::Int32Size(static_cast(data_size)); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( + static_cast(data_size) + ); } - int cached_size = ::_pbi::ToCachedSize(data_size); - _impl_._buff_cached_byte_size_.store(cached_size, std::memory_order_relaxed); + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); + _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 += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_x()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_x()); } // int32 y = 2; if (this->_internal_y() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_y()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_y()); } // int32 speed = 3; if (this->_internal_speed() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_speed()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_speed()); } // .protobuf.PlaceType place = 6; if (this->_internal_place() != 0) { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_place()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_place()); } // int64 guid = 9; if (this->_internal_guid() != 0) { - total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_guid()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_guid()); } // .protobuf.TrickerType tricker_type = 8; if (this->_internal_tricker_type() != 0) { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_tricker_type()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_tricker_type()); } // int32 score = 10; if (this->_internal_score() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_score()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_score()); } // int64 player_id = 11; if (this->_internal_player_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_player_id()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_player_id()); } // int32 view_range = 12; if (this->_internal_view_range() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_view_range()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_view_range()); } // int32 radius = 13; if (this->_internal_radius() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_radius()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_radius()); } // double trick_desire = 15; @@ -2387,14 +2505,14 @@ namespace protobuf if (this->_internal_player_state() != 0) { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_player_state()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_player_state()); } // .protobuf.BulletType bullet_type = 18; if (this->_internal_bullet_type() != 0) { total_size += 2 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_bullet_type()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_bullet_type()); } // double facing_direction = 17; @@ -2407,68 +2525,73 @@ namespace protobuf total_size += 2 + 8; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfTricker::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, MessageOfTricker::MergeImpl}; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfTricker::GetClassData() const { return &_class_data_; } - void MessageOfTricker::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) + 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) { - 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; - _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_); + time_until_skill_available_.MergeFrom(from.time_until_skill_available_); + prop_.MergeFrom(from.prop_); + buff_.MergeFrom(from.buff_); if (from._internal_x() != 0) { - _this->_internal_set_x(from._internal_x()); + _internal_set_x(from._internal_x()); } if (from._internal_y() != 0) { - _this->_internal_set_y(from._internal_y()); + _internal_set_y(from._internal_y()); } if (from._internal_speed() != 0) { - _this->_internal_set_speed(from._internal_speed()); + _internal_set_speed(from._internal_speed()); } if (from._internal_place() != 0) { - _this->_internal_set_place(from._internal_place()); + _internal_set_place(from._internal_place()); } if (from._internal_guid() != 0) { - _this->_internal_set_guid(from._internal_guid()); + _internal_set_guid(from._internal_guid()); } if (from._internal_tricker_type() != 0) { - _this->_internal_set_tricker_type(from._internal_tricker_type()); + _internal_set_tricker_type(from._internal_tricker_type()); } if (from._internal_score() != 0) { - _this->_internal_set_score(from._internal_score()); + _internal_set_score(from._internal_score()); } if (from._internal_player_id() != 0) { - _this->_internal_set_player_id(from._internal_player_id()); + _internal_set_player_id(from._internal_player_id()); } if (from._internal_view_range() != 0) { - _this->_internal_set_view_range(from._internal_view_range()); + _internal_set_view_range(from._internal_view_range()); } if (from._internal_radius() != 0) { - _this->_internal_set_radius(from._internal_radius()); + _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(); @@ -2476,7 +2599,7 @@ namespace protobuf memcpy(&raw_trick_desire, &tmp_trick_desire, sizeof(tmp_trick_desire)); if (raw_trick_desire != 0) { - _this->_internal_set_trick_desire(from._internal_trick_desire()); + _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(); @@ -2484,15 +2607,15 @@ namespace protobuf memcpy(&raw_class_volume, &tmp_class_volume, sizeof(tmp_class_volume)); if (raw_class_volume != 0) { - _this->_internal_set_class_volume(from._internal_class_volume()); + _internal_set_class_volume(from._internal_class_volume()); } if (from._internal_player_state() != 0) { - _this->_internal_set_player_state(from._internal_player_state()); + _internal_set_player_state(from._internal_player_state()); } if (from._internal_bullet_type() != 0) { - _this->_internal_set_bullet_type(from._internal_bullet_type()); + _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(); @@ -2500,9 +2623,9 @@ namespace protobuf memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction)); if (raw_facing_direction != 0) { - _this->_internal_set_facing_direction(from._internal_facing_direction()); + _internal_set_facing_direction(from._internal_facing_direction()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MessageOfTricker::CopyFrom(const MessageOfTricker& from) @@ -2523,19 +2646,19 @@ namespace protobuf { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.time_until_skill_available_.InternalSwap(&other->_impl_.time_until_skill_available_); - _impl_.prop_.InternalSwap(&other->_impl_.prop_); - _impl_.buff_.InternalSwap(&other->_impl_.buff_); + time_until_skill_available_.InternalSwap(&other->time_until_skill_available_); + prop_.InternalSwap(&other->prop_); + buff_.InternalSwap(&other->buff_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - 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_FIELD_OFFSET(MessageOfTricker, facing_direction_) + sizeof(MessageOfTricker::facing_direction_) - PROTOBUF_FIELD_OFFSET(MessageOfTricker, x_)>( + reinterpret_cast(&x_), + reinterpret_cast(&other->x_) ); } ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfTricker::GetMetadata() const { - return ::_pbi::AssignDescriptors( + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[1] ); } @@ -2550,41 +2673,33 @@ namespace protobuf MessageOfBullet::MessageOfBullet(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); + SharedCtor(); + if (!is_message_owned) + { + RegisterArenaDtor(arena); + } // @@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(&_impl_.type_, &from._impl_.type_, static_cast(reinterpret_cast(&_impl_.speed_) - reinterpret_cast(&_impl_.type_)) + sizeof(_impl_.speed_)); + ::memcpy(&type_, &from.type_, static_cast(reinterpret_cast(&speed_) - reinterpret_cast(&type_)) + sizeof(speed_)); // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfBullet) } - inline void MessageOfBullet::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned - ) + inline void MessageOfBullet::SharedCtor() { - (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_)*/ {}}; + ::memset(reinterpret_cast(this) + static_cast(reinterpret_cast(&type_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&speed_) - reinterpret_cast(&type_)) + sizeof(speed_)); } MessageOfBullet::~MessageOfBullet() { // @@protoc_insertion_point(destructor:protobuf.MessageOfBullet) - if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) - { - (void)arena; + if (GetArenaForAllocation() != nullptr) return; - } SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void MessageOfBullet::SharedDtor() @@ -2592,9 +2707,17 @@ 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 { - _impl_._cached_size_.Set(size); + _cached_size_.Set(size); } void MessageOfBullet::Clear() @@ -2604,11 +2727,11 @@ namespace protobuf // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; - ::memset(&_impl_.type_, 0, static_cast(reinterpret_cast(&_impl_.speed_) - reinterpret_cast(&_impl_.type_)) + sizeof(_impl_.speed_)); + ::memset(&type_, 0, static_cast(reinterpret_cast(&speed_) - reinterpret_cast(&type_)) + sizeof(speed_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - const char* MessageOfBullet::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) + const char* MessageOfBullet::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) \ if (PROTOBUF_PREDICT_FALSE(!(x))) \ @@ -2616,7 +2739,7 @@ namespace protobuf while (!ctx->Done(&ptr)) { uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); switch (tag >> 3) { // .protobuf.BulletType type = 1; @@ -2634,7 +2757,7 @@ namespace protobuf case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -2644,7 +2767,7 @@ namespace protobuf case 3: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -2654,7 +2777,7 @@ namespace protobuf case 4: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 33)) { - _impl_.facing_direction_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + facing_direction_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(double); } else @@ -2664,7 +2787,7 @@ namespace protobuf case 5: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { - _impl_.guid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + guid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else @@ -2696,7 +2819,7 @@ namespace protobuf case 8: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 65)) { - _impl_.bomb_range_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + bomb_range_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(double); } else @@ -2706,7 +2829,7 @@ namespace protobuf case 9: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 72)) { - _impl_.speed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + speed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -2750,7 +2873,7 @@ namespace protobuf if (this->_internal_type() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( 1, this->_internal_type(), target ); } @@ -2759,14 +2882,14 @@ namespace protobuf if (this->_internal_x() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_x(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_x(), target); } // int32 y = 3; if (this->_internal_y() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_y(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_y(), target); } // double facing_direction = 4; @@ -2777,21 +2900,21 @@ namespace protobuf if (raw_facing_direction != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray(4, this->_internal_facing_direction(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(4, this->_internal_facing_direction(), target); } // int64 guid = 5; if (this->_internal_guid() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt64ToArray(5, this->_internal_guid(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(5, this->_internal_guid(), target); } // .protobuf.PlayerType team = 6; if (this->_internal_team() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( 6, this->_internal_team(), target ); } @@ -2800,7 +2923,7 @@ namespace protobuf if (this->_internal_place() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( 7, this->_internal_place(), target ); } @@ -2813,19 +2936,19 @@ namespace protobuf if (raw_bomb_range != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray(8, this->_internal_bomb_range(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(8, this->_internal_bomb_range(), target); } // int32 speed = 9; if (this->_internal_speed() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray(9, this->_internal_speed(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(9, this->_internal_speed(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream ); } @@ -2846,13 +2969,13 @@ namespace protobuf if (this->_internal_type() != 0) { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_type()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_type()); } // int32 x = 2; if (this->_internal_x() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_x()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_x()); } // double facing_direction = 4; @@ -2868,20 +2991,20 @@ namespace protobuf // int32 y = 3; if (this->_internal_y() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_y()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_y()); } // .protobuf.PlayerType team = 6; if (this->_internal_team() != 0) { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_team()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_team()); } // int64 guid = 5; if (this->_internal_guid() != 0) { - total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_guid()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_guid()); } // double bomb_range = 8; @@ -2898,42 +3021,47 @@ namespace protobuf if (this->_internal_place() != 0) { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_place()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_place()); } // int32 speed = 9; if (this->_internal_speed() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_speed()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_speed()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfBullet::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, MessageOfBullet::MergeImpl}; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfBullet::GetClassData() const { return &_class_data_; } - void MessageOfBullet::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) + 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) { - 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) { - _this->_internal_set_type(from._internal_type()); + _internal_set_type(from._internal_type()); } if (from._internal_x() != 0) { - _this->_internal_set_x(from._internal_x()); + _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(); @@ -2941,19 +3069,19 @@ namespace protobuf memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction)); if (raw_facing_direction != 0) { - _this->_internal_set_facing_direction(from._internal_facing_direction()); + _internal_set_facing_direction(from._internal_facing_direction()); } if (from._internal_y() != 0) { - _this->_internal_set_y(from._internal_y()); + _internal_set_y(from._internal_y()); } if (from._internal_team() != 0) { - _this->_internal_set_team(from._internal_team()); + _internal_set_team(from._internal_team()); } if (from._internal_guid() != 0) { - _this->_internal_set_guid(from._internal_guid()); + _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(); @@ -2961,17 +3089,17 @@ namespace protobuf memcpy(&raw_bomb_range, &tmp_bomb_range, sizeof(tmp_bomb_range)); if (raw_bomb_range != 0) { - _this->_internal_set_bomb_range(from._internal_bomb_range()); + _internal_set_bomb_range(from._internal_bomb_range()); } if (from._internal_place() != 0) { - _this->_internal_set_place(from._internal_place()); + _internal_set_place(from._internal_place()); } if (from._internal_speed() != 0) { - _this->_internal_set_speed(from._internal_speed()); + _internal_set_speed(from._internal_speed()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MessageOfBullet::CopyFrom(const MessageOfBullet& from) @@ -2993,15 +3121,15 @@ namespace protobuf using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - 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_FIELD_OFFSET(MessageOfBullet, speed_) + sizeof(MessageOfBullet::speed_) - PROTOBUF_FIELD_OFFSET(MessageOfBullet, type_)>( + reinterpret_cast(&type_), + reinterpret_cast(&other->type_) ); } ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfBullet::GetMetadata() const { - return ::_pbi::AssignDescriptors( + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[2] ); } @@ -3016,41 +3144,33 @@ namespace protobuf MessageOfBombedBullet::MessageOfBombedBullet(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); + SharedCtor(); + if (!is_message_owned) + { + RegisterArenaDtor(arena); + } // @@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(&_impl_.type_, &from._impl_.type_, static_cast(reinterpret_cast(&_impl_.y_) - reinterpret_cast(&_impl_.type_)) + sizeof(_impl_.y_)); + ::memcpy(&type_, &from.type_, static_cast(reinterpret_cast(&y_) - reinterpret_cast(&type_)) + sizeof(y_)); // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfBombedBullet) } - inline void MessageOfBombedBullet::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned - ) + inline void MessageOfBombedBullet::SharedCtor() { - (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_)*/ {}}; + ::memset(reinterpret_cast(this) + static_cast(reinterpret_cast(&type_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&y_) - reinterpret_cast(&type_)) + sizeof(y_)); } MessageOfBombedBullet::~MessageOfBombedBullet() { // @@protoc_insertion_point(destructor:protobuf.MessageOfBombedBullet) - if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) - { - (void)arena; + if (GetArenaForAllocation() != nullptr) return; - } SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void MessageOfBombedBullet::SharedDtor() @@ -3058,9 +3178,17 @@ 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 { - _impl_._cached_size_.Set(size); + _cached_size_.Set(size); } void MessageOfBombedBullet::Clear() @@ -3070,11 +3198,11 @@ namespace protobuf // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; - ::memset(&_impl_.type_, 0, static_cast(reinterpret_cast(&_impl_.y_) - reinterpret_cast(&_impl_.type_)) + sizeof(_impl_.y_)); + ::memset(&type_, 0, static_cast(reinterpret_cast(&y_) - reinterpret_cast(&type_)) + sizeof(y_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - const char* MessageOfBombedBullet::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) + const char* MessageOfBombedBullet::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) \ if (PROTOBUF_PREDICT_FALSE(!(x))) \ @@ -3082,7 +3210,7 @@ namespace protobuf while (!ctx->Done(&ptr)) { uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); switch (tag >> 3) { // .protobuf.BulletType type = 1; @@ -3100,7 +3228,7 @@ namespace protobuf case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -3110,7 +3238,7 @@ namespace protobuf case 3: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -3120,7 +3248,7 @@ namespace protobuf case 4: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 33)) { - _impl_.facing_direction_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + facing_direction_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(double); } else @@ -3130,7 +3258,7 @@ namespace protobuf case 5: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { - _impl_.mapping_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + mapping_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else @@ -3140,7 +3268,7 @@ namespace protobuf case 6: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 49)) { - _impl_.bomb_range_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + bomb_range_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(double); } else @@ -3184,7 +3312,7 @@ namespace protobuf if (this->_internal_type() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( 1, this->_internal_type(), target ); } @@ -3193,14 +3321,14 @@ namespace protobuf if (this->_internal_x() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_x(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_x(), target); } // int32 y = 3; if (this->_internal_y() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_y(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_y(), target); } // double facing_direction = 4; @@ -3211,14 +3339,14 @@ namespace protobuf if (raw_facing_direction != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray(4, this->_internal_facing_direction(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(4, this->_internal_facing_direction(), target); } // int64 mapping_id = 5; if (this->_internal_mapping_id() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt64ToArray(5, this->_internal_mapping_id(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(5, this->_internal_mapping_id(), target); } // double bomb_range = 6; @@ -3229,12 +3357,12 @@ namespace protobuf if (raw_bomb_range != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray(6, this->_internal_bomb_range(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(6, this->_internal_bomb_range(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream ); } @@ -3255,13 +3383,13 @@ namespace protobuf if (this->_internal_type() != 0) { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_type()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_type()); } // int32 x = 2; if (this->_internal_x() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_x()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_x()); } // double facing_direction = 4; @@ -3277,7 +3405,7 @@ namespace protobuf // int64 mapping_id = 5; if (this->_internal_mapping_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_mapping_id()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_mapping_id()); } // double bomb_range = 6; @@ -3293,36 +3421,41 @@ namespace protobuf // int32 y = 3; if (this->_internal_y() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_y()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_y()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfBombedBullet::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, MessageOfBombedBullet::MergeImpl}; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfBombedBullet::GetClassData() const { return &_class_data_; } - void MessageOfBombedBullet::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) + 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) { - 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) { - _this->_internal_set_type(from._internal_type()); + _internal_set_type(from._internal_type()); } if (from._internal_x() != 0) { - _this->_internal_set_x(from._internal_x()); + _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(); @@ -3330,11 +3463,11 @@ namespace protobuf memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction)); if (raw_facing_direction != 0) { - _this->_internal_set_facing_direction(from._internal_facing_direction()); + _internal_set_facing_direction(from._internal_facing_direction()); } if (from._internal_mapping_id() != 0) { - _this->_internal_set_mapping_id(from._internal_mapping_id()); + _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(); @@ -3342,13 +3475,13 @@ namespace protobuf memcpy(&raw_bomb_range, &tmp_bomb_range, sizeof(tmp_bomb_range)); if (raw_bomb_range != 0) { - _this->_internal_set_bomb_range(from._internal_bomb_range()); + _internal_set_bomb_range(from._internal_bomb_range()); } if (from._internal_y() != 0) { - _this->_internal_set_y(from._internal_y()); + _internal_set_y(from._internal_y()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MessageOfBombedBullet::CopyFrom(const MessageOfBombedBullet& from) @@ -3370,15 +3503,15 @@ namespace protobuf using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - 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_FIELD_OFFSET(MessageOfBombedBullet, y_) + sizeof(MessageOfBombedBullet::y_) - PROTOBUF_FIELD_OFFSET(MessageOfBombedBullet, type_)>( + reinterpret_cast(&type_), + reinterpret_cast(&other->type_) ); } ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfBombedBullet::GetMetadata() const { - return ::_pbi::AssignDescriptors( + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[3] ); } @@ -3393,41 +3526,33 @@ namespace protobuf MessageOfProp::MessageOfProp(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); + SharedCtor(); + if (!is_message_owned) + { + RegisterArenaDtor(arena); + } // @@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(&_impl_.type_, &from._impl_.type_, static_cast(reinterpret_cast(&_impl_.guid_) - reinterpret_cast(&_impl_.type_)) + sizeof(_impl_.guid_)); + ::memcpy(&type_, &from.type_, static_cast(reinterpret_cast(&guid_) - reinterpret_cast(&type_)) + sizeof(guid_)); // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfProp) } - inline void MessageOfProp::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned - ) + inline void MessageOfProp::SharedCtor() { - (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_)*/ {}}; + ::memset(reinterpret_cast(this) + static_cast(reinterpret_cast(&type_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&guid_) - reinterpret_cast(&type_)) + sizeof(guid_)); } MessageOfProp::~MessageOfProp() { // @@protoc_insertion_point(destructor:protobuf.MessageOfProp) - if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) - { - (void)arena; + if (GetArenaForAllocation() != nullptr) return; - } SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void MessageOfProp::SharedDtor() @@ -3435,9 +3560,17 @@ 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 { - _impl_._cached_size_.Set(size); + _cached_size_.Set(size); } void MessageOfProp::Clear() @@ -3447,11 +3580,11 @@ namespace protobuf // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; - ::memset(&_impl_.type_, 0, static_cast(reinterpret_cast(&_impl_.guid_) - reinterpret_cast(&_impl_.type_)) + sizeof(_impl_.guid_)); + ::memset(&type_, 0, static_cast(reinterpret_cast(&guid_) - reinterpret_cast(&type_)) + sizeof(guid_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - const char* MessageOfProp::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) + const char* MessageOfProp::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) \ if (PROTOBUF_PREDICT_FALSE(!(x))) \ @@ -3459,7 +3592,7 @@ namespace protobuf while (!ctx->Done(&ptr)) { uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); switch (tag >> 3) { // .protobuf.PropType type = 1; @@ -3477,7 +3610,7 @@ namespace protobuf case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -3487,7 +3620,7 @@ namespace protobuf case 3: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -3497,7 +3630,7 @@ namespace protobuf case 4: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 33)) { - _impl_.facing_direction_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + facing_direction_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(double); } else @@ -3507,7 +3640,7 @@ namespace protobuf case 5: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { - _impl_.guid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + guid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else @@ -3562,7 +3695,7 @@ namespace protobuf if (this->_internal_type() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( 1, this->_internal_type(), target ); } @@ -3571,14 +3704,14 @@ namespace protobuf if (this->_internal_x() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_x(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_x(), target); } // int32 y = 3; if (this->_internal_y() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_y(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_y(), target); } // double facing_direction = 4; @@ -3589,28 +3722,28 @@ namespace protobuf if (raw_facing_direction != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray(4, this->_internal_facing_direction(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(4, this->_internal_facing_direction(), target); } // int64 guid = 5; if (this->_internal_guid() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt64ToArray(5, this->_internal_guid(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(5, this->_internal_guid(), target); } // .protobuf.PlaceType place = 6; if (this->_internal_place() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( 6, this->_internal_place(), target ); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream ); } @@ -3631,13 +3764,13 @@ namespace protobuf if (this->_internal_type() != 0) { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_type()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_type()); } // int32 x = 2; if (this->_internal_x() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_x()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_x()); } // double facing_direction = 4; @@ -3653,49 +3786,54 @@ namespace protobuf // int32 y = 3; if (this->_internal_y() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_y()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_y()); } // .protobuf.PlaceType place = 6; if (this->_internal_place() != 0) { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_place()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_place()); } // int64 guid = 5; if (this->_internal_guid() != 0) { - total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_guid()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_guid()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfProp::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, MessageOfProp::MergeImpl}; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfProp::GetClassData() const { return &_class_data_; } - void MessageOfProp::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) + 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) { - 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) { - _this->_internal_set_type(from._internal_type()); + _internal_set_type(from._internal_type()); } if (from._internal_x() != 0) { - _this->_internal_set_x(from._internal_x()); + _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(); @@ -3703,21 +3841,21 @@ namespace protobuf memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction)); if (raw_facing_direction != 0) { - _this->_internal_set_facing_direction(from._internal_facing_direction()); + _internal_set_facing_direction(from._internal_facing_direction()); } if (from._internal_y() != 0) { - _this->_internal_set_y(from._internal_y()); + _internal_set_y(from._internal_y()); } if (from._internal_place() != 0) { - _this->_internal_set_place(from._internal_place()); + _internal_set_place(from._internal_place()); } if (from._internal_guid() != 0) { - _this->_internal_set_guid(from._internal_guid()); + _internal_set_guid(from._internal_guid()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MessageOfProp::CopyFrom(const MessageOfProp& from) @@ -3739,15 +3877,15 @@ namespace protobuf using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - 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_FIELD_OFFSET(MessageOfProp, guid_) + sizeof(MessageOfProp::guid_) - PROTOBUF_FIELD_OFFSET(MessageOfProp, type_)>( + reinterpret_cast(&type_), + reinterpret_cast(&other->type_) ); } ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfProp::GetMetadata() const { - return ::_pbi::AssignDescriptors( + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[4] ); } @@ -3762,41 +3900,33 @@ namespace protobuf MessageOfPickedProp::MessageOfPickedProp(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); + SharedCtor(); + if (!is_message_owned) + { + RegisterArenaDtor(arena); + } // @@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(&_impl_.type_, &from._impl_.type_, static_cast(reinterpret_cast(&_impl_.y_) - reinterpret_cast(&_impl_.type_)) + sizeof(_impl_.y_)); + ::memcpy(&type_, &from.type_, static_cast(reinterpret_cast(&y_) - reinterpret_cast(&type_)) + sizeof(y_)); // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfPickedProp) } - inline void MessageOfPickedProp::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned - ) + inline void MessageOfPickedProp::SharedCtor() { - (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_)*/ {}}; + ::memset(reinterpret_cast(this) + static_cast(reinterpret_cast(&type_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&y_) - reinterpret_cast(&type_)) + sizeof(y_)); } MessageOfPickedProp::~MessageOfPickedProp() { // @@protoc_insertion_point(destructor:protobuf.MessageOfPickedProp) - if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) - { - (void)arena; + if (GetArenaForAllocation() != nullptr) return; - } SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void MessageOfPickedProp::SharedDtor() @@ -3804,9 +3934,17 @@ 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 { - _impl_._cached_size_.Set(size); + _cached_size_.Set(size); } void MessageOfPickedProp::Clear() @@ -3816,11 +3954,11 @@ namespace protobuf // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; - ::memset(&_impl_.type_, 0, static_cast(reinterpret_cast(&_impl_.y_) - reinterpret_cast(&_impl_.type_)) + sizeof(_impl_.y_)); + ::memset(&type_, 0, static_cast(reinterpret_cast(&y_) - reinterpret_cast(&type_)) + sizeof(y_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - const char* MessageOfPickedProp::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) + const char* MessageOfPickedProp::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) \ if (PROTOBUF_PREDICT_FALSE(!(x))) \ @@ -3828,7 +3966,7 @@ namespace protobuf while (!ctx->Done(&ptr)) { uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); switch (tag >> 3) { // .protobuf.PropType type = 1; @@ -3846,7 +3984,7 @@ namespace protobuf case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -3856,7 +3994,7 @@ namespace protobuf case 3: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -3866,7 +4004,7 @@ namespace protobuf case 4: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 33)) { - _impl_.facing_direction_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + facing_direction_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(double); } else @@ -3876,7 +4014,7 @@ namespace protobuf case 5: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { - _impl_.mapping_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + mapping_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else @@ -3920,7 +4058,7 @@ namespace protobuf if (this->_internal_type() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( 1, this->_internal_type(), target ); } @@ -3929,14 +4067,14 @@ namespace protobuf if (this->_internal_x() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_x(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_x(), target); } // int32 y = 3; if (this->_internal_y() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_y(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_y(), target); } // double facing_direction = 4; @@ -3947,19 +4085,19 @@ namespace protobuf if (raw_facing_direction != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray(4, this->_internal_facing_direction(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(4, this->_internal_facing_direction(), target); } // int64 mapping_id = 5; if (this->_internal_mapping_id() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt64ToArray(5, this->_internal_mapping_id(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(5, this->_internal_mapping_id(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream ); } @@ -3980,13 +4118,13 @@ namespace protobuf if (this->_internal_type() != 0) { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_type()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_type()); } // int32 x = 2; if (this->_internal_x() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_x()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_x()); } // double facing_direction = 4; @@ -4002,42 +4140,47 @@ namespace protobuf // int64 mapping_id = 5; if (this->_internal_mapping_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_mapping_id()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_mapping_id()); } // int32 y = 3; if (this->_internal_y() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_y()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_y()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfPickedProp::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, MessageOfPickedProp::MergeImpl}; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfPickedProp::GetClassData() const { return &_class_data_; } - void MessageOfPickedProp::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) + 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) { - 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) { - _this->_internal_set_type(from._internal_type()); + _internal_set_type(from._internal_type()); } if (from._internal_x() != 0) { - _this->_internal_set_x(from._internal_x()); + _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(); @@ -4045,17 +4188,17 @@ namespace protobuf memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction)); if (raw_facing_direction != 0) { - _this->_internal_set_facing_direction(from._internal_facing_direction()); + _internal_set_facing_direction(from._internal_facing_direction()); } if (from._internal_mapping_id() != 0) { - _this->_internal_set_mapping_id(from._internal_mapping_id()); + _internal_set_mapping_id(from._internal_mapping_id()); } if (from._internal_y() != 0) { - _this->_internal_set_y(from._internal_y()); + _internal_set_y(from._internal_y()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MessageOfPickedProp::CopyFrom(const MessageOfPickedProp& from) @@ -4077,15 +4220,15 @@ namespace protobuf using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - 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_FIELD_OFFSET(MessageOfPickedProp, y_) + sizeof(MessageOfPickedProp::y_) - PROTOBUF_FIELD_OFFSET(MessageOfPickedProp, type_)>( + reinterpret_cast(&type_), + reinterpret_cast(&other->type_) ); } ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfPickedProp::GetMetadata() const { - return ::_pbi::AssignDescriptors( + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[5] ); } @@ -4100,41 +4243,33 @@ namespace protobuf MessageOfClassroom::MessageOfClassroom(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); + SharedCtor(); + if (!is_message_owned) + { + RegisterArenaDtor(arena); + } // @@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(&_impl_.x_, &from._impl_.x_, static_cast(reinterpret_cast(&_impl_.progress_) - reinterpret_cast(&_impl_.x_)) + sizeof(_impl_.progress_)); + ::memcpy(&x_, &from.x_, static_cast(reinterpret_cast(&progress_) - reinterpret_cast(&x_)) + sizeof(progress_)); // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfClassroom) } - inline void MessageOfClassroom::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned - ) + inline void MessageOfClassroom::SharedCtor() { - (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_)*/ {}}; + ::memset(reinterpret_cast(this) + static_cast(reinterpret_cast(&x_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&progress_) - reinterpret_cast(&x_)) + sizeof(progress_)); } MessageOfClassroom::~MessageOfClassroom() { // @@protoc_insertion_point(destructor:protobuf.MessageOfClassroom) - if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) - { - (void)arena; + if (GetArenaForAllocation() != nullptr) return; - } SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void MessageOfClassroom::SharedDtor() @@ -4142,9 +4277,17 @@ 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 { - _impl_._cached_size_.Set(size); + _cached_size_.Set(size); } void MessageOfClassroom::Clear() @@ -4154,11 +4297,11 @@ namespace protobuf // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; - ::memset(&_impl_.x_, 0, static_cast(reinterpret_cast(&_impl_.progress_) - reinterpret_cast(&_impl_.x_)) + sizeof(_impl_.progress_)); + ::memset(&x_, 0, static_cast(reinterpret_cast(&progress_) - reinterpret_cast(&x_)) + sizeof(progress_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - const char* MessageOfClassroom::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) + const char* MessageOfClassroom::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) \ if (PROTOBUF_PREDICT_FALSE(!(x))) \ @@ -4166,14 +4309,14 @@ namespace protobuf while (!ctx->Done(&ptr)) { uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); switch (tag >> 3) { // int32 x = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -4183,7 +4326,7 @@ namespace protobuf case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -4193,7 +4336,7 @@ namespace protobuf case 3: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - _impl_.progress_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + progress_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -4237,26 +4380,26 @@ namespace protobuf if (this->_internal_x() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_x(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_x(), target); } // int32 y = 2; if (this->_internal_y() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_y(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_y(), target); } // int32 progress = 3; if (this->_internal_progress() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_progress(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_progress(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream ); } @@ -4276,54 +4419,59 @@ namespace protobuf // int32 x = 1; if (this->_internal_x() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_x()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_x()); } // int32 y = 2; if (this->_internal_y() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_y()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_y()); } // int32 progress = 3; if (this->_internal_progress() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_progress()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_progress()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfClassroom::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, MessageOfClassroom::MergeImpl}; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfClassroom::GetClassData() const { return &_class_data_; } - void MessageOfClassroom::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) + 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) { - 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) { - _this->_internal_set_x(from._internal_x()); + _internal_set_x(from._internal_x()); } if (from._internal_y() != 0) { - _this->_internal_set_y(from._internal_y()); + _internal_set_y(from._internal_y()); } if (from._internal_progress() != 0) { - _this->_internal_set_progress(from._internal_progress()); + _internal_set_progress(from._internal_progress()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MessageOfClassroom::CopyFrom(const MessageOfClassroom& from) @@ -4345,15 +4493,15 @@ namespace protobuf using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - 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_FIELD_OFFSET(MessageOfClassroom, progress_) + sizeof(MessageOfClassroom::progress_) - PROTOBUF_FIELD_OFFSET(MessageOfClassroom, x_)>( + reinterpret_cast(&x_), + reinterpret_cast(&other->x_) ); } ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfClassroom::GetMetadata() const { - return ::_pbi::AssignDescriptors( + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[6] ); } @@ -4368,41 +4516,33 @@ namespace protobuf MessageOfGate::MessageOfGate(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); + SharedCtor(); + if (!is_message_owned) + { + RegisterArenaDtor(arena); + } // @@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(&_impl_.x_, &from._impl_.x_, static_cast(reinterpret_cast(&_impl_.progress_) - reinterpret_cast(&_impl_.x_)) + sizeof(_impl_.progress_)); + ::memcpy(&x_, &from.x_, static_cast(reinterpret_cast(&progress_) - reinterpret_cast(&x_)) + sizeof(progress_)); // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfGate) } - inline void MessageOfGate::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned - ) + inline void MessageOfGate::SharedCtor() { - (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_)*/ {}}; + ::memset(reinterpret_cast(this) + static_cast(reinterpret_cast(&x_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&progress_) - reinterpret_cast(&x_)) + sizeof(progress_)); } MessageOfGate::~MessageOfGate() { // @@protoc_insertion_point(destructor:protobuf.MessageOfGate) - if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) - { - (void)arena; + if (GetArenaForAllocation() != nullptr) return; - } SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void MessageOfGate::SharedDtor() @@ -4410,9 +4550,17 @@ 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 { - _impl_._cached_size_.Set(size); + _cached_size_.Set(size); } void MessageOfGate::Clear() @@ -4422,11 +4570,11 @@ namespace protobuf // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; - ::memset(&_impl_.x_, 0, static_cast(reinterpret_cast(&_impl_.progress_) - reinterpret_cast(&_impl_.x_)) + sizeof(_impl_.progress_)); + ::memset(&x_, 0, static_cast(reinterpret_cast(&progress_) - reinterpret_cast(&x_)) + sizeof(progress_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - const char* MessageOfGate::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) + const char* MessageOfGate::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) \ if (PROTOBUF_PREDICT_FALSE(!(x))) \ @@ -4434,14 +4582,14 @@ namespace protobuf while (!ctx->Done(&ptr)) { uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); switch (tag >> 3) { // int32 x = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -4451,7 +4599,7 @@ namespace protobuf case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -4461,7 +4609,7 @@ namespace protobuf case 3: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - _impl_.progress_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + progress_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -4505,26 +4653,26 @@ namespace protobuf if (this->_internal_x() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_x(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_x(), target); } // int32 y = 2; if (this->_internal_y() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_y(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_y(), target); } // int32 progress = 3; if (this->_internal_progress() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_progress(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_progress(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream ); } @@ -4544,54 +4692,59 @@ namespace protobuf // int32 x = 1; if (this->_internal_x() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_x()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_x()); } // int32 y = 2; if (this->_internal_y() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_y()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_y()); } // int32 progress = 3; if (this->_internal_progress() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_progress()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_progress()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfGate::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, MessageOfGate::MergeImpl}; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfGate::GetClassData() const { return &_class_data_; } - void MessageOfGate::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) + 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) { - 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) { - _this->_internal_set_x(from._internal_x()); + _internal_set_x(from._internal_x()); } if (from._internal_y() != 0) { - _this->_internal_set_y(from._internal_y()); + _internal_set_y(from._internal_y()); } if (from._internal_progress() != 0) { - _this->_internal_set_progress(from._internal_progress()); + _internal_set_progress(from._internal_progress()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MessageOfGate::CopyFrom(const MessageOfGate& from) @@ -4613,15 +4766,15 @@ namespace protobuf using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - 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_FIELD_OFFSET(MessageOfGate, progress_) + sizeof(MessageOfGate::progress_) - PROTOBUF_FIELD_OFFSET(MessageOfGate, x_)>( + reinterpret_cast(&x_), + reinterpret_cast(&other->x_) ); } ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfGate::GetMetadata() const { - return ::_pbi::AssignDescriptors( + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[7] ); } @@ -4636,41 +4789,33 @@ namespace protobuf MessageOfHiddenGate::MessageOfHiddenGate(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); + SharedCtor(); + if (!is_message_owned) + { + RegisterArenaDtor(arena); + } // @@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(&_impl_.x_, &from._impl_.x_, static_cast(reinterpret_cast(&_impl_.opened_) - reinterpret_cast(&_impl_.x_)) + sizeof(_impl_.opened_)); + ::memcpy(&x_, &from.x_, static_cast(reinterpret_cast(&opened_) - reinterpret_cast(&x_)) + sizeof(opened_)); // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfHiddenGate) } - inline void MessageOfHiddenGate::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned - ) + inline void MessageOfHiddenGate::SharedCtor() { - (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_)*/ {}}; + ::memset(reinterpret_cast(this) + static_cast(reinterpret_cast(&x_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&opened_) - reinterpret_cast(&x_)) + sizeof(opened_)); } MessageOfHiddenGate::~MessageOfHiddenGate() { // @@protoc_insertion_point(destructor:protobuf.MessageOfHiddenGate) - if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) - { - (void)arena; + if (GetArenaForAllocation() != nullptr) return; - } SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void MessageOfHiddenGate::SharedDtor() @@ -4678,9 +4823,17 @@ 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 { - _impl_._cached_size_.Set(size); + _cached_size_.Set(size); } void MessageOfHiddenGate::Clear() @@ -4690,11 +4843,11 @@ namespace protobuf // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; - ::memset(&_impl_.x_, 0, static_cast(reinterpret_cast(&_impl_.opened_) - reinterpret_cast(&_impl_.x_)) + sizeof(_impl_.opened_)); + ::memset(&x_, 0, static_cast(reinterpret_cast(&opened_) - reinterpret_cast(&x_)) + sizeof(opened_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - const char* MessageOfHiddenGate::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) + const char* MessageOfHiddenGate::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) \ if (PROTOBUF_PREDICT_FALSE(!(x))) \ @@ -4702,14 +4855,14 @@ namespace protobuf while (!ctx->Done(&ptr)) { uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); switch (tag >> 3) { // int32 x = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -4719,7 +4872,7 @@ namespace protobuf case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -4729,7 +4882,7 @@ namespace protobuf case 3: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - _impl_.opened_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + opened_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else @@ -4773,26 +4926,26 @@ namespace protobuf if (this->_internal_x() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_x(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_x(), target); } // int32 y = 2; if (this->_internal_y() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_y(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_y(), target); } // bool opened = 3; if (this->_internal_opened() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_opened(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(3, this->_internal_opened(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream ); } @@ -4812,13 +4965,13 @@ namespace protobuf // int32 x = 1; if (this->_internal_x() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_x()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_x()); } // int32 y = 2; if (this->_internal_y() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_y()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_y()); } // bool opened = 3; @@ -4827,39 +4980,44 @@ namespace protobuf total_size += 1 + 1; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfHiddenGate::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, MessageOfHiddenGate::MergeImpl}; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfHiddenGate::GetClassData() const { return &_class_data_; } - void MessageOfHiddenGate::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) + 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) { - 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) { - _this->_internal_set_x(from._internal_x()); + _internal_set_x(from._internal_x()); } if (from._internal_y() != 0) { - _this->_internal_set_y(from._internal_y()); + _internal_set_y(from._internal_y()); } if (from._internal_opened() != 0) { - _this->_internal_set_opened(from._internal_opened()); + _internal_set_opened(from._internal_opened()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MessageOfHiddenGate::CopyFrom(const MessageOfHiddenGate& from) @@ -4881,15 +5039,15 @@ namespace protobuf using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - 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_FIELD_OFFSET(MessageOfHiddenGate, opened_) + sizeof(MessageOfHiddenGate::opened_) - PROTOBUF_FIELD_OFFSET(MessageOfHiddenGate, x_)>( + reinterpret_cast(&x_), + reinterpret_cast(&other->x_) ); } ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfHiddenGate::GetMetadata() const { - return ::_pbi::AssignDescriptors( + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[8] ); } @@ -4904,41 +5062,33 @@ namespace protobuf MessageOfDoor::MessageOfDoor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); + SharedCtor(); + if (!is_message_owned) + { + RegisterArenaDtor(arena); + } // @@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(&_impl_.x_, &from._impl_.x_, static_cast(reinterpret_cast(&_impl_.progress_) - reinterpret_cast(&_impl_.x_)) + sizeof(_impl_.progress_)); + ::memcpy(&x_, &from.x_, static_cast(reinterpret_cast(&progress_) - reinterpret_cast(&x_)) + sizeof(progress_)); // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfDoor) } - inline void MessageOfDoor::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned - ) + inline void MessageOfDoor::SharedCtor() { - (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_)*/ {}}; + ::memset(reinterpret_cast(this) + static_cast(reinterpret_cast(&x_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&progress_) - reinterpret_cast(&x_)) + sizeof(progress_)); } MessageOfDoor::~MessageOfDoor() { // @@protoc_insertion_point(destructor:protobuf.MessageOfDoor) - if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) - { - (void)arena; + if (GetArenaForAllocation() != nullptr) return; - } SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void MessageOfDoor::SharedDtor() @@ -4946,9 +5096,17 @@ 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 { - _impl_._cached_size_.Set(size); + _cached_size_.Set(size); } void MessageOfDoor::Clear() @@ -4958,11 +5116,11 @@ namespace protobuf // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; - ::memset(&_impl_.x_, 0, static_cast(reinterpret_cast(&_impl_.progress_) - reinterpret_cast(&_impl_.x_)) + sizeof(_impl_.progress_)); + ::memset(&x_, 0, static_cast(reinterpret_cast(&progress_) - reinterpret_cast(&x_)) + sizeof(progress_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - const char* MessageOfDoor::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) + const char* MessageOfDoor::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) \ if (PROTOBUF_PREDICT_FALSE(!(x))) \ @@ -4970,14 +5128,14 @@ namespace protobuf while (!ctx->Done(&ptr)) { uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); switch (tag >> 3) { // int32 x = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -4987,7 +5145,7 @@ namespace protobuf case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -4997,7 +5155,7 @@ namespace protobuf case 3: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - _impl_.is_open_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + is_open_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else @@ -5007,7 +5165,7 @@ namespace protobuf case 4: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { - _impl_.progress_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + progress_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -5051,33 +5209,33 @@ namespace protobuf if (this->_internal_x() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_x(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_x(), target); } // int32 y = 2; if (this->_internal_y() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_y(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_y(), target); } // bool is_open = 3; if (this->_internal_is_open() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_is_open(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(3, this->_internal_is_open(), target); } // int32 progress = 4; if (this->_internal_progress() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray(4, this->_internal_progress(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_progress(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream ); } @@ -5097,13 +5255,13 @@ namespace protobuf // int32 x = 1; if (this->_internal_x() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_x()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_x()); } // int32 y = 2; if (this->_internal_y() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_y()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_y()); } // bool is_open = 3; @@ -5115,46 +5273,51 @@ namespace protobuf // int32 progress = 4; if (this->_internal_progress() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_progress()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_progress()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfDoor::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, MessageOfDoor::MergeImpl}; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfDoor::GetClassData() const { return &_class_data_; } - void MessageOfDoor::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) + 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) { - 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) { - _this->_internal_set_x(from._internal_x()); + _internal_set_x(from._internal_x()); } if (from._internal_y() != 0) { - _this->_internal_set_y(from._internal_y()); + _internal_set_y(from._internal_y()); } if (from._internal_is_open() != 0) { - _this->_internal_set_is_open(from._internal_is_open()); + _internal_set_is_open(from._internal_is_open()); } if (from._internal_progress() != 0) { - _this->_internal_set_progress(from._internal_progress()); + _internal_set_progress(from._internal_progress()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MessageOfDoor::CopyFrom(const MessageOfDoor& from) @@ -5176,15 +5339,15 @@ namespace protobuf using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - 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_FIELD_OFFSET(MessageOfDoor, progress_) + sizeof(MessageOfDoor::progress_) - PROTOBUF_FIELD_OFFSET(MessageOfDoor, x_)>( + reinterpret_cast(&x_), + reinterpret_cast(&other->x_) ); } ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfDoor::GetMetadata() const { - return ::_pbi::AssignDescriptors( + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[9] ); } @@ -5199,41 +5362,33 @@ namespace protobuf MessageOfChest::MessageOfChest(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); + SharedCtor(); + if (!is_message_owned) + { + RegisterArenaDtor(arena); + } // @@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(&_impl_.x_, &from._impl_.x_, static_cast(reinterpret_cast(&_impl_.progress_) - reinterpret_cast(&_impl_.x_)) + sizeof(_impl_.progress_)); + ::memcpy(&x_, &from.x_, static_cast(reinterpret_cast(&progress_) - reinterpret_cast(&x_)) + sizeof(progress_)); // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfChest) } - inline void MessageOfChest::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned - ) + inline void MessageOfChest::SharedCtor() { - (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_)*/ {}}; + ::memset(reinterpret_cast(this) + static_cast(reinterpret_cast(&x_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&progress_) - reinterpret_cast(&x_)) + sizeof(progress_)); } MessageOfChest::~MessageOfChest() { // @@protoc_insertion_point(destructor:protobuf.MessageOfChest) - if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) - { - (void)arena; + if (GetArenaForAllocation() != nullptr) return; - } SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void MessageOfChest::SharedDtor() @@ -5241,9 +5396,17 @@ 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 { - _impl_._cached_size_.Set(size); + _cached_size_.Set(size); } void MessageOfChest::Clear() @@ -5253,11 +5416,11 @@ namespace protobuf // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; - ::memset(&_impl_.x_, 0, static_cast(reinterpret_cast(&_impl_.progress_) - reinterpret_cast(&_impl_.x_)) + sizeof(_impl_.progress_)); + ::memset(&x_, 0, static_cast(reinterpret_cast(&progress_) - reinterpret_cast(&x_)) + sizeof(progress_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - const char* MessageOfChest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) + const char* MessageOfChest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) \ if (PROTOBUF_PREDICT_FALSE(!(x))) \ @@ -5265,14 +5428,14 @@ namespace protobuf while (!ctx->Done(&ptr)) { uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); switch (tag >> 3) { // int32 x = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -5282,7 +5445,7 @@ namespace protobuf case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -5292,7 +5455,7 @@ namespace protobuf case 3: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - _impl_.progress_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + progress_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -5336,26 +5499,26 @@ namespace protobuf if (this->_internal_x() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_x(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_x(), target); } // int32 y = 2; if (this->_internal_y() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_y(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_y(), target); } // int32 progress = 3; if (this->_internal_progress() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_progress(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_progress(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream ); } @@ -5375,54 +5538,59 @@ namespace protobuf // int32 x = 1; if (this->_internal_x() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_x()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_x()); } // int32 y = 2; if (this->_internal_y() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_y()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_y()); } // int32 progress = 3; if (this->_internal_progress() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_progress()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_progress()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfChest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, MessageOfChest::MergeImpl}; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfChest::GetClassData() const { return &_class_data_; } - void MessageOfChest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) + 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) { - 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) { - _this->_internal_set_x(from._internal_x()); + _internal_set_x(from._internal_x()); } if (from._internal_y() != 0) { - _this->_internal_set_y(from._internal_y()); + _internal_set_y(from._internal_y()); } if (from._internal_progress() != 0) { - _this->_internal_set_progress(from._internal_progress()); + _internal_set_progress(from._internal_progress()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MessageOfChest::CopyFrom(const MessageOfChest& from) @@ -5444,15 +5612,15 @@ namespace protobuf using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - 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_FIELD_OFFSET(MessageOfChest, progress_) + sizeof(MessageOfChest::progress_) - PROTOBUF_FIELD_OFFSET(MessageOfChest, x_)>( + reinterpret_cast(&x_), + reinterpret_cast(&other->x_) ); } ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfChest::GetMetadata() const { - return ::_pbi::AssignDescriptors( + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[10] ); } @@ -5465,53 +5633,53 @@ namespace protobuf }; MessageOfMap_Row::MessageOfMap_Row(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : - ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) + ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + col_(arena) { - SharedCtor(arena, is_message_owned); + SharedCtor(); + if (!is_message_owned) + { + RegisterArenaDtor(arena); + } // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfMap.Row) } MessageOfMap_Row::MessageOfMap_Row(const MessageOfMap_Row& from) : - ::PROTOBUF_NAMESPACE_ID::Message() + ::PROTOBUF_NAMESPACE_ID::Message(), + col_(from.col_) { - 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( - ::_pb::Arena* arena, bool is_message_owned - ) + inline void MessageOfMap_Row::SharedCtor() { - (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 (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) - { - (void)arena; + if (GetArenaForAllocation() != nullptr) 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 { - _impl_._cached_size_.Set(size); + _cached_size_.Set(size); } void MessageOfMap_Row::Clear() @@ -5521,11 +5689,11 @@ namespace protobuf // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; - _impl_.col_.Clear(); + col_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - const char* MessageOfMap_Row::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) + const char* MessageOfMap_Row::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) \ if (PROTOBUF_PREDICT_FALSE(!(x))) \ @@ -5533,7 +5701,7 @@ namespace protobuf while (!ctx->Done(&ptr)) { uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); switch (tag >> 3) { // repeated .protobuf.PlaceType col = 1; @@ -5588,18 +5756,18 @@ namespace protobuf // repeated .protobuf.PlaceType col = 1; { - int byte_size = _impl_._col_cached_byte_size_.load(std::memory_order_relaxed); + int byte_size = _col_cached_byte_size_.load(std::memory_order_relaxed); if (byte_size > 0) { target = stream->WriteEnumPacked( - 1, _impl_.col_, byte_size, target + 1, col_, byte_size, target ); } } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream ); } @@ -5622,42 +5790,49 @@ namespace protobuf unsigned int count = static_cast(this->_internal_col_size()); for (unsigned int i = 0; i < count; i++) { - data_size += ::_pbi::WireFormatLite::EnumSize( + data_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize( this->_internal_col(static_cast(i)) ); } if (data_size > 0) { total_size += 1 + - ::_pbi::WireFormatLite::Int32Size(static_cast(data_size)); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( + static_cast(data_size) + ); } - int cached_size = ::_pbi::ToCachedSize(data_size); - _impl_._col_cached_byte_size_.store(cached_size, std::memory_order_relaxed); + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); + _col_cached_byte_size_.store(cached_size, std::memory_order_relaxed); total_size += data_size; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfMap_Row::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, 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_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) + 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) { - 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; - _this->_impl_.col_.MergeFrom(from._impl_.col_); - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + col_.MergeFrom(from.col_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MessageOfMap_Row::CopyFrom(const MessageOfMap_Row& from) @@ -5678,12 +5853,12 @@ namespace protobuf { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.col_.InternalSwap(&other->_impl_.col_); + col_.InternalSwap(&other->col_); } ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfMap_Row::GetMetadata() const { - return ::_pbi::AssignDescriptors( + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[11] ); } @@ -5696,53 +5871,53 @@ namespace protobuf }; MessageOfMap::MessageOfMap(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : - ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) + ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + row_(arena) { - SharedCtor(arena, is_message_owned); + SharedCtor(); + if (!is_message_owned) + { + RegisterArenaDtor(arena); + } // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfMap) } MessageOfMap::MessageOfMap(const MessageOfMap& from) : - ::PROTOBUF_NAMESPACE_ID::Message() + ::PROTOBUF_NAMESPACE_ID::Message(), + row_(from.row_) { - 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( - ::_pb::Arena* arena, bool is_message_owned - ) + inline void MessageOfMap::SharedCtor() { - (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 (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) - { - (void)arena; + if (GetArenaForAllocation() != nullptr) 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 { - _impl_._cached_size_.Set(size); + _cached_size_.Set(size); } void MessageOfMap::Clear() @@ -5752,11 +5927,11 @@ namespace protobuf // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; - _impl_.row_.Clear(); + row_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - const char* MessageOfMap::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) + const char* MessageOfMap::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) \ if (PROTOBUF_PREDICT_FALSE(!(x))) \ @@ -5764,7 +5939,7 @@ namespace protobuf while (!ctx->Done(&ptr)) { uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); switch (tag >> 3) { // repeated .protobuf.MessageOfMap.Row row = 2; @@ -5819,19 +5994,19 @@ namespace protobuf (void)cached_has_bits; // repeated .protobuf.MessageOfMap.Row row = 2; - for (unsigned i = 0, - n = static_cast(this->_internal_row_size()); + for (unsigned int i = 0, + n = static_cast(this->_internal_row_size()); i < n; i++) { - const auto& repfield = this->_internal_row(i); + target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream); + InternalWriteMessage(2, this->_internal_row(i), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream ); } @@ -5850,34 +6025,39 @@ namespace protobuf // repeated .protobuf.MessageOfMap.Row row = 2; total_size += 1UL * this->_internal_row_size(); - for (const auto& msg : this->_impl_.row_) + for (const auto& msg : this->row_) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfMap::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, MessageOfMap::MergeImpl}; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfMap::GetClassData() const { return &_class_data_; } - void MessageOfMap::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) + 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) { - 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; - _this->_impl_.row_.MergeFrom(from._impl_.row_); - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + row_.MergeFrom(from.row_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MessageOfMap::CopyFrom(const MessageOfMap& from) @@ -5898,12 +6078,12 @@ namespace protobuf { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.row_.InternalSwap(&other->_impl_.row_); + row_.InternalSwap(&other->row_); } ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfMap::GetMetadata() const { - return ::_pbi::AssignDescriptors( + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[12] ); } @@ -5918,64 +6098,64 @@ namespace protobuf MessageOfNews::MessageOfNews(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); + SharedCtor(); + if (!is_message_owned) + { + RegisterArenaDtor(arena); + } // @@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_); - _impl_.news_.InitDefault(); + news_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.news_.Set("", GetArenaForAllocation()); + news_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_news().empty()) { - _this->_impl_.news_.Set(from._internal_news(), _this->GetArenaForAllocation()); + news_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_news(), GetArenaForAllocation()); } - ::memcpy(&_impl_.from_id_, &from._impl_.from_id_, static_cast(reinterpret_cast(&_impl_.to_id_) - reinterpret_cast(&_impl_.from_id_)) + sizeof(_impl_.to_id_)); + ::memcpy(&from_id_, &from.from_id_, static_cast(reinterpret_cast(&to_id_) - reinterpret_cast(&from_id_)) + sizeof(to_id_)); // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfNews) } - inline void MessageOfNews::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned - ) + inline void MessageOfNews::SharedCtor() { - (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(); + news_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.news_.Set("", GetArenaForAllocation()); + news_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", 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 (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) - { - (void)arena; + if (GetArenaForAllocation() != nullptr) return; - } SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void MessageOfNews::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.news_.Destroy(); + news_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } + 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 { - _impl_._cached_size_.Set(size); + _cached_size_.Set(size); } void MessageOfNews::Clear() @@ -5985,12 +6165,12 @@ namespace protobuf // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; - _impl_.news_.ClearToEmpty(); - ::memset(&_impl_.from_id_, 0, static_cast(reinterpret_cast(&_impl_.to_id_) - reinterpret_cast(&_impl_.from_id_)) + sizeof(_impl_.to_id_)); + news_.ClearToEmpty(); + ::memset(&from_id_, 0, static_cast(reinterpret_cast(&to_id_) - reinterpret_cast(&from_id_)) + sizeof(to_id_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - const char* MessageOfNews::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) + const char* MessageOfNews::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) \ if (PROTOBUF_PREDICT_FALSE(!(x))) \ @@ -5998,7 +6178,7 @@ namespace protobuf while (!ctx->Done(&ptr)) { uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); switch (tag >> 3) { // string news = 1; @@ -6006,9 +6186,9 @@ namespace protobuf if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { auto str = _internal_mutable_news(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "protobuf.MessageOfNews.news")); CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "protobuf.MessageOfNews.news")); } else goto handle_unusual; @@ -6017,7 +6197,7 @@ namespace protobuf case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _impl_.from_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + from_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else @@ -6027,7 +6207,7 @@ namespace protobuf case 3: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - _impl_.to_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + to_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else @@ -6082,19 +6262,19 @@ namespace protobuf if (this->_internal_from_id() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt64ToArray(2, this->_internal_from_id(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->_internal_from_id(), target); } // int64 to_id = 3; if (this->_internal_to_id() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt64ToArray(3, this->_internal_to_id(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(3, this->_internal_to_id(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream ); } @@ -6123,48 +6303,53 @@ namespace protobuf // int64 from_id = 2; if (this->_internal_from_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_from_id()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_from_id()); } // int64 to_id = 3; if (this->_internal_to_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_to_id()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_to_id()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfNews::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, MessageOfNews::MergeImpl}; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfNews::GetClassData() const { return &_class_data_; } - void MessageOfNews::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) + 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) { - 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()) { - _this->_internal_set_news(from._internal_news()); + _internal_set_news(from._internal_news()); } if (from._internal_from_id() != 0) { - _this->_internal_set_from_id(from._internal_from_id()); + _internal_set_from_id(from._internal_from_id()); } if (from._internal_to_id() != 0) { - _this->_internal_set_to_id(from._internal_to_id()); + _internal_set_to_id(from._internal_to_id()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MessageOfNews::CopyFrom(const MessageOfNews& from) @@ -6188,18 +6373,22 @@ namespace protobuf auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.news_, lhs_arena, &other->_impl_.news_, rhs_arena + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &news_, + lhs_arena, + &other->news_, + rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - 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_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_NAMESPACE_ID::Metadata MessageOfNews::GetMetadata() const { - return ::_pbi::AssignDescriptors( + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[13] ); } @@ -6226,62 +6415,62 @@ namespace protobuf const ::protobuf::MessageOfStudent& MessageOfObj::_Internal::student_message(const MessageOfObj* msg) { - return *msg->_impl_.message_of_obj_.student_message_; + return *msg->message_of_obj_.student_message_; } const ::protobuf::MessageOfTricker& MessageOfObj::_Internal::tricker_message(const MessageOfObj* msg) { - return *msg->_impl_.message_of_obj_.tricker_message_; + return *msg->message_of_obj_.tricker_message_; } const ::protobuf::MessageOfProp& MessageOfObj::_Internal::prop_message(const MessageOfObj* msg) { - return *msg->_impl_.message_of_obj_.prop_message_; + return *msg->message_of_obj_.prop_message_; } const ::protobuf::MessageOfBullet& MessageOfObj::_Internal::bullet_message(const MessageOfObj* msg) { - return *msg->_impl_.message_of_obj_.bullet_message_; + return *msg->message_of_obj_.bullet_message_; } const ::protobuf::MessageOfBombedBullet& MessageOfObj::_Internal::bombed_bullet_message(const MessageOfObj* msg) { - return *msg->_impl_.message_of_obj_.bombed_bullet_message_; + return *msg->message_of_obj_.bombed_bullet_message_; } const ::protobuf::MessageOfClassroom& MessageOfObj::_Internal::classroom_message(const MessageOfObj* msg) { - return *msg->_impl_.message_of_obj_.classroom_message_; + return *msg->message_of_obj_.classroom_message_; } const ::protobuf::MessageOfDoor& MessageOfObj::_Internal::door_message(const MessageOfObj* msg) { - return *msg->_impl_.message_of_obj_.door_message_; + return *msg->message_of_obj_.door_message_; } const ::protobuf::MessageOfGate& MessageOfObj::_Internal::gate_message(const MessageOfObj* msg) { - return *msg->_impl_.message_of_obj_.gate_message_; + return *msg->message_of_obj_.gate_message_; } const ::protobuf::MessageOfChest& MessageOfObj::_Internal::chest_message(const MessageOfObj* msg) { - return *msg->_impl_.message_of_obj_.chest_message_; + return *msg->message_of_obj_.chest_message_; } const ::protobuf::MessageOfHiddenGate& MessageOfObj::_Internal::hidden_gate_message(const MessageOfObj* msg) { - return *msg->_impl_.message_of_obj_.hidden_gate_message_; + return *msg->message_of_obj_.hidden_gate_message_; } const ::protobuf::MessageOfNews& MessageOfObj::_Internal::news_message(const MessageOfObj* msg) { - return *msg->_impl_.message_of_obj_.news_message_; + return *msg->message_of_obj_.news_message_; } const ::protobuf::MessageOfMap& MessageOfObj::_Internal::map_message(const MessageOfObj* msg) { - return *msg->_impl_.message_of_obj_.map_message_; + return *msg->message_of_obj_.map_message_; } void MessageOfObj::set_allocated_student_message(::protobuf::MessageOfStudent* student_message) { @@ -6290,7 +6479,7 @@ namespace protobuf if (student_message) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(student_message); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::protobuf::MessageOfStudent>::GetOwningArena(student_message); if (message_arena != submessage_arena) { student_message = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( @@ -6298,7 +6487,7 @@ namespace protobuf ); } set_has_student_message(); - _impl_.message_of_obj_.student_message_ = student_message; + message_of_obj_.student_message_ = student_message; } // @@protoc_insertion_point(field_set_allocated:protobuf.MessageOfObj.student_message) } @@ -6309,7 +6498,7 @@ namespace protobuf if (tricker_message) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(tricker_message); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::protobuf::MessageOfTricker>::GetOwningArena(tricker_message); if (message_arena != submessage_arena) { tricker_message = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( @@ -6317,7 +6506,7 @@ namespace protobuf ); } set_has_tricker_message(); - _impl_.message_of_obj_.tricker_message_ = tricker_message; + message_of_obj_.tricker_message_ = tricker_message; } // @@protoc_insertion_point(field_set_allocated:protobuf.MessageOfObj.tricker_message) } @@ -6328,7 +6517,7 @@ namespace protobuf if (prop_message) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(prop_message); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::protobuf::MessageOfProp>::GetOwningArena(prop_message); if (message_arena != submessage_arena) { prop_message = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( @@ -6336,7 +6525,7 @@ namespace protobuf ); } set_has_prop_message(); - _impl_.message_of_obj_.prop_message_ = prop_message; + message_of_obj_.prop_message_ = prop_message; } // @@protoc_insertion_point(field_set_allocated:protobuf.MessageOfObj.prop_message) } @@ -6347,7 +6536,7 @@ namespace protobuf if (bullet_message) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(bullet_message); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::protobuf::MessageOfBullet>::GetOwningArena(bullet_message); if (message_arena != submessage_arena) { bullet_message = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( @@ -6355,7 +6544,7 @@ namespace protobuf ); } set_has_bullet_message(); - _impl_.message_of_obj_.bullet_message_ = bullet_message; + message_of_obj_.bullet_message_ = bullet_message; } // @@protoc_insertion_point(field_set_allocated:protobuf.MessageOfObj.bullet_message) } @@ -6366,7 +6555,7 @@ namespace protobuf if (bombed_bullet_message) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(bombed_bullet_message); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::protobuf::MessageOfBombedBullet>::GetOwningArena(bombed_bullet_message); if (message_arena != submessage_arena) { bombed_bullet_message = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( @@ -6374,7 +6563,7 @@ namespace protobuf ); } set_has_bombed_bullet_message(); - _impl_.message_of_obj_.bombed_bullet_message_ = bombed_bullet_message; + message_of_obj_.bombed_bullet_message_ = bombed_bullet_message; } // @@protoc_insertion_point(field_set_allocated:protobuf.MessageOfObj.bombed_bullet_message) } @@ -6385,7 +6574,7 @@ namespace protobuf if (classroom_message) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(classroom_message); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::protobuf::MessageOfClassroom>::GetOwningArena(classroom_message); if (message_arena != submessage_arena) { classroom_message = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( @@ -6393,7 +6582,7 @@ namespace protobuf ); } set_has_classroom_message(); - _impl_.message_of_obj_.classroom_message_ = classroom_message; + message_of_obj_.classroom_message_ = classroom_message; } // @@protoc_insertion_point(field_set_allocated:protobuf.MessageOfObj.classroom_message) } @@ -6404,7 +6593,7 @@ namespace protobuf if (door_message) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(door_message); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::protobuf::MessageOfDoor>::GetOwningArena(door_message); if (message_arena != submessage_arena) { door_message = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( @@ -6412,7 +6601,7 @@ namespace protobuf ); } set_has_door_message(); - _impl_.message_of_obj_.door_message_ = door_message; + message_of_obj_.door_message_ = door_message; } // @@protoc_insertion_point(field_set_allocated:protobuf.MessageOfObj.door_message) } @@ -6423,7 +6612,7 @@ namespace protobuf if (gate_message) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(gate_message); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::protobuf::MessageOfGate>::GetOwningArena(gate_message); if (message_arena != submessage_arena) { gate_message = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( @@ -6431,7 +6620,7 @@ namespace protobuf ); } set_has_gate_message(); - _impl_.message_of_obj_.gate_message_ = gate_message; + message_of_obj_.gate_message_ = gate_message; } // @@protoc_insertion_point(field_set_allocated:protobuf.MessageOfObj.gate_message) } @@ -6442,7 +6631,7 @@ namespace protobuf if (chest_message) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(chest_message); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::protobuf::MessageOfChest>::GetOwningArena(chest_message); if (message_arena != submessage_arena) { chest_message = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( @@ -6450,7 +6639,7 @@ namespace protobuf ); } set_has_chest_message(); - _impl_.message_of_obj_.chest_message_ = chest_message; + message_of_obj_.chest_message_ = chest_message; } // @@protoc_insertion_point(field_set_allocated:protobuf.MessageOfObj.chest_message) } @@ -6461,7 +6650,7 @@ namespace protobuf if (hidden_gate_message) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(hidden_gate_message); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::protobuf::MessageOfHiddenGate>::GetOwningArena(hidden_gate_message); if (message_arena != submessage_arena) { hidden_gate_message = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( @@ -6469,7 +6658,7 @@ namespace protobuf ); } set_has_hidden_gate_message(); - _impl_.message_of_obj_.hidden_gate_message_ = hidden_gate_message; + message_of_obj_.hidden_gate_message_ = hidden_gate_message; } // @@protoc_insertion_point(field_set_allocated:protobuf.MessageOfObj.hidden_gate_message) } @@ -6480,7 +6669,7 @@ namespace protobuf if (news_message) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(news_message); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::protobuf::MessageOfNews>::GetOwningArena(news_message); if (message_arena != submessage_arena) { news_message = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( @@ -6488,7 +6677,7 @@ namespace protobuf ); } set_has_news_message(); - _impl_.message_of_obj_.news_message_ = news_message; + message_of_obj_.news_message_ = news_message; } // @@protoc_insertion_point(field_set_allocated:protobuf.MessageOfObj.news_message) } @@ -6499,7 +6688,7 @@ namespace protobuf if (map_message) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(map_message); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::protobuf::MessageOfMap>::GetOwningArena(map_message); if (message_arena != submessage_arena) { map_message = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( @@ -6507,110 +6696,85 @@ namespace protobuf ); } set_has_map_message(); - _impl_.message_of_obj_.map_message_ = map_message; + 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(arena, is_message_owned); + SharedCtor(); + if (!is_message_owned) + { + RegisterArenaDtor(arena); + } // @@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: { - _this->_internal_mutable_student_message()->::protobuf::MessageOfStudent::MergeFrom( - from._internal_student_message() - ); + _internal_mutable_student_message()->::protobuf::MessageOfStudent::MergeFrom(from._internal_student_message()); break; } case kTrickerMessage: { - _this->_internal_mutable_tricker_message()->::protobuf::MessageOfTricker::MergeFrom( - from._internal_tricker_message() - ); + _internal_mutable_tricker_message()->::protobuf::MessageOfTricker::MergeFrom(from._internal_tricker_message()); break; } case kPropMessage: { - _this->_internal_mutable_prop_message()->::protobuf::MessageOfProp::MergeFrom( - from._internal_prop_message() - ); + _internal_mutable_prop_message()->::protobuf::MessageOfProp::MergeFrom(from._internal_prop_message()); break; } case kBulletMessage: { - _this->_internal_mutable_bullet_message()->::protobuf::MessageOfBullet::MergeFrom( - from._internal_bullet_message() - ); + _internal_mutable_bullet_message()->::protobuf::MessageOfBullet::MergeFrom(from._internal_bullet_message()); break; } case kBombedBulletMessage: { - _this->_internal_mutable_bombed_bullet_message()->::protobuf::MessageOfBombedBullet::MergeFrom( - from._internal_bombed_bullet_message() - ); + _internal_mutable_bombed_bullet_message()->::protobuf::MessageOfBombedBullet::MergeFrom(from._internal_bombed_bullet_message()); break; } case kClassroomMessage: { - _this->_internal_mutable_classroom_message()->::protobuf::MessageOfClassroom::MergeFrom( - from._internal_classroom_message() - ); + _internal_mutable_classroom_message()->::protobuf::MessageOfClassroom::MergeFrom(from._internal_classroom_message()); break; } case kDoorMessage: { - _this->_internal_mutable_door_message()->::protobuf::MessageOfDoor::MergeFrom( - from._internal_door_message() - ); + _internal_mutable_door_message()->::protobuf::MessageOfDoor::MergeFrom(from._internal_door_message()); break; } case kGateMessage: { - _this->_internal_mutable_gate_message()->::protobuf::MessageOfGate::MergeFrom( - from._internal_gate_message() - ); + _internal_mutable_gate_message()->::protobuf::MessageOfGate::MergeFrom(from._internal_gate_message()); break; } case kChestMessage: { - _this->_internal_mutable_chest_message()->::protobuf::MessageOfChest::MergeFrom( - from._internal_chest_message() - ); + _internal_mutable_chest_message()->::protobuf::MessageOfChest::MergeFrom(from._internal_chest_message()); break; } case kHiddenGateMessage: { - _this->_internal_mutable_hidden_gate_message()->::protobuf::MessageOfHiddenGate::MergeFrom( - from._internal_hidden_gate_message() - ); + _internal_mutable_hidden_gate_message()->::protobuf::MessageOfHiddenGate::MergeFrom(from._internal_hidden_gate_message()); break; } case kNewsMessage: { - _this->_internal_mutable_news_message()->::protobuf::MessageOfNews::MergeFrom( - from._internal_news_message() - ); + _internal_mutable_news_message()->::protobuf::MessageOfNews::MergeFrom(from._internal_news_message()); break; } case kMapMessage: { - _this->_internal_mutable_map_message()->::protobuf::MessageOfMap::MergeFrom( - from._internal_map_message() - ); + _internal_mutable_map_message()->::protobuf::MessageOfMap::MergeFrom(from._internal_map_message()); break; } case MESSAGE_OF_OBJ_NOT_SET: @@ -6621,26 +6785,18 @@ namespace protobuf // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfObj) } - inline void MessageOfObj::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned - ) + inline void MessageOfObj::SharedCtor() { - (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 (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) - { - (void)arena; + if (GetArenaForAllocation() != nullptr) return; - } SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void MessageOfObj::SharedDtor() @@ -6652,9 +6808,17 @@ 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 { - _impl_._cached_size_.Set(size); + _cached_size_.Set(size); } void MessageOfObj::clear_message_of_obj() @@ -6666,7 +6830,7 @@ namespace protobuf { if (GetArenaForAllocation() == nullptr) { - delete _impl_.message_of_obj_.student_message_; + delete message_of_obj_.student_message_; } break; } @@ -6674,7 +6838,7 @@ namespace protobuf { if (GetArenaForAllocation() == nullptr) { - delete _impl_.message_of_obj_.tricker_message_; + delete message_of_obj_.tricker_message_; } break; } @@ -6682,7 +6846,7 @@ namespace protobuf { if (GetArenaForAllocation() == nullptr) { - delete _impl_.message_of_obj_.prop_message_; + delete message_of_obj_.prop_message_; } break; } @@ -6690,7 +6854,7 @@ namespace protobuf { if (GetArenaForAllocation() == nullptr) { - delete _impl_.message_of_obj_.bullet_message_; + delete message_of_obj_.bullet_message_; } break; } @@ -6698,7 +6862,7 @@ namespace protobuf { if (GetArenaForAllocation() == nullptr) { - delete _impl_.message_of_obj_.bombed_bullet_message_; + delete message_of_obj_.bombed_bullet_message_; } break; } @@ -6706,7 +6870,7 @@ namespace protobuf { if (GetArenaForAllocation() == nullptr) { - delete _impl_.message_of_obj_.classroom_message_; + delete message_of_obj_.classroom_message_; } break; } @@ -6714,7 +6878,7 @@ namespace protobuf { if (GetArenaForAllocation() == nullptr) { - delete _impl_.message_of_obj_.door_message_; + delete message_of_obj_.door_message_; } break; } @@ -6722,7 +6886,7 @@ namespace protobuf { if (GetArenaForAllocation() == nullptr) { - delete _impl_.message_of_obj_.gate_message_; + delete message_of_obj_.gate_message_; } break; } @@ -6730,7 +6894,7 @@ namespace protobuf { if (GetArenaForAllocation() == nullptr) { - delete _impl_.message_of_obj_.chest_message_; + delete message_of_obj_.chest_message_; } break; } @@ -6738,7 +6902,7 @@ namespace protobuf { if (GetArenaForAllocation() == nullptr) { - delete _impl_.message_of_obj_.hidden_gate_message_; + delete message_of_obj_.hidden_gate_message_; } break; } @@ -6746,7 +6910,7 @@ namespace protobuf { if (GetArenaForAllocation() == nullptr) { - delete _impl_.message_of_obj_.news_message_; + delete message_of_obj_.news_message_; } break; } @@ -6754,7 +6918,7 @@ namespace protobuf { if (GetArenaForAllocation() == nullptr) { - delete _impl_.message_of_obj_.map_message_; + delete message_of_obj_.map_message_; } break; } @@ -6763,7 +6927,7 @@ namespace protobuf break; } } - _impl_._oneof_case_[0] = MESSAGE_OF_OBJ_NOT_SET; + _oneof_case_[0] = MESSAGE_OF_OBJ_NOT_SET; } void MessageOfObj::Clear() @@ -6777,7 +6941,7 @@ namespace protobuf _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - const char* MessageOfObj::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) + const char* MessageOfObj::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) \ if (PROTOBUF_PREDICT_FALSE(!(x))) \ @@ -6785,7 +6949,7 @@ namespace protobuf while (!ctx->Done(&ptr)) { uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); switch (tag >> 3) { // .protobuf.MessageOfStudent student_message = 1; @@ -6945,90 +7109,126 @@ 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), _Internal::student_message(this).GetCachedSize(), target, stream); + InternalWriteMessage( + 1, _Internal::student_message(this), 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), _Internal::tricker_message(this).GetCachedSize(), target, stream); + InternalWriteMessage( + 2, _Internal::tricker_message(this), 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), _Internal::prop_message(this).GetCachedSize(), target, stream); + InternalWriteMessage( + 3, _Internal::prop_message(this), 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), _Internal::bullet_message(this).GetCachedSize(), target, stream); + InternalWriteMessage( + 4, _Internal::bullet_message(this), 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), _Internal::bombed_bullet_message(this).GetCachedSize(), target, stream); + InternalWriteMessage( + 5, _Internal::bombed_bullet_message(this), 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), _Internal::classroom_message(this).GetCachedSize(), target, stream); + InternalWriteMessage( + 6, _Internal::classroom_message(this), 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), _Internal::door_message(this).GetCachedSize(), target, stream); + InternalWriteMessage( + 7, _Internal::door_message(this), 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), _Internal::gate_message(this).GetCachedSize(), target, stream); + InternalWriteMessage( + 8, _Internal::gate_message(this), 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), _Internal::chest_message(this).GetCachedSize(), target, stream); + InternalWriteMessage( + 9, _Internal::chest_message(this), 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), _Internal::hidden_gate_message(this).GetCachedSize(), target, stream); + InternalWriteMessage( + 10, _Internal::hidden_gate_message(this), 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), _Internal::news_message(this).GetCachedSize(), target, stream); + InternalWriteMessage( + 11, _Internal::news_message(this), 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), _Internal::map_message(this).GetCachedSize(), target, stream); + InternalWriteMessage( + 12, _Internal::map_message(this), target, stream + ); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream ); } @@ -7052,7 +7252,7 @@ namespace protobuf { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.message_of_obj_.student_message_ + *message_of_obj_.student_message_ ); break; } @@ -7061,7 +7261,7 @@ namespace protobuf { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.message_of_obj_.tricker_message_ + *message_of_obj_.tricker_message_ ); break; } @@ -7070,7 +7270,7 @@ namespace protobuf { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.message_of_obj_.prop_message_ + *message_of_obj_.prop_message_ ); break; } @@ -7079,7 +7279,7 @@ namespace protobuf { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.message_of_obj_.bullet_message_ + *message_of_obj_.bullet_message_ ); break; } @@ -7088,7 +7288,7 @@ namespace protobuf { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.message_of_obj_.bombed_bullet_message_ + *message_of_obj_.bombed_bullet_message_ ); break; } @@ -7097,7 +7297,7 @@ namespace protobuf { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.message_of_obj_.classroom_message_ + *message_of_obj_.classroom_message_ ); break; } @@ -7106,7 +7306,7 @@ namespace protobuf { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.message_of_obj_.door_message_ + *message_of_obj_.door_message_ ); break; } @@ -7115,7 +7315,7 @@ namespace protobuf { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.message_of_obj_.gate_message_ + *message_of_obj_.gate_message_ ); break; } @@ -7124,7 +7324,7 @@ namespace protobuf { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.message_of_obj_.chest_message_ + *message_of_obj_.chest_message_ ); break; } @@ -7133,7 +7333,7 @@ namespace protobuf { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.message_of_obj_.hidden_gate_message_ + *message_of_obj_.hidden_gate_message_ ); break; } @@ -7142,7 +7342,7 @@ namespace protobuf { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.message_of_obj_.news_message_ + *message_of_obj_.news_message_ ); break; } @@ -7151,7 +7351,7 @@ namespace protobuf { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.message_of_obj_.map_message_ + *message_of_obj_.map_message_ ); break; } @@ -7160,23 +7360,28 @@ namespace protobuf break; } } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfObj::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, MessageOfObj::MergeImpl}; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfObj::GetClassData() const { return &_class_data_; } - void MessageOfObj::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) + 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) { - 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; @@ -7184,86 +7389,62 @@ namespace protobuf { case kStudentMessage: { - _this->_internal_mutable_student_message()->::protobuf::MessageOfStudent::MergeFrom( - from._internal_student_message() - ); + _internal_mutable_student_message()->::protobuf::MessageOfStudent::MergeFrom(from._internal_student_message()); break; } case kTrickerMessage: { - _this->_internal_mutable_tricker_message()->::protobuf::MessageOfTricker::MergeFrom( - from._internal_tricker_message() - ); + _internal_mutable_tricker_message()->::protobuf::MessageOfTricker::MergeFrom(from._internal_tricker_message()); break; } case kPropMessage: { - _this->_internal_mutable_prop_message()->::protobuf::MessageOfProp::MergeFrom( - from._internal_prop_message() - ); + _internal_mutable_prop_message()->::protobuf::MessageOfProp::MergeFrom(from._internal_prop_message()); break; } case kBulletMessage: { - _this->_internal_mutable_bullet_message()->::protobuf::MessageOfBullet::MergeFrom( - from._internal_bullet_message() - ); + _internal_mutable_bullet_message()->::protobuf::MessageOfBullet::MergeFrom(from._internal_bullet_message()); break; } case kBombedBulletMessage: { - _this->_internal_mutable_bombed_bullet_message()->::protobuf::MessageOfBombedBullet::MergeFrom( - from._internal_bombed_bullet_message() - ); + _internal_mutable_bombed_bullet_message()->::protobuf::MessageOfBombedBullet::MergeFrom(from._internal_bombed_bullet_message()); break; } case kClassroomMessage: { - _this->_internal_mutable_classroom_message()->::protobuf::MessageOfClassroom::MergeFrom( - from._internal_classroom_message() - ); + _internal_mutable_classroom_message()->::protobuf::MessageOfClassroom::MergeFrom(from._internal_classroom_message()); break; } case kDoorMessage: { - _this->_internal_mutable_door_message()->::protobuf::MessageOfDoor::MergeFrom( - from._internal_door_message() - ); + _internal_mutable_door_message()->::protobuf::MessageOfDoor::MergeFrom(from._internal_door_message()); break; } case kGateMessage: { - _this->_internal_mutable_gate_message()->::protobuf::MessageOfGate::MergeFrom( - from._internal_gate_message() - ); + _internal_mutable_gate_message()->::protobuf::MessageOfGate::MergeFrom(from._internal_gate_message()); break; } case kChestMessage: { - _this->_internal_mutable_chest_message()->::protobuf::MessageOfChest::MergeFrom( - from._internal_chest_message() - ); + _internal_mutable_chest_message()->::protobuf::MessageOfChest::MergeFrom(from._internal_chest_message()); break; } case kHiddenGateMessage: { - _this->_internal_mutable_hidden_gate_message()->::protobuf::MessageOfHiddenGate::MergeFrom( - from._internal_hidden_gate_message() - ); + _internal_mutable_hidden_gate_message()->::protobuf::MessageOfHiddenGate::MergeFrom(from._internal_hidden_gate_message()); break; } case kNewsMessage: { - _this->_internal_mutable_news_message()->::protobuf::MessageOfNews::MergeFrom( - from._internal_news_message() - ); + _internal_mutable_news_message()->::protobuf::MessageOfNews::MergeFrom(from._internal_news_message()); break; } case kMapMessage: { - _this->_internal_mutable_map_message()->::protobuf::MessageOfMap::MergeFrom( - from._internal_map_message() - ); + _internal_mutable_map_message()->::protobuf::MessageOfMap::MergeFrom(from._internal_map_message()); break; } case MESSAGE_OF_OBJ_NOT_SET: @@ -7271,7 +7452,7 @@ namespace protobuf break; } } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MessageOfObj::CopyFrom(const MessageOfObj& from) @@ -7292,13 +7473,13 @@ namespace protobuf { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.message_of_obj_, other->_impl_.message_of_obj_); - swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); + swap(message_of_obj_, other->message_of_obj_); + swap(_oneof_case_[0], other->_oneof_case_[0]); } ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfObj::GetMetadata() const { - return ::_pbi::AssignDescriptors( + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[14] ); } @@ -7313,41 +7494,33 @@ namespace protobuf MessageOfAll::MessageOfAll(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); + SharedCtor(); + if (!is_message_owned) + { + RegisterArenaDtor(arena); + } // @@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(&_impl_.game_time_, &from._impl_.game_time_, static_cast(reinterpret_cast(&_impl_.tricker_score_) - reinterpret_cast(&_impl_.game_time_)) + sizeof(_impl_.tricker_score_)); + ::memcpy(&game_time_, &from.game_time_, static_cast(reinterpret_cast(&tricker_score_) - reinterpret_cast(&game_time_)) + sizeof(tricker_score_)); // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfAll) } - inline void MessageOfAll::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned - ) + inline void MessageOfAll::SharedCtor() { - (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_)*/ {}}; + ::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_)); } MessageOfAll::~MessageOfAll() { // @@protoc_insertion_point(destructor:protobuf.MessageOfAll) - if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) - { - (void)arena; + if (GetArenaForAllocation() != nullptr) return; - } SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void MessageOfAll::SharedDtor() @@ -7355,9 +7528,17 @@ 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 { - _impl_._cached_size_.Set(size); + _cached_size_.Set(size); } void MessageOfAll::Clear() @@ -7367,11 +7548,11 @@ namespace protobuf // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; - ::memset(&_impl_.game_time_, 0, static_cast(reinterpret_cast(&_impl_.tricker_score_) - reinterpret_cast(&_impl_.game_time_)) + sizeof(_impl_.tricker_score_)); + ::memset(&game_time_, 0, static_cast(reinterpret_cast(&tricker_score_) - reinterpret_cast(&game_time_)) + sizeof(tricker_score_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - const char* MessageOfAll::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) + const char* MessageOfAll::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) \ if (PROTOBUF_PREDICT_FALSE(!(x))) \ @@ -7379,14 +7560,14 @@ namespace protobuf while (!ctx->Done(&ptr)) { uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); switch (tag >> 3) { // int32 game_time = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _impl_.game_time_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + game_time_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -7396,7 +7577,7 @@ namespace protobuf case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _impl_.subject_finished_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + subject_finished_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -7406,7 +7587,7 @@ namespace protobuf case 3: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - _impl_.student_graduated_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + student_graduated_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -7416,7 +7597,7 @@ namespace protobuf case 4: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { - _impl_.student_quited_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + student_quited_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -7426,7 +7607,7 @@ namespace protobuf case 5: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { - _impl_.student_score_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + student_score_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -7436,7 +7617,7 @@ namespace protobuf case 6: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 48)) { - _impl_.tricker_score_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + tricker_score_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -7480,47 +7661,47 @@ namespace protobuf if (this->_internal_game_time() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_game_time(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_game_time(), target); } // int32 subject_finished = 2; if (this->_internal_subject_finished() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_subject_finished(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_subject_finished(), target); } // int32 student_graduated = 3; if (this->_internal_student_graduated() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_student_graduated(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_student_graduated(), target); } // int32 student_quited = 4; if (this->_internal_student_quited() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray(4, this->_internal_student_quited(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_student_quited(), target); } // int32 student_score = 5; if (this->_internal_student_score() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray(5, this->_internal_student_score(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(5, this->_internal_student_score(), target); } // int32 tricker_score = 6; if (this->_internal_tricker_score() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray(6, this->_internal_tricker_score(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(6, this->_internal_tricker_score(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream ); } @@ -7540,84 +7721,89 @@ namespace protobuf // int32 game_time = 1; if (this->_internal_game_time() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_game_time()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_game_time()); } // int32 subject_finished = 2; if (this->_internal_subject_finished() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_subject_finished()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_subject_finished()); } // int32 student_graduated = 3; if (this->_internal_student_graduated() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_student_graduated()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_student_graduated()); } // int32 student_quited = 4; if (this->_internal_student_quited() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_student_quited()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_student_quited()); } // int32 student_score = 5; if (this->_internal_student_score() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_student_score()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_student_score()); } // int32 tricker_score = 6; if (this->_internal_tricker_score() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_tricker_score()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_tricker_score()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfAll::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, MessageOfAll::MergeImpl}; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfAll::GetClassData() const { return &_class_data_; } - void MessageOfAll::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) + 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) { - 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) { - _this->_internal_set_game_time(from._internal_game_time()); + _internal_set_game_time(from._internal_game_time()); } if (from._internal_subject_finished() != 0) { - _this->_internal_set_subject_finished(from._internal_subject_finished()); + _internal_set_subject_finished(from._internal_subject_finished()); } if (from._internal_student_graduated() != 0) { - _this->_internal_set_student_graduated(from._internal_student_graduated()); + _internal_set_student_graduated(from._internal_student_graduated()); } if (from._internal_student_quited() != 0) { - _this->_internal_set_student_quited(from._internal_student_quited()); + _internal_set_student_quited(from._internal_student_quited()); } if (from._internal_student_score() != 0) { - _this->_internal_set_student_score(from._internal_student_score()); + _internal_set_student_score(from._internal_student_score()); } if (from._internal_tricker_score() != 0) { - _this->_internal_set_tricker_score(from._internal_tricker_score()); + _internal_set_tricker_score(from._internal_tricker_score()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MessageOfAll::CopyFrom(const MessageOfAll& from) @@ -7639,15 +7825,15 @@ namespace protobuf using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - 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_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_NAMESPACE_ID::Metadata MessageOfAll::GetMetadata() const { - return ::_pbi::AssignDescriptors( + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[15] ); } @@ -7663,63 +7849,68 @@ namespace protobuf const ::protobuf::MessageOfAll& MessageToClient::_Internal::all_message(const MessageToClient* msg) { - return *msg->_impl_.all_message_; + return *msg->all_message_; } MessageToClient::MessageToClient(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : - ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) + ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + obj_message_(arena) { - SharedCtor(arena, is_message_owned); + SharedCtor(); + if (!is_message_owned) + { + RegisterArenaDtor(arena); + } // @@protoc_insertion_point(arena_constructor:protobuf.MessageToClient) } MessageToClient::MessageToClient(const MessageToClient& from) : - ::PROTOBUF_NAMESPACE_ID::Message() + ::PROTOBUF_NAMESPACE_ID::Message(), + obj_message_(from.obj_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()) { - _this->_impl_.all_message_ = new ::protobuf::MessageOfAll(*from._impl_.all_message_); + all_message_ = new ::protobuf::MessageOfAll(*from.all_message_); } - _this->_impl_.game_state_ = from._impl_.game_state_; + else + { + all_message_ = nullptr; + } + game_state_ = from.game_state_; // @@protoc_insertion_point(copy_constructor:protobuf.MessageToClient) } - inline void MessageToClient::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned - ) + inline void MessageToClient::SharedCtor() { - (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_)*/ {}}; + ::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_)); } MessageToClient::~MessageToClient() { // @@protoc_insertion_point(destructor:protobuf.MessageToClient) - if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) - { - (void)arena; + if (GetArenaForAllocation() != nullptr) 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 _impl_.all_message_; + delete 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 { - _impl_._cached_size_.Set(size); + _cached_size_.Set(size); } void MessageToClient::Clear() @@ -7729,17 +7920,17 @@ namespace protobuf // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; - _impl_.obj_message_.Clear(); - if (GetArenaForAllocation() == nullptr && _impl_.all_message_ != nullptr) + obj_message_.Clear(); + if (GetArenaForAllocation() == nullptr && all_message_ != nullptr) { - delete _impl_.all_message_; + delete all_message_; } - _impl_.all_message_ = nullptr; - _impl_.game_state_ = 0; + all_message_ = nullptr; + game_state_ = 0; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - const char* MessageToClient::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) + const char* MessageToClient::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) \ if (PROTOBUF_PREDICT_FALSE(!(x))) \ @@ -7747,7 +7938,7 @@ namespace protobuf while (!ctx->Done(&ptr)) { uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); switch (tag >> 3) { // repeated .protobuf.MessageOfObj obj_message = 1; @@ -7823,21 +8014,21 @@ namespace protobuf (void)cached_has_bits; // repeated .protobuf.MessageOfObj obj_message = 1; - for (unsigned i = 0, - n = static_cast(this->_internal_obj_message_size()); + for (unsigned int i = 0, + n = static_cast(this->_internal_obj_message_size()); i < n; i++) { - const auto& repfield = this->_internal_obj_message(i); + target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + InternalWriteMessage(1, this->_internal_obj_message(i), target, stream); } // .protobuf.GameState game_state = 2; if (this->_internal_game_state() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( 2, this->_internal_game_state(), target ); } @@ -7845,13 +8036,16 @@ 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), _Internal::all_message(this).GetCachedSize(), target, stream); + InternalWriteMessage( + 3, _Internal::all_message(this), target, stream + ); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream ); } @@ -7870,7 +8064,7 @@ namespace protobuf // repeated .protobuf.MessageOfObj obj_message = 1; total_size += 1UL * this->_internal_obj_message_size(); - for (const auto& msg : this->_impl_.obj_message_) + for (const auto& msg : this->obj_message_) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); @@ -7881,7 +8075,7 @@ namespace protobuf { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.all_message_ + *all_message_ ); } @@ -7889,41 +8083,44 @@ namespace protobuf if (this->_internal_game_state() != 0) { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_game_state()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_game_state()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageToClient::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, MessageToClient::MergeImpl}; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageToClient::GetClassData() const { return &_class_data_; } - void MessageToClient::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) + 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) { - 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; - _this->_impl_.obj_message_.MergeFrom(from._impl_.obj_message_); + obj_message_.MergeFrom(from.obj_message_); if (from._internal_has_all_message()) { - _this->_internal_mutable_all_message()->::protobuf::MessageOfAll::MergeFrom( - from._internal_all_message() - ); + _internal_mutable_all_message()->::protobuf::MessageOfAll::MergeFrom(from._internal_all_message()); } if (from._internal_game_state() != 0) { - _this->_internal_set_game_state(from._internal_game_state()); + _internal_set_game_state(from._internal_game_state()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MessageToClient::CopyFrom(const MessageToClient& from) @@ -7944,17 +8141,17 @@ namespace protobuf { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.obj_message_.InternalSwap(&other->_impl_.obj_message_); + obj_message_.InternalSwap(&other->obj_message_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - 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_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_NAMESPACE_ID::Metadata MessageToClient::GetMetadata() const { - return ::_pbi::AssignDescriptors( + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[16] ); } @@ -7969,41 +8166,33 @@ namespace protobuf MoveRes::MoveRes(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); + SharedCtor(); + if (!is_message_owned) + { + RegisterArenaDtor(arena); + } // @@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(&_impl_.actual_speed_, &from._impl_.actual_speed_, static_cast(reinterpret_cast(&_impl_.act_success_) - reinterpret_cast(&_impl_.actual_speed_)) + sizeof(_impl_.act_success_)); + ::memcpy(&actual_speed_, &from.actual_speed_, static_cast(reinterpret_cast(&act_success_) - reinterpret_cast(&actual_speed_)) + sizeof(act_success_)); // @@protoc_insertion_point(copy_constructor:protobuf.MoveRes) } - inline void MoveRes::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned - ) + inline void MoveRes::SharedCtor() { - (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_)*/ {}}; + ::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_)); } MoveRes::~MoveRes() { // @@protoc_insertion_point(destructor:protobuf.MoveRes) - if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) - { - (void)arena; + if (GetArenaForAllocation() != nullptr) return; - } SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void MoveRes::SharedDtor() @@ -8011,9 +8200,17 @@ 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 { - _impl_._cached_size_.Set(size); + _cached_size_.Set(size); } void MoveRes::Clear() @@ -8023,11 +8220,11 @@ namespace protobuf // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; - ::memset(&_impl_.actual_speed_, 0, static_cast(reinterpret_cast(&_impl_.act_success_) - reinterpret_cast(&_impl_.actual_speed_)) + sizeof(_impl_.act_success_)); + ::memset(&actual_speed_, 0, static_cast(reinterpret_cast(&act_success_) - reinterpret_cast(&actual_speed_)) + sizeof(act_success_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - const char* MoveRes::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) + const char* MoveRes::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) \ if (PROTOBUF_PREDICT_FALSE(!(x))) \ @@ -8035,14 +8232,14 @@ namespace protobuf while (!ctx->Done(&ptr)) { uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); switch (tag >> 3) { // int64 actual_speed = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _impl_.actual_speed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + actual_speed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else @@ -8052,7 +8249,7 @@ namespace protobuf case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 17)) { - _impl_.actual_angle_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + actual_angle_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(double); } else @@ -8062,7 +8259,7 @@ namespace protobuf case 3: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - _impl_.act_success_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + act_success_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else @@ -8106,7 +8303,7 @@ namespace protobuf if (this->_internal_actual_speed() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt64ToArray(1, this->_internal_actual_speed(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_actual_speed(), target); } // double actual_angle = 2; @@ -8117,19 +8314,19 @@ namespace protobuf if (raw_actual_angle != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray(2, this->_internal_actual_angle(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(2, this->_internal_actual_angle(), target); } // bool act_success = 3; if (this->_internal_act_success() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_act_success(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(3, this->_internal_act_success(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream ); } @@ -8149,7 +8346,7 @@ namespace protobuf // int64 actual_speed = 1; if (this->_internal_actual_speed() != 0) { - total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_actual_speed()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_actual_speed()); } // double actual_angle = 2; @@ -8168,29 +8365,34 @@ namespace protobuf total_size += 1 + 1; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MoveRes::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, MoveRes::MergeImpl}; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MoveRes::GetClassData() const { return &_class_data_; } - void MoveRes::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) + 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) { - 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) { - _this->_internal_set_actual_speed(from._internal_actual_speed()); + _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(); @@ -8198,13 +8400,13 @@ namespace protobuf memcpy(&raw_actual_angle, &tmp_actual_angle, sizeof(tmp_actual_angle)); if (raw_actual_angle != 0) { - _this->_internal_set_actual_angle(from._internal_actual_angle()); + _internal_set_actual_angle(from._internal_actual_angle()); } if (from._internal_act_success() != 0) { - _this->_internal_set_act_success(from._internal_act_success()); + _internal_set_act_success(from._internal_act_success()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MoveRes::CopyFrom(const MoveRes& from) @@ -8226,15 +8428,15 @@ namespace protobuf using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - 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_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_NAMESPACE_ID::Metadata MoveRes::GetMetadata() const { - return ::_pbi::AssignDescriptors( + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[17] ); } @@ -8249,41 +8451,33 @@ namespace protobuf BoolRes::BoolRes(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); + SharedCtor(); + if (!is_message_owned) + { + RegisterArenaDtor(arena); + } // @@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_); - _this->_impl_.act_success_ = from._impl_.act_success_; + act_success_ = from.act_success_; // @@protoc_insertion_point(copy_constructor:protobuf.BoolRes) } - inline void BoolRes::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned - ) + inline void BoolRes::SharedCtor() { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_.act_success_){false}, /*decltype(_impl_._cached_size_)*/ {}}; + act_success_ = false; } BoolRes::~BoolRes() { // @@protoc_insertion_point(destructor:protobuf.BoolRes) - if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) - { - (void)arena; + if (GetArenaForAllocation() != nullptr) return; - } SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void BoolRes::SharedDtor() @@ -8291,9 +8485,17 @@ 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 { - _impl_._cached_size_.Set(size); + _cached_size_.Set(size); } void BoolRes::Clear() @@ -8303,11 +8505,11 @@ namespace protobuf // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; - _impl_.act_success_ = false; + act_success_ = false; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - const char* BoolRes::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) + const char* BoolRes::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) \ if (PROTOBUF_PREDICT_FALSE(!(x))) \ @@ -8315,14 +8517,14 @@ namespace protobuf while (!ctx->Done(&ptr)) { uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); switch (tag >> 3) { // bool act_success = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _impl_.act_success_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + act_success_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else @@ -8366,12 +8568,12 @@ namespace protobuf if (this->_internal_act_success() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this->_internal_act_success(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_act_success(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream ); } @@ -8394,31 +8596,36 @@ namespace protobuf total_size += 1 + 1; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData BoolRes::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, BoolRes::MergeImpl}; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* BoolRes::GetClassData() const { return &_class_data_; } - void BoolRes::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) + 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) { - 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) { - _this->_internal_set_act_success(from._internal_act_success()); + _internal_set_act_success(from._internal_act_success()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void BoolRes::CopyFrom(const BoolRes& from) @@ -8439,12 +8646,12 @@ namespace protobuf { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.act_success_, other->_impl_.act_success_); + swap(act_success_, other->act_success_); } ::PROTOBUF_NAMESPACE_ID::Metadata BoolRes::GetMetadata() const { - return ::_pbi::AssignDescriptors( + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[18] ); } @@ -8453,116 +8660,97 @@ 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 c1050a1..82a050f 100644 --- a/CAPI/cpp/proto/Message2Clients.pb.h +++ b/CAPI/cpp/proto/Message2Clients.pb.h @@ -8,12 +8,12 @@ #include #include -#if PROTOBUF_VERSION < 3021000 +#if PROTOBUF_VERSION < 3019000 #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 3021005 < PROTOBUF_MIN_PROTOC_VERSION +#if 3019004 < 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,6 +23,7 @@ #include #include #include +#include #include #include #include @@ -44,6 +45,11 @@ 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; @@ -161,7 +167,7 @@ namespace protobuf { } ~MessageOfStudent() override; - explicit PROTOBUF_CONSTEXPR MessageOfStudent(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit constexpr MessageOfStudent(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); MessageOfStudent(const MessageOfStudent& from); MessageOfStudent(MessageOfStudent&& from) noexcept @@ -260,13 +266,10 @@ namespace protobuf using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const MessageOfStudent& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const MessageOfStudent& from) - { - MessageOfStudent::MergeImpl(*this, from); - } + void MergeFrom(const MessageOfStudent& from); private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; @@ -279,11 +282,11 @@ namespace protobuf ) const final; int GetCachedSize() const final { - return _impl_._cached_size_.Get(); + return _cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(MessageOfStudent* other); @@ -298,6 +301,10 @@ 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; @@ -611,39 +618,32 @@ namespace protobuf friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - 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_; - }; + ::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_; friend struct ::TableStruct_Message2Clients_2eproto; }; // ------------------------------------------------------------------- @@ -657,7 +657,7 @@ namespace protobuf { } ~MessageOfTricker() override; - explicit PROTOBUF_CONSTEXPR MessageOfTricker(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit constexpr MessageOfTricker(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); MessageOfTricker(const MessageOfTricker& from); MessageOfTricker(MessageOfTricker&& from) noexcept @@ -756,13 +756,10 @@ namespace protobuf using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const MessageOfTricker& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const MessageOfTricker& from) - { - MessageOfTricker::MergeImpl(*this, from); - } + void MergeFrom(const MessageOfTricker& from); private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; @@ -775,11 +772,11 @@ namespace protobuf ) const final; int GetCachedSize() const final { - return _impl_._cached_size_.Get(); + return _cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(MessageOfTricker* other); @@ -794,6 +791,10 @@ 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; @@ -1052,34 +1053,27 @@ namespace protobuf friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - 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_; - }; + ::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_; friend struct ::TableStruct_Message2Clients_2eproto; }; // ------------------------------------------------------------------- @@ -1093,7 +1087,7 @@ namespace protobuf { } ~MessageOfBullet() override; - explicit PROTOBUF_CONSTEXPR MessageOfBullet(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit constexpr MessageOfBullet(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); MessageOfBullet(const MessageOfBullet& from); MessageOfBullet(MessageOfBullet&& from) noexcept @@ -1192,13 +1186,10 @@ namespace protobuf using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const MessageOfBullet& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const MessageOfBullet& from) - { - MessageOfBullet::MergeImpl(*this, from); - } + void MergeFrom(const MessageOfBullet& from); private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; @@ -1211,11 +1202,11 @@ namespace protobuf ) const final; int GetCachedSize() const final { - return _impl_._cached_size_.Get(); + return _cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(MessageOfBullet* other); @@ -1230,6 +1221,10 @@ 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; @@ -1351,23 +1346,16 @@ namespace protobuf friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - 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_; - }; + 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_; friend struct ::TableStruct_Message2Clients_2eproto; }; // ------------------------------------------------------------------- @@ -1381,7 +1369,7 @@ namespace protobuf { } ~MessageOfBombedBullet() override; - explicit PROTOBUF_CONSTEXPR MessageOfBombedBullet(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit constexpr MessageOfBombedBullet(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); MessageOfBombedBullet(const MessageOfBombedBullet& from); MessageOfBombedBullet(MessageOfBombedBullet&& from) noexcept @@ -1480,13 +1468,10 @@ namespace protobuf using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const MessageOfBombedBullet& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const MessageOfBombedBullet& from) - { - MessageOfBombedBullet::MergeImpl(*this, from); - } + void MergeFrom(const MessageOfBombedBullet& from); private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; @@ -1499,11 +1484,11 @@ namespace protobuf ) const final; int GetCachedSize() const final { - return _impl_._cached_size_.Get(); + return _cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(MessageOfBombedBullet* other); @@ -1518,6 +1503,10 @@ 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; @@ -1606,20 +1595,13 @@ namespace protobuf friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - 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_; - }; + 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_; friend struct ::TableStruct_Message2Clients_2eproto; }; // ------------------------------------------------------------------- @@ -1633,7 +1615,7 @@ namespace protobuf { } ~MessageOfProp() override; - explicit PROTOBUF_CONSTEXPR MessageOfProp(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit constexpr MessageOfProp(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); MessageOfProp(const MessageOfProp& from); MessageOfProp(MessageOfProp&& from) noexcept @@ -1732,13 +1714,10 @@ namespace protobuf using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const MessageOfProp& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const MessageOfProp& from) - { - MessageOfProp::MergeImpl(*this, from); - } + void MergeFrom(const MessageOfProp& from); private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; @@ -1751,11 +1730,11 @@ namespace protobuf ) const final; int GetCachedSize() const final { - return _impl_._cached_size_.Get(); + return _cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(MessageOfProp* other); @@ -1770,6 +1749,10 @@ 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; @@ -1858,20 +1841,13 @@ namespace protobuf friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - 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_; - }; + int type_; + int32_t x_; + double facing_direction_; + int32_t y_; + int place_; + int64_t guid_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_Message2Clients_2eproto; }; // ------------------------------------------------------------------- @@ -1885,7 +1861,7 @@ namespace protobuf { } ~MessageOfPickedProp() override; - explicit PROTOBUF_CONSTEXPR MessageOfPickedProp(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit constexpr MessageOfPickedProp(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); MessageOfPickedProp(const MessageOfPickedProp& from); MessageOfPickedProp(MessageOfPickedProp&& from) noexcept @@ -1984,13 +1960,10 @@ namespace protobuf using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const MessageOfPickedProp& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const MessageOfPickedProp& from) - { - MessageOfPickedProp::MergeImpl(*this, from); - } + void MergeFrom(const MessageOfPickedProp& from); private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; @@ -2003,11 +1976,11 @@ namespace protobuf ) const final; int GetCachedSize() const final { - return _impl_._cached_size_.Get(); + return _cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(MessageOfPickedProp* other); @@ -2022,6 +1995,10 @@ 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; @@ -2099,19 +2076,12 @@ namespace protobuf friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - 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_; - }; + int type_; + int32_t x_; + double facing_direction_; + int64_t mapping_id_; + int32_t y_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_Message2Clients_2eproto; }; // ------------------------------------------------------------------- @@ -2125,7 +2095,7 @@ namespace protobuf { } ~MessageOfClassroom() override; - explicit PROTOBUF_CONSTEXPR MessageOfClassroom(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit constexpr MessageOfClassroom(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); MessageOfClassroom(const MessageOfClassroom& from); MessageOfClassroom(MessageOfClassroom&& from) noexcept @@ -2224,13 +2194,10 @@ namespace protobuf using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const MessageOfClassroom& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const MessageOfClassroom& from) - { - MessageOfClassroom::MergeImpl(*this, from); - } + void MergeFrom(const MessageOfClassroom& from); private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; @@ -2243,11 +2210,11 @@ namespace protobuf ) const final; int GetCachedSize() const final { - return _impl_._cached_size_.Get(); + return _cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(MessageOfClassroom* other); @@ -2262,6 +2229,10 @@ 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; @@ -2317,17 +2288,10 @@ namespace protobuf friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - struct Impl_ - { - int32_t x_; - int32_t y_; - int32_t progress_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union - { - Impl_ _impl_; - }; + int32_t x_; + int32_t y_; + int32_t progress_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_Message2Clients_2eproto; }; // ------------------------------------------------------------------- @@ -2341,7 +2305,7 @@ namespace protobuf { } ~MessageOfGate() override; - explicit PROTOBUF_CONSTEXPR MessageOfGate(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit constexpr MessageOfGate(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); MessageOfGate(const MessageOfGate& from); MessageOfGate(MessageOfGate&& from) noexcept @@ -2440,13 +2404,10 @@ namespace protobuf using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const MessageOfGate& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const MessageOfGate& from) - { - MessageOfGate::MergeImpl(*this, from); - } + void MergeFrom(const MessageOfGate& from); private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; @@ -2459,11 +2420,11 @@ namespace protobuf ) const final; int GetCachedSize() const final { - return _impl_._cached_size_.Get(); + return _cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(MessageOfGate* other); @@ -2478,6 +2439,10 @@ 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; @@ -2533,17 +2498,10 @@ namespace protobuf friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - struct Impl_ - { - int32_t x_; - int32_t y_; - int32_t progress_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union - { - Impl_ _impl_; - }; + int32_t x_; + int32_t y_; + int32_t progress_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_Message2Clients_2eproto; }; // ------------------------------------------------------------------- @@ -2557,7 +2515,7 @@ namespace protobuf { } ~MessageOfHiddenGate() override; - explicit PROTOBUF_CONSTEXPR MessageOfHiddenGate(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit constexpr MessageOfHiddenGate(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); MessageOfHiddenGate(const MessageOfHiddenGate& from); MessageOfHiddenGate(MessageOfHiddenGate&& from) noexcept @@ -2656,13 +2614,10 @@ namespace protobuf using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const MessageOfHiddenGate& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const MessageOfHiddenGate& from) - { - MessageOfHiddenGate::MergeImpl(*this, from); - } + void MergeFrom(const MessageOfHiddenGate& from); private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; @@ -2675,11 +2630,11 @@ namespace protobuf ) const final; int GetCachedSize() const final { - return _impl_._cached_size_.Get(); + return _cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(MessageOfHiddenGate* other); @@ -2694,6 +2649,10 @@ 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; @@ -2749,17 +2708,10 @@ namespace protobuf friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - struct Impl_ - { - int32_t x_; - int32_t y_; - bool opened_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union - { - Impl_ _impl_; - }; + int32_t x_; + int32_t y_; + bool opened_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_Message2Clients_2eproto; }; // ------------------------------------------------------------------- @@ -2773,7 +2725,7 @@ namespace protobuf { } ~MessageOfDoor() override; - explicit PROTOBUF_CONSTEXPR MessageOfDoor(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit constexpr MessageOfDoor(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); MessageOfDoor(const MessageOfDoor& from); MessageOfDoor(MessageOfDoor&& from) noexcept @@ -2872,13 +2824,10 @@ namespace protobuf using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const MessageOfDoor& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const MessageOfDoor& from) - { - MessageOfDoor::MergeImpl(*this, from); - } + void MergeFrom(const MessageOfDoor& from); private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; @@ -2891,11 +2840,11 @@ namespace protobuf ) const final; int GetCachedSize() const final { - return _impl_._cached_size_.Get(); + return _cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(MessageOfDoor* other); @@ -2910,6 +2859,10 @@ 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; @@ -2976,18 +2929,11 @@ namespace protobuf friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - 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_; - }; + int32_t x_; + int32_t y_; + bool is_open_; + int32_t progress_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_Message2Clients_2eproto; }; // ------------------------------------------------------------------- @@ -3001,7 +2947,7 @@ namespace protobuf { } ~MessageOfChest() override; - explicit PROTOBUF_CONSTEXPR MessageOfChest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit constexpr MessageOfChest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); MessageOfChest(const MessageOfChest& from); MessageOfChest(MessageOfChest&& from) noexcept @@ -3100,13 +3046,10 @@ namespace protobuf using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const MessageOfChest& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const MessageOfChest& from) - { - MessageOfChest::MergeImpl(*this, from); - } + void MergeFrom(const MessageOfChest& from); private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; @@ -3119,11 +3062,11 @@ namespace protobuf ) const final; int GetCachedSize() const final { - return _impl_._cached_size_.Get(); + return _cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(MessageOfChest* other); @@ -3138,6 +3081,10 @@ 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; @@ -3193,17 +3140,10 @@ namespace protobuf friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - struct Impl_ - { - int32_t x_; - int32_t y_; - int32_t progress_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union - { - Impl_ _impl_; - }; + int32_t x_; + int32_t y_; + int32_t progress_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_Message2Clients_2eproto; }; // ------------------------------------------------------------------- @@ -3217,7 +3157,7 @@ namespace protobuf { } ~MessageOfMap_Row() override; - explicit PROTOBUF_CONSTEXPR MessageOfMap_Row(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit constexpr MessageOfMap_Row(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); MessageOfMap_Row(const MessageOfMap_Row& from); MessageOfMap_Row(MessageOfMap_Row&& from) noexcept @@ -3316,13 +3256,10 @@ 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) - { - MessageOfMap_Row::MergeImpl(*this, from); - } + void MergeFrom(const MessageOfMap_Row& from); private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; @@ -3335,11 +3272,11 @@ namespace protobuf ) const final; int GetCachedSize() const final { - return _impl_._cached_size_.Get(); + return _cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(MessageOfMap_Row* other); @@ -3354,6 +3291,10 @@ 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; @@ -3398,16 +3339,9 @@ namespace protobuf friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - 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_; - }; + ::PROTOBUF_NAMESPACE_ID::RepeatedField col_; + mutable std::atomic _col_cached_byte_size_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_Message2Clients_2eproto; }; // ------------------------------------------------------------------- @@ -3421,7 +3355,7 @@ namespace protobuf { } ~MessageOfMap() override; - explicit PROTOBUF_CONSTEXPR MessageOfMap(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit constexpr MessageOfMap(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); MessageOfMap(const MessageOfMap& from); MessageOfMap(MessageOfMap&& from) noexcept @@ -3520,13 +3454,10 @@ namespace protobuf using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const MessageOfMap& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const MessageOfMap& from) - { - MessageOfMap::MergeImpl(*this, from); - } + void MergeFrom(const MessageOfMap& from); private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; @@ -3539,11 +3470,11 @@ namespace protobuf ) const final; int GetCachedSize() const final { - return _impl_._cached_size_.Get(); + return _cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(MessageOfMap* other); @@ -3558,6 +3489,10 @@ 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; @@ -3605,15 +3540,8 @@ namespace protobuf friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - struct Impl_ - { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::protobuf::MessageOfMap_Row> row_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union - { - Impl_ _impl_; - }; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::protobuf::MessageOfMap_Row> row_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_Message2Clients_2eproto; }; // ------------------------------------------------------------------- @@ -3627,7 +3555,7 @@ namespace protobuf { } ~MessageOfNews() override; - explicit PROTOBUF_CONSTEXPR MessageOfNews(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit constexpr MessageOfNews(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); MessageOfNews(const MessageOfNews& from); MessageOfNews(MessageOfNews&& from) noexcept @@ -3726,13 +3654,10 @@ namespace protobuf using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const MessageOfNews& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const MessageOfNews& from) - { - MessageOfNews::MergeImpl(*this, from); - } + void MergeFrom(const MessageOfNews& from); private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; @@ -3745,11 +3670,11 @@ namespace protobuf ) const final; int GetCachedSize() const final { - return _impl_._cached_size_.Get(); + return _cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(MessageOfNews* other); @@ -3764,6 +3689,10 @@ 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; @@ -3824,17 +3753,10 @@ namespace protobuf friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - 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_; - }; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr news_; + int64_t from_id_; + int64_t to_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_Message2Clients_2eproto; }; // ------------------------------------------------------------------- @@ -3848,7 +3770,7 @@ namespace protobuf { } ~MessageOfObj() override; - explicit PROTOBUF_CONSTEXPR MessageOfObj(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit constexpr MessageOfObj(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); MessageOfObj(const MessageOfObj& from); MessageOfObj(MessageOfObj&& from) noexcept @@ -3964,13 +3886,10 @@ namespace protobuf using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const MessageOfObj& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const MessageOfObj& from) - { - MessageOfObj::MergeImpl(*this, from); - } + void MergeFrom(const MessageOfObj& from); private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; @@ -3983,11 +3902,11 @@ namespace protobuf ) const final; int GetCachedSize() const final { - return _impl_._cached_size_.Get(); + return _cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(MessageOfObj* other); @@ -4002,6 +3921,10 @@ 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; @@ -4329,35 +4252,29 @@ namespace protobuf friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - struct Impl_ + union MessageOfObjUnion { - union MessageOfObjUnion + constexpr MessageOfObjUnion() : + _constinit_{} { - 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_; - }; + } + ::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]; + friend struct ::TableStruct_Message2Clients_2eproto; }; // ------------------------------------------------------------------- @@ -4371,7 +4288,7 @@ namespace protobuf { } ~MessageOfAll() override; - explicit PROTOBUF_CONSTEXPR MessageOfAll(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit constexpr MessageOfAll(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); MessageOfAll(const MessageOfAll& from); MessageOfAll(MessageOfAll&& from) noexcept @@ -4470,13 +4387,10 @@ namespace protobuf using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const MessageOfAll& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const MessageOfAll& from) - { - MessageOfAll::MergeImpl(*this, from); - } + void MergeFrom(const MessageOfAll& from); private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; @@ -4489,11 +4403,11 @@ namespace protobuf ) const final; int GetCachedSize() const final { - return _impl_._cached_size_.Get(); + return _cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(MessageOfAll* other); @@ -4508,6 +4422,10 @@ 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; @@ -4596,20 +4514,13 @@ namespace protobuf friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - 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_; - }; + 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_; friend struct ::TableStruct_Message2Clients_2eproto; }; // ------------------------------------------------------------------- @@ -4623,7 +4534,7 @@ namespace protobuf { } ~MessageToClient() override; - explicit PROTOBUF_CONSTEXPR MessageToClient(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit constexpr MessageToClient(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); MessageToClient(const MessageToClient& from); MessageToClient(MessageToClient&& from) noexcept @@ -4722,13 +4633,10 @@ namespace protobuf using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const MessageToClient& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const MessageToClient& from) - { - MessageToClient::MergeImpl(*this, from); - } + void MergeFrom(const MessageToClient& from); private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; @@ -4741,11 +4649,11 @@ namespace protobuf ) const final; int GetCachedSize() const final { - return _impl_._cached_size_.Get(); + return _cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(MessageToClient* other); @@ -4760,6 +4668,10 @@ 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; @@ -4840,17 +4752,10 @@ namespace protobuf friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - 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_; - }; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::protobuf::MessageOfObj> obj_message_; + ::protobuf::MessageOfAll* all_message_; + int game_state_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_Message2Clients_2eproto; }; // ------------------------------------------------------------------- @@ -4864,7 +4769,7 @@ namespace protobuf { } ~MoveRes() override; - explicit PROTOBUF_CONSTEXPR MoveRes(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit constexpr MoveRes(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); MoveRes(const MoveRes& from); MoveRes(MoveRes&& from) noexcept @@ -4963,13 +4868,10 @@ namespace protobuf using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const MoveRes& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const MoveRes& from) - { - MoveRes::MergeImpl(*this, from); - } + void MergeFrom(const MoveRes& from); private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; @@ -4982,11 +4884,11 @@ namespace protobuf ) const final; int GetCachedSize() const final { - return _impl_._cached_size_.Get(); + return _cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(MoveRes* other); @@ -5001,6 +4903,10 @@ 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; @@ -5056,17 +4962,10 @@ namespace protobuf friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - struct Impl_ - { - int64_t actual_speed_; - double actual_angle_; - bool act_success_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union - { - Impl_ _impl_; - }; + int64_t actual_speed_; + double actual_angle_; + bool act_success_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_Message2Clients_2eproto; }; // ------------------------------------------------------------------- @@ -5080,7 +4979,7 @@ namespace protobuf { } ~BoolRes() override; - explicit PROTOBUF_CONSTEXPR BoolRes(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit constexpr BoolRes(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); BoolRes(const BoolRes& from); BoolRes(BoolRes&& from) noexcept @@ -5179,13 +5078,10 @@ namespace protobuf using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const BoolRes& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const BoolRes& from) - { - BoolRes::MergeImpl(*this, from); - } + void MergeFrom(const BoolRes& from); private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; @@ -5198,11 +5094,11 @@ namespace protobuf ) const final; int GetCachedSize() const final { - return _impl_._cached_size_.Get(); + return _cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(BoolRes* other); @@ -5217,6 +5113,10 @@ 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; @@ -5250,15 +5150,8 @@ namespace protobuf friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - struct Impl_ - { - bool act_success_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union - { - Impl_ _impl_; - }; + bool act_success_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_Message2Clients_2eproto; }; // =================================================================== @@ -5274,11 +5167,11 @@ namespace protobuf // int32 x = 1; inline void MessageOfStudent::clear_x() { - _impl_.x_ = 0; + x_ = 0; } inline int32_t MessageOfStudent::_internal_x() const { - return _impl_.x_; + return x_; } inline int32_t MessageOfStudent::x() const { @@ -5287,7 +5180,7 @@ namespace protobuf } inline void MessageOfStudent::_internal_set_x(int32_t value) { - _impl_.x_ = value; + x_ = value; } inline void MessageOfStudent::set_x(int32_t value) { @@ -5298,11 +5191,11 @@ namespace protobuf // int32 y = 2; inline void MessageOfStudent::clear_y() { - _impl_.y_ = 0; + y_ = 0; } inline int32_t MessageOfStudent::_internal_y() const { - return _impl_.y_; + return y_; } inline int32_t MessageOfStudent::y() const { @@ -5311,7 +5204,7 @@ namespace protobuf } inline void MessageOfStudent::_internal_set_y(int32_t value) { - _impl_.y_ = value; + y_ = value; } inline void MessageOfStudent::set_y(int32_t value) { @@ -5322,11 +5215,11 @@ namespace protobuf // int32 speed = 3; inline void MessageOfStudent::clear_speed() { - _impl_.speed_ = 0; + speed_ = 0; } inline int32_t MessageOfStudent::_internal_speed() const { - return _impl_.speed_; + return speed_; } inline int32_t MessageOfStudent::speed() const { @@ -5335,7 +5228,7 @@ namespace protobuf } inline void MessageOfStudent::_internal_set_speed(int32_t value) { - _impl_.speed_ = value; + speed_ = value; } inline void MessageOfStudent::set_speed(int32_t value) { @@ -5346,11 +5239,11 @@ namespace protobuf // int32 determination = 4; inline void MessageOfStudent::clear_determination() { - _impl_.determination_ = 0; + determination_ = 0; } inline int32_t MessageOfStudent::_internal_determination() const { - return _impl_.determination_; + return determination_; } inline int32_t MessageOfStudent::determination() const { @@ -5359,7 +5252,7 @@ namespace protobuf } inline void MessageOfStudent::_internal_set_determination(int32_t value) { - _impl_.determination_ = value; + determination_ = value; } inline void MessageOfStudent::set_determination(int32_t value) { @@ -5370,11 +5263,11 @@ namespace protobuf // int32 addiction = 5; inline void MessageOfStudent::clear_addiction() { - _impl_.addiction_ = 0; + addiction_ = 0; } inline int32_t MessageOfStudent::_internal_addiction() const { - return _impl_.addiction_; + return addiction_; } inline int32_t MessageOfStudent::addiction() const { @@ -5383,7 +5276,7 @@ namespace protobuf } inline void MessageOfStudent::_internal_set_addiction(int32_t value) { - _impl_.addiction_ = value; + addiction_ = value; } inline void MessageOfStudent::set_addiction(int32_t value) { @@ -5394,7 +5287,7 @@ namespace protobuf // repeated double time_until_skill_available = 6; inline int MessageOfStudent::_internal_time_until_skill_available_size() const { - return _impl_.time_until_skill_available_.size(); + return time_until_skill_available_.size(); } inline int MessageOfStudent::time_until_skill_available_size() const { @@ -5402,11 +5295,11 @@ namespace protobuf } inline void MessageOfStudent::clear_time_until_skill_available() { - _impl_.time_until_skill_available_.Clear(); + time_until_skill_available_.Clear(); } inline double MessageOfStudent::_internal_time_until_skill_available(int index) const { - return _impl_.time_until_skill_available_.Get(index); + return time_until_skill_available_.Get(index); } inline double MessageOfStudent::time_until_skill_available(int index) const { @@ -5415,12 +5308,12 @@ namespace protobuf } inline void MessageOfStudent::set_time_until_skill_available(int index, double value) { - _impl_.time_until_skill_available_.Set(index, value); + 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) { - _impl_.time_until_skill_available_.Add(value); + time_until_skill_available_.Add(value); } inline void MessageOfStudent::add_time_until_skill_available(double value) { @@ -5430,7 +5323,7 @@ namespace protobuf inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField& MessageOfStudent::_internal_time_until_skill_available() const { - return _impl_.time_until_skill_available_; + return time_until_skill_available_; } inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField& MessageOfStudent::time_until_skill_available() const @@ -5441,7 +5334,7 @@ namespace protobuf inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* MessageOfStudent::_internal_mutable_time_until_skill_available() { - return &_impl_.time_until_skill_available_; + return &time_until_skill_available_; } inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* MessageOfStudent::mutable_time_until_skill_available() @@ -5453,11 +5346,11 @@ namespace protobuf // .protobuf.PlaceType place = 7; inline void MessageOfStudent::clear_place() { - _impl_.place_ = 0; + place_ = 0; } inline ::protobuf::PlaceType MessageOfStudent::_internal_place() const { - return static_cast<::protobuf::PlaceType>(_impl_.place_); + return static_cast<::protobuf::PlaceType>(place_); } inline ::protobuf::PlaceType MessageOfStudent::place() const { @@ -5466,7 +5359,7 @@ namespace protobuf } inline void MessageOfStudent::_internal_set_place(::protobuf::PlaceType value) { - _impl_.place_ = value; + place_ = value; } inline void MessageOfStudent::set_place(::protobuf::PlaceType value) { @@ -5477,7 +5370,7 @@ namespace protobuf // repeated .protobuf.PropType prop = 8; inline int MessageOfStudent::_internal_prop_size() const { - return _impl_.prop_.size(); + return prop_.size(); } inline int MessageOfStudent::prop_size() const { @@ -5485,11 +5378,11 @@ namespace protobuf } inline void MessageOfStudent::clear_prop() { - _impl_.prop_.Clear(); + prop_.Clear(); } inline ::protobuf::PropType MessageOfStudent::_internal_prop(int index) const { - return static_cast<::protobuf::PropType>(_impl_.prop_.Get(index)); + return static_cast<::protobuf::PropType>(prop_.Get(index)); } inline ::protobuf::PropType MessageOfStudent::prop(int index) const { @@ -5498,12 +5391,12 @@ namespace protobuf } inline void MessageOfStudent::set_prop(int index, ::protobuf::PropType value) { - _impl_.prop_.Set(index, value); + prop_.Set(index, value); // @@protoc_insertion_point(field_set:protobuf.MessageOfStudent.prop) } inline void MessageOfStudent::_internal_add_prop(::protobuf::PropType value) { - _impl_.prop_.Add(value); + prop_.Add(value); } inline void MessageOfStudent::add_prop(::protobuf::PropType value) { @@ -5514,12 +5407,12 @@ namespace protobuf MessageOfStudent::prop() const { // @@protoc_insertion_point(field_list:protobuf.MessageOfStudent.prop) - return _impl_.prop_; + return prop_; } inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* MessageOfStudent::_internal_mutable_prop() { - return &_impl_.prop_; + return &prop_; } inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* MessageOfStudent::mutable_prop() @@ -5531,11 +5424,11 @@ namespace protobuf // .protobuf.PlayerState player_state = 9; inline void MessageOfStudent::clear_player_state() { - _impl_.player_state_ = 0; + player_state_ = 0; } inline ::protobuf::PlayerState MessageOfStudent::_internal_player_state() const { - return static_cast<::protobuf::PlayerState>(_impl_.player_state_); + return static_cast<::protobuf::PlayerState>(player_state_); } inline ::protobuf::PlayerState MessageOfStudent::player_state() const { @@ -5544,7 +5437,7 @@ namespace protobuf } inline void MessageOfStudent::_internal_set_player_state(::protobuf::PlayerState value) { - _impl_.player_state_ = value; + player_state_ = value; } inline void MessageOfStudent::set_player_state(::protobuf::PlayerState value) { @@ -5555,11 +5448,11 @@ namespace protobuf // int64 guid = 10; inline void MessageOfStudent::clear_guid() { - _impl_.guid_ = int64_t{0}; + guid_ = int64_t{0}; } inline int64_t MessageOfStudent::_internal_guid() const { - return _impl_.guid_; + return guid_; } inline int64_t MessageOfStudent::guid() const { @@ -5568,7 +5461,7 @@ namespace protobuf } inline void MessageOfStudent::_internal_set_guid(int64_t value) { - _impl_.guid_ = value; + guid_ = value; } inline void MessageOfStudent::set_guid(int64_t value) { @@ -5579,11 +5472,11 @@ namespace protobuf // .protobuf.BulletType bullet_type = 12; inline void MessageOfStudent::clear_bullet_type() { - _impl_.bullet_type_ = 0; + bullet_type_ = 0; } inline ::protobuf::BulletType MessageOfStudent::_internal_bullet_type() const { - return static_cast<::protobuf::BulletType>(_impl_.bullet_type_); + return static_cast<::protobuf::BulletType>(bullet_type_); } inline ::protobuf::BulletType MessageOfStudent::bullet_type() const { @@ -5592,7 +5485,7 @@ namespace protobuf } inline void MessageOfStudent::_internal_set_bullet_type(::protobuf::BulletType value) { - _impl_.bullet_type_ = value; + bullet_type_ = value; } inline void MessageOfStudent::set_bullet_type(::protobuf::BulletType value) { @@ -5603,11 +5496,11 @@ namespace protobuf // int32 learning_speed = 13; inline void MessageOfStudent::clear_learning_speed() { - _impl_.learning_speed_ = 0; + learning_speed_ = 0; } inline int32_t MessageOfStudent::_internal_learning_speed() const { - return _impl_.learning_speed_; + return learning_speed_; } inline int32_t MessageOfStudent::learning_speed() const { @@ -5616,7 +5509,7 @@ namespace protobuf } inline void MessageOfStudent::_internal_set_learning_speed(int32_t value) { - _impl_.learning_speed_ = value; + learning_speed_ = value; } inline void MessageOfStudent::set_learning_speed(int32_t value) { @@ -5627,11 +5520,11 @@ namespace protobuf // int32 treat_speed = 14; inline void MessageOfStudent::clear_treat_speed() { - _impl_.treat_speed_ = 0; + treat_speed_ = 0; } inline int32_t MessageOfStudent::_internal_treat_speed() const { - return _impl_.treat_speed_; + return treat_speed_; } inline int32_t MessageOfStudent::treat_speed() const { @@ -5640,7 +5533,7 @@ namespace protobuf } inline void MessageOfStudent::_internal_set_treat_speed(int32_t value) { - _impl_.treat_speed_ = value; + treat_speed_ = value; } inline void MessageOfStudent::set_treat_speed(int32_t value) { @@ -5651,11 +5544,11 @@ namespace protobuf // int64 player_id = 15; inline void MessageOfStudent::clear_player_id() { - _impl_.player_id_ = int64_t{0}; + player_id_ = int64_t{0}; } inline int64_t MessageOfStudent::_internal_player_id() const { - return _impl_.player_id_; + return player_id_; } inline int64_t MessageOfStudent::player_id() const { @@ -5664,7 +5557,7 @@ namespace protobuf } inline void MessageOfStudent::_internal_set_player_id(int64_t value) { - _impl_.player_id_ = value; + player_id_ = value; } inline void MessageOfStudent::set_player_id(int64_t value) { @@ -5675,11 +5568,11 @@ namespace protobuf // int32 view_range = 16; inline void MessageOfStudent::clear_view_range() { - _impl_.view_range_ = 0; + view_range_ = 0; } inline int32_t MessageOfStudent::_internal_view_range() const { - return _impl_.view_range_; + return view_range_; } inline int32_t MessageOfStudent::view_range() const { @@ -5688,7 +5581,7 @@ namespace protobuf } inline void MessageOfStudent::_internal_set_view_range(int32_t value) { - _impl_.view_range_ = value; + view_range_ = value; } inline void MessageOfStudent::set_view_range(int32_t value) { @@ -5699,11 +5592,11 @@ namespace protobuf // int32 radius = 17; inline void MessageOfStudent::clear_radius() { - _impl_.radius_ = 0; + radius_ = 0; } inline int32_t MessageOfStudent::_internal_radius() const { - return _impl_.radius_; + return radius_; } inline int32_t MessageOfStudent::radius() const { @@ -5712,7 +5605,7 @@ namespace protobuf } inline void MessageOfStudent::_internal_set_radius(int32_t value) { - _impl_.radius_ = value; + radius_ = value; } inline void MessageOfStudent::set_radius(int32_t value) { @@ -5723,11 +5616,11 @@ namespace protobuf // double danger_alert = 19; inline void MessageOfStudent::clear_danger_alert() { - _impl_.danger_alert_ = 0; + danger_alert_ = 0; } inline double MessageOfStudent::_internal_danger_alert() const { - return _impl_.danger_alert_; + return danger_alert_; } inline double MessageOfStudent::danger_alert() const { @@ -5736,7 +5629,7 @@ namespace protobuf } inline void MessageOfStudent::_internal_set_danger_alert(double value) { - _impl_.danger_alert_ = value; + danger_alert_ = value; } inline void MessageOfStudent::set_danger_alert(double value) { @@ -5747,11 +5640,11 @@ namespace protobuf // int32 score = 20; inline void MessageOfStudent::clear_score() { - _impl_.score_ = 0; + score_ = 0; } inline int32_t MessageOfStudent::_internal_score() const { - return _impl_.score_; + return score_; } inline int32_t MessageOfStudent::score() const { @@ -5760,7 +5653,7 @@ namespace protobuf } inline void MessageOfStudent::_internal_set_score(int32_t value) { - _impl_.score_ = value; + score_ = value; } inline void MessageOfStudent::set_score(int32_t value) { @@ -5771,11 +5664,11 @@ namespace protobuf // int32 treat_progress = 21; inline void MessageOfStudent::clear_treat_progress() { - _impl_.treat_progress_ = 0; + treat_progress_ = 0; } inline int32_t MessageOfStudent::_internal_treat_progress() const { - return _impl_.treat_progress_; + return treat_progress_; } inline int32_t MessageOfStudent::treat_progress() const { @@ -5784,7 +5677,7 @@ namespace protobuf } inline void MessageOfStudent::_internal_set_treat_progress(int32_t value) { - _impl_.treat_progress_ = value; + treat_progress_ = value; } inline void MessageOfStudent::set_treat_progress(int32_t value) { @@ -5795,11 +5688,11 @@ namespace protobuf // int32 rescue_progress = 22; inline void MessageOfStudent::clear_rescue_progress() { - _impl_.rescue_progress_ = 0; + rescue_progress_ = 0; } inline int32_t MessageOfStudent::_internal_rescue_progress() const { - return _impl_.rescue_progress_; + return rescue_progress_; } inline int32_t MessageOfStudent::rescue_progress() const { @@ -5808,7 +5701,7 @@ namespace protobuf } inline void MessageOfStudent::_internal_set_rescue_progress(int32_t value) { - _impl_.rescue_progress_ = value; + rescue_progress_ = value; } inline void MessageOfStudent::set_rescue_progress(int32_t value) { @@ -5819,11 +5712,11 @@ namespace protobuf // .protobuf.StudentType student_type = 23; inline void MessageOfStudent::clear_student_type() { - _impl_.student_type_ = 0; + student_type_ = 0; } inline ::protobuf::StudentType MessageOfStudent::_internal_student_type() const { - return static_cast<::protobuf::StudentType>(_impl_.student_type_); + return static_cast<::protobuf::StudentType>(student_type_); } inline ::protobuf::StudentType MessageOfStudent::student_type() const { @@ -5832,7 +5725,7 @@ namespace protobuf } inline void MessageOfStudent::_internal_set_student_type(::protobuf::StudentType value) { - _impl_.student_type_ = value; + student_type_ = value; } inline void MessageOfStudent::set_student_type(::protobuf::StudentType value) { @@ -5843,11 +5736,11 @@ namespace protobuf // double facing_direction = 24; inline void MessageOfStudent::clear_facing_direction() { - _impl_.facing_direction_ = 0; + facing_direction_ = 0; } inline double MessageOfStudent::_internal_facing_direction() const { - return _impl_.facing_direction_; + return facing_direction_; } inline double MessageOfStudent::facing_direction() const { @@ -5856,7 +5749,7 @@ namespace protobuf } inline void MessageOfStudent::_internal_set_facing_direction(double value) { - _impl_.facing_direction_ = value; + facing_direction_ = value; } inline void MessageOfStudent::set_facing_direction(double value) { @@ -5867,7 +5760,7 @@ namespace protobuf // repeated .protobuf.StudentBuffType buff = 25; inline int MessageOfStudent::_internal_buff_size() const { - return _impl_.buff_.size(); + return buff_.size(); } inline int MessageOfStudent::buff_size() const { @@ -5875,11 +5768,11 @@ namespace protobuf } inline void MessageOfStudent::clear_buff() { - _impl_.buff_.Clear(); + buff_.Clear(); } inline ::protobuf::StudentBuffType MessageOfStudent::_internal_buff(int index) const { - return static_cast<::protobuf::StudentBuffType>(_impl_.buff_.Get(index)); + return static_cast<::protobuf::StudentBuffType>(buff_.Get(index)); } inline ::protobuf::StudentBuffType MessageOfStudent::buff(int index) const { @@ -5888,12 +5781,12 @@ namespace protobuf } inline void MessageOfStudent::set_buff(int index, ::protobuf::StudentBuffType value) { - _impl_.buff_.Set(index, value); + buff_.Set(index, value); // @@protoc_insertion_point(field_set:protobuf.MessageOfStudent.buff) } inline void MessageOfStudent::_internal_add_buff(::protobuf::StudentBuffType value) { - _impl_.buff_.Add(value); + buff_.Add(value); } inline void MessageOfStudent::add_buff(::protobuf::StudentBuffType value) { @@ -5904,12 +5797,12 @@ namespace protobuf MessageOfStudent::buff() const { // @@protoc_insertion_point(field_list:protobuf.MessageOfStudent.buff) - return _impl_.buff_; + return buff_; } inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* MessageOfStudent::_internal_mutable_buff() { - return &_impl_.buff_; + return &buff_; } inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* MessageOfStudent::mutable_buff() @@ -5925,11 +5818,11 @@ namespace protobuf // int32 x = 1; inline void MessageOfTricker::clear_x() { - _impl_.x_ = 0; + x_ = 0; } inline int32_t MessageOfTricker::_internal_x() const { - return _impl_.x_; + return x_; } inline int32_t MessageOfTricker::x() const { @@ -5938,7 +5831,7 @@ namespace protobuf } inline void MessageOfTricker::_internal_set_x(int32_t value) { - _impl_.x_ = value; + x_ = value; } inline void MessageOfTricker::set_x(int32_t value) { @@ -5949,11 +5842,11 @@ namespace protobuf // int32 y = 2; inline void MessageOfTricker::clear_y() { - _impl_.y_ = 0; + y_ = 0; } inline int32_t MessageOfTricker::_internal_y() const { - return _impl_.y_; + return y_; } inline int32_t MessageOfTricker::y() const { @@ -5962,7 +5855,7 @@ namespace protobuf } inline void MessageOfTricker::_internal_set_y(int32_t value) { - _impl_.y_ = value; + y_ = value; } inline void MessageOfTricker::set_y(int32_t value) { @@ -5973,11 +5866,11 @@ namespace protobuf // int32 speed = 3; inline void MessageOfTricker::clear_speed() { - _impl_.speed_ = 0; + speed_ = 0; } inline int32_t MessageOfTricker::_internal_speed() const { - return _impl_.speed_; + return speed_; } inline int32_t MessageOfTricker::speed() const { @@ -5986,7 +5879,7 @@ namespace protobuf } inline void MessageOfTricker::_internal_set_speed(int32_t value) { - _impl_.speed_ = value; + speed_ = value; } inline void MessageOfTricker::set_speed(int32_t value) { @@ -5997,7 +5890,7 @@ namespace protobuf // repeated double time_until_skill_available = 5; inline int MessageOfTricker::_internal_time_until_skill_available_size() const { - return _impl_.time_until_skill_available_.size(); + return time_until_skill_available_.size(); } inline int MessageOfTricker::time_until_skill_available_size() const { @@ -6005,11 +5898,11 @@ namespace protobuf } inline void MessageOfTricker::clear_time_until_skill_available() { - _impl_.time_until_skill_available_.Clear(); + time_until_skill_available_.Clear(); } inline double MessageOfTricker::_internal_time_until_skill_available(int index) const { - return _impl_.time_until_skill_available_.Get(index); + return time_until_skill_available_.Get(index); } inline double MessageOfTricker::time_until_skill_available(int index) const { @@ -6018,12 +5911,12 @@ namespace protobuf } inline void MessageOfTricker::set_time_until_skill_available(int index, double value) { - _impl_.time_until_skill_available_.Set(index, value); + 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) { - _impl_.time_until_skill_available_.Add(value); + time_until_skill_available_.Add(value); } inline void MessageOfTricker::add_time_until_skill_available(double value) { @@ -6033,7 +5926,7 @@ namespace protobuf inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField& MessageOfTricker::_internal_time_until_skill_available() const { - return _impl_.time_until_skill_available_; + return time_until_skill_available_; } inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField& MessageOfTricker::time_until_skill_available() const @@ -6044,7 +5937,7 @@ namespace protobuf inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* MessageOfTricker::_internal_mutable_time_until_skill_available() { - return &_impl_.time_until_skill_available_; + return &time_until_skill_available_; } inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* MessageOfTricker::mutable_time_until_skill_available() @@ -6056,11 +5949,11 @@ namespace protobuf // .protobuf.PlaceType place = 6; inline void MessageOfTricker::clear_place() { - _impl_.place_ = 0; + place_ = 0; } inline ::protobuf::PlaceType MessageOfTricker::_internal_place() const { - return static_cast<::protobuf::PlaceType>(_impl_.place_); + return static_cast<::protobuf::PlaceType>(place_); } inline ::protobuf::PlaceType MessageOfTricker::place() const { @@ -6069,7 +5962,7 @@ namespace protobuf } inline void MessageOfTricker::_internal_set_place(::protobuf::PlaceType value) { - _impl_.place_ = value; + place_ = value; } inline void MessageOfTricker::set_place(::protobuf::PlaceType value) { @@ -6080,7 +5973,7 @@ namespace protobuf // repeated .protobuf.PropType prop = 7; inline int MessageOfTricker::_internal_prop_size() const { - return _impl_.prop_.size(); + return prop_.size(); } inline int MessageOfTricker::prop_size() const { @@ -6088,11 +5981,11 @@ namespace protobuf } inline void MessageOfTricker::clear_prop() { - _impl_.prop_.Clear(); + prop_.Clear(); } inline ::protobuf::PropType MessageOfTricker::_internal_prop(int index) const { - return static_cast<::protobuf::PropType>(_impl_.prop_.Get(index)); + return static_cast<::protobuf::PropType>(prop_.Get(index)); } inline ::protobuf::PropType MessageOfTricker::prop(int index) const { @@ -6101,12 +5994,12 @@ namespace protobuf } inline void MessageOfTricker::set_prop(int index, ::protobuf::PropType value) { - _impl_.prop_.Set(index, value); + prop_.Set(index, value); // @@protoc_insertion_point(field_set:protobuf.MessageOfTricker.prop) } inline void MessageOfTricker::_internal_add_prop(::protobuf::PropType value) { - _impl_.prop_.Add(value); + prop_.Add(value); } inline void MessageOfTricker::add_prop(::protobuf::PropType value) { @@ -6117,12 +6010,12 @@ namespace protobuf MessageOfTricker::prop() const { // @@protoc_insertion_point(field_list:protobuf.MessageOfTricker.prop) - return _impl_.prop_; + return prop_; } inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* MessageOfTricker::_internal_mutable_prop() { - return &_impl_.prop_; + return &prop_; } inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* MessageOfTricker::mutable_prop() @@ -6134,11 +6027,11 @@ namespace protobuf // .protobuf.TrickerType tricker_type = 8; inline void MessageOfTricker::clear_tricker_type() { - _impl_.tricker_type_ = 0; + tricker_type_ = 0; } inline ::protobuf::TrickerType MessageOfTricker::_internal_tricker_type() const { - return static_cast<::protobuf::TrickerType>(_impl_.tricker_type_); + return static_cast<::protobuf::TrickerType>(tricker_type_); } inline ::protobuf::TrickerType MessageOfTricker::tricker_type() const { @@ -6147,7 +6040,7 @@ namespace protobuf } inline void MessageOfTricker::_internal_set_tricker_type(::protobuf::TrickerType value) { - _impl_.tricker_type_ = value; + tricker_type_ = value; } inline void MessageOfTricker::set_tricker_type(::protobuf::TrickerType value) { @@ -6158,11 +6051,11 @@ namespace protobuf // int64 guid = 9; inline void MessageOfTricker::clear_guid() { - _impl_.guid_ = int64_t{0}; + guid_ = int64_t{0}; } inline int64_t MessageOfTricker::_internal_guid() const { - return _impl_.guid_; + return guid_; } inline int64_t MessageOfTricker::guid() const { @@ -6171,7 +6064,7 @@ namespace protobuf } inline void MessageOfTricker::_internal_set_guid(int64_t value) { - _impl_.guid_ = value; + guid_ = value; } inline void MessageOfTricker::set_guid(int64_t value) { @@ -6182,11 +6075,11 @@ namespace protobuf // int32 score = 10; inline void MessageOfTricker::clear_score() { - _impl_.score_ = 0; + score_ = 0; } inline int32_t MessageOfTricker::_internal_score() const { - return _impl_.score_; + return score_; } inline int32_t MessageOfTricker::score() const { @@ -6195,7 +6088,7 @@ namespace protobuf } inline void MessageOfTricker::_internal_set_score(int32_t value) { - _impl_.score_ = value; + score_ = value; } inline void MessageOfTricker::set_score(int32_t value) { @@ -6206,11 +6099,11 @@ namespace protobuf // int64 player_id = 11; inline void MessageOfTricker::clear_player_id() { - _impl_.player_id_ = int64_t{0}; + player_id_ = int64_t{0}; } inline int64_t MessageOfTricker::_internal_player_id() const { - return _impl_.player_id_; + return player_id_; } inline int64_t MessageOfTricker::player_id() const { @@ -6219,7 +6112,7 @@ namespace protobuf } inline void MessageOfTricker::_internal_set_player_id(int64_t value) { - _impl_.player_id_ = value; + player_id_ = value; } inline void MessageOfTricker::set_player_id(int64_t value) { @@ -6230,11 +6123,11 @@ namespace protobuf // int32 view_range = 12; inline void MessageOfTricker::clear_view_range() { - _impl_.view_range_ = 0; + view_range_ = 0; } inline int32_t MessageOfTricker::_internal_view_range() const { - return _impl_.view_range_; + return view_range_; } inline int32_t MessageOfTricker::view_range() const { @@ -6243,7 +6136,7 @@ namespace protobuf } inline void MessageOfTricker::_internal_set_view_range(int32_t value) { - _impl_.view_range_ = value; + view_range_ = value; } inline void MessageOfTricker::set_view_range(int32_t value) { @@ -6254,11 +6147,11 @@ namespace protobuf // int32 radius = 13; inline void MessageOfTricker::clear_radius() { - _impl_.radius_ = 0; + radius_ = 0; } inline int32_t MessageOfTricker::_internal_radius() const { - return _impl_.radius_; + return radius_; } inline int32_t MessageOfTricker::radius() const { @@ -6267,7 +6160,7 @@ namespace protobuf } inline void MessageOfTricker::_internal_set_radius(int32_t value) { - _impl_.radius_ = value; + radius_ = value; } inline void MessageOfTricker::set_radius(int32_t value) { @@ -6278,11 +6171,11 @@ namespace protobuf // .protobuf.PlayerState player_state = 14; inline void MessageOfTricker::clear_player_state() { - _impl_.player_state_ = 0; + player_state_ = 0; } inline ::protobuf::PlayerState MessageOfTricker::_internal_player_state() const { - return static_cast<::protobuf::PlayerState>(_impl_.player_state_); + return static_cast<::protobuf::PlayerState>(player_state_); } inline ::protobuf::PlayerState MessageOfTricker::player_state() const { @@ -6291,7 +6184,7 @@ namespace protobuf } inline void MessageOfTricker::_internal_set_player_state(::protobuf::PlayerState value) { - _impl_.player_state_ = value; + player_state_ = value; } inline void MessageOfTricker::set_player_state(::protobuf::PlayerState value) { @@ -6302,11 +6195,11 @@ namespace protobuf // double trick_desire = 15; inline void MessageOfTricker::clear_trick_desire() { - _impl_.trick_desire_ = 0; + trick_desire_ = 0; } inline double MessageOfTricker::_internal_trick_desire() const { - return _impl_.trick_desire_; + return trick_desire_; } inline double MessageOfTricker::trick_desire() const { @@ -6315,7 +6208,7 @@ namespace protobuf } inline void MessageOfTricker::_internal_set_trick_desire(double value) { - _impl_.trick_desire_ = value; + trick_desire_ = value; } inline void MessageOfTricker::set_trick_desire(double value) { @@ -6326,11 +6219,11 @@ namespace protobuf // double class_volume = 16; inline void MessageOfTricker::clear_class_volume() { - _impl_.class_volume_ = 0; + class_volume_ = 0; } inline double MessageOfTricker::_internal_class_volume() const { - return _impl_.class_volume_; + return class_volume_; } inline double MessageOfTricker::class_volume() const { @@ -6339,7 +6232,7 @@ namespace protobuf } inline void MessageOfTricker::_internal_set_class_volume(double value) { - _impl_.class_volume_ = value; + class_volume_ = value; } inline void MessageOfTricker::set_class_volume(double value) { @@ -6350,11 +6243,11 @@ namespace protobuf // double facing_direction = 17; inline void MessageOfTricker::clear_facing_direction() { - _impl_.facing_direction_ = 0; + facing_direction_ = 0; } inline double MessageOfTricker::_internal_facing_direction() const { - return _impl_.facing_direction_; + return facing_direction_; } inline double MessageOfTricker::facing_direction() const { @@ -6363,7 +6256,7 @@ namespace protobuf } inline void MessageOfTricker::_internal_set_facing_direction(double value) { - _impl_.facing_direction_ = value; + facing_direction_ = value; } inline void MessageOfTricker::set_facing_direction(double value) { @@ -6374,11 +6267,11 @@ namespace protobuf // .protobuf.BulletType bullet_type = 18; inline void MessageOfTricker::clear_bullet_type() { - _impl_.bullet_type_ = 0; + bullet_type_ = 0; } inline ::protobuf::BulletType MessageOfTricker::_internal_bullet_type() const { - return static_cast<::protobuf::BulletType>(_impl_.bullet_type_); + return static_cast<::protobuf::BulletType>(bullet_type_); } inline ::protobuf::BulletType MessageOfTricker::bullet_type() const { @@ -6387,7 +6280,7 @@ namespace protobuf } inline void MessageOfTricker::_internal_set_bullet_type(::protobuf::BulletType value) { - _impl_.bullet_type_ = value; + bullet_type_ = value; } inline void MessageOfTricker::set_bullet_type(::protobuf::BulletType value) { @@ -6398,7 +6291,7 @@ namespace protobuf // repeated .protobuf.TrickerBuffType buff = 19; inline int MessageOfTricker::_internal_buff_size() const { - return _impl_.buff_.size(); + return buff_.size(); } inline int MessageOfTricker::buff_size() const { @@ -6406,11 +6299,11 @@ namespace protobuf } inline void MessageOfTricker::clear_buff() { - _impl_.buff_.Clear(); + buff_.Clear(); } inline ::protobuf::TrickerBuffType MessageOfTricker::_internal_buff(int index) const { - return static_cast<::protobuf::TrickerBuffType>(_impl_.buff_.Get(index)); + return static_cast<::protobuf::TrickerBuffType>(buff_.Get(index)); } inline ::protobuf::TrickerBuffType MessageOfTricker::buff(int index) const { @@ -6419,12 +6312,12 @@ namespace protobuf } inline void MessageOfTricker::set_buff(int index, ::protobuf::TrickerBuffType value) { - _impl_.buff_.Set(index, value); + buff_.Set(index, value); // @@protoc_insertion_point(field_set:protobuf.MessageOfTricker.buff) } inline void MessageOfTricker::_internal_add_buff(::protobuf::TrickerBuffType value) { - _impl_.buff_.Add(value); + buff_.Add(value); } inline void MessageOfTricker::add_buff(::protobuf::TrickerBuffType value) { @@ -6435,12 +6328,12 @@ namespace protobuf MessageOfTricker::buff() const { // @@protoc_insertion_point(field_list:protobuf.MessageOfTricker.buff) - return _impl_.buff_; + return buff_; } inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* MessageOfTricker::_internal_mutable_buff() { - return &_impl_.buff_; + return &buff_; } inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* MessageOfTricker::mutable_buff() @@ -6456,11 +6349,11 @@ namespace protobuf // .protobuf.BulletType type = 1; inline void MessageOfBullet::clear_type() { - _impl_.type_ = 0; + type_ = 0; } inline ::protobuf::BulletType MessageOfBullet::_internal_type() const { - return static_cast<::protobuf::BulletType>(_impl_.type_); + return static_cast<::protobuf::BulletType>(type_); } inline ::protobuf::BulletType MessageOfBullet::type() const { @@ -6469,7 +6362,7 @@ namespace protobuf } inline void MessageOfBullet::_internal_set_type(::protobuf::BulletType value) { - _impl_.type_ = value; + type_ = value; } inline void MessageOfBullet::set_type(::protobuf::BulletType value) { @@ -6480,11 +6373,11 @@ namespace protobuf // int32 x = 2; inline void MessageOfBullet::clear_x() { - _impl_.x_ = 0; + x_ = 0; } inline int32_t MessageOfBullet::_internal_x() const { - return _impl_.x_; + return x_; } inline int32_t MessageOfBullet::x() const { @@ -6493,7 +6386,7 @@ namespace protobuf } inline void MessageOfBullet::_internal_set_x(int32_t value) { - _impl_.x_ = value; + x_ = value; } inline void MessageOfBullet::set_x(int32_t value) { @@ -6504,11 +6397,11 @@ namespace protobuf // int32 y = 3; inline void MessageOfBullet::clear_y() { - _impl_.y_ = 0; + y_ = 0; } inline int32_t MessageOfBullet::_internal_y() const { - return _impl_.y_; + return y_; } inline int32_t MessageOfBullet::y() const { @@ -6517,7 +6410,7 @@ namespace protobuf } inline void MessageOfBullet::_internal_set_y(int32_t value) { - _impl_.y_ = value; + y_ = value; } inline void MessageOfBullet::set_y(int32_t value) { @@ -6528,11 +6421,11 @@ namespace protobuf // double facing_direction = 4; inline void MessageOfBullet::clear_facing_direction() { - _impl_.facing_direction_ = 0; + facing_direction_ = 0; } inline double MessageOfBullet::_internal_facing_direction() const { - return _impl_.facing_direction_; + return facing_direction_; } inline double MessageOfBullet::facing_direction() const { @@ -6541,7 +6434,7 @@ namespace protobuf } inline void MessageOfBullet::_internal_set_facing_direction(double value) { - _impl_.facing_direction_ = value; + facing_direction_ = value; } inline void MessageOfBullet::set_facing_direction(double value) { @@ -6552,11 +6445,11 @@ namespace protobuf // int64 guid = 5; inline void MessageOfBullet::clear_guid() { - _impl_.guid_ = int64_t{0}; + guid_ = int64_t{0}; } inline int64_t MessageOfBullet::_internal_guid() const { - return _impl_.guid_; + return guid_; } inline int64_t MessageOfBullet::guid() const { @@ -6565,7 +6458,7 @@ namespace protobuf } inline void MessageOfBullet::_internal_set_guid(int64_t value) { - _impl_.guid_ = value; + guid_ = value; } inline void MessageOfBullet::set_guid(int64_t value) { @@ -6576,11 +6469,11 @@ namespace protobuf // .protobuf.PlayerType team = 6; inline void MessageOfBullet::clear_team() { - _impl_.team_ = 0; + team_ = 0; } inline ::protobuf::PlayerType MessageOfBullet::_internal_team() const { - return static_cast<::protobuf::PlayerType>(_impl_.team_); + return static_cast<::protobuf::PlayerType>(team_); } inline ::protobuf::PlayerType MessageOfBullet::team() const { @@ -6589,7 +6482,7 @@ namespace protobuf } inline void MessageOfBullet::_internal_set_team(::protobuf::PlayerType value) { - _impl_.team_ = value; + team_ = value; } inline void MessageOfBullet::set_team(::protobuf::PlayerType value) { @@ -6600,11 +6493,11 @@ namespace protobuf // .protobuf.PlaceType place = 7; inline void MessageOfBullet::clear_place() { - _impl_.place_ = 0; + place_ = 0; } inline ::protobuf::PlaceType MessageOfBullet::_internal_place() const { - return static_cast<::protobuf::PlaceType>(_impl_.place_); + return static_cast<::protobuf::PlaceType>(place_); } inline ::protobuf::PlaceType MessageOfBullet::place() const { @@ -6613,7 +6506,7 @@ namespace protobuf } inline void MessageOfBullet::_internal_set_place(::protobuf::PlaceType value) { - _impl_.place_ = value; + place_ = value; } inline void MessageOfBullet::set_place(::protobuf::PlaceType value) { @@ -6624,11 +6517,11 @@ namespace protobuf // double bomb_range = 8; inline void MessageOfBullet::clear_bomb_range() { - _impl_.bomb_range_ = 0; + bomb_range_ = 0; } inline double MessageOfBullet::_internal_bomb_range() const { - return _impl_.bomb_range_; + return bomb_range_; } inline double MessageOfBullet::bomb_range() const { @@ -6637,7 +6530,7 @@ namespace protobuf } inline void MessageOfBullet::_internal_set_bomb_range(double value) { - _impl_.bomb_range_ = value; + bomb_range_ = value; } inline void MessageOfBullet::set_bomb_range(double value) { @@ -6648,11 +6541,11 @@ namespace protobuf // int32 speed = 9; inline void MessageOfBullet::clear_speed() { - _impl_.speed_ = 0; + speed_ = 0; } inline int32_t MessageOfBullet::_internal_speed() const { - return _impl_.speed_; + return speed_; } inline int32_t MessageOfBullet::speed() const { @@ -6661,7 +6554,7 @@ namespace protobuf } inline void MessageOfBullet::_internal_set_speed(int32_t value) { - _impl_.speed_ = value; + speed_ = value; } inline void MessageOfBullet::set_speed(int32_t value) { @@ -6676,11 +6569,11 @@ namespace protobuf // .protobuf.BulletType type = 1; inline void MessageOfBombedBullet::clear_type() { - _impl_.type_ = 0; + type_ = 0; } inline ::protobuf::BulletType MessageOfBombedBullet::_internal_type() const { - return static_cast<::protobuf::BulletType>(_impl_.type_); + return static_cast<::protobuf::BulletType>(type_); } inline ::protobuf::BulletType MessageOfBombedBullet::type() const { @@ -6689,7 +6582,7 @@ namespace protobuf } inline void MessageOfBombedBullet::_internal_set_type(::protobuf::BulletType value) { - _impl_.type_ = value; + type_ = value; } inline void MessageOfBombedBullet::set_type(::protobuf::BulletType value) { @@ -6700,11 +6593,11 @@ namespace protobuf // int32 x = 2; inline void MessageOfBombedBullet::clear_x() { - _impl_.x_ = 0; + x_ = 0; } inline int32_t MessageOfBombedBullet::_internal_x() const { - return _impl_.x_; + return x_; } inline int32_t MessageOfBombedBullet::x() const { @@ -6713,7 +6606,7 @@ namespace protobuf } inline void MessageOfBombedBullet::_internal_set_x(int32_t value) { - _impl_.x_ = value; + x_ = value; } inline void MessageOfBombedBullet::set_x(int32_t value) { @@ -6724,11 +6617,11 @@ namespace protobuf // int32 y = 3; inline void MessageOfBombedBullet::clear_y() { - _impl_.y_ = 0; + y_ = 0; } inline int32_t MessageOfBombedBullet::_internal_y() const { - return _impl_.y_; + return y_; } inline int32_t MessageOfBombedBullet::y() const { @@ -6737,7 +6630,7 @@ namespace protobuf } inline void MessageOfBombedBullet::_internal_set_y(int32_t value) { - _impl_.y_ = value; + y_ = value; } inline void MessageOfBombedBullet::set_y(int32_t value) { @@ -6748,11 +6641,11 @@ namespace protobuf // double facing_direction = 4; inline void MessageOfBombedBullet::clear_facing_direction() { - _impl_.facing_direction_ = 0; + facing_direction_ = 0; } inline double MessageOfBombedBullet::_internal_facing_direction() const { - return _impl_.facing_direction_; + return facing_direction_; } inline double MessageOfBombedBullet::facing_direction() const { @@ -6761,7 +6654,7 @@ namespace protobuf } inline void MessageOfBombedBullet::_internal_set_facing_direction(double value) { - _impl_.facing_direction_ = value; + facing_direction_ = value; } inline void MessageOfBombedBullet::set_facing_direction(double value) { @@ -6772,11 +6665,11 @@ namespace protobuf // int64 mapping_id = 5; inline void MessageOfBombedBullet::clear_mapping_id() { - _impl_.mapping_id_ = int64_t{0}; + mapping_id_ = int64_t{0}; } inline int64_t MessageOfBombedBullet::_internal_mapping_id() const { - return _impl_.mapping_id_; + return mapping_id_; } inline int64_t MessageOfBombedBullet::mapping_id() const { @@ -6785,7 +6678,7 @@ namespace protobuf } inline void MessageOfBombedBullet::_internal_set_mapping_id(int64_t value) { - _impl_.mapping_id_ = value; + mapping_id_ = value; } inline void MessageOfBombedBullet::set_mapping_id(int64_t value) { @@ -6796,11 +6689,11 @@ namespace protobuf // double bomb_range = 6; inline void MessageOfBombedBullet::clear_bomb_range() { - _impl_.bomb_range_ = 0; + bomb_range_ = 0; } inline double MessageOfBombedBullet::_internal_bomb_range() const { - return _impl_.bomb_range_; + return bomb_range_; } inline double MessageOfBombedBullet::bomb_range() const { @@ -6809,7 +6702,7 @@ namespace protobuf } inline void MessageOfBombedBullet::_internal_set_bomb_range(double value) { - _impl_.bomb_range_ = value; + bomb_range_ = value; } inline void MessageOfBombedBullet::set_bomb_range(double value) { @@ -6824,11 +6717,11 @@ namespace protobuf // .protobuf.PropType type = 1; inline void MessageOfProp::clear_type() { - _impl_.type_ = 0; + type_ = 0; } inline ::protobuf::PropType MessageOfProp::_internal_type() const { - return static_cast<::protobuf::PropType>(_impl_.type_); + return static_cast<::protobuf::PropType>(type_); } inline ::protobuf::PropType MessageOfProp::type() const { @@ -6837,7 +6730,7 @@ namespace protobuf } inline void MessageOfProp::_internal_set_type(::protobuf::PropType value) { - _impl_.type_ = value; + type_ = value; } inline void MessageOfProp::set_type(::protobuf::PropType value) { @@ -6848,11 +6741,11 @@ namespace protobuf // int32 x = 2; inline void MessageOfProp::clear_x() { - _impl_.x_ = 0; + x_ = 0; } inline int32_t MessageOfProp::_internal_x() const { - return _impl_.x_; + return x_; } inline int32_t MessageOfProp::x() const { @@ -6861,7 +6754,7 @@ namespace protobuf } inline void MessageOfProp::_internal_set_x(int32_t value) { - _impl_.x_ = value; + x_ = value; } inline void MessageOfProp::set_x(int32_t value) { @@ -6872,11 +6765,11 @@ namespace protobuf // int32 y = 3; inline void MessageOfProp::clear_y() { - _impl_.y_ = 0; + y_ = 0; } inline int32_t MessageOfProp::_internal_y() const { - return _impl_.y_; + return y_; } inline int32_t MessageOfProp::y() const { @@ -6885,7 +6778,7 @@ namespace protobuf } inline void MessageOfProp::_internal_set_y(int32_t value) { - _impl_.y_ = value; + y_ = value; } inline void MessageOfProp::set_y(int32_t value) { @@ -6896,11 +6789,11 @@ namespace protobuf // double facing_direction = 4; inline void MessageOfProp::clear_facing_direction() { - _impl_.facing_direction_ = 0; + facing_direction_ = 0; } inline double MessageOfProp::_internal_facing_direction() const { - return _impl_.facing_direction_; + return facing_direction_; } inline double MessageOfProp::facing_direction() const { @@ -6909,7 +6802,7 @@ namespace protobuf } inline void MessageOfProp::_internal_set_facing_direction(double value) { - _impl_.facing_direction_ = value; + facing_direction_ = value; } inline void MessageOfProp::set_facing_direction(double value) { @@ -6920,11 +6813,11 @@ namespace protobuf // int64 guid = 5; inline void MessageOfProp::clear_guid() { - _impl_.guid_ = int64_t{0}; + guid_ = int64_t{0}; } inline int64_t MessageOfProp::_internal_guid() const { - return _impl_.guid_; + return guid_; } inline int64_t MessageOfProp::guid() const { @@ -6933,7 +6826,7 @@ namespace protobuf } inline void MessageOfProp::_internal_set_guid(int64_t value) { - _impl_.guid_ = value; + guid_ = value; } inline void MessageOfProp::set_guid(int64_t value) { @@ -6944,11 +6837,11 @@ namespace protobuf // .protobuf.PlaceType place = 6; inline void MessageOfProp::clear_place() { - _impl_.place_ = 0; + place_ = 0; } inline ::protobuf::PlaceType MessageOfProp::_internal_place() const { - return static_cast<::protobuf::PlaceType>(_impl_.place_); + return static_cast<::protobuf::PlaceType>(place_); } inline ::protobuf::PlaceType MessageOfProp::place() const { @@ -6957,7 +6850,7 @@ namespace protobuf } inline void MessageOfProp::_internal_set_place(::protobuf::PlaceType value) { - _impl_.place_ = value; + place_ = value; } inline void MessageOfProp::set_place(::protobuf::PlaceType value) { @@ -6972,11 +6865,11 @@ namespace protobuf // .protobuf.PropType type = 1; inline void MessageOfPickedProp::clear_type() { - _impl_.type_ = 0; + type_ = 0; } inline ::protobuf::PropType MessageOfPickedProp::_internal_type() const { - return static_cast<::protobuf::PropType>(_impl_.type_); + return static_cast<::protobuf::PropType>(type_); } inline ::protobuf::PropType MessageOfPickedProp::type() const { @@ -6985,7 +6878,7 @@ namespace protobuf } inline void MessageOfPickedProp::_internal_set_type(::protobuf::PropType value) { - _impl_.type_ = value; + type_ = value; } inline void MessageOfPickedProp::set_type(::protobuf::PropType value) { @@ -6996,11 +6889,11 @@ namespace protobuf // int32 x = 2; inline void MessageOfPickedProp::clear_x() { - _impl_.x_ = 0; + x_ = 0; } inline int32_t MessageOfPickedProp::_internal_x() const { - return _impl_.x_; + return x_; } inline int32_t MessageOfPickedProp::x() const { @@ -7009,7 +6902,7 @@ namespace protobuf } inline void MessageOfPickedProp::_internal_set_x(int32_t value) { - _impl_.x_ = value; + x_ = value; } inline void MessageOfPickedProp::set_x(int32_t value) { @@ -7020,11 +6913,11 @@ namespace protobuf // int32 y = 3; inline void MessageOfPickedProp::clear_y() { - _impl_.y_ = 0; + y_ = 0; } inline int32_t MessageOfPickedProp::_internal_y() const { - return _impl_.y_; + return y_; } inline int32_t MessageOfPickedProp::y() const { @@ -7033,7 +6926,7 @@ namespace protobuf } inline void MessageOfPickedProp::_internal_set_y(int32_t value) { - _impl_.y_ = value; + y_ = value; } inline void MessageOfPickedProp::set_y(int32_t value) { @@ -7044,11 +6937,11 @@ namespace protobuf // double facing_direction = 4; inline void MessageOfPickedProp::clear_facing_direction() { - _impl_.facing_direction_ = 0; + facing_direction_ = 0; } inline double MessageOfPickedProp::_internal_facing_direction() const { - return _impl_.facing_direction_; + return facing_direction_; } inline double MessageOfPickedProp::facing_direction() const { @@ -7057,7 +6950,7 @@ namespace protobuf } inline void MessageOfPickedProp::_internal_set_facing_direction(double value) { - _impl_.facing_direction_ = value; + facing_direction_ = value; } inline void MessageOfPickedProp::set_facing_direction(double value) { @@ -7068,11 +6961,11 @@ namespace protobuf // int64 mapping_id = 5; inline void MessageOfPickedProp::clear_mapping_id() { - _impl_.mapping_id_ = int64_t{0}; + mapping_id_ = int64_t{0}; } inline int64_t MessageOfPickedProp::_internal_mapping_id() const { - return _impl_.mapping_id_; + return mapping_id_; } inline int64_t MessageOfPickedProp::mapping_id() const { @@ -7081,7 +6974,7 @@ namespace protobuf } inline void MessageOfPickedProp::_internal_set_mapping_id(int64_t value) { - _impl_.mapping_id_ = value; + mapping_id_ = value; } inline void MessageOfPickedProp::set_mapping_id(int64_t value) { @@ -7096,11 +6989,11 @@ namespace protobuf // int32 x = 1; inline void MessageOfClassroom::clear_x() { - _impl_.x_ = 0; + x_ = 0; } inline int32_t MessageOfClassroom::_internal_x() const { - return _impl_.x_; + return x_; } inline int32_t MessageOfClassroom::x() const { @@ -7109,7 +7002,7 @@ namespace protobuf } inline void MessageOfClassroom::_internal_set_x(int32_t value) { - _impl_.x_ = value; + x_ = value; } inline void MessageOfClassroom::set_x(int32_t value) { @@ -7120,11 +7013,11 @@ namespace protobuf // int32 y = 2; inline void MessageOfClassroom::clear_y() { - _impl_.y_ = 0; + y_ = 0; } inline int32_t MessageOfClassroom::_internal_y() const { - return _impl_.y_; + return y_; } inline int32_t MessageOfClassroom::y() const { @@ -7133,7 +7026,7 @@ namespace protobuf } inline void MessageOfClassroom::_internal_set_y(int32_t value) { - _impl_.y_ = value; + y_ = value; } inline void MessageOfClassroom::set_y(int32_t value) { @@ -7144,11 +7037,11 @@ namespace protobuf // int32 progress = 3; inline void MessageOfClassroom::clear_progress() { - _impl_.progress_ = 0; + progress_ = 0; } inline int32_t MessageOfClassroom::_internal_progress() const { - return _impl_.progress_; + return progress_; } inline int32_t MessageOfClassroom::progress() const { @@ -7157,7 +7050,7 @@ namespace protobuf } inline void MessageOfClassroom::_internal_set_progress(int32_t value) { - _impl_.progress_ = value; + progress_ = value; } inline void MessageOfClassroom::set_progress(int32_t value) { @@ -7172,11 +7065,11 @@ namespace protobuf // int32 x = 1; inline void MessageOfGate::clear_x() { - _impl_.x_ = 0; + x_ = 0; } inline int32_t MessageOfGate::_internal_x() const { - return _impl_.x_; + return x_; } inline int32_t MessageOfGate::x() const { @@ -7185,7 +7078,7 @@ namespace protobuf } inline void MessageOfGate::_internal_set_x(int32_t value) { - _impl_.x_ = value; + x_ = value; } inline void MessageOfGate::set_x(int32_t value) { @@ -7196,11 +7089,11 @@ namespace protobuf // int32 y = 2; inline void MessageOfGate::clear_y() { - _impl_.y_ = 0; + y_ = 0; } inline int32_t MessageOfGate::_internal_y() const { - return _impl_.y_; + return y_; } inline int32_t MessageOfGate::y() const { @@ -7209,7 +7102,7 @@ namespace protobuf } inline void MessageOfGate::_internal_set_y(int32_t value) { - _impl_.y_ = value; + y_ = value; } inline void MessageOfGate::set_y(int32_t value) { @@ -7220,11 +7113,11 @@ namespace protobuf // int32 progress = 3; inline void MessageOfGate::clear_progress() { - _impl_.progress_ = 0; + progress_ = 0; } inline int32_t MessageOfGate::_internal_progress() const { - return _impl_.progress_; + return progress_; } inline int32_t MessageOfGate::progress() const { @@ -7233,7 +7126,7 @@ namespace protobuf } inline void MessageOfGate::_internal_set_progress(int32_t value) { - _impl_.progress_ = value; + progress_ = value; } inline void MessageOfGate::set_progress(int32_t value) { @@ -7248,11 +7141,11 @@ namespace protobuf // int32 x = 1; inline void MessageOfHiddenGate::clear_x() { - _impl_.x_ = 0; + x_ = 0; } inline int32_t MessageOfHiddenGate::_internal_x() const { - return _impl_.x_; + return x_; } inline int32_t MessageOfHiddenGate::x() const { @@ -7261,7 +7154,7 @@ namespace protobuf } inline void MessageOfHiddenGate::_internal_set_x(int32_t value) { - _impl_.x_ = value; + x_ = value; } inline void MessageOfHiddenGate::set_x(int32_t value) { @@ -7272,11 +7165,11 @@ namespace protobuf // int32 y = 2; inline void MessageOfHiddenGate::clear_y() { - _impl_.y_ = 0; + y_ = 0; } inline int32_t MessageOfHiddenGate::_internal_y() const { - return _impl_.y_; + return y_; } inline int32_t MessageOfHiddenGate::y() const { @@ -7285,7 +7178,7 @@ namespace protobuf } inline void MessageOfHiddenGate::_internal_set_y(int32_t value) { - _impl_.y_ = value; + y_ = value; } inline void MessageOfHiddenGate::set_y(int32_t value) { @@ -7296,11 +7189,11 @@ namespace protobuf // bool opened = 3; inline void MessageOfHiddenGate::clear_opened() { - _impl_.opened_ = false; + opened_ = false; } inline bool MessageOfHiddenGate::_internal_opened() const { - return _impl_.opened_; + return opened_; } inline bool MessageOfHiddenGate::opened() const { @@ -7309,7 +7202,7 @@ namespace protobuf } inline void MessageOfHiddenGate::_internal_set_opened(bool value) { - _impl_.opened_ = value; + opened_ = value; } inline void MessageOfHiddenGate::set_opened(bool value) { @@ -7324,11 +7217,11 @@ namespace protobuf // int32 x = 1; inline void MessageOfDoor::clear_x() { - _impl_.x_ = 0; + x_ = 0; } inline int32_t MessageOfDoor::_internal_x() const { - return _impl_.x_; + return x_; } inline int32_t MessageOfDoor::x() const { @@ -7337,7 +7230,7 @@ namespace protobuf } inline void MessageOfDoor::_internal_set_x(int32_t value) { - _impl_.x_ = value; + x_ = value; } inline void MessageOfDoor::set_x(int32_t value) { @@ -7348,11 +7241,11 @@ namespace protobuf // int32 y = 2; inline void MessageOfDoor::clear_y() { - _impl_.y_ = 0; + y_ = 0; } inline int32_t MessageOfDoor::_internal_y() const { - return _impl_.y_; + return y_; } inline int32_t MessageOfDoor::y() const { @@ -7361,7 +7254,7 @@ namespace protobuf } inline void MessageOfDoor::_internal_set_y(int32_t value) { - _impl_.y_ = value; + y_ = value; } inline void MessageOfDoor::set_y(int32_t value) { @@ -7372,11 +7265,11 @@ namespace protobuf // bool is_open = 3; inline void MessageOfDoor::clear_is_open() { - _impl_.is_open_ = false; + is_open_ = false; } inline bool MessageOfDoor::_internal_is_open() const { - return _impl_.is_open_; + return is_open_; } inline bool MessageOfDoor::is_open() const { @@ -7385,7 +7278,7 @@ namespace protobuf } inline void MessageOfDoor::_internal_set_is_open(bool value) { - _impl_.is_open_ = value; + is_open_ = value; } inline void MessageOfDoor::set_is_open(bool value) { @@ -7396,11 +7289,11 @@ namespace protobuf // int32 progress = 4; inline void MessageOfDoor::clear_progress() { - _impl_.progress_ = 0; + progress_ = 0; } inline int32_t MessageOfDoor::_internal_progress() const { - return _impl_.progress_; + return progress_; } inline int32_t MessageOfDoor::progress() const { @@ -7409,7 +7302,7 @@ namespace protobuf } inline void MessageOfDoor::_internal_set_progress(int32_t value) { - _impl_.progress_ = value; + progress_ = value; } inline void MessageOfDoor::set_progress(int32_t value) { @@ -7424,11 +7317,11 @@ namespace protobuf // int32 x = 1; inline void MessageOfChest::clear_x() { - _impl_.x_ = 0; + x_ = 0; } inline int32_t MessageOfChest::_internal_x() const { - return _impl_.x_; + return x_; } inline int32_t MessageOfChest::x() const { @@ -7437,7 +7330,7 @@ namespace protobuf } inline void MessageOfChest::_internal_set_x(int32_t value) { - _impl_.x_ = value; + x_ = value; } inline void MessageOfChest::set_x(int32_t value) { @@ -7448,11 +7341,11 @@ namespace protobuf // int32 y = 2; inline void MessageOfChest::clear_y() { - _impl_.y_ = 0; + y_ = 0; } inline int32_t MessageOfChest::_internal_y() const { - return _impl_.y_; + return y_; } inline int32_t MessageOfChest::y() const { @@ -7461,7 +7354,7 @@ namespace protobuf } inline void MessageOfChest::_internal_set_y(int32_t value) { - _impl_.y_ = value; + y_ = value; } inline void MessageOfChest::set_y(int32_t value) { @@ -7472,11 +7365,11 @@ namespace protobuf // int32 progress = 3; inline void MessageOfChest::clear_progress() { - _impl_.progress_ = 0; + progress_ = 0; } inline int32_t MessageOfChest::_internal_progress() const { - return _impl_.progress_; + return progress_; } inline int32_t MessageOfChest::progress() const { @@ -7485,7 +7378,7 @@ namespace protobuf } inline void MessageOfChest::_internal_set_progress(int32_t value) { - _impl_.progress_ = value; + progress_ = value; } inline void MessageOfChest::set_progress(int32_t value) { @@ -7500,7 +7393,7 @@ namespace protobuf // repeated .protobuf.PlaceType col = 1; inline int MessageOfMap_Row::_internal_col_size() const { - return _impl_.col_.size(); + return col_.size(); } inline int MessageOfMap_Row::col_size() const { @@ -7508,11 +7401,11 @@ namespace protobuf } inline void MessageOfMap_Row::clear_col() { - _impl_.col_.Clear(); + col_.Clear(); } inline ::protobuf::PlaceType MessageOfMap_Row::_internal_col(int index) const { - return static_cast<::protobuf::PlaceType>(_impl_.col_.Get(index)); + return static_cast<::protobuf::PlaceType>(col_.Get(index)); } inline ::protobuf::PlaceType MessageOfMap_Row::col(int index) const { @@ -7521,12 +7414,12 @@ namespace protobuf } inline void MessageOfMap_Row::set_col(int index, ::protobuf::PlaceType value) { - _impl_.col_.Set(index, value); + col_.Set(index, value); // @@protoc_insertion_point(field_set:protobuf.MessageOfMap.Row.col) } inline void MessageOfMap_Row::_internal_add_col(::protobuf::PlaceType value) { - _impl_.col_.Add(value); + col_.Add(value); } inline void MessageOfMap_Row::add_col(::protobuf::PlaceType value) { @@ -7537,12 +7430,12 @@ namespace protobuf MessageOfMap_Row::col() const { // @@protoc_insertion_point(field_list:protobuf.MessageOfMap.Row.col) - return _impl_.col_; + return col_; } inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* MessageOfMap_Row::_internal_mutable_col() { - return &_impl_.col_; + return &col_; } inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* MessageOfMap_Row::mutable_col() @@ -7558,7 +7451,7 @@ namespace protobuf // repeated .protobuf.MessageOfMap.Row row = 2; inline int MessageOfMap::_internal_row_size() const { - return _impl_.row_.size(); + return row_.size(); } inline int MessageOfMap::row_size() const { @@ -7566,22 +7459,22 @@ namespace protobuf } inline void MessageOfMap::clear_row() { - _impl_.row_.Clear(); + row_.Clear(); } inline ::protobuf::MessageOfMap_Row* MessageOfMap::mutable_row(int index) { // @@protoc_insertion_point(field_mutable:protobuf.MessageOfMap.row) - return _impl_.row_.Mutable(index); + return row_.Mutable(index); } inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::protobuf::MessageOfMap_Row>* MessageOfMap::mutable_row() { // @@protoc_insertion_point(field_mutable_list:protobuf.MessageOfMap.row) - return &_impl_.row_; + return &row_; } inline const ::protobuf::MessageOfMap_Row& MessageOfMap::_internal_row(int index) const { - return _impl_.row_.Get(index); + return row_.Get(index); } inline const ::protobuf::MessageOfMap_Row& MessageOfMap::row(int index) const { @@ -7590,7 +7483,7 @@ namespace protobuf } inline ::protobuf::MessageOfMap_Row* MessageOfMap::_internal_add_row() { - return _impl_.row_.Add(); + return row_.Add(); } inline ::protobuf::MessageOfMap_Row* MessageOfMap::add_row() { @@ -7602,7 +7495,7 @@ namespace protobuf MessageOfMap::row() const { // @@protoc_insertion_point(field_list:protobuf.MessageOfMap.row) - return _impl_.row_; + return row_; } // ------------------------------------------------------------------- @@ -7612,7 +7505,7 @@ namespace protobuf // string news = 1; inline void MessageOfNews::clear_news() { - _impl_.news_.ClearToEmpty(); + news_.ClearToEmpty(); } inline const std::string& MessageOfNews::news() const { @@ -7622,7 +7515,7 @@ namespace protobuf template inline PROTOBUF_ALWAYS_INLINE void MessageOfNews::set_news(ArgT0&& arg0, ArgT... args) { - _impl_.news_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + news_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:protobuf.MessageOfNews.news) } inline std::string* MessageOfNews::mutable_news() @@ -7633,20 +7526,20 @@ namespace protobuf } inline const std::string& MessageOfNews::_internal_news() const { - return _impl_.news_.Get(); + return news_.Get(); } inline void MessageOfNews::_internal_set_news(const std::string& value) { - _impl_.news_.Set(value, GetArenaForAllocation()); + news_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* MessageOfNews::_internal_mutable_news() { - return _impl_.news_.Mutable(GetArenaForAllocation()); + return news_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* MessageOfNews::release_news() { // @@protoc_insertion_point(field_release:protobuf.MessageOfNews.news) - return _impl_.news_.Release(); + return news_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void MessageOfNews::set_allocated_news(std::string* news) { @@ -7656,11 +7549,11 @@ namespace protobuf else { } - _impl_.news_.SetAllocated(news, GetArenaForAllocation()); + news_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), news, GetArenaForAllocation()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.news_.IsDefault()) + if (news_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - _impl_.news_.Set("", GetArenaForAllocation()); + news_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:protobuf.MessageOfNews.news) @@ -7669,11 +7562,11 @@ namespace protobuf // int64 from_id = 2; inline void MessageOfNews::clear_from_id() { - _impl_.from_id_ = int64_t{0}; + from_id_ = int64_t{0}; } inline int64_t MessageOfNews::_internal_from_id() const { - return _impl_.from_id_; + return from_id_; } inline int64_t MessageOfNews::from_id() const { @@ -7682,7 +7575,7 @@ namespace protobuf } inline void MessageOfNews::_internal_set_from_id(int64_t value) { - _impl_.from_id_ = value; + from_id_ = value; } inline void MessageOfNews::set_from_id(int64_t value) { @@ -7693,11 +7586,11 @@ namespace protobuf // int64 to_id = 3; inline void MessageOfNews::clear_to_id() { - _impl_.to_id_ = int64_t{0}; + to_id_ = int64_t{0}; } inline int64_t MessageOfNews::_internal_to_id() const { - return _impl_.to_id_; + return to_id_; } inline int64_t MessageOfNews::to_id() const { @@ -7706,7 +7599,7 @@ namespace protobuf } inline void MessageOfNews::_internal_set_to_id(int64_t value) { - _impl_.to_id_ = value; + to_id_ = value; } inline void MessageOfNews::set_to_id(int64_t value) { @@ -7729,7 +7622,7 @@ namespace protobuf } inline void MessageOfObj::set_has_student_message() { - _impl_._oneof_case_[0] = kStudentMessage; + _oneof_case_[0] = kStudentMessage; } inline void MessageOfObj::clear_student_message() { @@ -7737,7 +7630,7 @@ namespace protobuf { if (GetArenaForAllocation() == nullptr) { - delete _impl_.message_of_obj_.student_message_; + delete message_of_obj_.student_message_; } clear_has_message_of_obj(); } @@ -7748,12 +7641,12 @@ namespace protobuf if (_internal_has_student_message()) { clear_has_message_of_obj(); - ::protobuf::MessageOfStudent* temp = _impl_.message_of_obj_.student_message_; + ::protobuf::MessageOfStudent* temp = message_of_obj_.student_message_; if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.message_of_obj_.student_message_ = nullptr; + message_of_obj_.student_message_ = nullptr; return temp; } else @@ -7763,7 +7656,7 @@ namespace protobuf } inline const ::protobuf::MessageOfStudent& MessageOfObj::_internal_student_message() const { - return _internal_has_student_message() ? *_impl_.message_of_obj_.student_message_ : reinterpret_cast<::protobuf::MessageOfStudent&>(::protobuf::_MessageOfStudent_default_instance_); + return _internal_has_student_message() ? *message_of_obj_.student_message_ : reinterpret_cast<::protobuf::MessageOfStudent&>(::protobuf::_MessageOfStudent_default_instance_); } inline const ::protobuf::MessageOfStudent& MessageOfObj::student_message() const { @@ -7776,8 +7669,8 @@ namespace protobuf if (_internal_has_student_message()) { clear_has_message_of_obj(); - ::protobuf::MessageOfStudent* temp = _impl_.message_of_obj_.student_message_; - _impl_.message_of_obj_.student_message_ = nullptr; + ::protobuf::MessageOfStudent* temp = message_of_obj_.student_message_; + message_of_obj_.student_message_ = nullptr; return temp; } else @@ -7791,7 +7684,7 @@ namespace protobuf if (student_message) { set_has_student_message(); - _impl_.message_of_obj_.student_message_ = student_message; + message_of_obj_.student_message_ = student_message; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf.MessageOfObj.student_message) } @@ -7801,9 +7694,9 @@ namespace protobuf { clear_message_of_obj(); set_has_student_message(); - _impl_.message_of_obj_.student_message_ = CreateMaybeMessage<::protobuf::MessageOfStudent>(GetArenaForAllocation()); + message_of_obj_.student_message_ = CreateMaybeMessage<::protobuf::MessageOfStudent>(GetArenaForAllocation()); } - return _impl_.message_of_obj_.student_message_; + return message_of_obj_.student_message_; } inline ::protobuf::MessageOfStudent* MessageOfObj::mutable_student_message() { @@ -7823,7 +7716,7 @@ namespace protobuf } inline void MessageOfObj::set_has_tricker_message() { - _impl_._oneof_case_[0] = kTrickerMessage; + _oneof_case_[0] = kTrickerMessage; } inline void MessageOfObj::clear_tricker_message() { @@ -7831,7 +7724,7 @@ namespace protobuf { if (GetArenaForAllocation() == nullptr) { - delete _impl_.message_of_obj_.tricker_message_; + delete message_of_obj_.tricker_message_; } clear_has_message_of_obj(); } @@ -7842,12 +7735,12 @@ namespace protobuf if (_internal_has_tricker_message()) { clear_has_message_of_obj(); - ::protobuf::MessageOfTricker* temp = _impl_.message_of_obj_.tricker_message_; + ::protobuf::MessageOfTricker* temp = message_of_obj_.tricker_message_; if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.message_of_obj_.tricker_message_ = nullptr; + message_of_obj_.tricker_message_ = nullptr; return temp; } else @@ -7857,7 +7750,7 @@ namespace protobuf } inline const ::protobuf::MessageOfTricker& MessageOfObj::_internal_tricker_message() const { - return _internal_has_tricker_message() ? *_impl_.message_of_obj_.tricker_message_ : reinterpret_cast<::protobuf::MessageOfTricker&>(::protobuf::_MessageOfTricker_default_instance_); + return _internal_has_tricker_message() ? *message_of_obj_.tricker_message_ : reinterpret_cast<::protobuf::MessageOfTricker&>(::protobuf::_MessageOfTricker_default_instance_); } inline const ::protobuf::MessageOfTricker& MessageOfObj::tricker_message() const { @@ -7870,8 +7763,8 @@ namespace protobuf if (_internal_has_tricker_message()) { clear_has_message_of_obj(); - ::protobuf::MessageOfTricker* temp = _impl_.message_of_obj_.tricker_message_; - _impl_.message_of_obj_.tricker_message_ = nullptr; + ::protobuf::MessageOfTricker* temp = message_of_obj_.tricker_message_; + message_of_obj_.tricker_message_ = nullptr; return temp; } else @@ -7885,7 +7778,7 @@ namespace protobuf if (tricker_message) { set_has_tricker_message(); - _impl_.message_of_obj_.tricker_message_ = tricker_message; + message_of_obj_.tricker_message_ = tricker_message; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf.MessageOfObj.tricker_message) } @@ -7895,9 +7788,9 @@ namespace protobuf { clear_message_of_obj(); set_has_tricker_message(); - _impl_.message_of_obj_.tricker_message_ = CreateMaybeMessage<::protobuf::MessageOfTricker>(GetArenaForAllocation()); + message_of_obj_.tricker_message_ = CreateMaybeMessage<::protobuf::MessageOfTricker>(GetArenaForAllocation()); } - return _impl_.message_of_obj_.tricker_message_; + return message_of_obj_.tricker_message_; } inline ::protobuf::MessageOfTricker* MessageOfObj::mutable_tricker_message() { @@ -7917,7 +7810,7 @@ namespace protobuf } inline void MessageOfObj::set_has_prop_message() { - _impl_._oneof_case_[0] = kPropMessage; + _oneof_case_[0] = kPropMessage; } inline void MessageOfObj::clear_prop_message() { @@ -7925,7 +7818,7 @@ namespace protobuf { if (GetArenaForAllocation() == nullptr) { - delete _impl_.message_of_obj_.prop_message_; + delete message_of_obj_.prop_message_; } clear_has_message_of_obj(); } @@ -7936,12 +7829,12 @@ namespace protobuf if (_internal_has_prop_message()) { clear_has_message_of_obj(); - ::protobuf::MessageOfProp* temp = _impl_.message_of_obj_.prop_message_; + ::protobuf::MessageOfProp* temp = message_of_obj_.prop_message_; if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.message_of_obj_.prop_message_ = nullptr; + message_of_obj_.prop_message_ = nullptr; return temp; } else @@ -7951,7 +7844,7 @@ namespace protobuf } inline const ::protobuf::MessageOfProp& MessageOfObj::_internal_prop_message() const { - return _internal_has_prop_message() ? *_impl_.message_of_obj_.prop_message_ : reinterpret_cast<::protobuf::MessageOfProp&>(::protobuf::_MessageOfProp_default_instance_); + return _internal_has_prop_message() ? *message_of_obj_.prop_message_ : reinterpret_cast<::protobuf::MessageOfProp&>(::protobuf::_MessageOfProp_default_instance_); } inline const ::protobuf::MessageOfProp& MessageOfObj::prop_message() const { @@ -7964,8 +7857,8 @@ namespace protobuf if (_internal_has_prop_message()) { clear_has_message_of_obj(); - ::protobuf::MessageOfProp* temp = _impl_.message_of_obj_.prop_message_; - _impl_.message_of_obj_.prop_message_ = nullptr; + ::protobuf::MessageOfProp* temp = message_of_obj_.prop_message_; + message_of_obj_.prop_message_ = nullptr; return temp; } else @@ -7979,7 +7872,7 @@ namespace protobuf if (prop_message) { set_has_prop_message(); - _impl_.message_of_obj_.prop_message_ = prop_message; + message_of_obj_.prop_message_ = prop_message; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf.MessageOfObj.prop_message) } @@ -7989,9 +7882,9 @@ namespace protobuf { clear_message_of_obj(); set_has_prop_message(); - _impl_.message_of_obj_.prop_message_ = CreateMaybeMessage<::protobuf::MessageOfProp>(GetArenaForAllocation()); + message_of_obj_.prop_message_ = CreateMaybeMessage<::protobuf::MessageOfProp>(GetArenaForAllocation()); } - return _impl_.message_of_obj_.prop_message_; + return message_of_obj_.prop_message_; } inline ::protobuf::MessageOfProp* MessageOfObj::mutable_prop_message() { @@ -8011,7 +7904,7 @@ namespace protobuf } inline void MessageOfObj::set_has_bullet_message() { - _impl_._oneof_case_[0] = kBulletMessage; + _oneof_case_[0] = kBulletMessage; } inline void MessageOfObj::clear_bullet_message() { @@ -8019,7 +7912,7 @@ namespace protobuf { if (GetArenaForAllocation() == nullptr) { - delete _impl_.message_of_obj_.bullet_message_; + delete message_of_obj_.bullet_message_; } clear_has_message_of_obj(); } @@ -8030,12 +7923,12 @@ namespace protobuf if (_internal_has_bullet_message()) { clear_has_message_of_obj(); - ::protobuf::MessageOfBullet* temp = _impl_.message_of_obj_.bullet_message_; + ::protobuf::MessageOfBullet* temp = message_of_obj_.bullet_message_; if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.message_of_obj_.bullet_message_ = nullptr; + message_of_obj_.bullet_message_ = nullptr; return temp; } else @@ -8045,7 +7938,7 @@ namespace protobuf } inline const ::protobuf::MessageOfBullet& MessageOfObj::_internal_bullet_message() const { - return _internal_has_bullet_message() ? *_impl_.message_of_obj_.bullet_message_ : reinterpret_cast<::protobuf::MessageOfBullet&>(::protobuf::_MessageOfBullet_default_instance_); + return _internal_has_bullet_message() ? *message_of_obj_.bullet_message_ : reinterpret_cast<::protobuf::MessageOfBullet&>(::protobuf::_MessageOfBullet_default_instance_); } inline const ::protobuf::MessageOfBullet& MessageOfObj::bullet_message() const { @@ -8058,8 +7951,8 @@ namespace protobuf if (_internal_has_bullet_message()) { clear_has_message_of_obj(); - ::protobuf::MessageOfBullet* temp = _impl_.message_of_obj_.bullet_message_; - _impl_.message_of_obj_.bullet_message_ = nullptr; + ::protobuf::MessageOfBullet* temp = message_of_obj_.bullet_message_; + message_of_obj_.bullet_message_ = nullptr; return temp; } else @@ -8073,7 +7966,7 @@ namespace protobuf if (bullet_message) { set_has_bullet_message(); - _impl_.message_of_obj_.bullet_message_ = bullet_message; + message_of_obj_.bullet_message_ = bullet_message; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf.MessageOfObj.bullet_message) } @@ -8083,9 +7976,9 @@ namespace protobuf { clear_message_of_obj(); set_has_bullet_message(); - _impl_.message_of_obj_.bullet_message_ = CreateMaybeMessage<::protobuf::MessageOfBullet>(GetArenaForAllocation()); + message_of_obj_.bullet_message_ = CreateMaybeMessage<::protobuf::MessageOfBullet>(GetArenaForAllocation()); } - return _impl_.message_of_obj_.bullet_message_; + return message_of_obj_.bullet_message_; } inline ::protobuf::MessageOfBullet* MessageOfObj::mutable_bullet_message() { @@ -8105,7 +7998,7 @@ namespace protobuf } inline void MessageOfObj::set_has_bombed_bullet_message() { - _impl_._oneof_case_[0] = kBombedBulletMessage; + _oneof_case_[0] = kBombedBulletMessage; } inline void MessageOfObj::clear_bombed_bullet_message() { @@ -8113,7 +8006,7 @@ namespace protobuf { if (GetArenaForAllocation() == nullptr) { - delete _impl_.message_of_obj_.bombed_bullet_message_; + delete message_of_obj_.bombed_bullet_message_; } clear_has_message_of_obj(); } @@ -8124,12 +8017,12 @@ namespace protobuf if (_internal_has_bombed_bullet_message()) { clear_has_message_of_obj(); - ::protobuf::MessageOfBombedBullet* temp = _impl_.message_of_obj_.bombed_bullet_message_; + ::protobuf::MessageOfBombedBullet* temp = message_of_obj_.bombed_bullet_message_; if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.message_of_obj_.bombed_bullet_message_ = nullptr; + message_of_obj_.bombed_bullet_message_ = nullptr; return temp; } else @@ -8139,7 +8032,7 @@ namespace protobuf } inline const ::protobuf::MessageOfBombedBullet& MessageOfObj::_internal_bombed_bullet_message() const { - return _internal_has_bombed_bullet_message() ? *_impl_.message_of_obj_.bombed_bullet_message_ : reinterpret_cast<::protobuf::MessageOfBombedBullet&>(::protobuf::_MessageOfBombedBullet_default_instance_); + return _internal_has_bombed_bullet_message() ? *message_of_obj_.bombed_bullet_message_ : reinterpret_cast<::protobuf::MessageOfBombedBullet&>(::protobuf::_MessageOfBombedBullet_default_instance_); } inline const ::protobuf::MessageOfBombedBullet& MessageOfObj::bombed_bullet_message() const { @@ -8152,8 +8045,8 @@ namespace protobuf if (_internal_has_bombed_bullet_message()) { clear_has_message_of_obj(); - ::protobuf::MessageOfBombedBullet* temp = _impl_.message_of_obj_.bombed_bullet_message_; - _impl_.message_of_obj_.bombed_bullet_message_ = nullptr; + ::protobuf::MessageOfBombedBullet* temp = message_of_obj_.bombed_bullet_message_; + message_of_obj_.bombed_bullet_message_ = nullptr; return temp; } else @@ -8167,7 +8060,7 @@ namespace protobuf if (bombed_bullet_message) { set_has_bombed_bullet_message(); - _impl_.message_of_obj_.bombed_bullet_message_ = bombed_bullet_message; + message_of_obj_.bombed_bullet_message_ = bombed_bullet_message; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf.MessageOfObj.bombed_bullet_message) } @@ -8177,9 +8070,9 @@ namespace protobuf { clear_message_of_obj(); set_has_bombed_bullet_message(); - _impl_.message_of_obj_.bombed_bullet_message_ = CreateMaybeMessage<::protobuf::MessageOfBombedBullet>(GetArenaForAllocation()); + message_of_obj_.bombed_bullet_message_ = CreateMaybeMessage<::protobuf::MessageOfBombedBullet>(GetArenaForAllocation()); } - return _impl_.message_of_obj_.bombed_bullet_message_; + return message_of_obj_.bombed_bullet_message_; } inline ::protobuf::MessageOfBombedBullet* MessageOfObj::mutable_bombed_bullet_message() { @@ -8199,7 +8092,7 @@ namespace protobuf } inline void MessageOfObj::set_has_classroom_message() { - _impl_._oneof_case_[0] = kClassroomMessage; + _oneof_case_[0] = kClassroomMessage; } inline void MessageOfObj::clear_classroom_message() { @@ -8207,7 +8100,7 @@ namespace protobuf { if (GetArenaForAllocation() == nullptr) { - delete _impl_.message_of_obj_.classroom_message_; + delete message_of_obj_.classroom_message_; } clear_has_message_of_obj(); } @@ -8218,12 +8111,12 @@ namespace protobuf if (_internal_has_classroom_message()) { clear_has_message_of_obj(); - ::protobuf::MessageOfClassroom* temp = _impl_.message_of_obj_.classroom_message_; + ::protobuf::MessageOfClassroom* temp = message_of_obj_.classroom_message_; if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.message_of_obj_.classroom_message_ = nullptr; + message_of_obj_.classroom_message_ = nullptr; return temp; } else @@ -8233,7 +8126,7 @@ namespace protobuf } inline const ::protobuf::MessageOfClassroom& MessageOfObj::_internal_classroom_message() const { - return _internal_has_classroom_message() ? *_impl_.message_of_obj_.classroom_message_ : reinterpret_cast<::protobuf::MessageOfClassroom&>(::protobuf::_MessageOfClassroom_default_instance_); + return _internal_has_classroom_message() ? *message_of_obj_.classroom_message_ : reinterpret_cast<::protobuf::MessageOfClassroom&>(::protobuf::_MessageOfClassroom_default_instance_); } inline const ::protobuf::MessageOfClassroom& MessageOfObj::classroom_message() const { @@ -8246,8 +8139,8 @@ namespace protobuf if (_internal_has_classroom_message()) { clear_has_message_of_obj(); - ::protobuf::MessageOfClassroom* temp = _impl_.message_of_obj_.classroom_message_; - _impl_.message_of_obj_.classroom_message_ = nullptr; + ::protobuf::MessageOfClassroom* temp = message_of_obj_.classroom_message_; + message_of_obj_.classroom_message_ = nullptr; return temp; } else @@ -8261,7 +8154,7 @@ namespace protobuf if (classroom_message) { set_has_classroom_message(); - _impl_.message_of_obj_.classroom_message_ = classroom_message; + message_of_obj_.classroom_message_ = classroom_message; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf.MessageOfObj.classroom_message) } @@ -8271,9 +8164,9 @@ namespace protobuf { clear_message_of_obj(); set_has_classroom_message(); - _impl_.message_of_obj_.classroom_message_ = CreateMaybeMessage<::protobuf::MessageOfClassroom>(GetArenaForAllocation()); + message_of_obj_.classroom_message_ = CreateMaybeMessage<::protobuf::MessageOfClassroom>(GetArenaForAllocation()); } - return _impl_.message_of_obj_.classroom_message_; + return message_of_obj_.classroom_message_; } inline ::protobuf::MessageOfClassroom* MessageOfObj::mutable_classroom_message() { @@ -8293,7 +8186,7 @@ namespace protobuf } inline void MessageOfObj::set_has_door_message() { - _impl_._oneof_case_[0] = kDoorMessage; + _oneof_case_[0] = kDoorMessage; } inline void MessageOfObj::clear_door_message() { @@ -8301,7 +8194,7 @@ namespace protobuf { if (GetArenaForAllocation() == nullptr) { - delete _impl_.message_of_obj_.door_message_; + delete message_of_obj_.door_message_; } clear_has_message_of_obj(); } @@ -8312,12 +8205,12 @@ namespace protobuf if (_internal_has_door_message()) { clear_has_message_of_obj(); - ::protobuf::MessageOfDoor* temp = _impl_.message_of_obj_.door_message_; + ::protobuf::MessageOfDoor* temp = message_of_obj_.door_message_; if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.message_of_obj_.door_message_ = nullptr; + message_of_obj_.door_message_ = nullptr; return temp; } else @@ -8327,7 +8220,7 @@ namespace protobuf } inline const ::protobuf::MessageOfDoor& MessageOfObj::_internal_door_message() const { - return _internal_has_door_message() ? *_impl_.message_of_obj_.door_message_ : reinterpret_cast<::protobuf::MessageOfDoor&>(::protobuf::_MessageOfDoor_default_instance_); + return _internal_has_door_message() ? *message_of_obj_.door_message_ : reinterpret_cast<::protobuf::MessageOfDoor&>(::protobuf::_MessageOfDoor_default_instance_); } inline const ::protobuf::MessageOfDoor& MessageOfObj::door_message() const { @@ -8340,8 +8233,8 @@ namespace protobuf if (_internal_has_door_message()) { clear_has_message_of_obj(); - ::protobuf::MessageOfDoor* temp = _impl_.message_of_obj_.door_message_; - _impl_.message_of_obj_.door_message_ = nullptr; + ::protobuf::MessageOfDoor* temp = message_of_obj_.door_message_; + message_of_obj_.door_message_ = nullptr; return temp; } else @@ -8355,7 +8248,7 @@ namespace protobuf if (door_message) { set_has_door_message(); - _impl_.message_of_obj_.door_message_ = door_message; + message_of_obj_.door_message_ = door_message; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf.MessageOfObj.door_message) } @@ -8365,9 +8258,9 @@ namespace protobuf { clear_message_of_obj(); set_has_door_message(); - _impl_.message_of_obj_.door_message_ = CreateMaybeMessage<::protobuf::MessageOfDoor>(GetArenaForAllocation()); + message_of_obj_.door_message_ = CreateMaybeMessage<::protobuf::MessageOfDoor>(GetArenaForAllocation()); } - return _impl_.message_of_obj_.door_message_; + return message_of_obj_.door_message_; } inline ::protobuf::MessageOfDoor* MessageOfObj::mutable_door_message() { @@ -8387,7 +8280,7 @@ namespace protobuf } inline void MessageOfObj::set_has_gate_message() { - _impl_._oneof_case_[0] = kGateMessage; + _oneof_case_[0] = kGateMessage; } inline void MessageOfObj::clear_gate_message() { @@ -8395,7 +8288,7 @@ namespace protobuf { if (GetArenaForAllocation() == nullptr) { - delete _impl_.message_of_obj_.gate_message_; + delete message_of_obj_.gate_message_; } clear_has_message_of_obj(); } @@ -8406,12 +8299,12 @@ namespace protobuf if (_internal_has_gate_message()) { clear_has_message_of_obj(); - ::protobuf::MessageOfGate* temp = _impl_.message_of_obj_.gate_message_; + ::protobuf::MessageOfGate* temp = message_of_obj_.gate_message_; if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.message_of_obj_.gate_message_ = nullptr; + message_of_obj_.gate_message_ = nullptr; return temp; } else @@ -8421,7 +8314,7 @@ namespace protobuf } inline const ::protobuf::MessageOfGate& MessageOfObj::_internal_gate_message() const { - return _internal_has_gate_message() ? *_impl_.message_of_obj_.gate_message_ : reinterpret_cast<::protobuf::MessageOfGate&>(::protobuf::_MessageOfGate_default_instance_); + return _internal_has_gate_message() ? *message_of_obj_.gate_message_ : reinterpret_cast<::protobuf::MessageOfGate&>(::protobuf::_MessageOfGate_default_instance_); } inline const ::protobuf::MessageOfGate& MessageOfObj::gate_message() const { @@ -8434,8 +8327,8 @@ namespace protobuf if (_internal_has_gate_message()) { clear_has_message_of_obj(); - ::protobuf::MessageOfGate* temp = _impl_.message_of_obj_.gate_message_; - _impl_.message_of_obj_.gate_message_ = nullptr; + ::protobuf::MessageOfGate* temp = message_of_obj_.gate_message_; + message_of_obj_.gate_message_ = nullptr; return temp; } else @@ -8449,7 +8342,7 @@ namespace protobuf if (gate_message) { set_has_gate_message(); - _impl_.message_of_obj_.gate_message_ = gate_message; + message_of_obj_.gate_message_ = gate_message; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf.MessageOfObj.gate_message) } @@ -8459,9 +8352,9 @@ namespace protobuf { clear_message_of_obj(); set_has_gate_message(); - _impl_.message_of_obj_.gate_message_ = CreateMaybeMessage<::protobuf::MessageOfGate>(GetArenaForAllocation()); + message_of_obj_.gate_message_ = CreateMaybeMessage<::protobuf::MessageOfGate>(GetArenaForAllocation()); } - return _impl_.message_of_obj_.gate_message_; + return message_of_obj_.gate_message_; } inline ::protobuf::MessageOfGate* MessageOfObj::mutable_gate_message() { @@ -8481,7 +8374,7 @@ namespace protobuf } inline void MessageOfObj::set_has_chest_message() { - _impl_._oneof_case_[0] = kChestMessage; + _oneof_case_[0] = kChestMessage; } inline void MessageOfObj::clear_chest_message() { @@ -8489,7 +8382,7 @@ namespace protobuf { if (GetArenaForAllocation() == nullptr) { - delete _impl_.message_of_obj_.chest_message_; + delete message_of_obj_.chest_message_; } clear_has_message_of_obj(); } @@ -8500,12 +8393,12 @@ namespace protobuf if (_internal_has_chest_message()) { clear_has_message_of_obj(); - ::protobuf::MessageOfChest* temp = _impl_.message_of_obj_.chest_message_; + ::protobuf::MessageOfChest* temp = message_of_obj_.chest_message_; if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.message_of_obj_.chest_message_ = nullptr; + message_of_obj_.chest_message_ = nullptr; return temp; } else @@ -8515,7 +8408,7 @@ namespace protobuf } inline const ::protobuf::MessageOfChest& MessageOfObj::_internal_chest_message() const { - return _internal_has_chest_message() ? *_impl_.message_of_obj_.chest_message_ : reinterpret_cast<::protobuf::MessageOfChest&>(::protobuf::_MessageOfChest_default_instance_); + return _internal_has_chest_message() ? *message_of_obj_.chest_message_ : reinterpret_cast<::protobuf::MessageOfChest&>(::protobuf::_MessageOfChest_default_instance_); } inline const ::protobuf::MessageOfChest& MessageOfObj::chest_message() const { @@ -8528,8 +8421,8 @@ namespace protobuf if (_internal_has_chest_message()) { clear_has_message_of_obj(); - ::protobuf::MessageOfChest* temp = _impl_.message_of_obj_.chest_message_; - _impl_.message_of_obj_.chest_message_ = nullptr; + ::protobuf::MessageOfChest* temp = message_of_obj_.chest_message_; + message_of_obj_.chest_message_ = nullptr; return temp; } else @@ -8543,7 +8436,7 @@ namespace protobuf if (chest_message) { set_has_chest_message(); - _impl_.message_of_obj_.chest_message_ = chest_message; + message_of_obj_.chest_message_ = chest_message; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf.MessageOfObj.chest_message) } @@ -8553,9 +8446,9 @@ namespace protobuf { clear_message_of_obj(); set_has_chest_message(); - _impl_.message_of_obj_.chest_message_ = CreateMaybeMessage<::protobuf::MessageOfChest>(GetArenaForAllocation()); + message_of_obj_.chest_message_ = CreateMaybeMessage<::protobuf::MessageOfChest>(GetArenaForAllocation()); } - return _impl_.message_of_obj_.chest_message_; + return message_of_obj_.chest_message_; } inline ::protobuf::MessageOfChest* MessageOfObj::mutable_chest_message() { @@ -8575,7 +8468,7 @@ namespace protobuf } inline void MessageOfObj::set_has_hidden_gate_message() { - _impl_._oneof_case_[0] = kHiddenGateMessage; + _oneof_case_[0] = kHiddenGateMessage; } inline void MessageOfObj::clear_hidden_gate_message() { @@ -8583,7 +8476,7 @@ namespace protobuf { if (GetArenaForAllocation() == nullptr) { - delete _impl_.message_of_obj_.hidden_gate_message_; + delete message_of_obj_.hidden_gate_message_; } clear_has_message_of_obj(); } @@ -8594,12 +8487,12 @@ namespace protobuf if (_internal_has_hidden_gate_message()) { clear_has_message_of_obj(); - ::protobuf::MessageOfHiddenGate* temp = _impl_.message_of_obj_.hidden_gate_message_; + ::protobuf::MessageOfHiddenGate* temp = message_of_obj_.hidden_gate_message_; if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.message_of_obj_.hidden_gate_message_ = nullptr; + message_of_obj_.hidden_gate_message_ = nullptr; return temp; } else @@ -8609,7 +8502,7 @@ namespace protobuf } inline const ::protobuf::MessageOfHiddenGate& MessageOfObj::_internal_hidden_gate_message() const { - return _internal_has_hidden_gate_message() ? *_impl_.message_of_obj_.hidden_gate_message_ : reinterpret_cast<::protobuf::MessageOfHiddenGate&>(::protobuf::_MessageOfHiddenGate_default_instance_); + return _internal_has_hidden_gate_message() ? *message_of_obj_.hidden_gate_message_ : reinterpret_cast<::protobuf::MessageOfHiddenGate&>(::protobuf::_MessageOfHiddenGate_default_instance_); } inline const ::protobuf::MessageOfHiddenGate& MessageOfObj::hidden_gate_message() const { @@ -8622,8 +8515,8 @@ namespace protobuf if (_internal_has_hidden_gate_message()) { clear_has_message_of_obj(); - ::protobuf::MessageOfHiddenGate* temp = _impl_.message_of_obj_.hidden_gate_message_; - _impl_.message_of_obj_.hidden_gate_message_ = nullptr; + ::protobuf::MessageOfHiddenGate* temp = message_of_obj_.hidden_gate_message_; + message_of_obj_.hidden_gate_message_ = nullptr; return temp; } else @@ -8637,7 +8530,7 @@ namespace protobuf if (hidden_gate_message) { set_has_hidden_gate_message(); - _impl_.message_of_obj_.hidden_gate_message_ = hidden_gate_message; + message_of_obj_.hidden_gate_message_ = hidden_gate_message; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf.MessageOfObj.hidden_gate_message) } @@ -8647,9 +8540,9 @@ namespace protobuf { clear_message_of_obj(); set_has_hidden_gate_message(); - _impl_.message_of_obj_.hidden_gate_message_ = CreateMaybeMessage<::protobuf::MessageOfHiddenGate>(GetArenaForAllocation()); + message_of_obj_.hidden_gate_message_ = CreateMaybeMessage<::protobuf::MessageOfHiddenGate>(GetArenaForAllocation()); } - return _impl_.message_of_obj_.hidden_gate_message_; + return message_of_obj_.hidden_gate_message_; } inline ::protobuf::MessageOfHiddenGate* MessageOfObj::mutable_hidden_gate_message() { @@ -8669,7 +8562,7 @@ namespace protobuf } inline void MessageOfObj::set_has_news_message() { - _impl_._oneof_case_[0] = kNewsMessage; + _oneof_case_[0] = kNewsMessage; } inline void MessageOfObj::clear_news_message() { @@ -8677,7 +8570,7 @@ namespace protobuf { if (GetArenaForAllocation() == nullptr) { - delete _impl_.message_of_obj_.news_message_; + delete message_of_obj_.news_message_; } clear_has_message_of_obj(); } @@ -8688,12 +8581,12 @@ namespace protobuf if (_internal_has_news_message()) { clear_has_message_of_obj(); - ::protobuf::MessageOfNews* temp = _impl_.message_of_obj_.news_message_; + ::protobuf::MessageOfNews* temp = message_of_obj_.news_message_; if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.message_of_obj_.news_message_ = nullptr; + message_of_obj_.news_message_ = nullptr; return temp; } else @@ -8703,7 +8596,7 @@ namespace protobuf } inline const ::protobuf::MessageOfNews& MessageOfObj::_internal_news_message() const { - return _internal_has_news_message() ? *_impl_.message_of_obj_.news_message_ : reinterpret_cast<::protobuf::MessageOfNews&>(::protobuf::_MessageOfNews_default_instance_); + return _internal_has_news_message() ? *message_of_obj_.news_message_ : reinterpret_cast<::protobuf::MessageOfNews&>(::protobuf::_MessageOfNews_default_instance_); } inline const ::protobuf::MessageOfNews& MessageOfObj::news_message() const { @@ -8716,8 +8609,8 @@ namespace protobuf if (_internal_has_news_message()) { clear_has_message_of_obj(); - ::protobuf::MessageOfNews* temp = _impl_.message_of_obj_.news_message_; - _impl_.message_of_obj_.news_message_ = nullptr; + ::protobuf::MessageOfNews* temp = message_of_obj_.news_message_; + message_of_obj_.news_message_ = nullptr; return temp; } else @@ -8731,7 +8624,7 @@ namespace protobuf if (news_message) { set_has_news_message(); - _impl_.message_of_obj_.news_message_ = news_message; + message_of_obj_.news_message_ = news_message; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf.MessageOfObj.news_message) } @@ -8741,9 +8634,9 @@ namespace protobuf { clear_message_of_obj(); set_has_news_message(); - _impl_.message_of_obj_.news_message_ = CreateMaybeMessage<::protobuf::MessageOfNews>(GetArenaForAllocation()); + message_of_obj_.news_message_ = CreateMaybeMessage<::protobuf::MessageOfNews>(GetArenaForAllocation()); } - return _impl_.message_of_obj_.news_message_; + return message_of_obj_.news_message_; } inline ::protobuf::MessageOfNews* MessageOfObj::mutable_news_message() { @@ -8763,7 +8656,7 @@ namespace protobuf } inline void MessageOfObj::set_has_map_message() { - _impl_._oneof_case_[0] = kMapMessage; + _oneof_case_[0] = kMapMessage; } inline void MessageOfObj::clear_map_message() { @@ -8771,7 +8664,7 @@ namespace protobuf { if (GetArenaForAllocation() == nullptr) { - delete _impl_.message_of_obj_.map_message_; + delete message_of_obj_.map_message_; } clear_has_message_of_obj(); } @@ -8782,12 +8675,12 @@ namespace protobuf if (_internal_has_map_message()) { clear_has_message_of_obj(); - ::protobuf::MessageOfMap* temp = _impl_.message_of_obj_.map_message_; + ::protobuf::MessageOfMap* temp = message_of_obj_.map_message_; if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.message_of_obj_.map_message_ = nullptr; + message_of_obj_.map_message_ = nullptr; return temp; } else @@ -8797,7 +8690,7 @@ namespace protobuf } inline const ::protobuf::MessageOfMap& MessageOfObj::_internal_map_message() const { - return _internal_has_map_message() ? *_impl_.message_of_obj_.map_message_ : reinterpret_cast<::protobuf::MessageOfMap&>(::protobuf::_MessageOfMap_default_instance_); + return _internal_has_map_message() ? *message_of_obj_.map_message_ : reinterpret_cast<::protobuf::MessageOfMap&>(::protobuf::_MessageOfMap_default_instance_); } inline const ::protobuf::MessageOfMap& MessageOfObj::map_message() const { @@ -8810,8 +8703,8 @@ namespace protobuf if (_internal_has_map_message()) { clear_has_message_of_obj(); - ::protobuf::MessageOfMap* temp = _impl_.message_of_obj_.map_message_; - _impl_.message_of_obj_.map_message_ = nullptr; + ::protobuf::MessageOfMap* temp = message_of_obj_.map_message_; + message_of_obj_.map_message_ = nullptr; return temp; } else @@ -8825,7 +8718,7 @@ namespace protobuf if (map_message) { set_has_map_message(); - _impl_.message_of_obj_.map_message_ = map_message; + message_of_obj_.map_message_ = map_message; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf.MessageOfObj.map_message) } @@ -8835,9 +8728,9 @@ namespace protobuf { clear_message_of_obj(); set_has_map_message(); - _impl_.message_of_obj_.map_message_ = CreateMaybeMessage<::protobuf::MessageOfMap>(GetArenaForAllocation()); + message_of_obj_.map_message_ = CreateMaybeMessage<::protobuf::MessageOfMap>(GetArenaForAllocation()); } - return _impl_.message_of_obj_.map_message_; + return message_of_obj_.map_message_; } inline ::protobuf::MessageOfMap* MessageOfObj::mutable_map_message() { @@ -8852,11 +8745,11 @@ namespace protobuf } inline void MessageOfObj::clear_has_message_of_obj() { - _impl_._oneof_case_[0] = MESSAGE_OF_OBJ_NOT_SET; + _oneof_case_[0] = MESSAGE_OF_OBJ_NOT_SET; } inline MessageOfObj::MessageOfObjCase MessageOfObj::message_of_obj_case() const { - return MessageOfObj::MessageOfObjCase(_impl_._oneof_case_[0]); + return MessageOfObj::MessageOfObjCase(_oneof_case_[0]); } // ------------------------------------------------------------------- @@ -8865,11 +8758,11 @@ namespace protobuf // int32 game_time = 1; inline void MessageOfAll::clear_game_time() { - _impl_.game_time_ = 0; + game_time_ = 0; } inline int32_t MessageOfAll::_internal_game_time() const { - return _impl_.game_time_; + return game_time_; } inline int32_t MessageOfAll::game_time() const { @@ -8878,7 +8771,7 @@ namespace protobuf } inline void MessageOfAll::_internal_set_game_time(int32_t value) { - _impl_.game_time_ = value; + game_time_ = value; } inline void MessageOfAll::set_game_time(int32_t value) { @@ -8889,11 +8782,11 @@ namespace protobuf // int32 subject_finished = 2; inline void MessageOfAll::clear_subject_finished() { - _impl_.subject_finished_ = 0; + subject_finished_ = 0; } inline int32_t MessageOfAll::_internal_subject_finished() const { - return _impl_.subject_finished_; + return subject_finished_; } inline int32_t MessageOfAll::subject_finished() const { @@ -8902,7 +8795,7 @@ namespace protobuf } inline void MessageOfAll::_internal_set_subject_finished(int32_t value) { - _impl_.subject_finished_ = value; + subject_finished_ = value; } inline void MessageOfAll::set_subject_finished(int32_t value) { @@ -8913,11 +8806,11 @@ namespace protobuf // int32 student_graduated = 3; inline void MessageOfAll::clear_student_graduated() { - _impl_.student_graduated_ = 0; + student_graduated_ = 0; } inline int32_t MessageOfAll::_internal_student_graduated() const { - return _impl_.student_graduated_; + return student_graduated_; } inline int32_t MessageOfAll::student_graduated() const { @@ -8926,7 +8819,7 @@ namespace protobuf } inline void MessageOfAll::_internal_set_student_graduated(int32_t value) { - _impl_.student_graduated_ = value; + student_graduated_ = value; } inline void MessageOfAll::set_student_graduated(int32_t value) { @@ -8937,11 +8830,11 @@ namespace protobuf // int32 student_quited = 4; inline void MessageOfAll::clear_student_quited() { - _impl_.student_quited_ = 0; + student_quited_ = 0; } inline int32_t MessageOfAll::_internal_student_quited() const { - return _impl_.student_quited_; + return student_quited_; } inline int32_t MessageOfAll::student_quited() const { @@ -8950,7 +8843,7 @@ namespace protobuf } inline void MessageOfAll::_internal_set_student_quited(int32_t value) { - _impl_.student_quited_ = value; + student_quited_ = value; } inline void MessageOfAll::set_student_quited(int32_t value) { @@ -8961,11 +8854,11 @@ namespace protobuf // int32 student_score = 5; inline void MessageOfAll::clear_student_score() { - _impl_.student_score_ = 0; + student_score_ = 0; } inline int32_t MessageOfAll::_internal_student_score() const { - return _impl_.student_score_; + return student_score_; } inline int32_t MessageOfAll::student_score() const { @@ -8974,7 +8867,7 @@ namespace protobuf } inline void MessageOfAll::_internal_set_student_score(int32_t value) { - _impl_.student_score_ = value; + student_score_ = value; } inline void MessageOfAll::set_student_score(int32_t value) { @@ -8985,11 +8878,11 @@ namespace protobuf // int32 tricker_score = 6; inline void MessageOfAll::clear_tricker_score() { - _impl_.tricker_score_ = 0; + tricker_score_ = 0; } inline int32_t MessageOfAll::_internal_tricker_score() const { - return _impl_.tricker_score_; + return tricker_score_; } inline int32_t MessageOfAll::tricker_score() const { @@ -8998,7 +8891,7 @@ namespace protobuf } inline void MessageOfAll::_internal_set_tricker_score(int32_t value) { - _impl_.tricker_score_ = value; + tricker_score_ = value; } inline void MessageOfAll::set_tricker_score(int32_t value) { @@ -9013,7 +8906,7 @@ namespace protobuf // repeated .protobuf.MessageOfObj obj_message = 1; inline int MessageToClient::_internal_obj_message_size() const { - return _impl_.obj_message_.size(); + return obj_message_.size(); } inline int MessageToClient::obj_message_size() const { @@ -9021,22 +8914,22 @@ namespace protobuf } inline void MessageToClient::clear_obj_message() { - _impl_.obj_message_.Clear(); + obj_message_.Clear(); } inline ::protobuf::MessageOfObj* MessageToClient::mutable_obj_message(int index) { // @@protoc_insertion_point(field_mutable:protobuf.MessageToClient.obj_message) - return _impl_.obj_message_.Mutable(index); + return 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 &_impl_.obj_message_; + return &obj_message_; } inline const ::protobuf::MessageOfObj& MessageToClient::_internal_obj_message(int index) const { - return _impl_.obj_message_.Get(index); + return obj_message_.Get(index); } inline const ::protobuf::MessageOfObj& MessageToClient::obj_message(int index) const { @@ -9045,7 +8938,7 @@ namespace protobuf } inline ::protobuf::MessageOfObj* MessageToClient::_internal_add_obj_message() { - return _impl_.obj_message_.Add(); + return obj_message_.Add(); } inline ::protobuf::MessageOfObj* MessageToClient::add_obj_message() { @@ -9057,17 +8950,17 @@ namespace protobuf MessageToClient::obj_message() const { // @@protoc_insertion_point(field_list:protobuf.MessageToClient.obj_message) - return _impl_.obj_message_; + return obj_message_; } // .protobuf.GameState game_state = 2; inline void MessageToClient::clear_game_state() { - _impl_.game_state_ = 0; + game_state_ = 0; } inline ::protobuf::GameState MessageToClient::_internal_game_state() const { - return static_cast<::protobuf::GameState>(_impl_.game_state_); + return static_cast<::protobuf::GameState>(game_state_); } inline ::protobuf::GameState MessageToClient::game_state() const { @@ -9076,7 +8969,7 @@ namespace protobuf } inline void MessageToClient::_internal_set_game_state(::protobuf::GameState value) { - _impl_.game_state_ = value; + game_state_ = value; } inline void MessageToClient::set_game_state(::protobuf::GameState value) { @@ -9087,7 +8980,7 @@ namespace protobuf // .protobuf.MessageOfAll all_message = 3; inline bool MessageToClient::_internal_has_all_message() const { - return this != internal_default_instance() && _impl_.all_message_ != nullptr; + return this != internal_default_instance() && all_message_ != nullptr; } inline bool MessageToClient::has_all_message() const { @@ -9095,15 +8988,15 @@ namespace protobuf } inline void MessageToClient::clear_all_message() { - if (GetArenaForAllocation() == nullptr && _impl_.all_message_ != nullptr) + if (GetArenaForAllocation() == nullptr && all_message_ != nullptr) { - delete _impl_.all_message_; + delete all_message_; } - _impl_.all_message_ = nullptr; + all_message_ = nullptr; } inline const ::protobuf::MessageOfAll& MessageToClient::_internal_all_message() const { - const ::protobuf::MessageOfAll* p = _impl_.all_message_; + const ::protobuf::MessageOfAll* p = all_message_; return p != nullptr ? *p : reinterpret_cast(::protobuf::_MessageOfAll_default_instance_); } inline const ::protobuf::MessageOfAll& MessageToClient::all_message() const @@ -9117,9 +9010,9 @@ namespace protobuf { if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.all_message_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(all_message_); } - _impl_.all_message_ = all_message; + all_message_ = all_message; if (all_message) { } @@ -9130,8 +9023,8 @@ namespace protobuf } inline ::protobuf::MessageOfAll* MessageToClient::release_all_message() { - ::protobuf::MessageOfAll* temp = _impl_.all_message_; - _impl_.all_message_ = nullptr; + ::protobuf::MessageOfAll* temp = all_message_; + 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); @@ -9151,18 +9044,18 @@ namespace protobuf { // @@protoc_insertion_point(field_release:protobuf.MessageToClient.all_message) - ::protobuf::MessageOfAll* temp = _impl_.all_message_; - _impl_.all_message_ = nullptr; + ::protobuf::MessageOfAll* temp = all_message_; + all_message_ = nullptr; return temp; } inline ::protobuf::MessageOfAll* MessageToClient::_internal_mutable_all_message() { - if (_impl_.all_message_ == nullptr) + if (all_message_ == nullptr) { auto* p = CreateMaybeMessage<::protobuf::MessageOfAll>(GetArenaForAllocation()); - _impl_.all_message_ = p; + all_message_ = p; } - return _impl_.all_message_; + return all_message_; } inline ::protobuf::MessageOfAll* MessageToClient::mutable_all_message() { @@ -9175,12 +9068,12 @@ namespace protobuf ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete _impl_.all_message_; + delete all_message_; } if (all_message) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(all_message); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::protobuf::MessageOfAll>::GetOwningArena(all_message); if (message_arena != submessage_arena) { all_message = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( @@ -9191,7 +9084,7 @@ namespace protobuf else { } - _impl_.all_message_ = all_message; + all_message_ = all_message; // @@protoc_insertion_point(field_set_allocated:protobuf.MessageToClient.all_message) } @@ -9202,11 +9095,11 @@ namespace protobuf // int64 actual_speed = 1; inline void MoveRes::clear_actual_speed() { - _impl_.actual_speed_ = int64_t{0}; + actual_speed_ = int64_t{0}; } inline int64_t MoveRes::_internal_actual_speed() const { - return _impl_.actual_speed_; + return actual_speed_; } inline int64_t MoveRes::actual_speed() const { @@ -9215,7 +9108,7 @@ namespace protobuf } inline void MoveRes::_internal_set_actual_speed(int64_t value) { - _impl_.actual_speed_ = value; + actual_speed_ = value; } inline void MoveRes::set_actual_speed(int64_t value) { @@ -9226,11 +9119,11 @@ namespace protobuf // double actual_angle = 2; inline void MoveRes::clear_actual_angle() { - _impl_.actual_angle_ = 0; + actual_angle_ = 0; } inline double MoveRes::_internal_actual_angle() const { - return _impl_.actual_angle_; + return actual_angle_; } inline double MoveRes::actual_angle() const { @@ -9239,7 +9132,7 @@ namespace protobuf } inline void MoveRes::_internal_set_actual_angle(double value) { - _impl_.actual_angle_ = value; + actual_angle_ = value; } inline void MoveRes::set_actual_angle(double value) { @@ -9250,11 +9143,11 @@ namespace protobuf // bool act_success = 3; inline void MoveRes::clear_act_success() { - _impl_.act_success_ = false; + act_success_ = false; } inline bool MoveRes::_internal_act_success() const { - return _impl_.act_success_; + return act_success_; } inline bool MoveRes::act_success() const { @@ -9263,7 +9156,7 @@ namespace protobuf } inline void MoveRes::_internal_set_act_success(bool value) { - _impl_.act_success_ = value; + act_success_ = value; } inline void MoveRes::set_act_success(bool value) { @@ -9278,11 +9171,11 @@ namespace protobuf // bool act_success = 1; inline void BoolRes::clear_act_success() { - _impl_.act_success_ = false; + act_success_ = false; } inline bool BoolRes::_internal_act_success() const { - return _impl_.act_success_; + return act_success_; } inline bool BoolRes::act_success() const { @@ -9291,7 +9184,7 @@ namespace protobuf } inline void BoolRes::_internal_set_act_success(bool value) { - _impl_.act_success_ = value; + 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 e54b2cd..60620bb 100644 --- a/CAPI/cpp/proto/Message2Server.pb.cc +++ b/CAPI/cpp/proto/Message2Server.pb.cc @@ -16,23 +16,22 @@ #include PROTOBUF_PRAGMA_INIT_SEG - -namespace _pb = ::PROTOBUF_NAMESPACE_ID; -namespace _pbi = _pb::internal; - namespace protobuf { - PROTOBUF_CONSTEXPR PlayerMsg::PlayerMsg( - ::_pbi::ConstantInitialized + constexpr PlayerMsg::PlayerMsg( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized ) : - _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_)*/ {}} + player_id_(int64_t{0}), + player_type_(0) + + , + _oneof_case_{} { } struct PlayerMsgDefaultTypeInternal { - PROTOBUF_CONSTEXPR PlayerMsgDefaultTypeInternal() : - _instance(::_pbi::ConstantInitialized{}) + constexpr PlayerMsgDefaultTypeInternal() : + _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) { } ~PlayerMsgDefaultTypeInternal() @@ -43,18 +42,19 @@ namespace protobuf PlayerMsg _instance; }; }; - PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PlayerMsgDefaultTypeInternal _PlayerMsg_default_instance_; - PROTOBUF_CONSTEXPR MoveMsg::MoveMsg( - ::_pbi::ConstantInitialized + PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PlayerMsgDefaultTypeInternal _PlayerMsg_default_instance_; + constexpr MoveMsg::MoveMsg( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized ) : - _impl_{ - /*decltype(_impl_.player_id_)*/ int64_t{0}, /*decltype(_impl_.angle_)*/ 0, /*decltype(_impl_.time_in_milliseconds_)*/ int64_t{0}, /*decltype(_impl_._cached_size_)*/ {}} + player_id_(int64_t{0}), + angle_(0), + time_in_milliseconds_(int64_t{0}) { } struct MoveMsgDefaultTypeInternal { - PROTOBUF_CONSTEXPR MoveMsgDefaultTypeInternal() : - _instance(::_pbi::ConstantInitialized{}) + constexpr MoveMsgDefaultTypeInternal() : + _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) { } ~MoveMsgDefaultTypeInternal() @@ -65,18 +65,18 @@ namespace protobuf MoveMsg _instance; }; }; - PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MoveMsgDefaultTypeInternal _MoveMsg_default_instance_; - PROTOBUF_CONSTEXPR PropMsg::PropMsg( - ::_pbi::ConstantInitialized + PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MoveMsgDefaultTypeInternal _MoveMsg_default_instance_; + constexpr PropMsg::PropMsg( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized ) : - _impl_{ - /*decltype(_impl_.player_id_)*/ int64_t{0}, /*decltype(_impl_.prop_type_)*/ 0, /*decltype(_impl_._cached_size_)*/ {}} + player_id_(int64_t{0}), + prop_type_(0) { } struct PropMsgDefaultTypeInternal { - PROTOBUF_CONSTEXPR PropMsgDefaultTypeInternal() : - _instance(::_pbi::ConstantInitialized{}) + constexpr PropMsgDefaultTypeInternal() : + _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) { } ~PropMsgDefaultTypeInternal() @@ -87,18 +87,19 @@ namespace protobuf PropMsg _instance; }; }; - PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PropMsgDefaultTypeInternal _PropMsg_default_instance_; - PROTOBUF_CONSTEXPR SendMsg::SendMsg( - ::_pbi::ConstantInitialized + PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PropMsgDefaultTypeInternal _PropMsg_default_instance_; + constexpr SendMsg::SendMsg( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized ) : - _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_)*/ {}} + message_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string), + player_id_(int64_t{0}), + to_player_id_(int64_t{0}) { } struct SendMsgDefaultTypeInternal { - PROTOBUF_CONSTEXPR SendMsgDefaultTypeInternal() : - _instance(::_pbi::ConstantInitialized{}) + constexpr SendMsgDefaultTypeInternal() : + _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) { } ~SendMsgDefaultTypeInternal() @@ -109,18 +110,18 @@ namespace protobuf SendMsg _instance; }; }; - PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SendMsgDefaultTypeInternal _SendMsg_default_instance_; - PROTOBUF_CONSTEXPR AttackMsg::AttackMsg( - ::_pbi::ConstantInitialized + PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SendMsgDefaultTypeInternal _SendMsg_default_instance_; + constexpr AttackMsg::AttackMsg( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized ) : - _impl_{ - /*decltype(_impl_.player_id_)*/ int64_t{0}, /*decltype(_impl_.angle_)*/ 0, /*decltype(_impl_._cached_size_)*/ {}} + player_id_(int64_t{0}), + angle_(0) { } struct AttackMsgDefaultTypeInternal { - PROTOBUF_CONSTEXPR AttackMsgDefaultTypeInternal() : - _instance(::_pbi::ConstantInitialized{}) + constexpr AttackMsgDefaultTypeInternal() : + _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) { } ~AttackMsgDefaultTypeInternal() @@ -131,18 +132,17 @@ namespace protobuf AttackMsg _instance; }; }; - PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AttackMsgDefaultTypeInternal _AttackMsg_default_instance_; - PROTOBUF_CONSTEXPR IDMsg::IDMsg( - ::_pbi::ConstantInitialized + PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AttackMsgDefaultTypeInternal _AttackMsg_default_instance_; + constexpr IDMsg::IDMsg( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized ) : - _impl_{ - /*decltype(_impl_.player_id_)*/ int64_t{0}, /*decltype(_impl_._cached_size_)*/ {}} + player_id_(int64_t{0}) { } struct IDMsgDefaultTypeInternal { - PROTOBUF_CONSTEXPR IDMsgDefaultTypeInternal() : - _instance(::_pbi::ConstantInitialized{}) + constexpr IDMsgDefaultTypeInternal() : + _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) { } ~IDMsgDefaultTypeInternal() @@ -153,18 +153,18 @@ namespace protobuf IDMsg _instance; }; }; - PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IDMsgDefaultTypeInternal _IDMsg_default_instance_; - PROTOBUF_CONSTEXPR TreatAndRescueMsg::TreatAndRescueMsg( - ::_pbi::ConstantInitialized + PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT IDMsgDefaultTypeInternal _IDMsg_default_instance_; + constexpr TreatAndRescueMsg::TreatAndRescueMsg( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized ) : - _impl_{ - /*decltype(_impl_.player_id_)*/ int64_t{0}, /*decltype(_impl_.to_player_id_)*/ int64_t{0}, /*decltype(_impl_._cached_size_)*/ {}} + player_id_(int64_t{0}), + to_player_id_(int64_t{0}) { } struct TreatAndRescueMsgDefaultTypeInternal { - PROTOBUF_CONSTEXPR TreatAndRescueMsgDefaultTypeInternal() : - _instance(::_pbi::ConstantInitialized{}) + constexpr TreatAndRescueMsgDefaultTypeInternal() : + _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) { } ~TreatAndRescueMsgDefaultTypeInternal() @@ -175,18 +175,18 @@ namespace protobuf TreatAndRescueMsg _instance; }; }; - PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TreatAndRescueMsgDefaultTypeInternal _TreatAndRescueMsg_default_instance_; - PROTOBUF_CONSTEXPR SkillMsg::SkillMsg( - ::_pbi::ConstantInitialized + PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT TreatAndRescueMsgDefaultTypeInternal _TreatAndRescueMsg_default_instance_; + constexpr SkillMsg::SkillMsg( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized ) : - _impl_{ - /*decltype(_impl_.player_id_)*/ int64_t{0}, /*decltype(_impl_.skill_id_)*/ 0, /*decltype(_impl_._cached_size_)*/ {}} + player_id_(int64_t{0}), + skill_id_(0) { } struct SkillMsgDefaultTypeInternal { - PROTOBUF_CONSTEXPR SkillMsgDefaultTypeInternal() : - _instance(::_pbi::ConstantInitialized{}) + constexpr SkillMsgDefaultTypeInternal() : + _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) { } ~SkillMsgDefaultTypeInternal() @@ -197,83 +197,83 @@ namespace protobuf SkillMsg _instance; }; }; - PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SkillMsgDefaultTypeInternal _SkillMsg_default_instance_; + PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SkillMsgDefaultTypeInternal _SkillMsg_default_instance_; } // namespace protobuf -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; +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; 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, _impl_._oneof_case_[0]), + PROTOBUF_FIELD_OFFSET(::protobuf::PlayerMsg, _oneof_case_[0]), ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - 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_), + 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_), ~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, _impl_.player_id_), - PROTOBUF_FIELD_OFFSET(::protobuf::MoveMsg, _impl_.angle_), - PROTOBUF_FIELD_OFFSET(::protobuf::MoveMsg, _impl_.time_in_milliseconds_), + PROTOBUF_FIELD_OFFSET(::protobuf::MoveMsg, player_id_), + PROTOBUF_FIELD_OFFSET(::protobuf::MoveMsg, angle_), + PROTOBUF_FIELD_OFFSET(::protobuf::MoveMsg, 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, _impl_.player_id_), - PROTOBUF_FIELD_OFFSET(::protobuf::PropMsg, _impl_.prop_type_), + PROTOBUF_FIELD_OFFSET(::protobuf::PropMsg, player_id_), + PROTOBUF_FIELD_OFFSET(::protobuf::PropMsg, 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, _impl_.player_id_), - PROTOBUF_FIELD_OFFSET(::protobuf::SendMsg, _impl_.to_player_id_), - PROTOBUF_FIELD_OFFSET(::protobuf::SendMsg, _impl_.message_), + PROTOBUF_FIELD_OFFSET(::protobuf::SendMsg, player_id_), + PROTOBUF_FIELD_OFFSET(::protobuf::SendMsg, to_player_id_), + PROTOBUF_FIELD_OFFSET(::protobuf::SendMsg, 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, _impl_.player_id_), - PROTOBUF_FIELD_OFFSET(::protobuf::AttackMsg, _impl_.angle_), + PROTOBUF_FIELD_OFFSET(::protobuf::AttackMsg, player_id_), + PROTOBUF_FIELD_OFFSET(::protobuf::AttackMsg, 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, _impl_.player_id_), + PROTOBUF_FIELD_OFFSET(::protobuf::IDMsg, 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, _impl_.player_id_), - PROTOBUF_FIELD_OFFSET(::protobuf::TreatAndRescueMsg, _impl_.to_player_id_), + PROTOBUF_FIELD_OFFSET(::protobuf::TreatAndRescueMsg, player_id_), + PROTOBUF_FIELD_OFFSET(::protobuf::TreatAndRescueMsg, 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, _impl_.player_id_), - PROTOBUF_FIELD_OFFSET(::protobuf::SkillMsg, _impl_.skill_id_), + PROTOBUF_FIELD_OFFSET(::protobuf::SkillMsg, player_id_), + PROTOBUF_FIELD_OFFSET(::protobuf::SkillMsg, skill_id_), }; -static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { +static const ::PROTOBUF_NAMESPACE_ID::internal::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 ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode {60, -1, -1, sizeof(::protobuf::SkillMsg)}, }; -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, +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_), }; 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 ::_pbi::DescriptorTable* const descriptor_table_Message2Server_2eproto_deps[1] = { +static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable* const descriptor_table_Message2Server_2eproto_deps[1] = { &::descriptor_table_MessageType_2eproto, }; -static ::_pbi::once_flag descriptor_table_Message2Server_2eproto_once; -const ::_pbi::DescriptorTable descriptor_table_Message2Server_2eproto = { +static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_Message2Server_2eproto_once; +const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_Message2Server_2eproto = { false, false, 640, @@ -333,13 +333,13 @@ const ::_pbi::DescriptorTable descriptor_table_Message2Server_2eproto = { file_level_enum_descriptors_Message2Server_2eproto, file_level_service_descriptors_Message2Server_2eproto, }; -PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_Message2Server_2eproto_getter() +PROTOBUF_ATTRIBUTE_WEAK const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable* descriptor_table_Message2Server_2eproto_getter() { return &descriptor_table_Message2Server_2eproto; } // Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_Message2Server_2eproto(&descriptor_table_Message2Server_2eproto); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY static ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptorsRunner dynamic_init_dummy_Message2Server_2eproto(&descriptor_table_Message2Server_2eproto); namespace protobuf { @@ -353,30 +353,29 @@ namespace protobuf PlayerMsg::PlayerMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); + SharedCtor(); + if (!is_message_owned) + { + RegisterArenaDtor(arena); + } // @@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(&_impl_.player_id_, &from._impl_.player_id_, static_cast(reinterpret_cast(&_impl_.player_type_) - reinterpret_cast(&_impl_.player_id_)) + sizeof(_impl_.player_type_)); + ::memcpy(&player_id_, &from.player_id_, static_cast(reinterpret_cast(&player_type_) - reinterpret_cast(&player_id_)) + sizeof(player_type_)); clear_has_job_type(); switch (from.job_type_case()) { case kStudentType: { - _this->_internal_set_student_type(from._internal_student_type()); + _internal_set_student_type(from._internal_student_type()); break; } case kTrickerType: { - _this->_internal_set_tricker_type(from._internal_tricker_type()); + _internal_set_tricker_type(from._internal_tricker_type()); break; } case JOB_TYPE_NOT_SET: @@ -387,26 +386,19 @@ namespace protobuf // @@protoc_insertion_point(copy_constructor:protobuf.PlayerMsg) } - inline void PlayerMsg::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned - ) + inline void PlayerMsg::SharedCtor() { - (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_)*/ {}}; + ::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_)); clear_has_job_type(); } PlayerMsg::~PlayerMsg() { // @@protoc_insertion_point(destructor:protobuf.PlayerMsg) - if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) - { - (void)arena; + if (GetArenaForAllocation() != nullptr) return; - } SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void PlayerMsg::SharedDtor() @@ -418,9 +410,17 @@ 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 { - _impl_._cached_size_.Set(size); + _cached_size_.Set(size); } void PlayerMsg::clear_job_type() @@ -443,7 +443,7 @@ namespace protobuf break; } } - _impl_._oneof_case_[0] = JOB_TYPE_NOT_SET; + _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(&_impl_.player_id_, 0, static_cast(reinterpret_cast(&_impl_.player_type_) - reinterpret_cast(&_impl_.player_id_)) + sizeof(_impl_.player_type_)); + ::memset(&player_id_, 0, static_cast(reinterpret_cast(&player_type_) - reinterpret_cast(&player_id_)) + sizeof(player_type_)); clear_job_type(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - const char* PlayerMsg::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) + const char* PlayerMsg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) \ if (PROTOBUF_PREDICT_FALSE(!(x))) \ @@ -466,14 +466,14 @@ namespace protobuf while (!ctx->Done(&ptr)) { uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); switch (tag >> 3) { // int64 player_id = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _impl_.player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + 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 = ::_pbi::WireFormatLite::WriteInt64ToArray(1, this->_internal_player_id(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_player_id(), target); } // .protobuf.StudentType student_type = 2; if (_internal_has_student_type()) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( 2, this->_internal_student_type(), target ); } @@ -566,7 +566,7 @@ namespace protobuf if (_internal_has_tricker_type()) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::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 = ::_pbi::WireFormatLite::WriteEnumToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( 4, this->_internal_player_type(), target ); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::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 += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_player_id()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_player_id()); } // .protobuf.PlayerType player_type = 4; if (this->_internal_player_type() != 0) { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_player_type()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_player_type()); } switch (job_type_case()) @@ -618,14 +618,14 @@ namespace protobuf case kStudentType: { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_student_type()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_student_type()); break; } // .protobuf.TrickerType tricker_type = 3; case kTrickerType: { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_tricker_type()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_tricker_type()); break; } case JOB_TYPE_NOT_SET: @@ -633,44 +633,49 @@ namespace protobuf break; } } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PlayerMsg::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, PlayerMsg::MergeImpl}; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* PlayerMsg::GetClassData() const { return &_class_data_; } - void PlayerMsg::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) + 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) { - 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) { - _this->_internal_set_player_id(from._internal_player_id()); + _internal_set_player_id(from._internal_player_id()); } if (from._internal_player_type() != 0) { - _this->_internal_set_player_type(from._internal_player_type()); + _internal_set_player_type(from._internal_player_type()); } switch (from.job_type_case()) { case kStudentType: { - _this->_internal_set_student_type(from._internal_student_type()); + _internal_set_student_type(from._internal_student_type()); break; } case kTrickerType: { - _this->_internal_set_tricker_type(from._internal_tricker_type()); + _internal_set_tricker_type(from._internal_tricker_type()); break; } case JOB_TYPE_NOT_SET: @@ -678,7 +683,7 @@ namespace protobuf break; } } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void PlayerMsg::CopyFrom(const PlayerMsg& from) @@ -700,17 +705,17 @@ namespace protobuf using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - 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_) + 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_) ); - swap(_impl_.job_type_, other->_impl_.job_type_); - swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); + swap(job_type_, other->job_type_); + swap(_oneof_case_[0], other->_oneof_case_[0]); } ::PROTOBUF_NAMESPACE_ID::Metadata PlayerMsg::GetMetadata() const { - return ::_pbi::AssignDescriptors( + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( &descriptor_table_Message2Server_2eproto_getter, &descriptor_table_Message2Server_2eproto_once, file_level_metadata_Message2Server_2eproto[0] ); } @@ -725,41 +730,33 @@ namespace protobuf MoveMsg::MoveMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); + SharedCtor(); + if (!is_message_owned) + { + RegisterArenaDtor(arena); + } // @@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(&_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_)); + ::memcpy(&player_id_, &from.player_id_, static_cast(reinterpret_cast(&time_in_milliseconds_) - reinterpret_cast(&player_id_)) + sizeof(time_in_milliseconds_)); // @@protoc_insertion_point(copy_constructor:protobuf.MoveMsg) } - inline void MoveMsg::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned - ) + inline void MoveMsg::SharedCtor() { - (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_)*/ {}}; + ::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_)); } MoveMsg::~MoveMsg() { // @@protoc_insertion_point(destructor:protobuf.MoveMsg) - if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) - { - (void)arena; + if (GetArenaForAllocation() != nullptr) return; - } SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void MoveMsg::SharedDtor() @@ -767,9 +764,17 @@ 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 { - _impl_._cached_size_.Set(size); + _cached_size_.Set(size); } void MoveMsg::Clear() @@ -779,11 +784,11 @@ namespace protobuf // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; - ::memset(&_impl_.player_id_, 0, static_cast(reinterpret_cast(&_impl_.time_in_milliseconds_) - reinterpret_cast(&_impl_.player_id_)) + sizeof(_impl_.time_in_milliseconds_)); + ::memset(&player_id_, 0, static_cast(reinterpret_cast(&time_in_milliseconds_) - reinterpret_cast(&player_id_)) + sizeof(time_in_milliseconds_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - const char* MoveMsg::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) + const char* MoveMsg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) \ if (PROTOBUF_PREDICT_FALSE(!(x))) \ @@ -791,14 +796,14 @@ namespace protobuf while (!ctx->Done(&ptr)) { uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); switch (tag >> 3) { // int64 player_id = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _impl_.player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else @@ -808,7 +813,7 @@ namespace protobuf case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 17)) { - _impl_.angle_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + angle_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(double); } else @@ -818,7 +823,7 @@ namespace protobuf case 3: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - _impl_.time_in_milliseconds_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + time_in_milliseconds_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else @@ -862,7 +867,7 @@ namespace protobuf if (this->_internal_player_id() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt64ToArray(1, this->_internal_player_id(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_player_id(), target); } // double angle = 2; @@ -873,19 +878,19 @@ namespace protobuf if (raw_angle != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray(2, this->_internal_angle(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(2, this->_internal_angle(), target); } // int64 time_in_milliseconds = 3; if (this->_internal_time_in_milliseconds() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt64ToArray(3, this->_internal_time_in_milliseconds(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(3, this->_internal_time_in_milliseconds(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream ); } @@ -905,7 +910,7 @@ namespace protobuf // int64 player_id = 1; if (this->_internal_player_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_player_id()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_player_id()); } // double angle = 2; @@ -921,32 +926,37 @@ namespace protobuf // int64 time_in_milliseconds = 3; if (this->_internal_time_in_milliseconds() != 0) { - total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_time_in_milliseconds()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_time_in_milliseconds()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MoveMsg::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, MoveMsg::MergeImpl}; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MoveMsg::GetClassData() const { return &_class_data_; } - void MoveMsg::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) + 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) { - 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) { - _this->_internal_set_player_id(from._internal_player_id()); + _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(); @@ -954,13 +964,13 @@ namespace protobuf memcpy(&raw_angle, &tmp_angle, sizeof(tmp_angle)); if (raw_angle != 0) { - _this->_internal_set_angle(from._internal_angle()); + _internal_set_angle(from._internal_angle()); } if (from._internal_time_in_milliseconds() != 0) { - _this->_internal_set_time_in_milliseconds(from._internal_time_in_milliseconds()); + _internal_set_time_in_milliseconds(from._internal_time_in_milliseconds()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MoveMsg::CopyFrom(const MoveMsg& from) @@ -982,15 +992,15 @@ namespace protobuf using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - 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_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_NAMESPACE_ID::Metadata MoveMsg::GetMetadata() const { - return ::_pbi::AssignDescriptors( + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( &descriptor_table_Message2Server_2eproto_getter, &descriptor_table_Message2Server_2eproto_once, file_level_metadata_Message2Server_2eproto[1] ); } @@ -1005,41 +1015,33 @@ namespace protobuf PropMsg::PropMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); + SharedCtor(); + if (!is_message_owned) + { + RegisterArenaDtor(arena); + } // @@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(&_impl_.player_id_, &from._impl_.player_id_, static_cast(reinterpret_cast(&_impl_.prop_type_) - reinterpret_cast(&_impl_.player_id_)) + sizeof(_impl_.prop_type_)); + ::memcpy(&player_id_, &from.player_id_, static_cast(reinterpret_cast(&prop_type_) - reinterpret_cast(&player_id_)) + sizeof(prop_type_)); // @@protoc_insertion_point(copy_constructor:protobuf.PropMsg) } - inline void PropMsg::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned - ) + inline void PropMsg::SharedCtor() { - (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_)*/ {}}; + ::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_)); } PropMsg::~PropMsg() { // @@protoc_insertion_point(destructor:protobuf.PropMsg) - if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) - { - (void)arena; + if (GetArenaForAllocation() != nullptr) return; - } SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void PropMsg::SharedDtor() @@ -1047,9 +1049,17 @@ 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 { - _impl_._cached_size_.Set(size); + _cached_size_.Set(size); } void PropMsg::Clear() @@ -1059,11 +1069,11 @@ namespace protobuf // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; - ::memset(&_impl_.player_id_, 0, static_cast(reinterpret_cast(&_impl_.prop_type_) - reinterpret_cast(&_impl_.player_id_)) + sizeof(_impl_.prop_type_)); + ::memset(&player_id_, 0, static_cast(reinterpret_cast(&prop_type_) - reinterpret_cast(&player_id_)) + sizeof(prop_type_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - const char* PropMsg::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) + const char* PropMsg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) \ if (PROTOBUF_PREDICT_FALSE(!(x))) \ @@ -1071,14 +1081,14 @@ namespace protobuf while (!ctx->Done(&ptr)) { uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); switch (tag >> 3) { // int64 player_id = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _impl_.player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else @@ -1133,21 +1143,21 @@ namespace protobuf if (this->_internal_player_id() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt64ToArray(1, this->_internal_player_id(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_player_id(), target); } // .protobuf.PropType prop_type = 2; if (this->_internal_prop_type() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( 2, this->_internal_prop_type(), target ); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream ); } @@ -1167,45 +1177,50 @@ namespace protobuf // int64 player_id = 1; if (this->_internal_player_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_player_id()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_player_id()); } // .protobuf.PropType prop_type = 2; if (this->_internal_prop_type() != 0) { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_prop_type()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_prop_type()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PropMsg::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, PropMsg::MergeImpl}; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* PropMsg::GetClassData() const { return &_class_data_; } - void PropMsg::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) + 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) { - 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) { - _this->_internal_set_player_id(from._internal_player_id()); + _internal_set_player_id(from._internal_player_id()); } if (from._internal_prop_type() != 0) { - _this->_internal_set_prop_type(from._internal_prop_type()); + _internal_set_prop_type(from._internal_prop_type()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void PropMsg::CopyFrom(const PropMsg& from) @@ -1227,15 +1242,15 @@ namespace protobuf using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - 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_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_NAMESPACE_ID::Metadata PropMsg::GetMetadata() const { - return ::_pbi::AssignDescriptors( + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( &descriptor_table_Message2Server_2eproto_getter, &descriptor_table_Message2Server_2eproto_once, file_level_metadata_Message2Server_2eproto[2] ); } @@ -1250,64 +1265,64 @@ namespace protobuf SendMsg::SendMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); + SharedCtor(); + if (!is_message_owned) + { + RegisterArenaDtor(arena); + } // @@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_); - _impl_.message_.InitDefault(); + message_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.message_.Set("", GetArenaForAllocation()); + message_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_message().empty()) { - _this->_impl_.message_.Set(from._internal_message(), _this->GetArenaForAllocation()); + message_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_message(), GetArenaForAllocation()); } - ::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_)); + ::memcpy(&player_id_, &from.player_id_, static_cast(reinterpret_cast(&to_player_id_) - reinterpret_cast(&player_id_)) + sizeof(to_player_id_)); // @@protoc_insertion_point(copy_constructor:protobuf.SendMsg) } - inline void SendMsg::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned - ) + inline void SendMsg::SharedCtor() { - (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(); + message_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.message_.Set("", GetArenaForAllocation()); + message_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", 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 (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) - { - (void)arena; + if (GetArenaForAllocation() != nullptr) return; - } SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void SendMsg::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.message_.Destroy(); + message_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } + 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 { - _impl_._cached_size_.Set(size); + _cached_size_.Set(size); } void SendMsg::Clear() @@ -1317,12 +1332,12 @@ namespace protobuf // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; - _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_)); + message_.ClearToEmpty(); + ::memset(&player_id_, 0, static_cast(reinterpret_cast(&to_player_id_) - reinterpret_cast(&player_id_)) + sizeof(to_player_id_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - const char* SendMsg::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) + const char* SendMsg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) \ if (PROTOBUF_PREDICT_FALSE(!(x))) \ @@ -1330,14 +1345,14 @@ namespace protobuf while (!ctx->Done(&ptr)) { uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); switch (tag >> 3) { // int64 player_id = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _impl_.player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else @@ -1347,7 +1362,7 @@ namespace protobuf case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _impl_.to_player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + to_player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else @@ -1358,9 +1373,9 @@ namespace protobuf if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { auto str = _internal_mutable_message(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "protobuf.SendMsg.message")); CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "protobuf.SendMsg.message")); } else goto handle_unusual; @@ -1403,14 +1418,14 @@ namespace protobuf if (this->_internal_player_id() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt64ToArray(1, this->_internal_player_id(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::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 = ::_pbi::WireFormatLite::WriteInt64ToArray(2, this->_internal_to_player_id(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->_internal_to_player_id(), target); } // string message = 3; @@ -1426,7 +1441,7 @@ namespace protobuf if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream ); } @@ -1455,48 +1470,53 @@ namespace protobuf // int64 player_id = 1; if (this->_internal_player_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_player_id()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_player_id()); } // int64 to_player_id = 2; if (this->_internal_to_player_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_to_player_id()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_to_player_id()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SendMsg::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, SendMsg::MergeImpl}; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* SendMsg::GetClassData() const { return &_class_data_; } - void SendMsg::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) + 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) { - 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()) { - _this->_internal_set_message(from._internal_message()); + _internal_set_message(from._internal_message()); } if (from._internal_player_id() != 0) { - _this->_internal_set_player_id(from._internal_player_id()); + _internal_set_player_id(from._internal_player_id()); } if (from._internal_to_player_id() != 0) { - _this->_internal_set_to_player_id(from._internal_to_player_id()); + _internal_set_to_player_id(from._internal_to_player_id()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void SendMsg::CopyFrom(const SendMsg& from) @@ -1520,18 +1540,22 @@ namespace protobuf auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.message_, lhs_arena, &other->_impl_.message_, rhs_arena + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &message_, + lhs_arena, + &other->message_, + rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - 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_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_NAMESPACE_ID::Metadata SendMsg::GetMetadata() const { - return ::_pbi::AssignDescriptors( + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( &descriptor_table_Message2Server_2eproto_getter, &descriptor_table_Message2Server_2eproto_once, file_level_metadata_Message2Server_2eproto[3] ); } @@ -1546,41 +1570,33 @@ namespace protobuf AttackMsg::AttackMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); + SharedCtor(); + if (!is_message_owned) + { + RegisterArenaDtor(arena); + } // @@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(&_impl_.player_id_, &from._impl_.player_id_, static_cast(reinterpret_cast(&_impl_.angle_) - reinterpret_cast(&_impl_.player_id_)) + sizeof(_impl_.angle_)); + ::memcpy(&player_id_, &from.player_id_, static_cast(reinterpret_cast(&angle_) - reinterpret_cast(&player_id_)) + sizeof(angle_)); // @@protoc_insertion_point(copy_constructor:protobuf.AttackMsg) } - inline void AttackMsg::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned - ) + inline void AttackMsg::SharedCtor() { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_.player_id_){int64_t{0}}, decltype(_impl_.angle_){0}, /*decltype(_impl_._cached_size_)*/ {}}; + ::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_)); } AttackMsg::~AttackMsg() { // @@protoc_insertion_point(destructor:protobuf.AttackMsg) - if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) - { - (void)arena; + if (GetArenaForAllocation() != nullptr) return; - } SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void AttackMsg::SharedDtor() @@ -1588,9 +1604,17 @@ 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 { - _impl_._cached_size_.Set(size); + _cached_size_.Set(size); } void AttackMsg::Clear() @@ -1600,11 +1624,11 @@ namespace protobuf // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; - ::memset(&_impl_.player_id_, 0, static_cast(reinterpret_cast(&_impl_.angle_) - reinterpret_cast(&_impl_.player_id_)) + sizeof(_impl_.angle_)); + ::memset(&player_id_, 0, static_cast(reinterpret_cast(&angle_) - reinterpret_cast(&player_id_)) + sizeof(angle_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - const char* AttackMsg::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) + const char* AttackMsg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) \ if (PROTOBUF_PREDICT_FALSE(!(x))) \ @@ -1612,14 +1636,14 @@ namespace protobuf while (!ctx->Done(&ptr)) { uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); switch (tag >> 3) { // int64 player_id = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _impl_.player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else @@ -1629,7 +1653,7 @@ namespace protobuf case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 17)) { - _impl_.angle_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + angle_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(double); } else @@ -1673,7 +1697,7 @@ namespace protobuf if (this->_internal_player_id() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt64ToArray(1, this->_internal_player_id(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_player_id(), target); } // double angle = 2; @@ -1684,12 +1708,12 @@ namespace protobuf if (raw_angle != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray(2, this->_internal_angle(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(2, this->_internal_angle(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream ); } @@ -1709,7 +1733,7 @@ namespace protobuf // int64 player_id = 1; if (this->_internal_player_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_player_id()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_player_id()); } // double angle = 2; @@ -1722,29 +1746,34 @@ namespace protobuf total_size += 1 + 8; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AttackMsg::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, AttackMsg::MergeImpl}; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* AttackMsg::GetClassData() const { return &_class_data_; } - void AttackMsg::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) + 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) { - 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) { - _this->_internal_set_player_id(from._internal_player_id()); + _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(); @@ -1752,9 +1781,9 @@ namespace protobuf memcpy(&raw_angle, &tmp_angle, sizeof(tmp_angle)); if (raw_angle != 0) { - _this->_internal_set_angle(from._internal_angle()); + _internal_set_angle(from._internal_angle()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void AttackMsg::CopyFrom(const AttackMsg& from) @@ -1776,15 +1805,15 @@ namespace protobuf using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - 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_FIELD_OFFSET(AttackMsg, angle_) + sizeof(AttackMsg::angle_) - PROTOBUF_FIELD_OFFSET(AttackMsg, player_id_)>( + reinterpret_cast(&player_id_), + reinterpret_cast(&other->player_id_) ); } ::PROTOBUF_NAMESPACE_ID::Metadata AttackMsg::GetMetadata() const { - return ::_pbi::AssignDescriptors( + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( &descriptor_table_Message2Server_2eproto_getter, &descriptor_table_Message2Server_2eproto_once, file_level_metadata_Message2Server_2eproto[4] ); } @@ -1799,41 +1828,33 @@ namespace protobuf IDMsg::IDMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); + SharedCtor(); + if (!is_message_owned) + { + RegisterArenaDtor(arena); + } // @@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_); - _this->_impl_.player_id_ = from._impl_.player_id_; + player_id_ = from.player_id_; // @@protoc_insertion_point(copy_constructor:protobuf.IDMsg) } - inline void IDMsg::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned - ) + inline void IDMsg::SharedCtor() { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_.player_id_){int64_t{0}}, /*decltype(_impl_._cached_size_)*/ {}}; + player_id_ = int64_t{0}; } IDMsg::~IDMsg() { // @@protoc_insertion_point(destructor:protobuf.IDMsg) - if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) - { - (void)arena; + if (GetArenaForAllocation() != nullptr) return; - } SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void IDMsg::SharedDtor() @@ -1841,9 +1862,17 @@ 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 { - _impl_._cached_size_.Set(size); + _cached_size_.Set(size); } void IDMsg::Clear() @@ -1853,11 +1882,11 @@ namespace protobuf // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; - _impl_.player_id_ = int64_t{0}; + player_id_ = int64_t{0}; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - const char* IDMsg::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) + const char* IDMsg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) \ if (PROTOBUF_PREDICT_FALSE(!(x))) \ @@ -1865,14 +1894,14 @@ namespace protobuf while (!ctx->Done(&ptr)) { uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); switch (tag >> 3) { // int64 player_id = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _impl_.player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else @@ -1916,12 +1945,12 @@ namespace protobuf if (this->_internal_player_id() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt64ToArray(1, this->_internal_player_id(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_player_id(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream ); } @@ -1941,34 +1970,39 @@ namespace protobuf // int64 player_id = 1; if (this->_internal_player_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_player_id()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_player_id()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData IDMsg::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, IDMsg::MergeImpl}; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* IDMsg::GetClassData() const { return &_class_data_; } - void IDMsg::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) + 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) { - 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) { - _this->_internal_set_player_id(from._internal_player_id()); + _internal_set_player_id(from._internal_player_id()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void IDMsg::CopyFrom(const IDMsg& from) @@ -1989,12 +2023,12 @@ namespace protobuf { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.player_id_, other->_impl_.player_id_); + swap(player_id_, other->player_id_); } ::PROTOBUF_NAMESPACE_ID::Metadata IDMsg::GetMetadata() const { - return ::_pbi::AssignDescriptors( + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( &descriptor_table_Message2Server_2eproto_getter, &descriptor_table_Message2Server_2eproto_once, file_level_metadata_Message2Server_2eproto[5] ); } @@ -2009,41 +2043,33 @@ namespace protobuf TreatAndRescueMsg::TreatAndRescueMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); + SharedCtor(); + if (!is_message_owned) + { + RegisterArenaDtor(arena); + } // @@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(&_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_)); + ::memcpy(&player_id_, &from.player_id_, static_cast(reinterpret_cast(&to_player_id_) - reinterpret_cast(&player_id_)) + sizeof(to_player_id_)); // @@protoc_insertion_point(copy_constructor:protobuf.TreatAndRescueMsg) } - inline void TreatAndRescueMsg::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned - ) + inline void TreatAndRescueMsg::SharedCtor() { - (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_)*/ {}}; + ::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_)); } TreatAndRescueMsg::~TreatAndRescueMsg() { // @@protoc_insertion_point(destructor:protobuf.TreatAndRescueMsg) - if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) - { - (void)arena; + if (GetArenaForAllocation() != nullptr) return; - } SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void TreatAndRescueMsg::SharedDtor() @@ -2051,9 +2077,17 @@ 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 { - _impl_._cached_size_.Set(size); + _cached_size_.Set(size); } void TreatAndRescueMsg::Clear() @@ -2063,11 +2097,11 @@ namespace protobuf // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; - ::memset(&_impl_.player_id_, 0, static_cast(reinterpret_cast(&_impl_.to_player_id_) - reinterpret_cast(&_impl_.player_id_)) + sizeof(_impl_.to_player_id_)); + ::memset(&player_id_, 0, static_cast(reinterpret_cast(&to_player_id_) - reinterpret_cast(&player_id_)) + sizeof(to_player_id_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - const char* TreatAndRescueMsg::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) + const char* TreatAndRescueMsg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) \ if (PROTOBUF_PREDICT_FALSE(!(x))) \ @@ -2075,14 +2109,14 @@ namespace protobuf while (!ctx->Done(&ptr)) { uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); switch (tag >> 3) { // int64 player_id = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _impl_.player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else @@ -2092,7 +2126,7 @@ namespace protobuf case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _impl_.to_player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + to_player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else @@ -2136,19 +2170,19 @@ namespace protobuf if (this->_internal_player_id() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt64ToArray(1, this->_internal_player_id(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::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 = ::_pbi::WireFormatLite::WriteInt64ToArray(2, this->_internal_to_player_id(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->_internal_to_player_id(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream ); } @@ -2168,44 +2202,49 @@ namespace protobuf // int64 player_id = 1; if (this->_internal_player_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_player_id()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_player_id()); } // int64 to_player_id = 2; if (this->_internal_to_player_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_to_player_id()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_to_player_id()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData TreatAndRescueMsg::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, TreatAndRescueMsg::MergeImpl}; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* TreatAndRescueMsg::GetClassData() const { return &_class_data_; } - void TreatAndRescueMsg::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) + 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) { - 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) { - _this->_internal_set_player_id(from._internal_player_id()); + _internal_set_player_id(from._internal_player_id()); } if (from._internal_to_player_id() != 0) { - _this->_internal_set_to_player_id(from._internal_to_player_id()); + _internal_set_to_player_id(from._internal_to_player_id()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void TreatAndRescueMsg::CopyFrom(const TreatAndRescueMsg& from) @@ -2227,15 +2266,15 @@ namespace protobuf using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - 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_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_NAMESPACE_ID::Metadata TreatAndRescueMsg::GetMetadata() const { - return ::_pbi::AssignDescriptors( + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( &descriptor_table_Message2Server_2eproto_getter, &descriptor_table_Message2Server_2eproto_once, file_level_metadata_Message2Server_2eproto[6] ); } @@ -2250,41 +2289,33 @@ namespace protobuf SkillMsg::SkillMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); + SharedCtor(); + if (!is_message_owned) + { + RegisterArenaDtor(arena); + } // @@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(&_impl_.player_id_, &from._impl_.player_id_, static_cast(reinterpret_cast(&_impl_.skill_id_) - reinterpret_cast(&_impl_.player_id_)) + sizeof(_impl_.skill_id_)); + ::memcpy(&player_id_, &from.player_id_, static_cast(reinterpret_cast(&skill_id_) - reinterpret_cast(&player_id_)) + sizeof(skill_id_)); // @@protoc_insertion_point(copy_constructor:protobuf.SkillMsg) } - inline void SkillMsg::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned - ) + inline void SkillMsg::SharedCtor() { - (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_)*/ {}}; + ::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_)); } SkillMsg::~SkillMsg() { // @@protoc_insertion_point(destructor:protobuf.SkillMsg) - if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) - { - (void)arena; + if (GetArenaForAllocation() != nullptr) return; - } SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void SkillMsg::SharedDtor() @@ -2292,9 +2323,17 @@ 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 { - _impl_._cached_size_.Set(size); + _cached_size_.Set(size); } void SkillMsg::Clear() @@ -2304,11 +2343,11 @@ namespace protobuf // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; - ::memset(&_impl_.player_id_, 0, static_cast(reinterpret_cast(&_impl_.skill_id_) - reinterpret_cast(&_impl_.player_id_)) + sizeof(_impl_.skill_id_)); + ::memset(&player_id_, 0, static_cast(reinterpret_cast(&skill_id_) - reinterpret_cast(&player_id_)) + sizeof(skill_id_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - const char* SkillMsg::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) + const char* SkillMsg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) \ if (PROTOBUF_PREDICT_FALSE(!(x))) \ @@ -2316,14 +2355,14 @@ namespace protobuf while (!ctx->Done(&ptr)) { uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); switch (tag >> 3) { // int64 player_id = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _impl_.player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else @@ -2333,7 +2372,7 @@ namespace protobuf case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _impl_.skill_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + skill_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else @@ -2377,19 +2416,19 @@ namespace protobuf if (this->_internal_player_id() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt64ToArray(1, this->_internal_player_id(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_player_id(), target); } // int32 skill_id = 2; if (this->_internal_skill_id() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_skill_id(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_skill_id(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream ); } @@ -2409,44 +2448,49 @@ namespace protobuf // int64 player_id = 1; if (this->_internal_player_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_player_id()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_player_id()); } // int32 skill_id = 2; if (this->_internal_skill_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_skill_id()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_skill_id()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SkillMsg::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, SkillMsg::MergeImpl}; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* SkillMsg::GetClassData() const { return &_class_data_; } - void SkillMsg::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) + 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) { - 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) { - _this->_internal_set_player_id(from._internal_player_id()); + _internal_set_player_id(from._internal_player_id()); } if (from._internal_skill_id() != 0) { - _this->_internal_set_skill_id(from._internal_skill_id()); + _internal_set_skill_id(from._internal_skill_id()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void SkillMsg::CopyFrom(const SkillMsg& from) @@ -2468,15 +2512,15 @@ namespace protobuf using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - 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_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_NAMESPACE_ID::Metadata SkillMsg::GetMetadata() const { - return ::_pbi::AssignDescriptors( + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( &descriptor_table_Message2Server_2eproto_getter, &descriptor_table_Message2Server_2eproto_once, file_level_metadata_Message2Server_2eproto[7] ); } @@ -2485,50 +2529,42 @@ 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 1322b48..0836daf 100644 --- a/CAPI/cpp/proto/Message2Server.pb.h +++ b/CAPI/cpp/proto/Message2Server.pb.h @@ -8,12 +8,12 @@ #include #include -#if PROTOBUF_VERSION < 3021000 +#if PROTOBUF_VERSION < 3019000 #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 3021005 < PROTOBUF_MIN_PROTOC_VERSION +#if 3019004 < 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,6 +23,7 @@ #include #include #include +#include #include #include #include @@ -44,6 +45,11 @@ 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; @@ -106,7 +112,7 @@ namespace protobuf { } ~PlayerMsg() override; - explicit PROTOBUF_CONSTEXPR PlayerMsg(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit constexpr PlayerMsg(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); PlayerMsg(const PlayerMsg& from); PlayerMsg(PlayerMsg&& from) noexcept @@ -212,13 +218,10 @@ namespace protobuf using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const PlayerMsg& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const PlayerMsg& from) - { - PlayerMsg::MergeImpl(*this, from); - } + void MergeFrom(const PlayerMsg& from); private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; @@ -231,11 +234,11 @@ namespace protobuf ) const final; int GetCachedSize() const final { - return _impl_._cached_size_.Get(); + return _cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(PlayerMsg* other); @@ -250,6 +253,10 @@ 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; @@ -335,27 +342,21 @@ namespace protobuf friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - struct Impl_ + int64_t player_id_; + int player_type_; + union JobTypeUnion { - int64_t player_id_; - int player_type_; - union JobTypeUnion + constexpr JobTypeUnion() : + _constinit_{} { - 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_; - }; + } + ::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]; + friend struct ::TableStruct_Message2Server_2eproto; }; // ------------------------------------------------------------------- @@ -369,7 +370,7 @@ namespace protobuf { } ~MoveMsg() override; - explicit PROTOBUF_CONSTEXPR MoveMsg(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit constexpr MoveMsg(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); MoveMsg(const MoveMsg& from); MoveMsg(MoveMsg&& from) noexcept @@ -468,13 +469,10 @@ namespace protobuf using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const MoveMsg& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const MoveMsg& from) - { - MoveMsg::MergeImpl(*this, from); - } + void MergeFrom(const MoveMsg& from); private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; @@ -487,11 +485,11 @@ namespace protobuf ) const final; int GetCachedSize() const final { - return _impl_._cached_size_.Get(); + return _cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(MoveMsg* other); @@ -506,6 +504,10 @@ 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; @@ -561,17 +563,10 @@ namespace protobuf friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - struct Impl_ - { - int64_t player_id_; - double angle_; - int64_t time_in_milliseconds_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union - { - Impl_ _impl_; - }; + int64_t player_id_; + double angle_; + int64_t time_in_milliseconds_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_Message2Server_2eproto; }; // ------------------------------------------------------------------- @@ -585,7 +580,7 @@ namespace protobuf { } ~PropMsg() override; - explicit PROTOBUF_CONSTEXPR PropMsg(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit constexpr PropMsg(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); PropMsg(const PropMsg& from); PropMsg(PropMsg&& from) noexcept @@ -684,13 +679,10 @@ namespace protobuf using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const PropMsg& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const PropMsg& from) - { - PropMsg::MergeImpl(*this, from); - } + void MergeFrom(const PropMsg& from); private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; @@ -703,11 +695,11 @@ namespace protobuf ) const final; int GetCachedSize() const final { - return _impl_._cached_size_.Get(); + return _cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(PropMsg* other); @@ -722,6 +714,10 @@ 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; @@ -766,16 +762,9 @@ namespace protobuf friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - struct Impl_ - { - int64_t player_id_; - int prop_type_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union - { - Impl_ _impl_; - }; + int64_t player_id_; + int prop_type_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_Message2Server_2eproto; }; // ------------------------------------------------------------------- @@ -789,7 +778,7 @@ namespace protobuf { } ~SendMsg() override; - explicit PROTOBUF_CONSTEXPR SendMsg(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit constexpr SendMsg(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); SendMsg(const SendMsg& from); SendMsg(SendMsg&& from) noexcept @@ -888,13 +877,10 @@ namespace protobuf using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const SendMsg& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const SendMsg& from) - { - SendMsg::MergeImpl(*this, from); - } + void MergeFrom(const SendMsg& from); private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; @@ -907,11 +893,11 @@ namespace protobuf ) const final; int GetCachedSize() const final { - return _impl_._cached_size_.Get(); + return _cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(SendMsg* other); @@ -926,6 +912,10 @@ 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; @@ -986,17 +976,10 @@ namespace protobuf friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - 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_; - }; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr message_; + int64_t player_id_; + int64_t to_player_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_Message2Server_2eproto; }; // ------------------------------------------------------------------- @@ -1010,7 +993,7 @@ namespace protobuf { } ~AttackMsg() override; - explicit PROTOBUF_CONSTEXPR AttackMsg(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit constexpr AttackMsg(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); AttackMsg(const AttackMsg& from); AttackMsg(AttackMsg&& from) noexcept @@ -1109,13 +1092,10 @@ namespace protobuf using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const AttackMsg& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const AttackMsg& from) - { - AttackMsg::MergeImpl(*this, from); - } + void MergeFrom(const AttackMsg& from); private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; @@ -1128,11 +1108,11 @@ namespace protobuf ) const final; int GetCachedSize() const final { - return _impl_._cached_size_.Get(); + return _cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(AttackMsg* other); @@ -1147,6 +1127,10 @@ 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; @@ -1191,16 +1175,9 @@ namespace protobuf friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - struct Impl_ - { - int64_t player_id_; - double angle_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union - { - Impl_ _impl_; - }; + int64_t player_id_; + double angle_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_Message2Server_2eproto; }; // ------------------------------------------------------------------- @@ -1214,7 +1191,7 @@ namespace protobuf { } ~IDMsg() override; - explicit PROTOBUF_CONSTEXPR IDMsg(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit constexpr IDMsg(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); IDMsg(const IDMsg& from); IDMsg(IDMsg&& from) noexcept @@ -1313,13 +1290,10 @@ namespace protobuf using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const IDMsg& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const IDMsg& from) - { - IDMsg::MergeImpl(*this, from); - } + void MergeFrom(const IDMsg& from); private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; @@ -1332,11 +1306,11 @@ namespace protobuf ) const final; int GetCachedSize() const final { - return _impl_._cached_size_.Get(); + return _cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(IDMsg* other); @@ -1351,6 +1325,10 @@ 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; @@ -1384,15 +1362,8 @@ namespace protobuf friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - struct Impl_ - { - int64_t player_id_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union - { - Impl_ _impl_; - }; + int64_t player_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_Message2Server_2eproto; }; // ------------------------------------------------------------------- @@ -1406,7 +1377,7 @@ namespace protobuf { } ~TreatAndRescueMsg() override; - explicit PROTOBUF_CONSTEXPR TreatAndRescueMsg(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit constexpr TreatAndRescueMsg(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); TreatAndRescueMsg(const TreatAndRescueMsg& from); TreatAndRescueMsg(TreatAndRescueMsg&& from) noexcept @@ -1505,13 +1476,10 @@ namespace protobuf using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const TreatAndRescueMsg& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const TreatAndRescueMsg& from) - { - TreatAndRescueMsg::MergeImpl(*this, from); - } + void MergeFrom(const TreatAndRescueMsg& from); private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; @@ -1524,11 +1492,11 @@ namespace protobuf ) const final; int GetCachedSize() const final { - return _impl_._cached_size_.Get(); + return _cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(TreatAndRescueMsg* other); @@ -1543,6 +1511,10 @@ 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; @@ -1587,16 +1559,9 @@ namespace protobuf friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - struct Impl_ - { - int64_t player_id_; - int64_t to_player_id_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union - { - Impl_ _impl_; - }; + int64_t player_id_; + int64_t to_player_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_Message2Server_2eproto; }; // ------------------------------------------------------------------- @@ -1610,7 +1575,7 @@ namespace protobuf { } ~SkillMsg() override; - explicit PROTOBUF_CONSTEXPR SkillMsg(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit constexpr SkillMsg(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); SkillMsg(const SkillMsg& from); SkillMsg(SkillMsg&& from) noexcept @@ -1709,13 +1674,10 @@ namespace protobuf using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const SkillMsg& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const SkillMsg& from) - { - SkillMsg::MergeImpl(*this, from); - } + void MergeFrom(const SkillMsg& from); private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; @@ -1728,11 +1690,11 @@ namespace protobuf ) const final; int GetCachedSize() const final { - return _impl_._cached_size_.Get(); + return _cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(SkillMsg* other); @@ -1747,6 +1709,10 @@ 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; @@ -1791,16 +1757,9 @@ namespace protobuf friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - struct Impl_ - { - int64_t player_id_; - int32_t skill_id_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union - { - Impl_ _impl_; - }; + int64_t player_id_; + int32_t skill_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_Message2Server_2eproto; }; // =================================================================== @@ -1816,11 +1775,11 @@ namespace protobuf // int64 player_id = 1; inline void PlayerMsg::clear_player_id() { - _impl_.player_id_ = int64_t{0}; + player_id_ = int64_t{0}; } inline int64_t PlayerMsg::_internal_player_id() const { - return _impl_.player_id_; + return player_id_; } inline int64_t PlayerMsg::player_id() const { @@ -1829,7 +1788,7 @@ namespace protobuf } inline void PlayerMsg::_internal_set_player_id(int64_t value) { - _impl_.player_id_ = value; + player_id_ = value; } inline void PlayerMsg::set_player_id(int64_t value) { @@ -1848,13 +1807,13 @@ namespace protobuf } inline void PlayerMsg::set_has_student_type() { - _impl_._oneof_case_[0] = kStudentType; + _oneof_case_[0] = kStudentType; } inline void PlayerMsg::clear_student_type() { if (_internal_has_student_type()) { - _impl_.job_type_.student_type_ = 0; + job_type_.student_type_ = 0; clear_has_job_type(); } } @@ -1862,7 +1821,7 @@ namespace protobuf { if (_internal_has_student_type()) { - return static_cast<::protobuf::StudentType>(_impl_.job_type_.student_type_); + return static_cast<::protobuf::StudentType>(job_type_.student_type_); } return static_cast<::protobuf::StudentType>(0); } @@ -1878,7 +1837,7 @@ namespace protobuf clear_job_type(); set_has_student_type(); } - _impl_.job_type_.student_type_ = value; + job_type_.student_type_ = value; } inline void PlayerMsg::set_student_type(::protobuf::StudentType value) { @@ -1897,13 +1856,13 @@ namespace protobuf } inline void PlayerMsg::set_has_tricker_type() { - _impl_._oneof_case_[0] = kTrickerType; + _oneof_case_[0] = kTrickerType; } inline void PlayerMsg::clear_tricker_type() { if (_internal_has_tricker_type()) { - _impl_.job_type_.tricker_type_ = 0; + job_type_.tricker_type_ = 0; clear_has_job_type(); } } @@ -1911,7 +1870,7 @@ namespace protobuf { if (_internal_has_tricker_type()) { - return static_cast<::protobuf::TrickerType>(_impl_.job_type_.tricker_type_); + return static_cast<::protobuf::TrickerType>(job_type_.tricker_type_); } return static_cast<::protobuf::TrickerType>(0); } @@ -1927,7 +1886,7 @@ namespace protobuf clear_job_type(); set_has_tricker_type(); } - _impl_.job_type_.tricker_type_ = value; + job_type_.tricker_type_ = value; } inline void PlayerMsg::set_tricker_type(::protobuf::TrickerType value) { @@ -1938,11 +1897,11 @@ namespace protobuf // .protobuf.PlayerType player_type = 4; inline void PlayerMsg::clear_player_type() { - _impl_.player_type_ = 0; + player_type_ = 0; } inline ::protobuf::PlayerType PlayerMsg::_internal_player_type() const { - return static_cast<::protobuf::PlayerType>(_impl_.player_type_); + return static_cast<::protobuf::PlayerType>(player_type_); } inline ::protobuf::PlayerType PlayerMsg::player_type() const { @@ -1951,7 +1910,7 @@ namespace protobuf } inline void PlayerMsg::_internal_set_player_type(::protobuf::PlayerType value) { - _impl_.player_type_ = value; + player_type_ = value; } inline void PlayerMsg::set_player_type(::protobuf::PlayerType value) { @@ -1965,11 +1924,11 @@ namespace protobuf } inline void PlayerMsg::clear_has_job_type() { - _impl_._oneof_case_[0] = JOB_TYPE_NOT_SET; + _oneof_case_[0] = JOB_TYPE_NOT_SET; } inline PlayerMsg::JobTypeCase PlayerMsg::job_type_case() const { - return PlayerMsg::JobTypeCase(_impl_._oneof_case_[0]); + return PlayerMsg::JobTypeCase(_oneof_case_[0]); } // ------------------------------------------------------------------- @@ -1978,11 +1937,11 @@ namespace protobuf // int64 player_id = 1; inline void MoveMsg::clear_player_id() { - _impl_.player_id_ = int64_t{0}; + player_id_ = int64_t{0}; } inline int64_t MoveMsg::_internal_player_id() const { - return _impl_.player_id_; + return player_id_; } inline int64_t MoveMsg::player_id() const { @@ -1991,7 +1950,7 @@ namespace protobuf } inline void MoveMsg::_internal_set_player_id(int64_t value) { - _impl_.player_id_ = value; + player_id_ = value; } inline void MoveMsg::set_player_id(int64_t value) { @@ -2002,11 +1961,11 @@ namespace protobuf // double angle = 2; inline void MoveMsg::clear_angle() { - _impl_.angle_ = 0; + angle_ = 0; } inline double MoveMsg::_internal_angle() const { - return _impl_.angle_; + return angle_; } inline double MoveMsg::angle() const { @@ -2015,7 +1974,7 @@ namespace protobuf } inline void MoveMsg::_internal_set_angle(double value) { - _impl_.angle_ = value; + angle_ = value; } inline void MoveMsg::set_angle(double value) { @@ -2026,11 +1985,11 @@ namespace protobuf // int64 time_in_milliseconds = 3; inline void MoveMsg::clear_time_in_milliseconds() { - _impl_.time_in_milliseconds_ = int64_t{0}; + time_in_milliseconds_ = int64_t{0}; } inline int64_t MoveMsg::_internal_time_in_milliseconds() const { - return _impl_.time_in_milliseconds_; + return time_in_milliseconds_; } inline int64_t MoveMsg::time_in_milliseconds() const { @@ -2039,7 +1998,7 @@ namespace protobuf } inline void MoveMsg::_internal_set_time_in_milliseconds(int64_t value) { - _impl_.time_in_milliseconds_ = value; + time_in_milliseconds_ = value; } inline void MoveMsg::set_time_in_milliseconds(int64_t value) { @@ -2054,11 +2013,11 @@ namespace protobuf // int64 player_id = 1; inline void PropMsg::clear_player_id() { - _impl_.player_id_ = int64_t{0}; + player_id_ = int64_t{0}; } inline int64_t PropMsg::_internal_player_id() const { - return _impl_.player_id_; + return player_id_; } inline int64_t PropMsg::player_id() const { @@ -2067,7 +2026,7 @@ namespace protobuf } inline void PropMsg::_internal_set_player_id(int64_t value) { - _impl_.player_id_ = value; + player_id_ = value; } inline void PropMsg::set_player_id(int64_t value) { @@ -2078,11 +2037,11 @@ namespace protobuf // .protobuf.PropType prop_type = 2; inline void PropMsg::clear_prop_type() { - _impl_.prop_type_ = 0; + prop_type_ = 0; } inline ::protobuf::PropType PropMsg::_internal_prop_type() const { - return static_cast<::protobuf::PropType>(_impl_.prop_type_); + return static_cast<::protobuf::PropType>(prop_type_); } inline ::protobuf::PropType PropMsg::prop_type() const { @@ -2091,7 +2050,7 @@ namespace protobuf } inline void PropMsg::_internal_set_prop_type(::protobuf::PropType value) { - _impl_.prop_type_ = value; + prop_type_ = value; } inline void PropMsg::set_prop_type(::protobuf::PropType value) { @@ -2106,11 +2065,11 @@ namespace protobuf // int64 player_id = 1; inline void SendMsg::clear_player_id() { - _impl_.player_id_ = int64_t{0}; + player_id_ = int64_t{0}; } inline int64_t SendMsg::_internal_player_id() const { - return _impl_.player_id_; + return player_id_; } inline int64_t SendMsg::player_id() const { @@ -2119,7 +2078,7 @@ namespace protobuf } inline void SendMsg::_internal_set_player_id(int64_t value) { - _impl_.player_id_ = value; + player_id_ = value; } inline void SendMsg::set_player_id(int64_t value) { @@ -2130,11 +2089,11 @@ namespace protobuf // int64 to_player_id = 2; inline void SendMsg::clear_to_player_id() { - _impl_.to_player_id_ = int64_t{0}; + to_player_id_ = int64_t{0}; } inline int64_t SendMsg::_internal_to_player_id() const { - return _impl_.to_player_id_; + return to_player_id_; } inline int64_t SendMsg::to_player_id() const { @@ -2143,7 +2102,7 @@ namespace protobuf } inline void SendMsg::_internal_set_to_player_id(int64_t value) { - _impl_.to_player_id_ = value; + to_player_id_ = value; } inline void SendMsg::set_to_player_id(int64_t value) { @@ -2154,7 +2113,7 @@ namespace protobuf // string message = 3; inline void SendMsg::clear_message() { - _impl_.message_.ClearToEmpty(); + message_.ClearToEmpty(); } inline const std::string& SendMsg::message() const { @@ -2164,7 +2123,7 @@ namespace protobuf template inline PROTOBUF_ALWAYS_INLINE void SendMsg::set_message(ArgT0&& arg0, ArgT... args) { - _impl_.message_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + message_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:protobuf.SendMsg.message) } inline std::string* SendMsg::mutable_message() @@ -2175,20 +2134,20 @@ namespace protobuf } inline const std::string& SendMsg::_internal_message() const { - return _impl_.message_.Get(); + return message_.Get(); } inline void SendMsg::_internal_set_message(const std::string& value) { - _impl_.message_.Set(value, GetArenaForAllocation()); + message_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* SendMsg::_internal_mutable_message() { - return _impl_.message_.Mutable(GetArenaForAllocation()); + return message_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* SendMsg::release_message() { // @@protoc_insertion_point(field_release:protobuf.SendMsg.message) - return _impl_.message_.Release(); + return message_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void SendMsg::set_allocated_message(std::string* message) { @@ -2198,11 +2157,11 @@ namespace protobuf else { } - _impl_.message_.SetAllocated(message, GetArenaForAllocation()); + message_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), message, GetArenaForAllocation()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.message_.IsDefault()) + if (message_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - _impl_.message_.Set("", GetArenaForAllocation()); + message_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:protobuf.SendMsg.message) @@ -2215,11 +2174,11 @@ namespace protobuf // int64 player_id = 1; inline void AttackMsg::clear_player_id() { - _impl_.player_id_ = int64_t{0}; + player_id_ = int64_t{0}; } inline int64_t AttackMsg::_internal_player_id() const { - return _impl_.player_id_; + return player_id_; } inline int64_t AttackMsg::player_id() const { @@ -2228,7 +2187,7 @@ namespace protobuf } inline void AttackMsg::_internal_set_player_id(int64_t value) { - _impl_.player_id_ = value; + player_id_ = value; } inline void AttackMsg::set_player_id(int64_t value) { @@ -2239,11 +2198,11 @@ namespace protobuf // double angle = 2; inline void AttackMsg::clear_angle() { - _impl_.angle_ = 0; + angle_ = 0; } inline double AttackMsg::_internal_angle() const { - return _impl_.angle_; + return angle_; } inline double AttackMsg::angle() const { @@ -2252,7 +2211,7 @@ namespace protobuf } inline void AttackMsg::_internal_set_angle(double value) { - _impl_.angle_ = value; + angle_ = value; } inline void AttackMsg::set_angle(double value) { @@ -2267,11 +2226,11 @@ namespace protobuf // int64 player_id = 1; inline void IDMsg::clear_player_id() { - _impl_.player_id_ = int64_t{0}; + player_id_ = int64_t{0}; } inline int64_t IDMsg::_internal_player_id() const { - return _impl_.player_id_; + return player_id_; } inline int64_t IDMsg::player_id() const { @@ -2280,7 +2239,7 @@ namespace protobuf } inline void IDMsg::_internal_set_player_id(int64_t value) { - _impl_.player_id_ = value; + player_id_ = value; } inline void IDMsg::set_player_id(int64_t value) { @@ -2295,11 +2254,11 @@ namespace protobuf // int64 player_id = 1; inline void TreatAndRescueMsg::clear_player_id() { - _impl_.player_id_ = int64_t{0}; + player_id_ = int64_t{0}; } inline int64_t TreatAndRescueMsg::_internal_player_id() const { - return _impl_.player_id_; + return player_id_; } inline int64_t TreatAndRescueMsg::player_id() const { @@ -2308,7 +2267,7 @@ namespace protobuf } inline void TreatAndRescueMsg::_internal_set_player_id(int64_t value) { - _impl_.player_id_ = value; + player_id_ = value; } inline void TreatAndRescueMsg::set_player_id(int64_t value) { @@ -2319,11 +2278,11 @@ namespace protobuf // int64 to_player_id = 2; inline void TreatAndRescueMsg::clear_to_player_id() { - _impl_.to_player_id_ = int64_t{0}; + to_player_id_ = int64_t{0}; } inline int64_t TreatAndRescueMsg::_internal_to_player_id() const { - return _impl_.to_player_id_; + return to_player_id_; } inline int64_t TreatAndRescueMsg::to_player_id() const { @@ -2332,7 +2291,7 @@ namespace protobuf } inline void TreatAndRescueMsg::_internal_set_to_player_id(int64_t value) { - _impl_.to_player_id_ = value; + to_player_id_ = value; } inline void TreatAndRescueMsg::set_to_player_id(int64_t value) { @@ -2347,11 +2306,11 @@ namespace protobuf // int64 player_id = 1; inline void SkillMsg::clear_player_id() { - _impl_.player_id_ = int64_t{0}; + player_id_ = int64_t{0}; } inline int64_t SkillMsg::_internal_player_id() const { - return _impl_.player_id_; + return player_id_; } inline int64_t SkillMsg::player_id() const { @@ -2360,7 +2319,7 @@ namespace protobuf } inline void SkillMsg::_internal_set_player_id(int64_t value) { - _impl_.player_id_ = value; + player_id_ = value; } inline void SkillMsg::set_player_id(int64_t value) { @@ -2371,11 +2330,11 @@ namespace protobuf // int32 skill_id = 2; inline void SkillMsg::clear_skill_id() { - _impl_.skill_id_ = 0; + skill_id_ = 0; } inline int32_t SkillMsg::_internal_skill_id() const { - return _impl_.skill_id_; + return skill_id_; } inline int32_t SkillMsg::skill_id() const { @@ -2384,7 +2343,7 @@ namespace protobuf } inline void SkillMsg::_internal_set_skill_id(int32_t value) { - _impl_.skill_id_ = value; + 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 83acf36..e0ba93e 100644 --- a/CAPI/cpp/proto/MessageType.pb.cc +++ b/CAPI/cpp/proto/MessageType.pb.cc @@ -16,18 +16,14 @@ #include PROTOBUF_PRAGMA_INIT_SEG - -namespace _pb = ::PROTOBUF_NAMESPACE_ID; -namespace _pbi = _pb::internal; - namespace protobuf { } // namespace protobuf -static const ::_pb::EnumDescriptor* file_level_enum_descriptors_MessageType_2eproto[11]; -static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_MessageType_2eproto = nullptr; +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; const uint32_t TableStruct_MessageType_2eproto::offsets[1] = {}; -static constexpr ::_pbi::MigrationSchema* schemas = nullptr; -static constexpr ::_pb::Message* const* file_default_instances = nullptr; +static constexpr ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema* schemas = nullptr; +static constexpr ::PROTOBUF_NAMESPACE_ID::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" @@ -67,8 +63,8 @@ const char descriptor_table_protodef_MessageType_2eproto[] PROTOBUF_SECTION_VARI "NOISY_PERSON\020\003\022\010\n\004IDOL\020\004*P\n\tGameState\022\023\n" "\017NULL_GAME_STATE\020\000\022\016\n\nGAME_START\020\001\022\020\n\014GA" "ME_RUNNING\020\002\022\014\n\010GAME_END\020\003b\006proto3"; -static ::_pbi::once_flag descriptor_table_MessageType_2eproto_once; -const ::_pbi::DescriptorTable descriptor_table_MessageType_2eproto = { +static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_MessageType_2eproto_once; +const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_MessageType_2eproto = { false, false, 1474, @@ -85,13 +81,13 @@ const ::_pbi::DescriptorTable descriptor_table_MessageType_2eproto = { file_level_enum_descriptors_MessageType_2eproto, file_level_service_descriptors_MessageType_2eproto, }; -PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_MessageType_2eproto_getter() +PROTOBUF_ATTRIBUTE_WEAK const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable* descriptor_table_MessageType_2eproto_getter() { return &descriptor_table_MessageType_2eproto; } // Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_MessageType_2eproto(&descriptor_table_MessageType_2eproto); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY static ::PROTOBUF_NAMESPACE_ID::internal::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 1de7f3b..e374be5 100644 --- a/CAPI/cpp/proto/MessageType.pb.h +++ b/CAPI/cpp/proto/MessageType.pb.h @@ -8,12 +8,12 @@ #include #include -#if PROTOBUF_VERSION < 3021000 +#if PROTOBUF_VERSION < 3019000 #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 3021005 < PROTOBUF_MIN_PROTOC_VERSION +#if 3019004 < 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,6 +23,7 @@ #include #include #include +#include #include #include #include @@ -42,6 +43,11 @@ 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 aa348ff..19ee898 100644 --- a/CAPI/cpp/proto/Services.pb.cc +++ b/CAPI/cpp/proto/Services.pb.cc @@ -16,18 +16,14 @@ #include PROTOBUF_PRAGMA_INIT_SEG - -namespace _pb = ::PROTOBUF_NAMESPACE_ID; -namespace _pbi = _pb::internal; - namespace protobuf { } // namespace protobuf -static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_Services_2eproto = nullptr; -static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_Services_2eproto = nullptr; +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; const uint32_t TableStruct_Services_2eproto::offsets[1] = {}; -static constexpr ::_pbi::MigrationSchema* schemas = nullptr; -static constexpr ::_pb::Message* const* file_default_instances = nullptr; +static constexpr ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema* schemas = nullptr; +static constexpr ::PROTOBUF_NAMESPACE_ID::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" @@ -58,12 +54,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 ::_pbi::DescriptorTable* const descriptor_table_Services_2eproto_deps[2] = { +static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable* const descriptor_table_Services_2eproto_deps[2] = { &::descriptor_table_Message2Clients_2eproto, &::descriptor_table_Message2Server_2eproto, }; -static ::_pbi::once_flag descriptor_table_Services_2eproto_once; -const ::_pbi::DescriptorTable descriptor_table_Services_2eproto = { +static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_Services_2eproto_once; +const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_Services_2eproto = { false, false, 1106, @@ -80,13 +76,13 @@ const ::_pbi::DescriptorTable descriptor_table_Services_2eproto = { file_level_enum_descriptors_Services_2eproto, file_level_service_descriptors_Services_2eproto, }; -PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_Services_2eproto_getter() +PROTOBUF_ATTRIBUTE_WEAK const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable* descriptor_table_Services_2eproto_getter() { return &descriptor_table_Services_2eproto; } // Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_Services_2eproto(&descriptor_table_Services_2eproto); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY static ::PROTOBUF_NAMESPACE_ID::internal::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 10d177e..7c26b0a 100644 --- a/CAPI/cpp/proto/Services.pb.h +++ b/CAPI/cpp/proto/Services.pb.h @@ -8,12 +8,12 @@ #include #include -#if PROTOBUF_VERSION < 3021000 +#if PROTOBUF_VERSION < 3019000 #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 3021005 < PROTOBUF_MIN_PROTOC_VERSION +#if 3019004 < 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,6 +23,7 @@ #include #include #include +#include #include #include #include @@ -43,6 +44,11 @@ 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/dependency/Dockerfile/Dockerfile b/dependency/Dockerfile/Dockerfile index 9425c22..a4f178a 100644 --- a/dependency/Dockerfile/Dockerfile +++ b/dependency/Dockerfile/Dockerfile @@ -8,31 +8,37 @@ RUN apt-get update && apt-get install --no-install-recommends -y gcc g++ make wg RUN git clone -b v1.46.3 --depth 1 --shallow-submodules https://gitee.com/mirrors/grpc.git RUN wget -P . https://cloud.tsinghua.edu.cn/f/1f2713efd9e44255abd6/?dl=1 RUN mv 'index.html?dl=1' third_party.tar.gz -RUN cd grpc +WORKDIR /usr/local/grpc RUN rm -rf third_party RUN mv ../third_party.tar.gz . RUN tar -zxvf third_party.tar.gz RUN mkdir -p cmake/build -RUN pushd cmake/build +WORKDIR /usr/local/grpc/cmake/build RUN cmake -DgRPC_INSTALL=ON \ -DgRPC_BUILD_TESTS=OFF \ ../.. RUN make -j$(nproc) RUN make install -RUN popd #安装protobuf -RUN cd /usr/local +WORKDIR /usr/local RUN git clone https://gitee.com/mirrors/protobuf_source.git ./protobuf -RUN cd protobuf -RUN git checkout 3.22.1 -RUN ./autogen.sh +WORKDIR /usr/local/protobuf +RUN git checkout 3.20.x +RUN ./autogen.sh RUN ./configure RUN make -j$(nproc) RUN make install RUN ldconfig +#RUN git submodule update --init --recursive +#RUN cmake . +#RUN cmake --build . --parallel 10 +#RUN make install -COPY ./README.md /usr/local/PlayerCode -RUN cd /usr/local/PlayerCode/CAPI -RUN cmake CMakeLists.txt +COPY ./CAPI /usr/local/PlayerCode/CAPI +COPY ./dependency /usr/local/PlayerCode/dependency +WORKDIR /usr/local/PlayerCode/dependency/proto +RUN ./cpp_output.sh +WORKDIR /usr/local/PlayerCode/CAPI/cpp +RUN cmake ./CMakeLists.txt RUN make diff --git a/installer/Installer/Model.cs b/installer/Installer/Model.cs index 6a3ae16..2b81827 100644 --- a/installer/Installer/Model.cs +++ b/installer/Installer/Model.cs @@ -292,8 +292,8 @@ namespace Downloader public static string dataPath = ""; // C盘的文档文件夹 public Data(string path) { - // dataPath = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments); - dataPath = new DirectoryInfo(".").FullName; + dataPath = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments); + //dataPath = new DirectoryInfo(".").FullName; Data.path = System.IO.Path.Combine(dataPath, "THUAI6.json"); if (File.Exists(Data.path)) { @@ -516,11 +516,14 @@ namespace Downloader Dictionary jsonDict = JsonConvert.DeserializeObject>(json); foreach (KeyValuePair pair in jsonDict) { - MD5 = GetFileMd5Hash(System.IO.Path.Combine(Data.FilePath, pair.Key)); - if (MD5.Length == 0) // 文档不存在 - newFileName.Add(pair.Key); - else if (MD5 != pair.Value) // MD5不匹配 - updateFileName.Add(pair.Key); + if (System.IO.Path.GetFileName(pair.Key) != "AI.cpp" && System.IO.Path.GetFileName(pair.)) + { + MD5 = GetFileMd5Hash(System.IO.Path.Combine(Data.FilePath, pair.Key)); + if (MD5.Length == 0) // 文档不存在 + newFileName.Add(pair.Key); + else if (MD5 != pair.Value) // MD5不匹配 + updateFileName.Add(pair.Key); + } } newFile = newFileName.Count; @@ -818,7 +821,7 @@ namespace Downloader } foreach (FileInfo file in player.GetFiles()) { - if (file.Name == "README.md") + if (file.Name == "AI.cpp" || file.Name == "AI.py") { continue; } @@ -1291,6 +1294,121 @@ namespace WebConnect Console.WriteLine("写入token.dat发生冲突!请检查token.dat是否被其它程序占用!"); } } + + public static int WriteUserEmail(string email) + { + try + { + string savepath = System.IO.Path.Combine(Data.dataPath, "THUAI6.json"); + FileStream fs = new FileStream(savepath, FileMode.Open, FileAccess.ReadWrite); + StreamReader sr = new StreamReader(fs); + string json = sr.ReadToEnd(); + if (json == null || json == "") + { + json += @"{""THUAI6""" + ":" + @"""2023""}"; + } + Dictionary dict = new Dictionary(); + dict = JsonConvert.DeserializeObject>(json); + if (!dict.ContainsKey("email")) + { + dict.Add("email", email); + } + else + { + dict["email"] = email; + } + sr.Close(); + StreamWriter sw = new StreamWriter(fs); + sw.WriteLine(JsonConvert.SerializeObject(dict)); + sw.Close(); + fs.Close(); + return 0;//成功 + } + catch + { + return -1;//失败 + } + } + + public static int WriteUserPassword(string password) + { + try + { + string savepath = System.IO.Path.Combine(Data.dataPath, "THUAI6.json"); + FileStream fs = new FileStream(savepath, FileMode.Open, FileAccess.ReadWrite); + StreamReader sr = new StreamReader(fs); + string json = sr.ReadToEnd(); + if (json == null || json == "") + { + json += @"{""THUAI6""" + ":" + @"""2023""}"; + } + Dictionary dict = new Dictionary(); + dict = JsonConvert.DeserializeObject>(json); + if (!dict.ContainsKey("password")) + { + dict.Add("password", password); + } + else + { + dict["password"] = password; + } + sr.Close(); + StreamWriter sw = new StreamWriter(fs); + sw.WriteLine(JsonConvert.SerializeObject(dict)); + sw.Close(); + fs.Close(); + return 0;//成功 + } + catch + { + return -1;//失败,THUAI6.json 文件不存在或者已被占用 + } + } + + public static string ReadUserPassword() + { + try + { + string savepath = System.IO.Path.Combine(Data.dataPath, "THUAI6.json"); + FileStream fs = new FileStream(savepath, FileMode.Open, FileAccess.Read); + StreamReader sr = new StreamReader(fs); + string json = sr.ReadToEnd(); + Dictionary dict = new Dictionary(); + if (json == null || json == "") + { + json += @"{""THUAI6""" + ":" + @"""2023""}"; + } + dict = JsonConvert.DeserializeObject>(json); + return dict["password"]; + + } + catch + { + return null; //文件不存在或者已被占用 + } + } + + public static string ReadUserEmail() + { + try + { + string savepath = System.IO.Path.Combine(Data.dataPath, "THUAI6.json"); + FileStream fs = new FileStream(savepath, FileMode.Open, FileAccess.Read); + StreamReader sr = new StreamReader(fs); + string json = sr.ReadToEnd(); + Dictionary dict = new Dictionary(); + if (json == null || json == "") + { + json += @"{""THUAI6""" + ":" + @"""2023""}"; + } + dict = JsonConvert.DeserializeObject>(json); + return dict["email"]; + } + catch + { + return null; + } + } public bool ReadToken() // 读取token { try diff --git a/installer/Installer/ViewModel.cs b/installer/Installer/ViewModel.cs index 2920207..bdd7136 100644 --- a/installer/Installer/ViewModel.cs +++ b/installer/Installer/ViewModel.cs @@ -558,7 +558,10 @@ namespace starter.viewmodel.settings { clickBackCommand = new BaseCommand(new Action(o => { - Status = SettingsModel.Status.login; + if (Downloader.Program.Tencent_cos_download.CheckAlreadyDownload()) + Status = SettingsModel.Status.login; + else + Status = SettingsModel.Status.newUser; })); } return clickBackCommand; @@ -657,6 +660,21 @@ namespace starter.viewmodel.settings return clickReselectCommand; } } + private BaseCommand clickExitCommand; + public BaseCommand ClickExitCommand + { + get + { + if (clickExitCommand == null) + { + clickExitCommand = new BaseCommand(new Action(o => + { + System.Windows.Application.Current.Shutdown(); + })); + } + return clickExitCommand; + } + } } } \ No newline at end of file From 8d5c552886793100dc07fb932acf0d60962b3d23 Mon Sep 17 00:00:00 2001 From: sendssf <2336526392@qq.com> Date: Sat, 15 Apr 2023 23:47:01 +0800 Subject: [PATCH 3/8] Chore: Delete Key --- installer/Installer/Model.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/installer/Installer/Model.cs b/installer/Installer/Model.cs index 2b81827..ad57f05 100644 --- a/installer/Installer/Model.cs +++ b/installer/Installer/Model.cs @@ -397,8 +397,8 @@ namespace Downloader .Build(); // 创建 CosXmlConfig 对象 // 永久密钥访问凭证 - string secretId = "AKIDvhEVXN4cv0ugIlFYiniV6Wk1McfkplYA"; //"云 API 密钥 SecretId"; - string secretKey = "YyGLGCJG4f5VsEUddnz9JSRPSSK8sYBo"; //"云 API 密钥 SecretKey"; + string secretId = "***"; //"云 API 密钥 SecretId"; + string secretKey = "***"; //"云 API 密钥 SecretKey"; long durationSecond = 1000; // 每次请求签名有效时长,单位为秒 From c98756b527262a41526c8dc45d39a5b67677a537 Mon Sep 17 00:00:00 2001 From: DragonAura Date: Sun, 16 Apr 2023 03:16:57 +0800 Subject: [PATCH 4/8] feat: :zap: change speed --- CAPI/cpp/API/include/constants.h | 12 ++++++------ CAPI/python/PyAPI/constants.py | 18 +++++++++--------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/CAPI/cpp/API/include/constants.h b/CAPI/cpp/API/include/constants.h index 7561eeb..a7f2d7c 100644 --- a/CAPI/cpp/API/include/constants.h +++ b/CAPI/cpp/API/include/constants.h @@ -37,8 +37,8 @@ namespace Constants SCCI int basicEncouragementDegree = 1500000; SCCI int basicTimeOfRouse = 1000; - SCCI int basicStudentSpeed = 1270; - SCCI int basicTrickerSpeed = 1504; + SCCI int basicStudentSpeed = 3000; + SCCI int basicTrickerSpeed = 3600; SCCI double basicConcealment = 1; SCCI int basicStudentAlertnessRadius = 15 * numOfGridPerCell; @@ -58,10 +58,10 @@ namespace Constants SCCI int basicRecoveryFromHit = 3700; // 基本命中攻击恢复时长 SCCI int basicStunnedTimeOfStudent = 4300; - SCCI int basicBulletMoveSpeed = 3700; // 基本子弹移动速度 - SCCI double basicRemoteAttackRange = 3000; // 基本远程攻击范围 - SCCI double basicAttackShortRange = 1100; // 基本近程攻击范围 - SCCI double basicBulletBombRange = 1000; // 基本子弹爆炸范围 + SCCI int basicBulletMoveSpeed = 7400; // 基本子弹移动速度 + SCCI double basicRemoteAttackRange = 6000; // 基本远程攻击范围 + SCCI double basicAttackShortRange = 2200; // 基本近程攻击范围 + SCCI double basicBulletBombRange = 2000; // 基本子弹爆炸范围 // 道具相关 diff --git a/CAPI/python/PyAPI/constants.py b/CAPI/python/PyAPI/constants.py index 0540469..7fea7cd 100644 --- a/CAPI/python/PyAPI/constants.py +++ b/CAPI/python/PyAPI/constants.py @@ -36,8 +36,8 @@ class Constants(NoInstance): basicEncouragementDegree = 1500000 basicTimeOfRouse = 1000 - basicStudentSpeed = 1270 - basicTrickerSpeed = 1504 + basicStudentSpeed = 3000 + basicTrickerSpeed = 3600 basicConcealment = 1.0 basicStudentAlertnessRadius = 15 * numOfGridPerCell @@ -57,10 +57,10 @@ class Constants(NoInstance): basicRecoveryFromHit = 3700 # 基本命中攻击恢复时长 basicStunnedTimeOfStudent = 4300 - basicBulletmoveSpeed = 3700 # 基本子弹移动速度 - basicRemoteAttackRange = 3000 # 基本远程攻击范围 - basicAttackShortRange = 1100 # 基本近程攻击范围 - basicBulletBombRange = 1000 # 基本子弹爆炸范围 + basicBulletmoveSpeed = 7400 # 基本子弹移动速度 + basicRemoteAttackRange = 6000 # 基本远程攻击范围 + basicAttackShortRange = 2200 # 基本近程攻击范围 + basicBulletBombRange = 2000 # 基本子弹爆炸范围 # 道具相关 @@ -84,10 +84,10 @@ class Constants(NoInstance): addedTimeOfSpeedWhenInspire = 1.6 timeOfAddingSpeedWhenInspire = 6000 - addHpWhenEncourage = basicHp / 4; + addHpWhenEncourage = basicHp / 4 - checkIntervalWhenShowTime = 200; - addAddictionPer100msWhenShowTime = 300; + checkIntervalWhenShowTime = 200 + addAddictionPer100msWhenShowTime = 300 class Assassin: From 50219e209d642ec9362a0e29c9f772c860b4dc1e Mon Sep 17 00:00:00 2001 From: DragonAura Date: Sun, 16 Apr 2023 03:19:27 +0800 Subject: [PATCH 5/8] feat: :zap: add climb window speed --- CAPI/cpp/API/include/constants.h | 4 ++-- CAPI/python/PyAPI/constants.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CAPI/cpp/API/include/constants.h b/CAPI/cpp/API/include/constants.h index a7f2d7c..e544fc7 100644 --- a/CAPI/cpp/API/include/constants.h +++ b/CAPI/cpp/API/include/constants.h @@ -28,8 +28,8 @@ namespace Constants SCCI int basicEncourageSpeed = 100; SCCI int basicFixSpeed = 123; SCCI int basicSpeedOfOpeningOrLocking = 4000; - SCCI int basicStudentSpeedOfClimbingThroughWindows = 611; - SCCI int basicTrickerSpeedOfClimbingThroughWindows = 1270; + SCCI int basicStudentSpeedOfClimbingThroughWindows = 1222; + SCCI int basicTrickerSpeedOfClimbingThroughWindows = 2540; SCCI int basicSpeedOfOpenChest = 1000; SCCI int basicHp = 3000000; diff --git a/CAPI/python/PyAPI/constants.py b/CAPI/python/PyAPI/constants.py index 7fea7cd..471e764 100644 --- a/CAPI/python/PyAPI/constants.py +++ b/CAPI/python/PyAPI/constants.py @@ -27,8 +27,8 @@ class Constants(NoInstance): basicEncourageSpeed = 100 basicLearnSpeed = 123 basicSpeedOfOpeningOrLocking = 4000 - basicStudentSpeedOfClimbingThroughWindows = 611 - basicTrickerSpeedOfClimbingThroughWindows = 1270 + basicStudentSpeedOfClimbingThroughWindows = 1222 + basicTrickerSpeedOfClimbingThroughWindows = 2540 basicSpeedOfOpenChest = 1000 basicHp = 3000000 From 60942f556c7c56b487f24201b7066c6b5b36db71 Mon Sep 17 00:00:00 2001 From: shangfengh <3495281661@qq.com> Date: Sun, 16 Apr 2023 03:21:56 +0800 Subject: [PATCH 6/8] build: :construction: edit GameData --- dependency/shell/publish.sh | 38 +++++++++++++++++++++++++++ logic/GameRules.md | 20 +++++++------- logic/Preparation/Utility/GameData.cs | 16 +++++------ 3 files changed, 56 insertions(+), 18 deletions(-) create mode 100644 dependency/shell/publish.sh diff --git a/dependency/shell/publish.sh b/dependency/shell/publish.sh new file mode 100644 index 0000000..2a8c775 --- /dev/null +++ b/dependency/shell/publish.sh @@ -0,0 +1,38 @@ +#! /bin/bash +workdir=/d/伤风/软件部/MyTHUAI6/THUAI6/logic +targetdir=/d/伤风/软件部/THUAI6-毕业吧少女 + +mkdir -p ${targetdir} + +pushd ${targetdir} +mkdir -p win/win64 +mkdir -p linux/linux64/ +mkdir -p win/win64/Debug/ +mkdir -p linux/linux64/Debug/ +popd + +pushd ${workdir} + +pushd Server/bin/Release/net6.0/linux-x64/publish +rm *.pdb +cp -rf * ${targetdir}/linux/linux64/ +popd + +pushd Server/bin/Debug/net6.0/linux-x64/publish +cp -rf * ${targetdir}/linux/linux64/Debug/ +popd + +pushd Server/bin/Debug/net6.0/win-x64/publish +cp -rf * ${targetdir}/win/win64/Debug/ +popd + +pushd Server/bin/Release/net6.0/win-x64/publish +rm *.pdb +cp -rf * ${targetdir}/win/win64/ +popd + +pushd Client/bin/Release/net6.0-windows/win-x64/publish +rm *.pdb +cp -rf * ${targetdir}/win/win64/ + +popd diff --git a/logic/GameRules.md b/logic/GameRules.md index 71a2f63..ad4373f 100644 --- a/logic/GameRules.md +++ b/logic/GameRules.md @@ -1,5 +1,5 @@ # 规则 -V4.7 +V4.8 - [规则](#规则) - [简则](#简则) - [地图](#地图) @@ -58,7 +58,7 @@ V4.7 ### 人物 - 人物半径为800 - 人物共有17种不可叠加的状态: -1. (可)移动状态Idel +1. (可)移动状态 Idel 2. 学习 Learning 3. 被勉励 Encouraged 4. 在勉励 Encouraging @@ -83,10 +83,10 @@ V4.7 | 攻击(子弹)类型 |搞蛋鬼的一般攻击CommonAttackOfGhost| 飞刀FlyingKnife | 蹦蹦炸弹BombBomb | 小炸弹JumpyDumpty | | :------------ | :--------------------- | :--------------------- | :--------------------- | :--------------------- | -| 子弹爆炸范围 | 0 | 0 | 1000 | 500 | -| 子弹攻击距离 | 1100 | 39000 | 1100 | 2200 | -| 攻击力 | 1500000 | 1200000 | 1,800,000 | 900000 | -| 移动速度/s | 3700 | 9250 | 3000 | 4300 | +| 子弹爆炸范围 | 0 | 0 | 2000 | 1000 | +| 子弹攻击距离 | 2200 | 78000 | 2200 | 4400 | +| 攻击力 | 1500000 | 1200000 | 1800000 | 900000 | +| 移动速度/s | 7400 | 18500 | 6000 | 8600 | | 前摇(ms) | 297 | 400 | 366 | - | |未攻击至目标时的后摇(ms)| 800 | 0 | 3700 | - | |攻击至目标时的后摇(ms)| 3700 | 0 | 3700 | - | @@ -176,12 +176,12 @@ V4.7 | 捣蛋鬼职业 | Assassin | Klee | 喧哗者ANoisyPerson | Idol | | :------------ | :--------------------- | :--------------------- | :--------------------- | :--------------------- | -| 移动速度/s | 1980 | 1800 | 1926 | 1,800 | +| 移动速度/s | 3960 | 3600 | 3852 | 3600 | | 隐蔽度 | 1.5 | 1 | 0.8 | 0.75| | 警戒范围 | 22,100 | 17000 | 15300 | 17000 | 视野范围 | 15600 | 13000 | 13000 | 14300| | 开锁门速度 | 4000 | 4000 | 4000 |4000 | -| 翻窗速度 | 1270 | 1270 | 1,397 | 1270| +| 翻窗速度 | 2540 | 2540 | 2794 | 2540| | 翻箱速度 | 1000 | 1100 | 1000 |1000| #### Assassin @@ -230,7 +230,7 @@ V4.7 | 学生职业 | 教师Teacher | 健身狂Athlete | 学霸StraightAStudent | 开心果Sunshine | | :------------ | :--------------------- | :--------------------- | :--------------------- | :--------------------- | -| 移动速度 | 1350 | 1575 | 1440 | 1500 | +| 移动速度 | 2700 | 3150 | 2880 | 3000 | | 最大毅力值 | 30000000 | 3000000 | 3300000 | 3200000 | | 最大沉迷度 | 600000 | 54,000 | 78,000 | 66,000 | | 学习一科速度 | 0 | 73 | 135 | 123 | @@ -239,7 +239,7 @@ V4.7 | 警戒范围 | 7500 | 15000 | 13,500 | 15000 | | 视野范围 | 9,000 | 11000 | 9,000 | 10000 | | 开锁门速度 | 4000 | 4000 | 4000 | 2800 | -| 翻窗速度 | 635 | 1,524 | 1,058 | 1270 | +| 翻窗速度 | 1270 | 3048 | 2116 | 2540 | | 翻箱速度 | 1000 | 1000 | 1000 | 900 | #### 运动员 diff --git a/logic/Preparation/Utility/GameData.cs b/logic/Preparation/Utility/GameData.cs index 78dade7..17aca10 100644 --- a/logic/Preparation/Utility/GameData.cs +++ b/logic/Preparation/Utility/GameData.cs @@ -93,8 +93,8 @@ namespace Preparation.Utility public const int basicTreatSpeed = 100; public const int basicFixSpeed = 123; public const int basicSpeedOfOpeningOrLocking = 4000; - public const int basicStudentSpeedOfClimbingThroughWindows = 611; - public const int basicGhostSpeedOfClimbingThroughWindows = 1270; + public const int basicStudentSpeedOfClimbingThroughWindows = 1222; + public const int basicGhostSpeedOfClimbingThroughWindows = 2540; public const int basicSpeedOfOpenChest = 1000; public const int basicHp = 3000000; // 初始血量 @@ -105,9 +105,9 @@ namespace Preparation.Utility public const int basicTimeOfRescue = 1000; #if DEBUG - public const int basicStudentMoveSpeed = 9000;// 基本移动速度,单位:s-1 + public const int basicStudentMoveSpeed = 3000;// 基本移动速度,单位:s-1 #else - public const int basicStudentMoveSpeed = 1500; + public const int basicStudentMoveSpeed = 3000; #endif public const int basicGhostMoveSpeed = (int)(basicStudentMoveSpeed * 1.2); @@ -200,10 +200,10 @@ namespace Preparation.Utility public const int basicRecoveryFromHit = 3700;//基本命中攻击恢复时长 public const int basicStunnedTimeOfStudent = 4300; - public const int basicBulletMoveSpeed = 3700; // 基本子弹移动速度,单位:s-1 - public const double basicRemoteAttackRange = 3000; // 基本远程攻击范围 - public const double basicAttackShortRange = 1100; // 基本近程攻击范围 - public const double basicBulletBombRange = 1000; // 基本子弹爆炸范围 + public const int basicBulletMoveSpeed = 7400; // 基本子弹移动速度,单位:s-1 + public const double basicRemoteAttackRange = 6000; // 基本远程攻击范围 + public const double basicAttackShortRange = 2200; // 基本近程攻击范围 + public const double basicBulletBombRange = 2000; // 基本子弹爆炸范围 #endregion #region 技能相关 public const int maxNumOfSkill = 3; From 8f16866b181fc6bc464113ed4e860394e530856f Mon Sep 17 00:00:00 2001 From: sendssf <2336526392@qq.com> Date: Sun, 16 Apr 2023 08:23:33 +0800 Subject: [PATCH 7/8] Chore: Fix Some Complier Bugs --- dependency/Dockerfile/{Dockerfile => Dockerfile_cpp} | 0 installer/Installer/Model.cs | 2 +- installer/Installer/ViewModel.cs | 1 + 3 files changed, 2 insertions(+), 1 deletion(-) rename dependency/Dockerfile/{Dockerfile => Dockerfile_cpp} (100%) diff --git a/dependency/Dockerfile/Dockerfile b/dependency/Dockerfile/Dockerfile_cpp similarity index 100% rename from dependency/Dockerfile/Dockerfile rename to dependency/Dockerfile/Dockerfile_cpp diff --git a/installer/Installer/Model.cs b/installer/Installer/Model.cs index ad57f05..d170c52 100644 --- a/installer/Installer/Model.cs +++ b/installer/Installer/Model.cs @@ -516,7 +516,7 @@ namespace Downloader Dictionary jsonDict = JsonConvert.DeserializeObject>(json); foreach (KeyValuePair pair in jsonDict) { - if (System.IO.Path.GetFileName(pair.Key) != "AI.cpp" && System.IO.Path.GetFileName(pair.)) + if (System.IO.Path.GetFileName(pair.Key) != "AI.cpp" && System.IO.Path.GetFileName(pair.Key) != "AI.py") { MD5 = GetFileMd5Hash(System.IO.Path.Combine(Data.FilePath, pair.Key)); if (MD5.Length == 0) // 文档不存在 diff --git a/installer/Installer/ViewModel.cs b/installer/Installer/ViewModel.cs index bdd7136..30beef4 100644 --- a/installer/Installer/ViewModel.cs +++ b/installer/Installer/ViewModel.cs @@ -19,6 +19,7 @@ namespace starter.viewmodel.settings /// /// initializer /// + public SettingsViewModel() { //Program.Tencent_cos_download.UpdateHash(); From d87c540d21d98e633015c74b0b396b14727af759 Mon Sep 17 00:00:00 2001 From: sendssf <2336526392@qq.com> Date: Sun, 16 Apr 2023 09:42:09 +0800 Subject: [PATCH 8/8] Chore: Fix Remember Secret Bug --- installer/Installer/Model.cs | 12 ++++++++---- installer/Installer/ViewModel.cs | 1 + 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/installer/Installer/Model.cs b/installer/Installer/Model.cs index d170c52..a3b2574 100644 --- a/installer/Installer/Model.cs +++ b/installer/Installer/Model.cs @@ -1318,10 +1318,12 @@ namespace WebConnect dict["email"] = email; } sr.Close(); - StreamWriter sw = new StreamWriter(fs); + fs.Close(); + FileStream fs2 = new FileStream(savepath, FileMode.Open, FileAccess.ReadWrite); + StreamWriter sw = new StreamWriter(fs2); sw.WriteLine(JsonConvert.SerializeObject(dict)); sw.Close(); - fs.Close(); + fs2.Close(); return 0;//成功 } catch @@ -1353,10 +1355,12 @@ namespace WebConnect dict["password"] = password; } sr.Close(); - StreamWriter sw = new StreamWriter(fs); + fs.Close(); + FileStream fs2 = new FileStream(savepath, FileMode.Open, FileAccess.ReadWrite); + StreamWriter sw = new StreamWriter(fs2); sw.WriteLine(JsonConvert.SerializeObject(dict)); sw.Close(); - fs.Close(); + fs2.Close(); return 0;//成功 } catch diff --git a/installer/Installer/ViewModel.cs b/installer/Installer/ViewModel.cs index 30beef4..3aabff0 100644 --- a/installer/Installer/ViewModel.cs +++ b/installer/Installer/ViewModel.cs @@ -23,6 +23,7 @@ namespace starter.viewmodel.settings public SettingsViewModel() { //Program.Tencent_cos_download.UpdateHash(); + //WebConnect.Web.WriteUserEmail("wangsk21@mails.tsinghua.edu.cn"); if (Downloader.Program.Tencent_cos_download.CheckAlreadyDownload()) { obj.checkUpdate();