diff --git a/CAPI/cpp/proto/Message2Clients.pb.cc b/CAPI/cpp/proto/Message2Clients.pb.cc old mode 100755 new mode 100644 index 4719d07d..da1b0063 --- a/CAPI/cpp/proto/Message2Clients.pb.cc +++ b/CAPI/cpp/proto/Message2Clients.pb.cc @@ -11,503 +11,544 @@ #include "google/protobuf/generated_message_reflection.h" #include "google/protobuf/reflection_ops.h" #include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" // @@protoc_insertion_point(includes) // Must be included last. #include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = ::PROTOBUF_NAMESPACE_ID::internal; namespace protobuf { - - inline constexpr MoveRes::Impl_::Impl_( + template + PROTOBUF_CONSTEXPR MessageOfShip::MessageOfShip( ::_pbi::ConstantInitialized - ) noexcept - : - actual_speed_{::int64_t{0}}, - actual_angle_{0}, - act_success_{false}, - _cached_size_{0} - { - } + ) : + _impl_{ + /*decltype(_impl_.x_)*/ 0 - template - PROTOBUF_CONSTEXPR MoveRes::MoveRes(::_pbi::ConstantInitialized) : - _impl_(::_pbi::ConstantInitialized()) + , + /*decltype(_impl_.y_)*/ 0 + + , + /*decltype(_impl_.speed_)*/ 0 + + , + /*decltype(_impl_.hp_)*/ 0 + + , + /*decltype(_impl_.armor_)*/ 0 + + , + /*decltype(_impl_.shield_)*/ 0 + + , + /*decltype(_impl_.team_id_)*/ ::int64_t{0} + + , + /*decltype(_impl_.player_id_)*/ ::int64_t{0} + + , + /*decltype(_impl_.guid_)*/ ::int64_t{0} + + , + /*decltype(_impl_.ship_state_)*/ 0 + + , + /*decltype(_impl_.ship_type_)*/ 0 + + , + /*decltype(_impl_.view_range_)*/ 0 + + , + /*decltype(_impl_.producer_type_)*/ 0 + + , + /*decltype(_impl_.constructor_type_)*/ 0 + + , + /*decltype(_impl_.armor_type_)*/ 0 + + , + /*decltype(_impl_.shield_type_)*/ 0 + + , + /*decltype(_impl_.weapon_type_)*/ 0 + + , + /*decltype(_impl_.facing_direction_)*/ 0 + + , + /*decltype(_impl_._cached_size_)*/ {}} { } - struct MoveResDefaultTypeInternal + struct MessageOfShipDefaultTypeInternal { - PROTOBUF_CONSTEXPR MoveResDefaultTypeInternal() : + PROTOBUF_CONSTEXPR MessageOfShipDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) { } - ~MoveResDefaultTypeInternal() + ~MessageOfShipDefaultTypeInternal() { } union { - MoveRes _instance; + MessageOfShip _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MoveResDefaultTypeInternal _MoveRes_default_instance_; - - inline constexpr MessageOfWormhole::Impl_::Impl_( + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfShipDefaultTypeInternal _MessageOfShip_default_instance_; + template + PROTOBUF_CONSTEXPR MessageOfBullet::MessageOfBullet( ::_pbi::ConstantInitialized - ) noexcept - : - x_{0}, - y_{0}, - hp_{0}, - _cached_size_{0} - { - } + ) : + _impl_{ + /*decltype(_impl_.type_)*/ 0 - template - PROTOBUF_CONSTEXPR MessageOfWormhole::MessageOfWormhole(::_pbi::ConstantInitialized) : - _impl_(::_pbi::ConstantInitialized()) + , + /*decltype(_impl_.x_)*/ 0 + + , + /*decltype(_impl_.facing_direction_)*/ 0 + + , + /*decltype(_impl_.y_)*/ 0 + + , + /*decltype(_impl_.damage_)*/ 0 + + , + /*decltype(_impl_.team_id_)*/ ::int64_t{0} + + , + /*decltype(_impl_.guid_)*/ ::int64_t{0} + + , + /*decltype(_impl_.bomb_range_)*/ 0 + + , + /*decltype(_impl_.speed_)*/ 0 + + , + /*decltype(_impl_._cached_size_)*/ {}} { } - struct MessageOfWormholeDefaultTypeInternal + struct MessageOfBulletDefaultTypeInternal { - PROTOBUF_CONSTEXPR MessageOfWormholeDefaultTypeInternal() : + PROTOBUF_CONSTEXPR MessageOfBulletDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) { } - ~MessageOfWormholeDefaultTypeInternal() + ~MessageOfBulletDefaultTypeInternal() { } union { - MessageOfWormhole _instance; + MessageOfBullet _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfWormholeDefaultTypeInternal _MessageOfWormhole_default_instance_; - - inline constexpr MessageOfTeam::Impl_::Impl_( + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfBulletDefaultTypeInternal _MessageOfBullet_default_instance_; + template + PROTOBUF_CONSTEXPR MessageOfBombedBullet::MessageOfBombedBullet( ::_pbi::ConstantInitialized - ) noexcept - : - team_id_{::int64_t{0}}, - player_id_{::int64_t{0}}, - score_{0}, - money_{0}, - _cached_size_{0} - { - } + ) : + _impl_{ + /*decltype(_impl_.type_)*/ 0 - template - PROTOBUF_CONSTEXPR MessageOfTeam::MessageOfTeam(::_pbi::ConstantInitialized) : - _impl_(::_pbi::ConstantInitialized()) + , + /*decltype(_impl_.x_)*/ 0 + + , + /*decltype(_impl_.facing_direction_)*/ 0 + + , + /*decltype(_impl_.mapping_id_)*/ ::int64_t{0} + + , + /*decltype(_impl_.bomb_range_)*/ 0 + + , + /*decltype(_impl_.y_)*/ 0 + + , + /*decltype(_impl_._cached_size_)*/ {}} { } - struct MessageOfTeamDefaultTypeInternal + struct MessageOfBombedBulletDefaultTypeInternal { - PROTOBUF_CONSTEXPR MessageOfTeamDefaultTypeInternal() : + PROTOBUF_CONSTEXPR MessageOfBombedBulletDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) { } - ~MessageOfTeamDefaultTypeInternal() + ~MessageOfBombedBulletDefaultTypeInternal() { } union { - MessageOfTeam _instance; + MessageOfBombedBullet _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfTeamDefaultTypeInternal _MessageOfTeam_default_instance_; - - inline constexpr MessageOfShip::Impl_::Impl_( + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfBombedBulletDefaultTypeInternal _MessageOfBombedBullet_default_instance_; + template + PROTOBUF_CONSTEXPR MessageOfFactory::MessageOfFactory( ::_pbi::ConstantInitialized - ) noexcept - : - x_{0}, - y_{0}, - speed_{0}, - hp_{0}, - armor_{0}, - shield_{0}, - team_id_{::int64_t{0}}, - player_id_{::int64_t{0}}, - guid_{::int64_t{0}}, - ship_state_{static_cast<::protobuf::ShipState>(0)}, - ship_type_{static_cast<::protobuf::ShipType>(0)}, - view_range_{0}, - producer_type_{static_cast<::protobuf::ProducerType>(0)}, - constructor_type_{static_cast<::protobuf::ConstructorType>(0)}, - armor_type_{static_cast<::protobuf::ArmorType>(0)}, - shield_type_{static_cast<::protobuf::ShieldType>(0)}, - weapon_type_{static_cast<::protobuf::WeaponType>(0)}, - facing_direction_{0}, - _cached_size_{0} - { - } + ) : + _impl_{ + /*decltype(_impl_.x_)*/ 0 - template - PROTOBUF_CONSTEXPR MessageOfShip::MessageOfShip(::_pbi::ConstantInitialized) : - _impl_(::_pbi::ConstantInitialized()) + , + /*decltype(_impl_.y_)*/ 0 + + , + /*decltype(_impl_.team_id_)*/ ::int64_t{0} + + , + /*decltype(_impl_.hp_)*/ 0 + + , + /*decltype(_impl_._cached_size_)*/ {}} { } - struct MessageOfShipDefaultTypeInternal + struct MessageOfFactoryDefaultTypeInternal { - PROTOBUF_CONSTEXPR MessageOfShipDefaultTypeInternal() : + PROTOBUF_CONSTEXPR MessageOfFactoryDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) { } - ~MessageOfShipDefaultTypeInternal() + ~MessageOfFactoryDefaultTypeInternal() { } union { - MessageOfShip _instance; + MessageOfFactory _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfShipDefaultTypeInternal _MessageOfShip_default_instance_; - - inline constexpr MessageOfResource::Impl_::Impl_( + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfFactoryDefaultTypeInternal _MessageOfFactory_default_instance_; + template + PROTOBUF_CONSTEXPR MessageOfCommunity::MessageOfCommunity( ::_pbi::ConstantInitialized - ) noexcept - : - x_{0}, - y_{0}, - progress_{0}, - _cached_size_{0} - { - } + ) : + _impl_{ + /*decltype(_impl_.x_)*/ 0 - template - PROTOBUF_CONSTEXPR MessageOfResource::MessageOfResource(::_pbi::ConstantInitialized) : - _impl_(::_pbi::ConstantInitialized()) + , + /*decltype(_impl_.y_)*/ 0 + + , + /*decltype(_impl_.team_id_)*/ ::int64_t{0} + + , + /*decltype(_impl_.hp_)*/ 0 + + , + /*decltype(_impl_._cached_size_)*/ {}} { } - struct MessageOfResourceDefaultTypeInternal + struct MessageOfCommunityDefaultTypeInternal { - PROTOBUF_CONSTEXPR MessageOfResourceDefaultTypeInternal() : + PROTOBUF_CONSTEXPR MessageOfCommunityDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) { } - ~MessageOfResourceDefaultTypeInternal() + ~MessageOfCommunityDefaultTypeInternal() { } union { - MessageOfResource _instance; + MessageOfCommunity _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfResourceDefaultTypeInternal _MessageOfResource_default_instance_; - - inline constexpr MessageOfNews::Impl_::Impl_( + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfCommunityDefaultTypeInternal _MessageOfCommunity_default_instance_; + template + PROTOBUF_CONSTEXPR MessageOfFort::MessageOfFort( ::_pbi::ConstantInitialized - ) noexcept - : - from_id_{::int64_t{0}}, - to_id_{::int64_t{0}}, - news_{}, - _cached_size_{0}, - _oneof_case_{} - { - } + ) : + _impl_{ + /*decltype(_impl_.x_)*/ 0 - template - PROTOBUF_CONSTEXPR MessageOfNews::MessageOfNews(::_pbi::ConstantInitialized) : - _impl_(::_pbi::ConstantInitialized()) + , + /*decltype(_impl_.y_)*/ 0 + + , + /*decltype(_impl_.team_id_)*/ ::int64_t{0} + + , + /*decltype(_impl_.hp_)*/ 0 + + , + /*decltype(_impl_._cached_size_)*/ {}} { } - struct MessageOfNewsDefaultTypeInternal + struct MessageOfFortDefaultTypeInternal { - PROTOBUF_CONSTEXPR MessageOfNewsDefaultTypeInternal() : + PROTOBUF_CONSTEXPR MessageOfFortDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) { } - ~MessageOfNewsDefaultTypeInternal() + ~MessageOfFortDefaultTypeInternal() { } union { - MessageOfNews _instance; + MessageOfFort _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfNewsDefaultTypeInternal _MessageOfNews_default_instance_; - - inline constexpr MessageOfMap_Row::Impl_::Impl_( + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfFortDefaultTypeInternal _MessageOfFort_default_instance_; + template + PROTOBUF_CONSTEXPR MessageOfWormhole::MessageOfWormhole( ::_pbi::ConstantInitialized - ) noexcept - : - cols_{}, - _cols_cached_byte_size_{0}, - _cached_size_{0} - { - } + ) : + _impl_{ + /*decltype(_impl_.x_)*/ 0 - template - PROTOBUF_CONSTEXPR MessageOfMap_Row::MessageOfMap_Row(::_pbi::ConstantInitialized) : - _impl_(::_pbi::ConstantInitialized()) + , + /*decltype(_impl_.y_)*/ 0 + + , + /*decltype(_impl_.hp_)*/ 0 + + , + /*decltype(_impl_._cached_size_)*/ {}} { } - struct MessageOfMap_RowDefaultTypeInternal + struct MessageOfWormholeDefaultTypeInternal { - PROTOBUF_CONSTEXPR MessageOfMap_RowDefaultTypeInternal() : + PROTOBUF_CONSTEXPR MessageOfWormholeDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) { } - ~MessageOfMap_RowDefaultTypeInternal() + ~MessageOfWormholeDefaultTypeInternal() { } union { - MessageOfMap_Row _instance; + MessageOfWormhole _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfMap_RowDefaultTypeInternal _MessageOfMap_Row_default_instance_; - - inline constexpr MessageOfHome::Impl_::Impl_( + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfWormholeDefaultTypeInternal _MessageOfWormhole_default_instance_; + template + PROTOBUF_CONSTEXPR MessageOfResource::MessageOfResource( ::_pbi::ConstantInitialized - ) noexcept - : - x_{0}, - y_{0}, - team_id_{::int64_t{0}}, - hp_{0}, - _cached_size_{0} - { - } + ) : + _impl_{ + /*decltype(_impl_.x_)*/ 0 - template - PROTOBUF_CONSTEXPR MessageOfHome::MessageOfHome(::_pbi::ConstantInitialized) : - _impl_(::_pbi::ConstantInitialized()) + , + /*decltype(_impl_.y_)*/ 0 + + , + /*decltype(_impl_.progress_)*/ 0 + + , + /*decltype(_impl_._cached_size_)*/ {}} { } - struct MessageOfHomeDefaultTypeInternal + struct MessageOfResourceDefaultTypeInternal { - PROTOBUF_CONSTEXPR MessageOfHomeDefaultTypeInternal() : + PROTOBUF_CONSTEXPR MessageOfResourceDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) { } - ~MessageOfHomeDefaultTypeInternal() + ~MessageOfResourceDefaultTypeInternal() { } union { - MessageOfHome _instance; + MessageOfResource _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfHomeDefaultTypeInternal _MessageOfHome_default_instance_; - - inline constexpr MessageOfFort::Impl_::Impl_( + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfResourceDefaultTypeInternal _MessageOfResource_default_instance_; + template + PROTOBUF_CONSTEXPR MessageOfHome::MessageOfHome( ::_pbi::ConstantInitialized - ) noexcept - : - x_{0}, - y_{0}, - team_id_{::int64_t{0}}, - hp_{0}, - _cached_size_{0} - { - } + ) : + _impl_{ + /*decltype(_impl_.x_)*/ 0 - template - PROTOBUF_CONSTEXPR MessageOfFort::MessageOfFort(::_pbi::ConstantInitialized) : - _impl_(::_pbi::ConstantInitialized()) + , + /*decltype(_impl_.y_)*/ 0 + + , + /*decltype(_impl_.team_id_)*/ ::int64_t{0} + + , + /*decltype(_impl_.hp_)*/ 0 + + , + /*decltype(_impl_._cached_size_)*/ {}} { } - struct MessageOfFortDefaultTypeInternal + struct MessageOfHomeDefaultTypeInternal { - PROTOBUF_CONSTEXPR MessageOfFortDefaultTypeInternal() : + PROTOBUF_CONSTEXPR MessageOfHomeDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) { } - ~MessageOfFortDefaultTypeInternal() + ~MessageOfHomeDefaultTypeInternal() { } union { - MessageOfFort _instance; + MessageOfHome _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfFortDefaultTypeInternal _MessageOfFort_default_instance_; - - inline constexpr MessageOfFactory::Impl_::Impl_( + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfHomeDefaultTypeInternal _MessageOfHome_default_instance_; + template + PROTOBUF_CONSTEXPR MessageOfMap_Row::MessageOfMap_Row( ::_pbi::ConstantInitialized - ) noexcept - : - x_{0}, - y_{0}, - team_id_{::int64_t{0}}, - hp_{0}, - _cached_size_{0} - { - } + ) : + _impl_{ + /*decltype(_impl_.cols_)*/ {}, /*decltype(_impl_._cols_cached_byte_size_)*/ {0} - template - PROTOBUF_CONSTEXPR MessageOfFactory::MessageOfFactory(::_pbi::ConstantInitialized) : - _impl_(::_pbi::ConstantInitialized()) + , + /*decltype(_impl_._cached_size_)*/ {}} { } - struct MessageOfFactoryDefaultTypeInternal + struct MessageOfMap_RowDefaultTypeInternal { - PROTOBUF_CONSTEXPR MessageOfFactoryDefaultTypeInternal() : + PROTOBUF_CONSTEXPR MessageOfMap_RowDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) { } - ~MessageOfFactoryDefaultTypeInternal() + ~MessageOfMap_RowDefaultTypeInternal() { } union { - MessageOfFactory _instance; + MessageOfMap_Row _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfFactoryDefaultTypeInternal _MessageOfFactory_default_instance_; - - inline constexpr MessageOfCommunity::Impl_::Impl_( + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfMap_RowDefaultTypeInternal _MessageOfMap_Row_default_instance_; + template + PROTOBUF_CONSTEXPR MessageOfMap::MessageOfMap( ::_pbi::ConstantInitialized - ) noexcept - : - x_{0}, - y_{0}, - team_id_{::int64_t{0}}, - hp_{0}, - _cached_size_{0} - { - } + ) : + _impl_{ + /*decltype(_impl_.rows_)*/ {}, /*decltype(_impl_.height_)*/ 0u - template - PROTOBUF_CONSTEXPR MessageOfCommunity::MessageOfCommunity(::_pbi::ConstantInitialized) : - _impl_(::_pbi::ConstantInitialized()) + , + /*decltype(_impl_.width_)*/ 0u + + , + /*decltype(_impl_._cached_size_)*/ {}} { } - struct MessageOfCommunityDefaultTypeInternal + struct MessageOfMapDefaultTypeInternal { - PROTOBUF_CONSTEXPR MessageOfCommunityDefaultTypeInternal() : + PROTOBUF_CONSTEXPR MessageOfMapDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) { } - ~MessageOfCommunityDefaultTypeInternal() + ~MessageOfMapDefaultTypeInternal() { } union { - MessageOfCommunity _instance; + MessageOfMap _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfCommunityDefaultTypeInternal _MessageOfCommunity_default_instance_; - - inline constexpr MessageOfBullet::Impl_::Impl_( + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfMapDefaultTypeInternal _MessageOfMap_default_instance_; + template + PROTOBUF_CONSTEXPR MessageOfTeam::MessageOfTeam( ::_pbi::ConstantInitialized - ) noexcept - : - type_{static_cast<::protobuf::BulletType>(0)}, - x_{0}, - facing_direction_{0}, - y_{0}, - damage_{0}, - team_id_{::int64_t{0}}, - guid_{::int64_t{0}}, - bomb_range_{0}, - speed_{0}, - _cached_size_{0} - { - } + ) : + _impl_{ + /*decltype(_impl_.team_id_)*/ ::int64_t{0} - template - PROTOBUF_CONSTEXPR MessageOfBullet::MessageOfBullet(::_pbi::ConstantInitialized) : - _impl_(::_pbi::ConstantInitialized()) + , + /*decltype(_impl_.player_id_)*/ ::int64_t{0} + + , + /*decltype(_impl_.score_)*/ 0 + + , + /*decltype(_impl_.money_)*/ 0 + + , + /*decltype(_impl_.guid_)*/ ::int64_t{0} + + , + /*decltype(_impl_._cached_size_)*/ {}} { } - struct MessageOfBulletDefaultTypeInternal + struct MessageOfTeamDefaultTypeInternal { - PROTOBUF_CONSTEXPR MessageOfBulletDefaultTypeInternal() : + PROTOBUF_CONSTEXPR MessageOfTeamDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) { } - ~MessageOfBulletDefaultTypeInternal() + ~MessageOfTeamDefaultTypeInternal() { } union { - MessageOfBullet _instance; + MessageOfTeam _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfBulletDefaultTypeInternal _MessageOfBullet_default_instance_; - - inline constexpr MessageOfBombedBullet::Impl_::Impl_( - ::_pbi::ConstantInitialized - ) noexcept - : - type_{static_cast<::protobuf::BulletType>(0)}, - x_{0}, - facing_direction_{0}, - mapping_id_{::int64_t{0}}, - bomb_range_{0}, - y_{0}, - _cached_size_{0} - { - } - + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfTeamDefaultTypeInternal _MessageOfTeam_default_instance_; template - PROTOBUF_CONSTEXPR MessageOfBombedBullet::MessageOfBombedBullet(::_pbi::ConstantInitialized) : - _impl_(::_pbi::ConstantInitialized()) + PROTOBUF_CONSTEXPR MessageOfObj::MessageOfObj( + ::_pbi::ConstantInitialized + ) : + _impl_{ + /*decltype(_impl_.message_of_obj_)*/ {}, /*decltype(_impl_._cached_size_)*/ {}, /*decltype(_impl_._oneof_case_)*/ {}} { } - struct MessageOfBombedBulletDefaultTypeInternal + struct MessageOfObjDefaultTypeInternal { - PROTOBUF_CONSTEXPR MessageOfBombedBulletDefaultTypeInternal() : + PROTOBUF_CONSTEXPR MessageOfObjDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) { } - ~MessageOfBombedBulletDefaultTypeInternal() + ~MessageOfObjDefaultTypeInternal() { } union { - MessageOfBombedBullet _instance; + MessageOfObj _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfBombedBulletDefaultTypeInternal _MessageOfBombedBullet_default_instance_; - - inline constexpr MessageOfAll::Impl_::Impl_( + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfObjDefaultTypeInternal _MessageOfObj_default_instance_; + template + PROTOBUF_CONSTEXPR MessageOfAll::MessageOfAll( ::_pbi::ConstantInitialized - ) noexcept - : - game_time_{0}, - red_team_score_{0}, - blue_team_score_{0}, - _cached_size_{0} - { - } + ) : + _impl_{ + /*decltype(_impl_.game_time_)*/ 0 - template - PROTOBUF_CONSTEXPR MessageOfAll::MessageOfAll(::_pbi::ConstantInitialized) : - _impl_(::_pbi::ConstantInitialized()) + , + /*decltype(_impl_.red_team_score_)*/ 0 + + , + /*decltype(_impl_.blue_team_score_)*/ 0 + + , + /*decltype(_impl_._cached_size_)*/ {}} { } struct MessageOfAllDefaultTypeInternal @@ -527,203 +568,179 @@ namespace protobuf PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfAllDefaultTypeInternal _MessageOfAll_default_instance_; - - inline constexpr EcoRes::Impl_::Impl_( - ::_pbi::ConstantInitialized - ) noexcept - : - economy_{::int64_t{0}}, - _cached_size_{0} - { - } - template - PROTOBUF_CONSTEXPR EcoRes::EcoRes(::_pbi::ConstantInitialized) : - _impl_(::_pbi::ConstantInitialized()) + PROTOBUF_CONSTEXPR MessageToClient::MessageToClient( + ::_pbi::ConstantInitialized + ) : + _impl_{ + /*decltype(_impl_._has_bits_)*/ {}, /*decltype(_impl_._cached_size_)*/ {}, /*decltype(_impl_.obj_message_)*/ {}, /*decltype(_impl_.all_message_)*/ nullptr, /*decltype(_impl_.game_state_)*/ 0} { } - struct EcoResDefaultTypeInternal + struct MessageToClientDefaultTypeInternal { - PROTOBUF_CONSTEXPR EcoResDefaultTypeInternal() : + PROTOBUF_CONSTEXPR MessageToClientDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) { } - ~EcoResDefaultTypeInternal() + ~MessageToClientDefaultTypeInternal() { } union { - EcoRes _instance; + MessageToClient _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EcoResDefaultTypeInternal _EcoRes_default_instance_; - - inline constexpr BoolRes::Impl_::Impl_( + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageToClientDefaultTypeInternal _MessageToClient_default_instance_; + template + PROTOBUF_CONSTEXPR MoveRes::MoveRes( ::_pbi::ConstantInitialized - ) noexcept - : - act_success_{false}, - _cached_size_{0} - { - } + ) : + _impl_{ + /*decltype(_impl_.actual_speed_)*/ ::int64_t{0} - template - PROTOBUF_CONSTEXPR BoolRes::BoolRes(::_pbi::ConstantInitialized) : - _impl_(::_pbi::ConstantInitialized()) + , + /*decltype(_impl_.actual_angle_)*/ 0 + + , + /*decltype(_impl_.act_success_)*/ false + + , + /*decltype(_impl_._cached_size_)*/ {}} { } - struct BoolResDefaultTypeInternal + struct MoveResDefaultTypeInternal { - PROTOBUF_CONSTEXPR BoolResDefaultTypeInternal() : + PROTOBUF_CONSTEXPR MoveResDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) { } - ~BoolResDefaultTypeInternal() + ~MoveResDefaultTypeInternal() { } union { - BoolRes _instance; + MoveRes _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BoolResDefaultTypeInternal _BoolRes_default_instance_; - - inline constexpr ShipInfoRes::Impl_::Impl_( + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MoveResDefaultTypeInternal _MoveRes_default_instance_; + template + PROTOBUF_CONSTEXPR BoolRes::BoolRes( ::_pbi::ConstantInitialized - ) noexcept - : - ship_info_{}, - _cached_size_{0} - { - } + ) : + _impl_{ + /*decltype(_impl_.act_success_)*/ false - template - PROTOBUF_CONSTEXPR ShipInfoRes::ShipInfoRes(::_pbi::ConstantInitialized) : - _impl_(::_pbi::ConstantInitialized()) + , + /*decltype(_impl_._cached_size_)*/ {}} { } - struct ShipInfoResDefaultTypeInternal + struct BoolResDefaultTypeInternal { - PROTOBUF_CONSTEXPR ShipInfoResDefaultTypeInternal() : + PROTOBUF_CONSTEXPR BoolResDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) { } - ~ShipInfoResDefaultTypeInternal() + ~BoolResDefaultTypeInternal() { } union { - ShipInfoRes _instance; + BoolRes _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ShipInfoResDefaultTypeInternal _ShipInfoRes_default_instance_; - - inline constexpr MessageOfMap::Impl_::Impl_( - ::_pbi::ConstantInitialized - ) noexcept - : - rows_{}, - height_{0u}, - width_{0u}, - _cached_size_{0} - { - } - + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BoolResDefaultTypeInternal _BoolRes_default_instance_; template - PROTOBUF_CONSTEXPR MessageOfMap::MessageOfMap(::_pbi::ConstantInitialized) : - _impl_(::_pbi::ConstantInitialized()) + PROTOBUF_CONSTEXPR ShipInfoRes::ShipInfoRes( + ::_pbi::ConstantInitialized + ) : + _impl_{ + /*decltype(_impl_.ship_info_)*/ {}, /*decltype(_impl_._cached_size_)*/ {}} { } - struct MessageOfMapDefaultTypeInternal + struct ShipInfoResDefaultTypeInternal { - PROTOBUF_CONSTEXPR MessageOfMapDefaultTypeInternal() : + PROTOBUF_CONSTEXPR ShipInfoResDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) { } - ~MessageOfMapDefaultTypeInternal() + ~ShipInfoResDefaultTypeInternal() { } union { - MessageOfMap _instance; + ShipInfoRes _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfMapDefaultTypeInternal _MessageOfMap_default_instance_; - - inline constexpr MessageOfObj::Impl_::Impl_( + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ShipInfoResDefaultTypeInternal _ShipInfoRes_default_instance_; + template + PROTOBUF_CONSTEXPR EcoRes::EcoRes( ::_pbi::ConstantInitialized - ) noexcept - : - message_of_obj_{}, - _cached_size_{0}, - _oneof_case_{} - { - } + ) : + _impl_{ + /*decltype(_impl_.economy_)*/ ::int64_t{0} - template - PROTOBUF_CONSTEXPR MessageOfObj::MessageOfObj(::_pbi::ConstantInitialized) : - _impl_(::_pbi::ConstantInitialized()) + , + /*decltype(_impl_._cached_size_)*/ {}} { } - struct MessageOfObjDefaultTypeInternal + struct EcoResDefaultTypeInternal { - PROTOBUF_CONSTEXPR MessageOfObjDefaultTypeInternal() : + PROTOBUF_CONSTEXPR EcoResDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) { } - ~MessageOfObjDefaultTypeInternal() + ~EcoResDefaultTypeInternal() { } union { - MessageOfObj _instance; + EcoRes _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfObjDefaultTypeInternal _MessageOfObj_default_instance_; - - inline constexpr MessageToClient::Impl_::Impl_( + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EcoResDefaultTypeInternal _EcoRes_default_instance_; + template + PROTOBUF_CONSTEXPR MessageOfNews::MessageOfNews( ::_pbi::ConstantInitialized - ) noexcept - : - _cached_size_{0}, - obj_message_{}, - all_message_{nullptr}, - game_state_{static_cast<::protobuf::GameState>(0)} - { - } + ) : + _impl_{ + /*decltype(_impl_.from_id_)*/ ::int64_t{0} - template - PROTOBUF_CONSTEXPR MessageToClient::MessageToClient(::_pbi::ConstantInitialized) : - _impl_(::_pbi::ConstantInitialized()) + , + /*decltype(_impl_.to_id_)*/ ::int64_t{0} + + , + /*decltype(_impl_.news_)*/ {}, + /*decltype(_impl_._cached_size_)*/ {}, + /*decltype(_impl_._oneof_case_)*/ {}} { } - struct MessageToClientDefaultTypeInternal + struct MessageOfNewsDefaultTypeInternal { - PROTOBUF_CONSTEXPR MessageToClientDefaultTypeInternal() : + PROTOBUF_CONSTEXPR MessageOfNewsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) { } - ~MessageToClientDefaultTypeInternal() + ~MessageOfNewsDefaultTypeInternal() { } union { - MessageToClient _instance; + MessageOfNews _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageToClientDefaultTypeInternal _MessageToClient_default_instance_; + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfNewsDefaultTypeInternal _MessageOfNews_default_instance_; } // namespace protobuf static ::_pb::Metadata file_level_metadata_Message2Clients_2eproto[20]; static constexpr const ::_pb::EnumDescriptor** @@ -892,6 +909,7 @@ const ::uint32_t TableStruct_Message2Clients_2eproto::offsets[] PROTOBUF_SECTION PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTeam, _impl_.player_id_), PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTeam, _impl_.score_), PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTeam, _impl_.money_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTeam, _impl_.guid_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfObj, _internal_metadata_), ~0u, // no _extensions_ @@ -1005,14 +1023,14 @@ static const ::_pbi::MigrationSchema {127, -1, -1, sizeof(::protobuf::MessageOfMap_Row)}, {136, -1, -1, sizeof(::protobuf::MessageOfMap)}, {147, -1, -1, sizeof(::protobuf::MessageOfTeam)}, - {159, -1, -1, sizeof(::protobuf::MessageOfObj)}, - {180, -1, -1, sizeof(::protobuf::MessageOfAll)}, - {191, 202, -1, sizeof(::protobuf::MessageToClient)}, - {205, -1, -1, sizeof(::protobuf::MoveRes)}, - {216, -1, -1, sizeof(::protobuf::BoolRes)}, - {225, -1, -1, sizeof(::protobuf::ShipInfoRes)}, - {234, -1, -1, sizeof(::protobuf::EcoRes)}, - {243, -1, -1, sizeof(::protobuf::MessageOfNews)}, + {160, -1, -1, sizeof(::protobuf::MessageOfObj)}, + {181, -1, -1, sizeof(::protobuf::MessageOfAll)}, + {192, 203, -1, sizeof(::protobuf::MessageToClient)}, + {206, -1, -1, sizeof(::protobuf::MoveRes)}, + {217, -1, -1, sizeof(::protobuf::BoolRes)}, + {226, -1, -1, sizeof(::protobuf::ShipInfoRes)}, + {235, -1, -1, sizeof(::protobuf::EcoRes)}, + {244, -1, -1, sizeof(::protobuf::MessageOfNews)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -1073,39 +1091,40 @@ const char descriptor_table_protodef_Message2Clients_2eproto[] PROTOBUF_SECTION_ "\004 \001(\003\"\201\001\n\014MessageOfMap\022\016\n\006height\030\001 \001(\r\022\r" "\n\005width\030\002 \001(\r\022(\n\004rows\030\003 \003(\0132\032.protobuf.M" "essageOfMap.Row\032(\n\003Row\022!\n\004cols\030\001 \003(\0162\023.p" - "rotobuf.PlaceType\"Q\n\rMessageOfTeam\022\017\n\007te" + "rotobuf.PlaceType\"_\n\rMessageOfTeam\022\017\n\007te" "am_id\030\001 \001(\003\022\021\n\tplayer_id\030\002 \001(\003\022\r\n\005score\030" - "\003 \001(\005\022\r\n\005money\030\004 \001(\005\"\237\005\n\014MessageOfObj\022/\n" - "\014ship_message\030\001 \001(\0132\027.protobuf.MessageOf" - "ShipH\000\0223\n\016bullet_message\030\002 \001(\0132\031.protobu" - "f.MessageOfBulletH\000\0225\n\017factory_message\030\003" - " \001(\0132\032.protobuf.MessageOfFactoryH\000\0229\n\021co" - "mmunity_message\030\004 \001(\0132\034.protobuf.Message" - "OfCommunityH\000\022/\n\014fort_message\030\005 \001(\0132\027.pr" - "otobuf.MessageOfFortH\000\0227\n\020wormhole_messa" - "ge\030\006 \001(\0132\033.protobuf.MessageOfWormholeH\000\022" - "/\n\014home_message\030\007 \001(\0132\027.protobuf.Message" - "OfHomeH\000\0227\n\020resource_message\030\010 \001(\0132\033.pro" - "tobuf.MessageOfResourceH\000\022-\n\013map_message" - "\030\t \001(\0132\026.protobuf.MessageOfMapH\000\022/\n\014news" - "_message\030\n \001(\0132\027.protobuf.MessageOfNewsH" - "\000\022@\n\025bombed_bullet_message\030\013 \001(\0132\037.proto" - "buf.MessageOfBombedBulletH\000\022/\n\014team_mess" - "age\030\014 \001(\0132\027.protobuf.MessageOfTeamH\000B\020\n\016" - "message_of_obj\"R\n\014MessageOfAll\022\021\n\tgame_t" - "ime\030\001 \001(\005\022\026\n\016red_team_score\030\002 \001(\005\022\027\n\017blu" - "e_team_score\030\003 \001(\005\"\224\001\n\017MessageToClient\022+" - "\n\013obj_message\030\001 \003(\0132\026.protobuf.MessageOf" - "Obj\022\'\n\ngame_state\030\002 \001(\0162\023.protobuf.GameS" - "tate\022+\n\013all_message\030\003 \001(\0132\026.protobuf.Mes" - "sageOfAll\"J\n\007MoveRes\022\024\n\014actual_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_success\030\001 \001(\010\"9\n" - "\013ShipInfoRes\022*\n\tship_info\030\001 \003(\0132\027.protob" - "uf.MessageOfShip\"\031\n\006EcoRes\022\017\n\007economy\030\001 " - "\001(\003\"i\n\rMessageOfNews\022\026\n\014text_message\030\001 \001" - "(\tH\000\022\030\n\016binary_message\030\004 \001(\014H\000\022\017\n\007from_i" - "d\030\002 \001(\003\022\r\n\005to_id\030\003 \001(\003B\006\n\004newsb\006proto3"}; + "\003 \001(\005\022\r\n\005money\030\004 \001(\005\022\014\n\004guid\030\005 \001(\003\"\237\005\n\014M" + "essageOfObj\022/\n\014ship_message\030\001 \001(\0132\027.prot" + "obuf.MessageOfShipH\000\0223\n\016bullet_message\030\002" + " \001(\0132\031.protobuf.MessageOfBulletH\000\0225\n\017fac" + "tory_message\030\003 \001(\0132\032.protobuf.MessageOfF" + "actoryH\000\0229\n\021community_message\030\004 \001(\0132\034.pr" + "otobuf.MessageOfCommunityH\000\022/\n\014fort_mess" + "age\030\005 \001(\0132\027.protobuf.MessageOfFortH\000\0227\n\020" + "wormhole_message\030\006 \001(\0132\033.protobuf.Messag" + "eOfWormholeH\000\022/\n\014home_message\030\007 \001(\0132\027.pr" + "otobuf.MessageOfHomeH\000\0227\n\020resource_messa" + "ge\030\010 \001(\0132\033.protobuf.MessageOfResourceH\000\022" + "-\n\013map_message\030\t \001(\0132\026.protobuf.MessageO" + "fMapH\000\022/\n\014news_message\030\n \001(\0132\027.protobuf." + "MessageOfNewsH\000\022@\n\025bombed_bullet_message" + "\030\013 \001(\0132\037.protobuf.MessageOfBombedBulletH" + "\000\022/\n\014team_message\030\014 \001(\0132\027.protobuf.Messa" + "geOfTeamH\000B\020\n\016message_of_obj\"R\n\014MessageO" + "fAll\022\021\n\tgame_time\030\001 \001(\005\022\026\n\016red_team_scor" + "e\030\002 \001(\005\022\027\n\017blue_team_score\030\003 \001(\005\"\224\001\n\017Mes" + "sageToClient\022+\n\013obj_message\030\001 \003(\0132\026.prot" + "obuf.MessageOfObj\022\'\n\ngame_state\030\002 \001(\0162\023." + "protobuf.GameState\022+\n\013all_message\030\003 \001(\0132" + "\026.protobuf.MessageOfAll\"J\n\007MoveRes\022\024\n\014ac" + "tual_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_su" + "ccess\030\001 \001(\010\"9\n\013ShipInfoRes\022*\n\tship_info\030" + "\001 \003(\0132\027.protobuf.MessageOfShip\"\031\n\006EcoRes" + "\022\017\n\007economy\030\001 \001(\003\"i\n\rMessageOfNews\022\026\n\014te" + "xt_message\030\001 \001(\tH\000\022\030\n\016binary_message\030\004 \001" + "(\014H\000\022\017\n\007from_id\030\002 \001(\003\022\r\n\005to_id\030\003 \001(\003B\006\n\004" + "newsb\006proto3"}; static const ::_pbi::DescriptorTable* const descriptor_table_Message2Clients_2eproto_deps[1] = { &::descriptor_table_MessageType_2eproto, @@ -1114,7 +1133,7 @@ static ::absl::once_flag descriptor_table_Message2Clients_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_Message2Clients_2eproto = { false, false, - 2718, + 2732, descriptor_table_protodef_Message2Clients_2eproto, "Message2Clients.proto", &descriptor_table_Message2Clients_2eproto_once, @@ -1156,195 +1175,377 @@ namespace protobuf public: }; - MessageOfShip::MessageOfShip(::google::protobuf::Arena* arena) : - ::google::protobuf::Message(arena) + MessageOfShip::MessageOfShip(::PROTOBUF_NAMESPACE_ID::Arena* arena) : + ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfShip) } - MessageOfShip::MessageOfShip( - ::google::protobuf::Arena* arena, const MessageOfShip& from - ) : - MessageOfShip(arena) - { - MergeFrom(from); - } - inline PROTOBUF_NDEBUG_INLINE MessageOfShip::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena - ) : - _cached_size_{0} + MessageOfShip::MessageOfShip(const MessageOfShip& from) : + ::PROTOBUF_NAMESPACE_ID::Message(), + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>( + from._internal_metadata_ + ); + // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfShip) } inline void MessageOfShip::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, x_), 0, offsetof(Impl_, facing_direction_) - offsetof(Impl_, x_) + sizeof(Impl_::facing_direction_)); + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.x_){0} + + , + decltype(_impl_.y_){0} + + , + decltype(_impl_.speed_){0} + + , + decltype(_impl_.hp_){0} + + , + decltype(_impl_.armor_){0} + + , + decltype(_impl_.shield_){0} + + , + decltype(_impl_.team_id_){::int64_t{0}} + + , + decltype(_impl_.player_id_){::int64_t{0}} + + , + decltype(_impl_.guid_){::int64_t{0}} + + , + decltype(_impl_.ship_state_){0} + + , + decltype(_impl_.ship_type_){0} + + , + decltype(_impl_.view_range_){0} + + , + decltype(_impl_.producer_type_){0} + + , + decltype(_impl_.constructor_type_){0} + + , + decltype(_impl_.armor_type_){0} + + , + decltype(_impl_.shield_type_){0} + + , + decltype(_impl_.weapon_type_){0} + + , + decltype(_impl_.facing_direction_){0} + + , + /*decltype(_impl_._cached_size_)*/ {}}; } + MessageOfShip::~MessageOfShip() { // @@protoc_insertion_point(destructor:protobuf.MessageOfShip) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) + { + (void)arena; + return; + } SharedDtor(); } + inline void MessageOfShip::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + } + + void MessageOfShip::SetCachedSize(int size) const + { + _impl_._cached_size_.Set(size); } - PROTOBUF_NOINLINE void MessageOfShip::Clear() + void MessageOfShip::Clear() { // @@protoc_insertion_point(message_clear_start:protobuf.MessageOfShip) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; ::memset(&_impl_.x_, 0, static_cast<::size_t>(reinterpret_cast(&_impl_.facing_direction_) - reinterpret_cast(&_impl_.x_)) + sizeof(_impl_.facing_direction_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - const char* MessageOfShip::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx - ) + const char* MessageOfShip::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +#define CHK_(x) \ + if (PROTOBUF_PREDICT_FALSE(!(x))) \ + goto failure + while (!ctx->Done(&ptr)) + { + ::uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) + { + // int32 x = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) + { + _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + // int32 y = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) + { + _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + // int32 speed = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) + { + _impl_.speed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + // int32 hp = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 32)) + { + _impl_.hp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + // int32 armor = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 40)) + { + _impl_.armor_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + // int32 shield = 6; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 48)) + { + _impl_.shield_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + // int64 team_id = 7; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 56)) + { + _impl_.team_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + // int64 player_id = 8; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 64)) + { + _impl_.player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + // int64 guid = 9; + case 9: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 72)) + { + _impl_.guid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + // .protobuf.ShipState ship_state = 10; + case 10: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 80)) + { + ::int32_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + _internal_set_ship_state(static_cast<::protobuf::ShipState>(val)); + } + else + { + goto handle_unusual; + } + continue; + // .protobuf.ShipType ship_type = 11; + case 11: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 88)) + { + ::int32_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + _internal_set_ship_type(static_cast<::protobuf::ShipType>(val)); + } + else + { + goto handle_unusual; + } + continue; + // int32 view_range = 12; + case 12: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 96)) + { + _impl_.view_range_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + // .protobuf.ProducerType producer_type = 13; + case 13: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 104)) + { + ::int32_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + _internal_set_producer_type(static_cast<::protobuf::ProducerType>(val)); + } + else + { + goto handle_unusual; + } + continue; + // .protobuf.ConstructorType constructor_type = 14; + case 14: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 112)) + { + ::int32_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + _internal_set_constructor_type(static_cast<::protobuf::ConstructorType>(val)); + } + else + { + goto handle_unusual; + } + continue; + // .protobuf.ArmorType armor_type = 15; + case 15: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 120)) + { + ::int32_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + _internal_set_armor_type(static_cast<::protobuf::ArmorType>(val)); + } + else + { + goto handle_unusual; + } + continue; + // .protobuf.ShieldType shield_type = 16; + case 16: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 128)) + { + ::int32_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + _internal_set_shield_type(static_cast<::protobuf::ShieldType>(val)); + } + else + { + goto handle_unusual; + } + continue; + // .protobuf.WeaponType weapon_type = 17; + case 17: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 136)) + { + ::int32_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + _internal_set_weapon_type(static_cast<::protobuf::WeaponType>(val)); + } + else + { + goto handle_unusual; + } + continue; + // double facing_direction = 18; + case 18: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 145)) + { + _impl_.facing_direction_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } + else + { + goto handle_unusual; + } + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) + { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, + ctx + ); + CHK_(ptr != nullptr); + } // while + message_done: return ptr; + failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<5, 18, 0, 0, 2> MessageOfShip::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 18, - 248, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294705152, // skipmap - offsetof(decltype(_table_), field_entries), - 18, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_MessageOfShip_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, - {{ - {::_pbi::TcParser::MiniParse, {}}, - // int32 x = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MessageOfShip, _impl_.x_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(MessageOfShip, _impl_.x_)}}, - // int32 y = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MessageOfShip, _impl_.y_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(MessageOfShip, _impl_.y_)}}, - // int32 speed = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MessageOfShip, _impl_.speed_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(MessageOfShip, _impl_.speed_)}}, - // int32 hp = 4; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MessageOfShip, _impl_.hp_), 63>(), - {32, 63, 0, PROTOBUF_FIELD_OFFSET(MessageOfShip, _impl_.hp_)}}, - // int32 armor = 5; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MessageOfShip, _impl_.armor_), 63>(), - {40, 63, 0, PROTOBUF_FIELD_OFFSET(MessageOfShip, _impl_.armor_)}}, - // int32 shield = 6; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MessageOfShip, _impl_.shield_), 63>(), - {48, 63, 0, PROTOBUF_FIELD_OFFSET(MessageOfShip, _impl_.shield_)}}, - // int64 team_id = 7; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(MessageOfShip, _impl_.team_id_), 63>(), - {56, 63, 0, PROTOBUF_FIELD_OFFSET(MessageOfShip, _impl_.team_id_)}}, - // int64 player_id = 8; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(MessageOfShip, _impl_.player_id_), 63>(), - {64, 63, 0, PROTOBUF_FIELD_OFFSET(MessageOfShip, _impl_.player_id_)}}, - // int64 guid = 9; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(MessageOfShip, _impl_.guid_), 63>(), - {72, 63, 0, PROTOBUF_FIELD_OFFSET(MessageOfShip, _impl_.guid_)}}, - // .protobuf.ShipState ship_state = 10; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MessageOfShip, _impl_.ship_state_), 63>(), - {80, 63, 0, PROTOBUF_FIELD_OFFSET(MessageOfShip, _impl_.ship_state_)}}, - // .protobuf.ShipType ship_type = 11; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MessageOfShip, _impl_.ship_type_), 63>(), - {88, 63, 0, PROTOBUF_FIELD_OFFSET(MessageOfShip, _impl_.ship_type_)}}, - // int32 view_range = 12; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MessageOfShip, _impl_.view_range_), 63>(), - {96, 63, 0, PROTOBUF_FIELD_OFFSET(MessageOfShip, _impl_.view_range_)}}, - // .protobuf.ProducerType producer_type = 13; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MessageOfShip, _impl_.producer_type_), 63>(), - {104, 63, 0, PROTOBUF_FIELD_OFFSET(MessageOfShip, _impl_.producer_type_)}}, - // .protobuf.ConstructorType constructor_type = 14; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MessageOfShip, _impl_.constructor_type_), 63>(), - {112, 63, 0, PROTOBUF_FIELD_OFFSET(MessageOfShip, _impl_.constructor_type_)}}, - // .protobuf.ArmorType armor_type = 15; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MessageOfShip, _impl_.armor_type_), 63>(), - {120, 63, 0, PROTOBUF_FIELD_OFFSET(MessageOfShip, _impl_.armor_type_)}}, - // .protobuf.ShieldType shield_type = 16; - {::_pbi::TcParser::FastV32S2, - {384, 63, 0, PROTOBUF_FIELD_OFFSET(MessageOfShip, _impl_.shield_type_)}}, - // .protobuf.WeaponType weapon_type = 17; - {::_pbi::TcParser::FastV32S2, - {392, 63, 0, PROTOBUF_FIELD_OFFSET(MessageOfShip, _impl_.weapon_type_)}}, - // double facing_direction = 18; - {::_pbi::TcParser::FastF64S2, - {401, 63, 0, PROTOBUF_FIELD_OFFSET(MessageOfShip, _impl_.facing_direction_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, - {{65535, 65535}}, - {{ - // int32 x = 1; - {PROTOBUF_FIELD_OFFSET(MessageOfShip, _impl_.x_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - // int32 y = 2; - {PROTOBUF_FIELD_OFFSET(MessageOfShip, _impl_.y_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - // int32 speed = 3; - {PROTOBUF_FIELD_OFFSET(MessageOfShip, _impl_.speed_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - // int32 hp = 4; - {PROTOBUF_FIELD_OFFSET(MessageOfShip, _impl_.hp_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - // int32 armor = 5; - {PROTOBUF_FIELD_OFFSET(MessageOfShip, _impl_.armor_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - // int32 shield = 6; - {PROTOBUF_FIELD_OFFSET(MessageOfShip, _impl_.shield_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - // int64 team_id = 7; - {PROTOBUF_FIELD_OFFSET(MessageOfShip, _impl_.team_id_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt64)}, - // int64 player_id = 8; - {PROTOBUF_FIELD_OFFSET(MessageOfShip, _impl_.player_id_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt64)}, - // int64 guid = 9; - {PROTOBUF_FIELD_OFFSET(MessageOfShip, _impl_.guid_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt64)}, - // .protobuf.ShipState ship_state = 10; - {PROTOBUF_FIELD_OFFSET(MessageOfShip, _impl_.ship_state_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - // .protobuf.ShipType ship_type = 11; - {PROTOBUF_FIELD_OFFSET(MessageOfShip, _impl_.ship_type_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - // int32 view_range = 12; - {PROTOBUF_FIELD_OFFSET(MessageOfShip, _impl_.view_range_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - // .protobuf.ProducerType producer_type = 13; - {PROTOBUF_FIELD_OFFSET(MessageOfShip, _impl_.producer_type_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - // .protobuf.ConstructorType constructor_type = 14; - {PROTOBUF_FIELD_OFFSET(MessageOfShip, _impl_.constructor_type_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - // .protobuf.ArmorType armor_type = 15; - {PROTOBUF_FIELD_OFFSET(MessageOfShip, _impl_.armor_type_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - // .protobuf.ShieldType shield_type = 16; - {PROTOBUF_FIELD_OFFSET(MessageOfShip, _impl_.shield_type_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - // .protobuf.WeaponType weapon_type = 17; - {PROTOBUF_FIELD_OFFSET(MessageOfShip, _impl_.weapon_type_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - // double facing_direction = 18; - {PROTOBUF_FIELD_OFFSET(MessageOfShip, _impl_.facing_direction_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - }}, - // no aux_entries - {{}}, - }; - ::uint8_t* MessageOfShip::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream ) const { // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfShip) @@ -1354,82 +1555,82 @@ namespace protobuf // int32 x = 1; if (this->_internal_x() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<1>( - stream, this->_internal_x(), target - ); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray( + 1, this->_internal_x(), target + ); } // int32 y = 2; if (this->_internal_y() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<2>( - stream, this->_internal_y(), target - ); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray( + 2, this->_internal_y(), target + ); } // int32 speed = 3; if (this->_internal_speed() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<3>( - stream, this->_internal_speed(), target - ); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray( + 3, this->_internal_speed(), target + ); } // int32 hp = 4; if (this->_internal_hp() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<4>( - stream, this->_internal_hp(), target - ); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray( + 4, this->_internal_hp(), target + ); } // int32 armor = 5; if (this->_internal_armor() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<5>( - stream, this->_internal_armor(), target - ); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray( + 5, this->_internal_armor(), target + ); } // int32 shield = 6; if (this->_internal_shield() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<6>( - stream, this->_internal_shield(), target - ); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray( + 6, this->_internal_shield(), target + ); } // int64 team_id = 7; if (this->_internal_team_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64ToArrayWithField<7>( - stream, this->_internal_team_id(), target - ); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray( + 7, this->_internal_team_id(), target + ); } // int64 player_id = 8; if (this->_internal_player_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64ToArrayWithField<8>( - stream, this->_internal_player_id(), target - ); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray( + 8, this->_internal_player_id(), target + ); } // int64 guid = 9; if (this->_internal_guid() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64ToArrayWithField<9>( - stream, this->_internal_guid(), target - ); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray( + 9, this->_internal_guid(), target + ); } // .protobuf.ShipState ship_state = 10; @@ -1453,10 +1654,10 @@ namespace protobuf // int32 view_range = 12; if (this->_internal_view_range() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<12>( - stream, this->_internal_view_range(), target - ); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray( + 12, this->_internal_view_range(), target + ); } // .protobuf.ProducerType producer_type = 13; @@ -1519,10 +1720,9 @@ namespace protobuf if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream - ); + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream + ); } // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfShip) return target; @@ -1679,16 +1879,15 @@ namespace protobuf return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } - const ::google::protobuf::Message::ClassData MessageOfShip::_class_data_ = { - MessageOfShip::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor - }; - const ::google::protobuf::Message::ClassData* MessageOfShip::GetClassData() const + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfShip::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + MessageOfShip::MergeImpl}; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfShip::GetClassData() const { return &_class_data_; } - void MessageOfShip::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) + void MessageOfShip::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); @@ -1773,7 +1972,7 @@ namespace protobuf { _this->_internal_set_facing_direction(from._internal_facing_direction()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MessageOfShip::CopyFrom(const MessageOfShip& from) @@ -1785,27 +1984,23 @@ namespace protobuf MergeFrom(from); } - PROTOBUF_NOINLINE bool MessageOfShip::IsInitialized() const + bool MessageOfShip::IsInitialized() const { return true; } - ::_pbi::CachedSize* MessageOfShip::AccessCachedSize() const - { - return &_impl_._cached_size_; - } - void MessageOfShip::InternalSwap(MessageOfShip* PROTOBUF_RESTRICT other) + void MessageOfShip::InternalSwap(MessageOfShip* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::google::protobuf::internal::memswap< + ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(MessageOfShip, _impl_.facing_direction_) + sizeof(MessageOfShip::_impl_.facing_direction_) - PROTOBUF_FIELD_OFFSET(MessageOfShip, _impl_.x_)>( reinterpret_cast(&_impl_.x_), reinterpret_cast(&other->_impl_.x_) ); } - ::google::protobuf::Metadata MessageOfShip::GetMetadata() const + ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfShip::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[0] @@ -1818,143 +2013,236 @@ namespace protobuf public: }; - MessageOfBullet::MessageOfBullet(::google::protobuf::Arena* arena) : - ::google::protobuf::Message(arena) + MessageOfBullet::MessageOfBullet(::PROTOBUF_NAMESPACE_ID::Arena* arena) : + ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfBullet) } - MessageOfBullet::MessageOfBullet( - ::google::protobuf::Arena* arena, const MessageOfBullet& from - ) : - MessageOfBullet(arena) - { - MergeFrom(from); - } - inline PROTOBUF_NDEBUG_INLINE MessageOfBullet::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena - ) : - _cached_size_{0} + MessageOfBullet::MessageOfBullet(const MessageOfBullet& from) : + ::PROTOBUF_NAMESPACE_ID::Message(), + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>( + from._internal_metadata_ + ); + // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfBullet) } inline void MessageOfBullet::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, type_), 0, offsetof(Impl_, speed_) - offsetof(Impl_, type_) + sizeof(Impl_::speed_)); + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.type_){0} + + , + decltype(_impl_.x_){0} + + , + decltype(_impl_.facing_direction_){0} + + , + decltype(_impl_.y_){0} + + , + decltype(_impl_.damage_){0} + + , + decltype(_impl_.team_id_){::int64_t{0}} + + , + decltype(_impl_.guid_){::int64_t{0}} + + , + decltype(_impl_.bomb_range_){0} + + , + decltype(_impl_.speed_){0} + + , + /*decltype(_impl_._cached_size_)*/ {}}; } + MessageOfBullet::~MessageOfBullet() { // @@protoc_insertion_point(destructor:protobuf.MessageOfBullet) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) + { + (void)arena; + return; + } SharedDtor(); } + inline void MessageOfBullet::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + } + + void MessageOfBullet::SetCachedSize(int size) const + { + _impl_._cached_size_.Set(size); } - PROTOBUF_NOINLINE void MessageOfBullet::Clear() + void MessageOfBullet::Clear() { // @@protoc_insertion_point(message_clear_start:protobuf.MessageOfBullet) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; ::memset(&_impl_.type_, 0, static_cast<::size_t>(reinterpret_cast(&_impl_.speed_) - reinterpret_cast(&_impl_.type_)) + sizeof(_impl_.speed_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - const char* MessageOfBullet::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx - ) + const char* MessageOfBullet::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +#define CHK_(x) \ + if (PROTOBUF_PREDICT_FALSE(!(x))) \ + goto failure + while (!ctx->Done(&ptr)) + { + ::uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) + { + // .protobuf.BulletType type = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) + { + ::int32_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + _internal_set_type(static_cast<::protobuf::BulletType>(val)); + } + else + { + goto handle_unusual; + } + continue; + // int32 x = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) + { + _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + // int32 y = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) + { + _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + // double facing_direction = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 33)) + { + _impl_.facing_direction_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } + else + { + goto handle_unusual; + } + continue; + // int32 damage = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 40)) + { + _impl_.damage_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + // int64 team_id = 6; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 48)) + { + _impl_.team_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + // int64 guid = 7; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 56)) + { + _impl_.guid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + // double bomb_range = 8; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 65)) + { + _impl_.bomb_range_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } + else + { + goto handle_unusual; + } + continue; + // int32 speed = 9; + case 9: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 72)) + { + _impl_.speed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) + { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, + ctx + ); + CHK_(ptr != nullptr); + } // while + message_done: return ptr; + failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<4, 9, 0, 0, 2> MessageOfBullet::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 9, - 120, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294966784, // skipmap - offsetof(decltype(_table_), field_entries), - 9, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_MessageOfBullet_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, - {{ - {::_pbi::TcParser::MiniParse, {}}, - // .protobuf.BulletType type = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MessageOfBullet, _impl_.type_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(MessageOfBullet, _impl_.type_)}}, - // int32 x = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MessageOfBullet, _impl_.x_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(MessageOfBullet, _impl_.x_)}}, - // int32 y = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MessageOfBullet, _impl_.y_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(MessageOfBullet, _impl_.y_)}}, - // double facing_direction = 4; - {::_pbi::TcParser::FastF64S1, - {33, 63, 0, PROTOBUF_FIELD_OFFSET(MessageOfBullet, _impl_.facing_direction_)}}, - // int32 damage = 5; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MessageOfBullet, _impl_.damage_), 63>(), - {40, 63, 0, PROTOBUF_FIELD_OFFSET(MessageOfBullet, _impl_.damage_)}}, - // int64 team_id = 6; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(MessageOfBullet, _impl_.team_id_), 63>(), - {48, 63, 0, PROTOBUF_FIELD_OFFSET(MessageOfBullet, _impl_.team_id_)}}, - // int64 guid = 7; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(MessageOfBullet, _impl_.guid_), 63>(), - {56, 63, 0, PROTOBUF_FIELD_OFFSET(MessageOfBullet, _impl_.guid_)}}, - // double bomb_range = 8; - {::_pbi::TcParser::FastF64S1, - {65, 63, 0, PROTOBUF_FIELD_OFFSET(MessageOfBullet, _impl_.bomb_range_)}}, - // int32 speed = 9; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MessageOfBullet, _impl_.speed_), 63>(), - {72, 63, 0, PROTOBUF_FIELD_OFFSET(MessageOfBullet, _impl_.speed_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, - {{65535, 65535}}, - {{ - // .protobuf.BulletType type = 1; - {PROTOBUF_FIELD_OFFSET(MessageOfBullet, _impl_.type_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - // int32 x = 2; - {PROTOBUF_FIELD_OFFSET(MessageOfBullet, _impl_.x_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - // int32 y = 3; - {PROTOBUF_FIELD_OFFSET(MessageOfBullet, _impl_.y_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - // double facing_direction = 4; - {PROTOBUF_FIELD_OFFSET(MessageOfBullet, _impl_.facing_direction_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // int32 damage = 5; - {PROTOBUF_FIELD_OFFSET(MessageOfBullet, _impl_.damage_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - // int64 team_id = 6; - {PROTOBUF_FIELD_OFFSET(MessageOfBullet, _impl_.team_id_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt64)}, - // int64 guid = 7; - {PROTOBUF_FIELD_OFFSET(MessageOfBullet, _impl_.guid_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt64)}, - // double bomb_range = 8; - {PROTOBUF_FIELD_OFFSET(MessageOfBullet, _impl_.bomb_range_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // int32 speed = 9; - {PROTOBUF_FIELD_OFFSET(MessageOfBullet, _impl_.speed_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - }}, - // no aux_entries - {{}}, - }; - ::uint8_t* MessageOfBullet::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream ) const { // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfBullet) @@ -1973,19 +2261,19 @@ namespace protobuf // int32 x = 2; if (this->_internal_x() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<2>( - stream, this->_internal_x(), target - ); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray( + 2, this->_internal_x(), target + ); } // int32 y = 3; if (this->_internal_y() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<3>( - stream, this->_internal_y(), target - ); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray( + 3, this->_internal_y(), target + ); } // double facing_direction = 4; @@ -2004,28 +2292,28 @@ namespace protobuf // int32 damage = 5; if (this->_internal_damage() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<5>( - stream, this->_internal_damage(), target - ); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray( + 5, this->_internal_damage(), target + ); } // int64 team_id = 6; if (this->_internal_team_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64ToArrayWithField<6>( - stream, this->_internal_team_id(), target - ); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray( + 6, this->_internal_team_id(), target + ); } // int64 guid = 7; if (this->_internal_guid() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64ToArrayWithField<7>( - stream, this->_internal_guid(), target - ); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray( + 7, this->_internal_guid(), target + ); } // double bomb_range = 8; @@ -2044,18 +2332,17 @@ namespace protobuf // int32 speed = 9; if (this->_internal_speed() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<9>( - stream, this->_internal_speed(), target - ); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray( + 9, this->_internal_speed(), target + ); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream - ); + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream + ); } // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfBullet) return target; @@ -2148,16 +2435,15 @@ namespace protobuf return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } - const ::google::protobuf::Message::ClassData MessageOfBullet::_class_data_ = { - MessageOfBullet::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor - }; - const ::google::protobuf::Message::ClassData* MessageOfBullet::GetClassData() const + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfBullet::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + MessageOfBullet::MergeImpl}; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfBullet::GetClassData() const { return &_class_data_; } - void MessageOfBullet::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) + void MessageOfBullet::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); @@ -2210,7 +2496,7 @@ namespace protobuf { _this->_internal_set_speed(from._internal_speed()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MessageOfBullet::CopyFrom(const MessageOfBullet& from) @@ -2222,27 +2508,23 @@ namespace protobuf MergeFrom(from); } - PROTOBUF_NOINLINE bool MessageOfBullet::IsInitialized() const + bool MessageOfBullet::IsInitialized() const { return true; } - ::_pbi::CachedSize* MessageOfBullet::AccessCachedSize() const - { - return &_impl_._cached_size_; - } - void MessageOfBullet::InternalSwap(MessageOfBullet* PROTOBUF_RESTRICT other) + void MessageOfBullet::InternalSwap(MessageOfBullet* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::google::protobuf::internal::memswap< + ::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_) ); } - ::google::protobuf::Metadata MessageOfBullet::GetMetadata() const + ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfBullet::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[1] @@ -2255,123 +2537,191 @@ namespace protobuf public: }; - MessageOfBombedBullet::MessageOfBombedBullet(::google::protobuf::Arena* arena) : - ::google::protobuf::Message(arena) + MessageOfBombedBullet::MessageOfBombedBullet(::PROTOBUF_NAMESPACE_ID::Arena* arena) : + ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfBombedBullet) } - MessageOfBombedBullet::MessageOfBombedBullet( - ::google::protobuf::Arena* arena, const MessageOfBombedBullet& from - ) : - MessageOfBombedBullet(arena) - { - MergeFrom(from); - } - inline PROTOBUF_NDEBUG_INLINE MessageOfBombedBullet::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena - ) : - _cached_size_{0} + MessageOfBombedBullet::MessageOfBombedBullet(const MessageOfBombedBullet& from) : + ::PROTOBUF_NAMESPACE_ID::Message(), + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>( + from._internal_metadata_ + ); + // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfBombedBullet) } inline void MessageOfBombedBullet::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, type_), 0, offsetof(Impl_, y_) - offsetof(Impl_, type_) + sizeof(Impl_::y_)); + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.type_){0} + + , + decltype(_impl_.x_){0} + + , + decltype(_impl_.facing_direction_){0} + + , + decltype(_impl_.mapping_id_){::int64_t{0}} + + , + decltype(_impl_.bomb_range_){0} + + , + decltype(_impl_.y_){0} + + , + /*decltype(_impl_._cached_size_)*/ {}}; } + MessageOfBombedBullet::~MessageOfBombedBullet() { // @@protoc_insertion_point(destructor:protobuf.MessageOfBombedBullet) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) + { + (void)arena; + return; + } SharedDtor(); } + inline void MessageOfBombedBullet::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + } + + void MessageOfBombedBullet::SetCachedSize(int size) const + { + _impl_._cached_size_.Set(size); } - PROTOBUF_NOINLINE void MessageOfBombedBullet::Clear() + void MessageOfBombedBullet::Clear() { // @@protoc_insertion_point(message_clear_start:protobuf.MessageOfBombedBullet) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; ::memset(&_impl_.type_, 0, static_cast<::size_t>(reinterpret_cast(&_impl_.y_) - reinterpret_cast(&_impl_.type_)) + sizeof(_impl_.y_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - const char* MessageOfBombedBullet::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx - ) + const char* MessageOfBombedBullet::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +#define CHK_(x) \ + if (PROTOBUF_PREDICT_FALSE(!(x))) \ + goto failure + while (!ctx->Done(&ptr)) + { + ::uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) + { + // .protobuf.BulletType type = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) + { + ::int32_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + _internal_set_type(static_cast<::protobuf::BulletType>(val)); + } + else + { + goto handle_unusual; + } + continue; + // int32 x = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) + { + _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + // int32 y = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) + { + _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + // double facing_direction = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 33)) + { + _impl_.facing_direction_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } + else + { + goto handle_unusual; + } + continue; + // int64 mapping_id = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 40)) + { + _impl_.mapping_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + // double bomb_range = 6; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 49)) + { + _impl_.bomb_range_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } + else + { + goto handle_unusual; + } + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) + { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, + ctx + ); + CHK_(ptr != nullptr); + } // while + message_done: return ptr; + failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<3, 6, 0, 0, 2> MessageOfBombedBullet::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 6, - 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967232, // skipmap - offsetof(decltype(_table_), field_entries), - 6, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_MessageOfBombedBullet_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, - {{ - {::_pbi::TcParser::MiniParse, {}}, - // .protobuf.BulletType type = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MessageOfBombedBullet, _impl_.type_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(MessageOfBombedBullet, _impl_.type_)}}, - // int32 x = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MessageOfBombedBullet, _impl_.x_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(MessageOfBombedBullet, _impl_.x_)}}, - // int32 y = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MessageOfBombedBullet, _impl_.y_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(MessageOfBombedBullet, _impl_.y_)}}, - // double facing_direction = 4; - {::_pbi::TcParser::FastF64S1, - {33, 63, 0, PROTOBUF_FIELD_OFFSET(MessageOfBombedBullet, _impl_.facing_direction_)}}, - // int64 mapping_id = 5; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(MessageOfBombedBullet, _impl_.mapping_id_), 63>(), - {40, 63, 0, PROTOBUF_FIELD_OFFSET(MessageOfBombedBullet, _impl_.mapping_id_)}}, - // double bomb_range = 6; - {::_pbi::TcParser::FastF64S1, - {49, 63, 0, PROTOBUF_FIELD_OFFSET(MessageOfBombedBullet, _impl_.bomb_range_)}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, - {{65535, 65535}}, - {{ - // .protobuf.BulletType type = 1; - {PROTOBUF_FIELD_OFFSET(MessageOfBombedBullet, _impl_.type_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - // int32 x = 2; - {PROTOBUF_FIELD_OFFSET(MessageOfBombedBullet, _impl_.x_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - // int32 y = 3; - {PROTOBUF_FIELD_OFFSET(MessageOfBombedBullet, _impl_.y_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - // double facing_direction = 4; - {PROTOBUF_FIELD_OFFSET(MessageOfBombedBullet, _impl_.facing_direction_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // int64 mapping_id = 5; - {PROTOBUF_FIELD_OFFSET(MessageOfBombedBullet, _impl_.mapping_id_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt64)}, - // double bomb_range = 6; - {PROTOBUF_FIELD_OFFSET(MessageOfBombedBullet, _impl_.bomb_range_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - }}, - // no aux_entries - {{}}, - }; - ::uint8_t* MessageOfBombedBullet::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream ) const { // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfBombedBullet) @@ -2390,19 +2740,19 @@ namespace protobuf // int32 x = 2; if (this->_internal_x() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<2>( - stream, this->_internal_x(), target - ); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray( + 2, this->_internal_x(), target + ); } // int32 y = 3; if (this->_internal_y() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<3>( - stream, this->_internal_y(), target - ); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray( + 3, this->_internal_y(), target + ); } // double facing_direction = 4; @@ -2421,10 +2771,10 @@ namespace protobuf // int64 mapping_id = 5; if (this->_internal_mapping_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64ToArrayWithField<5>( - stream, this->_internal_mapping_id(), target - ); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray( + 5, this->_internal_mapping_id(), target + ); } // double bomb_range = 6; @@ -2442,10 +2792,9 @@ namespace protobuf if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream - ); + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream + ); } // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfBombedBullet) return target; @@ -2514,16 +2863,15 @@ namespace protobuf return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } - const ::google::protobuf::Message::ClassData MessageOfBombedBullet::_class_data_ = { - MessageOfBombedBullet::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor - }; - const ::google::protobuf::Message::ClassData* MessageOfBombedBullet::GetClassData() const + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfBombedBullet::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + MessageOfBombedBullet::MergeImpl}; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfBombedBullet::GetClassData() const { return &_class_data_; } - void MessageOfBombedBullet::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) + void MessageOfBombedBullet::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); @@ -2564,7 +2912,7 @@ namespace protobuf { _this->_internal_set_y(from._internal_y()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MessageOfBombedBullet::CopyFrom(const MessageOfBombedBullet& from) @@ -2576,27 +2924,23 @@ namespace protobuf MergeFrom(from); } - PROTOBUF_NOINLINE bool MessageOfBombedBullet::IsInitialized() const + bool MessageOfBombedBullet::IsInitialized() const { return true; } - ::_pbi::CachedSize* MessageOfBombedBullet::AccessCachedSize() const - { - return &_impl_._cached_size_; - } - void MessageOfBombedBullet::InternalSwap(MessageOfBombedBullet* PROTOBUF_RESTRICT other) + void MessageOfBombedBullet::InternalSwap(MessageOfBombedBullet* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::google::protobuf::internal::memswap< + ::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_) ); } - ::google::protobuf::Metadata MessageOfBombedBullet::GetMetadata() const + ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfBombedBullet::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[2] @@ -2609,111 +2953,160 @@ namespace protobuf public: }; - MessageOfFactory::MessageOfFactory(::google::protobuf::Arena* arena) : - ::google::protobuf::Message(arena) + MessageOfFactory::MessageOfFactory(::PROTOBUF_NAMESPACE_ID::Arena* arena) : + ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfFactory) } - MessageOfFactory::MessageOfFactory( - ::google::protobuf::Arena* arena, const MessageOfFactory& from - ) : - MessageOfFactory(arena) - { - MergeFrom(from); - } - inline PROTOBUF_NDEBUG_INLINE MessageOfFactory::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena - ) : - _cached_size_{0} + MessageOfFactory::MessageOfFactory(const MessageOfFactory& from) : + ::PROTOBUF_NAMESPACE_ID::Message(), + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>( + from._internal_metadata_ + ); + // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfFactory) } inline void MessageOfFactory::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, x_), 0, offsetof(Impl_, hp_) - offsetof(Impl_, x_) + sizeof(Impl_::hp_)); + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.x_){0} + + , + decltype(_impl_.y_){0} + + , + decltype(_impl_.team_id_){::int64_t{0}} + + , + decltype(_impl_.hp_){0} + + , + /*decltype(_impl_._cached_size_)*/ {}}; } + MessageOfFactory::~MessageOfFactory() { // @@protoc_insertion_point(destructor:protobuf.MessageOfFactory) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) + { + (void)arena; + return; + } SharedDtor(); } + inline void MessageOfFactory::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + } + + void MessageOfFactory::SetCachedSize(int size) const + { + _impl_._cached_size_.Set(size); } - PROTOBUF_NOINLINE void MessageOfFactory::Clear() + void MessageOfFactory::Clear() { // @@protoc_insertion_point(message_clear_start:protobuf.MessageOfFactory) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; ::memset(&_impl_.x_, 0, static_cast<::size_t>(reinterpret_cast(&_impl_.hp_) - reinterpret_cast(&_impl_.x_)) + sizeof(_impl_.hp_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - const char* MessageOfFactory::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx - ) + const char* MessageOfFactory::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +#define CHK_(x) \ + if (PROTOBUF_PREDICT_FALSE(!(x))) \ + goto failure + while (!ctx->Done(&ptr)) + { + ::uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) + { + // int32 x = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) + { + _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + // int32 y = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) + { + _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + // int32 hp = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) + { + _impl_.hp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + // int64 team_id = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 32)) + { + _impl_.team_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) + { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, + ctx + ); + CHK_(ptr != nullptr); + } // while + message_done: return ptr; + failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<2, 4, 0, 0, 2> MessageOfFactory::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 4, - 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967280, // skipmap - offsetof(decltype(_table_), field_entries), - 4, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_MessageOfFactory_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, - {{ - // int64 team_id = 4; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(MessageOfFactory, _impl_.team_id_), 63>(), - {32, 63, 0, PROTOBUF_FIELD_OFFSET(MessageOfFactory, _impl_.team_id_)}}, - // int32 x = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MessageOfFactory, _impl_.x_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(MessageOfFactory, _impl_.x_)}}, - // int32 y = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MessageOfFactory, _impl_.y_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(MessageOfFactory, _impl_.y_)}}, - // int32 hp = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MessageOfFactory, _impl_.hp_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(MessageOfFactory, _impl_.hp_)}}, - }}, - {{65535, 65535}}, - {{ - // int32 x = 1; - {PROTOBUF_FIELD_OFFSET(MessageOfFactory, _impl_.x_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - // int32 y = 2; - {PROTOBUF_FIELD_OFFSET(MessageOfFactory, _impl_.y_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - // int32 hp = 3; - {PROTOBUF_FIELD_OFFSET(MessageOfFactory, _impl_.hp_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - // int64 team_id = 4; - {PROTOBUF_FIELD_OFFSET(MessageOfFactory, _impl_.team_id_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt64)}, - }}, - // no aux_entries - {{}}, - }; - ::uint8_t* MessageOfFactory::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream ) const { // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfFactory) @@ -2723,45 +3116,44 @@ namespace protobuf // int32 x = 1; if (this->_internal_x() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<1>( - stream, this->_internal_x(), target - ); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray( + 1, this->_internal_x(), target + ); } // int32 y = 2; if (this->_internal_y() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<2>( - stream, this->_internal_y(), target - ); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray( + 2, this->_internal_y(), target + ); } // int32 hp = 3; if (this->_internal_hp() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<3>( - stream, this->_internal_hp(), target - ); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray( + 3, this->_internal_hp(), target + ); } // int64 team_id = 4; if (this->_internal_team_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64ToArrayWithField<4>( - stream, this->_internal_team_id(), target - ); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray( + 4, this->_internal_team_id(), target + ); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream - ); + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream + ); } // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfFactory) return target; @@ -2811,16 +3203,15 @@ namespace protobuf return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } - const ::google::protobuf::Message::ClassData MessageOfFactory::_class_data_ = { - MessageOfFactory::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor - }; - const ::google::protobuf::Message::ClassData* MessageOfFactory::GetClassData() const + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfFactory::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + MessageOfFactory::MergeImpl}; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfFactory::GetClassData() const { return &_class_data_; } - void MessageOfFactory::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) + void MessageOfFactory::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); @@ -2845,7 +3236,7 @@ namespace protobuf { _this->_internal_set_hp(from._internal_hp()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MessageOfFactory::CopyFrom(const MessageOfFactory& from) @@ -2857,27 +3248,23 @@ namespace protobuf MergeFrom(from); } - PROTOBUF_NOINLINE bool MessageOfFactory::IsInitialized() const + bool MessageOfFactory::IsInitialized() const { return true; } - ::_pbi::CachedSize* MessageOfFactory::AccessCachedSize() const - { - return &_impl_._cached_size_; - } - void MessageOfFactory::InternalSwap(MessageOfFactory* PROTOBUF_RESTRICT other) + void MessageOfFactory::InternalSwap(MessageOfFactory* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::google::protobuf::internal::memswap< + ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(MessageOfFactory, _impl_.hp_) + sizeof(MessageOfFactory::_impl_.hp_) - PROTOBUF_FIELD_OFFSET(MessageOfFactory, _impl_.x_)>( reinterpret_cast(&_impl_.x_), reinterpret_cast(&other->_impl_.x_) ); } - ::google::protobuf::Metadata MessageOfFactory::GetMetadata() const + ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfFactory::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[3] @@ -2890,111 +3277,160 @@ namespace protobuf public: }; - MessageOfCommunity::MessageOfCommunity(::google::protobuf::Arena* arena) : - ::google::protobuf::Message(arena) + MessageOfCommunity::MessageOfCommunity(::PROTOBUF_NAMESPACE_ID::Arena* arena) : + ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfCommunity) } - MessageOfCommunity::MessageOfCommunity( - ::google::protobuf::Arena* arena, const MessageOfCommunity& from - ) : - MessageOfCommunity(arena) - { - MergeFrom(from); - } - inline PROTOBUF_NDEBUG_INLINE MessageOfCommunity::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena - ) : - _cached_size_{0} + MessageOfCommunity::MessageOfCommunity(const MessageOfCommunity& from) : + ::PROTOBUF_NAMESPACE_ID::Message(), + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>( + from._internal_metadata_ + ); + // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfCommunity) } inline void MessageOfCommunity::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, x_), 0, offsetof(Impl_, hp_) - offsetof(Impl_, x_) + sizeof(Impl_::hp_)); + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.x_){0} + + , + decltype(_impl_.y_){0} + + , + decltype(_impl_.team_id_){::int64_t{0}} + + , + decltype(_impl_.hp_){0} + + , + /*decltype(_impl_._cached_size_)*/ {}}; } + MessageOfCommunity::~MessageOfCommunity() { // @@protoc_insertion_point(destructor:protobuf.MessageOfCommunity) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) + { + (void)arena; + return; + } SharedDtor(); } + inline void MessageOfCommunity::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + } + + void MessageOfCommunity::SetCachedSize(int size) const + { + _impl_._cached_size_.Set(size); } - PROTOBUF_NOINLINE void MessageOfCommunity::Clear() + void MessageOfCommunity::Clear() { // @@protoc_insertion_point(message_clear_start:protobuf.MessageOfCommunity) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; ::memset(&_impl_.x_, 0, static_cast<::size_t>(reinterpret_cast(&_impl_.hp_) - reinterpret_cast(&_impl_.x_)) + sizeof(_impl_.hp_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - const char* MessageOfCommunity::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx - ) + const char* MessageOfCommunity::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +#define CHK_(x) \ + if (PROTOBUF_PREDICT_FALSE(!(x))) \ + goto failure + while (!ctx->Done(&ptr)) + { + ::uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) + { + // int32 x = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) + { + _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + // int32 y = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) + { + _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + // int32 hp = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) + { + _impl_.hp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + // int64 team_id = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 32)) + { + _impl_.team_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) + { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, + ctx + ); + CHK_(ptr != nullptr); + } // while + message_done: return ptr; + failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<2, 4, 0, 0, 2> MessageOfCommunity::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 4, - 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967280, // skipmap - offsetof(decltype(_table_), field_entries), - 4, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_MessageOfCommunity_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, - {{ - // int64 team_id = 4; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(MessageOfCommunity, _impl_.team_id_), 63>(), - {32, 63, 0, PROTOBUF_FIELD_OFFSET(MessageOfCommunity, _impl_.team_id_)}}, - // int32 x = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MessageOfCommunity, _impl_.x_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(MessageOfCommunity, _impl_.x_)}}, - // int32 y = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MessageOfCommunity, _impl_.y_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(MessageOfCommunity, _impl_.y_)}}, - // int32 hp = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MessageOfCommunity, _impl_.hp_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(MessageOfCommunity, _impl_.hp_)}}, - }}, - {{65535, 65535}}, - {{ - // int32 x = 1; - {PROTOBUF_FIELD_OFFSET(MessageOfCommunity, _impl_.x_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - // int32 y = 2; - {PROTOBUF_FIELD_OFFSET(MessageOfCommunity, _impl_.y_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - // int32 hp = 3; - {PROTOBUF_FIELD_OFFSET(MessageOfCommunity, _impl_.hp_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - // int64 team_id = 4; - {PROTOBUF_FIELD_OFFSET(MessageOfCommunity, _impl_.team_id_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt64)}, - }}, - // no aux_entries - {{}}, - }; - ::uint8_t* MessageOfCommunity::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream ) const { // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfCommunity) @@ -3004,45 +3440,44 @@ namespace protobuf // int32 x = 1; if (this->_internal_x() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<1>( - stream, this->_internal_x(), target - ); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray( + 1, this->_internal_x(), target + ); } // int32 y = 2; if (this->_internal_y() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<2>( - stream, this->_internal_y(), target - ); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray( + 2, this->_internal_y(), target + ); } // int32 hp = 3; if (this->_internal_hp() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<3>( - stream, this->_internal_hp(), target - ); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray( + 3, this->_internal_hp(), target + ); } // int64 team_id = 4; if (this->_internal_team_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64ToArrayWithField<4>( - stream, this->_internal_team_id(), target - ); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray( + 4, this->_internal_team_id(), target + ); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream - ); + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream + ); } // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfCommunity) return target; @@ -3092,16 +3527,15 @@ namespace protobuf return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } - const ::google::protobuf::Message::ClassData MessageOfCommunity::_class_data_ = { - MessageOfCommunity::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor - }; - const ::google::protobuf::Message::ClassData* MessageOfCommunity::GetClassData() const + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfCommunity::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + MessageOfCommunity::MergeImpl}; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfCommunity::GetClassData() const { return &_class_data_; } - void MessageOfCommunity::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) + void MessageOfCommunity::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); @@ -3126,7 +3560,7 @@ namespace protobuf { _this->_internal_set_hp(from._internal_hp()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MessageOfCommunity::CopyFrom(const MessageOfCommunity& from) @@ -3138,27 +3572,23 @@ namespace protobuf MergeFrom(from); } - PROTOBUF_NOINLINE bool MessageOfCommunity::IsInitialized() const + bool MessageOfCommunity::IsInitialized() const { return true; } - ::_pbi::CachedSize* MessageOfCommunity::AccessCachedSize() const - { - return &_impl_._cached_size_; - } - void MessageOfCommunity::InternalSwap(MessageOfCommunity* PROTOBUF_RESTRICT other) + void MessageOfCommunity::InternalSwap(MessageOfCommunity* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::google::protobuf::internal::memswap< + ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(MessageOfCommunity, _impl_.hp_) + sizeof(MessageOfCommunity::_impl_.hp_) - PROTOBUF_FIELD_OFFSET(MessageOfCommunity, _impl_.x_)>( reinterpret_cast(&_impl_.x_), reinterpret_cast(&other->_impl_.x_) ); } - ::google::protobuf::Metadata MessageOfCommunity::GetMetadata() const + ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfCommunity::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[4] @@ -3171,111 +3601,160 @@ namespace protobuf public: }; - MessageOfFort::MessageOfFort(::google::protobuf::Arena* arena) : - ::google::protobuf::Message(arena) + MessageOfFort::MessageOfFort(::PROTOBUF_NAMESPACE_ID::Arena* arena) : + ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfFort) } - MessageOfFort::MessageOfFort( - ::google::protobuf::Arena* arena, const MessageOfFort& from - ) : - MessageOfFort(arena) - { - MergeFrom(from); - } - inline PROTOBUF_NDEBUG_INLINE MessageOfFort::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena - ) : - _cached_size_{0} + MessageOfFort::MessageOfFort(const MessageOfFort& from) : + ::PROTOBUF_NAMESPACE_ID::Message(), + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>( + from._internal_metadata_ + ); + // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfFort) } inline void MessageOfFort::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, x_), 0, offsetof(Impl_, hp_) - offsetof(Impl_, x_) + sizeof(Impl_::hp_)); + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.x_){0} + + , + decltype(_impl_.y_){0} + + , + decltype(_impl_.team_id_){::int64_t{0}} + + , + decltype(_impl_.hp_){0} + + , + /*decltype(_impl_._cached_size_)*/ {}}; } + MessageOfFort::~MessageOfFort() { // @@protoc_insertion_point(destructor:protobuf.MessageOfFort) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) + { + (void)arena; + return; + } SharedDtor(); } + inline void MessageOfFort::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + ABSL_DCHECK(GetArenaForAllocation() == nullptr); } - PROTOBUF_NOINLINE void MessageOfFort::Clear() + void MessageOfFort::SetCachedSize(int size) const + { + _impl_._cached_size_.Set(size); + } + + void MessageOfFort::Clear() { // @@protoc_insertion_point(message_clear_start:protobuf.MessageOfFort) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; ::memset(&_impl_.x_, 0, static_cast<::size_t>(reinterpret_cast(&_impl_.hp_) - reinterpret_cast(&_impl_.x_)) + sizeof(_impl_.hp_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - const char* MessageOfFort::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx - ) + const char* MessageOfFort::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +#define CHK_(x) \ + if (PROTOBUF_PREDICT_FALSE(!(x))) \ + goto failure + while (!ctx->Done(&ptr)) + { + ::uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) + { + // int32 x = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) + { + _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + // int32 y = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) + { + _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + // int32 hp = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) + { + _impl_.hp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + // int64 team_id = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 32)) + { + _impl_.team_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) + { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, + ctx + ); + CHK_(ptr != nullptr); + } // while + message_done: return ptr; + failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<2, 4, 0, 0, 2> MessageOfFort::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 4, - 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967280, // skipmap - offsetof(decltype(_table_), field_entries), - 4, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_MessageOfFort_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, - {{ - // int64 team_id = 4; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(MessageOfFort, _impl_.team_id_), 63>(), - {32, 63, 0, PROTOBUF_FIELD_OFFSET(MessageOfFort, _impl_.team_id_)}}, - // int32 x = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MessageOfFort, _impl_.x_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(MessageOfFort, _impl_.x_)}}, - // int32 y = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MessageOfFort, _impl_.y_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(MessageOfFort, _impl_.y_)}}, - // int32 hp = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MessageOfFort, _impl_.hp_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(MessageOfFort, _impl_.hp_)}}, - }}, - {{65535, 65535}}, - {{ - // int32 x = 1; - {PROTOBUF_FIELD_OFFSET(MessageOfFort, _impl_.x_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - // int32 y = 2; - {PROTOBUF_FIELD_OFFSET(MessageOfFort, _impl_.y_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - // int32 hp = 3; - {PROTOBUF_FIELD_OFFSET(MessageOfFort, _impl_.hp_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - // int64 team_id = 4; - {PROTOBUF_FIELD_OFFSET(MessageOfFort, _impl_.team_id_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt64)}, - }}, - // no aux_entries - {{}}, - }; - ::uint8_t* MessageOfFort::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream ) const { // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfFort) @@ -3285,45 +3764,44 @@ namespace protobuf // int32 x = 1; if (this->_internal_x() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<1>( - stream, this->_internal_x(), target - ); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray( + 1, this->_internal_x(), target + ); } // int32 y = 2; if (this->_internal_y() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<2>( - stream, this->_internal_y(), target - ); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray( + 2, this->_internal_y(), target + ); } // int32 hp = 3; if (this->_internal_hp() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<3>( - stream, this->_internal_hp(), target - ); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray( + 3, this->_internal_hp(), target + ); } // int64 team_id = 4; if (this->_internal_team_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64ToArrayWithField<4>( - stream, this->_internal_team_id(), target - ); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray( + 4, this->_internal_team_id(), target + ); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream - ); + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream + ); } // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfFort) return target; @@ -3373,16 +3851,15 @@ namespace protobuf return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } - const ::google::protobuf::Message::ClassData MessageOfFort::_class_data_ = { - MessageOfFort::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor - }; - const ::google::protobuf::Message::ClassData* MessageOfFort::GetClassData() const + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfFort::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + MessageOfFort::MergeImpl}; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfFort::GetClassData() const { return &_class_data_; } - void MessageOfFort::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) + void MessageOfFort::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); @@ -3407,7 +3884,7 @@ namespace protobuf { _this->_internal_set_hp(from._internal_hp()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MessageOfFort::CopyFrom(const MessageOfFort& from) @@ -3419,27 +3896,23 @@ namespace protobuf MergeFrom(from); } - PROTOBUF_NOINLINE bool MessageOfFort::IsInitialized() const + bool MessageOfFort::IsInitialized() const { return true; } - ::_pbi::CachedSize* MessageOfFort::AccessCachedSize() const - { - return &_impl_._cached_size_; - } - void MessageOfFort::InternalSwap(MessageOfFort* PROTOBUF_RESTRICT other) + void MessageOfFort::InternalSwap(MessageOfFort* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::google::protobuf::internal::memswap< + ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(MessageOfFort, _impl_.hp_) + sizeof(MessageOfFort::_impl_.hp_) - PROTOBUF_FIELD_OFFSET(MessageOfFort, _impl_.x_)>( reinterpret_cast(&_impl_.x_), reinterpret_cast(&other->_impl_.x_) ); } - ::google::protobuf::Metadata MessageOfFort::GetMetadata() const + ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfFort::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[5] @@ -3452,107 +3925,145 @@ namespace protobuf public: }; - MessageOfWormhole::MessageOfWormhole(::google::protobuf::Arena* arena) : - ::google::protobuf::Message(arena) + MessageOfWormhole::MessageOfWormhole(::PROTOBUF_NAMESPACE_ID::Arena* arena) : + ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfWormhole) } - MessageOfWormhole::MessageOfWormhole( - ::google::protobuf::Arena* arena, const MessageOfWormhole& from - ) : - MessageOfWormhole(arena) - { - MergeFrom(from); - } - inline PROTOBUF_NDEBUG_INLINE MessageOfWormhole::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena - ) : - _cached_size_{0} + MessageOfWormhole::MessageOfWormhole(const MessageOfWormhole& from) : + ::PROTOBUF_NAMESPACE_ID::Message(), + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>( + from._internal_metadata_ + ); + // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfWormhole) } inline void MessageOfWormhole::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, x_), 0, offsetof(Impl_, hp_) - offsetof(Impl_, x_) + sizeof(Impl_::hp_)); + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.x_){0} + + , + decltype(_impl_.y_){0} + + , + decltype(_impl_.hp_){0} + + , + /*decltype(_impl_._cached_size_)*/ {}}; } + MessageOfWormhole::~MessageOfWormhole() { // @@protoc_insertion_point(destructor:protobuf.MessageOfWormhole) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) + { + (void)arena; + return; + } SharedDtor(); } + inline void MessageOfWormhole::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + } + + void MessageOfWormhole::SetCachedSize(int size) const + { + _impl_._cached_size_.Set(size); } - PROTOBUF_NOINLINE void MessageOfWormhole::Clear() + void MessageOfWormhole::Clear() { // @@protoc_insertion_point(message_clear_start:protobuf.MessageOfWormhole) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; ::memset(&_impl_.x_, 0, static_cast<::size_t>(reinterpret_cast(&_impl_.hp_) - reinterpret_cast(&_impl_.x_)) + sizeof(_impl_.hp_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - const char* MessageOfWormhole::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx - ) + const char* MessageOfWormhole::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +#define CHK_(x) \ + if (PROTOBUF_PREDICT_FALSE(!(x))) \ + goto failure + while (!ctx->Done(&ptr)) + { + ::uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) + { + // int32 x = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) + { + _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + // int32 y = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) + { + _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + // int32 hp = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) + { + _impl_.hp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) + { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, + ctx + ); + CHK_(ptr != nullptr); + } // while + message_done: return ptr; + failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<2, 3, 0, 0, 2> MessageOfWormhole::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 3, - 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_MessageOfWormhole_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, - {{ - {::_pbi::TcParser::MiniParse, {}}, - // int32 x = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MessageOfWormhole, _impl_.x_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(MessageOfWormhole, _impl_.x_)}}, - // int32 y = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MessageOfWormhole, _impl_.y_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(MessageOfWormhole, _impl_.y_)}}, - // int32 hp = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MessageOfWormhole, _impl_.hp_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(MessageOfWormhole, _impl_.hp_)}}, - }}, - {{65535, 65535}}, - {{ - // int32 x = 1; - {PROTOBUF_FIELD_OFFSET(MessageOfWormhole, _impl_.x_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - // int32 y = 2; - {PROTOBUF_FIELD_OFFSET(MessageOfWormhole, _impl_.y_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - // int32 hp = 3; - {PROTOBUF_FIELD_OFFSET(MessageOfWormhole, _impl_.hp_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - }}, - // no aux_entries - {{}}, - }; - ::uint8_t* MessageOfWormhole::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream ) const { // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfWormhole) @@ -3562,36 +4073,35 @@ namespace protobuf // int32 x = 1; if (this->_internal_x() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<1>( - stream, this->_internal_x(), target - ); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray( + 1, this->_internal_x(), target + ); } // int32 y = 2; if (this->_internal_y() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<2>( - stream, this->_internal_y(), target - ); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray( + 2, this->_internal_y(), target + ); } // int32 hp = 3; if (this->_internal_hp() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<3>( - stream, this->_internal_hp(), target - ); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray( + 3, this->_internal_hp(), target + ); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream - ); + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream + ); } // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfWormhole) return target; @@ -3633,16 +4143,15 @@ namespace protobuf return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } - const ::google::protobuf::Message::ClassData MessageOfWormhole::_class_data_ = { - MessageOfWormhole::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor - }; - const ::google::protobuf::Message::ClassData* MessageOfWormhole::GetClassData() const + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfWormhole::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + MessageOfWormhole::MergeImpl}; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfWormhole::GetClassData() const { return &_class_data_; } - void MessageOfWormhole::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) + void MessageOfWormhole::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); @@ -3663,7 +4172,7 @@ namespace protobuf { _this->_internal_set_hp(from._internal_hp()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MessageOfWormhole::CopyFrom(const MessageOfWormhole& from) @@ -3675,27 +4184,23 @@ namespace protobuf MergeFrom(from); } - PROTOBUF_NOINLINE bool MessageOfWormhole::IsInitialized() const + bool MessageOfWormhole::IsInitialized() const { return true; } - ::_pbi::CachedSize* MessageOfWormhole::AccessCachedSize() const - { - return &_impl_._cached_size_; - } - void MessageOfWormhole::InternalSwap(MessageOfWormhole* PROTOBUF_RESTRICT other) + void MessageOfWormhole::InternalSwap(MessageOfWormhole* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::google::protobuf::internal::memswap< + ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(MessageOfWormhole, _impl_.hp_) + sizeof(MessageOfWormhole::_impl_.hp_) - PROTOBUF_FIELD_OFFSET(MessageOfWormhole, _impl_.x_)>( reinterpret_cast(&_impl_.x_), reinterpret_cast(&other->_impl_.x_) ); } - ::google::protobuf::Metadata MessageOfWormhole::GetMetadata() const + ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfWormhole::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[6] @@ -3708,107 +4213,145 @@ namespace protobuf public: }; - MessageOfResource::MessageOfResource(::google::protobuf::Arena* arena) : - ::google::protobuf::Message(arena) + MessageOfResource::MessageOfResource(::PROTOBUF_NAMESPACE_ID::Arena* arena) : + ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfResource) } - MessageOfResource::MessageOfResource( - ::google::protobuf::Arena* arena, const MessageOfResource& from - ) : - MessageOfResource(arena) - { - MergeFrom(from); - } - inline PROTOBUF_NDEBUG_INLINE MessageOfResource::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena - ) : - _cached_size_{0} + MessageOfResource::MessageOfResource(const MessageOfResource& from) : + ::PROTOBUF_NAMESPACE_ID::Message(), + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>( + from._internal_metadata_ + ); + // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfResource) } inline void MessageOfResource::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, x_), 0, offsetof(Impl_, progress_) - offsetof(Impl_, x_) + sizeof(Impl_::progress_)); + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.x_){0} + + , + decltype(_impl_.y_){0} + + , + decltype(_impl_.progress_){0} + + , + /*decltype(_impl_._cached_size_)*/ {}}; } + MessageOfResource::~MessageOfResource() { // @@protoc_insertion_point(destructor:protobuf.MessageOfResource) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) + { + (void)arena; + return; + } SharedDtor(); } + inline void MessageOfResource::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + } + + void MessageOfResource::SetCachedSize(int size) const + { + _impl_._cached_size_.Set(size); } - PROTOBUF_NOINLINE void MessageOfResource::Clear() + void MessageOfResource::Clear() { // @@protoc_insertion_point(message_clear_start:protobuf.MessageOfResource) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; ::memset(&_impl_.x_, 0, static_cast<::size_t>(reinterpret_cast(&_impl_.progress_) - reinterpret_cast(&_impl_.x_)) + sizeof(_impl_.progress_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - const char* MessageOfResource::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx - ) + const char* MessageOfResource::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +#define CHK_(x) \ + if (PROTOBUF_PREDICT_FALSE(!(x))) \ + goto failure + while (!ctx->Done(&ptr)) + { + ::uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) + { + // int32 x = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) + { + _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + // int32 y = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) + { + _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + // int32 progress = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) + { + _impl_.progress_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) + { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, + ctx + ); + CHK_(ptr != nullptr); + } // while + message_done: return ptr; + failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<2, 3, 0, 0, 2> MessageOfResource::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 3, - 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_MessageOfResource_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, - {{ - {::_pbi::TcParser::MiniParse, {}}, - // int32 x = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MessageOfResource, _impl_.x_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(MessageOfResource, _impl_.x_)}}, - // int32 y = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MessageOfResource, _impl_.y_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(MessageOfResource, _impl_.y_)}}, - // int32 progress = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MessageOfResource, _impl_.progress_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(MessageOfResource, _impl_.progress_)}}, - }}, - {{65535, 65535}}, - {{ - // int32 x = 1; - {PROTOBUF_FIELD_OFFSET(MessageOfResource, _impl_.x_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - // int32 y = 2; - {PROTOBUF_FIELD_OFFSET(MessageOfResource, _impl_.y_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - // int32 progress = 3; - {PROTOBUF_FIELD_OFFSET(MessageOfResource, _impl_.progress_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - }}, - // no aux_entries - {{}}, - }; - ::uint8_t* MessageOfResource::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream ) const { // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfResource) @@ -3818,36 +4361,35 @@ namespace protobuf // int32 x = 1; if (this->_internal_x() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<1>( - stream, this->_internal_x(), target - ); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray( + 1, this->_internal_x(), target + ); } // int32 y = 2; if (this->_internal_y() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<2>( - stream, this->_internal_y(), target - ); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray( + 2, this->_internal_y(), target + ); } // int32 progress = 3; if (this->_internal_progress() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<3>( - stream, this->_internal_progress(), target - ); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray( + 3, this->_internal_progress(), target + ); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream - ); + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream + ); } // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfResource) return target; @@ -3889,16 +4431,15 @@ namespace protobuf return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } - const ::google::protobuf::Message::ClassData MessageOfResource::_class_data_ = { - MessageOfResource::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor - }; - const ::google::protobuf::Message::ClassData* MessageOfResource::GetClassData() const + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfResource::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + MessageOfResource::MergeImpl}; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfResource::GetClassData() const { return &_class_data_; } - void MessageOfResource::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) + void MessageOfResource::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); @@ -3919,7 +4460,7 @@ namespace protobuf { _this->_internal_set_progress(from._internal_progress()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MessageOfResource::CopyFrom(const MessageOfResource& from) @@ -3931,27 +4472,23 @@ namespace protobuf MergeFrom(from); } - PROTOBUF_NOINLINE bool MessageOfResource::IsInitialized() const + bool MessageOfResource::IsInitialized() const { return true; } - ::_pbi::CachedSize* MessageOfResource::AccessCachedSize() const - { - return &_impl_._cached_size_; - } - void MessageOfResource::InternalSwap(MessageOfResource* PROTOBUF_RESTRICT other) + void MessageOfResource::InternalSwap(MessageOfResource* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::google::protobuf::internal::memswap< + ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(MessageOfResource, _impl_.progress_) + sizeof(MessageOfResource::_impl_.progress_) - PROTOBUF_FIELD_OFFSET(MessageOfResource, _impl_.x_)>( reinterpret_cast(&_impl_.x_), reinterpret_cast(&other->_impl_.x_) ); } - ::google::protobuf::Metadata MessageOfResource::GetMetadata() const + ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfResource::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[7] @@ -3964,111 +4501,160 @@ namespace protobuf public: }; - MessageOfHome::MessageOfHome(::google::protobuf::Arena* arena) : - ::google::protobuf::Message(arena) + MessageOfHome::MessageOfHome(::PROTOBUF_NAMESPACE_ID::Arena* arena) : + ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfHome) } - MessageOfHome::MessageOfHome( - ::google::protobuf::Arena* arena, const MessageOfHome& from - ) : - MessageOfHome(arena) - { - MergeFrom(from); - } - inline PROTOBUF_NDEBUG_INLINE MessageOfHome::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena - ) : - _cached_size_{0} + MessageOfHome::MessageOfHome(const MessageOfHome& from) : + ::PROTOBUF_NAMESPACE_ID::Message(), + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>( + from._internal_metadata_ + ); + // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfHome) } inline void MessageOfHome::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, x_), 0, offsetof(Impl_, hp_) - offsetof(Impl_, x_) + sizeof(Impl_::hp_)); + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.x_){0} + + , + decltype(_impl_.y_){0} + + , + decltype(_impl_.team_id_){::int64_t{0}} + + , + decltype(_impl_.hp_){0} + + , + /*decltype(_impl_._cached_size_)*/ {}}; } + MessageOfHome::~MessageOfHome() { // @@protoc_insertion_point(destructor:protobuf.MessageOfHome) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) + { + (void)arena; + return; + } SharedDtor(); } + inline void MessageOfHome::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + } + + void MessageOfHome::SetCachedSize(int size) const + { + _impl_._cached_size_.Set(size); } - PROTOBUF_NOINLINE void MessageOfHome::Clear() + void MessageOfHome::Clear() { // @@protoc_insertion_point(message_clear_start:protobuf.MessageOfHome) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; ::memset(&_impl_.x_, 0, static_cast<::size_t>(reinterpret_cast(&_impl_.hp_) - reinterpret_cast(&_impl_.x_)) + sizeof(_impl_.hp_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - const char* MessageOfHome::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx - ) + const char* MessageOfHome::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +#define CHK_(x) \ + if (PROTOBUF_PREDICT_FALSE(!(x))) \ + goto failure + while (!ctx->Done(&ptr)) + { + ::uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) + { + // int32 x = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) + { + _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + // int32 y = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) + { + _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + // int32 hp = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) + { + _impl_.hp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + // int64 team_id = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 32)) + { + _impl_.team_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) + { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, + ctx + ); + CHK_(ptr != nullptr); + } // while + message_done: return ptr; + failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<2, 4, 0, 0, 2> MessageOfHome::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 4, - 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967280, // skipmap - offsetof(decltype(_table_), field_entries), - 4, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_MessageOfHome_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, - {{ - // int64 team_id = 4; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(MessageOfHome, _impl_.team_id_), 63>(), - {32, 63, 0, PROTOBUF_FIELD_OFFSET(MessageOfHome, _impl_.team_id_)}}, - // int32 x = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MessageOfHome, _impl_.x_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(MessageOfHome, _impl_.x_)}}, - // int32 y = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MessageOfHome, _impl_.y_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(MessageOfHome, _impl_.y_)}}, - // int32 hp = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MessageOfHome, _impl_.hp_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(MessageOfHome, _impl_.hp_)}}, - }}, - {{65535, 65535}}, - {{ - // int32 x = 1; - {PROTOBUF_FIELD_OFFSET(MessageOfHome, _impl_.x_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - // int32 y = 2; - {PROTOBUF_FIELD_OFFSET(MessageOfHome, _impl_.y_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - // int32 hp = 3; - {PROTOBUF_FIELD_OFFSET(MessageOfHome, _impl_.hp_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - // int64 team_id = 4; - {PROTOBUF_FIELD_OFFSET(MessageOfHome, _impl_.team_id_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt64)}, - }}, - // no aux_entries - {{}}, - }; - ::uint8_t* MessageOfHome::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream ) const { // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfHome) @@ -4078,45 +4664,44 @@ namespace protobuf // int32 x = 1; if (this->_internal_x() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<1>( - stream, this->_internal_x(), target - ); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray( + 1, this->_internal_x(), target + ); } // int32 y = 2; if (this->_internal_y() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<2>( - stream, this->_internal_y(), target - ); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray( + 2, this->_internal_y(), target + ); } // int32 hp = 3; if (this->_internal_hp() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<3>( - stream, this->_internal_hp(), target - ); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray( + 3, this->_internal_hp(), target + ); } // int64 team_id = 4; if (this->_internal_team_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64ToArrayWithField<4>( - stream, this->_internal_team_id(), target - ); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray( + 4, this->_internal_team_id(), target + ); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream - ); + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream + ); } // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfHome) return target; @@ -4166,16 +4751,15 @@ namespace protobuf return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } - const ::google::protobuf::Message::ClassData MessageOfHome::_class_data_ = { - MessageOfHome::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor - }; - const ::google::protobuf::Message::ClassData* MessageOfHome::GetClassData() const + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfHome::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + MessageOfHome::MergeImpl}; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfHome::GetClassData() const { return &_class_data_; } - void MessageOfHome::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) + void MessageOfHome::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); @@ -4200,7 +4784,7 @@ namespace protobuf { _this->_internal_set_hp(from._internal_hp()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MessageOfHome::CopyFrom(const MessageOfHome& from) @@ -4212,27 +4796,23 @@ namespace protobuf MergeFrom(from); } - PROTOBUF_NOINLINE bool MessageOfHome::IsInitialized() const + bool MessageOfHome::IsInitialized() const { return true; } - ::_pbi::CachedSize* MessageOfHome::AccessCachedSize() const - { - return &_impl_._cached_size_; - } - void MessageOfHome::InternalSwap(MessageOfHome* PROTOBUF_RESTRICT other) + void MessageOfHome::InternalSwap(MessageOfHome* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::google::protobuf::internal::memswap< + ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(MessageOfHome, _impl_.hp_) + sizeof(MessageOfHome::_impl_.hp_) - PROTOBUF_FIELD_OFFSET(MessageOfHome, _impl_.x_)>( reinterpret_cast(&_impl_.x_), reinterpret_cast(&other->_impl_.x_) ); } - ::google::protobuf::Metadata MessageOfHome::GetMetadata() const + ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfHome::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[8] @@ -4245,114 +4825,127 @@ namespace protobuf public: }; - MessageOfMap_Row::MessageOfMap_Row(::google::protobuf::Arena* arena) : - ::google::protobuf::Message(arena) + MessageOfMap_Row::MessageOfMap_Row(::PROTOBUF_NAMESPACE_ID::Arena* arena) : + ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfMap.Row) } - inline PROTOBUF_NDEBUG_INLINE MessageOfMap_Row::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, const Impl_& from - ) : - cols_{visibility, arena, from.cols_}, - _cols_cached_byte_size_{0}, - _cached_size_{0} - { - } - - MessageOfMap_Row::MessageOfMap_Row( - ::google::protobuf::Arena* arena, - const MessageOfMap_Row& from - ) : - ::google::protobuf::Message(arena) + MessageOfMap_Row::MessageOfMap_Row(const MessageOfMap_Row& from) : + ::PROTOBUF_NAMESPACE_ID::Message() { MessageOfMap_Row* const _this = this; (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_ - ); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_{ + decltype(_impl_.cols_){from._internal_cols()}, /*decltype(_impl_._cols_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 PROTOBUF_NDEBUG_INLINE MessageOfMap_Row::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena - ) : - cols_{visibility, arena}, - _cols_cached_byte_size_{0}, - _cached_size_{0} - { - } inline void MessageOfMap_Row::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.cols_){arena}, /*decltype(_impl_._cols_cached_byte_size_)*/ {0} + + , + /*decltype(_impl_._cached_size_)*/ {}}; } + MessageOfMap_Row::~MessageOfMap_Row() { // @@protoc_insertion_point(destructor:protobuf.MessageOfMap.Row) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) + { + (void)arena; + return; + } SharedDtor(); } + inline void MessageOfMap_Row::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + _internal_mutable_cols()->~RepeatedField(); + } + + void MessageOfMap_Row::SetCachedSize(int size) const + { + _impl_._cached_size_.Set(size); } - PROTOBUF_NOINLINE void MessageOfMap_Row::Clear() + void MessageOfMap_Row::Clear() { // @@protoc_insertion_point(message_clear_start:protobuf.MessageOfMap.Row) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; - _impl_.cols_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + _internal_mutable_cols()->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, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +#define CHK_(x) \ + if (PROTOBUF_PREDICT_FALSE(!(x))) \ + goto failure + while (!ctx->Done(&ptr)) + { + ::uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) + { + // repeated .protobuf.PlaceType cols = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) + { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedEnumParser(_internal_mutable_cols(), ptr, ctx); + CHK_(ptr); + } + else if (static_cast<::uint8_t>(tag) == 8) + { + ::int32_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + _internal_add_cols(static_cast<::protobuf::PlaceType>(val)); + } + else + { + goto handle_unusual; + } + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) + { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, + ctx + ); + CHK_(ptr != nullptr); + } // while + message_done: return ptr; + failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 0, 0, 2> MessageOfMap_Row::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, - 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_MessageOfMap_Row_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, - {{ - // repeated .protobuf.PlaceType cols = 1; - {::_pbi::TcParser::FastV32P1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(MessageOfMap_Row, _impl_.cols_)}}, - }}, - {{65535, 65535}}, - {{ - // repeated .protobuf.PlaceType cols = 1; - {PROTOBUF_FIELD_OFFSET(MessageOfMap_Row, _impl_.cols_), 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedOpenEnum)}, - }}, - // no aux_entries - {{}}, - }; - ::uint8_t* MessageOfMap_Row::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream ) const { // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfMap.Row) @@ -4361,7 +4954,7 @@ namespace protobuf // repeated .protobuf.PlaceType cols = 1; { - std::size_t byte_size = _impl_._cols_cached_byte_size_.Get(); + int byte_size = _impl_._cols_cached_byte_size_.Get(); if (byte_size > 0) { target = stream->WriteEnumPacked(1, _internal_cols(), byte_size, target); @@ -4370,10 +4963,9 @@ namespace protobuf if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream - ); + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream + ); } // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfMap.Row) return target; @@ -4396,7 +4988,7 @@ namespace protobuf for (std::size_t i = 0; i < count; ++i) { data_size += ::_pbi::WireFormatLite::EnumSize( - this->_internal_cols().Get(static_cast(i)) + this->_internal_cols(static_cast(i)) ); } total_size += data_size; @@ -4409,19 +5001,19 @@ namespace protobuf } _impl_._cols_cached_byte_size_.Set(::_pbi::ToCachedSize(data_size)); } + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } - const ::google::protobuf::Message::ClassData MessageOfMap_Row::_class_data_ = { - MessageOfMap_Row::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor - }; - const ::google::protobuf::Message::ClassData* MessageOfMap_Row::GetClassData() const + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfMap_Row::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + MessageOfMap_Row::MergeImpl}; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfMap_Row::GetClassData() const { return &_class_data_; } - void MessageOfMap_Row::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) + void MessageOfMap_Row::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); @@ -4431,7 +5023,7 @@ namespace protobuf (void)cached_has_bits; _this->_internal_mutable_cols()->MergeFrom(from._internal_cols()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MessageOfMap_Row::CopyFrom(const MessageOfMap_Row& from) @@ -4443,23 +5035,21 @@ namespace protobuf MergeFrom(from); } - PROTOBUF_NOINLINE bool MessageOfMap_Row::IsInitialized() const + bool MessageOfMap_Row::IsInitialized() const { return true; } - ::_pbi::CachedSize* MessageOfMap_Row::AccessCachedSize() const - { - return &_impl_._cached_size_; - } - void MessageOfMap_Row::InternalSwap(MessageOfMap_Row* PROTOBUF_RESTRICT other) + void MessageOfMap_Row::InternalSwap(MessageOfMap_Row* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.cols_.InternalSwap(&other->_impl_.cols_); + _internal_mutable_cols()->InternalSwap( + other->_internal_mutable_cols() + ); } - ::google::protobuf::Metadata MessageOfMap_Row::GetMetadata() const + ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfMap_Row::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[9] @@ -4472,128 +5062,160 @@ namespace protobuf public: }; - MessageOfMap::MessageOfMap(::google::protobuf::Arena* arena) : - ::google::protobuf::Message(arena) + MessageOfMap::MessageOfMap(::PROTOBUF_NAMESPACE_ID::Arena* arena) : + ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfMap) } - inline PROTOBUF_NDEBUG_INLINE MessageOfMap::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, const Impl_& from - ) : - rows_{visibility, arena, from.rows_}, - _cached_size_{0} - { - } - - MessageOfMap::MessageOfMap( - ::google::protobuf::Arena* arena, - const MessageOfMap& from - ) : - ::google::protobuf::Message(arena) + MessageOfMap::MessageOfMap(const MessageOfMap& from) : + ::PROTOBUF_NAMESPACE_ID::Message() { MessageOfMap* const _this = this; (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_ - ); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::memcpy(reinterpret_cast(&_impl_) + offsetof(Impl_, height_), reinterpret_cast(&from._impl_) + offsetof(Impl_, height_), offsetof(Impl_, width_) - offsetof(Impl_, height_) + sizeof(Impl_::width_)); + new (&_impl_) Impl_{ + decltype(_impl_.rows_){from._impl_.rows_}, decltype(_impl_.height_){} + + , + decltype(_impl_.width_){} + , + /*decltype(_impl_._cached_size_)*/ {}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::memcpy(&_impl_.height_, &from._impl_.height_, static_cast<::size_t>(reinterpret_cast(&_impl_.width_) - reinterpret_cast(&_impl_.height_)) + sizeof(_impl_.width_)); // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfMap) } - inline PROTOBUF_NDEBUG_INLINE MessageOfMap::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena - ) : - rows_{visibility, arena}, - _cached_size_{0} - { - } inline void MessageOfMap::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, height_), 0, offsetof(Impl_, width_) - offsetof(Impl_, height_) + sizeof(Impl_::width_)); + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.rows_){arena}, decltype(_impl_.height_){0u} + + , + decltype(_impl_.width_){0u} + + , + /*decltype(_impl_._cached_size_)*/ {}}; } + MessageOfMap::~MessageOfMap() { // @@protoc_insertion_point(destructor:protobuf.MessageOfMap) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) + { + (void)arena; + return; + } SharedDtor(); } + inline void MessageOfMap::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + _internal_mutable_rows()->~RepeatedPtrField(); + } + + void MessageOfMap::SetCachedSize(int size) const + { + _impl_._cached_size_.Set(size); } - PROTOBUF_NOINLINE void MessageOfMap::Clear() + void MessageOfMap::Clear() { // @@protoc_insertion_point(message_clear_start:protobuf.MessageOfMap) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; - _impl_.rows_.Clear(); + _internal_mutable_rows()->Clear(); ::memset(&_impl_.height_, 0, static_cast<::size_t>(reinterpret_cast(&_impl_.width_) - reinterpret_cast(&_impl_.height_)) + sizeof(_impl_.width_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - const char* MessageOfMap::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx - ) + const char* MessageOfMap::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +#define CHK_(x) \ + if (PROTOBUF_PREDICT_FALSE(!(x))) \ + goto failure + while (!ctx->Done(&ptr)) + { + ::uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) + { + // uint32 height = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) + { + _impl_.height_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + // uint32 width = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) + { + _impl_.width_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + // repeated .protobuf.MessageOfMap.Row rows = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) + { + ptr -= 1; + do + { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_rows(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) + break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr)); + } + else + { + goto handle_unusual; + } + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) + { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, + ctx + ); + CHK_(ptr != nullptr); + } // while + message_done: return ptr; + failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<2, 3, 1, 0, 2> MessageOfMap::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 3, - 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_MessageOfMap_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, - {{ - {::_pbi::TcParser::MiniParse, {}}, - // uint32 height = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MessageOfMap, _impl_.height_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(MessageOfMap, _impl_.height_)}}, - // uint32 width = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MessageOfMap, _impl_.width_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(MessageOfMap, _impl_.width_)}}, - // repeated .protobuf.MessageOfMap.Row rows = 3; - {::_pbi::TcParser::FastMtR1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(MessageOfMap, _impl_.rows_)}}, - }}, - {{65535, 65535}}, - {{ - // uint32 height = 1; - {PROTOBUF_FIELD_OFFSET(MessageOfMap, _impl_.height_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, - // uint32 width = 2; - {PROTOBUF_FIELD_OFFSET(MessageOfMap, _impl_.width_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, - // repeated .protobuf.MessageOfMap.Row rows = 3; - {PROTOBUF_FIELD_OFFSET(MessageOfMap, _impl_.rows_), 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, - {{ - {::_pbi::TcParser::GetTable<::protobuf::MessageOfMap_Row>()}, - }}, - {{}}, - }; - ::uint8_t* MessageOfMap::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream ) const { // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfMap) @@ -4624,17 +5246,16 @@ namespace protobuf i < n; i++) { - const auto& repfield = this->_internal_rows().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_rows(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(3, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream - ); + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream + ); } // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfMap) return target; @@ -4654,8 +5275,9 @@ namespace protobuf for (const auto& msg : this->_internal_rows()) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // uint32 height = 1; if (this->_internal_height() != 0) { @@ -4675,16 +5297,15 @@ namespace protobuf return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } - const ::google::protobuf::Message::ClassData MessageOfMap::_class_data_ = { - MessageOfMap::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor - }; - const ::google::protobuf::Message::ClassData* MessageOfMap::GetClassData() const + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfMap::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + MessageOfMap::MergeImpl}; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfMap::GetClassData() const { return &_class_data_; } - void MessageOfMap::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) + void MessageOfMap::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); @@ -4693,9 +5314,7 @@ namespace protobuf ::uint32_t cached_has_bits = 0; (void)cached_has_bits; - _this->_internal_mutable_rows()->MergeFrom( - from._internal_rows() - ); + _this->_internal_mutable_rows()->MergeFrom(from._internal_rows()); if (from._internal_height() != 0) { _this->_internal_set_height(from._internal_height()); @@ -4704,7 +5323,7 @@ namespace protobuf { _this->_internal_set_width(from._internal_width()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MessageOfMap::CopyFrom(const MessageOfMap& from) @@ -4716,28 +5335,24 @@ namespace protobuf MergeFrom(from); } - PROTOBUF_NOINLINE bool MessageOfMap::IsInitialized() const + bool MessageOfMap::IsInitialized() const { return true; } - ::_pbi::CachedSize* MessageOfMap::AccessCachedSize() const - { - return &_impl_._cached_size_; - } - void MessageOfMap::InternalSwap(MessageOfMap* PROTOBUF_RESTRICT other) + void MessageOfMap::InternalSwap(MessageOfMap* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.rows_.InternalSwap(&other->_impl_.rows_); - ::google::protobuf::internal::memswap< + _internal_mutable_rows()->InternalSwap(other->_internal_mutable_rows()); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(MessageOfMap, _impl_.width_) + sizeof(MessageOfMap::_impl_.width_) - PROTOBUF_FIELD_OFFSET(MessageOfMap, _impl_.height_)>( reinterpret_cast(&_impl_.height_), reinterpret_cast(&other->_impl_.height_) ); } - ::google::protobuf::Metadata MessageOfMap::GetMetadata() const + ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfMap::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[10] @@ -4750,111 +5365,175 @@ namespace protobuf public: }; - MessageOfTeam::MessageOfTeam(::google::protobuf::Arena* arena) : - ::google::protobuf::Message(arena) + MessageOfTeam::MessageOfTeam(::PROTOBUF_NAMESPACE_ID::Arena* arena) : + ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfTeam) } - MessageOfTeam::MessageOfTeam( - ::google::protobuf::Arena* arena, const MessageOfTeam& from - ) : - MessageOfTeam(arena) - { - MergeFrom(from); - } - inline PROTOBUF_NDEBUG_INLINE MessageOfTeam::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena - ) : - _cached_size_{0} + MessageOfTeam::MessageOfTeam(const MessageOfTeam& from) : + ::PROTOBUF_NAMESPACE_ID::Message(), + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>( + from._internal_metadata_ + ); + // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfTeam) } inline void MessageOfTeam::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, team_id_), 0, offsetof(Impl_, money_) - offsetof(Impl_, team_id_) + sizeof(Impl_::money_)); + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.team_id_){::int64_t{0}} + + , + decltype(_impl_.player_id_){::int64_t{0}} + + , + decltype(_impl_.score_){0} + + , + decltype(_impl_.money_){0} + + , + decltype(_impl_.guid_){::int64_t{0}} + + , + /*decltype(_impl_._cached_size_)*/ {}}; } + MessageOfTeam::~MessageOfTeam() { // @@protoc_insertion_point(destructor:protobuf.MessageOfTeam) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) + { + (void)arena; + return; + } SharedDtor(); } + inline void MessageOfTeam::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + } + + void MessageOfTeam::SetCachedSize(int size) const + { + _impl_._cached_size_.Set(size); } - PROTOBUF_NOINLINE void MessageOfTeam::Clear() + void MessageOfTeam::Clear() { // @@protoc_insertion_point(message_clear_start:protobuf.MessageOfTeam) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; - ::memset(&_impl_.team_id_, 0, static_cast<::size_t>(reinterpret_cast(&_impl_.money_) - reinterpret_cast(&_impl_.team_id_)) + sizeof(_impl_.money_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::memset(&_impl_.team_id_, 0, static_cast<::size_t>(reinterpret_cast(&_impl_.guid_) - reinterpret_cast(&_impl_.team_id_)) + sizeof(_impl_.guid_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - const char* MessageOfTeam::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx - ) + const char* MessageOfTeam::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +#define CHK_(x) \ + if (PROTOBUF_PREDICT_FALSE(!(x))) \ + goto failure + while (!ctx->Done(&ptr)) + { + ::uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) + { + // int64 team_id = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) + { + _impl_.team_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + // int64 player_id = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) + { + _impl_.player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + // int32 score = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) + { + _impl_.score_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + // int32 money = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 32)) + { + _impl_.money_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + // int64 guid = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 40)) + { + _impl_.guid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) + { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, + ctx + ); + CHK_(ptr != nullptr); + } // while + message_done: return ptr; + failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<2, 4, 0, 0, 2> MessageOfTeam::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 4, - 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967280, // skipmap - offsetof(decltype(_table_), field_entries), - 4, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_MessageOfTeam_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, - {{ - // int32 money = 4; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MessageOfTeam, _impl_.money_), 63>(), - {32, 63, 0, PROTOBUF_FIELD_OFFSET(MessageOfTeam, _impl_.money_)}}, - // int64 team_id = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(MessageOfTeam, _impl_.team_id_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(MessageOfTeam, _impl_.team_id_)}}, - // int64 player_id = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(MessageOfTeam, _impl_.player_id_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(MessageOfTeam, _impl_.player_id_)}}, - // int32 score = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MessageOfTeam, _impl_.score_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(MessageOfTeam, _impl_.score_)}}, - }}, - {{65535, 65535}}, - {{ - // int64 team_id = 1; - {PROTOBUF_FIELD_OFFSET(MessageOfTeam, _impl_.team_id_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt64)}, - // int64 player_id = 2; - {PROTOBUF_FIELD_OFFSET(MessageOfTeam, _impl_.player_id_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt64)}, - // int32 score = 3; - {PROTOBUF_FIELD_OFFSET(MessageOfTeam, _impl_.score_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - // int32 money = 4; - {PROTOBUF_FIELD_OFFSET(MessageOfTeam, _impl_.money_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - }}, - // no aux_entries - {{}}, - }; - ::uint8_t* MessageOfTeam::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream ) const { // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfTeam) @@ -4864,45 +5543,53 @@ namespace protobuf // int64 team_id = 1; if (this->_internal_team_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64ToArrayWithField<1>( - stream, this->_internal_team_id(), target - ); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray( + 1, this->_internal_team_id(), target + ); } // int64 player_id = 2; if (this->_internal_player_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64ToArrayWithField<2>( - stream, this->_internal_player_id(), target - ); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray( + 2, this->_internal_player_id(), target + ); } // int32 score = 3; if (this->_internal_score() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<3>( - stream, this->_internal_score(), target - ); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray( + 3, this->_internal_score(), target + ); } // int32 money = 4; if (this->_internal_money() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<4>( - stream, this->_internal_money(), target - ); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray( + 4, this->_internal_money(), target + ); + } + + // int64 guid = 5; + if (this->_internal_guid() != 0) + { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray( + 5, this->_internal_guid(), target + ); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream - ); + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream + ); } // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfTeam) return target; @@ -4949,19 +5636,26 @@ namespace protobuf ); } + // int64 guid = 5; + if (this->_internal_guid() != 0) + { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this->_internal_guid() + ); + } + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } - const ::google::protobuf::Message::ClassData MessageOfTeam::_class_data_ = { - MessageOfTeam::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor - }; - const ::google::protobuf::Message::ClassData* MessageOfTeam::GetClassData() const + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfTeam::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + MessageOfTeam::MergeImpl}; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfTeam::GetClassData() const { return &_class_data_; } - void MessageOfTeam::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) + void MessageOfTeam::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); @@ -4986,7 +5680,11 @@ namespace protobuf { _this->_internal_set_money(from._internal_money()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_guid() != 0) + { + _this->_internal_set_guid(from._internal_guid()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MessageOfTeam::CopyFrom(const MessageOfTeam& from) @@ -4998,27 +5696,23 @@ namespace protobuf MergeFrom(from); } - PROTOBUF_NOINLINE bool MessageOfTeam::IsInitialized() const + bool MessageOfTeam::IsInitialized() const { return true; } - ::_pbi::CachedSize* MessageOfTeam::AccessCachedSize() const - { - return &_impl_._cached_size_; - } - void MessageOfTeam::InternalSwap(MessageOfTeam* PROTOBUF_RESTRICT other) + void MessageOfTeam::InternalSwap(MessageOfTeam* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(MessageOfTeam, _impl_.money_) + sizeof(MessageOfTeam::_impl_.money_) - PROTOBUF_FIELD_OFFSET(MessageOfTeam, _impl_.team_id_)>( + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(MessageOfTeam, _impl_.guid_) + sizeof(MessageOfTeam::_impl_.guid_) - PROTOBUF_FIELD_OFFSET(MessageOfTeam, _impl_.team_id_)>( reinterpret_cast(&_impl_.team_id_), reinterpret_cast(&other->_impl_.team_id_) ); } - ::google::protobuf::Metadata MessageOfTeam::GetMetadata() const + ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfTeam::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[11] @@ -5045,64 +5739,79 @@ namespace protobuf static const ::protobuf::MessageOfTeam& team_message(const MessageOfObj* msg); }; - const ::protobuf::MessageOfShip& MessageOfObj::_Internal::ship_message(const MessageOfObj* msg) + const ::protobuf::MessageOfShip& + MessageOfObj::_Internal::ship_message(const MessageOfObj* msg) { return *msg->_impl_.message_of_obj_.ship_message_; } - const ::protobuf::MessageOfBullet& MessageOfObj::_Internal::bullet_message(const MessageOfObj* msg) + const ::protobuf::MessageOfBullet& + MessageOfObj::_Internal::bullet_message(const MessageOfObj* msg) { return *msg->_impl_.message_of_obj_.bullet_message_; } - const ::protobuf::MessageOfFactory& MessageOfObj::_Internal::factory_message(const MessageOfObj* msg) + const ::protobuf::MessageOfFactory& + MessageOfObj::_Internal::factory_message(const MessageOfObj* msg) { return *msg->_impl_.message_of_obj_.factory_message_; } - const ::protobuf::MessageOfCommunity& MessageOfObj::_Internal::community_message(const MessageOfObj* msg) + const ::protobuf::MessageOfCommunity& + MessageOfObj::_Internal::community_message(const MessageOfObj* msg) { return *msg->_impl_.message_of_obj_.community_message_; } - const ::protobuf::MessageOfFort& MessageOfObj::_Internal::fort_message(const MessageOfObj* msg) + const ::protobuf::MessageOfFort& + MessageOfObj::_Internal::fort_message(const MessageOfObj* msg) { return *msg->_impl_.message_of_obj_.fort_message_; } - const ::protobuf::MessageOfWormhole& MessageOfObj::_Internal::wormhole_message(const MessageOfObj* msg) + const ::protobuf::MessageOfWormhole& + MessageOfObj::_Internal::wormhole_message(const MessageOfObj* msg) { return *msg->_impl_.message_of_obj_.wormhole_message_; } - const ::protobuf::MessageOfHome& MessageOfObj::_Internal::home_message(const MessageOfObj* msg) + const ::protobuf::MessageOfHome& + MessageOfObj::_Internal::home_message(const MessageOfObj* msg) { return *msg->_impl_.message_of_obj_.home_message_; } - const ::protobuf::MessageOfResource& MessageOfObj::_Internal::resource_message(const MessageOfObj* msg) + const ::protobuf::MessageOfResource& + MessageOfObj::_Internal::resource_message(const MessageOfObj* msg) { return *msg->_impl_.message_of_obj_.resource_message_; } - const ::protobuf::MessageOfMap& MessageOfObj::_Internal::map_message(const MessageOfObj* msg) + const ::protobuf::MessageOfMap& + MessageOfObj::_Internal::map_message(const MessageOfObj* msg) { return *msg->_impl_.message_of_obj_.map_message_; } - const ::protobuf::MessageOfNews& MessageOfObj::_Internal::news_message(const MessageOfObj* msg) + const ::protobuf::MessageOfNews& + MessageOfObj::_Internal::news_message(const MessageOfObj* msg) { return *msg->_impl_.message_of_obj_.news_message_; } - const ::protobuf::MessageOfBombedBullet& MessageOfObj::_Internal::bombed_bullet_message(const MessageOfObj* msg) + const ::protobuf::MessageOfBombedBullet& + MessageOfObj::_Internal::bombed_bullet_message(const MessageOfObj* msg) { return *msg->_impl_.message_of_obj_.bombed_bullet_message_; } - const ::protobuf::MessageOfTeam& MessageOfObj::_Internal::team_message(const MessageOfObj* msg) + const ::protobuf::MessageOfTeam& + MessageOfObj::_Internal::team_message(const MessageOfObj* msg) { return *msg->_impl_.message_of_obj_.team_message_; } void MessageOfObj::set_allocated_ship_message(::protobuf::MessageOfShip* ship_message) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_message_of_obj(); if (ship_message) { - ::google::protobuf::Arena* submessage_arena = ship_message->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(ship_message); if (message_arena != submessage_arena) { - ship_message = ::google::protobuf::internal::GetOwnedMessage(message_arena, ship_message, submessage_arena); + ship_message = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, ship_message, submessage_arena + ); } set_has_ship_message(); _impl_.message_of_obj_.ship_message_ = ship_message; @@ -5111,14 +5820,17 @@ namespace protobuf } void MessageOfObj::set_allocated_bullet_message(::protobuf::MessageOfBullet* bullet_message) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_message_of_obj(); if (bullet_message) { - ::google::protobuf::Arena* submessage_arena = bullet_message->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(bullet_message); if (message_arena != submessage_arena) { - bullet_message = ::google::protobuf::internal::GetOwnedMessage(message_arena, bullet_message, submessage_arena); + bullet_message = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, bullet_message, submessage_arena + ); } set_has_bullet_message(); _impl_.message_of_obj_.bullet_message_ = bullet_message; @@ -5127,14 +5839,17 @@ namespace protobuf } void MessageOfObj::set_allocated_factory_message(::protobuf::MessageOfFactory* factory_message) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_message_of_obj(); if (factory_message) { - ::google::protobuf::Arena* submessage_arena = factory_message->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(factory_message); if (message_arena != submessage_arena) { - factory_message = ::google::protobuf::internal::GetOwnedMessage(message_arena, factory_message, submessage_arena); + factory_message = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, factory_message, submessage_arena + ); } set_has_factory_message(); _impl_.message_of_obj_.factory_message_ = factory_message; @@ -5143,14 +5858,17 @@ namespace protobuf } void MessageOfObj::set_allocated_community_message(::protobuf::MessageOfCommunity* community_message) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_message_of_obj(); if (community_message) { - ::google::protobuf::Arena* submessage_arena = community_message->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(community_message); if (message_arena != submessage_arena) { - community_message = ::google::protobuf::internal::GetOwnedMessage(message_arena, community_message, submessage_arena); + community_message = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, community_message, submessage_arena + ); } set_has_community_message(); _impl_.message_of_obj_.community_message_ = community_message; @@ -5159,14 +5877,17 @@ namespace protobuf } void MessageOfObj::set_allocated_fort_message(::protobuf::MessageOfFort* fort_message) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_message_of_obj(); if (fort_message) { - ::google::protobuf::Arena* submessage_arena = fort_message->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(fort_message); if (message_arena != submessage_arena) { - fort_message = ::google::protobuf::internal::GetOwnedMessage(message_arena, fort_message, submessage_arena); + fort_message = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, fort_message, submessage_arena + ); } set_has_fort_message(); _impl_.message_of_obj_.fort_message_ = fort_message; @@ -5175,14 +5896,17 @@ namespace protobuf } void MessageOfObj::set_allocated_wormhole_message(::protobuf::MessageOfWormhole* wormhole_message) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_message_of_obj(); if (wormhole_message) { - ::google::protobuf::Arena* submessage_arena = wormhole_message->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(wormhole_message); if (message_arena != submessage_arena) { - wormhole_message = ::google::protobuf::internal::GetOwnedMessage(message_arena, wormhole_message, submessage_arena); + wormhole_message = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, wormhole_message, submessage_arena + ); } set_has_wormhole_message(); _impl_.message_of_obj_.wormhole_message_ = wormhole_message; @@ -5191,14 +5915,17 @@ namespace protobuf } void MessageOfObj::set_allocated_home_message(::protobuf::MessageOfHome* home_message) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_message_of_obj(); if (home_message) { - ::google::protobuf::Arena* submessage_arena = home_message->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(home_message); if (message_arena != submessage_arena) { - home_message = ::google::protobuf::internal::GetOwnedMessage(message_arena, home_message, submessage_arena); + home_message = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, home_message, submessage_arena + ); } set_has_home_message(); _impl_.message_of_obj_.home_message_ = home_message; @@ -5207,14 +5934,17 @@ namespace protobuf } void MessageOfObj::set_allocated_resource_message(::protobuf::MessageOfResource* resource_message) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_message_of_obj(); if (resource_message) { - ::google::protobuf::Arena* submessage_arena = resource_message->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(resource_message); if (message_arena != submessage_arena) { - resource_message = ::google::protobuf::internal::GetOwnedMessage(message_arena, resource_message, submessage_arena); + resource_message = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, resource_message, submessage_arena + ); } set_has_resource_message(); _impl_.message_of_obj_.resource_message_ = resource_message; @@ -5223,14 +5953,17 @@ namespace protobuf } void MessageOfObj::set_allocated_map_message(::protobuf::MessageOfMap* map_message) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_message_of_obj(); if (map_message) { - ::google::protobuf::Arena* submessage_arena = map_message->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(map_message); if (message_arena != submessage_arena) { - map_message = ::google::protobuf::internal::GetOwnedMessage(message_arena, map_message, submessage_arena); + map_message = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, map_message, submessage_arena + ); } set_has_map_message(); _impl_.message_of_obj_.map_message_ = map_message; @@ -5239,14 +5972,17 @@ namespace protobuf } void MessageOfObj::set_allocated_news_message(::protobuf::MessageOfNews* news_message) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_message_of_obj(); if (news_message) { - ::google::protobuf::Arena* submessage_arena = news_message->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(news_message); if (message_arena != submessage_arena) { - news_message = ::google::protobuf::internal::GetOwnedMessage(message_arena, news_message, submessage_arena); + news_message = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, news_message, submessage_arena + ); } set_has_news_message(); _impl_.message_of_obj_.news_message_ = news_message; @@ -5255,14 +5991,17 @@ namespace protobuf } void MessageOfObj::set_allocated_bombed_bullet_message(::protobuf::MessageOfBombedBullet* bombed_bullet_message) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_message_of_obj(); if (bombed_bullet_message) { - ::google::protobuf::Arena* submessage_arena = bombed_bullet_message->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(bombed_bullet_message); if (message_arena != submessage_arena) { - bombed_bullet_message = ::google::protobuf::internal::GetOwnedMessage(message_arena, bombed_bullet_message, submessage_arena); + bombed_bullet_message = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, bombed_bullet_message, submessage_arena + ); } set_has_bombed_bullet_message(); _impl_.message_of_obj_.bombed_bullet_message_ = bombed_bullet_message; @@ -5271,130 +6010,174 @@ namespace protobuf } void MessageOfObj::set_allocated_team_message(::protobuf::MessageOfTeam* team_message) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_message_of_obj(); if (team_message) { - ::google::protobuf::Arena* submessage_arena = team_message->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(team_message); if (message_arena != submessage_arena) { - team_message = ::google::protobuf::internal::GetOwnedMessage(message_arena, team_message, submessage_arena); + team_message = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, team_message, submessage_arena + ); } set_has_team_message(); _impl_.message_of_obj_.team_message_ = team_message; } // @@protoc_insertion_point(field_set_allocated:protobuf.MessageOfObj.team_message) } - MessageOfObj::MessageOfObj(::google::protobuf::Arena* arena) : - ::google::protobuf::Message(arena) + MessageOfObj::MessageOfObj(::PROTOBUF_NAMESPACE_ID::Arena* arena) : + ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfObj) } - inline PROTOBUF_NDEBUG_INLINE MessageOfObj::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, const Impl_& from - ) : - message_of_obj_{}, - _cached_size_{0}, - _oneof_case_{from._oneof_case_[0]} - { - } - - MessageOfObj::MessageOfObj( - ::google::protobuf::Arena* arena, - const MessageOfObj& from - ) : - ::google::protobuf::Message(arena) + MessageOfObj::MessageOfObj(const MessageOfObj& from) : + ::PROTOBUF_NAMESPACE_ID::Message() { MessageOfObj* const _this = this; (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_ - ); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - switch (message_of_obj_case()) + 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 MESSAGE_OF_OBJ_NOT_SET: - break; case kShipMessage: - _impl_.message_of_obj_.ship_message_ = CreateMaybeMessage<::protobuf::MessageOfShip>(arena, *from._impl_.message_of_obj_.ship_message_); - break; + { + _this->_internal_mutable_ship_message()->::protobuf::MessageOfShip::MergeFrom( + from._internal_ship_message() + ); + break; + } case kBulletMessage: - _impl_.message_of_obj_.bullet_message_ = CreateMaybeMessage<::protobuf::MessageOfBullet>(arena, *from._impl_.message_of_obj_.bullet_message_); - break; + { + _this->_internal_mutable_bullet_message()->::protobuf::MessageOfBullet::MergeFrom( + from._internal_bullet_message() + ); + break; + } case kFactoryMessage: - _impl_.message_of_obj_.factory_message_ = CreateMaybeMessage<::protobuf::MessageOfFactory>(arena, *from._impl_.message_of_obj_.factory_message_); - break; + { + _this->_internal_mutable_factory_message()->::protobuf::MessageOfFactory::MergeFrom( + from._internal_factory_message() + ); + break; + } case kCommunityMessage: - _impl_.message_of_obj_.community_message_ = CreateMaybeMessage<::protobuf::MessageOfCommunity>(arena, *from._impl_.message_of_obj_.community_message_); - break; + { + _this->_internal_mutable_community_message()->::protobuf::MessageOfCommunity::MergeFrom( + from._internal_community_message() + ); + break; + } case kFortMessage: - _impl_.message_of_obj_.fort_message_ = CreateMaybeMessage<::protobuf::MessageOfFort>(arena, *from._impl_.message_of_obj_.fort_message_); - break; + { + _this->_internal_mutable_fort_message()->::protobuf::MessageOfFort::MergeFrom( + from._internal_fort_message() + ); + break; + } case kWormholeMessage: - _impl_.message_of_obj_.wormhole_message_ = CreateMaybeMessage<::protobuf::MessageOfWormhole>(arena, *from._impl_.message_of_obj_.wormhole_message_); - break; + { + _this->_internal_mutable_wormhole_message()->::protobuf::MessageOfWormhole::MergeFrom( + from._internal_wormhole_message() + ); + break; + } case kHomeMessage: - _impl_.message_of_obj_.home_message_ = CreateMaybeMessage<::protobuf::MessageOfHome>(arena, *from._impl_.message_of_obj_.home_message_); - break; + { + _this->_internal_mutable_home_message()->::protobuf::MessageOfHome::MergeFrom( + from._internal_home_message() + ); + break; + } case kResourceMessage: - _impl_.message_of_obj_.resource_message_ = CreateMaybeMessage<::protobuf::MessageOfResource>(arena, *from._impl_.message_of_obj_.resource_message_); - break; + { + _this->_internal_mutable_resource_message()->::protobuf::MessageOfResource::MergeFrom( + from._internal_resource_message() + ); + break; + } case kMapMessage: - _impl_.message_of_obj_.map_message_ = CreateMaybeMessage<::protobuf::MessageOfMap>(arena, *from._impl_.message_of_obj_.map_message_); - break; + { + _this->_internal_mutable_map_message()->::protobuf::MessageOfMap::MergeFrom( + from._internal_map_message() + ); + break; + } case kNewsMessage: - _impl_.message_of_obj_.news_message_ = CreateMaybeMessage<::protobuf::MessageOfNews>(arena, *from._impl_.message_of_obj_.news_message_); - break; + { + _this->_internal_mutable_news_message()->::protobuf::MessageOfNews::MergeFrom( + from._internal_news_message() + ); + break; + } case kBombedBulletMessage: - _impl_.message_of_obj_.bombed_bullet_message_ = CreateMaybeMessage<::protobuf::MessageOfBombedBullet>(arena, *from._impl_.message_of_obj_.bombed_bullet_message_); - break; + { + _this->_internal_mutable_bombed_bullet_message()->::protobuf::MessageOfBombedBullet::MergeFrom( + from._internal_bombed_bullet_message() + ); + break; + } case kTeamMessage: - _impl_.message_of_obj_.team_message_ = CreateMaybeMessage<::protobuf::MessageOfTeam>(arena, *from._impl_.message_of_obj_.team_message_); - break; + { + _this->_internal_mutable_team_message()->::protobuf::MessageOfTeam::MergeFrom( + from._internal_team_message() + ); + break; + } + case MESSAGE_OF_OBJ_NOT_SET: + { + break; + } } - // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfObj) } - inline PROTOBUF_NDEBUG_INLINE MessageOfObj::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena - ) : - message_of_obj_{}, - _cached_size_{0}, - _oneof_case_{} - { - } inline void MessageOfObj::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); + (void)arena; + 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) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) + { + (void)arena; + return; + } SharedDtor(); } + inline void MessageOfObj::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); + ABSL_DCHECK(GetArenaForAllocation() == nullptr); if (has_message_of_obj()) { clear_message_of_obj(); } - _impl_.~Impl_(); + } + + void MessageOfObj::SetCachedSize(int size) const + { + _impl_._cached_size_.Set(size); } void MessageOfObj::clear_message_of_obj() { // @@protoc_insertion_point(one_of_clear_start:protobuf.MessageOfObj) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); switch (message_of_obj_case()) { case kShipMessage: { - if (GetArena() == nullptr) + if (GetArenaForAllocation() == nullptr) { delete _impl_.message_of_obj_.ship_message_; } @@ -5402,7 +6185,7 @@ namespace protobuf } case kBulletMessage: { - if (GetArena() == nullptr) + if (GetArenaForAllocation() == nullptr) { delete _impl_.message_of_obj_.bullet_message_; } @@ -5410,7 +6193,7 @@ namespace protobuf } case kFactoryMessage: { - if (GetArena() == nullptr) + if (GetArenaForAllocation() == nullptr) { delete _impl_.message_of_obj_.factory_message_; } @@ -5418,7 +6201,7 @@ namespace protobuf } case kCommunityMessage: { - if (GetArena() == nullptr) + if (GetArenaForAllocation() == nullptr) { delete _impl_.message_of_obj_.community_message_; } @@ -5426,7 +6209,7 @@ namespace protobuf } case kFortMessage: { - if (GetArena() == nullptr) + if (GetArenaForAllocation() == nullptr) { delete _impl_.message_of_obj_.fort_message_; } @@ -5434,7 +6217,7 @@ namespace protobuf } case kWormholeMessage: { - if (GetArena() == nullptr) + if (GetArenaForAllocation() == nullptr) { delete _impl_.message_of_obj_.wormhole_message_; } @@ -5442,7 +6225,7 @@ namespace protobuf } case kHomeMessage: { - if (GetArena() == nullptr) + if (GetArenaForAllocation() == nullptr) { delete _impl_.message_of_obj_.home_message_; } @@ -5450,7 +6233,7 @@ namespace protobuf } case kResourceMessage: { - if (GetArena() == nullptr) + if (GetArenaForAllocation() == nullptr) { delete _impl_.message_of_obj_.resource_message_; } @@ -5458,7 +6241,7 @@ namespace protobuf } case kMapMessage: { - if (GetArena() == nullptr) + if (GetArenaForAllocation() == nullptr) { delete _impl_.message_of_obj_.map_message_; } @@ -5466,7 +6249,7 @@ namespace protobuf } case kNewsMessage: { - if (GetArena() == nullptr) + if (GetArenaForAllocation() == nullptr) { delete _impl_.message_of_obj_.news_message_; } @@ -5474,7 +6257,7 @@ namespace protobuf } case kBombedBulletMessage: { - if (GetArena() == nullptr) + if (GetArenaForAllocation() == nullptr) { delete _impl_.message_of_obj_.bombed_bullet_message_; } @@ -5482,7 +6265,7 @@ namespace protobuf } case kTeamMessage: { - if (GetArena() == nullptr) + if (GetArenaForAllocation() == nullptr) { delete _impl_.message_of_obj_.team_message_; } @@ -5496,91 +6279,200 @@ namespace protobuf _impl_._oneof_case_[0] = MESSAGE_OF_OBJ_NOT_SET; } - PROTOBUF_NOINLINE void MessageOfObj::Clear() + void MessageOfObj::Clear() { // @@protoc_insertion_point(message_clear_start:protobuf.MessageOfObj) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; clear_message_of_obj(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - const char* MessageOfObj::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx - ) + const char* MessageOfObj::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +#define CHK_(x) \ + if (PROTOBUF_PREDICT_FALSE(!(x))) \ + goto failure + while (!ctx->Done(&ptr)) + { + ::uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) + { + // .protobuf.MessageOfShip ship_message = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) + { + ptr = ctx->ParseMessage(_internal_mutable_ship_message(), ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + // .protobuf.MessageOfBullet bullet_message = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) + { + ptr = ctx->ParseMessage(_internal_mutable_bullet_message(), ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + // .protobuf.MessageOfFactory factory_message = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) + { + ptr = ctx->ParseMessage(_internal_mutable_factory_message(), ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + // .protobuf.MessageOfCommunity community_message = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 34)) + { + ptr = ctx->ParseMessage(_internal_mutable_community_message(), ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + // .protobuf.MessageOfFort fort_message = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 42)) + { + ptr = ctx->ParseMessage(_internal_mutable_fort_message(), ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + // .protobuf.MessageOfWormhole wormhole_message = 6; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 50)) + { + ptr = ctx->ParseMessage(_internal_mutable_wormhole_message(), ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + // .protobuf.MessageOfHome home_message = 7; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 58)) + { + ptr = ctx->ParseMessage(_internal_mutable_home_message(), ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + // .protobuf.MessageOfResource resource_message = 8; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 66)) + { + ptr = ctx->ParseMessage(_internal_mutable_resource_message(), ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + // .protobuf.MessageOfMap map_message = 9; + case 9: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 74)) + { + ptr = ctx->ParseMessage(_internal_mutable_map_message(), ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + // .protobuf.MessageOfNews news_message = 10; + case 10: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 82)) + { + ptr = ctx->ParseMessage(_internal_mutable_news_message(), ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + // .protobuf.MessageOfBombedBullet bombed_bullet_message = 11; + case 11: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 90)) + { + ptr = ctx->ParseMessage(_internal_mutable_bombed_bullet_message(), ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + // .protobuf.MessageOfTeam team_message = 12; + case 12: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 98)) + { + ptr = ctx->ParseMessage(_internal_mutable_team_message(), ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) + { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, + ctx + ); + CHK_(ptr != nullptr); + } // while + message_done: return ptr; + failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 12, 12, 0, 2> MessageOfObj::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 12, - 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294963200, // skipmap - offsetof(decltype(_table_), field_entries), - 12, // num_field_entries - 12, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_MessageOfObj_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, - {{ - {::_pbi::TcParser::MiniParse, {}}, - }}, - {{65535, 65535}}, - {{ - // .protobuf.MessageOfShip ship_message = 1; - {PROTOBUF_FIELD_OFFSET(MessageOfObj, _impl_.message_of_obj_.ship_message_), _Internal::kOneofCaseOffset + 0, 0, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .protobuf.MessageOfBullet bullet_message = 2; - {PROTOBUF_FIELD_OFFSET(MessageOfObj, _impl_.message_of_obj_.bullet_message_), _Internal::kOneofCaseOffset + 0, 1, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .protobuf.MessageOfFactory factory_message = 3; - {PROTOBUF_FIELD_OFFSET(MessageOfObj, _impl_.message_of_obj_.factory_message_), _Internal::kOneofCaseOffset + 0, 2, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .protobuf.MessageOfCommunity community_message = 4; - {PROTOBUF_FIELD_OFFSET(MessageOfObj, _impl_.message_of_obj_.community_message_), _Internal::kOneofCaseOffset + 0, 3, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .protobuf.MessageOfFort fort_message = 5; - {PROTOBUF_FIELD_OFFSET(MessageOfObj, _impl_.message_of_obj_.fort_message_), _Internal::kOneofCaseOffset + 0, 4, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .protobuf.MessageOfWormhole wormhole_message = 6; - {PROTOBUF_FIELD_OFFSET(MessageOfObj, _impl_.message_of_obj_.wormhole_message_), _Internal::kOneofCaseOffset + 0, 5, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .protobuf.MessageOfHome home_message = 7; - {PROTOBUF_FIELD_OFFSET(MessageOfObj, _impl_.message_of_obj_.home_message_), _Internal::kOneofCaseOffset + 0, 6, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .protobuf.MessageOfResource resource_message = 8; - {PROTOBUF_FIELD_OFFSET(MessageOfObj, _impl_.message_of_obj_.resource_message_), _Internal::kOneofCaseOffset + 0, 7, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .protobuf.MessageOfMap map_message = 9; - {PROTOBUF_FIELD_OFFSET(MessageOfObj, _impl_.message_of_obj_.map_message_), _Internal::kOneofCaseOffset + 0, 8, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .protobuf.MessageOfNews news_message = 10; - {PROTOBUF_FIELD_OFFSET(MessageOfObj, _impl_.message_of_obj_.news_message_), _Internal::kOneofCaseOffset + 0, 9, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .protobuf.MessageOfBombedBullet bombed_bullet_message = 11; - {PROTOBUF_FIELD_OFFSET(MessageOfObj, _impl_.message_of_obj_.bombed_bullet_message_), _Internal::kOneofCaseOffset + 0, 10, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .protobuf.MessageOfTeam team_message = 12; - {PROTOBUF_FIELD_OFFSET(MessageOfObj, _impl_.message_of_obj_.team_message_), _Internal::kOneofCaseOffset + 0, 11, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, - {{ - {::_pbi::TcParser::GetTable<::protobuf::MessageOfShip>()}, - {::_pbi::TcParser::GetTable<::protobuf::MessageOfBullet>()}, - {::_pbi::TcParser::GetTable<::protobuf::MessageOfFactory>()}, - {::_pbi::TcParser::GetTable<::protobuf::MessageOfCommunity>()}, - {::_pbi::TcParser::GetTable<::protobuf::MessageOfFort>()}, - {::_pbi::TcParser::GetTable<::protobuf::MessageOfWormhole>()}, - {::_pbi::TcParser::GetTable<::protobuf::MessageOfHome>()}, - {::_pbi::TcParser::GetTable<::protobuf::MessageOfResource>()}, - {::_pbi::TcParser::GetTable<::protobuf::MessageOfMap>()}, - {::_pbi::TcParser::GetTable<::protobuf::MessageOfNews>()}, - {::_pbi::TcParser::GetTable<::protobuf::MessageOfBombedBullet>()}, - {::_pbi::TcParser::GetTable<::protobuf::MessageOfTeam>()}, - }}, - {{}}, - }; - ::uint8_t* MessageOfObj::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream ) const { // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfObj) @@ -5591,97 +6483,83 @@ namespace protobuf { case kShipMessage: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::ship_message(this), _Internal::ship_message(this).GetCachedSize(), target, stream - ); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::ship_message(this), _Internal::ship_message(this).GetCachedSize(), target, stream); break; } case kBulletMessage: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::bullet_message(this), _Internal::bullet_message(this).GetCachedSize(), target, stream - ); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::bullet_message(this), _Internal::bullet_message(this).GetCachedSize(), target, stream); break; } case kFactoryMessage: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, _Internal::factory_message(this), _Internal::factory_message(this).GetCachedSize(), target, stream - ); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::factory_message(this), _Internal::factory_message(this).GetCachedSize(), target, stream); break; } case kCommunityMessage: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 4, _Internal::community_message(this), _Internal::community_message(this).GetCachedSize(), target, stream - ); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(4, _Internal::community_message(this), _Internal::community_message(this).GetCachedSize(), target, stream); break; } case kFortMessage: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 5, _Internal::fort_message(this), _Internal::fort_message(this).GetCachedSize(), target, stream - ); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(5, _Internal::fort_message(this), _Internal::fort_message(this).GetCachedSize(), target, stream); break; } case kWormholeMessage: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 6, _Internal::wormhole_message(this), _Internal::wormhole_message(this).GetCachedSize(), target, stream - ); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(6, _Internal::wormhole_message(this), _Internal::wormhole_message(this).GetCachedSize(), target, stream); break; } case kHomeMessage: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 7, _Internal::home_message(this), _Internal::home_message(this).GetCachedSize(), target, stream - ); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(7, _Internal::home_message(this), _Internal::home_message(this).GetCachedSize(), target, stream); break; } case kResourceMessage: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 8, _Internal::resource_message(this), _Internal::resource_message(this).GetCachedSize(), target, stream - ); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(8, _Internal::resource_message(this), _Internal::resource_message(this).GetCachedSize(), target, stream); break; } case kMapMessage: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 9, _Internal::map_message(this), _Internal::map_message(this).GetCachedSize(), target, stream - ); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(9, _Internal::map_message(this), _Internal::map_message(this).GetCachedSize(), target, stream); break; } case kNewsMessage: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 10, _Internal::news_message(this), _Internal::news_message(this).GetCachedSize(), target, stream - ); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(10, _Internal::news_message(this), _Internal::news_message(this).GetCachedSize(), target, stream); break; } case kBombedBulletMessage: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 11, _Internal::bombed_bullet_message(this), _Internal::bombed_bullet_message(this).GetCachedSize(), target, stream - ); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(11, _Internal::bombed_bullet_message(this), _Internal::bombed_bullet_message(this).GetCachedSize(), target, stream); break; } case kTeamMessage: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 12, _Internal::team_message(this), _Internal::team_message(this).GetCachedSize(), target, stream - ); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(12, _Internal::team_message(this), _Internal::team_message(this).GetCachedSize(), target, stream); break; } - default: - break; + default:; } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream - ); + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream + ); } // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfObj) return target; @@ -5701,85 +6579,109 @@ namespace protobuf // .protobuf.MessageOfShip ship_message = 1; case kShipMessage: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.message_of_obj_.ship_message_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.message_of_obj_.ship_message_ + ); break; } // .protobuf.MessageOfBullet bullet_message = 2; case kBulletMessage: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.message_of_obj_.bullet_message_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.message_of_obj_.bullet_message_ + ); break; } // .protobuf.MessageOfFactory factory_message = 3; case kFactoryMessage: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.message_of_obj_.factory_message_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.message_of_obj_.factory_message_ + ); break; } // .protobuf.MessageOfCommunity community_message = 4; case kCommunityMessage: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.message_of_obj_.community_message_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.message_of_obj_.community_message_ + ); break; } // .protobuf.MessageOfFort fort_message = 5; case kFortMessage: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.message_of_obj_.fort_message_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.message_of_obj_.fort_message_ + ); break; } // .protobuf.MessageOfWormhole wormhole_message = 6; case kWormholeMessage: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.message_of_obj_.wormhole_message_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.message_of_obj_.wormhole_message_ + ); break; } // .protobuf.MessageOfHome home_message = 7; case kHomeMessage: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.message_of_obj_.home_message_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.message_of_obj_.home_message_ + ); break; } // .protobuf.MessageOfResource resource_message = 8; case kResourceMessage: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.message_of_obj_.resource_message_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.message_of_obj_.resource_message_ + ); break; } // .protobuf.MessageOfMap map_message = 9; case kMapMessage: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.message_of_obj_.map_message_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.message_of_obj_.map_message_ + ); break; } // .protobuf.MessageOfNews news_message = 10; case kNewsMessage: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.message_of_obj_.news_message_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.message_of_obj_.news_message_ + ); break; } // .protobuf.MessageOfBombedBullet bombed_bullet_message = 11; case kBombedBulletMessage: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.message_of_obj_.bombed_bullet_message_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.message_of_obj_.bombed_bullet_message_ + ); break; } // .protobuf.MessageOfTeam team_message = 12; case kTeamMessage: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.message_of_obj_.team_message_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.message_of_obj_.team_message_ + ); break; } case MESSAGE_OF_OBJ_NOT_SET: @@ -5790,16 +6692,15 @@ namespace protobuf return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } - const ::google::protobuf::Message::ClassData MessageOfObj::_class_data_ = { - MessageOfObj::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor - }; - const ::google::protobuf::Message::ClassData* MessageOfObj::GetClassData() const + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfObj::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + MessageOfObj::MergeImpl}; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfObj::GetClassData() const { return &_class_data_; } - void MessageOfObj::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) + void MessageOfObj::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); @@ -5899,7 +6800,7 @@ namespace protobuf break; } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MessageOfObj::CopyFrom(const MessageOfObj& from) @@ -5911,16 +6812,12 @@ namespace protobuf MergeFrom(from); } - PROTOBUF_NOINLINE bool MessageOfObj::IsInitialized() const + bool MessageOfObj::IsInitialized() const { return true; } - ::_pbi::CachedSize* MessageOfObj::AccessCachedSize() const - { - return &_impl_._cached_size_; - } - void MessageOfObj::InternalSwap(MessageOfObj* PROTOBUF_RESTRICT other) + void MessageOfObj::InternalSwap(MessageOfObj* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -5928,7 +6825,7 @@ namespace protobuf swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); } - ::google::protobuf::Metadata MessageOfObj::GetMetadata() const + ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfObj::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[12] @@ -5941,107 +6838,145 @@ namespace protobuf public: }; - MessageOfAll::MessageOfAll(::google::protobuf::Arena* arena) : - ::google::protobuf::Message(arena) + MessageOfAll::MessageOfAll(::PROTOBUF_NAMESPACE_ID::Arena* arena) : + ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfAll) } - MessageOfAll::MessageOfAll( - ::google::protobuf::Arena* arena, const MessageOfAll& from - ) : - MessageOfAll(arena) - { - MergeFrom(from); - } - inline PROTOBUF_NDEBUG_INLINE MessageOfAll::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena - ) : - _cached_size_{0} + MessageOfAll::MessageOfAll(const MessageOfAll& from) : + ::PROTOBUF_NAMESPACE_ID::Message(), + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>( + from._internal_metadata_ + ); + // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfAll) } inline void MessageOfAll::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, game_time_), 0, offsetof(Impl_, blue_team_score_) - offsetof(Impl_, game_time_) + sizeof(Impl_::blue_team_score_)); + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.game_time_){0} + + , + decltype(_impl_.red_team_score_){0} + + , + decltype(_impl_.blue_team_score_){0} + + , + /*decltype(_impl_._cached_size_)*/ {}}; } + MessageOfAll::~MessageOfAll() { // @@protoc_insertion_point(destructor:protobuf.MessageOfAll) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) + { + (void)arena; + return; + } SharedDtor(); } + inline void MessageOfAll::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + } + + void MessageOfAll::SetCachedSize(int size) const + { + _impl_._cached_size_.Set(size); } - PROTOBUF_NOINLINE void MessageOfAll::Clear() + void MessageOfAll::Clear() { // @@protoc_insertion_point(message_clear_start:protobuf.MessageOfAll) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; ::memset(&_impl_.game_time_, 0, static_cast<::size_t>(reinterpret_cast(&_impl_.blue_team_score_) - reinterpret_cast(&_impl_.game_time_)) + sizeof(_impl_.blue_team_score_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - const char* MessageOfAll::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx - ) + const char* MessageOfAll::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +#define CHK_(x) \ + if (PROTOBUF_PREDICT_FALSE(!(x))) \ + goto failure + while (!ctx->Done(&ptr)) + { + ::uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) + { + // int32 game_time = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) + { + _impl_.game_time_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + // int32 red_team_score = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) + { + _impl_.red_team_score_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + // int32 blue_team_score = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) + { + _impl_.blue_team_score_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) + { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, + ctx + ); + CHK_(ptr != nullptr); + } // while + message_done: return ptr; + failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<2, 3, 0, 0, 2> MessageOfAll::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 3, - 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_MessageOfAll_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, - {{ - {::_pbi::TcParser::MiniParse, {}}, - // int32 game_time = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MessageOfAll, _impl_.game_time_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(MessageOfAll, _impl_.game_time_)}}, - // int32 red_team_score = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MessageOfAll, _impl_.red_team_score_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(MessageOfAll, _impl_.red_team_score_)}}, - // int32 blue_team_score = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MessageOfAll, _impl_.blue_team_score_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(MessageOfAll, _impl_.blue_team_score_)}}, - }}, - {{65535, 65535}}, - {{ - // int32 game_time = 1; - {PROTOBUF_FIELD_OFFSET(MessageOfAll, _impl_.game_time_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - // int32 red_team_score = 2; - {PROTOBUF_FIELD_OFFSET(MessageOfAll, _impl_.red_team_score_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - // int32 blue_team_score = 3; - {PROTOBUF_FIELD_OFFSET(MessageOfAll, _impl_.blue_team_score_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - }}, - // no aux_entries - {{}}, - }; - ::uint8_t* MessageOfAll::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream ) const { // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfAll) @@ -6051,36 +6986,35 @@ namespace protobuf // int32 game_time = 1; if (this->_internal_game_time() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<1>( - stream, this->_internal_game_time(), target - ); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray( + 1, this->_internal_game_time(), target + ); } // int32 red_team_score = 2; if (this->_internal_red_team_score() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<2>( - stream, this->_internal_red_team_score(), target - ); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray( + 2, this->_internal_red_team_score(), target + ); } // int32 blue_team_score = 3; if (this->_internal_blue_team_score() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<3>( - stream, this->_internal_blue_team_score(), target - ); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray( + 3, this->_internal_blue_team_score(), target + ); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream - ); + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream + ); } // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfAll) return target; @@ -6122,16 +7056,15 @@ namespace protobuf return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } - const ::google::protobuf::Message::ClassData MessageOfAll::_class_data_ = { - MessageOfAll::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor - }; - const ::google::protobuf::Message::ClassData* MessageOfAll::GetClassData() const + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfAll::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + MessageOfAll::MergeImpl}; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfAll::GetClassData() const { return &_class_data_; } - void MessageOfAll::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) + void MessageOfAll::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); @@ -6152,7 +7085,7 @@ namespace protobuf { _this->_internal_set_blue_team_score(from._internal_blue_team_score()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MessageOfAll::CopyFrom(const MessageOfAll& from) @@ -6164,27 +7097,23 @@ namespace protobuf MergeFrom(from); } - PROTOBUF_NOINLINE bool MessageOfAll::IsInitialized() const + bool MessageOfAll::IsInitialized() const { return true; } - ::_pbi::CachedSize* MessageOfAll::AccessCachedSize() const - { - return &_impl_._cached_size_; - } - void MessageOfAll::InternalSwap(MessageOfAll* PROTOBUF_RESTRICT other) + void MessageOfAll::InternalSwap(MessageOfAll* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::google::protobuf::internal::memswap< + ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(MessageOfAll, _impl_.blue_team_score_) + sizeof(MessageOfAll::_impl_.blue_team_score_) - PROTOBUF_FIELD_OFFSET(MessageOfAll, _impl_.game_time_)>( reinterpret_cast(&_impl_.game_time_), reinterpret_cast(&other->_impl_.game_time_) ); } - ::google::protobuf::Metadata MessageOfAll::GetMetadata() const + ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfAll::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[13] @@ -6205,79 +7134,75 @@ namespace protobuf } }; - const ::protobuf::MessageOfAll& MessageToClient::_Internal::all_message(const MessageToClient* msg) + const ::protobuf::MessageOfAll& + MessageToClient::_Internal::all_message(const MessageToClient* msg) { return *msg->_impl_.all_message_; } - MessageToClient::MessageToClient(::google::protobuf::Arena* arena) : - ::google::protobuf::Message(arena) + MessageToClient::MessageToClient(::PROTOBUF_NAMESPACE_ID::Arena* arena) : + ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:protobuf.MessageToClient) } - inline PROTOBUF_NDEBUG_INLINE MessageToClient::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, const Impl_& from - ) : - _has_bits_{from._has_bits_}, - _cached_size_{0}, - obj_message_{visibility, arena, from.obj_message_} - { - } - - MessageToClient::MessageToClient( - ::google::protobuf::Arena* arena, - const MessageToClient& from - ) : - ::google::protobuf::Message(arena) + MessageToClient::MessageToClient(const MessageToClient& from) : + ::PROTOBUF_NAMESPACE_ID::Message() { MessageToClient* const _this = this; (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_ - ); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.all_message_ = (cached_has_bits & 0x00000001u) ? CreateMaybeMessage<::protobuf::MessageOfAll>(arena, *from._impl_.all_message_) : nullptr; - _impl_.game_state_ = from._impl_.game_state_; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_}, /*decltype(_impl_._cached_size_)*/ {}, decltype(_impl_.obj_message_){from._impl_.obj_message_}, decltype(_impl_.all_message_){nullptr}, decltype(_impl_.game_state_){}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) + { + _this->_impl_.all_message_ = new ::protobuf::MessageOfAll(*from._impl_.all_message_); + } + _this->_impl_.game_state_ = from._impl_.game_state_; // @@protoc_insertion_point(copy_constructor:protobuf.MessageToClient) } - inline PROTOBUF_NDEBUG_INLINE MessageToClient::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena - ) : - _cached_size_{0}, - obj_message_{visibility, arena} - { - } inline void MessageToClient::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, all_message_), 0, offsetof(Impl_, game_state_) - offsetof(Impl_, all_message_) + sizeof(Impl_::game_state_)); + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){}, /*decltype(_impl_._cached_size_)*/ {}, decltype(_impl_.obj_message_){arena}, decltype(_impl_.all_message_){nullptr}, decltype(_impl_.game_state_){0} + + }; } + MessageToClient::~MessageToClient() { // @@protoc_insertion_point(destructor:protobuf.MessageToClient) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) + { + (void)arena; + return; + } SharedDtor(); } + inline void MessageToClient::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.all_message_; - _impl_.~Impl_(); + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + _internal_mutable_obj_message()->~RepeatedPtrField(); + if (this != internal_default_instance()) + delete _impl_.all_message_; + } + + void MessageToClient::SetCachedSize(int size) const + { + _impl_._cached_size_.Set(size); } - PROTOBUF_NOINLINE void MessageToClient::Clear() + void MessageToClient::Clear() { // @@protoc_insertion_point(message_clear_start:protobuf.MessageToClient) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; - _impl_.obj_message_.Clear(); + _internal_mutable_obj_message()->Clear(); cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { @@ -6286,63 +7211,94 @@ namespace protobuf } _impl_.game_state_ = 0; _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - const char* MessageToClient::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx - ) + const char* MessageToClient::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +#define CHK_(x) \ + if (PROTOBUF_PREDICT_FALSE(!(x))) \ + goto failure + _Internal::HasBits has_bits{}; + while (!ctx->Done(&ptr)) + { + ::uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) + { + // repeated .protobuf.MessageOfObj obj_message = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) + { + ptr -= 1; + do + { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_obj_message(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) + break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } + else + { + goto handle_unusual; + } + continue; + // .protobuf.GameState game_state = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) + { + ::int32_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + _internal_set_game_state(static_cast<::protobuf::GameState>(val)); + } + else + { + goto handle_unusual; + } + continue; + // .protobuf.MessageOfAll all_message = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) + { + ptr = ctx->ParseMessage(_internal_mutable_all_message(), ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) + { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, + ctx + ); + CHK_(ptr != nullptr); + } // while + message_done: + _impl_._has_bits_.Or(has_bits); return ptr; + failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<2, 3, 2, 0, 2> MessageToClient::_table_ = { - { - PROTOBUF_FIELD_OFFSET(MessageToClient, _impl_._has_bits_), - 0, // no _extensions_ - 3, - 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_MessageToClient_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, - {{ - {::_pbi::TcParser::MiniParse, {}}, - // repeated .protobuf.MessageOfObj obj_message = 1; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(MessageToClient, _impl_.obj_message_)}}, - // .protobuf.GameState game_state = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MessageToClient, _impl_.game_state_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(MessageToClient, _impl_.game_state_)}}, - // .protobuf.MessageOfAll all_message = 3; - {::_pbi::TcParser::FastMtS1, - {26, 0, 1, PROTOBUF_FIELD_OFFSET(MessageToClient, _impl_.all_message_)}}, - }}, - {{65535, 65535}}, - {{ - // repeated .protobuf.MessageOfObj obj_message = 1; - {PROTOBUF_FIELD_OFFSET(MessageToClient, _impl_.obj_message_), -1, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // .protobuf.GameState game_state = 2; - {PROTOBUF_FIELD_OFFSET(MessageToClient, _impl_.game_state_), -1, 0, (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - // .protobuf.MessageOfAll all_message = 3; - {PROTOBUF_FIELD_OFFSET(MessageToClient, _impl_.all_message_), _Internal::kHasBitsOffset + 0, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, - {{ - {::_pbi::TcParser::GetTable<::protobuf::MessageOfObj>()}, - {::_pbi::TcParser::GetTable<::protobuf::MessageOfAll>()}, - }}, - {{}}, - }; - ::uint8_t* MessageToClient::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream ) const { // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageToClient) @@ -6355,8 +7311,8 @@ namespace protobuf i < n; i++) { - const auto& repfield = this->_internal_obj_message().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_obj_message(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } @@ -6373,17 +7329,15 @@ namespace protobuf // .protobuf.MessageOfAll all_message = 3; if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, _Internal::all_message(this), _Internal::all_message(this).GetCachedSize(), target, stream - ); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::all_message(this), _Internal::all_message(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream - ); + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream + ); } // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageToClient) return target; @@ -6403,14 +7357,17 @@ namespace protobuf for (const auto& msg : this->_internal_obj_message()) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // .protobuf.MessageOfAll all_message = 3; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.all_message_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.all_message_ + ); } // .protobuf.GameState game_state = 2; @@ -6423,16 +7380,15 @@ namespace protobuf return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } - const ::google::protobuf::Message::ClassData MessageToClient::_class_data_ = { - MessageToClient::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor - }; - const ::google::protobuf::Message::ClassData* MessageToClient::GetClassData() const + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageToClient::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + MessageToClient::MergeImpl}; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageToClient::GetClassData() const { return &_class_data_; } - void MessageToClient::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) + void MessageToClient::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); @@ -6441,9 +7397,7 @@ namespace protobuf ::uint32_t cached_has_bits = 0; (void)cached_has_bits; - _this->_internal_mutable_obj_message()->MergeFrom( - from._internal_obj_message() - ); + _this->_internal_mutable_obj_message()->MergeFrom(from._internal_obj_message()); if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { _this->_internal_mutable_all_message()->::protobuf::MessageOfAll::MergeFrom( @@ -6454,7 +7408,7 @@ namespace protobuf { _this->_internal_set_game_state(from._internal_game_state()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MessageToClient::CopyFrom(const MessageToClient& from) @@ -6466,29 +7420,25 @@ namespace protobuf MergeFrom(from); } - PROTOBUF_NOINLINE bool MessageToClient::IsInitialized() const + bool MessageToClient::IsInitialized() const { return true; } - ::_pbi::CachedSize* MessageToClient::AccessCachedSize() const - { - return &_impl_._cached_size_; - } - void MessageToClient::InternalSwap(MessageToClient* PROTOBUF_RESTRICT other) + void MessageToClient::InternalSwap(MessageToClient* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.obj_message_.InternalSwap(&other->_impl_.obj_message_); - ::google::protobuf::internal::memswap< + _internal_mutable_obj_message()->InternalSwap(other->_internal_mutable_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_) ); } - ::google::protobuf::Metadata MessageToClient::GetMetadata() const + ::PROTOBUF_NAMESPACE_ID::Metadata MessageToClient::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[14] @@ -6501,107 +7451,145 @@ namespace protobuf public: }; - MoveRes::MoveRes(::google::protobuf::Arena* arena) : - ::google::protobuf::Message(arena) + MoveRes::MoveRes(::PROTOBUF_NAMESPACE_ID::Arena* arena) : + ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:protobuf.MoveRes) } - MoveRes::MoveRes( - ::google::protobuf::Arena* arena, const MoveRes& from - ) : - MoveRes(arena) - { - MergeFrom(from); - } - inline PROTOBUF_NDEBUG_INLINE MoveRes::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena - ) : - _cached_size_{0} + MoveRes::MoveRes(const MoveRes& from) : + ::PROTOBUF_NAMESPACE_ID::Message(), + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>( + from._internal_metadata_ + ); + // @@protoc_insertion_point(copy_constructor:protobuf.MoveRes) } inline void MoveRes::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, actual_speed_), 0, offsetof(Impl_, act_success_) - offsetof(Impl_, actual_speed_) + sizeof(Impl_::act_success_)); + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.actual_speed_){::int64_t{0}} + + , + decltype(_impl_.actual_angle_){0} + + , + decltype(_impl_.act_success_){false} + + , + /*decltype(_impl_._cached_size_)*/ {}}; } + MoveRes::~MoveRes() { // @@protoc_insertion_point(destructor:protobuf.MoveRes) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) + { + (void)arena; + return; + } SharedDtor(); } + inline void MoveRes::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + } + + void MoveRes::SetCachedSize(int size) const + { + _impl_._cached_size_.Set(size); } - PROTOBUF_NOINLINE void MoveRes::Clear() + void MoveRes::Clear() { // @@protoc_insertion_point(message_clear_start:protobuf.MoveRes) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; ::memset(&_impl_.actual_speed_, 0, static_cast<::size_t>(reinterpret_cast(&_impl_.act_success_) - reinterpret_cast(&_impl_.actual_speed_)) + sizeof(_impl_.act_success_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - const char* MoveRes::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx - ) + const char* MoveRes::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +#define CHK_(x) \ + if (PROTOBUF_PREDICT_FALSE(!(x))) \ + goto failure + while (!ctx->Done(&ptr)) + { + ::uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) + { + // int64 actual_speed = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) + { + _impl_.actual_speed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + // double actual_angle = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 17)) + { + _impl_.actual_angle_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } + else + { + goto handle_unusual; + } + continue; + // bool act_success = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) + { + _impl_.act_success_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) + { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, + ctx + ); + CHK_(ptr != nullptr); + } // while + message_done: return ptr; + failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<2, 3, 0, 0, 2> MoveRes::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 3, - 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_MoveRes_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, - {{ - {::_pbi::TcParser::MiniParse, {}}, - // int64 actual_speed = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(MoveRes, _impl_.actual_speed_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(MoveRes, _impl_.actual_speed_)}}, - // double actual_angle = 2; - {::_pbi::TcParser::FastF64S1, - {17, 63, 0, PROTOBUF_FIELD_OFFSET(MoveRes, _impl_.actual_angle_)}}, - // bool act_success = 3; - {::_pbi::TcParser::SingularVarintNoZag1(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(MoveRes, _impl_.act_success_)}}, - }}, - {{65535, 65535}}, - {{ - // int64 actual_speed = 1; - {PROTOBUF_FIELD_OFFSET(MoveRes, _impl_.actual_speed_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt64)}, - // double actual_angle = 2; - {PROTOBUF_FIELD_OFFSET(MoveRes, _impl_.actual_angle_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // bool act_success = 3; - {PROTOBUF_FIELD_OFFSET(MoveRes, _impl_.act_success_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - }}, - // no aux_entries - {{}}, - }; - ::uint8_t* MoveRes::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream ) const { // @@protoc_insertion_point(serialize_to_array_start:protobuf.MoveRes) @@ -6611,10 +7599,10 @@ namespace protobuf // int64 actual_speed = 1; if (this->_internal_actual_speed() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64ToArrayWithField<1>( - stream, this->_internal_actual_speed(), target - ); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray( + 1, this->_internal_actual_speed(), target + ); } // double actual_angle = 2; @@ -6641,10 +7629,9 @@ namespace protobuf if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream - ); + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream + ); } // @@protoc_insertion_point(serialize_to_array_end:protobuf.MoveRes) return target; @@ -6686,16 +7673,15 @@ namespace protobuf return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } - const ::google::protobuf::Message::ClassData MoveRes::_class_data_ = { - MoveRes::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor - }; - const ::google::protobuf::Message::ClassData* MoveRes::GetClassData() const + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MoveRes::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + MoveRes::MergeImpl}; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MoveRes::GetClassData() const { return &_class_data_; } - void MoveRes::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) + void MoveRes::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); @@ -6720,7 +7706,7 @@ namespace protobuf { _this->_internal_set_act_success(from._internal_act_success()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MoveRes::CopyFrom(const MoveRes& from) @@ -6732,27 +7718,23 @@ namespace protobuf MergeFrom(from); } - PROTOBUF_NOINLINE bool MoveRes::IsInitialized() const + bool MoveRes::IsInitialized() const { return true; } - ::_pbi::CachedSize* MoveRes::AccessCachedSize() const - { - return &_impl_._cached_size_; - } - void MoveRes::InternalSwap(MoveRes* PROTOBUF_RESTRICT other) + void MoveRes::InternalSwap(MoveRes* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::google::protobuf::internal::memswap< + ::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_) ); } - ::google::protobuf::Metadata MoveRes::GetMetadata() const + ::PROTOBUF_NAMESPACE_ID::Metadata MoveRes::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[15] @@ -6765,96 +7747,115 @@ namespace protobuf public: }; - BoolRes::BoolRes(::google::protobuf::Arena* arena) : - ::google::protobuf::Message(arena) + BoolRes::BoolRes(::PROTOBUF_NAMESPACE_ID::Arena* arena) : + ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:protobuf.BoolRes) } - BoolRes::BoolRes( - ::google::protobuf::Arena* arena, const BoolRes& from - ) : - BoolRes(arena) - { - MergeFrom(from); - } - inline PROTOBUF_NDEBUG_INLINE BoolRes::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena - ) : - _cached_size_{0} + BoolRes::BoolRes(const BoolRes& from) : + ::PROTOBUF_NAMESPACE_ID::Message(), + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>( + from._internal_metadata_ + ); + // @@protoc_insertion_point(copy_constructor:protobuf.BoolRes) } inline void BoolRes::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.act_success_ = {}; + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.act_success_){false} + + , + /*decltype(_impl_._cached_size_)*/ {}}; } + BoolRes::~BoolRes() { // @@protoc_insertion_point(destructor:protobuf.BoolRes) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) + { + (void)arena; + return; + } SharedDtor(); } + inline void BoolRes::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + } + + void BoolRes::SetCachedSize(int size) const + { + _impl_._cached_size_.Set(size); } - PROTOBUF_NOINLINE void BoolRes::Clear() + void BoolRes::Clear() { // @@protoc_insertion_point(message_clear_start:protobuf.BoolRes) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; _impl_.act_success_ = false; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - const char* BoolRes::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx - ) + const char* BoolRes::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +#define CHK_(x) \ + if (PROTOBUF_PREDICT_FALSE(!(x))) \ + goto failure + while (!ctx->Done(&ptr)) + { + ::uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) + { + // bool act_success = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) + { + _impl_.act_success_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) + { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, + ctx + ); + CHK_(ptr != nullptr); + } // while + message_done: return ptr; + failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 0, 0, 2> BoolRes::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, - 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_BoolRes_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, - {{ - // bool act_success = 1; - {::_pbi::TcParser::SingularVarintNoZag1(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(BoolRes, _impl_.act_success_)}}, - }}, - {{65535, 65535}}, - {{ - // bool act_success = 1; - {PROTOBUF_FIELD_OFFSET(BoolRes, _impl_.act_success_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - }}, - // no aux_entries - {{}}, - }; - ::uint8_t* BoolRes::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream ) const { // @@protoc_insertion_point(serialize_to_array_start:protobuf.BoolRes) @@ -6872,10 +7873,9 @@ namespace protobuf if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream - ); + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream + ); } // @@protoc_insertion_point(serialize_to_array_end:protobuf.BoolRes) return target; @@ -6899,16 +7899,15 @@ namespace protobuf return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } - const ::google::protobuf::Message::ClassData BoolRes::_class_data_ = { - BoolRes::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor - }; - const ::google::protobuf::Message::ClassData* BoolRes::GetClassData() const + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData BoolRes::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + BoolRes::MergeImpl}; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* BoolRes::GetClassData() const { return &_class_data_; } - void BoolRes::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) + void BoolRes::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); @@ -6921,7 +7920,7 @@ namespace protobuf { _this->_internal_set_act_success(from._internal_act_success()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void BoolRes::CopyFrom(const BoolRes& from) @@ -6933,23 +7932,20 @@ namespace protobuf MergeFrom(from); } - PROTOBUF_NOINLINE bool BoolRes::IsInitialized() const + bool BoolRes::IsInitialized() const { return true; } - ::_pbi::CachedSize* BoolRes::AccessCachedSize() const - { - return &_impl_._cached_size_; - } - void BoolRes::InternalSwap(BoolRes* PROTOBUF_RESTRICT other) + void BoolRes::InternalSwap(BoolRes* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.act_success_, other->_impl_.act_success_); } - ::google::protobuf::Metadata BoolRes::GetMetadata() const + ::PROTOBUF_NAMESPACE_ID::Metadata BoolRes::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[16] @@ -6962,114 +7958,122 @@ namespace protobuf public: }; - ShipInfoRes::ShipInfoRes(::google::protobuf::Arena* arena) : - ::google::protobuf::Message(arena) + ShipInfoRes::ShipInfoRes(::PROTOBUF_NAMESPACE_ID::Arena* arena) : + ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:protobuf.ShipInfoRes) } - inline PROTOBUF_NDEBUG_INLINE ShipInfoRes::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, const Impl_& from - ) : - ship_info_{visibility, arena, from.ship_info_}, - _cached_size_{0} - { - } - - ShipInfoRes::ShipInfoRes( - ::google::protobuf::Arena* arena, - const ShipInfoRes& from - ) : - ::google::protobuf::Message(arena) + ShipInfoRes::ShipInfoRes(const ShipInfoRes& from) : + ::PROTOBUF_NAMESPACE_ID::Message() { ShipInfoRes* const _this = this; (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_ - ); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_{ + decltype(_impl_.ship_info_){from._impl_.ship_info_}, /*decltype(_impl_._cached_size_)*/ {}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:protobuf.ShipInfoRes) } - inline PROTOBUF_NDEBUG_INLINE ShipInfoRes::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena - ) : - ship_info_{visibility, arena}, - _cached_size_{0} - { - } inline void ShipInfoRes::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.ship_info_){arena}, /*decltype(_impl_._cached_size_)*/ {}}; } + ShipInfoRes::~ShipInfoRes() { // @@protoc_insertion_point(destructor:protobuf.ShipInfoRes) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) + { + (void)arena; + return; + } SharedDtor(); } + inline void ShipInfoRes::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + _internal_mutable_ship_info()->~RepeatedPtrField(); } - PROTOBUF_NOINLINE void ShipInfoRes::Clear() + void ShipInfoRes::SetCachedSize(int size) const + { + _impl_._cached_size_.Set(size); + } + + void ShipInfoRes::Clear() { // @@protoc_insertion_point(message_clear_start:protobuf.ShipInfoRes) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; - _impl_.ship_info_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + _internal_mutable_ship_info()->Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - const char* ShipInfoRes::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx - ) + const char* ShipInfoRes::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +#define CHK_(x) \ + if (PROTOBUF_PREDICT_FALSE(!(x))) \ + goto failure + while (!ctx->Done(&ptr)) + { + ::uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) + { + // repeated .protobuf.MessageOfShip ship_info = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) + { + ptr -= 1; + do + { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_ship_info(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) + break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } + else + { + goto handle_unusual; + } + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) + { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, + ctx + ); + CHK_(ptr != nullptr); + } // while + message_done: return ptr; + failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> ShipInfoRes::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, - 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_ShipInfoRes_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, - {{ - // repeated .protobuf.MessageOfShip ship_info = 1; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(ShipInfoRes, _impl_.ship_info_)}}, - }}, - {{65535, 65535}}, - {{ - // repeated .protobuf.MessageOfShip ship_info = 1; - {PROTOBUF_FIELD_OFFSET(ShipInfoRes, _impl_.ship_info_), 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, - {{ - {::_pbi::TcParser::GetTable<::protobuf::MessageOfShip>()}, - }}, - {{}}, - }; - ::uint8_t* ShipInfoRes::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream ) const { // @@protoc_insertion_point(serialize_to_array_start:protobuf.ShipInfoRes) @@ -7082,17 +8086,16 @@ namespace protobuf i < n; i++) { - const auto& repfield = this->_internal_ship_info().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_ship_info(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream - ); + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream + ); } // @@protoc_insertion_point(serialize_to_array_end:protobuf.ShipInfoRes) return target; @@ -7112,21 +8115,21 @@ namespace protobuf for (const auto& msg : this->_internal_ship_info()) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } - const ::google::protobuf::Message::ClassData ShipInfoRes::_class_data_ = { - ShipInfoRes::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor - }; - const ::google::protobuf::Message::ClassData* ShipInfoRes::GetClassData() const + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ShipInfoRes::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + ShipInfoRes::MergeImpl}; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* ShipInfoRes::GetClassData() const { return &_class_data_; } - void ShipInfoRes::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) + void ShipInfoRes::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); @@ -7135,10 +8138,8 @@ namespace protobuf ::uint32_t cached_has_bits = 0; (void)cached_has_bits; - _this->_internal_mutable_ship_info()->MergeFrom( - from._internal_ship_info() - ); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_mutable_ship_info()->MergeFrom(from._internal_ship_info()); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ShipInfoRes::CopyFrom(const ShipInfoRes& from) @@ -7150,23 +8151,19 @@ namespace protobuf MergeFrom(from); } - PROTOBUF_NOINLINE bool ShipInfoRes::IsInitialized() const + bool ShipInfoRes::IsInitialized() const { return true; } - ::_pbi::CachedSize* ShipInfoRes::AccessCachedSize() const - { - return &_impl_._cached_size_; - } - void ShipInfoRes::InternalSwap(ShipInfoRes* PROTOBUF_RESTRICT other) + void ShipInfoRes::InternalSwap(ShipInfoRes* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.ship_info_.InternalSwap(&other->_impl_.ship_info_); + _internal_mutable_ship_info()->InternalSwap(other->_internal_mutable_ship_info()); } - ::google::protobuf::Metadata ShipInfoRes::GetMetadata() const + ::PROTOBUF_NAMESPACE_ID::Metadata ShipInfoRes::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[17] @@ -7179,96 +8176,115 @@ namespace protobuf public: }; - EcoRes::EcoRes(::google::protobuf::Arena* arena) : - ::google::protobuf::Message(arena) + EcoRes::EcoRes(::PROTOBUF_NAMESPACE_ID::Arena* arena) : + ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:protobuf.EcoRes) } - EcoRes::EcoRes( - ::google::protobuf::Arena* arena, const EcoRes& from - ) : - EcoRes(arena) - { - MergeFrom(from); - } - inline PROTOBUF_NDEBUG_INLINE EcoRes::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena - ) : - _cached_size_{0} + EcoRes::EcoRes(const EcoRes& from) : + ::PROTOBUF_NAMESPACE_ID::Message(), + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>( + from._internal_metadata_ + ); + // @@protoc_insertion_point(copy_constructor:protobuf.EcoRes) } inline void EcoRes::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.economy_ = {}; + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.economy_){::int64_t{0}} + + , + /*decltype(_impl_._cached_size_)*/ {}}; } + EcoRes::~EcoRes() { // @@protoc_insertion_point(destructor:protobuf.EcoRes) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) + { + (void)arena; + return; + } SharedDtor(); } + inline void EcoRes::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + } + + void EcoRes::SetCachedSize(int size) const + { + _impl_._cached_size_.Set(size); } - PROTOBUF_NOINLINE void EcoRes::Clear() + void EcoRes::Clear() { // @@protoc_insertion_point(message_clear_start:protobuf.EcoRes) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; _impl_.economy_ = ::int64_t{0}; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - const char* EcoRes::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx - ) + const char* EcoRes::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +#define CHK_(x) \ + if (PROTOBUF_PREDICT_FALSE(!(x))) \ + goto failure + while (!ctx->Done(&ptr)) + { + ::uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) + { + // int64 economy = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) + { + _impl_.economy_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) + { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, + ctx + ); + CHK_(ptr != nullptr); + } // while + message_done: return ptr; + failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 0, 0, 2> EcoRes::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, - 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_EcoRes_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, - {{ - // int64 economy = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(EcoRes, _impl_.economy_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(EcoRes, _impl_.economy_)}}, - }}, - {{65535, 65535}}, - {{ - // int64 economy = 1; - {PROTOBUF_FIELD_OFFSET(EcoRes, _impl_.economy_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt64)}, - }}, - // no aux_entries - {{}}, - }; - ::uint8_t* EcoRes::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream ) const { // @@protoc_insertion_point(serialize_to_array_start:protobuf.EcoRes) @@ -7278,18 +8294,17 @@ namespace protobuf // int64 economy = 1; if (this->_internal_economy() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64ToArrayWithField<1>( - stream, this->_internal_economy(), target - ); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray( + 1, this->_internal_economy(), target + ); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream - ); + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream + ); } // @@protoc_insertion_point(serialize_to_array_end:protobuf.EcoRes) return target; @@ -7315,16 +8330,15 @@ namespace protobuf return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } - const ::google::protobuf::Message::ClassData EcoRes::_class_data_ = { - EcoRes::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor - }; - const ::google::protobuf::Message::ClassData* EcoRes::GetClassData() const + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData EcoRes::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + EcoRes::MergeImpl}; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* EcoRes::GetClassData() const { return &_class_data_; } - void EcoRes::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) + void EcoRes::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); @@ -7337,7 +8351,7 @@ namespace protobuf { _this->_internal_set_economy(from._internal_economy()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void EcoRes::CopyFrom(const EcoRes& from) @@ -7349,23 +8363,20 @@ namespace protobuf MergeFrom(from); } - PROTOBUF_NOINLINE bool EcoRes::IsInitialized() const + bool EcoRes::IsInitialized() const { return true; } - ::_pbi::CachedSize* EcoRes::AccessCachedSize() const - { - return &_impl_._cached_size_; - } - void EcoRes::InternalSwap(EcoRes* PROTOBUF_RESTRICT other) + void EcoRes::InternalSwap(EcoRes* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.economy_, other->_impl_.economy_); } - ::google::protobuf::Metadata EcoRes::GetMetadata() const + ::PROTOBUF_NAMESPACE_ID::Metadata EcoRes::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[18] @@ -7380,83 +8391,95 @@ namespace protobuf PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfNews, _impl_._oneof_case_); }; - MessageOfNews::MessageOfNews(::google::protobuf::Arena* arena) : - ::google::protobuf::Message(arena) + MessageOfNews::MessageOfNews(::PROTOBUF_NAMESPACE_ID::Arena* arena) : + ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfNews) } - inline PROTOBUF_NDEBUG_INLINE MessageOfNews::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, const Impl_& from - ) : - news_{}, - _cached_size_{0}, - _oneof_case_{from._oneof_case_[0]} - { - } - - MessageOfNews::MessageOfNews( - ::google::protobuf::Arena* arena, - const MessageOfNews& from - ) : - ::google::protobuf::Message(arena) + MessageOfNews::MessageOfNews(const MessageOfNews& from) : + ::PROTOBUF_NAMESPACE_ID::Message() { MessageOfNews* const _this = this; (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_ - ); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::memcpy(reinterpret_cast(&_impl_) + offsetof(Impl_, from_id_), reinterpret_cast(&from._impl_) + offsetof(Impl_, from_id_), offsetof(Impl_, to_id_) - offsetof(Impl_, from_id_) + sizeof(Impl_::to_id_)); - switch (news_case()) + new (&_impl_) Impl_{ + decltype(_impl_.from_id_){} + + , + decltype(_impl_.to_id_){} + + , + decltype(_impl_.news_){}, + /*decltype(_impl_._cached_size_)*/ {}, + /*decltype(_impl_._oneof_case_)*/ {}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::memcpy(&_impl_.from_id_, &from._impl_.from_id_, static_cast<::size_t>(reinterpret_cast(&_impl_.to_id_) - reinterpret_cast(&_impl_.from_id_)) + sizeof(_impl_.to_id_)); + clear_has_news(); + switch (from.news_case()) { - case NEWS_NOT_SET: - break; case kTextMessage: - new (&_impl_.news_.text_message_) decltype(_impl_.news_.text_message_){arena, from._impl_.news_.text_message_}; - break; + { + _this->_internal_set_text_message(from._internal_text_message()); + break; + } case kBinaryMessage: - new (&_impl_.news_.binary_message_) decltype(_impl_.news_.binary_message_){arena, from._impl_.news_.binary_message_}; - break; + { + _this->_internal_set_binary_message(from._internal_binary_message()); + break; + } + case NEWS_NOT_SET: + { + break; + } } - // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfNews) } - inline PROTOBUF_NDEBUG_INLINE MessageOfNews::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena - ) : - news_{}, - _cached_size_{0}, - _oneof_case_{} - { - } inline void MessageOfNews::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, from_id_), 0, offsetof(Impl_, to_id_) - offsetof(Impl_, from_id_) + sizeof(Impl_::to_id_)); + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.from_id_){::int64_t{0}} + + , + decltype(_impl_.to_id_){::int64_t{0}} + + , + decltype(_impl_.news_){}, + /*decltype(_impl_._cached_size_)*/ {}, + /*decltype(_impl_._oneof_case_)*/ {}}; + clear_has_news(); } + MessageOfNews::~MessageOfNews() { // @@protoc_insertion_point(destructor:protobuf.MessageOfNews) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) + { + (void)arena; + return; + } SharedDtor(); } + inline void MessageOfNews::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); + ABSL_DCHECK(GetArenaForAllocation() == nullptr); if (has_news()) { clear_news(); } - _impl_.~Impl_(); + } + + void MessageOfNews::SetCachedSize(int size) const + { + _impl_._cached_size_.Set(size); } void MessageOfNews::clear_news() { // @@protoc_insertion_point(one_of_clear_start:protobuf.MessageOfNews) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); switch (news_case()) { case kTextMessage: @@ -7477,70 +8500,108 @@ namespace protobuf _impl_._oneof_case_[0] = NEWS_NOT_SET; } - PROTOBUF_NOINLINE void MessageOfNews::Clear() + void MessageOfNews::Clear() { // @@protoc_insertion_point(message_clear_start:protobuf.MessageOfNews) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; ::memset(&_impl_.from_id_, 0, static_cast<::size_t>(reinterpret_cast(&_impl_.to_id_) - reinterpret_cast(&_impl_.from_id_)) + sizeof(_impl_.to_id_)); clear_news(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - const char* MessageOfNews::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx - ) + const char* MessageOfNews::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +#define CHK_(x) \ + if (PROTOBUF_PREDICT_FALSE(!(x))) \ + goto failure + while (!ctx->Done(&ptr)) + { + ::uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) + { + // string text_message = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) + { + auto str = _internal_mutable_text_message(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "protobuf.MessageOfNews.text_message")); + } + else + { + goto handle_unusual; + } + continue; + // int64 from_id = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) + { + _impl_.from_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + // int64 to_id = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) + { + _impl_.to_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + // bytes binary_message = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 34)) + { + auto str = _internal_mutable_binary_message(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) + { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, + ctx + ); + CHK_(ptr != nullptr); + } // while + message_done: return ptr; + failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<1, 4, 0, 43, 2> MessageOfNews::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 4, - 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967280, // skipmap - offsetof(decltype(_table_), field_entries), - 4, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_MessageOfNews_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, - {{ - // int64 from_id = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(MessageOfNews, _impl_.from_id_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(MessageOfNews, _impl_.from_id_)}}, - // int64 to_id = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(MessageOfNews, _impl_.to_id_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(MessageOfNews, _impl_.to_id_)}}, - }}, - {{65535, 65535}}, - {{ - // string text_message = 1; - {PROTOBUF_FIELD_OFFSET(MessageOfNews, _impl_.news_.text_message_), _Internal::kOneofCaseOffset + 0, 0, (0 | ::_fl::kFcOneof | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // int64 from_id = 2; - {PROTOBUF_FIELD_OFFSET(MessageOfNews, _impl_.from_id_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt64)}, - // int64 to_id = 3; - {PROTOBUF_FIELD_OFFSET(MessageOfNews, _impl_.to_id_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt64)}, - // bytes binary_message = 4; - {PROTOBUF_FIELD_OFFSET(MessageOfNews, _impl_.news_.binary_message_), _Internal::kOneofCaseOffset + 0, 0, (0 | ::_fl::kFcOneof | ::_fl::kBytes | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{"\26\14\0\0\0\0\0\0" - "protobuf.MessageOfNews" - "text_message"}}, - }; - ::uint8_t* MessageOfNews::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream ) const { // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfNews) @@ -7551,8 +8612,8 @@ namespace protobuf if (news_case() == kTextMessage) { const std::string& _s = this->_internal_text_message(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "protobuf.MessageOfNews.text_message" + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "protobuf.MessageOfNews.text_message" ); target = stream->WriteStringMaybeAliased(1, _s, target); } @@ -7560,19 +8621,19 @@ namespace protobuf // int64 from_id = 2; if (this->_internal_from_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64ToArrayWithField<2>( - stream, this->_internal_from_id(), target - ); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray( + 2, this->_internal_from_id(), target + ); } // int64 to_id = 3; if (this->_internal_to_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64ToArrayWithField<3>( - stream, this->_internal_to_id(), target - ); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray( + 3, this->_internal_to_id(), target + ); } // bytes binary_message = 4; @@ -7584,10 +8645,9 @@ namespace protobuf if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream - ); + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream + ); } // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfNews) return target; @@ -7623,7 +8683,7 @@ namespace protobuf // string text_message = 1; case kTextMessage: { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_text_message() ); break; @@ -7631,7 +8691,7 @@ namespace protobuf // bytes binary_message = 4; case kBinaryMessage: { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( this->_internal_binary_message() ); break; @@ -7644,16 +8704,15 @@ namespace protobuf return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } - const ::google::protobuf::Message::ClassData MessageOfNews::_class_data_ = { - MessageOfNews::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor - }; - const ::google::protobuf::Message::ClassData* MessageOfNews::GetClassData() const + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfNews::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + MessageOfNews::MergeImpl}; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfNews::GetClassData() const { return &_class_data_; } - void MessageOfNews::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) + void MessageOfNews::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); @@ -7687,7 +8746,7 @@ namespace protobuf break; } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MessageOfNews::CopyFrom(const MessageOfNews& from) @@ -7699,20 +8758,16 @@ namespace protobuf MergeFrom(from); } - PROTOBUF_NOINLINE bool MessageOfNews::IsInitialized() const + bool MessageOfNews::IsInitialized() const { return true; } - ::_pbi::CachedSize* MessageOfNews::AccessCachedSize() const - { - return &_impl_._cached_size_; - } - void MessageOfNews::InternalSwap(MessageOfNews* PROTOBUF_RESTRICT other) + void MessageOfNews::InternalSwap(MessageOfNews* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::google::protobuf::internal::memswap< + ::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_) @@ -7721,7 +8776,7 @@ namespace protobuf swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); } - ::google::protobuf::Metadata MessageOfNews::GetMetadata() const + ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfNews::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[19] @@ -7729,11 +8784,127 @@ namespace protobuf } // @@protoc_insertion_point(namespace_scope) } // namespace protobuf -namespace google +PROTOBUF_NAMESPACE_OPEN +template<> +PROTOBUF_NOINLINE ::protobuf::MessageOfShip* + Arena::CreateMaybeMessage<::protobuf::MessageOfShip>(Arena* arena) { - namespace protobuf - { - } // namespace protobuf -} // namespace google + return Arena::CreateMessageInternal<::protobuf::MessageOfShip>(arena); +} +template<> +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) +{ + return Arena::CreateMessageInternal<::protobuf::MessageOfBombedBullet>(arena); +} +template<> +PROTOBUF_NOINLINE ::protobuf::MessageOfFactory* + Arena::CreateMaybeMessage<::protobuf::MessageOfFactory>(Arena* arena) +{ + return Arena::CreateMessageInternal<::protobuf::MessageOfFactory>(arena); +} +template<> +PROTOBUF_NOINLINE ::protobuf::MessageOfCommunity* + Arena::CreateMaybeMessage<::protobuf::MessageOfCommunity>(Arena* arena) +{ + return Arena::CreateMessageInternal<::protobuf::MessageOfCommunity>(arena); +} +template<> +PROTOBUF_NOINLINE ::protobuf::MessageOfFort* + Arena::CreateMaybeMessage<::protobuf::MessageOfFort>(Arena* arena) +{ + return Arena::CreateMessageInternal<::protobuf::MessageOfFort>(arena); +} +template<> +PROTOBUF_NOINLINE ::protobuf::MessageOfWormhole* + Arena::CreateMaybeMessage<::protobuf::MessageOfWormhole>(Arena* arena) +{ + return Arena::CreateMessageInternal<::protobuf::MessageOfWormhole>(arena); +} +template<> +PROTOBUF_NOINLINE ::protobuf::MessageOfResource* + Arena::CreateMaybeMessage<::protobuf::MessageOfResource>(Arena* arena) +{ + return Arena::CreateMessageInternal<::protobuf::MessageOfResource>(arena); +} +template<> +PROTOBUF_NOINLINE ::protobuf::MessageOfHome* + Arena::CreateMaybeMessage<::protobuf::MessageOfHome>(Arena* arena) +{ + return Arena::CreateMessageInternal<::protobuf::MessageOfHome>(arena); +} +template<> +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) +{ + return Arena::CreateMessageInternal<::protobuf::MessageOfMap>(arena); +} +template<> +PROTOBUF_NOINLINE ::protobuf::MessageOfTeam* + Arena::CreateMaybeMessage<::protobuf::MessageOfTeam>(Arena* arena) +{ + return Arena::CreateMessageInternal<::protobuf::MessageOfTeam>(arena); +} +template<> +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) +{ + return Arena::CreateMessageInternal<::protobuf::MessageOfAll>(arena); +} +template<> +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) +{ + return Arena::CreateMessageInternal<::protobuf::MoveRes>(arena); +} +template<> +PROTOBUF_NOINLINE ::protobuf::BoolRes* + Arena::CreateMaybeMessage<::protobuf::BoolRes>(Arena* arena) +{ + return Arena::CreateMessageInternal<::protobuf::BoolRes>(arena); +} +template<> +PROTOBUF_NOINLINE ::protobuf::ShipInfoRes* + Arena::CreateMaybeMessage<::protobuf::ShipInfoRes>(Arena* arena) +{ + return Arena::CreateMessageInternal<::protobuf::ShipInfoRes>(arena); +} +template<> +PROTOBUF_NOINLINE ::protobuf::EcoRes* + Arena::CreateMaybeMessage<::protobuf::EcoRes>(Arena* arena) +{ + return Arena::CreateMessageInternal<::protobuf::EcoRes>(arena); +} +template<> +PROTOBUF_NOINLINE ::protobuf::MessageOfNews* + Arena::CreateMaybeMessage<::protobuf::MessageOfNews>(Arena* arena) +{ + return Arena::CreateMessageInternal<::protobuf::MessageOfNews>(arena); +} +PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) #include "google/protobuf/port_undef.inc" diff --git a/CAPI/cpp/proto/Message2Clients.pb.h b/CAPI/cpp/proto/Message2Clients.pb.h old mode 100755 new mode 100644 index 8c144fcc..6cd959a8 --- a/CAPI/cpp/proto/Message2Clients.pb.h +++ b/CAPI/cpp/proto/Message2Clients.pb.h @@ -1,6 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: Message2Clients.proto -// Protobuf C++ Version: 4.25.1 #ifndef GOOGLE_PROTOBUF_INCLUDED_Message2Clients_2eproto_2epb_2eh #define GOOGLE_PROTOBUF_INCLUDED_Message2Clients_2eproto_2epb_2eh @@ -8,16 +7,15 @@ #include #include #include -#include #include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4025000 +#if PROTOBUF_VERSION < 4023000 #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 // PROTOBUF_VERSION -#if 4025001 < PROTOBUF_MIN_PROTOC_VERSION +#if 4023004 < 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." @@ -26,7 +24,6 @@ #include "google/protobuf/io/coded_stream.h" #include "google/protobuf/arena.h" #include "google/protobuf/arenastring.h" -#include "google/protobuf/generated_message_tctable_decl.h" #include "google/protobuf/generated_message_util.h" #include "google/protobuf/metadata_lite.h" #include "google/protobuf/generated_message_reflection.h" @@ -42,23 +39,19 @@ #define PROTOBUF_INTERNAL_EXPORT_Message2Clients_2eproto -namespace google +PROTOBUF_NAMESPACE_OPEN +namespace internal { - namespace protobuf - { - namespace internal - { - class AnyMetadata; - } // namespace internal - } // namespace protobuf -} // namespace google + class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_Message2Clients_2eproto { static const ::uint32_t offsets[]; }; -extern const ::google::protobuf::internal::DescriptorTable +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_Message2Clients_2eproto; namespace protobuf { @@ -123,12 +116,48 @@ namespace protobuf struct ShipInfoResDefaultTypeInternal; extern ShipInfoResDefaultTypeInternal _ShipInfoRes_default_instance_; } // namespace protobuf -namespace google -{ - namespace protobuf - { - } // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> +::protobuf::BoolRes* Arena::CreateMaybeMessage<::protobuf::BoolRes>(Arena*); +template<> +::protobuf::EcoRes* Arena::CreateMaybeMessage<::protobuf::EcoRes>(Arena*); +template<> +::protobuf::MessageOfAll* Arena::CreateMaybeMessage<::protobuf::MessageOfAll>(Arena*); +template<> +::protobuf::MessageOfBombedBullet* Arena::CreateMaybeMessage<::protobuf::MessageOfBombedBullet>(Arena*); +template<> +::protobuf::MessageOfBullet* Arena::CreateMaybeMessage<::protobuf::MessageOfBullet>(Arena*); +template<> +::protobuf::MessageOfCommunity* Arena::CreateMaybeMessage<::protobuf::MessageOfCommunity>(Arena*); +template<> +::protobuf::MessageOfFactory* Arena::CreateMaybeMessage<::protobuf::MessageOfFactory>(Arena*); +template<> +::protobuf::MessageOfFort* Arena::CreateMaybeMessage<::protobuf::MessageOfFort>(Arena*); +template<> +::protobuf::MessageOfHome* Arena::CreateMaybeMessage<::protobuf::MessageOfHome>(Arena*); +template<> +::protobuf::MessageOfMap* Arena::CreateMaybeMessage<::protobuf::MessageOfMap>(Arena*); +template<> +::protobuf::MessageOfMap_Row* Arena::CreateMaybeMessage<::protobuf::MessageOfMap_Row>(Arena*); +template<> +::protobuf::MessageOfNews* Arena::CreateMaybeMessage<::protobuf::MessageOfNews>(Arena*); +template<> +::protobuf::MessageOfObj* Arena::CreateMaybeMessage<::protobuf::MessageOfObj>(Arena*); +template<> +::protobuf::MessageOfResource* Arena::CreateMaybeMessage<::protobuf::MessageOfResource>(Arena*); +template<> +::protobuf::MessageOfShip* Arena::CreateMaybeMessage<::protobuf::MessageOfShip>(Arena*); +template<> +::protobuf::MessageOfTeam* Arena::CreateMaybeMessage<::protobuf::MessageOfTeam>(Arena*); +template<> +::protobuf::MessageOfWormhole* Arena::CreateMaybeMessage<::protobuf::MessageOfWormhole>(Arena*); +template<> +::protobuf::MessageToClient* Arena::CreateMaybeMessage<::protobuf::MessageToClient>(Arena*); +template<> +::protobuf::MoveRes* Arena::CreateMaybeMessage<::protobuf::MoveRes>(Arena*); +template<> +::protobuf::ShipInfoRes* Arena::CreateMaybeMessage<::protobuf::ShipInfoRes>(Arena*); +PROTOBUF_NAMESPACE_CLOSE namespace protobuf { @@ -137,41 +166,38 @@ namespace protobuf // ------------------------------------------------------------------- - class MoveRes final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf.MoveRes) */ + class MessageOfShip final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:protobuf.MessageOfShip) */ { public: - inline MoveRes() : - MoveRes(nullptr) + inline MessageOfShip() : + MessageOfShip(nullptr) { } - ~MoveRes() override; + ~MessageOfShip() override; template - explicit PROTOBUF_CONSTEXPR MoveRes(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR MessageOfShip(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline MoveRes(const MoveRes& from) : - MoveRes(nullptr, from) - { - } - MoveRes(MoveRes&& from) noexcept + MessageOfShip(const MessageOfShip& from); + MessageOfShip(MessageOfShip&& from) noexcept : - MoveRes() + MessageOfShip() { *this = ::std::move(from); } - inline MoveRes& operator=(const MoveRes& from) + inline MessageOfShip& operator=(const MessageOfShip& from) { CopyFrom(from); return *this; } - inline MoveRes& operator=(MoveRes&& from) noexcept + inline MessageOfShip& operator=(MessageOfShip&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { @@ -184,126 +210,123 @@ namespace protobuf return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const MoveRes& default_instance() + static const MessageOfShip& default_instance() { return *internal_default_instance(); } - static inline const MoveRes* internal_default_instance() + static inline const MessageOfShip* internal_default_instance() { - return reinterpret_cast( - &_MoveRes_default_instance_ + return reinterpret_cast( + &_MessageOfShip_default_instance_ ); } static constexpr int kIndexInFileMessages = - 15; + 0; - friend void swap(MoveRes& a, MoveRes& b) + friend void swap(MessageOfShip& a, MessageOfShip& b) { a.Swap(&b); } - inline void Swap(MoveRes* other) + inline void Swap(MessageOfShip* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(MoveRes* other) + void UnsafeArenaSwap(MessageOfShip* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - MoveRes* New(::google::protobuf::Arena* arena = nullptr) const final + MessageOfShip* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const MoveRes& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const MoveRes& from) + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const MessageOfShip& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const MessageOfShip& from) { - MoveRes::MergeImpl(*this, from); + MessageOfShip::MergeImpl(*this, from); } private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream ) const final; - int GetCachedSize() const + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); void SharedDtor(); - void InternalSwap(MoveRes* other); + void SetCachedSize(int size) const final; + void InternalSwap(MessageOfShip* other); private: - friend class ::google::protobuf::internal::AnyMetadata; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "protobuf.MoveRes"; + return "protobuf.MessageOfShip"; } protected: - explicit MoveRes(::google::protobuf::Arena* arena); - MoveRes(::google::protobuf::Arena* arena, const MoveRes& from); + explicit MessageOfShip(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData* GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -311,318 +334,235 @@ namespace protobuf enum : int { - kActualSpeedFieldNumber = 1, - kActualAngleFieldNumber = 2, - kActSuccessFieldNumber = 3, + kXFieldNumber = 1, + kYFieldNumber = 2, + kSpeedFieldNumber = 3, + kHpFieldNumber = 4, + kArmorFieldNumber = 5, + kShieldFieldNumber = 6, + kTeamIdFieldNumber = 7, + kPlayerIdFieldNumber = 8, + kGuidFieldNumber = 9, + kShipStateFieldNumber = 10, + kShipTypeFieldNumber = 11, + kViewRangeFieldNumber = 12, + kProducerTypeFieldNumber = 13, + kConstructorTypeFieldNumber = 14, + kArmorTypeFieldNumber = 15, + kShieldTypeFieldNumber = 16, + kWeaponTypeFieldNumber = 17, + kFacingDirectionFieldNumber = 18, }; - // int64 actual_speed = 1; - void clear_actual_speed(); - ::int64_t actual_speed() const; - void set_actual_speed(::int64_t value); + // int32 x = 1; + void clear_x(); + ::int32_t x() const; + void set_x(::int32_t value); private: - ::int64_t _internal_actual_speed() const; - void _internal_set_actual_speed(::int64_t value); + ::int32_t _internal_x() const; + void _internal_set_x(::int32_t value); public: - // double actual_angle = 2; - void clear_actual_angle(); - double actual_angle() const; - void set_actual_angle(double value); + // int32 y = 2; + void clear_y(); + ::int32_t y() const; + void set_y(::int32_t value); private: - double _internal_actual_angle() const; - void _internal_set_actual_angle(double value); + ::int32_t _internal_y() const; + void _internal_set_y(::int32_t value); public: - // bool act_success = 3; - void clear_act_success(); - bool act_success() const; - void set_act_success(bool value); + // int32 speed = 3; + void clear_speed(); + ::int32_t speed() const; + void set_speed(::int32_t value); private: - bool _internal_act_success() const; - void _internal_set_act_success(bool value); + ::int32_t _internal_speed() const; + void _internal_set_speed(::int32_t value); public: - // @@protoc_insertion_point(class_scope:protobuf.MoveRes) + // int32 hp = 4; + void clear_hp(); + ::int32_t hp() const; + void set_hp(::int32_t value); private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, - 3, - 0, - 0, - 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ - { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized - ) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, const Impl_& from); - ::int64_t actual_speed_; - double actual_angle_; - bool act_success_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union - { - Impl_ _impl_; - }; - friend struct ::TableStruct_Message2Clients_2eproto; - }; // ------------------------------------------------------------------- + ::int32_t _internal_hp() const; + void _internal_set_hp(::int32_t value); - class MessageOfWormhole final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf.MessageOfWormhole) */ - { public: - inline MessageOfWormhole() : - MessageOfWormhole(nullptr) - { - } - ~MessageOfWormhole() override; - template - explicit PROTOBUF_CONSTEXPR MessageOfWormhole(::google::protobuf::internal::ConstantInitialized); - - inline MessageOfWormhole(const MessageOfWormhole& from) : - MessageOfWormhole(nullptr, from) - { - } - MessageOfWormhole(MessageOfWormhole&& from) noexcept - : - MessageOfWormhole() - { - *this = ::std::move(from); - } + // int32 armor = 5; + void clear_armor(); + ::int32_t armor() const; + void set_armor(::int32_t value); - inline MessageOfWormhole& operator=(const MessageOfWormhole& from) - { - CopyFrom(from); - return *this; - } - inline MessageOfWormhole& operator=(MessageOfWormhole&& from) noexcept - { - if (this == &from) - return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) - { - InternalSwap(&from); - } - else - { - CopyFrom(from); - } - return *this; - } + private: + ::int32_t _internal_armor() const; + void _internal_set_armor(::int32_t value); - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND - { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND - { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } + public: + // int32 shield = 6; + void clear_shield(); + ::int32_t shield() const; + void set_shield(::int32_t value); - static const ::google::protobuf::Descriptor* descriptor() - { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() - { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() - { - return default_instance().GetMetadata().reflection; - } - static const MessageOfWormhole& default_instance() - { - return *internal_default_instance(); - } - static inline const MessageOfWormhole* internal_default_instance() - { - return reinterpret_cast( - &_MessageOfWormhole_default_instance_ - ); - } - static constexpr int kIndexInFileMessages = - 6; + private: + ::int32_t _internal_shield() const; + void _internal_set_shield(::int32_t value); - friend void swap(MessageOfWormhole& a, MessageOfWormhole& b) - { - a.Swap(&b); - } - inline void Swap(MessageOfWormhole* other) - { - if (other == this) - return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) - { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) - { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } - else - { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(MessageOfWormhole* other) - { - if (other == this) - return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } + public: + // int64 team_id = 7; + void clear_team_id(); + ::int64_t team_id() const; + void set_team_id(::int64_t value); - // implements Message ---------------------------------------------- + private: + ::int64_t _internal_team_id() const; + void _internal_set_team_id(::int64_t value); - MessageOfWormhole* New(::google::protobuf::Arena* arena = nullptr) const final - { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const MessageOfWormhole& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const MessageOfWormhole& from) - { - MessageOfWormhole::MergeImpl(*this, from); - } + public: + // int64 player_id = 8; + void clear_player_id(); + ::int64_t player_id() const; + void set_player_id(::int64_t value); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + ::int64_t _internal_player_id() const; + void _internal_set_player_id(::int64_t value); public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + // int64 guid = 9; + void clear_guid(); + ::int64_t guid() const; + void set_guid(::int64_t value); - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream - ) const final; - int GetCachedSize() const - { - return _impl_._cached_size_.Get(); - } + private: + ::int64_t _internal_guid() const; + void _internal_set_guid(::int64_t value); + + public: + // .protobuf.ShipState ship_state = 10; + void clear_ship_state(); + ::protobuf::ShipState ship_state() const; + void set_ship_state(::protobuf::ShipState value); private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(MessageOfWormhole* other); + ::protobuf::ShipState _internal_ship_state() const; + void _internal_set_ship_state(::protobuf::ShipState value); + + public: + // .protobuf.ShipType ship_type = 11; + void clear_ship_type(); + ::protobuf::ShipType ship_type() const; + void set_ship_type(::protobuf::ShipType value); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() - { - return "protobuf.MessageOfWormhole"; - } + ::protobuf::ShipType _internal_ship_type() const; + void _internal_set_ship_type(::protobuf::ShipType value); - protected: - explicit MessageOfWormhole(::google::protobuf::Arena* arena); - MessageOfWormhole(::google::protobuf::Arena* arena, const MessageOfWormhole& from); + public: + // int32 view_range = 12; + void clear_view_range(); + ::int32_t view_range() const; + void set_view_range(::int32_t value); + + private: + ::int32_t _internal_view_range() const; + void _internal_set_view_range(::int32_t value); public: - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData* GetClassData() const final; + // .protobuf.ProducerType producer_type = 13; + void clear_producer_type(); + ::protobuf::ProducerType producer_type() const; + void set_producer_type(::protobuf::ProducerType value); - ::google::protobuf::Metadata GetMetadata() const final; + private: + ::protobuf::ProducerType _internal_producer_type() const; + void _internal_set_producer_type(::protobuf::ProducerType value); - // nested types ---------------------------------------------------- + public: + // .protobuf.ConstructorType constructor_type = 14; + void clear_constructor_type(); + ::protobuf::ConstructorType constructor_type() const; + void set_constructor_type(::protobuf::ConstructorType value); - // accessors ------------------------------------------------------- + private: + ::protobuf::ConstructorType _internal_constructor_type() const; + void _internal_set_constructor_type(::protobuf::ConstructorType value); - enum : int - { - kXFieldNumber = 1, - kYFieldNumber = 2, - kHpFieldNumber = 3, - }; - // int32 x = 1; - void clear_x(); - ::int32_t x() const; - void set_x(::int32_t value); + public: + // .protobuf.ArmorType armor_type = 15; + void clear_armor_type(); + ::protobuf::ArmorType armor_type() const; + void set_armor_type(::protobuf::ArmorType value); private: - ::int32_t _internal_x() const; - void _internal_set_x(::int32_t value); + ::protobuf::ArmorType _internal_armor_type() const; + void _internal_set_armor_type(::protobuf::ArmorType value); public: - // int32 y = 2; - void clear_y(); - ::int32_t y() const; - void set_y(::int32_t value); + // .protobuf.ShieldType shield_type = 16; + void clear_shield_type(); + ::protobuf::ShieldType shield_type() const; + void set_shield_type(::protobuf::ShieldType value); private: - ::int32_t _internal_y() const; - void _internal_set_y(::int32_t value); + ::protobuf::ShieldType _internal_shield_type() const; + void _internal_set_shield_type(::protobuf::ShieldType value); public: - // int32 hp = 3; - void clear_hp(); - ::int32_t hp() const; - void set_hp(::int32_t value); + // .protobuf.WeaponType weapon_type = 17; + void clear_weapon_type(); + ::protobuf::WeaponType weapon_type() const; + void set_weapon_type(::protobuf::WeaponType value); private: - ::int32_t _internal_hp() const; - void _internal_set_hp(::int32_t value); + ::protobuf::WeaponType _internal_weapon_type() const; + void _internal_set_weapon_type(::protobuf::WeaponType value); public: - // @@protoc_insertion_point(class_scope:protobuf.MessageOfWormhole) + // double facing_direction = 18; + void clear_facing_direction(); + double facing_direction() const; + void set_facing_direction(double value); + + private: + double _internal_facing_direction() const; + void _internal_set_facing_direction(double value); + + public: + // @@protoc_insertion_point(class_scope:protobuf.MessageOfShip) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, - 3, - 0, - 0, - 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; + friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized - ) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, const Impl_& from); ::int32_t x_; ::int32_t y_; + ::int32_t speed_; ::int32_t hp_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER + ::int32_t armor_; + ::int32_t shield_; + ::int64_t team_id_; + ::int64_t player_id_; + ::int64_t guid_; + int ship_state_; + int ship_type_; + ::int32_t view_range_; + int producer_type_; + int constructor_type_; + int armor_type_; + int shield_type_; + int weapon_type_; + double facing_direction_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; }; union { @@ -631,41 +571,38 @@ namespace protobuf friend struct ::TableStruct_Message2Clients_2eproto; }; // ------------------------------------------------------------------- - class MessageOfTeam final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf.MessageOfTeam) */ + class MessageOfBullet final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:protobuf.MessageOfBullet) */ { public: - inline MessageOfTeam() : - MessageOfTeam(nullptr) + inline MessageOfBullet() : + MessageOfBullet(nullptr) { } - ~MessageOfTeam() override; + ~MessageOfBullet() override; template - explicit PROTOBUF_CONSTEXPR MessageOfTeam(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR MessageOfBullet(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline MessageOfTeam(const MessageOfTeam& from) : - MessageOfTeam(nullptr, from) - { - } - MessageOfTeam(MessageOfTeam&& from) noexcept + MessageOfBullet(const MessageOfBullet& from); + MessageOfBullet(MessageOfBullet&& from) noexcept : - MessageOfTeam() + MessageOfBullet() { *this = ::std::move(from); } - inline MessageOfTeam& operator=(const MessageOfTeam& from) + inline MessageOfBullet& operator=(const MessageOfBullet& from) { CopyFrom(from); return *this; } - inline MessageOfTeam& operator=(MessageOfTeam&& from) noexcept + inline MessageOfBullet& operator=(MessageOfBullet&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { @@ -678,126 +615,123 @@ namespace protobuf return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const MessageOfTeam& default_instance() + static const MessageOfBullet& default_instance() { return *internal_default_instance(); } - static inline const MessageOfTeam* internal_default_instance() + static inline const MessageOfBullet* internal_default_instance() { - return reinterpret_cast( - &_MessageOfTeam_default_instance_ + return reinterpret_cast( + &_MessageOfBullet_default_instance_ ); } static constexpr int kIndexInFileMessages = - 11; + 1; - friend void swap(MessageOfTeam& a, MessageOfTeam& b) + friend void swap(MessageOfBullet& a, MessageOfBullet& b) { a.Swap(&b); } - inline void Swap(MessageOfTeam* other) + inline void Swap(MessageOfBullet* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(MessageOfTeam* other) + void UnsafeArenaSwap(MessageOfBullet* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - MessageOfTeam* New(::google::protobuf::Arena* arena = nullptr) const final + MessageOfBullet* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const MessageOfTeam& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const MessageOfTeam& from) + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const MessageOfBullet& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const MessageOfBullet& from) { - MessageOfTeam::MergeImpl(*this, from); + MessageOfBullet::MergeImpl(*this, from); } private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream ) const final; - int GetCachedSize() const + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); void SharedDtor(); - void InternalSwap(MessageOfTeam* other); + void SetCachedSize(int size) const final; + void InternalSwap(MessageOfBullet* other); private: - friend class ::google::protobuf::internal::AnyMetadata; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "protobuf.MessageOfTeam"; + return "protobuf.MessageOfBullet"; } protected: - explicit MessageOfTeam(::google::protobuf::Arena* arena); - MessageOfTeam(::google::protobuf::Arena* arena, const MessageOfTeam& from); + explicit MessageOfBullet(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData* GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -805,83 +739,127 @@ namespace protobuf enum : int { - kTeamIdFieldNumber = 1, - kPlayerIdFieldNumber = 2, - kScoreFieldNumber = 3, - kMoneyFieldNumber = 4, + kTypeFieldNumber = 1, + kXFieldNumber = 2, + kFacingDirectionFieldNumber = 4, + kYFieldNumber = 3, + kDamageFieldNumber = 5, + kTeamIdFieldNumber = 6, + kGuidFieldNumber = 7, + kBombRangeFieldNumber = 8, + kSpeedFieldNumber = 9, }; - // int64 team_id = 1; - void clear_team_id(); - ::int64_t team_id() const; - void set_team_id(::int64_t value); + // .protobuf.BulletType type = 1; + void clear_type(); + ::protobuf::BulletType type() const; + void set_type(::protobuf::BulletType value); private: - ::int64_t _internal_team_id() const; - void _internal_set_team_id(::int64_t value); + ::protobuf::BulletType _internal_type() const; + void _internal_set_type(::protobuf::BulletType value); public: - // int64 player_id = 2; - void clear_player_id(); - ::int64_t player_id() const; - void set_player_id(::int64_t value); + // int32 x = 2; + void clear_x(); + ::int32_t x() const; + void set_x(::int32_t value); private: - ::int64_t _internal_player_id() const; - void _internal_set_player_id(::int64_t value); + ::int32_t _internal_x() const; + void _internal_set_x(::int32_t value); public: - // int32 score = 3; - void clear_score(); - ::int32_t score() const; - void set_score(::int32_t value); + // double facing_direction = 4; + void clear_facing_direction(); + double facing_direction() const; + void set_facing_direction(double value); private: - ::int32_t _internal_score() const; - void _internal_set_score(::int32_t value); + double _internal_facing_direction() const; + void _internal_set_facing_direction(double value); public: - // int32 money = 4; - void clear_money(); - ::int32_t money() const; - void set_money(::int32_t value); + // int32 y = 3; + void clear_y(); + ::int32_t y() const; + void set_y(::int32_t value); private: - ::int32_t _internal_money() const; - void _internal_set_money(::int32_t value); + ::int32_t _internal_y() const; + void _internal_set_y(::int32_t value); public: - // @@protoc_insertion_point(class_scope:protobuf.MessageOfTeam) + // int32 damage = 5; + void clear_damage(); + ::int32_t damage() const; + void set_damage(::int32_t value); private: - class _Internal; + ::int32_t _internal_damage() const; + void _internal_set_damage(::int32_t value); - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, - 4, - 0, - 0, - 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ - { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized - ) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, const Impl_& from); - ::int64_t team_id_; - ::int64_t player_id_; - ::int32_t score_; - ::int32_t money_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER + public: + // int64 team_id = 6; + void clear_team_id(); + ::int64_t team_id() const; + void set_team_id(::int64_t value); + + private: + ::int64_t _internal_team_id() const; + void _internal_set_team_id(::int64_t value); + + public: + // int64 guid = 7; + void clear_guid(); + ::int64_t guid() const; + void set_guid(::int64_t value); + + private: + ::int64_t _internal_guid() const; + void _internal_set_guid(::int64_t value); + + public: + // double bomb_range = 8; + void clear_bomb_range(); + double bomb_range() const; + void set_bomb_range(double value); + + private: + double _internal_bomb_range() const; + void _internal_set_bomb_range(double value); + + public: + // int32 speed = 9; + void clear_speed(); + ::int32_t speed() const; + void set_speed(::int32_t value); + + private: + ::int32_t _internal_speed() const; + void _internal_set_speed(::int32_t value); + + public: + // @@protoc_insertion_point(class_scope:protobuf.MessageOfBullet) + + private: + class _Internal; + + template + 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_; + ::int32_t damage_; + ::int64_t team_id_; + ::int64_t guid_; + double bomb_range_; + ::int32_t speed_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; }; union { @@ -890,41 +868,38 @@ namespace protobuf friend struct ::TableStruct_Message2Clients_2eproto; }; // ------------------------------------------------------------------- - class MessageOfShip final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf.MessageOfShip) */ + class MessageOfBombedBullet final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:protobuf.MessageOfBombedBullet) */ { public: - inline MessageOfShip() : - MessageOfShip(nullptr) + inline MessageOfBombedBullet() : + MessageOfBombedBullet(nullptr) { } - ~MessageOfShip() override; + ~MessageOfBombedBullet() override; template - explicit PROTOBUF_CONSTEXPR MessageOfShip(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR MessageOfBombedBullet(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline MessageOfShip(const MessageOfShip& from) : - MessageOfShip(nullptr, from) - { - } - MessageOfShip(MessageOfShip&& from) noexcept + MessageOfBombedBullet(const MessageOfBombedBullet& from); + MessageOfBombedBullet(MessageOfBombedBullet&& from) noexcept : - MessageOfShip() + MessageOfBombedBullet() { *this = ::std::move(from); } - inline MessageOfShip& operator=(const MessageOfShip& from) + inline MessageOfBombedBullet& operator=(const MessageOfBombedBullet& from) { CopyFrom(from); return *this; } - inline MessageOfShip& operator=(MessageOfShip&& from) noexcept + inline MessageOfBombedBullet& operator=(MessageOfBombedBullet&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { @@ -937,126 +912,123 @@ namespace protobuf return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const MessageOfShip& default_instance() + static const MessageOfBombedBullet& default_instance() { return *internal_default_instance(); } - static inline const MessageOfShip* internal_default_instance() + static inline const MessageOfBombedBullet* internal_default_instance() { - return reinterpret_cast( - &_MessageOfShip_default_instance_ + return reinterpret_cast( + &_MessageOfBombedBullet_default_instance_ ); } static constexpr int kIndexInFileMessages = - 0; + 2; - friend void swap(MessageOfShip& a, MessageOfShip& b) + friend void swap(MessageOfBombedBullet& a, MessageOfBombedBullet& b) { a.Swap(&b); } - inline void Swap(MessageOfShip* other) + inline void Swap(MessageOfBombedBullet* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(MessageOfShip* other) + void UnsafeArenaSwap(MessageOfBombedBullet* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - MessageOfShip* New(::google::protobuf::Arena* arena = nullptr) const final + MessageOfBombedBullet* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const MessageOfShip& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const MessageOfShip& from) + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const MessageOfBombedBullet& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const MessageOfBombedBullet& from) { - MessageOfShip::MergeImpl(*this, from); + MessageOfBombedBullet::MergeImpl(*this, from); } private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream ) const final; - int GetCachedSize() const + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); void SharedDtor(); - void InternalSwap(MessageOfShip* other); + void SetCachedSize(int size) const final; + void InternalSwap(MessageOfBombedBullet* other); private: - friend class ::google::protobuf::internal::AnyMetadata; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "protobuf.MessageOfShip"; + return "protobuf.MessageOfBombedBullet"; } protected: - explicit MessageOfShip(::google::protobuf::Arena* arena); - MessageOfShip(::google::protobuf::Arena* arena, const MessageOfShip& from); + explicit MessageOfBombedBullet(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData* GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1064,26 +1036,24 @@ namespace protobuf enum : int { - kXFieldNumber = 1, - kYFieldNumber = 2, - kSpeedFieldNumber = 3, - kHpFieldNumber = 4, - kArmorFieldNumber = 5, - kShieldFieldNumber = 6, - kTeamIdFieldNumber = 7, - kPlayerIdFieldNumber = 8, - kGuidFieldNumber = 9, - kShipStateFieldNumber = 10, - kShipTypeFieldNumber = 11, - kViewRangeFieldNumber = 12, - kProducerTypeFieldNumber = 13, - kConstructorTypeFieldNumber = 14, - kArmorTypeFieldNumber = 15, - kShieldTypeFieldNumber = 16, - kWeaponTypeFieldNumber = 17, - kFacingDirectionFieldNumber = 18, + kTypeFieldNumber = 1, + kXFieldNumber = 2, + kFacingDirectionFieldNumber = 4, + kMappingIdFieldNumber = 5, + kBombRangeFieldNumber = 6, + kYFieldNumber = 3, }; - // int32 x = 1; + // .protobuf.BulletType type = 1; + void clear_type(); + ::protobuf::BulletType type() const; + void set_type(::protobuf::BulletType value); + + private: + ::protobuf::BulletType _internal_type() const; + void _internal_set_type(::protobuf::BulletType value); + + public: + // int32 x = 2; void clear_x(); ::int32_t x() const; void set_x(::int32_t value); @@ -1093,265 +1063,104 @@ namespace protobuf void _internal_set_x(::int32_t value); public: - // int32 y = 2; - void clear_y(); - ::int32_t y() const; - void set_y(::int32_t value); - - private: - ::int32_t _internal_y() const; - void _internal_set_y(::int32_t value); - - public: - // int32 speed = 3; - void clear_speed(); - ::int32_t speed() const; - void set_speed(::int32_t value); + // double facing_direction = 4; + void clear_facing_direction(); + double facing_direction() const; + void set_facing_direction(double value); private: - ::int32_t _internal_speed() const; - void _internal_set_speed(::int32_t value); + double _internal_facing_direction() const; + void _internal_set_facing_direction(double value); public: - // int32 hp = 4; - void clear_hp(); - ::int32_t hp() const; - void set_hp(::int32_t value); + // int64 mapping_id = 5; + void clear_mapping_id(); + ::int64_t mapping_id() const; + void set_mapping_id(::int64_t value); private: - ::int32_t _internal_hp() const; - void _internal_set_hp(::int32_t value); + ::int64_t _internal_mapping_id() const; + void _internal_set_mapping_id(::int64_t value); public: - // int32 armor = 5; - void clear_armor(); - ::int32_t armor() const; - void set_armor(::int32_t value); + // double bomb_range = 6; + void clear_bomb_range(); + double bomb_range() const; + void set_bomb_range(double value); private: - ::int32_t _internal_armor() const; - void _internal_set_armor(::int32_t value); + double _internal_bomb_range() const; + void _internal_set_bomb_range(double value); public: - // int32 shield = 6; - void clear_shield(); - ::int32_t shield() const; - void set_shield(::int32_t value); + // int32 y = 3; + void clear_y(); + ::int32_t y() const; + void set_y(::int32_t value); private: - ::int32_t _internal_shield() const; - void _internal_set_shield(::int32_t value); + ::int32_t _internal_y() const; + void _internal_set_y(::int32_t value); public: - // int64 team_id = 7; - void clear_team_id(); - ::int64_t team_id() const; - void set_team_id(::int64_t value); + // @@protoc_insertion_point(class_scope:protobuf.MessageOfBombedBullet) private: - ::int64_t _internal_team_id() const; - void _internal_set_team_id(::int64_t value); - - public: - // int64 player_id = 8; - void clear_player_id(); - ::int64_t player_id() const; - void set_player_id(::int64_t value); + class _Internal; - private: - ::int64_t _internal_player_id() const; - void _internal_set_player_id(::int64_t value); + template + 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_; + }; + friend struct ::TableStruct_Message2Clients_2eproto; + }; // ------------------------------------------------------------------- + class MessageOfFactory final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:protobuf.MessageOfFactory) */ + { public: - // int64 guid = 9; - void clear_guid(); - ::int64_t guid() const; - void set_guid(::int64_t value); + inline MessageOfFactory() : + MessageOfFactory(nullptr) + { + } + ~MessageOfFactory() override; + template + explicit PROTOBUF_CONSTEXPR MessageOfFactory(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - private: - ::int64_t _internal_guid() const; - void _internal_set_guid(::int64_t value); + MessageOfFactory(const MessageOfFactory& from); + MessageOfFactory(MessageOfFactory&& from) noexcept + : + MessageOfFactory() + { + *this = ::std::move(from); + } - public: - // .protobuf.ShipState ship_state = 10; - void clear_ship_state(); - ::protobuf::ShipState ship_state() const; - void set_ship_state(::protobuf::ShipState value); - - private: - ::protobuf::ShipState _internal_ship_state() const; - void _internal_set_ship_state(::protobuf::ShipState value); - - public: - // .protobuf.ShipType ship_type = 11; - void clear_ship_type(); - ::protobuf::ShipType ship_type() const; - void set_ship_type(::protobuf::ShipType value); - - private: - ::protobuf::ShipType _internal_ship_type() const; - void _internal_set_ship_type(::protobuf::ShipType value); - - public: - // int32 view_range = 12; - void clear_view_range(); - ::int32_t view_range() const; - void set_view_range(::int32_t value); - - private: - ::int32_t _internal_view_range() const; - void _internal_set_view_range(::int32_t value); - - public: - // .protobuf.ProducerType producer_type = 13; - void clear_producer_type(); - ::protobuf::ProducerType producer_type() const; - void set_producer_type(::protobuf::ProducerType value); - - private: - ::protobuf::ProducerType _internal_producer_type() const; - void _internal_set_producer_type(::protobuf::ProducerType value); - - public: - // .protobuf.ConstructorType constructor_type = 14; - void clear_constructor_type(); - ::protobuf::ConstructorType constructor_type() const; - void set_constructor_type(::protobuf::ConstructorType value); - - private: - ::protobuf::ConstructorType _internal_constructor_type() const; - void _internal_set_constructor_type(::protobuf::ConstructorType value); - - public: - // .protobuf.ArmorType armor_type = 15; - void clear_armor_type(); - ::protobuf::ArmorType armor_type() const; - void set_armor_type(::protobuf::ArmorType value); - - private: - ::protobuf::ArmorType _internal_armor_type() const; - void _internal_set_armor_type(::protobuf::ArmorType value); - - public: - // .protobuf.ShieldType shield_type = 16; - void clear_shield_type(); - ::protobuf::ShieldType shield_type() const; - void set_shield_type(::protobuf::ShieldType value); - - private: - ::protobuf::ShieldType _internal_shield_type() const; - void _internal_set_shield_type(::protobuf::ShieldType value); - - public: - // .protobuf.WeaponType weapon_type = 17; - void clear_weapon_type(); - ::protobuf::WeaponType weapon_type() const; - void set_weapon_type(::protobuf::WeaponType value); - - private: - ::protobuf::WeaponType _internal_weapon_type() const; - void _internal_set_weapon_type(::protobuf::WeaponType value); - - public: - // double facing_direction = 18; - void clear_facing_direction(); - double facing_direction() const; - void set_facing_direction(double value); - - private: - double _internal_facing_direction() const; - void _internal_set_facing_direction(double value); - - public: - // @@protoc_insertion_point(class_scope:protobuf.MessageOfShip) - - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 5, - 18, - 0, - 0, - 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ - { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized - ) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, const Impl_& from); - ::int32_t x_; - ::int32_t y_; - ::int32_t speed_; - ::int32_t hp_; - ::int32_t armor_; - ::int32_t shield_; - ::int64_t team_id_; - ::int64_t player_id_; - ::int64_t guid_; - int ship_state_; - int ship_type_; - ::int32_t view_range_; - int producer_type_; - int constructor_type_; - int armor_type_; - int shield_type_; - int weapon_type_; - double facing_direction_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union - { - Impl_ _impl_; - }; - friend struct ::TableStruct_Message2Clients_2eproto; - }; // ------------------------------------------------------------------- - - class MessageOfResource final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf.MessageOfResource) */ - { - public: - inline MessageOfResource() : - MessageOfResource(nullptr) - { - } - ~MessageOfResource() override; - template - explicit PROTOBUF_CONSTEXPR MessageOfResource(::google::protobuf::internal::ConstantInitialized); - - inline MessageOfResource(const MessageOfResource& from) : - MessageOfResource(nullptr, from) - { - } - MessageOfResource(MessageOfResource&& from) noexcept - : - MessageOfResource() - { - *this = ::std::move(from); - } - - inline MessageOfResource& operator=(const MessageOfResource& from) + inline MessageOfFactory& operator=(const MessageOfFactory& from) { CopyFrom(from); return *this; } - inline MessageOfResource& operator=(MessageOfResource&& from) noexcept + inline MessageOfFactory& operator=(MessageOfFactory&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { @@ -1364,126 +1173,123 @@ namespace protobuf return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const MessageOfResource& default_instance() + static const MessageOfFactory& default_instance() { return *internal_default_instance(); } - static inline const MessageOfResource* internal_default_instance() + static inline const MessageOfFactory* internal_default_instance() { - return reinterpret_cast( - &_MessageOfResource_default_instance_ + return reinterpret_cast( + &_MessageOfFactory_default_instance_ ); } static constexpr int kIndexInFileMessages = - 7; + 3; - friend void swap(MessageOfResource& a, MessageOfResource& b) + friend void swap(MessageOfFactory& a, MessageOfFactory& b) { a.Swap(&b); } - inline void Swap(MessageOfResource* other) + inline void Swap(MessageOfFactory* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(MessageOfResource* other) + void UnsafeArenaSwap(MessageOfFactory* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - MessageOfResource* New(::google::protobuf::Arena* arena = nullptr) const final + MessageOfFactory* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const MessageOfResource& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const MessageOfResource& from) + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const MessageOfFactory& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const MessageOfFactory& from) { - MessageOfResource::MergeImpl(*this, from); + MessageOfFactory::MergeImpl(*this, from); } private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream ) const final; - int GetCachedSize() const + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); void SharedDtor(); - void InternalSwap(MessageOfResource* other); + void SetCachedSize(int size) const final; + void InternalSwap(MessageOfFactory* other); private: - friend class ::google::protobuf::internal::AnyMetadata; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "protobuf.MessageOfResource"; + return "protobuf.MessageOfFactory"; } protected: - explicit MessageOfResource(::google::protobuf::Arena* arena); - MessageOfResource(::google::protobuf::Arena* arena, const MessageOfResource& from); + explicit MessageOfFactory(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData* GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1493,7 +1299,8 @@ namespace protobuf { kXFieldNumber = 1, kYFieldNumber = 2, - kProgressFieldNumber = 3, + kTeamIdFieldNumber = 4, + kHpFieldNumber = 3, }; // int32 x = 1; void clear_x(); @@ -1515,47 +1322,42 @@ namespace protobuf void _internal_set_y(::int32_t value); public: - // int32 progress = 3; - void clear_progress(); - ::int32_t progress() const; - void set_progress(::int32_t value); + // int64 team_id = 4; + void clear_team_id(); + ::int64_t team_id() const; + void set_team_id(::int64_t value); private: - ::int32_t _internal_progress() const; - void _internal_set_progress(::int32_t value); + ::int64_t _internal_team_id() const; + void _internal_set_team_id(::int64_t value); public: - // @@protoc_insertion_point(class_scope:protobuf.MessageOfResource) + // int32 hp = 3; + void clear_hp(); + ::int32_t hp() const; + void set_hp(::int32_t value); + + private: + ::int32_t _internal_hp() const; + void _internal_set_hp(::int32_t value); + + public: + // @@protoc_insertion_point(class_scope:protobuf.MessageOfFactory) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, - 3, - 0, - 0, - 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; + friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized - ) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, const Impl_& from); ::int32_t x_; ::int32_t y_; - ::int32_t progress_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER + ::int64_t team_id_; + ::int32_t hp_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; }; union { @@ -1564,41 +1366,38 @@ namespace protobuf friend struct ::TableStruct_Message2Clients_2eproto; }; // ------------------------------------------------------------------- - class MessageOfNews final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf.MessageOfNews) */ + class MessageOfCommunity final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:protobuf.MessageOfCommunity) */ { public: - inline MessageOfNews() : - MessageOfNews(nullptr) + inline MessageOfCommunity() : + MessageOfCommunity(nullptr) { } - ~MessageOfNews() override; + ~MessageOfCommunity() override; template - explicit PROTOBUF_CONSTEXPR MessageOfNews(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR MessageOfCommunity(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline MessageOfNews(const MessageOfNews& from) : - MessageOfNews(nullptr, from) - { - } - MessageOfNews(MessageOfNews&& from) noexcept + MessageOfCommunity(const MessageOfCommunity& from); + MessageOfCommunity(MessageOfCommunity&& from) noexcept : - MessageOfNews() + MessageOfCommunity() { *this = ::std::move(from); } - inline MessageOfNews& operator=(const MessageOfNews& from) + inline MessageOfCommunity& operator=(const MessageOfCommunity& from) { CopyFrom(from); return *this; } - inline MessageOfNews& operator=(MessageOfNews&& from) noexcept + inline MessageOfCommunity& operator=(MessageOfCommunity&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { @@ -1611,133 +1410,123 @@ namespace protobuf return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const MessageOfNews& default_instance() + static const MessageOfCommunity& default_instance() { return *internal_default_instance(); } - enum NewsCase - { - kTextMessage = 1, - kBinaryMessage = 4, - NEWS_NOT_SET = 0, - }; - - static inline const MessageOfNews* internal_default_instance() + static inline const MessageOfCommunity* internal_default_instance() { - return reinterpret_cast( - &_MessageOfNews_default_instance_ + return reinterpret_cast( + &_MessageOfCommunity_default_instance_ ); } static constexpr int kIndexInFileMessages = - 19; + 4; - friend void swap(MessageOfNews& a, MessageOfNews& b) + friend void swap(MessageOfCommunity& a, MessageOfCommunity& b) { a.Swap(&b); } - inline void Swap(MessageOfNews* other) + inline void Swap(MessageOfCommunity* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(MessageOfNews* other) + void UnsafeArenaSwap(MessageOfCommunity* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - MessageOfNews* New(::google::protobuf::Arena* arena = nullptr) const final + MessageOfCommunity* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const MessageOfNews& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const MessageOfNews& from) + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const MessageOfCommunity& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const MessageOfCommunity& from) { - MessageOfNews::MergeImpl(*this, from); + MessageOfCommunity::MergeImpl(*this, from); } private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream ) const final; - int GetCachedSize() const + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); void SharedDtor(); - void InternalSwap(MessageOfNews* other); + void SetCachedSize(int size) const final; + void InternalSwap(MessageOfCommunity* other); private: - friend class ::google::protobuf::internal::AnyMetadata; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "protobuf.MessageOfNews"; + return "protobuf.MessageOfCommunity"; } protected: - explicit MessageOfNews(::google::protobuf::Arena* arena); - MessageOfNews(::google::protobuf::Arena* arena, const MessageOfNews& from); + explicit MessageOfCommunity(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData* GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1745,116 +1534,67 @@ namespace protobuf enum : int { - kFromIdFieldNumber = 2, - kToIdFieldNumber = 3, - kTextMessageFieldNumber = 1, - kBinaryMessageFieldNumber = 4, + kXFieldNumber = 1, + kYFieldNumber = 2, + kTeamIdFieldNumber = 4, + kHpFieldNumber = 3, }; - // int64 from_id = 2; - void clear_from_id(); - ::int64_t from_id() const; - void set_from_id(::int64_t value); + // int32 x = 1; + void clear_x(); + ::int32_t x() const; + void set_x(::int32_t value); private: - ::int64_t _internal_from_id() const; - void _internal_set_from_id(::int64_t value); + ::int32_t _internal_x() const; + void _internal_set_x(::int32_t value); public: - // int64 to_id = 3; - void clear_to_id(); - ::int64_t to_id() const; - void set_to_id(::int64_t value); + // int32 y = 2; + void clear_y(); + ::int32_t y() const; + void set_y(::int32_t value); private: - ::int64_t _internal_to_id() const; - void _internal_set_to_id(::int64_t value); + ::int32_t _internal_y() const; + void _internal_set_y(::int32_t value); public: - // string text_message = 1; - bool has_text_message() const; - void clear_text_message(); - const std::string& text_message() const; - template - void set_text_message(Arg_&& arg, Args_... args); - std::string* mutable_text_message(); - PROTOBUF_NODISCARD std::string* release_text_message(); - void set_allocated_text_message(std::string* value); + // int64 team_id = 4; + void clear_team_id(); + ::int64_t team_id() const; + void set_team_id(::int64_t value); private: - const std::string& _internal_text_message() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_text_message( - const std::string& value - ); - std::string* _internal_mutable_text_message(); + ::int64_t _internal_team_id() const; + void _internal_set_team_id(::int64_t value); public: - // bytes binary_message = 4; - bool has_binary_message() const; - void clear_binary_message(); - const std::string& binary_message() const; - template - void set_binary_message(Arg_&& arg, Args_... args); - std::string* mutable_binary_message(); - PROTOBUF_NODISCARD std::string* release_binary_message(); - void set_allocated_binary_message(std::string* value); + // int32 hp = 3; + void clear_hp(); + ::int32_t hp() const; + void set_hp(::int32_t value); private: - const std::string& _internal_binary_message() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_binary_message( - const std::string& value - ); - std::string* _internal_mutable_binary_message(); + ::int32_t _internal_hp() const; + void _internal_set_hp(::int32_t value); public: - void clear_news(); - NewsCase news_case() const; - // @@protoc_insertion_point(class_scope:protobuf.MessageOfNews) + // @@protoc_insertion_point(class_scope:protobuf.MessageOfCommunity) private: class _Internal; - void set_has_text_message(); - void set_has_binary_message(); - inline bool has_news() const; - inline void clear_has_news(); - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, - 4, - 0, - 43, - 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; + friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized - ) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, const Impl_& from); - ::int64_t from_id_; - ::int64_t to_id_; - union NewsUnion - { - constexpr NewsUnion() : - _constinit_{} - { - } - ::google::protobuf::internal::ConstantInitialized _constinit_; - ::google::protobuf::internal::ArenaStringPtr text_message_; - ::google::protobuf::internal::ArenaStringPtr binary_message_; - } news_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::uint32_t _oneof_case_[1]; - - PROTOBUF_TSAN_DECLARE_MEMBER + ::int32_t x_; + ::int32_t y_; + ::int64_t team_id_; + ::int32_t hp_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; }; union { @@ -1863,41 +1603,38 @@ namespace protobuf friend struct ::TableStruct_Message2Clients_2eproto; }; // ------------------------------------------------------------------- - class MessageOfMap_Row final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf.MessageOfMap.Row) */ + class MessageOfFort final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:protobuf.MessageOfFort) */ { public: - inline MessageOfMap_Row() : - MessageOfMap_Row(nullptr) + inline MessageOfFort() : + MessageOfFort(nullptr) { } - ~MessageOfMap_Row() override; + ~MessageOfFort() override; template - explicit PROTOBUF_CONSTEXPR MessageOfMap_Row(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR MessageOfFort(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline MessageOfMap_Row(const MessageOfMap_Row& from) : - MessageOfMap_Row(nullptr, from) - { - } - MessageOfMap_Row(MessageOfMap_Row&& from) noexcept + MessageOfFort(const MessageOfFort& from); + MessageOfFort(MessageOfFort&& from) noexcept : - MessageOfMap_Row() + MessageOfFort() { *this = ::std::move(from); } - inline MessageOfMap_Row& operator=(const MessageOfMap_Row& from) + inline MessageOfFort& operator=(const MessageOfFort& from) { CopyFrom(from); return *this; } - inline MessageOfMap_Row& operator=(MessageOfMap_Row&& from) noexcept + inline MessageOfFort& operator=(MessageOfFort&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { @@ -1910,126 +1647,123 @@ namespace protobuf return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const MessageOfMap_Row& default_instance() + static const MessageOfFort& default_instance() { return *internal_default_instance(); } - static inline const MessageOfMap_Row* internal_default_instance() + static inline const MessageOfFort* internal_default_instance() { - return reinterpret_cast( - &_MessageOfMap_Row_default_instance_ + return reinterpret_cast( + &_MessageOfFort_default_instance_ ); } static constexpr int kIndexInFileMessages = - 9; + 5; - friend void swap(MessageOfMap_Row& a, MessageOfMap_Row& b) + friend void swap(MessageOfFort& a, MessageOfFort& b) { a.Swap(&b); } - inline void Swap(MessageOfMap_Row* other) + inline void Swap(MessageOfFort* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(MessageOfMap_Row* other) + void UnsafeArenaSwap(MessageOfFort* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - MessageOfMap_Row* New(::google::protobuf::Arena* arena = nullptr) const final + MessageOfFort* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const MessageOfMap_Row& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const MessageOfMap_Row& from) + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const MessageOfFort& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const MessageOfFort& from) { - MessageOfMap_Row::MergeImpl(*this, from); + MessageOfFort::MergeImpl(*this, from); } private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream ) const final; - int GetCachedSize() const + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); void SharedDtor(); - void InternalSwap(MessageOfMap_Row* other); + void SetCachedSize(int size) const final; + void InternalSwap(MessageOfFort* other); private: - friend class ::google::protobuf::internal::AnyMetadata; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "protobuf.MessageOfMap.Row"; + return "protobuf.MessageOfFort"; } protected: - explicit MessageOfMap_Row(::google::protobuf::Arena* arena); - MessageOfMap_Row(::google::protobuf::Arena* arena, const MessageOfMap_Row& from); + explicit MessageOfFort(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData* GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -2037,59 +1771,67 @@ namespace protobuf enum : int { - kColsFieldNumber = 1, + kXFieldNumber = 1, + kYFieldNumber = 2, + kTeamIdFieldNumber = 4, + kHpFieldNumber = 3, }; - // repeated .protobuf.PlaceType cols = 1; - int cols_size() const; + // int32 x = 1; + void clear_x(); + ::int32_t x() const; + void set_x(::int32_t value); private: - int _internal_cols_size() const; + ::int32_t _internal_x() const; + void _internal_set_x(::int32_t value); public: - void clear_cols(); + // int32 y = 2; + void clear_y(); + ::int32_t y() const; + void set_y(::int32_t value); + + private: + ::int32_t _internal_y() const; + void _internal_set_y(::int32_t value); public: - ::protobuf::PlaceType cols(int index) const; - void set_cols(int index, ::protobuf::PlaceType value); - void add_cols(::protobuf::PlaceType value); - const ::google::protobuf::RepeatedField& cols() const; - ::google::protobuf::RepeatedField* mutable_cols(); + // int64 team_id = 4; + void clear_team_id(); + ::int64_t team_id() const; + void set_team_id(::int64_t value); private: - const ::google::protobuf::RepeatedField& _internal_cols() const; - ::google::protobuf::RepeatedField* _internal_mutable_cols(); + ::int64_t _internal_team_id() const; + void _internal_set_team_id(::int64_t value); public: - // @@protoc_insertion_point(class_scope:protobuf.MessageOfMap.Row) + // int32 hp = 3; + void clear_hp(); + ::int32_t hp() const; + void set_hp(::int32_t value); + + private: + ::int32_t _internal_hp() const; + void _internal_set_hp(::int32_t value); + + public: + // @@protoc_insertion_point(class_scope:protobuf.MessageOfFort) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, - 1, - 0, - 0, - 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; + friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized - ) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedField cols_; - mutable ::google::protobuf::internal::CachedSize _cols_cached_byte_size_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER + ::int32_t x_; + ::int32_t y_; + ::int64_t team_id_; + ::int32_t hp_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; }; union { @@ -2098,41 +1840,38 @@ namespace protobuf friend struct ::TableStruct_Message2Clients_2eproto; }; // ------------------------------------------------------------------- - class MessageOfHome final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf.MessageOfHome) */ + class MessageOfWormhole final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:protobuf.MessageOfWormhole) */ { public: - inline MessageOfHome() : - MessageOfHome(nullptr) + inline MessageOfWormhole() : + MessageOfWormhole(nullptr) { } - ~MessageOfHome() override; + ~MessageOfWormhole() override; template - explicit PROTOBUF_CONSTEXPR MessageOfHome(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR MessageOfWormhole(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline MessageOfHome(const MessageOfHome& from) : - MessageOfHome(nullptr, from) - { - } - MessageOfHome(MessageOfHome&& from) noexcept + MessageOfWormhole(const MessageOfWormhole& from); + MessageOfWormhole(MessageOfWormhole&& from) noexcept : - MessageOfHome() + MessageOfWormhole() { *this = ::std::move(from); } - inline MessageOfHome& operator=(const MessageOfHome& from) + inline MessageOfWormhole& operator=(const MessageOfWormhole& from) { CopyFrom(from); return *this; } - inline MessageOfHome& operator=(MessageOfHome&& from) noexcept + inline MessageOfWormhole& operator=(MessageOfWormhole&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { @@ -2145,126 +1884,123 @@ namespace protobuf return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const MessageOfHome& default_instance() + static const MessageOfWormhole& default_instance() { return *internal_default_instance(); } - static inline const MessageOfHome* internal_default_instance() + static inline const MessageOfWormhole* internal_default_instance() { - return reinterpret_cast( - &_MessageOfHome_default_instance_ + return reinterpret_cast( + &_MessageOfWormhole_default_instance_ ); } static constexpr int kIndexInFileMessages = - 8; + 6; - friend void swap(MessageOfHome& a, MessageOfHome& b) + friend void swap(MessageOfWormhole& a, MessageOfWormhole& b) { a.Swap(&b); } - inline void Swap(MessageOfHome* other) + inline void Swap(MessageOfWormhole* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(MessageOfHome* other) + void UnsafeArenaSwap(MessageOfWormhole* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - MessageOfHome* New(::google::protobuf::Arena* arena = nullptr) const final + MessageOfWormhole* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const MessageOfHome& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const MessageOfHome& from) + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const MessageOfWormhole& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const MessageOfWormhole& from) { - MessageOfHome::MergeImpl(*this, from); + MessageOfWormhole::MergeImpl(*this, from); } private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream ) const final; - int GetCachedSize() const + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); void SharedDtor(); - void InternalSwap(MessageOfHome* other); + void SetCachedSize(int size) const final; + void InternalSwap(MessageOfWormhole* other); private: - friend class ::google::protobuf::internal::AnyMetadata; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "protobuf.MessageOfHome"; + return "protobuf.MessageOfWormhole"; } protected: - explicit MessageOfHome(::google::protobuf::Arena* arena); - MessageOfHome(::google::protobuf::Arena* arena, const MessageOfHome& from); + explicit MessageOfWormhole(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData* GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -2274,7 +2010,6 @@ namespace protobuf { kXFieldNumber = 1, kYFieldNumber = 2, - kTeamIdFieldNumber = 4, kHpFieldNumber = 3, }; // int32 x = 1; @@ -2296,16 +2031,6 @@ namespace protobuf ::int32_t _internal_y() const; void _internal_set_y(::int32_t value); - public: - // int64 team_id = 4; - void clear_team_id(); - ::int64_t team_id() const; - void set_team_id(::int64_t value); - - private: - ::int64_t _internal_team_id() const; - void _internal_set_team_id(::int64_t value); - public: // int32 hp = 3; void clear_hp(); @@ -2317,38 +2042,21 @@ namespace protobuf void _internal_set_hp(::int32_t value); public: - // @@protoc_insertion_point(class_scope:protobuf.MessageOfHome) + // @@protoc_insertion_point(class_scope:protobuf.MessageOfWormhole) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, - 4, - 0, - 0, - 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; + friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized - ) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, const Impl_& from); ::int32_t x_; ::int32_t y_; - ::int64_t team_id_; ::int32_t hp_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; }; union { @@ -2357,41 +2065,38 @@ namespace protobuf friend struct ::TableStruct_Message2Clients_2eproto; }; // ------------------------------------------------------------------- - class MessageOfFort final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf.MessageOfFort) */ + class MessageOfResource final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:protobuf.MessageOfResource) */ { public: - inline MessageOfFort() : - MessageOfFort(nullptr) + inline MessageOfResource() : + MessageOfResource(nullptr) { } - ~MessageOfFort() override; + ~MessageOfResource() override; template - explicit PROTOBUF_CONSTEXPR MessageOfFort(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR MessageOfResource(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline MessageOfFort(const MessageOfFort& from) : - MessageOfFort(nullptr, from) - { - } - MessageOfFort(MessageOfFort&& from) noexcept + MessageOfResource(const MessageOfResource& from); + MessageOfResource(MessageOfResource&& from) noexcept : - MessageOfFort() + MessageOfResource() { *this = ::std::move(from); } - inline MessageOfFort& operator=(const MessageOfFort& from) + inline MessageOfResource& operator=(const MessageOfResource& from) { CopyFrom(from); return *this; } - inline MessageOfFort& operator=(MessageOfFort&& from) noexcept + inline MessageOfResource& operator=(MessageOfResource&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { @@ -2404,126 +2109,123 @@ namespace protobuf return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const MessageOfFort& default_instance() + static const MessageOfResource& default_instance() { return *internal_default_instance(); } - static inline const MessageOfFort* internal_default_instance() + static inline const MessageOfResource* internal_default_instance() { - return reinterpret_cast( - &_MessageOfFort_default_instance_ + return reinterpret_cast( + &_MessageOfResource_default_instance_ ); } static constexpr int kIndexInFileMessages = - 5; + 7; - friend void swap(MessageOfFort& a, MessageOfFort& b) + friend void swap(MessageOfResource& a, MessageOfResource& b) { a.Swap(&b); } - inline void Swap(MessageOfFort* other) + inline void Swap(MessageOfResource* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(MessageOfFort* other) + void UnsafeArenaSwap(MessageOfResource* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - MessageOfFort* New(::google::protobuf::Arena* arena = nullptr) const final + MessageOfResource* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const MessageOfFort& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const MessageOfFort& from) + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const MessageOfResource& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const MessageOfResource& from) { - MessageOfFort::MergeImpl(*this, from); + MessageOfResource::MergeImpl(*this, from); } private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream ) const final; - int GetCachedSize() const + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); void SharedDtor(); - void InternalSwap(MessageOfFort* other); + void SetCachedSize(int size) const final; + void InternalSwap(MessageOfResource* other); private: - friend class ::google::protobuf::internal::AnyMetadata; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "protobuf.MessageOfFort"; + return "protobuf.MessageOfResource"; } protected: - explicit MessageOfFort(::google::protobuf::Arena* arena); - MessageOfFort(::google::protobuf::Arena* arena, const MessageOfFort& from); + explicit MessageOfResource(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData* GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -2533,8 +2235,7 @@ namespace protobuf { kXFieldNumber = 1, kYFieldNumber = 2, - kTeamIdFieldNumber = 4, - kHpFieldNumber = 3, + kProgressFieldNumber = 3, }; // int32 x = 1; void clear_x(); @@ -2556,58 +2257,31 @@ namespace protobuf void _internal_set_y(::int32_t value); public: - // int64 team_id = 4; - void clear_team_id(); - ::int64_t team_id() const; - void set_team_id(::int64_t value); - - private: - ::int64_t _internal_team_id() const; - void _internal_set_team_id(::int64_t value); - - public: - // int32 hp = 3; - void clear_hp(); - ::int32_t hp() const; - void set_hp(::int32_t value); + // int32 progress = 3; + void clear_progress(); + ::int32_t progress() const; + void set_progress(::int32_t value); private: - ::int32_t _internal_hp() const; - void _internal_set_hp(::int32_t value); + ::int32_t _internal_progress() const; + void _internal_set_progress(::int32_t value); public: - // @@protoc_insertion_point(class_scope:protobuf.MessageOfFort) + // @@protoc_insertion_point(class_scope:protobuf.MessageOfResource) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, - 4, - 0, - 0, - 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; + friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized - ) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, const Impl_& from); ::int32_t x_; ::int32_t y_; - ::int64_t team_id_; - ::int32_t hp_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER + ::int32_t progress_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; }; union { @@ -2616,41 +2290,38 @@ namespace protobuf friend struct ::TableStruct_Message2Clients_2eproto; }; // ------------------------------------------------------------------- - class MessageOfFactory final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf.MessageOfFactory) */ + class MessageOfHome final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:protobuf.MessageOfHome) */ { public: - inline MessageOfFactory() : - MessageOfFactory(nullptr) + inline MessageOfHome() : + MessageOfHome(nullptr) { } - ~MessageOfFactory() override; + ~MessageOfHome() override; template - explicit PROTOBUF_CONSTEXPR MessageOfFactory(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR MessageOfHome(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline MessageOfFactory(const MessageOfFactory& from) : - MessageOfFactory(nullptr, from) - { - } - MessageOfFactory(MessageOfFactory&& from) noexcept + MessageOfHome(const MessageOfHome& from); + MessageOfHome(MessageOfHome&& from) noexcept : - MessageOfFactory() + MessageOfHome() { *this = ::std::move(from); } - inline MessageOfFactory& operator=(const MessageOfFactory& from) + inline MessageOfHome& operator=(const MessageOfHome& from) { CopyFrom(from); return *this; } - inline MessageOfFactory& operator=(MessageOfFactory&& from) noexcept + inline MessageOfHome& operator=(MessageOfHome&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { @@ -2663,126 +2334,123 @@ namespace protobuf return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const MessageOfFactory& default_instance() + static const MessageOfHome& default_instance() { return *internal_default_instance(); } - static inline const MessageOfFactory* internal_default_instance() + static inline const MessageOfHome* internal_default_instance() { - return reinterpret_cast( - &_MessageOfFactory_default_instance_ + return reinterpret_cast( + &_MessageOfHome_default_instance_ ); } static constexpr int kIndexInFileMessages = - 3; + 8; - friend void swap(MessageOfFactory& a, MessageOfFactory& b) + friend void swap(MessageOfHome& a, MessageOfHome& b) { a.Swap(&b); } - inline void Swap(MessageOfFactory* other) + inline void Swap(MessageOfHome* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(MessageOfFactory* other) + void UnsafeArenaSwap(MessageOfHome* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - MessageOfFactory* New(::google::protobuf::Arena* arena = nullptr) const final + MessageOfHome* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const MessageOfFactory& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const MessageOfFactory& from) + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const MessageOfHome& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const MessageOfHome& from) { - MessageOfFactory::MergeImpl(*this, from); + MessageOfHome::MergeImpl(*this, from); } private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream ) const final; - int GetCachedSize() const + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); void SharedDtor(); - void InternalSwap(MessageOfFactory* other); + void SetCachedSize(int size) const final; + void InternalSwap(MessageOfHome* other); private: - friend class ::google::protobuf::internal::AnyMetadata; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "protobuf.MessageOfFactory"; + return "protobuf.MessageOfHome"; } protected: - explicit MessageOfFactory(::google::protobuf::Arena* arena); - MessageOfFactory(::google::protobuf::Arena* arena, const MessageOfFactory& from); + explicit MessageOfHome(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData* GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -2835,38 +2503,22 @@ namespace protobuf void _internal_set_hp(::int32_t value); public: - // @@protoc_insertion_point(class_scope:protobuf.MessageOfFactory) + // @@protoc_insertion_point(class_scope:protobuf.MessageOfHome) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, - 4, - 0, - 0, - 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; + friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized - ) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, const Impl_& from); ::int32_t x_; ::int32_t y_; ::int64_t team_id_; ::int32_t hp_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; }; union { @@ -2875,41 +2527,38 @@ namespace protobuf friend struct ::TableStruct_Message2Clients_2eproto; }; // ------------------------------------------------------------------- - class MessageOfCommunity final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf.MessageOfCommunity) */ + class MessageOfMap_Row final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:protobuf.MessageOfMap.Row) */ { public: - inline MessageOfCommunity() : - MessageOfCommunity(nullptr) + inline MessageOfMap_Row() : + MessageOfMap_Row(nullptr) { } - ~MessageOfCommunity() override; + ~MessageOfMap_Row() override; template - explicit PROTOBUF_CONSTEXPR MessageOfCommunity(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR MessageOfMap_Row(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline MessageOfCommunity(const MessageOfCommunity& from) : - MessageOfCommunity(nullptr, from) - { - } - MessageOfCommunity(MessageOfCommunity&& from) noexcept + MessageOfMap_Row(const MessageOfMap_Row& from); + MessageOfMap_Row(MessageOfMap_Row&& from) noexcept : - MessageOfCommunity() + MessageOfMap_Row() { *this = ::std::move(from); } - inline MessageOfCommunity& operator=(const MessageOfCommunity& from) + inline MessageOfMap_Row& operator=(const MessageOfMap_Row& from) { CopyFrom(from); return *this; } - inline MessageOfCommunity& operator=(MessageOfCommunity&& from) noexcept + inline MessageOfMap_Row& operator=(MessageOfMap_Row&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { @@ -2922,126 +2571,123 @@ namespace protobuf return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const MessageOfCommunity& default_instance() + static const MessageOfMap_Row& default_instance() { return *internal_default_instance(); } - static inline const MessageOfCommunity* internal_default_instance() + static inline const MessageOfMap_Row* internal_default_instance() { - return reinterpret_cast( - &_MessageOfCommunity_default_instance_ + return reinterpret_cast( + &_MessageOfMap_Row_default_instance_ ); } static constexpr int kIndexInFileMessages = - 4; + 9; - friend void swap(MessageOfCommunity& a, MessageOfCommunity& b) + friend void swap(MessageOfMap_Row& a, MessageOfMap_Row& b) { a.Swap(&b); } - inline void Swap(MessageOfCommunity* other) + inline void Swap(MessageOfMap_Row* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(MessageOfCommunity* other) + void UnsafeArenaSwap(MessageOfMap_Row* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - MessageOfCommunity* New(::google::protobuf::Arena* arena = nullptr) const final + MessageOfMap_Row* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const MessageOfCommunity& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const MessageOfCommunity& from) + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const MessageOfMap_Row& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const MessageOfMap_Row& from) { - MessageOfCommunity::MergeImpl(*this, from); + MessageOfMap_Row::MergeImpl(*this, from); } private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream ) const final; - int GetCachedSize() const + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); void SharedDtor(); - void InternalSwap(MessageOfCommunity* other); + void SetCachedSize(int size) const final; + void InternalSwap(MessageOfMap_Row* other); private: - friend class ::google::protobuf::internal::AnyMetadata; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "protobuf.MessageOfCommunity"; + return "protobuf.MessageOfMap.Row"; } protected: - explicit MessageOfCommunity(::google::protobuf::Arena* arena); - MessageOfCommunity(::google::protobuf::Arena* arena, const MessageOfCommunity& from); + explicit MessageOfMap_Row(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData* GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -3049,83 +2695,45 @@ namespace protobuf enum : int { - kXFieldNumber = 1, - kYFieldNumber = 2, - kTeamIdFieldNumber = 4, - kHpFieldNumber = 3, + kColsFieldNumber = 1, }; - // int32 x = 1; - void clear_x(); - ::int32_t x() const; - void set_x(::int32_t value); - - private: - ::int32_t _internal_x() const; - void _internal_set_x(::int32_t value); - - public: - // int32 y = 2; - void clear_y(); - ::int32_t y() const; - void set_y(::int32_t value); + // repeated .protobuf.PlaceType cols = 1; + int cols_size() const; private: - ::int32_t _internal_y() const; - void _internal_set_y(::int32_t value); + int _internal_cols_size() const; public: - // int64 team_id = 4; - void clear_team_id(); - ::int64_t team_id() const; - void set_team_id(::int64_t value); - - private: - ::int64_t _internal_team_id() const; - void _internal_set_team_id(::int64_t value); + void clear_cols(); public: - // int32 hp = 3; - void clear_hp(); - ::int32_t hp() const; - void set_hp(::int32_t value); + ::protobuf::PlaceType cols(int index) const; + void set_cols(int index, ::protobuf::PlaceType value); + void add_cols(::protobuf::PlaceType value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField& cols() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedField* mutable_cols(); private: - ::int32_t _internal_hp() const; - void _internal_set_hp(::int32_t value); + ::protobuf::PlaceType _internal_cols(int index) const; + void _internal_add_cols(::protobuf::PlaceType value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField& _internal_cols() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedField* _internal_mutable_cols(); public: - // @@protoc_insertion_point(class_scope:protobuf.MessageOfCommunity) + // @@protoc_insertion_point(class_scope:protobuf.MessageOfMap.Row) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, - 4, - 0, - 0, - 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; + friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized - ) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, const Impl_& from); - ::int32_t x_; - ::int32_t y_; - ::int64_t team_id_; - ::int32_t hp_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER + ::PROTOBUF_NAMESPACE_ID::RepeatedField cols_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cols_cached_byte_size_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; }; union { @@ -3134,41 +2742,38 @@ namespace protobuf friend struct ::TableStruct_Message2Clients_2eproto; }; // ------------------------------------------------------------------- - class MessageOfBullet final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf.MessageOfBullet) */ + class MessageOfMap final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:protobuf.MessageOfMap) */ { public: - inline MessageOfBullet() : - MessageOfBullet(nullptr) + inline MessageOfMap() : + MessageOfMap(nullptr) { } - ~MessageOfBullet() override; + ~MessageOfMap() override; template - explicit PROTOBUF_CONSTEXPR MessageOfBullet(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR MessageOfMap(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline MessageOfBullet(const MessageOfBullet& from) : - MessageOfBullet(nullptr, from) - { - } - MessageOfBullet(MessageOfBullet&& from) noexcept + MessageOfMap(const MessageOfMap& from); + MessageOfMap(MessageOfMap&& from) noexcept : - MessageOfBullet() + MessageOfMap() { *this = ::std::move(from); } - inline MessageOfBullet& operator=(const MessageOfBullet& from) + inline MessageOfMap& operator=(const MessageOfMap& from) { CopyFrom(from); return *this; } - inline MessageOfBullet& operator=(MessageOfBullet&& from) noexcept + inline MessageOfMap& operator=(MessageOfMap&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { @@ -3181,270 +2786,194 @@ namespace protobuf return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const MessageOfBullet& default_instance() + static const MessageOfMap& default_instance() { return *internal_default_instance(); } - static inline const MessageOfBullet* internal_default_instance() + static inline const MessageOfMap* internal_default_instance() { - return reinterpret_cast( - &_MessageOfBullet_default_instance_ + return reinterpret_cast( + &_MessageOfMap_default_instance_ ); } static constexpr int kIndexInFileMessages = - 1; + 10; - friend void swap(MessageOfBullet& a, MessageOfBullet& b) + friend void swap(MessageOfMap& a, MessageOfMap& b) { a.Swap(&b); } - inline void Swap(MessageOfBullet* other) + inline void Swap(MessageOfMap* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(MessageOfBullet* other) + void UnsafeArenaSwap(MessageOfMap* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - MessageOfBullet* New(::google::protobuf::Arena* arena = nullptr) const final + MessageOfMap* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const MessageOfBullet& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const MessageOfBullet& from) + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const MessageOfMap& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const MessageOfMap& from) { - MessageOfBullet::MergeImpl(*this, from); + MessageOfMap::MergeImpl(*this, from); } private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream ) const final; - int GetCachedSize() const + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); void SharedDtor(); - void InternalSwap(MessageOfBullet* other); + void SetCachedSize(int size) const final; + void InternalSwap(MessageOfMap* other); private: - friend class ::google::protobuf::internal::AnyMetadata; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "protobuf.MessageOfBullet"; + return "protobuf.MessageOfMap"; } protected: - explicit MessageOfBullet(::google::protobuf::Arena* arena); - MessageOfBullet(::google::protobuf::Arena* arena, const MessageOfBullet& from); + explicit MessageOfMap(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData* GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- + typedef MessageOfMap_Row Row; + // accessors ------------------------------------------------------- enum : int { - kTypeFieldNumber = 1, - kXFieldNumber = 2, - kFacingDirectionFieldNumber = 4, - kYFieldNumber = 3, - kDamageFieldNumber = 5, - kTeamIdFieldNumber = 6, - kGuidFieldNumber = 7, - kBombRangeFieldNumber = 8, - kSpeedFieldNumber = 9, + kRowsFieldNumber = 3, + kHeightFieldNumber = 1, + kWidthFieldNumber = 2, }; - // .protobuf.BulletType type = 1; - void clear_type(); - ::protobuf::BulletType type() const; - void set_type(::protobuf::BulletType value); - - private: - ::protobuf::BulletType _internal_type() const; - void _internal_set_type(::protobuf::BulletType value); - - public: - // int32 x = 2; - void clear_x(); - ::int32_t x() const; - void set_x(::int32_t value); - - private: - ::int32_t _internal_x() const; - void _internal_set_x(::int32_t value); - - public: - // double facing_direction = 4; - void clear_facing_direction(); - double facing_direction() const; - void set_facing_direction(double value); - - private: - double _internal_facing_direction() const; - void _internal_set_facing_direction(double value); - - public: - // int32 y = 3; - void clear_y(); - ::int32_t y() const; - void set_y(::int32_t value); - - private: - ::int32_t _internal_y() const; - void _internal_set_y(::int32_t value); - - public: - // int32 damage = 5; - void clear_damage(); - ::int32_t damage() const; - void set_damage(::int32_t value); - - private: - ::int32_t _internal_damage() const; - void _internal_set_damage(::int32_t value); - - public: - // int64 team_id = 6; - void clear_team_id(); - ::int64_t team_id() const; - void set_team_id(::int64_t value); + // repeated .protobuf.MessageOfMap.Row rows = 3; + int rows_size() const; private: - ::int64_t _internal_team_id() const; - void _internal_set_team_id(::int64_t value); + int _internal_rows_size() const; public: - // int64 guid = 7; - void clear_guid(); - ::int64_t guid() const; - void set_guid(::int64_t value); + void clear_rows(); + ::protobuf::MessageOfMap_Row* mutable_rows(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::protobuf::MessageOfMap_Row>* + mutable_rows(); private: - ::int64_t _internal_guid() const; - void _internal_set_guid(::int64_t value); + const ::protobuf::MessageOfMap_Row& _internal_rows(int index) const; + ::protobuf::MessageOfMap_Row* _internal_add_rows(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::protobuf::MessageOfMap_Row>& _internal_rows() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::protobuf::MessageOfMap_Row>* _internal_mutable_rows(); public: - // double bomb_range = 8; - void clear_bomb_range(); - double bomb_range() const; - void set_bomb_range(double value); + const ::protobuf::MessageOfMap_Row& rows(int index) const; + ::protobuf::MessageOfMap_Row* add_rows(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::protobuf::MessageOfMap_Row>& + rows() const; + // uint32 height = 1; + void clear_height(); + ::uint32_t height() const; + void set_height(::uint32_t value); private: - double _internal_bomb_range() const; - void _internal_set_bomb_range(double value); + ::uint32_t _internal_height() const; + void _internal_set_height(::uint32_t value); public: - // int32 speed = 9; - void clear_speed(); - ::int32_t speed() const; - void set_speed(::int32_t value); + // uint32 width = 2; + void clear_width(); + ::uint32_t width() const; + void set_width(::uint32_t value); private: - ::int32_t _internal_speed() const; - void _internal_set_speed(::int32_t value); + ::uint32_t _internal_width() const; + void _internal_set_width(::uint32_t value); public: - // @@protoc_insertion_point(class_scope:protobuf.MessageOfBullet) + // @@protoc_insertion_point(class_scope:protobuf.MessageOfMap) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 4, - 9, - 0, - 0, - 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; + friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized - ) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, const Impl_& from); - int type_; - ::int32_t x_; - double facing_direction_; - ::int32_t y_; - ::int32_t damage_; - ::int64_t team_id_; - ::int64_t guid_; - double bomb_range_; - ::int32_t speed_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::protobuf::MessageOfMap_Row> rows_; + ::uint32_t height_; + ::uint32_t width_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; }; union { @@ -3453,41 +2982,38 @@ namespace protobuf friend struct ::TableStruct_Message2Clients_2eproto; }; // ------------------------------------------------------------------- - class MessageOfBombedBullet final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf.MessageOfBombedBullet) */ + class MessageOfTeam final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:protobuf.MessageOfTeam) */ { public: - inline MessageOfBombedBullet() : - MessageOfBombedBullet(nullptr) + inline MessageOfTeam() : + MessageOfTeam(nullptr) { } - ~MessageOfBombedBullet() override; + ~MessageOfTeam() override; template - explicit PROTOBUF_CONSTEXPR MessageOfBombedBullet(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR MessageOfTeam(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline MessageOfBombedBullet(const MessageOfBombedBullet& from) : - MessageOfBombedBullet(nullptr, from) - { - } - MessageOfBombedBullet(MessageOfBombedBullet&& from) noexcept + MessageOfTeam(const MessageOfTeam& from); + MessageOfTeam(MessageOfTeam&& from) noexcept : - MessageOfBombedBullet() + MessageOfTeam() { *this = ::std::move(from); } - inline MessageOfBombedBullet& operator=(const MessageOfBombedBullet& from) + inline MessageOfTeam& operator=(const MessageOfTeam& from) { CopyFrom(from); return *this; } - inline MessageOfBombedBullet& operator=(MessageOfBombedBullet&& from) noexcept + inline MessageOfTeam& operator=(MessageOfTeam&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { @@ -3500,126 +3026,123 @@ namespace protobuf return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const MessageOfBombedBullet& default_instance() + static const MessageOfTeam& default_instance() { return *internal_default_instance(); } - static inline const MessageOfBombedBullet* internal_default_instance() + static inline const MessageOfTeam* internal_default_instance() { - return reinterpret_cast( - &_MessageOfBombedBullet_default_instance_ + return reinterpret_cast( + &_MessageOfTeam_default_instance_ ); } static constexpr int kIndexInFileMessages = - 2; + 11; - friend void swap(MessageOfBombedBullet& a, MessageOfBombedBullet& b) + friend void swap(MessageOfTeam& a, MessageOfTeam& b) { a.Swap(&b); } - inline void Swap(MessageOfBombedBullet* other) + inline void Swap(MessageOfTeam* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(MessageOfBombedBullet* other) + void UnsafeArenaSwap(MessageOfTeam* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - MessageOfBombedBullet* New(::google::protobuf::Arena* arena = nullptr) const final + MessageOfTeam* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const MessageOfBombedBullet& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const MessageOfBombedBullet& from) + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const MessageOfTeam& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const MessageOfTeam& from) { - MessageOfBombedBullet::MergeImpl(*this, from); + MessageOfTeam::MergeImpl(*this, from); } private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream ) const final; - int GetCachedSize() const + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); void SharedDtor(); - void InternalSwap(MessageOfBombedBullet* other); + void SetCachedSize(int size) const final; + void InternalSwap(MessageOfTeam* other); private: - friend class ::google::protobuf::internal::AnyMetadata; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "protobuf.MessageOfBombedBullet"; + return "protobuf.MessageOfTeam"; } protected: - explicit MessageOfBombedBullet(::google::protobuf::Arena* arena); - MessageOfBombedBullet(::google::protobuf::Arena* arena, const MessageOfBombedBullet& from); + explicit MessageOfTeam(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData* GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -3627,150 +3150,119 @@ namespace protobuf enum : int { - kTypeFieldNumber = 1, - kXFieldNumber = 2, - kFacingDirectionFieldNumber = 4, - kMappingIdFieldNumber = 5, - kBombRangeFieldNumber = 6, - kYFieldNumber = 3, + kTeamIdFieldNumber = 1, + kPlayerIdFieldNumber = 2, + kScoreFieldNumber = 3, + kMoneyFieldNumber = 4, + kGuidFieldNumber = 5, }; - // .protobuf.BulletType type = 1; - void clear_type(); - ::protobuf::BulletType type() const; - void set_type(::protobuf::BulletType value); - - private: - ::protobuf::BulletType _internal_type() const; - void _internal_set_type(::protobuf::BulletType value); - - public: - // int32 x = 2; - void clear_x(); - ::int32_t x() const; - void set_x(::int32_t value); + // int64 team_id = 1; + void clear_team_id(); + ::int64_t team_id() const; + void set_team_id(::int64_t value); private: - ::int32_t _internal_x() const; - void _internal_set_x(::int32_t value); + ::int64_t _internal_team_id() const; + void _internal_set_team_id(::int64_t value); public: - // double facing_direction = 4; - void clear_facing_direction(); - double facing_direction() const; - void set_facing_direction(double value); + // int64 player_id = 2; + void clear_player_id(); + ::int64_t player_id() const; + void set_player_id(::int64_t value); private: - double _internal_facing_direction() const; - void _internal_set_facing_direction(double value); + ::int64_t _internal_player_id() const; + void _internal_set_player_id(::int64_t value); public: - // int64 mapping_id = 5; - void clear_mapping_id(); - ::int64_t mapping_id() const; - void set_mapping_id(::int64_t value); + // int32 score = 3; + void clear_score(); + ::int32_t score() const; + void set_score(::int32_t value); private: - ::int64_t _internal_mapping_id() const; - void _internal_set_mapping_id(::int64_t value); + ::int32_t _internal_score() const; + void _internal_set_score(::int32_t value); public: - // double bomb_range = 6; - void clear_bomb_range(); - double bomb_range() const; - void set_bomb_range(double value); + // int32 money = 4; + void clear_money(); + ::int32_t money() const; + void set_money(::int32_t value); private: - double _internal_bomb_range() const; - void _internal_set_bomb_range(double value); + ::int32_t _internal_money() const; + void _internal_set_money(::int32_t value); public: - // int32 y = 3; - void clear_y(); - ::int32_t y() const; - void set_y(::int32_t value); + // int64 guid = 5; + void clear_guid(); + ::int64_t guid() const; + void set_guid(::int64_t value); private: - ::int32_t _internal_y() const; - void _internal_set_y(::int32_t value); + ::int64_t _internal_guid() const; + void _internal_set_guid(::int64_t value); public: - // @@protoc_insertion_point(class_scope:protobuf.MessageOfBombedBullet) + // @@protoc_insertion_point(class_scope:protobuf.MessageOfTeam) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, - 6, - 0, - 0, - 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; + friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized - ) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, const Impl_& from); - int type_; - ::int32_t x_; - double facing_direction_; - ::int64_t mapping_id_; - double bomb_range_; - ::int32_t y_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union + ::int64_t team_id_; + ::int64_t player_id_; + ::int32_t score_; + ::int32_t money_; + ::int64_t guid_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_Message2Clients_2eproto; }; // ------------------------------------------------------------------- - class MessageOfAll final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf.MessageOfAll) */ + class MessageOfObj final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:protobuf.MessageOfObj) */ { public: - inline MessageOfAll() : - MessageOfAll(nullptr) + inline MessageOfObj() : + MessageOfObj(nullptr) { } - ~MessageOfAll() override; + ~MessageOfObj() override; template - explicit PROTOBUF_CONSTEXPR MessageOfAll(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR MessageOfObj(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline MessageOfAll(const MessageOfAll& from) : - MessageOfAll(nullptr, from) - { - } - MessageOfAll(MessageOfAll&& from) noexcept + MessageOfObj(const MessageOfObj& from); + MessageOfObj(MessageOfObj&& from) noexcept : - MessageOfAll() + MessageOfObj() { *this = ::std::move(from); } - inline MessageOfAll& operator=(const MessageOfAll& from) + inline MessageOfObj& operator=(const MessageOfObj& from) { CopyFrom(from); return *this; } - inline MessageOfAll& operator=(MessageOfAll&& from) noexcept + inline MessageOfObj& operator=(MessageOfObj&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { @@ -3783,126 +3275,140 @@ namespace protobuf return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const MessageOfAll& default_instance() + static const MessageOfObj& default_instance() { return *internal_default_instance(); } - static inline const MessageOfAll* internal_default_instance() + enum MessageOfObjCase { - return reinterpret_cast( - &_MessageOfAll_default_instance_ + kShipMessage = 1, + kBulletMessage = 2, + kFactoryMessage = 3, + kCommunityMessage = 4, + kFortMessage = 5, + kWormholeMessage = 6, + kHomeMessage = 7, + kResourceMessage = 8, + kMapMessage = 9, + kNewsMessage = 10, + kBombedBulletMessage = 11, + kTeamMessage = 12, + MESSAGE_OF_OBJ_NOT_SET = 0, + }; + + static inline const MessageOfObj* internal_default_instance() + { + return reinterpret_cast( + &_MessageOfObj_default_instance_ ); } static constexpr int kIndexInFileMessages = - 13; + 12; - friend void swap(MessageOfAll& a, MessageOfAll& b) + friend void swap(MessageOfObj& a, MessageOfObj& b) { a.Swap(&b); } - inline void Swap(MessageOfAll* other) + inline void Swap(MessageOfObj* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(MessageOfAll* other) + void UnsafeArenaSwap(MessageOfObj* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - MessageOfAll* New(::google::protobuf::Arena* arena = nullptr) const final + MessageOfObj* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const MessageOfAll& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const MessageOfAll& from) + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const MessageOfObj& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const MessageOfObj& from) { - MessageOfAll::MergeImpl(*this, from); + MessageOfObj::MergeImpl(*this, from); } private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream ) const final; - int GetCachedSize() const + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); void SharedDtor(); - void InternalSwap(MessageOfAll* other); + void SetCachedSize(int size) const final; + void InternalSwap(MessageOfObj* other); private: - friend class ::google::protobuf::internal::AnyMetadata; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "protobuf.MessageOfAll"; + return "protobuf.MessageOfObj"; } protected: - explicit MessageOfAll(::google::protobuf::Arena* arena); - MessageOfAll(::google::protobuf::Arena* arena, const MessageOfAll& from); + explicit MessageOfObj(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData* GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -3910,294 +3416,333 @@ namespace protobuf enum : int { - kGameTimeFieldNumber = 1, - kRedTeamScoreFieldNumber = 2, - kBlueTeamScoreFieldNumber = 3, + kShipMessageFieldNumber = 1, + kBulletMessageFieldNumber = 2, + kFactoryMessageFieldNumber = 3, + kCommunityMessageFieldNumber = 4, + kFortMessageFieldNumber = 5, + kWormholeMessageFieldNumber = 6, + kHomeMessageFieldNumber = 7, + kResourceMessageFieldNumber = 8, + kMapMessageFieldNumber = 9, + kNewsMessageFieldNumber = 10, + kBombedBulletMessageFieldNumber = 11, + kTeamMessageFieldNumber = 12, }; - // int32 game_time = 1; - void clear_game_time(); - ::int32_t game_time() const; - void set_game_time(::int32_t value); + // .protobuf.MessageOfShip ship_message = 1; + bool has_ship_message() const; private: - ::int32_t _internal_game_time() const; - void _internal_set_game_time(::int32_t value); + bool _internal_has_ship_message() const; public: - // int32 red_team_score = 2; - void clear_red_team_score(); - ::int32_t red_team_score() const; - void set_red_team_score(::int32_t value); + void clear_ship_message(); + const ::protobuf::MessageOfShip& ship_message() const; + PROTOBUF_NODISCARD ::protobuf::MessageOfShip* release_ship_message(); + ::protobuf::MessageOfShip* mutable_ship_message(); + void set_allocated_ship_message(::protobuf::MessageOfShip* ship_message); private: - ::int32_t _internal_red_team_score() const; - void _internal_set_red_team_score(::int32_t value); + const ::protobuf::MessageOfShip& _internal_ship_message() const; + ::protobuf::MessageOfShip* _internal_mutable_ship_message(); public: - // int32 blue_team_score = 3; - void clear_blue_team_score(); - ::int32_t blue_team_score() const; - void set_blue_team_score(::int32_t value); + void unsafe_arena_set_allocated_ship_message( + ::protobuf::MessageOfShip* ship_message + ); + ::protobuf::MessageOfShip* unsafe_arena_release_ship_message(); + // .protobuf.MessageOfBullet bullet_message = 2; + bool has_bullet_message() const; private: - ::int32_t _internal_blue_team_score() const; - void _internal_set_blue_team_score(::int32_t value); + bool _internal_has_bullet_message() const; public: - // @@protoc_insertion_point(class_scope:protobuf.MessageOfAll) + void clear_bullet_message(); + const ::protobuf::MessageOfBullet& bullet_message() const; + PROTOBUF_NODISCARD ::protobuf::MessageOfBullet* release_bullet_message(); + ::protobuf::MessageOfBullet* mutable_bullet_message(); + void set_allocated_bullet_message(::protobuf::MessageOfBullet* bullet_message); private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, - 3, - 0, - 0, - 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ - { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized - ) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, const Impl_& from); - ::int32_t game_time_; - ::int32_t red_team_score_; - ::int32_t blue_team_score_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union - { - Impl_ _impl_; - }; - friend struct ::TableStruct_Message2Clients_2eproto; - }; // ------------------------------------------------------------------- + const ::protobuf::MessageOfBullet& _internal_bullet_message() const; + ::protobuf::MessageOfBullet* _internal_mutable_bullet_message(); - class EcoRes final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf.EcoRes) */ - { public: - inline EcoRes() : - EcoRes(nullptr) - { - } - ~EcoRes() override; - template - explicit PROTOBUF_CONSTEXPR EcoRes(::google::protobuf::internal::ConstantInitialized); + void unsafe_arena_set_allocated_bullet_message( + ::protobuf::MessageOfBullet* bullet_message + ); + ::protobuf::MessageOfBullet* unsafe_arena_release_bullet_message(); + // .protobuf.MessageOfFactory factory_message = 3; + bool has_factory_message() const; - inline EcoRes(const EcoRes& from) : - EcoRes(nullptr, from) - { - } - EcoRes(EcoRes&& from) noexcept - : - EcoRes() - { - *this = ::std::move(from); - } + private: + bool _internal_has_factory_message() const; - inline EcoRes& operator=(const EcoRes& from) - { - CopyFrom(from); - return *this; - } - inline EcoRes& operator=(EcoRes&& from) noexcept - { - if (this == &from) - return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) - { - InternalSwap(&from); - } - else - { - CopyFrom(from); - } - return *this; - } + public: + void clear_factory_message(); + const ::protobuf::MessageOfFactory& factory_message() const; + PROTOBUF_NODISCARD ::protobuf::MessageOfFactory* release_factory_message(); + ::protobuf::MessageOfFactory* mutable_factory_message(); + void set_allocated_factory_message(::protobuf::MessageOfFactory* factory_message); - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND - { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND - { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } + private: + const ::protobuf::MessageOfFactory& _internal_factory_message() const; + ::protobuf::MessageOfFactory* _internal_mutable_factory_message(); - static const ::google::protobuf::Descriptor* descriptor() - { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() - { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() - { - return default_instance().GetMetadata().reflection; - } - static const EcoRes& default_instance() - { - return *internal_default_instance(); - } - static inline const EcoRes* internal_default_instance() - { - return reinterpret_cast( - &_EcoRes_default_instance_ - ); - } - static constexpr int kIndexInFileMessages = - 18; + public: + void unsafe_arena_set_allocated_factory_message( + ::protobuf::MessageOfFactory* factory_message + ); + ::protobuf::MessageOfFactory* unsafe_arena_release_factory_message(); + // .protobuf.MessageOfCommunity community_message = 4; + bool has_community_message() const; - friend void swap(EcoRes& a, EcoRes& b) - { - a.Swap(&b); - } - inline void Swap(EcoRes* other) - { - if (other == this) - return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) - { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) - { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } - else - { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(EcoRes* other) - { - if (other == this) - return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } + private: + bool _internal_has_community_message() const; - // implements Message ---------------------------------------------- + public: + void clear_community_message(); + const ::protobuf::MessageOfCommunity& community_message() const; + PROTOBUF_NODISCARD ::protobuf::MessageOfCommunity* release_community_message(); + ::protobuf::MessageOfCommunity* mutable_community_message(); + void set_allocated_community_message(::protobuf::MessageOfCommunity* community_message); - EcoRes* New(::google::protobuf::Arena* arena = nullptr) const final - { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const EcoRes& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const EcoRes& from) - { - EcoRes::MergeImpl(*this, from); - } + private: + const ::protobuf::MessageOfCommunity& _internal_community_message() const; + ::protobuf::MessageOfCommunity* _internal_mutable_community_message(); + + public: + void unsafe_arena_set_allocated_community_message( + ::protobuf::MessageOfCommunity* community_message + ); + ::protobuf::MessageOfCommunity* unsafe_arena_release_community_message(); + // .protobuf.MessageOfFort fort_message = 5; + bool has_fort_message() const; private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + bool _internal_has_fort_message() const; public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + void clear_fort_message(); + const ::protobuf::MessageOfFort& fort_message() const; + PROTOBUF_NODISCARD ::protobuf::MessageOfFort* release_fort_message(); + ::protobuf::MessageOfFort* mutable_fort_message(); + void set_allocated_fort_message(::protobuf::MessageOfFort* fort_message); - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream - ) const final; - int GetCachedSize() const - { - return _impl_._cached_size_.Get(); - } + private: + const ::protobuf::MessageOfFort& _internal_fort_message() const; + ::protobuf::MessageOfFort* _internal_mutable_fort_message(); + + public: + void unsafe_arena_set_allocated_fort_message( + ::protobuf::MessageOfFort* fort_message + ); + ::protobuf::MessageOfFort* unsafe_arena_release_fort_message(); + // .protobuf.MessageOfWormhole wormhole_message = 6; + bool has_wormhole_message() const; private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(EcoRes* other); + bool _internal_has_wormhole_message() const; + + public: + void clear_wormhole_message(); + const ::protobuf::MessageOfWormhole& wormhole_message() const; + PROTOBUF_NODISCARD ::protobuf::MessageOfWormhole* release_wormhole_message(); + ::protobuf::MessageOfWormhole* mutable_wormhole_message(); + void set_allocated_wormhole_message(::protobuf::MessageOfWormhole* wormhole_message); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() - { - return "protobuf.EcoRes"; - } + const ::protobuf::MessageOfWormhole& _internal_wormhole_message() const; + ::protobuf::MessageOfWormhole* _internal_mutable_wormhole_message(); - protected: - explicit EcoRes(::google::protobuf::Arena* arena); - EcoRes(::google::protobuf::Arena* arena, const EcoRes& from); + public: + void unsafe_arena_set_allocated_wormhole_message( + ::protobuf::MessageOfWormhole* wormhole_message + ); + ::protobuf::MessageOfWormhole* unsafe_arena_release_wormhole_message(); + // .protobuf.MessageOfHome home_message = 7; + bool has_home_message() const; + + private: + bool _internal_has_home_message() const; public: - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData* GetClassData() const final; + void clear_home_message(); + const ::protobuf::MessageOfHome& home_message() const; + PROTOBUF_NODISCARD ::protobuf::MessageOfHome* release_home_message(); + ::protobuf::MessageOfHome* mutable_home_message(); + void set_allocated_home_message(::protobuf::MessageOfHome* home_message); - ::google::protobuf::Metadata GetMetadata() const final; + private: + const ::protobuf::MessageOfHome& _internal_home_message() const; + ::protobuf::MessageOfHome* _internal_mutable_home_message(); - // nested types ---------------------------------------------------- + public: + void unsafe_arena_set_allocated_home_message( + ::protobuf::MessageOfHome* home_message + ); + ::protobuf::MessageOfHome* unsafe_arena_release_home_message(); + // .protobuf.MessageOfResource resource_message = 8; + bool has_resource_message() const; - // accessors ------------------------------------------------------- + private: + bool _internal_has_resource_message() const; - enum : int - { - kEconomyFieldNumber = 1, - }; - // int64 economy = 1; - void clear_economy(); - ::int64_t economy() const; - void set_economy(::int64_t value); + public: + void clear_resource_message(); + const ::protobuf::MessageOfResource& resource_message() const; + PROTOBUF_NODISCARD ::protobuf::MessageOfResource* release_resource_message(); + ::protobuf::MessageOfResource* mutable_resource_message(); + void set_allocated_resource_message(::protobuf::MessageOfResource* resource_message); private: - ::int64_t _internal_economy() const; - void _internal_set_economy(::int64_t value); + const ::protobuf::MessageOfResource& _internal_resource_message() const; + ::protobuf::MessageOfResource* _internal_mutable_resource_message(); public: - // @@protoc_insertion_point(class_scope:protobuf.EcoRes) + void unsafe_arena_set_allocated_resource_message( + ::protobuf::MessageOfResource* resource_message + ); + ::protobuf::MessageOfResource* unsafe_arena_release_resource_message(); + // .protobuf.MessageOfMap map_message = 9; + bool has_map_message() const; + + private: + bool _internal_has_map_message() const; + + public: + void clear_map_message(); + const ::protobuf::MessageOfMap& map_message() const; + PROTOBUF_NODISCARD ::protobuf::MessageOfMap* release_map_message(); + ::protobuf::MessageOfMap* mutable_map_message(); + void set_allocated_map_message(::protobuf::MessageOfMap* map_message); + + private: + const ::protobuf::MessageOfMap& _internal_map_message() const; + ::protobuf::MessageOfMap* _internal_mutable_map_message(); + + public: + void unsafe_arena_set_allocated_map_message( + ::protobuf::MessageOfMap* map_message + ); + ::protobuf::MessageOfMap* unsafe_arena_release_map_message(); + // .protobuf.MessageOfNews news_message = 10; + bool has_news_message() const; + + private: + bool _internal_has_news_message() const; + + public: + void clear_news_message(); + const ::protobuf::MessageOfNews& news_message() const; + PROTOBUF_NODISCARD ::protobuf::MessageOfNews* release_news_message(); + ::protobuf::MessageOfNews* mutable_news_message(); + void set_allocated_news_message(::protobuf::MessageOfNews* news_message); + + private: + const ::protobuf::MessageOfNews& _internal_news_message() const; + ::protobuf::MessageOfNews* _internal_mutable_news_message(); + + public: + void unsafe_arena_set_allocated_news_message( + ::protobuf::MessageOfNews* news_message + ); + ::protobuf::MessageOfNews* unsafe_arena_release_news_message(); + // .protobuf.MessageOfBombedBullet bombed_bullet_message = 11; + bool has_bombed_bullet_message() const; + + private: + bool _internal_has_bombed_bullet_message() const; + + public: + void clear_bombed_bullet_message(); + const ::protobuf::MessageOfBombedBullet& bombed_bullet_message() const; + PROTOBUF_NODISCARD ::protobuf::MessageOfBombedBullet* release_bombed_bullet_message(); + ::protobuf::MessageOfBombedBullet* mutable_bombed_bullet_message(); + void set_allocated_bombed_bullet_message(::protobuf::MessageOfBombedBullet* bombed_bullet_message); + + private: + const ::protobuf::MessageOfBombedBullet& _internal_bombed_bullet_message() const; + ::protobuf::MessageOfBombedBullet* _internal_mutable_bombed_bullet_message(); + + public: + void unsafe_arena_set_allocated_bombed_bullet_message( + ::protobuf::MessageOfBombedBullet* bombed_bullet_message + ); + ::protobuf::MessageOfBombedBullet* unsafe_arena_release_bombed_bullet_message(); + // .protobuf.MessageOfTeam team_message = 12; + bool has_team_message() const; + + private: + bool _internal_has_team_message() const; + + public: + void clear_team_message(); + const ::protobuf::MessageOfTeam& team_message() const; + PROTOBUF_NODISCARD ::protobuf::MessageOfTeam* release_team_message(); + ::protobuf::MessageOfTeam* mutable_team_message(); + void set_allocated_team_message(::protobuf::MessageOfTeam* team_message); + + private: + const ::protobuf::MessageOfTeam& _internal_team_message() const; + ::protobuf::MessageOfTeam* _internal_mutable_team_message(); + + public: + void unsafe_arena_set_allocated_team_message( + ::protobuf::MessageOfTeam* team_message + ); + ::protobuf::MessageOfTeam* unsafe_arena_release_team_message(); + void clear_message_of_obj(); + MessageOfObjCase message_of_obj_case() const; + // @@protoc_insertion_point(class_scope:protobuf.MessageOfObj) private: class _Internal; + void set_has_ship_message(); + void set_has_bullet_message(); + void set_has_factory_message(); + void set_has_community_message(); + void set_has_fort_message(); + void set_has_wormhole_message(); + void set_has_home_message(); + void set_has_resource_message(); + void set_has_map_message(); + void set_has_news_message(); + void set_has_bombed_bullet_message(); + void set_has_team_message(); + + inline bool has_message_of_obj() const; + inline void clear_has_message_of_obj(); - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, - 1, - 0, - 0, - 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; + friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized - ) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, const Impl_& from); - ::int64_t economy_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER + union MessageOfObjUnion + { + constexpr MessageOfObjUnion() : + _constinit_{} + { + } + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + ::protobuf::MessageOfShip* ship_message_; + ::protobuf::MessageOfBullet* bullet_message_; + ::protobuf::MessageOfFactory* factory_message_; + ::protobuf::MessageOfCommunity* community_message_; + ::protobuf::MessageOfFort* fort_message_; + ::protobuf::MessageOfWormhole* wormhole_message_; + ::protobuf::MessageOfHome* home_message_; + ::protobuf::MessageOfResource* resource_message_; + ::protobuf::MessageOfMap* map_message_; + ::protobuf::MessageOfNews* news_message_; + ::protobuf::MessageOfBombedBullet* bombed_bullet_message_; + ::protobuf::MessageOfTeam* team_message_; + } message_of_obj_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::uint32_t _oneof_case_[1]; }; union { @@ -4206,41 +3751,38 @@ namespace protobuf friend struct ::TableStruct_Message2Clients_2eproto; }; // ------------------------------------------------------------------- - class BoolRes final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf.BoolRes) */ + class MessageOfAll final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:protobuf.MessageOfAll) */ { public: - inline BoolRes() : - BoolRes(nullptr) + inline MessageOfAll() : + MessageOfAll(nullptr) { } - ~BoolRes() override; + ~MessageOfAll() override; template - explicit PROTOBUF_CONSTEXPR BoolRes(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR MessageOfAll(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline BoolRes(const BoolRes& from) : - BoolRes(nullptr, from) - { - } - BoolRes(BoolRes&& from) noexcept + MessageOfAll(const MessageOfAll& from); + MessageOfAll(MessageOfAll&& from) noexcept : - BoolRes() + MessageOfAll() { *this = ::std::move(from); } - inline BoolRes& operator=(const BoolRes& from) + inline MessageOfAll& operator=(const MessageOfAll& from) { CopyFrom(from); return *this; } - inline BoolRes& operator=(BoolRes&& from) noexcept + inline MessageOfAll& operator=(MessageOfAll&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { @@ -4253,126 +3795,123 @@ namespace protobuf return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const BoolRes& default_instance() + static const MessageOfAll& default_instance() { return *internal_default_instance(); } - static inline const BoolRes* internal_default_instance() + static inline const MessageOfAll* internal_default_instance() { - return reinterpret_cast( - &_BoolRes_default_instance_ + return reinterpret_cast( + &_MessageOfAll_default_instance_ ); } static constexpr int kIndexInFileMessages = - 16; + 13; - friend void swap(BoolRes& a, BoolRes& b) + friend void swap(MessageOfAll& a, MessageOfAll& b) { a.Swap(&b); } - inline void Swap(BoolRes* other) + inline void Swap(MessageOfAll* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(BoolRes* other) + void UnsafeArenaSwap(MessageOfAll* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - BoolRes* New(::google::protobuf::Arena* arena = nullptr) const final + MessageOfAll* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const BoolRes& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const BoolRes& from) + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const MessageOfAll& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const MessageOfAll& from) { - BoolRes::MergeImpl(*this, from); + MessageOfAll::MergeImpl(*this, from); } private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream ) const final; - int GetCachedSize() const + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); void SharedDtor(); - void InternalSwap(BoolRes* other); + void SetCachedSize(int size) const final; + void InternalSwap(MessageOfAll* other); private: - friend class ::google::protobuf::internal::AnyMetadata; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "protobuf.BoolRes"; + return "protobuf.MessageOfAll"; } protected: - explicit BoolRes(::google::protobuf::Arena* arena); - BoolRes(::google::protobuf::Arena* arena, const BoolRes& from); + explicit MessageOfAll(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData* GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -4380,47 +3919,55 @@ namespace protobuf enum : int { - kActSuccessFieldNumber = 1, + kGameTimeFieldNumber = 1, + kRedTeamScoreFieldNumber = 2, + kBlueTeamScoreFieldNumber = 3, }; - // bool act_success = 1; - void clear_act_success(); - bool act_success() const; - void set_act_success(bool value); + // int32 game_time = 1; + void clear_game_time(); + ::int32_t game_time() const; + void set_game_time(::int32_t value); private: - bool _internal_act_success() const; - void _internal_set_act_success(bool value); + ::int32_t _internal_game_time() const; + void _internal_set_game_time(::int32_t value); public: - // @@protoc_insertion_point(class_scope:protobuf.BoolRes) + // int32 red_team_score = 2; + void clear_red_team_score(); + ::int32_t red_team_score() const; + void set_red_team_score(::int32_t value); + + private: + ::int32_t _internal_red_team_score() const; + void _internal_set_red_team_score(::int32_t value); + + public: + // int32 blue_team_score = 3; + void clear_blue_team_score(); + ::int32_t blue_team_score() const; + void set_blue_team_score(::int32_t value); + + private: + ::int32_t _internal_blue_team_score() const; + void _internal_set_blue_team_score(::int32_t value); + + public: + // @@protoc_insertion_point(class_scope:protobuf.MessageOfAll) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, - 1, - 0, - 0, - 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; + friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized - ) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, const Impl_& from); - bool act_success_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER + ::int32_t game_time_; + ::int32_t red_team_score_; + ::int32_t blue_team_score_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; }; union { @@ -4429,41 +3976,38 @@ namespace protobuf friend struct ::TableStruct_Message2Clients_2eproto; }; // ------------------------------------------------------------------- - class ShipInfoRes final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf.ShipInfoRes) */ + class MessageToClient final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:protobuf.MessageToClient) */ { public: - inline ShipInfoRes() : - ShipInfoRes(nullptr) + inline MessageToClient() : + MessageToClient(nullptr) { } - ~ShipInfoRes() override; + ~MessageToClient() override; template - explicit PROTOBUF_CONSTEXPR ShipInfoRes(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR MessageToClient(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ShipInfoRes(const ShipInfoRes& from) : - ShipInfoRes(nullptr, from) - { - } - ShipInfoRes(ShipInfoRes&& from) noexcept + MessageToClient(const MessageToClient& from); + MessageToClient(MessageToClient&& from) noexcept : - ShipInfoRes() + MessageToClient() { *this = ::std::move(from); } - inline ShipInfoRes& operator=(const ShipInfoRes& from) + inline MessageToClient& operator=(const MessageToClient& from) { CopyFrom(from); return *this; } - inline ShipInfoRes& operator=(ShipInfoRes&& from) noexcept + inline MessageToClient& operator=(MessageToClient&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { @@ -4476,126 +4020,123 @@ namespace protobuf return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ShipInfoRes& default_instance() + static const MessageToClient& default_instance() { return *internal_default_instance(); } - static inline const ShipInfoRes* internal_default_instance() + static inline const MessageToClient* internal_default_instance() { - return reinterpret_cast( - &_ShipInfoRes_default_instance_ + return reinterpret_cast( + &_MessageToClient_default_instance_ ); } static constexpr int kIndexInFileMessages = - 17; + 14; - friend void swap(ShipInfoRes& a, ShipInfoRes& b) + friend void swap(MessageToClient& a, MessageToClient& b) { a.Swap(&b); } - inline void Swap(ShipInfoRes* other) + inline void Swap(MessageToClient* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ShipInfoRes* other) + void UnsafeArenaSwap(MessageToClient* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ShipInfoRes* New(::google::protobuf::Arena* arena = nullptr) const final + MessageToClient* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ShipInfoRes& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const ShipInfoRes& from) + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const MessageToClient& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const MessageToClient& from) { - ShipInfoRes::MergeImpl(*this, from); + MessageToClient::MergeImpl(*this, from); } private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream ) const final; - int GetCachedSize() const + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); void SharedDtor(); - void InternalSwap(ShipInfoRes* other); + void SetCachedSize(int size) const final; + void InternalSwap(MessageToClient* other); private: - friend class ::google::protobuf::internal::AnyMetadata; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "protobuf.ShipInfoRes"; + return "protobuf.MessageToClient"; } protected: - explicit ShipInfoRes(::google::protobuf::Arena* arena); - ShipInfoRes(::google::protobuf::Arena* arena, const ShipInfoRes& from); + explicit MessageToClient(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData* GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -4603,58 +4144,76 @@ namespace protobuf enum : int { - kShipInfoFieldNumber = 1, + kObjMessageFieldNumber = 1, + kAllMessageFieldNumber = 3, + kGameStateFieldNumber = 2, }; - // repeated .protobuf.MessageOfShip ship_info = 1; - int ship_info_size() const; + // repeated .protobuf.MessageOfObj obj_message = 1; + int obj_message_size() const; private: - int _internal_ship_info_size() const; + int _internal_obj_message_size() const; public: - void clear_ship_info(); - ::protobuf::MessageOfShip* mutable_ship_info(int index); - ::google::protobuf::RepeatedPtrField<::protobuf::MessageOfShip>* - mutable_ship_info(); + void clear_obj_message(); + ::protobuf::MessageOfObj* mutable_obj_message(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::protobuf::MessageOfObj>* + mutable_obj_message(); private: - const ::google::protobuf::RepeatedPtrField<::protobuf::MessageOfShip>& _internal_ship_info() const; - ::google::protobuf::RepeatedPtrField<::protobuf::MessageOfShip>* _internal_mutable_ship_info(); + const ::protobuf::MessageOfObj& _internal_obj_message(int index) const; + ::protobuf::MessageOfObj* _internal_add_obj_message(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::protobuf::MessageOfObj>& _internal_obj_message() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::protobuf::MessageOfObj>* _internal_mutable_obj_message(); public: - const ::protobuf::MessageOfShip& ship_info(int index) const; - ::protobuf::MessageOfShip* add_ship_info(); - const ::google::protobuf::RepeatedPtrField<::protobuf::MessageOfShip>& - ship_info() const; - // @@protoc_insertion_point(class_scope:protobuf.ShipInfoRes) + const ::protobuf::MessageOfObj& obj_message(int index) const; + ::protobuf::MessageOfObj* add_obj_message(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::protobuf::MessageOfObj>& + obj_message() const; + // .protobuf.MessageOfAll all_message = 3; + bool has_all_message() const; + void clear_all_message(); + const ::protobuf::MessageOfAll& all_message() const; + PROTOBUF_NODISCARD ::protobuf::MessageOfAll* release_all_message(); + ::protobuf::MessageOfAll* mutable_all_message(); + void set_allocated_all_message(::protobuf::MessageOfAll* all_message); + + private: + const ::protobuf::MessageOfAll& _internal_all_message() const; + ::protobuf::MessageOfAll* _internal_mutable_all_message(); + + public: + void unsafe_arena_set_allocated_all_message( + ::protobuf::MessageOfAll* all_message + ); + ::protobuf::MessageOfAll* unsafe_arena_release_all_message(); + // .protobuf.GameState game_state = 2; + void clear_game_state(); + ::protobuf::GameState game_state() const; + void set_game_state(::protobuf::GameState value); + + private: + ::protobuf::GameState _internal_game_state() const; + void _internal_set_game_state(::protobuf::GameState value); + + public: + // @@protoc_insertion_point(class_scope:protobuf.MessageToClient) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, - 1, - 1, - 0, - 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; + friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized - ) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField<::protobuf::MessageOfShip> ship_info_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::protobuf::MessageOfObj> obj_message_; + ::protobuf::MessageOfAll* all_message_; + int game_state_; }; union { @@ -4663,41 +4222,38 @@ namespace protobuf friend struct ::TableStruct_Message2Clients_2eproto; }; // ------------------------------------------------------------------- - class MessageOfMap final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf.MessageOfMap) */ + class MoveRes final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:protobuf.MoveRes) */ { public: - inline MessageOfMap() : - MessageOfMap(nullptr) + inline MoveRes() : + MoveRes(nullptr) { } - ~MessageOfMap() override; + ~MoveRes() override; template - explicit PROTOBUF_CONSTEXPR MessageOfMap(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR MoveRes(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline MessageOfMap(const MessageOfMap& from) : - MessageOfMap(nullptr, from) - { - } - MessageOfMap(MessageOfMap&& from) noexcept + MoveRes(const MoveRes& from); + MoveRes(MoveRes&& from) noexcept : - MessageOfMap() + MoveRes() { *this = ::std::move(from); } - inline MessageOfMap& operator=(const MessageOfMap& from) + inline MoveRes& operator=(const MoveRes& from) { CopyFrom(from); return *this; } - inline MessageOfMap& operator=(MessageOfMap&& from) noexcept + inline MoveRes& operator=(MoveRes&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { @@ -4710,211 +4266,179 @@ namespace protobuf return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const MessageOfMap& default_instance() + static const MoveRes& default_instance() { return *internal_default_instance(); } - static inline const MessageOfMap* internal_default_instance() + static inline const MoveRes* internal_default_instance() { - return reinterpret_cast( - &_MessageOfMap_default_instance_ + return reinterpret_cast( + &_MoveRes_default_instance_ ); } static constexpr int kIndexInFileMessages = - 10; + 15; - friend void swap(MessageOfMap& a, MessageOfMap& b) + friend void swap(MoveRes& a, MoveRes& b) { a.Swap(&b); } - inline void Swap(MessageOfMap* other) + inline void Swap(MoveRes* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(MessageOfMap* other) + void UnsafeArenaSwap(MoveRes* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - MessageOfMap* New(::google::protobuf::Arena* arena = nullptr) const final + MoveRes* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const MessageOfMap& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const MessageOfMap& from) + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const MoveRes& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const MoveRes& from) { - MessageOfMap::MergeImpl(*this, from); + MoveRes::MergeImpl(*this, from); } private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream ) const final; - int GetCachedSize() const + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); void SharedDtor(); - void InternalSwap(MessageOfMap* other); + void SetCachedSize(int size) const final; + void InternalSwap(MoveRes* other); private: - friend class ::google::protobuf::internal::AnyMetadata; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "protobuf.MessageOfMap"; + return "protobuf.MoveRes"; } protected: - explicit MessageOfMap(::google::protobuf::Arena* arena); - MessageOfMap(::google::protobuf::Arena* arena, const MessageOfMap& from); + explicit MoveRes(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData* GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- - using Row = MessageOfMap_Row; - // accessors ------------------------------------------------------- enum : int { - kRowsFieldNumber = 3, - kHeightFieldNumber = 1, - kWidthFieldNumber = 2, + kActualSpeedFieldNumber = 1, + kActualAngleFieldNumber = 2, + kActSuccessFieldNumber = 3, }; - // repeated .protobuf.MessageOfMap.Row rows = 3; - int rows_size() const; - - private: - int _internal_rows_size() const; - - public: - void clear_rows(); - ::protobuf::MessageOfMap_Row* mutable_rows(int index); - ::google::protobuf::RepeatedPtrField<::protobuf::MessageOfMap_Row>* - mutable_rows(); + // int64 actual_speed = 1; + void clear_actual_speed(); + ::int64_t actual_speed() const; + void set_actual_speed(::int64_t value); private: - const ::google::protobuf::RepeatedPtrField<::protobuf::MessageOfMap_Row>& _internal_rows() const; - ::google::protobuf::RepeatedPtrField<::protobuf::MessageOfMap_Row>* _internal_mutable_rows(); + ::int64_t _internal_actual_speed() const; + void _internal_set_actual_speed(::int64_t value); public: - const ::protobuf::MessageOfMap_Row& rows(int index) const; - ::protobuf::MessageOfMap_Row* add_rows(); - const ::google::protobuf::RepeatedPtrField<::protobuf::MessageOfMap_Row>& - rows() const; - // uint32 height = 1; - void clear_height(); - ::uint32_t height() const; - void set_height(::uint32_t value); + // double actual_angle = 2; + void clear_actual_angle(); + double actual_angle() const; + void set_actual_angle(double value); private: - ::uint32_t _internal_height() const; - void _internal_set_height(::uint32_t value); + double _internal_actual_angle() const; + void _internal_set_actual_angle(double value); public: - // uint32 width = 2; - void clear_width(); - ::uint32_t width() const; - void set_width(::uint32_t value); + // bool act_success = 3; + void clear_act_success(); + bool act_success() const; + void set_act_success(bool value); private: - ::uint32_t _internal_width() const; - void _internal_set_width(::uint32_t value); + bool _internal_act_success() const; + void _internal_set_act_success(bool value); public: - // @@protoc_insertion_point(class_scope:protobuf.MessageOfMap) + // @@protoc_insertion_point(class_scope:protobuf.MoveRes) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, - 3, - 1, - 0, - 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; + friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized - ) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField<::protobuf::MessageOfMap_Row> rows_; - ::uint32_t height_; - ::uint32_t width_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER + ::int64_t actual_speed_; + double actual_angle_; + bool act_success_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; }; union { @@ -4923,41 +4447,38 @@ namespace protobuf friend struct ::TableStruct_Message2Clients_2eproto; }; // ------------------------------------------------------------------- - class MessageOfObj final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf.MessageOfObj) */ + class BoolRes final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:protobuf.BoolRes) */ { public: - inline MessageOfObj() : - MessageOfObj(nullptr) + inline BoolRes() : + BoolRes(nullptr) { } - ~MessageOfObj() override; + ~BoolRes() override; template - explicit PROTOBUF_CONSTEXPR MessageOfObj(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR BoolRes(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline MessageOfObj(const MessageOfObj& from) : - MessageOfObj(nullptr, from) + BoolRes(const BoolRes& from); + BoolRes(BoolRes&& from) noexcept + : + BoolRes() { - } - MessageOfObj(MessageOfObj&& from) noexcept - : - MessageOfObj() - { - *this = ::std::move(from); + *this = ::std::move(from); } - inline MessageOfObj& operator=(const MessageOfObj& from) + inline BoolRes& operator=(const BoolRes& from) { CopyFrom(from); return *this; } - inline MessageOfObj& operator=(MessageOfObj&& from) noexcept + inline BoolRes& operator=(BoolRes&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { @@ -4970,143 +4491,123 @@ namespace protobuf return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const MessageOfObj& default_instance() + static const BoolRes& default_instance() { return *internal_default_instance(); } - enum MessageOfObjCase - { - kShipMessage = 1, - kBulletMessage = 2, - kFactoryMessage = 3, - kCommunityMessage = 4, - kFortMessage = 5, - kWormholeMessage = 6, - kHomeMessage = 7, - kResourceMessage = 8, - kMapMessage = 9, - kNewsMessage = 10, - kBombedBulletMessage = 11, - kTeamMessage = 12, - MESSAGE_OF_OBJ_NOT_SET = 0, - }; - - static inline const MessageOfObj* internal_default_instance() + static inline const BoolRes* internal_default_instance() { - return reinterpret_cast( - &_MessageOfObj_default_instance_ + return reinterpret_cast( + &_BoolRes_default_instance_ ); } static constexpr int kIndexInFileMessages = - 12; + 16; - friend void swap(MessageOfObj& a, MessageOfObj& b) + friend void swap(BoolRes& a, BoolRes& b) { a.Swap(&b); } - inline void Swap(MessageOfObj* other) + inline void Swap(BoolRes* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(MessageOfObj* other) + void UnsafeArenaSwap(BoolRes* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - MessageOfObj* New(::google::protobuf::Arena* arena = nullptr) const final + BoolRes* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const MessageOfObj& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const MessageOfObj& from) + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const BoolRes& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const BoolRes& from) { - MessageOfObj::MergeImpl(*this, from); + BoolRes::MergeImpl(*this, from); } private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream ) const final; - int GetCachedSize() const + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); void SharedDtor(); - void InternalSwap(MessageOfObj* other); + void SetCachedSize(int size) const final; + void InternalSwap(BoolRes* other); private: - friend class ::google::protobuf::internal::AnyMetadata; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "protobuf.MessageOfObj"; + return "protobuf.BoolRes"; } protected: - explicit MessageOfObj(::google::protobuf::Arena* arena); - MessageOfObj(::google::protobuf::Arena* arena, const MessageOfObj& from); + explicit BoolRes(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData* GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -5114,326 +4615,446 @@ namespace protobuf enum : int { - kShipMessageFieldNumber = 1, - kBulletMessageFieldNumber = 2, - kFactoryMessageFieldNumber = 3, - kCommunityMessageFieldNumber = 4, - kFortMessageFieldNumber = 5, - kWormholeMessageFieldNumber = 6, - kHomeMessageFieldNumber = 7, - kResourceMessageFieldNumber = 8, - kMapMessageFieldNumber = 9, - kNewsMessageFieldNumber = 10, - kBombedBulletMessageFieldNumber = 11, - kTeamMessageFieldNumber = 12, + kActSuccessFieldNumber = 1, }; - // .protobuf.MessageOfShip ship_message = 1; - bool has_ship_message() const; + // bool act_success = 1; + void clear_act_success(); + bool act_success() const; + void set_act_success(bool value); private: - bool _internal_has_ship_message() const; + bool _internal_act_success() const; + void _internal_set_act_success(bool value); public: - void clear_ship_message(); - const ::protobuf::MessageOfShip& ship_message() const; - PROTOBUF_NODISCARD ::protobuf::MessageOfShip* release_ship_message(); - ::protobuf::MessageOfShip* mutable_ship_message(); - void set_allocated_ship_message(::protobuf::MessageOfShip* value); - void unsafe_arena_set_allocated_ship_message(::protobuf::MessageOfShip* value); - ::protobuf::MessageOfShip* unsafe_arena_release_ship_message(); + // @@protoc_insertion_point(class_scope:protobuf.BoolRes) private: - const ::protobuf::MessageOfShip& _internal_ship_message() const; - ::protobuf::MessageOfShip* _internal_mutable_ship_message(); - - public: - // .protobuf.MessageOfBullet bullet_message = 2; - bool has_bullet_message() const; + class _Internal; - private: - bool _internal_has_bullet_message() const; + template + 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_; + }; + friend struct ::TableStruct_Message2Clients_2eproto; + }; // ------------------------------------------------------------------- + class ShipInfoRes final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:protobuf.ShipInfoRes) */ + { public: - void clear_bullet_message(); - const ::protobuf::MessageOfBullet& bullet_message() const; - PROTOBUF_NODISCARD ::protobuf::MessageOfBullet* release_bullet_message(); - ::protobuf::MessageOfBullet* mutable_bullet_message(); - void set_allocated_bullet_message(::protobuf::MessageOfBullet* value); - void unsafe_arena_set_allocated_bullet_message(::protobuf::MessageOfBullet* value); - ::protobuf::MessageOfBullet* unsafe_arena_release_bullet_message(); - - private: - const ::protobuf::MessageOfBullet& _internal_bullet_message() const; - ::protobuf::MessageOfBullet* _internal_mutable_bullet_message(); + inline ShipInfoRes() : + ShipInfoRes(nullptr) + { + } + ~ShipInfoRes() override; + template + explicit PROTOBUF_CONSTEXPR ShipInfoRes(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - public: - // .protobuf.MessageOfFactory factory_message = 3; - bool has_factory_message() const; + ShipInfoRes(const ShipInfoRes& from); + ShipInfoRes(ShipInfoRes&& from) noexcept + : + ShipInfoRes() + { + *this = ::std::move(from); + } - private: - bool _internal_has_factory_message() const; + inline ShipInfoRes& operator=(const ShipInfoRes& from) + { + CopyFrom(from); + return *this; + } + inline ShipInfoRes& operator=(ShipInfoRes&& from) noexcept + { + if (this == &from) + return *this; + if (GetOwningArena() == from.GetOwningArena() +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) + { + InternalSwap(&from); + } + else + { + CopyFrom(from); + } + return *this; + } - public: - void clear_factory_message(); - const ::protobuf::MessageOfFactory& factory_message() const; - PROTOBUF_NODISCARD ::protobuf::MessageOfFactory* release_factory_message(); - ::protobuf::MessageOfFactory* mutable_factory_message(); - void set_allocated_factory_message(::protobuf::MessageOfFactory* value); - void unsafe_arena_set_allocated_factory_message(::protobuf::MessageOfFactory* value); - ::protobuf::MessageOfFactory* unsafe_arena_release_factory_message(); + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const + { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() + { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } - private: - const ::protobuf::MessageOfFactory& _internal_factory_message() const; - ::protobuf::MessageOfFactory* _internal_mutable_factory_message(); + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() + { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const ShipInfoRes& default_instance() + { + return *internal_default_instance(); + } + static inline const ShipInfoRes* internal_default_instance() + { + return reinterpret_cast( + &_ShipInfoRes_default_instance_ + ); + } + static constexpr int kIndexInFileMessages = + 17; - public: - // .protobuf.MessageOfCommunity community_message = 4; - bool has_community_message() const; + friend void swap(ShipInfoRes& a, ShipInfoRes& b) + { + a.Swap(&b); + } + inline void Swap(ShipInfoRes* other) + { + if (other == this) + return; +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) + { +#else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) + { +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } + else + { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ShipInfoRes* other) + { + if (other == this) + return; + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } - private: - bool _internal_has_community_message() const; + // implements Message ---------------------------------------------- - public: - void clear_community_message(); - const ::protobuf::MessageOfCommunity& community_message() const; - PROTOBUF_NODISCARD ::protobuf::MessageOfCommunity* release_community_message(); - ::protobuf::MessageOfCommunity* mutable_community_message(); - void set_allocated_community_message(::protobuf::MessageOfCommunity* value); - void unsafe_arena_set_allocated_community_message(::protobuf::MessageOfCommunity* value); - ::protobuf::MessageOfCommunity* unsafe_arena_release_community_message(); + ShipInfoRes* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final + { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ShipInfoRes& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ShipInfoRes& from) + { + ShipInfoRes::MergeImpl(*this, from); + } private: - const ::protobuf::MessageOfCommunity& _internal_community_message() const; - ::protobuf::MessageOfCommunity* _internal_mutable_community_message(); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: - // .protobuf.MessageOfFort fort_message = 5; - bool has_fort_message() const; - - private: - bool _internal_has_fort_message() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - public: - void clear_fort_message(); - const ::protobuf::MessageOfFort& fort_message() const; - PROTOBUF_NODISCARD ::protobuf::MessageOfFort* release_fort_message(); - ::protobuf::MessageOfFort* mutable_fort_message(); - void set_allocated_fort_message(::protobuf::MessageOfFort* value); - void unsafe_arena_set_allocated_fort_message(::protobuf::MessageOfFort* value); - ::protobuf::MessageOfFort* unsafe_arena_release_fort_message(); + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream + ) const final; + int GetCachedSize() const final + { + return _impl_._cached_size_.Get(); + } private: - const ::protobuf::MessageOfFort& _internal_fort_message() const; - ::protobuf::MessageOfFort* _internal_mutable_fort_message(); - - public: - // .protobuf.MessageOfWormhole wormhole_message = 6; - bool has_wormhole_message() const; + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ShipInfoRes* other); private: - bool _internal_has_wormhole_message() const; - - public: - void clear_wormhole_message(); - const ::protobuf::MessageOfWormhole& wormhole_message() const; - PROTOBUF_NODISCARD ::protobuf::MessageOfWormhole* release_wormhole_message(); - ::protobuf::MessageOfWormhole* mutable_wormhole_message(); - void set_allocated_wormhole_message(::protobuf::MessageOfWormhole* value); - void unsafe_arena_set_allocated_wormhole_message(::protobuf::MessageOfWormhole* value); - ::protobuf::MessageOfWormhole* unsafe_arena_release_wormhole_message(); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::absl::string_view FullMessageName() + { + return "protobuf.ShipInfoRes"; + } - private: - const ::protobuf::MessageOfWormhole& _internal_wormhole_message() const; - ::protobuf::MessageOfWormhole* _internal_mutable_wormhole_message(); + protected: + explicit ShipInfoRes(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - // .protobuf.MessageOfHome home_message = 7; - bool has_home_message() const; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final; - private: - bool _internal_has_home_message() const; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - public: - void clear_home_message(); - const ::protobuf::MessageOfHome& home_message() const; - PROTOBUF_NODISCARD ::protobuf::MessageOfHome* release_home_message(); - ::protobuf::MessageOfHome* mutable_home_message(); - void set_allocated_home_message(::protobuf::MessageOfHome* value); - void unsafe_arena_set_allocated_home_message(::protobuf::MessageOfHome* value); - ::protobuf::MessageOfHome* unsafe_arena_release_home_message(); + // nested types ---------------------------------------------------- - private: - const ::protobuf::MessageOfHome& _internal_home_message() const; - ::protobuf::MessageOfHome* _internal_mutable_home_message(); + // accessors ------------------------------------------------------- - public: - // .protobuf.MessageOfResource resource_message = 8; - bool has_resource_message() const; + enum : int + { + kShipInfoFieldNumber = 1, + }; + // repeated .protobuf.MessageOfShip ship_info = 1; + int ship_info_size() const; private: - bool _internal_has_resource_message() const; + int _internal_ship_info_size() const; public: - void clear_resource_message(); - const ::protobuf::MessageOfResource& resource_message() const; - PROTOBUF_NODISCARD ::protobuf::MessageOfResource* release_resource_message(); - ::protobuf::MessageOfResource* mutable_resource_message(); - void set_allocated_resource_message(::protobuf::MessageOfResource* value); - void unsafe_arena_set_allocated_resource_message(::protobuf::MessageOfResource* value); - ::protobuf::MessageOfResource* unsafe_arena_release_resource_message(); + void clear_ship_info(); + ::protobuf::MessageOfShip* mutable_ship_info(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::protobuf::MessageOfShip>* + mutable_ship_info(); private: - const ::protobuf::MessageOfResource& _internal_resource_message() const; - ::protobuf::MessageOfResource* _internal_mutable_resource_message(); + const ::protobuf::MessageOfShip& _internal_ship_info(int index) const; + ::protobuf::MessageOfShip* _internal_add_ship_info(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::protobuf::MessageOfShip>& _internal_ship_info() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::protobuf::MessageOfShip>* _internal_mutable_ship_info(); public: - // .protobuf.MessageOfMap map_message = 9; - bool has_map_message() const; + const ::protobuf::MessageOfShip& ship_info(int index) const; + ::protobuf::MessageOfShip* add_ship_info(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::protobuf::MessageOfShip>& + ship_info() const; + // @@protoc_insertion_point(class_scope:protobuf.ShipInfoRes) private: - bool _internal_has_map_message() const; + class _Internal; + template + friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ + { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::protobuf::MessageOfShip> ship_info_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union + { + Impl_ _impl_; + }; + friend struct ::TableStruct_Message2Clients_2eproto; + }; // ------------------------------------------------------------------- + + class EcoRes final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:protobuf.EcoRes) */ + { public: - void clear_map_message(); - const ::protobuf::MessageOfMap& map_message() const; - PROTOBUF_NODISCARD ::protobuf::MessageOfMap* release_map_message(); - ::protobuf::MessageOfMap* mutable_map_message(); - void set_allocated_map_message(::protobuf::MessageOfMap* value); - void unsafe_arena_set_allocated_map_message(::protobuf::MessageOfMap* value); - ::protobuf::MessageOfMap* unsafe_arena_release_map_message(); + inline EcoRes() : + EcoRes(nullptr) + { + } + ~EcoRes() override; + template + explicit PROTOBUF_CONSTEXPR EcoRes(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - private: - const ::protobuf::MessageOfMap& _internal_map_message() const; - ::protobuf::MessageOfMap* _internal_mutable_map_message(); + EcoRes(const EcoRes& from); + EcoRes(EcoRes&& from) noexcept + : + EcoRes() + { + *this = ::std::move(from); + } - public: - // .protobuf.MessageOfNews news_message = 10; - bool has_news_message() const; + inline EcoRes& operator=(const EcoRes& from) + { + CopyFrom(from); + return *this; + } + inline EcoRes& operator=(EcoRes&& from) noexcept + { + if (this == &from) + return *this; + if (GetOwningArena() == from.GetOwningArena() +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) + { + InternalSwap(&from); + } + else + { + CopyFrom(from); + } + return *this; + } - private: - bool _internal_has_news_message() const; + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const + { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() + { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } - public: - void clear_news_message(); - const ::protobuf::MessageOfNews& news_message() const; - PROTOBUF_NODISCARD ::protobuf::MessageOfNews* release_news_message(); - ::protobuf::MessageOfNews* mutable_news_message(); - void set_allocated_news_message(::protobuf::MessageOfNews* value); - void unsafe_arena_set_allocated_news_message(::protobuf::MessageOfNews* value); - ::protobuf::MessageOfNews* unsafe_arena_release_news_message(); + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() + { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const EcoRes& default_instance() + { + return *internal_default_instance(); + } + static inline const EcoRes* internal_default_instance() + { + return reinterpret_cast( + &_EcoRes_default_instance_ + ); + } + static constexpr int kIndexInFileMessages = + 18; - private: - const ::protobuf::MessageOfNews& _internal_news_message() const; - ::protobuf::MessageOfNews* _internal_mutable_news_message(); + friend void swap(EcoRes& a, EcoRes& b) + { + a.Swap(&b); + } + inline void Swap(EcoRes* other) + { + if (other == this) + return; +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) + { +#else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) + { +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } + else + { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(EcoRes* other) + { + if (other == this) + return; + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } - public: - // .protobuf.MessageOfBombedBullet bombed_bullet_message = 11; - bool has_bombed_bullet_message() const; + // implements Message ---------------------------------------------- + + EcoRes* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final + { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const EcoRes& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const EcoRes& from) + { + EcoRes::MergeImpl(*this, from); + } private: - bool _internal_has_bombed_bullet_message() const; + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: - void clear_bombed_bullet_message(); - const ::protobuf::MessageOfBombedBullet& bombed_bullet_message() const; - PROTOBUF_NODISCARD ::protobuf::MessageOfBombedBullet* release_bombed_bullet_message(); - ::protobuf::MessageOfBombedBullet* mutable_bombed_bullet_message(); - void set_allocated_bombed_bullet_message(::protobuf::MessageOfBombedBullet* value); - void unsafe_arena_set_allocated_bombed_bullet_message(::protobuf::MessageOfBombedBullet* value); - ::protobuf::MessageOfBombedBullet* unsafe_arena_release_bombed_bullet_message(); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - private: - const ::protobuf::MessageOfBombedBullet& _internal_bombed_bullet_message() const; - ::protobuf::MessageOfBombedBullet* _internal_mutable_bombed_bullet_message(); + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream + ) const final; + int GetCachedSize() const final + { + return _impl_._cached_size_.Get(); + } - public: - // .protobuf.MessageOfTeam team_message = 12; - bool has_team_message() const; + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(EcoRes* other); private: - bool _internal_has_team_message() const; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::absl::string_view FullMessageName() + { + return "protobuf.EcoRes"; + } + + protected: + explicit EcoRes(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - void clear_team_message(); - const ::protobuf::MessageOfTeam& team_message() const; - PROTOBUF_NODISCARD ::protobuf::MessageOfTeam* release_team_message(); - ::protobuf::MessageOfTeam* mutable_team_message(); - void set_allocated_team_message(::protobuf::MessageOfTeam* value); - void unsafe_arena_set_allocated_team_message(::protobuf::MessageOfTeam* value); - ::protobuf::MessageOfTeam* unsafe_arena_release_team_message(); + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int + { + kEconomyFieldNumber = 1, + }; + // int64 economy = 1; + void clear_economy(); + ::int64_t economy() const; + void set_economy(::int64_t value); private: - const ::protobuf::MessageOfTeam& _internal_team_message() const; - ::protobuf::MessageOfTeam* _internal_mutable_team_message(); + ::int64_t _internal_economy() const; + void _internal_set_economy(::int64_t value); public: - void clear_message_of_obj(); - MessageOfObjCase message_of_obj_case() const; - // @@protoc_insertion_point(class_scope:protobuf.MessageOfObj) + // @@protoc_insertion_point(class_scope:protobuf.EcoRes) private: class _Internal; - void set_has_ship_message(); - void set_has_bullet_message(); - void set_has_factory_message(); - void set_has_community_message(); - void set_has_fort_message(); - void set_has_wormhole_message(); - void set_has_home_message(); - void set_has_resource_message(); - void set_has_map_message(); - void set_has_news_message(); - void set_has_bombed_bullet_message(); - void set_has_team_message(); - - inline bool has_message_of_obj() const; - inline void clear_has_message_of_obj(); - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, - 12, - 12, - 0, - 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; + friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized - ) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, const Impl_& from); - union MessageOfObjUnion - { - constexpr MessageOfObjUnion() : - _constinit_{} - { - } - ::google::protobuf::internal::ConstantInitialized _constinit_; - ::protobuf::MessageOfShip* ship_message_; - ::protobuf::MessageOfBullet* bullet_message_; - ::protobuf::MessageOfFactory* factory_message_; - ::protobuf::MessageOfCommunity* community_message_; - ::protobuf::MessageOfFort* fort_message_; - ::protobuf::MessageOfWormhole* wormhole_message_; - ::protobuf::MessageOfHome* home_message_; - ::protobuf::MessageOfResource* resource_message_; - ::protobuf::MessageOfMap* map_message_; - ::protobuf::MessageOfNews* news_message_; - ::protobuf::MessageOfBombedBullet* bombed_bullet_message_; - ::protobuf::MessageOfTeam* team_message_; - } message_of_obj_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::uint32_t _oneof_case_[1]; - - PROTOBUF_TSAN_DECLARE_MEMBER + ::int64_t economy_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; }; union { @@ -5442,41 +5063,38 @@ namespace protobuf friend struct ::TableStruct_Message2Clients_2eproto; }; // ------------------------------------------------------------------- - class MessageToClient final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf.MessageToClient) */ + class MessageOfNews final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:protobuf.MessageOfNews) */ { public: - inline MessageToClient() : - MessageToClient(nullptr) + inline MessageOfNews() : + MessageOfNews(nullptr) { } - ~MessageToClient() override; + ~MessageOfNews() override; template - explicit PROTOBUF_CONSTEXPR MessageToClient(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR MessageOfNews(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline MessageToClient(const MessageToClient& from) : - MessageToClient(nullptr, from) - { - } - MessageToClient(MessageToClient&& from) noexcept + MessageOfNews(const MessageOfNews& from); + MessageOfNews(MessageOfNews&& from) noexcept : - MessageToClient() + MessageOfNews() { *this = ::std::move(from); } - inline MessageToClient& operator=(const MessageToClient& from) + inline MessageOfNews& operator=(const MessageOfNews& from) { CopyFrom(from); return *this; } - inline MessageToClient& operator=(MessageToClient&& from) noexcept + inline MessageOfNews& operator=(MessageOfNews&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { @@ -5489,126 +5107,130 @@ namespace protobuf return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const MessageToClient& default_instance() + static const MessageOfNews& default_instance() { return *internal_default_instance(); } - static inline const MessageToClient* internal_default_instance() + enum NewsCase { - return reinterpret_cast( - &_MessageToClient_default_instance_ + kTextMessage = 1, + kBinaryMessage = 4, + NEWS_NOT_SET = 0, + }; + + static inline const MessageOfNews* internal_default_instance() + { + return reinterpret_cast( + &_MessageOfNews_default_instance_ ); } static constexpr int kIndexInFileMessages = - 14; + 19; - friend void swap(MessageToClient& a, MessageToClient& b) + friend void swap(MessageOfNews& a, MessageOfNews& b) { a.Swap(&b); } - inline void Swap(MessageToClient* other) + inline void Swap(MessageOfNews* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(MessageToClient* other) + void UnsafeArenaSwap(MessageOfNews* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - MessageToClient* New(::google::protobuf::Arena* arena = nullptr) const final + MessageOfNews* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const MessageToClient& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const MessageToClient& from) + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const MessageOfNews& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const MessageOfNews& from) { - MessageToClient::MergeImpl(*this, from); + MessageOfNews::MergeImpl(*this, from); } private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream ) const final; - int GetCachedSize() const + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); void SharedDtor(); - void InternalSwap(MessageToClient* other); + void SetCachedSize(int size) const final; + void InternalSwap(MessageOfNews* other); private: - friend class ::google::protobuf::internal::AnyMetadata; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "protobuf.MessageToClient"; + return "protobuf.MessageOfNews"; } protected: - explicit MessageToClient(::google::protobuf::Arena* arena); - MessageToClient(::google::protobuf::Arena* arena, const MessageToClient& from); + explicit MessageOfNews(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData* GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -5616,88 +5238,101 @@ namespace protobuf enum : int { - kObjMessageFieldNumber = 1, - kAllMessageFieldNumber = 3, - kGameStateFieldNumber = 2, + kFromIdFieldNumber = 2, + kToIdFieldNumber = 3, + kTextMessageFieldNumber = 1, + kBinaryMessageFieldNumber = 4, }; - // repeated .protobuf.MessageOfObj obj_message = 1; - int obj_message_size() const; + // int64 from_id = 2; + void clear_from_id(); + ::int64_t from_id() const; + void set_from_id(::int64_t value); private: - int _internal_obj_message_size() const; + ::int64_t _internal_from_id() const; + void _internal_set_from_id(::int64_t value); public: - void clear_obj_message(); - ::protobuf::MessageOfObj* mutable_obj_message(int index); - ::google::protobuf::RepeatedPtrField<::protobuf::MessageOfObj>* - mutable_obj_message(); + // int64 to_id = 3; + void clear_to_id(); + ::int64_t to_id() const; + void set_to_id(::int64_t value); private: - const ::google::protobuf::RepeatedPtrField<::protobuf::MessageOfObj>& _internal_obj_message() const; - ::google::protobuf::RepeatedPtrField<::protobuf::MessageOfObj>* _internal_mutable_obj_message(); + ::int64_t _internal_to_id() const; + void _internal_set_to_id(::int64_t value); public: - const ::protobuf::MessageOfObj& obj_message(int index) const; - ::protobuf::MessageOfObj* add_obj_message(); - const ::google::protobuf::RepeatedPtrField<::protobuf::MessageOfObj>& - obj_message() const; - // .protobuf.MessageOfAll all_message = 3; - bool has_all_message() const; - void clear_all_message(); - const ::protobuf::MessageOfAll& all_message() const; - PROTOBUF_NODISCARD ::protobuf::MessageOfAll* release_all_message(); - ::protobuf::MessageOfAll* mutable_all_message(); - void set_allocated_all_message(::protobuf::MessageOfAll* value); - void unsafe_arena_set_allocated_all_message(::protobuf::MessageOfAll* value); - ::protobuf::MessageOfAll* unsafe_arena_release_all_message(); + // string text_message = 1; + bool has_text_message() const; + void clear_text_message(); + const std::string& text_message() const; + + template + void set_text_message(Arg_&& arg, Args_... args); + std::string* mutable_text_message(); + PROTOBUF_NODISCARD std::string* release_text_message(); + void set_allocated_text_message(std::string* ptr); private: - const ::protobuf::MessageOfAll& _internal_all_message() const; - ::protobuf::MessageOfAll* _internal_mutable_all_message(); + const std::string& _internal_text_message() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_text_message( + const std::string& value + ); + std::string* _internal_mutable_text_message(); public: - // .protobuf.GameState game_state = 2; - void clear_game_state(); - ::protobuf::GameState game_state() const; - void set_game_state(::protobuf::GameState value); + // bytes binary_message = 4; + bool has_binary_message() const; + void clear_binary_message(); + const std::string& binary_message() const; + + template + void set_binary_message(Arg_&& arg, Args_... args); + std::string* mutable_binary_message(); + PROTOBUF_NODISCARD std::string* release_binary_message(); + void set_allocated_binary_message(std::string* ptr); private: - ::protobuf::GameState _internal_game_state() const; - void _internal_set_game_state(::protobuf::GameState value); + const std::string& _internal_binary_message() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_binary_message( + const std::string& value + ); + std::string* _internal_mutable_binary_message(); public: - // @@protoc_insertion_point(class_scope:protobuf.MessageToClient) + void clear_news(); + NewsCase news_case() const; + // @@protoc_insertion_point(class_scope:protobuf.MessageOfNews) private: class _Internal; + void set_has_text_message(); + void set_has_binary_message(); + + inline bool has_news() const; + inline void clear_has_news(); - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, - 3, - 2, - 0, - 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; + friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized - ) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedPtrField<::protobuf::MessageOfObj> obj_message_; - ::protobuf::MessageOfAll* all_message_; - int game_state_; - PROTOBUF_TSAN_DECLARE_MEMBER + ::int64_t from_id_; + ::int64_t to_id_; + union NewsUnion + { + constexpr NewsUnion() : + _constinit_{} + { + } + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr text_message_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr binary_message_; + } news_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::uint32_t _oneof_case_[1]; }; union { @@ -5721,7 +5356,6 @@ namespace protobuf // int32 x = 1; inline void MessageOfShip::clear_x() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.x_ = 0; } inline ::int32_t MessageOfShip::x() const @@ -5736,12 +5370,10 @@ namespace protobuf } inline ::int32_t MessageOfShip::_internal_x() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.x_; } inline void MessageOfShip::_internal_set_x(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.x_ = value; } @@ -5749,7 +5381,6 @@ namespace protobuf // int32 y = 2; inline void MessageOfShip::clear_y() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.y_ = 0; } inline ::int32_t MessageOfShip::y() const @@ -5764,12 +5395,10 @@ namespace protobuf } inline ::int32_t MessageOfShip::_internal_y() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.y_; } inline void MessageOfShip::_internal_set_y(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.y_ = value; } @@ -5777,7 +5406,6 @@ namespace protobuf // int32 speed = 3; inline void MessageOfShip::clear_speed() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.speed_ = 0; } inline ::int32_t MessageOfShip::speed() const @@ -5792,12 +5420,10 @@ namespace protobuf } inline ::int32_t MessageOfShip::_internal_speed() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.speed_; } inline void MessageOfShip::_internal_set_speed(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.speed_ = value; } @@ -5805,7 +5431,6 @@ namespace protobuf // int32 hp = 4; inline void MessageOfShip::clear_hp() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.hp_ = 0; } inline ::int32_t MessageOfShip::hp() const @@ -5820,12 +5445,10 @@ namespace protobuf } inline ::int32_t MessageOfShip::_internal_hp() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.hp_; } inline void MessageOfShip::_internal_set_hp(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.hp_ = value; } @@ -5833,7 +5456,6 @@ namespace protobuf // int32 armor = 5; inline void MessageOfShip::clear_armor() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.armor_ = 0; } inline ::int32_t MessageOfShip::armor() const @@ -5848,12 +5470,10 @@ namespace protobuf } inline ::int32_t MessageOfShip::_internal_armor() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.armor_; } inline void MessageOfShip::_internal_set_armor(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.armor_ = value; } @@ -5861,7 +5481,6 @@ namespace protobuf // int32 shield = 6; inline void MessageOfShip::clear_shield() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.shield_ = 0; } inline ::int32_t MessageOfShip::shield() const @@ -5876,12 +5495,10 @@ namespace protobuf } inline ::int32_t MessageOfShip::_internal_shield() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.shield_; } inline void MessageOfShip::_internal_set_shield(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.shield_ = value; } @@ -5889,7 +5506,6 @@ namespace protobuf // int64 team_id = 7; inline void MessageOfShip::clear_team_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.team_id_ = ::int64_t{0}; } inline ::int64_t MessageOfShip::team_id() const @@ -5904,12 +5520,10 @@ namespace protobuf } inline ::int64_t MessageOfShip::_internal_team_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.team_id_; } inline void MessageOfShip::_internal_set_team_id(::int64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.team_id_ = value; } @@ -5917,7 +5531,6 @@ namespace protobuf // int64 player_id = 8; inline void MessageOfShip::clear_player_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.player_id_ = ::int64_t{0}; } inline ::int64_t MessageOfShip::player_id() const @@ -5932,12 +5545,10 @@ namespace protobuf } inline ::int64_t MessageOfShip::_internal_player_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.player_id_; } inline void MessageOfShip::_internal_set_player_id(::int64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.player_id_ = value; } @@ -5945,7 +5556,6 @@ namespace protobuf // int64 guid = 9; inline void MessageOfShip::clear_guid() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.guid_ = ::int64_t{0}; } inline ::int64_t MessageOfShip::guid() const @@ -5960,12 +5570,10 @@ namespace protobuf } inline ::int64_t MessageOfShip::_internal_guid() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.guid_; } inline void MessageOfShip::_internal_set_guid(::int64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.guid_ = value; } @@ -5973,7 +5581,6 @@ namespace protobuf // .protobuf.ShipState ship_state = 10; inline void MessageOfShip::clear_ship_state() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.ship_state_ = 0; } inline ::protobuf::ShipState MessageOfShip::ship_state() const @@ -5988,12 +5595,10 @@ namespace protobuf } inline ::protobuf::ShipState MessageOfShip::_internal_ship_state() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return static_cast<::protobuf::ShipState>(_impl_.ship_state_); } inline void MessageOfShip::_internal_set_ship_state(::protobuf::ShipState value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.ship_state_ = value; } @@ -6001,7 +5606,6 @@ namespace protobuf // .protobuf.ShipType ship_type = 11; inline void MessageOfShip::clear_ship_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.ship_type_ = 0; } inline ::protobuf::ShipType MessageOfShip::ship_type() const @@ -6016,12 +5620,10 @@ namespace protobuf } inline ::protobuf::ShipType MessageOfShip::_internal_ship_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return static_cast<::protobuf::ShipType>(_impl_.ship_type_); } inline void MessageOfShip::_internal_set_ship_type(::protobuf::ShipType value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.ship_type_ = value; } @@ -6029,7 +5631,6 @@ namespace protobuf // int32 view_range = 12; inline void MessageOfShip::clear_view_range() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.view_range_ = 0; } inline ::int32_t MessageOfShip::view_range() const @@ -6044,12 +5645,10 @@ namespace protobuf } inline ::int32_t MessageOfShip::_internal_view_range() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.view_range_; } inline void MessageOfShip::_internal_set_view_range(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.view_range_ = value; } @@ -6057,7 +5656,6 @@ namespace protobuf // .protobuf.ProducerType producer_type = 13; inline void MessageOfShip::clear_producer_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.producer_type_ = 0; } inline ::protobuf::ProducerType MessageOfShip::producer_type() const @@ -6072,12 +5670,10 @@ namespace protobuf } inline ::protobuf::ProducerType MessageOfShip::_internal_producer_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return static_cast<::protobuf::ProducerType>(_impl_.producer_type_); } inline void MessageOfShip::_internal_set_producer_type(::protobuf::ProducerType value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.producer_type_ = value; } @@ -6085,7 +5681,6 @@ namespace protobuf // .protobuf.ConstructorType constructor_type = 14; inline void MessageOfShip::clear_constructor_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.constructor_type_ = 0; } inline ::protobuf::ConstructorType MessageOfShip::constructor_type() const @@ -6100,12 +5695,10 @@ namespace protobuf } inline ::protobuf::ConstructorType MessageOfShip::_internal_constructor_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return static_cast<::protobuf::ConstructorType>(_impl_.constructor_type_); } inline void MessageOfShip::_internal_set_constructor_type(::protobuf::ConstructorType value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.constructor_type_ = value; } @@ -6113,7 +5706,6 @@ namespace protobuf // .protobuf.ArmorType armor_type = 15; inline void MessageOfShip::clear_armor_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.armor_type_ = 0; } inline ::protobuf::ArmorType MessageOfShip::armor_type() const @@ -6128,12 +5720,10 @@ namespace protobuf } inline ::protobuf::ArmorType MessageOfShip::_internal_armor_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return static_cast<::protobuf::ArmorType>(_impl_.armor_type_); } inline void MessageOfShip::_internal_set_armor_type(::protobuf::ArmorType value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.armor_type_ = value; } @@ -6141,7 +5731,6 @@ namespace protobuf // .protobuf.ShieldType shield_type = 16; inline void MessageOfShip::clear_shield_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.shield_type_ = 0; } inline ::protobuf::ShieldType MessageOfShip::shield_type() const @@ -6156,12 +5745,10 @@ namespace protobuf } inline ::protobuf::ShieldType MessageOfShip::_internal_shield_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return static_cast<::protobuf::ShieldType>(_impl_.shield_type_); } inline void MessageOfShip::_internal_set_shield_type(::protobuf::ShieldType value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.shield_type_ = value; } @@ -6169,7 +5756,6 @@ namespace protobuf // .protobuf.WeaponType weapon_type = 17; inline void MessageOfShip::clear_weapon_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.weapon_type_ = 0; } inline ::protobuf::WeaponType MessageOfShip::weapon_type() const @@ -6184,12 +5770,10 @@ namespace protobuf } inline ::protobuf::WeaponType MessageOfShip::_internal_weapon_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return static_cast<::protobuf::WeaponType>(_impl_.weapon_type_); } inline void MessageOfShip::_internal_set_weapon_type(::protobuf::WeaponType value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.weapon_type_ = value; } @@ -6197,7 +5781,6 @@ namespace protobuf // double facing_direction = 18; inline void MessageOfShip::clear_facing_direction() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.facing_direction_ = 0; } inline double MessageOfShip::facing_direction() const @@ -6212,12 +5795,10 @@ namespace protobuf } inline double MessageOfShip::_internal_facing_direction() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.facing_direction_; } inline void MessageOfShip::_internal_set_facing_direction(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.facing_direction_ = value; } @@ -6229,7 +5810,6 @@ namespace protobuf // .protobuf.BulletType type = 1; inline void MessageOfBullet::clear_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.type_ = 0; } inline ::protobuf::BulletType MessageOfBullet::type() const @@ -6244,12 +5824,10 @@ namespace protobuf } inline ::protobuf::BulletType MessageOfBullet::_internal_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return static_cast<::protobuf::BulletType>(_impl_.type_); } inline void MessageOfBullet::_internal_set_type(::protobuf::BulletType value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.type_ = value; } @@ -6257,7 +5835,6 @@ namespace protobuf // int32 x = 2; inline void MessageOfBullet::clear_x() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.x_ = 0; } inline ::int32_t MessageOfBullet::x() const @@ -6272,12 +5849,10 @@ namespace protobuf } inline ::int32_t MessageOfBullet::_internal_x() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.x_; } inline void MessageOfBullet::_internal_set_x(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.x_ = value; } @@ -6285,7 +5860,6 @@ namespace protobuf // int32 y = 3; inline void MessageOfBullet::clear_y() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.y_ = 0; } inline ::int32_t MessageOfBullet::y() const @@ -6300,12 +5874,10 @@ namespace protobuf } inline ::int32_t MessageOfBullet::_internal_y() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.y_; } inline void MessageOfBullet::_internal_set_y(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.y_ = value; } @@ -6313,7 +5885,6 @@ namespace protobuf // double facing_direction = 4; inline void MessageOfBullet::clear_facing_direction() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.facing_direction_ = 0; } inline double MessageOfBullet::facing_direction() const @@ -6328,12 +5899,10 @@ namespace protobuf } inline double MessageOfBullet::_internal_facing_direction() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.facing_direction_; } inline void MessageOfBullet::_internal_set_facing_direction(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.facing_direction_ = value; } @@ -6341,7 +5910,6 @@ namespace protobuf // int32 damage = 5; inline void MessageOfBullet::clear_damage() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.damage_ = 0; } inline ::int32_t MessageOfBullet::damage() const @@ -6356,12 +5924,10 @@ namespace protobuf } inline ::int32_t MessageOfBullet::_internal_damage() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.damage_; } inline void MessageOfBullet::_internal_set_damage(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.damage_ = value; } @@ -6369,7 +5935,6 @@ namespace protobuf // int64 team_id = 6; inline void MessageOfBullet::clear_team_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.team_id_ = ::int64_t{0}; } inline ::int64_t MessageOfBullet::team_id() const @@ -6384,12 +5949,10 @@ namespace protobuf } inline ::int64_t MessageOfBullet::_internal_team_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.team_id_; } inline void MessageOfBullet::_internal_set_team_id(::int64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.team_id_ = value; } @@ -6397,7 +5960,6 @@ namespace protobuf // int64 guid = 7; inline void MessageOfBullet::clear_guid() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.guid_ = ::int64_t{0}; } inline ::int64_t MessageOfBullet::guid() const @@ -6412,12 +5974,10 @@ namespace protobuf } inline ::int64_t MessageOfBullet::_internal_guid() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.guid_; } inline void MessageOfBullet::_internal_set_guid(::int64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.guid_ = value; } @@ -6425,7 +5985,6 @@ namespace protobuf // double bomb_range = 8; inline void MessageOfBullet::clear_bomb_range() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.bomb_range_ = 0; } inline double MessageOfBullet::bomb_range() const @@ -6440,12 +5999,10 @@ namespace protobuf } inline double MessageOfBullet::_internal_bomb_range() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.bomb_range_; } inline void MessageOfBullet::_internal_set_bomb_range(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.bomb_range_ = value; } @@ -6453,7 +6010,6 @@ namespace protobuf // int32 speed = 9; inline void MessageOfBullet::clear_speed() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.speed_ = 0; } inline ::int32_t MessageOfBullet::speed() const @@ -6468,12 +6024,10 @@ namespace protobuf } inline ::int32_t MessageOfBullet::_internal_speed() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.speed_; } inline void MessageOfBullet::_internal_set_speed(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.speed_ = value; } @@ -6485,7 +6039,6 @@ namespace protobuf // .protobuf.BulletType type = 1; inline void MessageOfBombedBullet::clear_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.type_ = 0; } inline ::protobuf::BulletType MessageOfBombedBullet::type() const @@ -6500,12 +6053,10 @@ namespace protobuf } inline ::protobuf::BulletType MessageOfBombedBullet::_internal_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return static_cast<::protobuf::BulletType>(_impl_.type_); } inline void MessageOfBombedBullet::_internal_set_type(::protobuf::BulletType value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.type_ = value; } @@ -6513,7 +6064,6 @@ namespace protobuf // int32 x = 2; inline void MessageOfBombedBullet::clear_x() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.x_ = 0; } inline ::int32_t MessageOfBombedBullet::x() const @@ -6528,12 +6078,10 @@ namespace protobuf } inline ::int32_t MessageOfBombedBullet::_internal_x() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.x_; } inline void MessageOfBombedBullet::_internal_set_x(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.x_ = value; } @@ -6541,7 +6089,6 @@ namespace protobuf // int32 y = 3; inline void MessageOfBombedBullet::clear_y() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.y_ = 0; } inline ::int32_t MessageOfBombedBullet::y() const @@ -6556,12 +6103,10 @@ namespace protobuf } inline ::int32_t MessageOfBombedBullet::_internal_y() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.y_; } inline void MessageOfBombedBullet::_internal_set_y(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.y_ = value; } @@ -6569,7 +6114,6 @@ namespace protobuf // double facing_direction = 4; inline void MessageOfBombedBullet::clear_facing_direction() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.facing_direction_ = 0; } inline double MessageOfBombedBullet::facing_direction() const @@ -6584,12 +6128,10 @@ namespace protobuf } inline double MessageOfBombedBullet::_internal_facing_direction() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.facing_direction_; } inline void MessageOfBombedBullet::_internal_set_facing_direction(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.facing_direction_ = value; } @@ -6597,7 +6139,6 @@ namespace protobuf // int64 mapping_id = 5; inline void MessageOfBombedBullet::clear_mapping_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.mapping_id_ = ::int64_t{0}; } inline ::int64_t MessageOfBombedBullet::mapping_id() const @@ -6612,12 +6153,10 @@ namespace protobuf } inline ::int64_t MessageOfBombedBullet::_internal_mapping_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.mapping_id_; } inline void MessageOfBombedBullet::_internal_set_mapping_id(::int64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.mapping_id_ = value; } @@ -6625,7 +6164,6 @@ namespace protobuf // double bomb_range = 6; inline void MessageOfBombedBullet::clear_bomb_range() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.bomb_range_ = 0; } inline double MessageOfBombedBullet::bomb_range() const @@ -6640,12 +6178,10 @@ namespace protobuf } inline double MessageOfBombedBullet::_internal_bomb_range() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.bomb_range_; } inline void MessageOfBombedBullet::_internal_set_bomb_range(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.bomb_range_ = value; } @@ -6657,7 +6193,6 @@ namespace protobuf // int32 x = 1; inline void MessageOfFactory::clear_x() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.x_ = 0; } inline ::int32_t MessageOfFactory::x() const @@ -6672,12 +6207,10 @@ namespace protobuf } inline ::int32_t MessageOfFactory::_internal_x() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.x_; } inline void MessageOfFactory::_internal_set_x(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.x_ = value; } @@ -6685,7 +6218,6 @@ namespace protobuf // int32 y = 2; inline void MessageOfFactory::clear_y() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.y_ = 0; } inline ::int32_t MessageOfFactory::y() const @@ -6700,12 +6232,10 @@ namespace protobuf } inline ::int32_t MessageOfFactory::_internal_y() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.y_; } inline void MessageOfFactory::_internal_set_y(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.y_ = value; } @@ -6713,7 +6243,6 @@ namespace protobuf // int32 hp = 3; inline void MessageOfFactory::clear_hp() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.hp_ = 0; } inline ::int32_t MessageOfFactory::hp() const @@ -6728,12 +6257,10 @@ namespace protobuf } inline ::int32_t MessageOfFactory::_internal_hp() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.hp_; } inline void MessageOfFactory::_internal_set_hp(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.hp_ = value; } @@ -6741,7 +6268,6 @@ namespace protobuf // int64 team_id = 4; inline void MessageOfFactory::clear_team_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.team_id_ = ::int64_t{0}; } inline ::int64_t MessageOfFactory::team_id() const @@ -6756,12 +6282,10 @@ namespace protobuf } inline ::int64_t MessageOfFactory::_internal_team_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.team_id_; } inline void MessageOfFactory::_internal_set_team_id(::int64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.team_id_ = value; } @@ -6773,7 +6297,6 @@ namespace protobuf // int32 x = 1; inline void MessageOfCommunity::clear_x() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.x_ = 0; } inline ::int32_t MessageOfCommunity::x() const @@ -6788,12 +6311,10 @@ namespace protobuf } inline ::int32_t MessageOfCommunity::_internal_x() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.x_; } inline void MessageOfCommunity::_internal_set_x(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.x_ = value; } @@ -6801,7 +6322,6 @@ namespace protobuf // int32 y = 2; inline void MessageOfCommunity::clear_y() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.y_ = 0; } inline ::int32_t MessageOfCommunity::y() const @@ -6816,12 +6336,10 @@ namespace protobuf } inline ::int32_t MessageOfCommunity::_internal_y() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.y_; } inline void MessageOfCommunity::_internal_set_y(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.y_ = value; } @@ -6829,7 +6347,6 @@ namespace protobuf // int32 hp = 3; inline void MessageOfCommunity::clear_hp() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.hp_ = 0; } inline ::int32_t MessageOfCommunity::hp() const @@ -6844,12 +6361,10 @@ namespace protobuf } inline ::int32_t MessageOfCommunity::_internal_hp() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.hp_; } inline void MessageOfCommunity::_internal_set_hp(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.hp_ = value; } @@ -6857,7 +6372,6 @@ namespace protobuf // int64 team_id = 4; inline void MessageOfCommunity::clear_team_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.team_id_ = ::int64_t{0}; } inline ::int64_t MessageOfCommunity::team_id() const @@ -6872,12 +6386,10 @@ namespace protobuf } inline ::int64_t MessageOfCommunity::_internal_team_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.team_id_; } inline void MessageOfCommunity::_internal_set_team_id(::int64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.team_id_ = value; } @@ -6889,7 +6401,6 @@ namespace protobuf // int32 x = 1; inline void MessageOfFort::clear_x() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.x_ = 0; } inline ::int32_t MessageOfFort::x() const @@ -6904,12 +6415,10 @@ namespace protobuf } inline ::int32_t MessageOfFort::_internal_x() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.x_; } inline void MessageOfFort::_internal_set_x(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.x_ = value; } @@ -6917,7 +6426,6 @@ namespace protobuf // int32 y = 2; inline void MessageOfFort::clear_y() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.y_ = 0; } inline ::int32_t MessageOfFort::y() const @@ -6932,12 +6440,10 @@ namespace protobuf } inline ::int32_t MessageOfFort::_internal_y() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.y_; } inline void MessageOfFort::_internal_set_y(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.y_ = value; } @@ -6945,7 +6451,6 @@ namespace protobuf // int32 hp = 3; inline void MessageOfFort::clear_hp() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.hp_ = 0; } inline ::int32_t MessageOfFort::hp() const @@ -6960,12 +6465,10 @@ namespace protobuf } inline ::int32_t MessageOfFort::_internal_hp() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.hp_; } inline void MessageOfFort::_internal_set_hp(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.hp_ = value; } @@ -6973,7 +6476,6 @@ namespace protobuf // int64 team_id = 4; inline void MessageOfFort::clear_team_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.team_id_ = ::int64_t{0}; } inline ::int64_t MessageOfFort::team_id() const @@ -6988,12 +6490,10 @@ namespace protobuf } inline ::int64_t MessageOfFort::_internal_team_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.team_id_; } inline void MessageOfFort::_internal_set_team_id(::int64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.team_id_ = value; } @@ -7005,7 +6505,6 @@ namespace protobuf // int32 x = 1; inline void MessageOfWormhole::clear_x() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.x_ = 0; } inline ::int32_t MessageOfWormhole::x() const @@ -7020,12 +6519,10 @@ namespace protobuf } inline ::int32_t MessageOfWormhole::_internal_x() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.x_; } inline void MessageOfWormhole::_internal_set_x(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.x_ = value; } @@ -7033,7 +6530,6 @@ namespace protobuf // int32 y = 2; inline void MessageOfWormhole::clear_y() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.y_ = 0; } inline ::int32_t MessageOfWormhole::y() const @@ -7048,12 +6544,10 @@ namespace protobuf } inline ::int32_t MessageOfWormhole::_internal_y() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.y_; } inline void MessageOfWormhole::_internal_set_y(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.y_ = value; } @@ -7061,7 +6555,6 @@ namespace protobuf // int32 hp = 3; inline void MessageOfWormhole::clear_hp() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.hp_ = 0; } inline ::int32_t MessageOfWormhole::hp() const @@ -7076,12 +6569,10 @@ namespace protobuf } inline ::int32_t MessageOfWormhole::_internal_hp() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.hp_; } inline void MessageOfWormhole::_internal_set_hp(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.hp_ = value; } @@ -7093,7 +6584,6 @@ namespace protobuf // int32 x = 1; inline void MessageOfResource::clear_x() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.x_ = 0; } inline ::int32_t MessageOfResource::x() const @@ -7108,12 +6598,10 @@ namespace protobuf } inline ::int32_t MessageOfResource::_internal_x() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.x_; } inline void MessageOfResource::_internal_set_x(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.x_ = value; } @@ -7121,7 +6609,6 @@ namespace protobuf // int32 y = 2; inline void MessageOfResource::clear_y() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.y_ = 0; } inline ::int32_t MessageOfResource::y() const @@ -7136,12 +6623,10 @@ namespace protobuf } inline ::int32_t MessageOfResource::_internal_y() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.y_; } inline void MessageOfResource::_internal_set_y(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.y_ = value; } @@ -7149,7 +6634,6 @@ namespace protobuf // int32 progress = 3; inline void MessageOfResource::clear_progress() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.progress_ = 0; } inline ::int32_t MessageOfResource::progress() const @@ -7164,12 +6648,10 @@ namespace protobuf } inline ::int32_t MessageOfResource::_internal_progress() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.progress_; } inline void MessageOfResource::_internal_set_progress(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.progress_ = value; } @@ -7181,7 +6663,6 @@ namespace protobuf // int32 x = 1; inline void MessageOfHome::clear_x() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.x_ = 0; } inline ::int32_t MessageOfHome::x() const @@ -7196,12 +6677,10 @@ namespace protobuf } inline ::int32_t MessageOfHome::_internal_x() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.x_; } inline void MessageOfHome::_internal_set_x(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.x_ = value; } @@ -7209,7 +6688,6 @@ namespace protobuf // int32 y = 2; inline void MessageOfHome::clear_y() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.y_ = 0; } inline ::int32_t MessageOfHome::y() const @@ -7224,12 +6702,10 @@ namespace protobuf } inline ::int32_t MessageOfHome::_internal_y() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.y_; } inline void MessageOfHome::_internal_set_y(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.y_ = value; } @@ -7237,7 +6713,6 @@ namespace protobuf // int32 hp = 3; inline void MessageOfHome::clear_hp() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.hp_ = 0; } inline ::int32_t MessageOfHome::hp() const @@ -7252,12 +6727,10 @@ namespace protobuf } inline ::int32_t MessageOfHome::_internal_hp() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.hp_; } inline void MessageOfHome::_internal_set_hp(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.hp_ = value; } @@ -7265,7 +6738,6 @@ namespace protobuf // int64 team_id = 4; inline void MessageOfHome::clear_team_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.team_id_ = ::int64_t{0}; } inline ::int64_t MessageOfHome::team_id() const @@ -7280,12 +6752,10 @@ namespace protobuf } inline ::int64_t MessageOfHome::_internal_team_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.team_id_; } inline void MessageOfHome::_internal_set_team_id(::int64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.team_id_ = value; } @@ -7297,7 +6767,7 @@ namespace protobuf // repeated .protobuf.PlaceType cols = 1; inline int MessageOfMap_Row::_internal_cols_size() const { - return _internal_cols().size(); + return _impl_.cols_.size(); } inline int MessageOfMap_Row::cols_size() const { @@ -7305,13 +6775,12 @@ namespace protobuf } inline void MessageOfMap_Row::clear_cols() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.cols_.Clear(); + _internal_mutable_cols()->Clear(); } inline ::protobuf::PlaceType MessageOfMap_Row::cols(int index) const { // @@protoc_insertion_point(field_get:protobuf.MessageOfMap.Row.cols) - return static_cast<::protobuf::PlaceType>(_internal_cols().Get(index)); + return _internal_cols(index); } inline void MessageOfMap_Row::set_cols(int index, ::protobuf::PlaceType value) { @@ -7320,31 +6789,33 @@ namespace protobuf } inline void MessageOfMap_Row::add_cols(::protobuf::PlaceType value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_cols()->Add(value); + _internal_add_cols(value); // @@protoc_insertion_point(field_add:protobuf.MessageOfMap.Row.cols) } - inline const ::google::protobuf::RepeatedField& MessageOfMap_Row::cols() const - ABSL_ATTRIBUTE_LIFETIME_BOUND + inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField& MessageOfMap_Row::cols() const { // @@protoc_insertion_point(field_list:protobuf.MessageOfMap.Row.cols) return _internal_cols(); } - inline ::google::protobuf::RepeatedField* MessageOfMap_Row::mutable_cols() - ABSL_ATTRIBUTE_LIFETIME_BOUND + inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* MessageOfMap_Row::mutable_cols() { // @@protoc_insertion_point(field_mutable_list:protobuf.MessageOfMap.Row.cols) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); return _internal_mutable_cols(); } - inline const ::google::protobuf::RepeatedField& MessageOfMap_Row::_internal_cols() const + inline ::protobuf::PlaceType MessageOfMap_Row::_internal_cols(int index) const + { + return static_cast<::protobuf::PlaceType>(_internal_cols().Get(index)); + } + inline void MessageOfMap_Row::_internal_add_cols(::protobuf::PlaceType value) + { + _internal_mutable_cols()->Add(value); + } + inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField& MessageOfMap_Row::_internal_cols() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.cols_; } - inline ::google::protobuf::RepeatedField* MessageOfMap_Row::_internal_mutable_cols() + inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* MessageOfMap_Row::_internal_mutable_cols() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return &_impl_.cols_; } @@ -7355,7 +6826,6 @@ namespace protobuf // uint32 height = 1; inline void MessageOfMap::clear_height() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.height_ = 0u; } inline ::uint32_t MessageOfMap::height() const @@ -7370,12 +6840,10 @@ namespace protobuf } inline ::uint32_t MessageOfMap::_internal_height() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.height_; } inline void MessageOfMap::_internal_set_height(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.height_ = value; } @@ -7383,7 +6851,6 @@ namespace protobuf // uint32 width = 2; inline void MessageOfMap::clear_width() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.width_ = 0u; } inline ::uint32_t MessageOfMap::width() const @@ -7398,12 +6865,10 @@ namespace protobuf } inline ::uint32_t MessageOfMap::_internal_width() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.width_; } inline void MessageOfMap::_internal_set_width(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.width_ = value; } @@ -7411,7 +6876,7 @@ namespace protobuf // repeated .protobuf.MessageOfMap.Row rows = 3; inline int MessageOfMap::_internal_rows_size() const { - return _internal_rows().size(); + return _impl_.rows_.size(); } inline int MessageOfMap::rows_size() const { @@ -7419,51 +6884,52 @@ namespace protobuf } inline void MessageOfMap::clear_rows() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.rows_.Clear(); + _internal_mutable_rows()->Clear(); } inline ::protobuf::MessageOfMap_Row* MessageOfMap::mutable_rows(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:protobuf.MessageOfMap.rows) return _internal_mutable_rows()->Mutable(index); } - inline ::google::protobuf::RepeatedPtrField<::protobuf::MessageOfMap_Row>* MessageOfMap::mutable_rows() - ABSL_ATTRIBUTE_LIFETIME_BOUND + inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::protobuf::MessageOfMap_Row>* + MessageOfMap::mutable_rows() { // @@protoc_insertion_point(field_mutable_list:protobuf.MessageOfMap.rows) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); return _internal_mutable_rows(); } + inline const ::protobuf::MessageOfMap_Row& MessageOfMap::_internal_rows(int index) const + { + return _internal_rows().Get(index); + } inline const ::protobuf::MessageOfMap_Row& MessageOfMap::rows(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:protobuf.MessageOfMap.rows) - return _internal_rows().Get(index); + return _internal_rows(index); + } + inline ::protobuf::MessageOfMap_Row* MessageOfMap::_internal_add_rows() + { + return _internal_mutable_rows()->Add(); } - inline ::protobuf::MessageOfMap_Row* MessageOfMap::add_rows() ABSL_ATTRIBUTE_LIFETIME_BOUND + inline ::protobuf::MessageOfMap_Row* MessageOfMap::add_rows() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::protobuf::MessageOfMap_Row* _add = _internal_mutable_rows()->Add(); + ::protobuf::MessageOfMap_Row* _add = _internal_add_rows(); // @@protoc_insertion_point(field_add:protobuf.MessageOfMap.rows) return _add; } - inline const ::google::protobuf::RepeatedPtrField<::protobuf::MessageOfMap_Row>& MessageOfMap::rows() const - ABSL_ATTRIBUTE_LIFETIME_BOUND + inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::protobuf::MessageOfMap_Row>& + MessageOfMap::rows() const { // @@protoc_insertion_point(field_list:protobuf.MessageOfMap.rows) return _internal_rows(); } - inline const ::google::protobuf::RepeatedPtrField<::protobuf::MessageOfMap_Row>& + inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::protobuf::MessageOfMap_Row>& MessageOfMap::_internal_rows() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.rows_; } - inline ::google::protobuf::RepeatedPtrField<::protobuf::MessageOfMap_Row>* + inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::protobuf::MessageOfMap_Row>* MessageOfMap::_internal_mutable_rows() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return &_impl_.rows_; } @@ -7474,7 +6940,6 @@ namespace protobuf // int64 team_id = 1; inline void MessageOfTeam::clear_team_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.team_id_ = ::int64_t{0}; } inline ::int64_t MessageOfTeam::team_id() const @@ -7489,12 +6954,10 @@ namespace protobuf } inline ::int64_t MessageOfTeam::_internal_team_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.team_id_; } inline void MessageOfTeam::_internal_set_team_id(::int64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.team_id_ = value; } @@ -7502,7 +6965,6 @@ namespace protobuf // int64 player_id = 2; inline void MessageOfTeam::clear_player_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.player_id_ = ::int64_t{0}; } inline ::int64_t MessageOfTeam::player_id() const @@ -7517,12 +6979,10 @@ namespace protobuf } inline ::int64_t MessageOfTeam::_internal_player_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.player_id_; } inline void MessageOfTeam::_internal_set_player_id(::int64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.player_id_ = value; } @@ -7530,7 +6990,6 @@ namespace protobuf // int32 score = 3; inline void MessageOfTeam::clear_score() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.score_ = 0; } inline ::int32_t MessageOfTeam::score() const @@ -7545,12 +7004,10 @@ namespace protobuf } inline ::int32_t MessageOfTeam::_internal_score() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.score_; } inline void MessageOfTeam::_internal_set_score(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.score_ = value; } @@ -7558,7 +7015,6 @@ namespace protobuf // int32 money = 4; inline void MessageOfTeam::clear_money() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.money_ = 0; } inline ::int32_t MessageOfTeam::money() const @@ -7573,16 +7029,39 @@ namespace protobuf } inline ::int32_t MessageOfTeam::_internal_money() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.money_; } inline void MessageOfTeam::_internal_set_money(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.money_ = value; } + // int64 guid = 5; + inline void MessageOfTeam::clear_guid() + { + _impl_.guid_ = ::int64_t{0}; + } + inline ::int64_t MessageOfTeam::guid() const + { + // @@protoc_insertion_point(field_get:protobuf.MessageOfTeam.guid) + return _internal_guid(); + } + inline void MessageOfTeam::set_guid(::int64_t value) + { + _internal_set_guid(value); + // @@protoc_insertion_point(field_set:protobuf.MessageOfTeam.guid) + } + inline ::int64_t MessageOfTeam::_internal_guid() const + { + return _impl_.guid_; + } + inline void MessageOfTeam::_internal_set_guid(::int64_t value) + { + ; + _impl_.guid_ = value; + } + // ------------------------------------------------------------------- // MessageOfObj @@ -7602,10 +7081,9 @@ namespace protobuf } inline void MessageOfObj::clear_ship_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (message_of_obj_case() == kShipMessage) { - if (GetArena() == nullptr) + if (GetArenaForAllocation() == nullptr) { delete _impl_.message_of_obj_.ship_message_; } @@ -7618,10 +7096,10 @@ namespace protobuf if (message_of_obj_case() == kShipMessage) { clear_has_message_of_obj(); - auto* temp = _impl_.message_of_obj_.ship_message_; - if (GetArena() != nullptr) + ::protobuf::MessageOfShip* temp = _impl_.message_of_obj_.ship_message_; + if (GetArenaForAllocation() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } _impl_.message_of_obj_.ship_message_ = nullptr; return temp; @@ -7635,7 +7113,7 @@ namespace protobuf { return message_of_obj_case() == kShipMessage ? *_impl_.message_of_obj_.ship_message_ : reinterpret_cast<::protobuf::MessageOfShip&>(::protobuf::_MessageOfShip_default_instance_); } - inline const ::protobuf::MessageOfShip& MessageOfObj::ship_message() const ABSL_ATTRIBUTE_LIFETIME_BOUND + inline const ::protobuf::MessageOfShip& MessageOfObj::ship_message() const { // @@protoc_insertion_point(field_get:protobuf.MessageOfObj.ship_message) return _internal_ship_message(); @@ -7646,7 +7124,7 @@ namespace protobuf if (message_of_obj_case() == kShipMessage) { clear_has_message_of_obj(); - auto* temp = _impl_.message_of_obj_.ship_message_; + ::protobuf::MessageOfShip* temp = _impl_.message_of_obj_.ship_message_; _impl_.message_of_obj_.ship_message_ = nullptr; return temp; } @@ -7655,16 +7133,13 @@ namespace protobuf return nullptr; } } - inline void MessageOfObj::unsafe_arena_set_allocated_ship_message(::protobuf::MessageOfShip* value) + inline void MessageOfObj::unsafe_arena_set_allocated_ship_message(::protobuf::MessageOfShip* ship_message) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. clear_message_of_obj(); - if (value) + if (ship_message) { set_has_ship_message(); - _impl_.message_of_obj_.ship_message_ = value; + _impl_.message_of_obj_.ship_message_ = ship_message; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf.MessageOfObj.ship_message) } @@ -7674,11 +7149,11 @@ namespace protobuf { clear_message_of_obj(); set_has_ship_message(); - _impl_.message_of_obj_.ship_message_ = CreateMaybeMessage<::protobuf::MessageOfShip>(GetArena()); + _impl_.message_of_obj_.ship_message_ = CreateMaybeMessage<::protobuf::MessageOfShip>(GetArenaForAllocation()); } return _impl_.message_of_obj_.ship_message_; } - inline ::protobuf::MessageOfShip* MessageOfObj::mutable_ship_message() ABSL_ATTRIBUTE_LIFETIME_BOUND + inline ::protobuf::MessageOfShip* MessageOfObj::mutable_ship_message() { ::protobuf::MessageOfShip* _msg = _internal_mutable_ship_message(); // @@protoc_insertion_point(field_mutable:protobuf.MessageOfObj.ship_message) @@ -7700,10 +7175,9 @@ namespace protobuf } inline void MessageOfObj::clear_bullet_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (message_of_obj_case() == kBulletMessage) { - if (GetArena() == nullptr) + if (GetArenaForAllocation() == nullptr) { delete _impl_.message_of_obj_.bullet_message_; } @@ -7716,10 +7190,10 @@ namespace protobuf if (message_of_obj_case() == kBulletMessage) { clear_has_message_of_obj(); - auto* temp = _impl_.message_of_obj_.bullet_message_; - if (GetArena() != nullptr) + ::protobuf::MessageOfBullet* temp = _impl_.message_of_obj_.bullet_message_; + if (GetArenaForAllocation() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } _impl_.message_of_obj_.bullet_message_ = nullptr; return temp; @@ -7733,7 +7207,7 @@ namespace protobuf { return message_of_obj_case() == kBulletMessage ? *_impl_.message_of_obj_.bullet_message_ : reinterpret_cast<::protobuf::MessageOfBullet&>(::protobuf::_MessageOfBullet_default_instance_); } - inline const ::protobuf::MessageOfBullet& MessageOfObj::bullet_message() const ABSL_ATTRIBUTE_LIFETIME_BOUND + inline const ::protobuf::MessageOfBullet& MessageOfObj::bullet_message() const { // @@protoc_insertion_point(field_get:protobuf.MessageOfObj.bullet_message) return _internal_bullet_message(); @@ -7744,7 +7218,7 @@ namespace protobuf if (message_of_obj_case() == kBulletMessage) { clear_has_message_of_obj(); - auto* temp = _impl_.message_of_obj_.bullet_message_; + ::protobuf::MessageOfBullet* temp = _impl_.message_of_obj_.bullet_message_; _impl_.message_of_obj_.bullet_message_ = nullptr; return temp; } @@ -7753,16 +7227,13 @@ namespace protobuf return nullptr; } } - inline void MessageOfObj::unsafe_arena_set_allocated_bullet_message(::protobuf::MessageOfBullet* value) + inline void MessageOfObj::unsafe_arena_set_allocated_bullet_message(::protobuf::MessageOfBullet* bullet_message) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. clear_message_of_obj(); - if (value) + if (bullet_message) { set_has_bullet_message(); - _impl_.message_of_obj_.bullet_message_ = value; + _impl_.message_of_obj_.bullet_message_ = bullet_message; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf.MessageOfObj.bullet_message) } @@ -7772,11 +7243,11 @@ namespace protobuf { clear_message_of_obj(); set_has_bullet_message(); - _impl_.message_of_obj_.bullet_message_ = CreateMaybeMessage<::protobuf::MessageOfBullet>(GetArena()); + _impl_.message_of_obj_.bullet_message_ = CreateMaybeMessage<::protobuf::MessageOfBullet>(GetArenaForAllocation()); } return _impl_.message_of_obj_.bullet_message_; } - inline ::protobuf::MessageOfBullet* MessageOfObj::mutable_bullet_message() ABSL_ATTRIBUTE_LIFETIME_BOUND + inline ::protobuf::MessageOfBullet* MessageOfObj::mutable_bullet_message() { ::protobuf::MessageOfBullet* _msg = _internal_mutable_bullet_message(); // @@protoc_insertion_point(field_mutable:protobuf.MessageOfObj.bullet_message) @@ -7798,10 +7269,9 @@ namespace protobuf } inline void MessageOfObj::clear_factory_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (message_of_obj_case() == kFactoryMessage) { - if (GetArena() == nullptr) + if (GetArenaForAllocation() == nullptr) { delete _impl_.message_of_obj_.factory_message_; } @@ -7814,10 +7284,10 @@ namespace protobuf if (message_of_obj_case() == kFactoryMessage) { clear_has_message_of_obj(); - auto* temp = _impl_.message_of_obj_.factory_message_; - if (GetArena() != nullptr) + ::protobuf::MessageOfFactory* temp = _impl_.message_of_obj_.factory_message_; + if (GetArenaForAllocation() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } _impl_.message_of_obj_.factory_message_ = nullptr; return temp; @@ -7831,7 +7301,7 @@ namespace protobuf { return message_of_obj_case() == kFactoryMessage ? *_impl_.message_of_obj_.factory_message_ : reinterpret_cast<::protobuf::MessageOfFactory&>(::protobuf::_MessageOfFactory_default_instance_); } - inline const ::protobuf::MessageOfFactory& MessageOfObj::factory_message() const ABSL_ATTRIBUTE_LIFETIME_BOUND + inline const ::protobuf::MessageOfFactory& MessageOfObj::factory_message() const { // @@protoc_insertion_point(field_get:protobuf.MessageOfObj.factory_message) return _internal_factory_message(); @@ -7842,7 +7312,7 @@ namespace protobuf if (message_of_obj_case() == kFactoryMessage) { clear_has_message_of_obj(); - auto* temp = _impl_.message_of_obj_.factory_message_; + ::protobuf::MessageOfFactory* temp = _impl_.message_of_obj_.factory_message_; _impl_.message_of_obj_.factory_message_ = nullptr; return temp; } @@ -7851,16 +7321,13 @@ namespace protobuf return nullptr; } } - inline void MessageOfObj::unsafe_arena_set_allocated_factory_message(::protobuf::MessageOfFactory* value) + inline void MessageOfObj::unsafe_arena_set_allocated_factory_message(::protobuf::MessageOfFactory* factory_message) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. clear_message_of_obj(); - if (value) + if (factory_message) { set_has_factory_message(); - _impl_.message_of_obj_.factory_message_ = value; + _impl_.message_of_obj_.factory_message_ = factory_message; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf.MessageOfObj.factory_message) } @@ -7870,11 +7337,11 @@ namespace protobuf { clear_message_of_obj(); set_has_factory_message(); - _impl_.message_of_obj_.factory_message_ = CreateMaybeMessage<::protobuf::MessageOfFactory>(GetArena()); + _impl_.message_of_obj_.factory_message_ = CreateMaybeMessage<::protobuf::MessageOfFactory>(GetArenaForAllocation()); } return _impl_.message_of_obj_.factory_message_; } - inline ::protobuf::MessageOfFactory* MessageOfObj::mutable_factory_message() ABSL_ATTRIBUTE_LIFETIME_BOUND + inline ::protobuf::MessageOfFactory* MessageOfObj::mutable_factory_message() { ::protobuf::MessageOfFactory* _msg = _internal_mutable_factory_message(); // @@protoc_insertion_point(field_mutable:protobuf.MessageOfObj.factory_message) @@ -7896,10 +7363,9 @@ namespace protobuf } inline void MessageOfObj::clear_community_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (message_of_obj_case() == kCommunityMessage) { - if (GetArena() == nullptr) + if (GetArenaForAllocation() == nullptr) { delete _impl_.message_of_obj_.community_message_; } @@ -7912,10 +7378,10 @@ namespace protobuf if (message_of_obj_case() == kCommunityMessage) { clear_has_message_of_obj(); - auto* temp = _impl_.message_of_obj_.community_message_; - if (GetArena() != nullptr) + ::protobuf::MessageOfCommunity* temp = _impl_.message_of_obj_.community_message_; + if (GetArenaForAllocation() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } _impl_.message_of_obj_.community_message_ = nullptr; return temp; @@ -7929,7 +7395,7 @@ namespace protobuf { return message_of_obj_case() == kCommunityMessage ? *_impl_.message_of_obj_.community_message_ : reinterpret_cast<::protobuf::MessageOfCommunity&>(::protobuf::_MessageOfCommunity_default_instance_); } - inline const ::protobuf::MessageOfCommunity& MessageOfObj::community_message() const ABSL_ATTRIBUTE_LIFETIME_BOUND + inline const ::protobuf::MessageOfCommunity& MessageOfObj::community_message() const { // @@protoc_insertion_point(field_get:protobuf.MessageOfObj.community_message) return _internal_community_message(); @@ -7940,7 +7406,7 @@ namespace protobuf if (message_of_obj_case() == kCommunityMessage) { clear_has_message_of_obj(); - auto* temp = _impl_.message_of_obj_.community_message_; + ::protobuf::MessageOfCommunity* temp = _impl_.message_of_obj_.community_message_; _impl_.message_of_obj_.community_message_ = nullptr; return temp; } @@ -7949,16 +7415,13 @@ namespace protobuf return nullptr; } } - inline void MessageOfObj::unsafe_arena_set_allocated_community_message(::protobuf::MessageOfCommunity* value) + inline void MessageOfObj::unsafe_arena_set_allocated_community_message(::protobuf::MessageOfCommunity* community_message) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. clear_message_of_obj(); - if (value) + if (community_message) { set_has_community_message(); - _impl_.message_of_obj_.community_message_ = value; + _impl_.message_of_obj_.community_message_ = community_message; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf.MessageOfObj.community_message) } @@ -7968,11 +7431,11 @@ namespace protobuf { clear_message_of_obj(); set_has_community_message(); - _impl_.message_of_obj_.community_message_ = CreateMaybeMessage<::protobuf::MessageOfCommunity>(GetArena()); + _impl_.message_of_obj_.community_message_ = CreateMaybeMessage<::protobuf::MessageOfCommunity>(GetArenaForAllocation()); } return _impl_.message_of_obj_.community_message_; } - inline ::protobuf::MessageOfCommunity* MessageOfObj::mutable_community_message() ABSL_ATTRIBUTE_LIFETIME_BOUND + inline ::protobuf::MessageOfCommunity* MessageOfObj::mutable_community_message() { ::protobuf::MessageOfCommunity* _msg = _internal_mutable_community_message(); // @@protoc_insertion_point(field_mutable:protobuf.MessageOfObj.community_message) @@ -7994,10 +7457,9 @@ namespace protobuf } inline void MessageOfObj::clear_fort_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (message_of_obj_case() == kFortMessage) { - if (GetArena() == nullptr) + if (GetArenaForAllocation() == nullptr) { delete _impl_.message_of_obj_.fort_message_; } @@ -8010,10 +7472,10 @@ namespace protobuf if (message_of_obj_case() == kFortMessage) { clear_has_message_of_obj(); - auto* temp = _impl_.message_of_obj_.fort_message_; - if (GetArena() != nullptr) + ::protobuf::MessageOfFort* temp = _impl_.message_of_obj_.fort_message_; + if (GetArenaForAllocation() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } _impl_.message_of_obj_.fort_message_ = nullptr; return temp; @@ -8027,7 +7489,7 @@ namespace protobuf { return message_of_obj_case() == kFortMessage ? *_impl_.message_of_obj_.fort_message_ : reinterpret_cast<::protobuf::MessageOfFort&>(::protobuf::_MessageOfFort_default_instance_); } - inline const ::protobuf::MessageOfFort& MessageOfObj::fort_message() const ABSL_ATTRIBUTE_LIFETIME_BOUND + inline const ::protobuf::MessageOfFort& MessageOfObj::fort_message() const { // @@protoc_insertion_point(field_get:protobuf.MessageOfObj.fort_message) return _internal_fort_message(); @@ -8038,7 +7500,7 @@ namespace protobuf if (message_of_obj_case() == kFortMessage) { clear_has_message_of_obj(); - auto* temp = _impl_.message_of_obj_.fort_message_; + ::protobuf::MessageOfFort* temp = _impl_.message_of_obj_.fort_message_; _impl_.message_of_obj_.fort_message_ = nullptr; return temp; } @@ -8047,16 +7509,13 @@ namespace protobuf return nullptr; } } - inline void MessageOfObj::unsafe_arena_set_allocated_fort_message(::protobuf::MessageOfFort* value) + inline void MessageOfObj::unsafe_arena_set_allocated_fort_message(::protobuf::MessageOfFort* fort_message) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. clear_message_of_obj(); - if (value) + if (fort_message) { set_has_fort_message(); - _impl_.message_of_obj_.fort_message_ = value; + _impl_.message_of_obj_.fort_message_ = fort_message; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf.MessageOfObj.fort_message) } @@ -8066,11 +7525,11 @@ namespace protobuf { clear_message_of_obj(); set_has_fort_message(); - _impl_.message_of_obj_.fort_message_ = CreateMaybeMessage<::protobuf::MessageOfFort>(GetArena()); + _impl_.message_of_obj_.fort_message_ = CreateMaybeMessage<::protobuf::MessageOfFort>(GetArenaForAllocation()); } return _impl_.message_of_obj_.fort_message_; } - inline ::protobuf::MessageOfFort* MessageOfObj::mutable_fort_message() ABSL_ATTRIBUTE_LIFETIME_BOUND + inline ::protobuf::MessageOfFort* MessageOfObj::mutable_fort_message() { ::protobuf::MessageOfFort* _msg = _internal_mutable_fort_message(); // @@protoc_insertion_point(field_mutable:protobuf.MessageOfObj.fort_message) @@ -8092,10 +7551,9 @@ namespace protobuf } inline void MessageOfObj::clear_wormhole_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (message_of_obj_case() == kWormholeMessage) { - if (GetArena() == nullptr) + if (GetArenaForAllocation() == nullptr) { delete _impl_.message_of_obj_.wormhole_message_; } @@ -8108,10 +7566,10 @@ namespace protobuf if (message_of_obj_case() == kWormholeMessage) { clear_has_message_of_obj(); - auto* temp = _impl_.message_of_obj_.wormhole_message_; - if (GetArena() != nullptr) + ::protobuf::MessageOfWormhole* temp = _impl_.message_of_obj_.wormhole_message_; + if (GetArenaForAllocation() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } _impl_.message_of_obj_.wormhole_message_ = nullptr; return temp; @@ -8125,7 +7583,7 @@ namespace protobuf { return message_of_obj_case() == kWormholeMessage ? *_impl_.message_of_obj_.wormhole_message_ : reinterpret_cast<::protobuf::MessageOfWormhole&>(::protobuf::_MessageOfWormhole_default_instance_); } - inline const ::protobuf::MessageOfWormhole& MessageOfObj::wormhole_message() const ABSL_ATTRIBUTE_LIFETIME_BOUND + inline const ::protobuf::MessageOfWormhole& MessageOfObj::wormhole_message() const { // @@protoc_insertion_point(field_get:protobuf.MessageOfObj.wormhole_message) return _internal_wormhole_message(); @@ -8136,7 +7594,7 @@ namespace protobuf if (message_of_obj_case() == kWormholeMessage) { clear_has_message_of_obj(); - auto* temp = _impl_.message_of_obj_.wormhole_message_; + ::protobuf::MessageOfWormhole* temp = _impl_.message_of_obj_.wormhole_message_; _impl_.message_of_obj_.wormhole_message_ = nullptr; return temp; } @@ -8145,16 +7603,13 @@ namespace protobuf return nullptr; } } - inline void MessageOfObj::unsafe_arena_set_allocated_wormhole_message(::protobuf::MessageOfWormhole* value) + inline void MessageOfObj::unsafe_arena_set_allocated_wormhole_message(::protobuf::MessageOfWormhole* wormhole_message) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. clear_message_of_obj(); - if (value) + if (wormhole_message) { set_has_wormhole_message(); - _impl_.message_of_obj_.wormhole_message_ = value; + _impl_.message_of_obj_.wormhole_message_ = wormhole_message; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf.MessageOfObj.wormhole_message) } @@ -8164,11 +7619,11 @@ namespace protobuf { clear_message_of_obj(); set_has_wormhole_message(); - _impl_.message_of_obj_.wormhole_message_ = CreateMaybeMessage<::protobuf::MessageOfWormhole>(GetArena()); + _impl_.message_of_obj_.wormhole_message_ = CreateMaybeMessage<::protobuf::MessageOfWormhole>(GetArenaForAllocation()); } return _impl_.message_of_obj_.wormhole_message_; } - inline ::protobuf::MessageOfWormhole* MessageOfObj::mutable_wormhole_message() ABSL_ATTRIBUTE_LIFETIME_BOUND + inline ::protobuf::MessageOfWormhole* MessageOfObj::mutable_wormhole_message() { ::protobuf::MessageOfWormhole* _msg = _internal_mutable_wormhole_message(); // @@protoc_insertion_point(field_mutable:protobuf.MessageOfObj.wormhole_message) @@ -8190,10 +7645,9 @@ namespace protobuf } inline void MessageOfObj::clear_home_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (message_of_obj_case() == kHomeMessage) { - if (GetArena() == nullptr) + if (GetArenaForAllocation() == nullptr) { delete _impl_.message_of_obj_.home_message_; } @@ -8206,10 +7660,10 @@ namespace protobuf if (message_of_obj_case() == kHomeMessage) { clear_has_message_of_obj(); - auto* temp = _impl_.message_of_obj_.home_message_; - if (GetArena() != nullptr) + ::protobuf::MessageOfHome* temp = _impl_.message_of_obj_.home_message_; + if (GetArenaForAllocation() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } _impl_.message_of_obj_.home_message_ = nullptr; return temp; @@ -8223,7 +7677,7 @@ namespace protobuf { return message_of_obj_case() == kHomeMessage ? *_impl_.message_of_obj_.home_message_ : reinterpret_cast<::protobuf::MessageOfHome&>(::protobuf::_MessageOfHome_default_instance_); } - inline const ::protobuf::MessageOfHome& MessageOfObj::home_message() const ABSL_ATTRIBUTE_LIFETIME_BOUND + inline const ::protobuf::MessageOfHome& MessageOfObj::home_message() const { // @@protoc_insertion_point(field_get:protobuf.MessageOfObj.home_message) return _internal_home_message(); @@ -8234,7 +7688,7 @@ namespace protobuf if (message_of_obj_case() == kHomeMessage) { clear_has_message_of_obj(); - auto* temp = _impl_.message_of_obj_.home_message_; + ::protobuf::MessageOfHome* temp = _impl_.message_of_obj_.home_message_; _impl_.message_of_obj_.home_message_ = nullptr; return temp; } @@ -8243,16 +7697,13 @@ namespace protobuf return nullptr; } } - inline void MessageOfObj::unsafe_arena_set_allocated_home_message(::protobuf::MessageOfHome* value) + inline void MessageOfObj::unsafe_arena_set_allocated_home_message(::protobuf::MessageOfHome* home_message) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. clear_message_of_obj(); - if (value) + if (home_message) { set_has_home_message(); - _impl_.message_of_obj_.home_message_ = value; + _impl_.message_of_obj_.home_message_ = home_message; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf.MessageOfObj.home_message) } @@ -8262,11 +7713,11 @@ namespace protobuf { clear_message_of_obj(); set_has_home_message(); - _impl_.message_of_obj_.home_message_ = CreateMaybeMessage<::protobuf::MessageOfHome>(GetArena()); + _impl_.message_of_obj_.home_message_ = CreateMaybeMessage<::protobuf::MessageOfHome>(GetArenaForAllocation()); } return _impl_.message_of_obj_.home_message_; } - inline ::protobuf::MessageOfHome* MessageOfObj::mutable_home_message() ABSL_ATTRIBUTE_LIFETIME_BOUND + inline ::protobuf::MessageOfHome* MessageOfObj::mutable_home_message() { ::protobuf::MessageOfHome* _msg = _internal_mutable_home_message(); // @@protoc_insertion_point(field_mutable:protobuf.MessageOfObj.home_message) @@ -8288,10 +7739,9 @@ namespace protobuf } inline void MessageOfObj::clear_resource_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (message_of_obj_case() == kResourceMessage) { - if (GetArena() == nullptr) + if (GetArenaForAllocation() == nullptr) { delete _impl_.message_of_obj_.resource_message_; } @@ -8304,10 +7754,10 @@ namespace protobuf if (message_of_obj_case() == kResourceMessage) { clear_has_message_of_obj(); - auto* temp = _impl_.message_of_obj_.resource_message_; - if (GetArena() != nullptr) + ::protobuf::MessageOfResource* temp = _impl_.message_of_obj_.resource_message_; + if (GetArenaForAllocation() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } _impl_.message_of_obj_.resource_message_ = nullptr; return temp; @@ -8321,7 +7771,7 @@ namespace protobuf { return message_of_obj_case() == kResourceMessage ? *_impl_.message_of_obj_.resource_message_ : reinterpret_cast<::protobuf::MessageOfResource&>(::protobuf::_MessageOfResource_default_instance_); } - inline const ::protobuf::MessageOfResource& MessageOfObj::resource_message() const ABSL_ATTRIBUTE_LIFETIME_BOUND + inline const ::protobuf::MessageOfResource& MessageOfObj::resource_message() const { // @@protoc_insertion_point(field_get:protobuf.MessageOfObj.resource_message) return _internal_resource_message(); @@ -8332,7 +7782,7 @@ namespace protobuf if (message_of_obj_case() == kResourceMessage) { clear_has_message_of_obj(); - auto* temp = _impl_.message_of_obj_.resource_message_; + ::protobuf::MessageOfResource* temp = _impl_.message_of_obj_.resource_message_; _impl_.message_of_obj_.resource_message_ = nullptr; return temp; } @@ -8341,16 +7791,13 @@ namespace protobuf return nullptr; } } - inline void MessageOfObj::unsafe_arena_set_allocated_resource_message(::protobuf::MessageOfResource* value) + inline void MessageOfObj::unsafe_arena_set_allocated_resource_message(::protobuf::MessageOfResource* resource_message) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. clear_message_of_obj(); - if (value) + if (resource_message) { set_has_resource_message(); - _impl_.message_of_obj_.resource_message_ = value; + _impl_.message_of_obj_.resource_message_ = resource_message; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf.MessageOfObj.resource_message) } @@ -8360,11 +7807,11 @@ namespace protobuf { clear_message_of_obj(); set_has_resource_message(); - _impl_.message_of_obj_.resource_message_ = CreateMaybeMessage<::protobuf::MessageOfResource>(GetArena()); + _impl_.message_of_obj_.resource_message_ = CreateMaybeMessage<::protobuf::MessageOfResource>(GetArenaForAllocation()); } return _impl_.message_of_obj_.resource_message_; } - inline ::protobuf::MessageOfResource* MessageOfObj::mutable_resource_message() ABSL_ATTRIBUTE_LIFETIME_BOUND + inline ::protobuf::MessageOfResource* MessageOfObj::mutable_resource_message() { ::protobuf::MessageOfResource* _msg = _internal_mutable_resource_message(); // @@protoc_insertion_point(field_mutable:protobuf.MessageOfObj.resource_message) @@ -8386,10 +7833,9 @@ namespace protobuf } inline void MessageOfObj::clear_map_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (message_of_obj_case() == kMapMessage) { - if (GetArena() == nullptr) + if (GetArenaForAllocation() == nullptr) { delete _impl_.message_of_obj_.map_message_; } @@ -8402,10 +7848,10 @@ namespace protobuf if (message_of_obj_case() == kMapMessage) { clear_has_message_of_obj(); - auto* temp = _impl_.message_of_obj_.map_message_; - if (GetArena() != nullptr) + ::protobuf::MessageOfMap* temp = _impl_.message_of_obj_.map_message_; + if (GetArenaForAllocation() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } _impl_.message_of_obj_.map_message_ = nullptr; return temp; @@ -8419,7 +7865,7 @@ namespace protobuf { return message_of_obj_case() == kMapMessage ? *_impl_.message_of_obj_.map_message_ : reinterpret_cast<::protobuf::MessageOfMap&>(::protobuf::_MessageOfMap_default_instance_); } - inline const ::protobuf::MessageOfMap& MessageOfObj::map_message() const ABSL_ATTRIBUTE_LIFETIME_BOUND + inline const ::protobuf::MessageOfMap& MessageOfObj::map_message() const { // @@protoc_insertion_point(field_get:protobuf.MessageOfObj.map_message) return _internal_map_message(); @@ -8430,7 +7876,7 @@ namespace protobuf if (message_of_obj_case() == kMapMessage) { clear_has_message_of_obj(); - auto* temp = _impl_.message_of_obj_.map_message_; + ::protobuf::MessageOfMap* temp = _impl_.message_of_obj_.map_message_; _impl_.message_of_obj_.map_message_ = nullptr; return temp; } @@ -8439,16 +7885,13 @@ namespace protobuf return nullptr; } } - inline void MessageOfObj::unsafe_arena_set_allocated_map_message(::protobuf::MessageOfMap* value) + inline void MessageOfObj::unsafe_arena_set_allocated_map_message(::protobuf::MessageOfMap* map_message) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. clear_message_of_obj(); - if (value) + if (map_message) { set_has_map_message(); - _impl_.message_of_obj_.map_message_ = value; + _impl_.message_of_obj_.map_message_ = map_message; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf.MessageOfObj.map_message) } @@ -8458,11 +7901,11 @@ namespace protobuf { clear_message_of_obj(); set_has_map_message(); - _impl_.message_of_obj_.map_message_ = CreateMaybeMessage<::protobuf::MessageOfMap>(GetArena()); + _impl_.message_of_obj_.map_message_ = CreateMaybeMessage<::protobuf::MessageOfMap>(GetArenaForAllocation()); } return _impl_.message_of_obj_.map_message_; } - inline ::protobuf::MessageOfMap* MessageOfObj::mutable_map_message() ABSL_ATTRIBUTE_LIFETIME_BOUND + inline ::protobuf::MessageOfMap* MessageOfObj::mutable_map_message() { ::protobuf::MessageOfMap* _msg = _internal_mutable_map_message(); // @@protoc_insertion_point(field_mutable:protobuf.MessageOfObj.map_message) @@ -8484,10 +7927,9 @@ namespace protobuf } inline void MessageOfObj::clear_news_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (message_of_obj_case() == kNewsMessage) { - if (GetArena() == nullptr) + if (GetArenaForAllocation() == nullptr) { delete _impl_.message_of_obj_.news_message_; } @@ -8500,10 +7942,10 @@ namespace protobuf if (message_of_obj_case() == kNewsMessage) { clear_has_message_of_obj(); - auto* temp = _impl_.message_of_obj_.news_message_; - if (GetArena() != nullptr) + ::protobuf::MessageOfNews* temp = _impl_.message_of_obj_.news_message_; + if (GetArenaForAllocation() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } _impl_.message_of_obj_.news_message_ = nullptr; return temp; @@ -8517,7 +7959,7 @@ namespace protobuf { return message_of_obj_case() == kNewsMessage ? *_impl_.message_of_obj_.news_message_ : reinterpret_cast<::protobuf::MessageOfNews&>(::protobuf::_MessageOfNews_default_instance_); } - inline const ::protobuf::MessageOfNews& MessageOfObj::news_message() const ABSL_ATTRIBUTE_LIFETIME_BOUND + inline const ::protobuf::MessageOfNews& MessageOfObj::news_message() const { // @@protoc_insertion_point(field_get:protobuf.MessageOfObj.news_message) return _internal_news_message(); @@ -8528,7 +7970,7 @@ namespace protobuf if (message_of_obj_case() == kNewsMessage) { clear_has_message_of_obj(); - auto* temp = _impl_.message_of_obj_.news_message_; + ::protobuf::MessageOfNews* temp = _impl_.message_of_obj_.news_message_; _impl_.message_of_obj_.news_message_ = nullptr; return temp; } @@ -8537,16 +7979,13 @@ namespace protobuf return nullptr; } } - inline void MessageOfObj::unsafe_arena_set_allocated_news_message(::protobuf::MessageOfNews* value) + inline void MessageOfObj::unsafe_arena_set_allocated_news_message(::protobuf::MessageOfNews* news_message) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. clear_message_of_obj(); - if (value) + if (news_message) { set_has_news_message(); - _impl_.message_of_obj_.news_message_ = value; + _impl_.message_of_obj_.news_message_ = news_message; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf.MessageOfObj.news_message) } @@ -8556,11 +7995,11 @@ namespace protobuf { clear_message_of_obj(); set_has_news_message(); - _impl_.message_of_obj_.news_message_ = CreateMaybeMessage<::protobuf::MessageOfNews>(GetArena()); + _impl_.message_of_obj_.news_message_ = CreateMaybeMessage<::protobuf::MessageOfNews>(GetArenaForAllocation()); } return _impl_.message_of_obj_.news_message_; } - inline ::protobuf::MessageOfNews* MessageOfObj::mutable_news_message() ABSL_ATTRIBUTE_LIFETIME_BOUND + inline ::protobuf::MessageOfNews* MessageOfObj::mutable_news_message() { ::protobuf::MessageOfNews* _msg = _internal_mutable_news_message(); // @@protoc_insertion_point(field_mutable:protobuf.MessageOfObj.news_message) @@ -8582,10 +8021,9 @@ namespace protobuf } inline void MessageOfObj::clear_bombed_bullet_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (message_of_obj_case() == kBombedBulletMessage) { - if (GetArena() == nullptr) + if (GetArenaForAllocation() == nullptr) { delete _impl_.message_of_obj_.bombed_bullet_message_; } @@ -8598,10 +8036,10 @@ namespace protobuf if (message_of_obj_case() == kBombedBulletMessage) { clear_has_message_of_obj(); - auto* temp = _impl_.message_of_obj_.bombed_bullet_message_; - if (GetArena() != nullptr) + ::protobuf::MessageOfBombedBullet* temp = _impl_.message_of_obj_.bombed_bullet_message_; + if (GetArenaForAllocation() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } _impl_.message_of_obj_.bombed_bullet_message_ = nullptr; return temp; @@ -8615,7 +8053,7 @@ namespace protobuf { return message_of_obj_case() == kBombedBulletMessage ? *_impl_.message_of_obj_.bombed_bullet_message_ : reinterpret_cast<::protobuf::MessageOfBombedBullet&>(::protobuf::_MessageOfBombedBullet_default_instance_); } - inline const ::protobuf::MessageOfBombedBullet& MessageOfObj::bombed_bullet_message() const ABSL_ATTRIBUTE_LIFETIME_BOUND + inline const ::protobuf::MessageOfBombedBullet& MessageOfObj::bombed_bullet_message() const { // @@protoc_insertion_point(field_get:protobuf.MessageOfObj.bombed_bullet_message) return _internal_bombed_bullet_message(); @@ -8626,7 +8064,7 @@ namespace protobuf if (message_of_obj_case() == kBombedBulletMessage) { clear_has_message_of_obj(); - auto* temp = _impl_.message_of_obj_.bombed_bullet_message_; + ::protobuf::MessageOfBombedBullet* temp = _impl_.message_of_obj_.bombed_bullet_message_; _impl_.message_of_obj_.bombed_bullet_message_ = nullptr; return temp; } @@ -8635,16 +8073,13 @@ namespace protobuf return nullptr; } } - inline void MessageOfObj::unsafe_arena_set_allocated_bombed_bullet_message(::protobuf::MessageOfBombedBullet* value) + inline void MessageOfObj::unsafe_arena_set_allocated_bombed_bullet_message(::protobuf::MessageOfBombedBullet* bombed_bullet_message) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. clear_message_of_obj(); - if (value) + if (bombed_bullet_message) { set_has_bombed_bullet_message(); - _impl_.message_of_obj_.bombed_bullet_message_ = value; + _impl_.message_of_obj_.bombed_bullet_message_ = bombed_bullet_message; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf.MessageOfObj.bombed_bullet_message) } @@ -8654,11 +8089,11 @@ namespace protobuf { clear_message_of_obj(); set_has_bombed_bullet_message(); - _impl_.message_of_obj_.bombed_bullet_message_ = CreateMaybeMessage<::protobuf::MessageOfBombedBullet>(GetArena()); + _impl_.message_of_obj_.bombed_bullet_message_ = CreateMaybeMessage<::protobuf::MessageOfBombedBullet>(GetArenaForAllocation()); } return _impl_.message_of_obj_.bombed_bullet_message_; } - inline ::protobuf::MessageOfBombedBullet* MessageOfObj::mutable_bombed_bullet_message() ABSL_ATTRIBUTE_LIFETIME_BOUND + inline ::protobuf::MessageOfBombedBullet* MessageOfObj::mutable_bombed_bullet_message() { ::protobuf::MessageOfBombedBullet* _msg = _internal_mutable_bombed_bullet_message(); // @@protoc_insertion_point(field_mutable:protobuf.MessageOfObj.bombed_bullet_message) @@ -8680,10 +8115,9 @@ namespace protobuf } inline void MessageOfObj::clear_team_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (message_of_obj_case() == kTeamMessage) { - if (GetArena() == nullptr) + if (GetArenaForAllocation() == nullptr) { delete _impl_.message_of_obj_.team_message_; } @@ -8696,10 +8130,10 @@ namespace protobuf if (message_of_obj_case() == kTeamMessage) { clear_has_message_of_obj(); - auto* temp = _impl_.message_of_obj_.team_message_; - if (GetArena() != nullptr) + ::protobuf::MessageOfTeam* temp = _impl_.message_of_obj_.team_message_; + if (GetArenaForAllocation() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } _impl_.message_of_obj_.team_message_ = nullptr; return temp; @@ -8713,7 +8147,7 @@ namespace protobuf { return message_of_obj_case() == kTeamMessage ? *_impl_.message_of_obj_.team_message_ : reinterpret_cast<::protobuf::MessageOfTeam&>(::protobuf::_MessageOfTeam_default_instance_); } - inline const ::protobuf::MessageOfTeam& MessageOfObj::team_message() const ABSL_ATTRIBUTE_LIFETIME_BOUND + inline const ::protobuf::MessageOfTeam& MessageOfObj::team_message() const { // @@protoc_insertion_point(field_get:protobuf.MessageOfObj.team_message) return _internal_team_message(); @@ -8724,7 +8158,7 @@ namespace protobuf if (message_of_obj_case() == kTeamMessage) { clear_has_message_of_obj(); - auto* temp = _impl_.message_of_obj_.team_message_; + ::protobuf::MessageOfTeam* temp = _impl_.message_of_obj_.team_message_; _impl_.message_of_obj_.team_message_ = nullptr; return temp; } @@ -8733,16 +8167,13 @@ namespace protobuf return nullptr; } } - inline void MessageOfObj::unsafe_arena_set_allocated_team_message(::protobuf::MessageOfTeam* value) + inline void MessageOfObj::unsafe_arena_set_allocated_team_message(::protobuf::MessageOfTeam* team_message) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. clear_message_of_obj(); - if (value) + if (team_message) { set_has_team_message(); - _impl_.message_of_obj_.team_message_ = value; + _impl_.message_of_obj_.team_message_ = team_message; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf.MessageOfObj.team_message) } @@ -8752,11 +8183,11 @@ namespace protobuf { clear_message_of_obj(); set_has_team_message(); - _impl_.message_of_obj_.team_message_ = CreateMaybeMessage<::protobuf::MessageOfTeam>(GetArena()); + _impl_.message_of_obj_.team_message_ = CreateMaybeMessage<::protobuf::MessageOfTeam>(GetArenaForAllocation()); } return _impl_.message_of_obj_.team_message_; } - inline ::protobuf::MessageOfTeam* MessageOfObj::mutable_team_message() ABSL_ATTRIBUTE_LIFETIME_BOUND + inline ::protobuf::MessageOfTeam* MessageOfObj::mutable_team_message() { ::protobuf::MessageOfTeam* _msg = _internal_mutable_team_message(); // @@protoc_insertion_point(field_mutable:protobuf.MessageOfObj.team_message) @@ -8782,7 +8213,6 @@ namespace protobuf // int32 game_time = 1; inline void MessageOfAll::clear_game_time() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.game_time_ = 0; } inline ::int32_t MessageOfAll::game_time() const @@ -8797,12 +8227,10 @@ namespace protobuf } inline ::int32_t MessageOfAll::_internal_game_time() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.game_time_; } inline void MessageOfAll::_internal_set_game_time(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.game_time_ = value; } @@ -8810,7 +8238,6 @@ namespace protobuf // int32 red_team_score = 2; inline void MessageOfAll::clear_red_team_score() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.red_team_score_ = 0; } inline ::int32_t MessageOfAll::red_team_score() const @@ -8825,12 +8252,10 @@ namespace protobuf } inline ::int32_t MessageOfAll::_internal_red_team_score() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.red_team_score_; } inline void MessageOfAll::_internal_set_red_team_score(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.red_team_score_ = value; } @@ -8838,7 +8263,6 @@ namespace protobuf // int32 blue_team_score = 3; inline void MessageOfAll::clear_blue_team_score() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.blue_team_score_ = 0; } inline ::int32_t MessageOfAll::blue_team_score() const @@ -8853,12 +8277,10 @@ namespace protobuf } inline ::int32_t MessageOfAll::_internal_blue_team_score() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.blue_team_score_; } inline void MessageOfAll::_internal_set_blue_team_score(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.blue_team_score_ = value; } @@ -8870,7 +8292,7 @@ namespace protobuf // repeated .protobuf.MessageOfObj obj_message = 1; inline int MessageToClient::_internal_obj_message_size() const { - return _internal_obj_message().size(); + return _impl_.obj_message_.size(); } inline int MessageToClient::obj_message_size() const { @@ -8878,58 +8300,58 @@ namespace protobuf } inline void MessageToClient::clear_obj_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.obj_message_.Clear(); + _internal_mutable_obj_message()->Clear(); } inline ::protobuf::MessageOfObj* MessageToClient::mutable_obj_message(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:protobuf.MessageToClient.obj_message) return _internal_mutable_obj_message()->Mutable(index); } - inline ::google::protobuf::RepeatedPtrField<::protobuf::MessageOfObj>* MessageToClient::mutable_obj_message() - ABSL_ATTRIBUTE_LIFETIME_BOUND + inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::protobuf::MessageOfObj>* + MessageToClient::mutable_obj_message() { // @@protoc_insertion_point(field_mutable_list:protobuf.MessageToClient.obj_message) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); return _internal_mutable_obj_message(); } + inline const ::protobuf::MessageOfObj& MessageToClient::_internal_obj_message(int index) const + { + return _internal_obj_message().Get(index); + } inline const ::protobuf::MessageOfObj& MessageToClient::obj_message(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:protobuf.MessageToClient.obj_message) - return _internal_obj_message().Get(index); + return _internal_obj_message(index); + } + inline ::protobuf::MessageOfObj* MessageToClient::_internal_add_obj_message() + { + return _internal_mutable_obj_message()->Add(); } - inline ::protobuf::MessageOfObj* MessageToClient::add_obj_message() ABSL_ATTRIBUTE_LIFETIME_BOUND + inline ::protobuf::MessageOfObj* MessageToClient::add_obj_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::protobuf::MessageOfObj* _add = _internal_mutable_obj_message()->Add(); + ::protobuf::MessageOfObj* _add = _internal_add_obj_message(); // @@protoc_insertion_point(field_add:protobuf.MessageToClient.obj_message) return _add; } - inline const ::google::protobuf::RepeatedPtrField<::protobuf::MessageOfObj>& MessageToClient::obj_message() const - ABSL_ATTRIBUTE_LIFETIME_BOUND + inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::protobuf::MessageOfObj>& + MessageToClient::obj_message() const { // @@protoc_insertion_point(field_list:protobuf.MessageToClient.obj_message) return _internal_obj_message(); } - inline const ::google::protobuf::RepeatedPtrField<::protobuf::MessageOfObj>& + inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::protobuf::MessageOfObj>& MessageToClient::_internal_obj_message() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.obj_message_; } - inline ::google::protobuf::RepeatedPtrField<::protobuf::MessageOfObj>* + inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::protobuf::MessageOfObj>* MessageToClient::_internal_mutable_obj_message() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return &_impl_.obj_message_; } // .protobuf.GameState game_state = 2; inline void MessageToClient::clear_game_state() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.game_state_ = 0; } inline ::protobuf::GameState MessageToClient::game_state() const @@ -8944,12 +8366,10 @@ namespace protobuf } inline ::protobuf::GameState MessageToClient::_internal_game_state() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return static_cast<::protobuf::GameState>(_impl_.game_state_); } inline void MessageToClient::_internal_set_game_state(::protobuf::GameState value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.game_state_ = value; } @@ -8963,31 +8383,30 @@ namespace protobuf } inline void MessageToClient::clear_all_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (_impl_.all_message_ != nullptr) _impl_.all_message_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::protobuf::MessageOfAll& MessageToClient::_internal_all_message() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); const ::protobuf::MessageOfAll* p = _impl_.all_message_; return p != nullptr ? *p : reinterpret_cast(::protobuf::_MessageOfAll_default_instance_); } - inline const ::protobuf::MessageOfAll& MessageToClient::all_message() const ABSL_ATTRIBUTE_LIFETIME_BOUND + inline const ::protobuf::MessageOfAll& MessageToClient::all_message() const { // @@protoc_insertion_point(field_get:protobuf.MessageToClient.all_message) return _internal_all_message(); } - inline void MessageToClient::unsafe_arena_set_allocated_all_message(::protobuf::MessageOfAll* value) + inline void MessageToClient::unsafe_arena_set_allocated_all_message( + ::protobuf::MessageOfAll* all_message + ) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) + if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.all_message_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.all_message_); } - _impl_.all_message_ = reinterpret_cast<::protobuf::MessageOfAll*>(value); - if (value != nullptr) + _impl_.all_message_ = all_message; + if (all_message) { _impl_._has_bits_[0] |= 0x00000001u; } @@ -8999,31 +8418,27 @@ namespace protobuf } inline ::protobuf::MessageOfAll* MessageToClient::release_all_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] &= ~0x00000001u; - ::protobuf::MessageOfAll* released = _impl_.all_message_; + ::protobuf::MessageOfAll* temp = _impl_.all_message_; _impl_.all_message_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } #else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) + if (GetArenaForAllocation() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; + return temp; } inline ::protobuf::MessageOfAll* MessageToClient::unsafe_arena_release_all_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:protobuf.MessageToClient.all_message) - _impl_._has_bits_[0] &= ~0x00000001u; ::protobuf::MessageOfAll* temp = _impl_.all_message_; _impl_.all_message_ = nullptr; @@ -9031,36 +8446,36 @@ namespace protobuf } inline ::protobuf::MessageOfAll* MessageToClient::_internal_mutable_all_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_._has_bits_[0] |= 0x00000001u; if (_impl_.all_message_ == nullptr) { - auto* p = CreateMaybeMessage<::protobuf::MessageOfAll>(GetArena()); - _impl_.all_message_ = reinterpret_cast<::protobuf::MessageOfAll*>(p); + auto* p = CreateMaybeMessage<::protobuf::MessageOfAll>(GetArenaForAllocation()); + _impl_.all_message_ = p; } return _impl_.all_message_; } - inline ::protobuf::MessageOfAll* MessageToClient::mutable_all_message() ABSL_ATTRIBUTE_LIFETIME_BOUND + inline ::protobuf::MessageOfAll* MessageToClient::mutable_all_message() { ::protobuf::MessageOfAll* _msg = _internal_mutable_all_message(); // @@protoc_insertion_point(field_mutable:protobuf.MessageToClient.all_message) return _msg; } - inline void MessageToClient::set_allocated_all_message(::protobuf::MessageOfAll* value) + inline void MessageToClient::set_allocated_all_message(::protobuf::MessageOfAll* all_message) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::protobuf::MessageOfAll*>(_impl_.all_message_); + delete _impl_.all_message_; } - - if (value != nullptr) + if (all_message) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::protobuf::MessageOfAll*>(value)->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(all_message); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + all_message = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, all_message, submessage_arena + ); } _impl_._has_bits_[0] |= 0x00000001u; } @@ -9068,8 +8483,7 @@ namespace protobuf { _impl_._has_bits_[0] &= ~0x00000001u; } - - _impl_.all_message_ = reinterpret_cast<::protobuf::MessageOfAll*>(value); + _impl_.all_message_ = all_message; // @@protoc_insertion_point(field_set_allocated:protobuf.MessageToClient.all_message) } @@ -9080,7 +8494,6 @@ namespace protobuf // int64 actual_speed = 1; inline void MoveRes::clear_actual_speed() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.actual_speed_ = ::int64_t{0}; } inline ::int64_t MoveRes::actual_speed() const @@ -9095,12 +8508,10 @@ namespace protobuf } inline ::int64_t MoveRes::_internal_actual_speed() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.actual_speed_; } inline void MoveRes::_internal_set_actual_speed(::int64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.actual_speed_ = value; } @@ -9108,7 +8519,6 @@ namespace protobuf // double actual_angle = 2; inline void MoveRes::clear_actual_angle() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.actual_angle_ = 0; } inline double MoveRes::actual_angle() const @@ -9123,12 +8533,10 @@ namespace protobuf } inline double MoveRes::_internal_actual_angle() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.actual_angle_; } inline void MoveRes::_internal_set_actual_angle(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.actual_angle_ = value; } @@ -9136,7 +8544,6 @@ namespace protobuf // bool act_success = 3; inline void MoveRes::clear_act_success() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.act_success_ = false; } inline bool MoveRes::act_success() const @@ -9151,12 +8558,10 @@ namespace protobuf } inline bool MoveRes::_internal_act_success() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.act_success_; } inline void MoveRes::_internal_set_act_success(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.act_success_ = value; } @@ -9168,7 +8573,6 @@ namespace protobuf // bool act_success = 1; inline void BoolRes::clear_act_success() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.act_success_ = false; } inline bool BoolRes::act_success() const @@ -9183,12 +8587,10 @@ namespace protobuf } inline bool BoolRes::_internal_act_success() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.act_success_; } inline void BoolRes::_internal_set_act_success(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.act_success_ = value; } @@ -9200,7 +8602,7 @@ namespace protobuf // repeated .protobuf.MessageOfShip ship_info = 1; inline int ShipInfoRes::_internal_ship_info_size() const { - return _internal_ship_info().size(); + return _impl_.ship_info_.size(); } inline int ShipInfoRes::ship_info_size() const { @@ -9208,51 +8610,52 @@ namespace protobuf } inline void ShipInfoRes::clear_ship_info() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.ship_info_.Clear(); + _internal_mutable_ship_info()->Clear(); } inline ::protobuf::MessageOfShip* ShipInfoRes::mutable_ship_info(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:protobuf.ShipInfoRes.ship_info) return _internal_mutable_ship_info()->Mutable(index); } - inline ::google::protobuf::RepeatedPtrField<::protobuf::MessageOfShip>* ShipInfoRes::mutable_ship_info() - ABSL_ATTRIBUTE_LIFETIME_BOUND + inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::protobuf::MessageOfShip>* + ShipInfoRes::mutable_ship_info() { // @@protoc_insertion_point(field_mutable_list:protobuf.ShipInfoRes.ship_info) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); return _internal_mutable_ship_info(); } + inline const ::protobuf::MessageOfShip& ShipInfoRes::_internal_ship_info(int index) const + { + return _internal_ship_info().Get(index); + } inline const ::protobuf::MessageOfShip& ShipInfoRes::ship_info(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:protobuf.ShipInfoRes.ship_info) - return _internal_ship_info().Get(index); + return _internal_ship_info(index); } - inline ::protobuf::MessageOfShip* ShipInfoRes::add_ship_info() ABSL_ATTRIBUTE_LIFETIME_BOUND + inline ::protobuf::MessageOfShip* ShipInfoRes::_internal_add_ship_info() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::protobuf::MessageOfShip* _add = _internal_mutable_ship_info()->Add(); + return _internal_mutable_ship_info()->Add(); + } + inline ::protobuf::MessageOfShip* ShipInfoRes::add_ship_info() + { + ::protobuf::MessageOfShip* _add = _internal_add_ship_info(); // @@protoc_insertion_point(field_add:protobuf.ShipInfoRes.ship_info) return _add; } - inline const ::google::protobuf::RepeatedPtrField<::protobuf::MessageOfShip>& ShipInfoRes::ship_info() const - ABSL_ATTRIBUTE_LIFETIME_BOUND + inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::protobuf::MessageOfShip>& + ShipInfoRes::ship_info() const { // @@protoc_insertion_point(field_list:protobuf.ShipInfoRes.ship_info) return _internal_ship_info(); } - inline const ::google::protobuf::RepeatedPtrField<::protobuf::MessageOfShip>& + inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::protobuf::MessageOfShip>& ShipInfoRes::_internal_ship_info() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.ship_info_; } - inline ::google::protobuf::RepeatedPtrField<::protobuf::MessageOfShip>* + inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::protobuf::MessageOfShip>* ShipInfoRes::_internal_mutable_ship_info() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return &_impl_.ship_info_; } @@ -9263,7 +8666,6 @@ namespace protobuf // int64 economy = 1; inline void EcoRes::clear_economy() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.economy_ = ::int64_t{0}; } inline ::int64_t EcoRes::economy() const @@ -9278,12 +8680,10 @@ namespace protobuf } inline ::int64_t EcoRes::_internal_economy() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.economy_; } inline void EcoRes::_internal_set_economy(::int64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.economy_ = value; } @@ -9303,7 +8703,6 @@ namespace protobuf } inline void MessageOfNews::clear_text_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (news_case() == kTextMessage) { _impl_.news_.text_message_.Destroy(); @@ -9311,7 +8710,6 @@ namespace protobuf } } inline const std::string& MessageOfNews::text_message() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:protobuf.MessageOfNews.text_message) return _internal_text_message(); @@ -9319,7 +8717,6 @@ namespace protobuf template inline PROTOBUF_ALWAYS_INLINE void MessageOfNews::set_text_message(Arg_&& arg, Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (news_case() != kTextMessage) { clear_news(); @@ -9327,10 +8724,10 @@ namespace protobuf set_has_text_message(); _impl_.news_.text_message_.InitDefault(); } - _impl_.news_.text_message_.Set(static_cast(arg), args..., GetArena()); + _impl_.news_.text_message_.Set(static_cast(arg), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:protobuf.MessageOfNews.text_message) } - inline std::string* MessageOfNews::mutable_text_message() ABSL_ATTRIBUTE_LIFETIME_BOUND + inline std::string* MessageOfNews::mutable_text_message() { std::string* _s = _internal_mutable_text_message(); // @@protoc_insertion_point(field_mutable:protobuf.MessageOfNews.text_message) @@ -9338,16 +8735,14 @@ namespace protobuf } inline const std::string& MessageOfNews::_internal_text_message() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); if (news_case() != kTextMessage) { - return ::google::protobuf::internal::GetEmptyStringAlreadyInited(); + return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); } return _impl_.news_.text_message_.Get(); } inline void MessageOfNews::_internal_set_text_message(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (news_case() != kTextMessage) { clear_news(); @@ -9355,11 +8750,11 @@ namespace protobuf set_has_text_message(); _impl_.news_.text_message_.InitDefault(); } - _impl_.news_.text_message_.Set(value, GetArena()); + + _impl_.news_.text_message_.Set(value, GetArenaForAllocation()); } inline std::string* MessageOfNews::_internal_mutable_text_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (news_case() != kTextMessage) { clear_news(); @@ -9367,11 +8762,10 @@ namespace protobuf set_has_text_message(); _impl_.news_.text_message_.InitDefault(); } - return _impl_.news_.text_message_.Mutable(GetArena()); + return _impl_.news_.text_message_.Mutable(GetArenaForAllocation()); } inline std::string* MessageOfNews::release_text_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:protobuf.MessageOfNews.text_message) if (news_case() != kTextMessage) { @@ -9382,7 +8776,6 @@ namespace protobuf } inline void MessageOfNews::set_allocated_text_message(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (has_news()) { clear_news(); @@ -9390,7 +8783,7 @@ namespace protobuf if (value != nullptr) { set_has_text_message(); - _impl_.news_.text_message_.InitAllocated(value, GetArena()); + _impl_.news_.text_message_.InitAllocated(value, GetArenaForAllocation()); } // @@protoc_insertion_point(field_set_allocated:protobuf.MessageOfNews.text_message) } @@ -9406,7 +8799,6 @@ namespace protobuf } inline void MessageOfNews::clear_binary_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (news_case() == kBinaryMessage) { _impl_.news_.binary_message_.Destroy(); @@ -9414,7 +8806,6 @@ namespace protobuf } } inline const std::string& MessageOfNews::binary_message() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:protobuf.MessageOfNews.binary_message) return _internal_binary_message(); @@ -9422,7 +8813,6 @@ namespace protobuf template inline PROTOBUF_ALWAYS_INLINE void MessageOfNews::set_binary_message(Arg_&& arg, Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (news_case() != kBinaryMessage) { clear_news(); @@ -9430,10 +8820,10 @@ namespace protobuf set_has_binary_message(); _impl_.news_.binary_message_.InitDefault(); } - _impl_.news_.binary_message_.SetBytes(static_cast(arg), args..., GetArena()); + _impl_.news_.binary_message_.SetBytes(static_cast(arg), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:protobuf.MessageOfNews.binary_message) } - inline std::string* MessageOfNews::mutable_binary_message() ABSL_ATTRIBUTE_LIFETIME_BOUND + inline std::string* MessageOfNews::mutable_binary_message() { std::string* _s = _internal_mutable_binary_message(); // @@protoc_insertion_point(field_mutable:protobuf.MessageOfNews.binary_message) @@ -9441,16 +8831,14 @@ namespace protobuf } inline const std::string& MessageOfNews::_internal_binary_message() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); if (news_case() != kBinaryMessage) { - return ::google::protobuf::internal::GetEmptyStringAlreadyInited(); + return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); } return _impl_.news_.binary_message_.Get(); } inline void MessageOfNews::_internal_set_binary_message(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (news_case() != kBinaryMessage) { clear_news(); @@ -9458,11 +8846,11 @@ namespace protobuf set_has_binary_message(); _impl_.news_.binary_message_.InitDefault(); } - _impl_.news_.binary_message_.Set(value, GetArena()); + + _impl_.news_.binary_message_.Set(value, GetArenaForAllocation()); } inline std::string* MessageOfNews::_internal_mutable_binary_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (news_case() != kBinaryMessage) { clear_news(); @@ -9470,11 +8858,10 @@ namespace protobuf set_has_binary_message(); _impl_.news_.binary_message_.InitDefault(); } - return _impl_.news_.binary_message_.Mutable(GetArena()); + return _impl_.news_.binary_message_.Mutable(GetArenaForAllocation()); } inline std::string* MessageOfNews::release_binary_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:protobuf.MessageOfNews.binary_message) if (news_case() != kBinaryMessage) { @@ -9485,7 +8872,6 @@ namespace protobuf } inline void MessageOfNews::set_allocated_binary_message(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (has_news()) { clear_news(); @@ -9493,7 +8879,7 @@ namespace protobuf if (value != nullptr) { set_has_binary_message(); - _impl_.news_.binary_message_.InitAllocated(value, GetArena()); + _impl_.news_.binary_message_.InitAllocated(value, GetArenaForAllocation()); } // @@protoc_insertion_point(field_set_allocated:protobuf.MessageOfNews.binary_message) } @@ -9501,7 +8887,6 @@ namespace protobuf // int64 from_id = 2; inline void MessageOfNews::clear_from_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.from_id_ = ::int64_t{0}; } inline ::int64_t MessageOfNews::from_id() const @@ -9516,12 +8901,10 @@ namespace protobuf } inline ::int64_t MessageOfNews::_internal_from_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.from_id_; } inline void MessageOfNews::_internal_set_from_id(::int64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.from_id_ = value; } @@ -9529,7 +8912,6 @@ namespace protobuf // int64 to_id = 3; inline void MessageOfNews::clear_to_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.to_id_ = ::int64_t{0}; } inline ::int64_t MessageOfNews::to_id() const @@ -9544,12 +8926,10 @@ namespace protobuf } inline ::int64_t MessageOfNews::_internal_to_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.to_id_; } inline void MessageOfNews::_internal_set_to_id(::int64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.to_id_ = value; } diff --git a/CAPI/cpp/proto/Message2Server.pb.cc b/CAPI/cpp/proto/Message2Server.pb.cc old mode 100755 new mode 100644 index 7b320cb4..dd2f9d7d --- a/CAPI/cpp/proto/Message2Server.pb.cc +++ b/CAPI/cpp/proto/Message2Server.pb.cc @@ -11,104 +11,90 @@ #include "google/protobuf/generated_message_reflection.h" #include "google/protobuf/reflection_ops.h" #include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" // @@protoc_insertion_point(includes) // Must be included last. #include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = ::PROTOBUF_NAMESPACE_ID::internal; namespace protobuf { - - inline constexpr SendMsg::Impl_::Impl_( - ::_pbi::ConstantInitialized - ) noexcept - : - player_id_{::int64_t{0}}, - to_player_id_{::int64_t{0}}, - team_id_{::int64_t{0}}, - message_{}, - _cached_size_{0}, - _oneof_case_{} - { - } - template - PROTOBUF_CONSTEXPR SendMsg::SendMsg(::_pbi::ConstantInitialized) : - _impl_(::_pbi::ConstantInitialized()) + PROTOBUF_CONSTEXPR NullRequest::NullRequest( + ::_pbi::ConstantInitialized + ) { } - struct SendMsgDefaultTypeInternal + struct NullRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SendMsgDefaultTypeInternal() : + PROTOBUF_CONSTEXPR NullRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) { } - ~SendMsgDefaultTypeInternal() + ~NullRequestDefaultTypeInternal() { } union { - SendMsg _instance; + NullRequest _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SendMsgDefaultTypeInternal _SendMsg_default_instance_; - - inline constexpr RecoverMsg::Impl_::Impl_( + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 NullRequestDefaultTypeInternal _NullRequest_default_instance_; + template + PROTOBUF_CONSTEXPR IDMsg::IDMsg( ::_pbi::ConstantInitialized - ) noexcept - : - player_id_{::int64_t{0}}, - recover_{::int64_t{0}}, - team_id_{::int64_t{0}}, - _cached_size_{0} - { - } + ) : + _impl_{ + /*decltype(_impl_.player_id_)*/ ::int64_t{0} - template - PROTOBUF_CONSTEXPR RecoverMsg::RecoverMsg(::_pbi::ConstantInitialized) : - _impl_(::_pbi::ConstantInitialized()) + , + /*decltype(_impl_.team_id_)*/ ::int64_t{0} + + , + /*decltype(_impl_._cached_size_)*/ {}} { } - struct RecoverMsgDefaultTypeInternal + struct IDMsgDefaultTypeInternal { - PROTOBUF_CONSTEXPR RecoverMsgDefaultTypeInternal() : + PROTOBUF_CONSTEXPR IDMsgDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) { } - ~RecoverMsgDefaultTypeInternal() + ~IDMsgDefaultTypeInternal() { } union { - RecoverMsg _instance; + IDMsg _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RecoverMsgDefaultTypeInternal _RecoverMsg_default_instance_; - - inline constexpr PlayerMsg::Impl_::Impl_( + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IDMsgDefaultTypeInternal _IDMsg_default_instance_; + template + PROTOBUF_CONSTEXPR PlayerMsg::PlayerMsg( ::_pbi::ConstantInitialized - ) noexcept - : - player_id_{::int64_t{0}}, - team_id_{::int64_t{0}}, - ship_type_{static_cast<::protobuf::ShipType>(0)}, - x_{0}, - y_{0}, - _cached_size_{0} - { - } + ) : + _impl_{ + /*decltype(_impl_.player_id_)*/ ::int64_t{0} - template - PROTOBUF_CONSTEXPR PlayerMsg::PlayerMsg(::_pbi::ConstantInitialized) : - _impl_(::_pbi::ConstantInitialized()) + , + /*decltype(_impl_.team_id_)*/ ::int64_t{0} + + , + /*decltype(_impl_.ship_type_)*/ 0 + + , + /*decltype(_impl_.x_)*/ 0 + + , + /*decltype(_impl_.y_)*/ 0 + + , + /*decltype(_impl_._cached_size_)*/ {}} { } struct PlayerMsgDefaultTypeInternal @@ -129,42 +115,23 @@ namespace protobuf PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PlayerMsgDefaultTypeInternal _PlayerMsg_default_instance_; template - PROTOBUF_CONSTEXPR NullRequest::NullRequest(::_pbi::ConstantInitialized) - { - } - struct NullRequestDefaultTypeInternal - { - PROTOBUF_CONSTEXPR NullRequestDefaultTypeInternal() : - _instance(::_pbi::ConstantInitialized{}) - { - } - ~NullRequestDefaultTypeInternal() - { - } - union - { - NullRequest _instance; - }; - }; + PROTOBUF_CONSTEXPR MoveMsg::MoveMsg( + ::_pbi::ConstantInitialized + ) : + _impl_{ + /*decltype(_impl_.player_id_)*/ ::int64_t{0} - PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 NullRequestDefaultTypeInternal _NullRequest_default_instance_; + , + /*decltype(_impl_.angle_)*/ 0 - inline constexpr MoveMsg::Impl_::Impl_( - ::_pbi::ConstantInitialized - ) noexcept - : - player_id_{::int64_t{0}}, - angle_{0}, - time_in_milliseconds_{::int64_t{0}}, - team_id_{::int64_t{0}}, - _cached_size_{0} - { - } + , + /*decltype(_impl_.time_in_milliseconds_)*/ ::int64_t{0} - template - PROTOBUF_CONSTEXPR MoveMsg::MoveMsg(::_pbi::ConstantInitialized) : - _impl_(::_pbi::ConstantInitialized()) + , + /*decltype(_impl_.team_id_)*/ ::int64_t{0} + + , + /*decltype(_impl_._cached_size_)*/ {}} { } struct MoveMsgDefaultTypeInternal @@ -184,88 +151,91 @@ namespace protobuf PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MoveMsgDefaultTypeInternal _MoveMsg_default_instance_; - - inline constexpr InstallMsg::Impl_::Impl_( + template + PROTOBUF_CONSTEXPR SendMsg::SendMsg( ::_pbi::ConstantInitialized - ) noexcept - : - player_id_{::int64_t{0}}, - team_id_{::int64_t{0}}, - module_type_{static_cast<::protobuf::ModuleType>(0)}, - _cached_size_{0} - { - } + ) : + _impl_{ + /*decltype(_impl_.player_id_)*/ ::int64_t{0} - template - PROTOBUF_CONSTEXPR InstallMsg::InstallMsg(::_pbi::ConstantInitialized) : - _impl_(::_pbi::ConstantInitialized()) + , + /*decltype(_impl_.to_player_id_)*/ ::int64_t{0} + + , + /*decltype(_impl_.team_id_)*/ ::int64_t{0} + + , + /*decltype(_impl_.message_)*/ {}, + /*decltype(_impl_._cached_size_)*/ {}, + /*decltype(_impl_._oneof_case_)*/ {}} { } - struct InstallMsgDefaultTypeInternal + struct SendMsgDefaultTypeInternal { - PROTOBUF_CONSTEXPR InstallMsgDefaultTypeInternal() : + PROTOBUF_CONSTEXPR SendMsgDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) { } - ~InstallMsgDefaultTypeInternal() + ~SendMsgDefaultTypeInternal() { } union { - InstallMsg _instance; + SendMsg _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 InstallMsgDefaultTypeInternal _InstallMsg_default_instance_; - - inline constexpr IDMsg::Impl_::Impl_( + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SendMsgDefaultTypeInternal _SendMsg_default_instance_; + template + PROTOBUF_CONSTEXPR AttackMsg::AttackMsg( ::_pbi::ConstantInitialized - ) noexcept - : - player_id_{::int64_t{0}}, - team_id_{::int64_t{0}}, - _cached_size_{0} - { - } + ) : + _impl_{ + /*decltype(_impl_.player_id_)*/ ::int64_t{0} - template - PROTOBUF_CONSTEXPR IDMsg::IDMsg(::_pbi::ConstantInitialized) : - _impl_(::_pbi::ConstantInitialized()) + , + /*decltype(_impl_.angle_)*/ 0 + + , + /*decltype(_impl_.team_id_)*/ ::int64_t{0} + + , + /*decltype(_impl_._cached_size_)*/ {}} { } - struct IDMsgDefaultTypeInternal + struct AttackMsgDefaultTypeInternal { - PROTOBUF_CONSTEXPR IDMsgDefaultTypeInternal() : + PROTOBUF_CONSTEXPR AttackMsgDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) { } - ~IDMsgDefaultTypeInternal() + ~AttackMsgDefaultTypeInternal() { } union { - IDMsg _instance; + AttackMsg _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IDMsgDefaultTypeInternal _IDMsg_default_instance_; - - inline constexpr ConstructMsg::Impl_::Impl_( + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AttackMsgDefaultTypeInternal _AttackMsg_default_instance_; + template + PROTOBUF_CONSTEXPR ConstructMsg::ConstructMsg( ::_pbi::ConstantInitialized - ) noexcept - : - player_id_{::int64_t{0}}, - team_id_{::int64_t{0}}, - construction_type_{static_cast<::protobuf::ConstructionType>(0)}, - _cached_size_{0} - { - } + ) : + _impl_{ + /*decltype(_impl_.player_id_)*/ ::int64_t{0} - template - PROTOBUF_CONSTEXPR ConstructMsg::ConstructMsg(::_pbi::ConstantInitialized) : - _impl_(::_pbi::ConstantInitialized()) + , + /*decltype(_impl_.team_id_)*/ ::int64_t{0} + + , + /*decltype(_impl_.construction_type_)*/ 0 + + , + /*decltype(_impl_._cached_size_)*/ {}} { } struct ConstructMsgDefaultTypeInternal @@ -285,75 +255,111 @@ namespace protobuf PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ConstructMsgDefaultTypeInternal _ConstructMsg_default_instance_; - - inline constexpr BuildShipMsg::Impl_::Impl_( + template + PROTOBUF_CONSTEXPR RecoverMsg::RecoverMsg( ::_pbi::ConstantInitialized - ) noexcept - : - x_{0}, - y_{0}, - team_id_{::int64_t{0}}, - ship_type_{static_cast<::protobuf::ShipType>(0)}, - _cached_size_{0} - { - } + ) : + _impl_{ + /*decltype(_impl_.player_id_)*/ ::int64_t{0} - template - PROTOBUF_CONSTEXPR BuildShipMsg::BuildShipMsg(::_pbi::ConstantInitialized) : - _impl_(::_pbi::ConstantInitialized()) + , + /*decltype(_impl_.recover_)*/ ::int64_t{0} + + , + /*decltype(_impl_.team_id_)*/ ::int64_t{0} + + , + /*decltype(_impl_._cached_size_)*/ {}} { } - struct BuildShipMsgDefaultTypeInternal + struct RecoverMsgDefaultTypeInternal { - PROTOBUF_CONSTEXPR BuildShipMsgDefaultTypeInternal() : + PROTOBUF_CONSTEXPR RecoverMsgDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) { } - ~BuildShipMsgDefaultTypeInternal() + ~RecoverMsgDefaultTypeInternal() { } union { - BuildShipMsg _instance; + RecoverMsg _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BuildShipMsgDefaultTypeInternal _BuildShipMsg_default_instance_; - - inline constexpr AttackMsg::Impl_::Impl_( + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RecoverMsgDefaultTypeInternal _RecoverMsg_default_instance_; + template + PROTOBUF_CONSTEXPR InstallMsg::InstallMsg( ::_pbi::ConstantInitialized - ) noexcept - : - player_id_{::int64_t{0}}, - angle_{0}, - team_id_{::int64_t{0}}, - _cached_size_{0} + ) : + _impl_{ + /*decltype(_impl_.player_id_)*/ ::int64_t{0} + + , + /*decltype(_impl_.team_id_)*/ ::int64_t{0} + + , + /*decltype(_impl_.module_type_)*/ 0 + + , + /*decltype(_impl_._cached_size_)*/ {}} { } + struct InstallMsgDefaultTypeInternal + { + PROTOBUF_CONSTEXPR InstallMsgDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + { + } + ~InstallMsgDefaultTypeInternal() + { + } + union + { + InstallMsg _instance; + }; + }; + PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 InstallMsgDefaultTypeInternal _InstallMsg_default_instance_; template - PROTOBUF_CONSTEXPR AttackMsg::AttackMsg(::_pbi::ConstantInitialized) : - _impl_(::_pbi::ConstantInitialized()) + PROTOBUF_CONSTEXPR BuildShipMsg::BuildShipMsg( + ::_pbi::ConstantInitialized + ) : + _impl_{ + /*decltype(_impl_.x_)*/ 0 + + , + /*decltype(_impl_.y_)*/ 0 + + , + /*decltype(_impl_.team_id_)*/ ::int64_t{0} + + , + /*decltype(_impl_.ship_type_)*/ 0 + + , + /*decltype(_impl_._cached_size_)*/ {}} { } - struct AttackMsgDefaultTypeInternal + struct BuildShipMsgDefaultTypeInternal { - PROTOBUF_CONSTEXPR AttackMsgDefaultTypeInternal() : + PROTOBUF_CONSTEXPR BuildShipMsgDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) { } - ~AttackMsgDefaultTypeInternal() + ~BuildShipMsgDefaultTypeInternal() { } union { - AttackMsg _instance; + BuildShipMsg _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AttackMsgDefaultTypeInternal _AttackMsg_default_instance_; + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BuildShipMsgDefaultTypeInternal _BuildShipMsg_default_instance_; } // namespace protobuf static ::_pb::Metadata file_level_metadata_Message2Server_2eproto[10]; static constexpr const ::_pb::EnumDescriptor** @@ -577,27 +583,30 @@ namespace protobuf public: }; - NullRequest::NullRequest(::google::protobuf::Arena* arena) : - ::google::protobuf::internal::ZeroFieldsBase(arena) + NullRequest::NullRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) : + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:protobuf.NullRequest) } - NullRequest::NullRequest( - ::google::protobuf::Arena* arena, - const NullRequest& from - ) : - ::google::protobuf::internal::ZeroFieldsBase(arena) + NullRequest::NullRequest(const NullRequest& from) : + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { NullRequest* const _this = this; (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_ - ); - + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:protobuf.NullRequest) } - ::google::protobuf::Metadata NullRequest::GetMetadata() const + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData NullRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, + }; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* NullRequest::GetClassData() const + { + return &_class_data_; + } + + ::PROTOBUF_NAMESPACE_ID::Metadata NullRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_Message2Server_2eproto_getter, &descriptor_table_Message2Server_2eproto_once, file_level_metadata_Message2Server_2eproto[0] @@ -610,101 +619,130 @@ namespace protobuf public: }; - IDMsg::IDMsg(::google::protobuf::Arena* arena) : - ::google::protobuf::Message(arena) + IDMsg::IDMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena) : + ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:protobuf.IDMsg) } - IDMsg::IDMsg( - ::google::protobuf::Arena* arena, const IDMsg& from - ) : - IDMsg(arena) - { - MergeFrom(from); - } - inline PROTOBUF_NDEBUG_INLINE IDMsg::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena - ) : - _cached_size_{0} + IDMsg::IDMsg(const IDMsg& from) : + ::PROTOBUF_NAMESPACE_ID::Message(), + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>( + from._internal_metadata_ + ); + // @@protoc_insertion_point(copy_constructor:protobuf.IDMsg) } inline void IDMsg::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, player_id_), 0, offsetof(Impl_, team_id_) - offsetof(Impl_, player_id_) + sizeof(Impl_::team_id_)); + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.player_id_){::int64_t{0}} + + , + decltype(_impl_.team_id_){::int64_t{0}} + + , + /*decltype(_impl_._cached_size_)*/ {}}; } + IDMsg::~IDMsg() { // @@protoc_insertion_point(destructor:protobuf.IDMsg) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) + { + (void)arena; + return; + } SharedDtor(); } + inline void IDMsg::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + ABSL_DCHECK(GetArenaForAllocation() == nullptr); } - PROTOBUF_NOINLINE void IDMsg::Clear() + void IDMsg::SetCachedSize(int size) const + { + _impl_._cached_size_.Set(size); + } + + void IDMsg::Clear() { // @@protoc_insertion_point(message_clear_start:protobuf.IDMsg) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; ::memset(&_impl_.player_id_, 0, static_cast<::size_t>(reinterpret_cast(&_impl_.team_id_) - reinterpret_cast(&_impl_.player_id_)) + sizeof(_impl_.team_id_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); - } - - const char* IDMsg::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx - ) - { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + const char* IDMsg::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) + { +#define CHK_(x) \ + if (PROTOBUF_PREDICT_FALSE(!(x))) \ + goto failure + while (!ctx->Done(&ptr)) + { + ::uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) + { + // int64 player_id = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) + { + _impl_.player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + // int64 team_id = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) + { + _impl_.team_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) + { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, + ctx + ); + CHK_(ptr != nullptr); + } // while + message_done: return ptr; + failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<1, 2, 0, 0, 2> IDMsg::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, - 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_IDMsg_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, - {{ - // int64 team_id = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(IDMsg, _impl_.team_id_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(IDMsg, _impl_.team_id_)}}, - // int64 player_id = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(IDMsg, _impl_.player_id_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(IDMsg, _impl_.player_id_)}}, - }}, - {{65535, 65535}}, - {{ - // int64 player_id = 1; - {PROTOBUF_FIELD_OFFSET(IDMsg, _impl_.player_id_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt64)}, - // int64 team_id = 2; - {PROTOBUF_FIELD_OFFSET(IDMsg, _impl_.team_id_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt64)}, - }}, - // no aux_entries - {{}}, - }; - ::uint8_t* IDMsg::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream ) const { // @@protoc_insertion_point(serialize_to_array_start:protobuf.IDMsg) @@ -714,27 +752,26 @@ namespace protobuf // int64 player_id = 1; if (this->_internal_player_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64ToArrayWithField<1>( - stream, this->_internal_player_id(), target - ); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray( + 1, this->_internal_player_id(), target + ); } // int64 team_id = 2; if (this->_internal_team_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64ToArrayWithField<2>( - stream, this->_internal_team_id(), target - ); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray( + 2, this->_internal_team_id(), target + ); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream - ); + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream + ); } // @@protoc_insertion_point(serialize_to_array_end:protobuf.IDMsg) return target; @@ -768,16 +805,15 @@ namespace protobuf return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } - const ::google::protobuf::Message::ClassData IDMsg::_class_data_ = { - IDMsg::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor - }; - const ::google::protobuf::Message::ClassData* IDMsg::GetClassData() const + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData IDMsg::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + IDMsg::MergeImpl}; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* IDMsg::GetClassData() const { return &_class_data_; } - void IDMsg::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) + void IDMsg::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); @@ -794,7 +830,7 @@ namespace protobuf { _this->_internal_set_team_id(from._internal_team_id()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void IDMsg::CopyFrom(const IDMsg& from) @@ -806,27 +842,23 @@ namespace protobuf MergeFrom(from); } - PROTOBUF_NOINLINE bool IDMsg::IsInitialized() const + bool IDMsg::IsInitialized() const { return true; } - ::_pbi::CachedSize* IDMsg::AccessCachedSize() const - { - return &_impl_._cached_size_; - } - void IDMsg::InternalSwap(IDMsg* PROTOBUF_RESTRICT other) + void IDMsg::InternalSwap(IDMsg* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::google::protobuf::internal::memswap< + ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(IDMsg, _impl_.team_id_) + sizeof(IDMsg::_impl_.team_id_) - PROTOBUF_FIELD_OFFSET(IDMsg, _impl_.player_id_)>( reinterpret_cast(&_impl_.player_id_), reinterpret_cast(&other->_impl_.player_id_) ); } - ::google::protobuf::Metadata IDMsg::GetMetadata() const + ::PROTOBUF_NAMESPACE_ID::Metadata IDMsg::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_Message2Server_2eproto_getter, &descriptor_table_Message2Server_2eproto_once, file_level_metadata_Message2Server_2eproto[1] @@ -839,119 +871,176 @@ namespace protobuf public: }; - PlayerMsg::PlayerMsg(::google::protobuf::Arena* arena) : - ::google::protobuf::Message(arena) + PlayerMsg::PlayerMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena) : + ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:protobuf.PlayerMsg) } - PlayerMsg::PlayerMsg( - ::google::protobuf::Arena* arena, const PlayerMsg& from - ) : - PlayerMsg(arena) - { - MergeFrom(from); - } - inline PROTOBUF_NDEBUG_INLINE PlayerMsg::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena - ) : - _cached_size_{0} + PlayerMsg::PlayerMsg(const PlayerMsg& from) : + ::PROTOBUF_NAMESPACE_ID::Message(), + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>( + from._internal_metadata_ + ); + // @@protoc_insertion_point(copy_constructor:protobuf.PlayerMsg) } inline void PlayerMsg::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, player_id_), 0, offsetof(Impl_, y_) - offsetof(Impl_, player_id_) + sizeof(Impl_::y_)); + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.player_id_){::int64_t{0}} + + , + decltype(_impl_.team_id_){::int64_t{0}} + + , + decltype(_impl_.ship_type_){0} + + , + decltype(_impl_.x_){0} + + , + decltype(_impl_.y_){0} + + , + /*decltype(_impl_._cached_size_)*/ {}}; } + PlayerMsg::~PlayerMsg() { // @@protoc_insertion_point(destructor:protobuf.PlayerMsg) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) + { + (void)arena; + return; + } SharedDtor(); } + inline void PlayerMsg::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + ABSL_DCHECK(GetArenaForAllocation() == nullptr); } - PROTOBUF_NOINLINE void PlayerMsg::Clear() + void PlayerMsg::SetCachedSize(int size) const + { + _impl_._cached_size_.Set(size); + } + + void PlayerMsg::Clear() { // @@protoc_insertion_point(message_clear_start:protobuf.PlayerMsg) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; ::memset(&_impl_.player_id_, 0, static_cast<::size_t>(reinterpret_cast(&_impl_.y_) - reinterpret_cast(&_impl_.player_id_)) + sizeof(_impl_.y_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); - } - - const char* PlayerMsg::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx - ) - { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + const char* PlayerMsg::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) + { +#define CHK_(x) \ + if (PROTOBUF_PREDICT_FALSE(!(x))) \ + goto failure + while (!ctx->Done(&ptr)) + { + ::uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) + { + // int64 player_id = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) + { + _impl_.player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + // int64 team_id = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) + { + _impl_.team_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + // .protobuf.ShipType ship_type = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) + { + ::int32_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + _internal_set_ship_type(static_cast<::protobuf::ShipType>(val)); + } + else + { + goto handle_unusual; + } + continue; + // int32 x = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 32)) + { + _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + // int32 y = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 40)) + { + _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) + { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, + ctx + ); + CHK_(ptr != nullptr); + } // while + message_done: return ptr; + failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<3, 5, 0, 0, 2> PlayerMsg::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 5, - 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967264, // skipmap - offsetof(decltype(_table_), field_entries), - 5, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_PlayerMsg_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, - {{ - {::_pbi::TcParser::MiniParse, {}}, - // int64 player_id = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(PlayerMsg, _impl_.player_id_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(PlayerMsg, _impl_.player_id_)}}, - // int64 team_id = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(PlayerMsg, _impl_.team_id_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(PlayerMsg, _impl_.team_id_)}}, - // .protobuf.ShipType ship_type = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(PlayerMsg, _impl_.ship_type_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(PlayerMsg, _impl_.ship_type_)}}, - // int32 x = 4; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(PlayerMsg, _impl_.x_), 63>(), - {32, 63, 0, PROTOBUF_FIELD_OFFSET(PlayerMsg, _impl_.x_)}}, - // int32 y = 5; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(PlayerMsg, _impl_.y_), 63>(), - {40, 63, 0, PROTOBUF_FIELD_OFFSET(PlayerMsg, _impl_.y_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, - {{65535, 65535}}, - {{ - // int64 player_id = 1; - {PROTOBUF_FIELD_OFFSET(PlayerMsg, _impl_.player_id_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt64)}, - // int64 team_id = 2; - {PROTOBUF_FIELD_OFFSET(PlayerMsg, _impl_.team_id_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt64)}, - // .protobuf.ShipType ship_type = 3; - {PROTOBUF_FIELD_OFFSET(PlayerMsg, _impl_.ship_type_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - // int32 x = 4; - {PROTOBUF_FIELD_OFFSET(PlayerMsg, _impl_.x_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - // int32 y = 5; - {PROTOBUF_FIELD_OFFSET(PlayerMsg, _impl_.y_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - }}, - // no aux_entries - {{}}, - }; - ::uint8_t* PlayerMsg::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream ) const { // @@protoc_insertion_point(serialize_to_array_start:protobuf.PlayerMsg) @@ -961,19 +1050,19 @@ namespace protobuf // int64 player_id = 1; if (this->_internal_player_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64ToArrayWithField<1>( - stream, this->_internal_player_id(), target - ); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray( + 1, this->_internal_player_id(), target + ); } // int64 team_id = 2; if (this->_internal_team_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64ToArrayWithField<2>( - stream, this->_internal_team_id(), target - ); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray( + 2, this->_internal_team_id(), target + ); } // .protobuf.ShipType ship_type = 3; @@ -988,27 +1077,26 @@ namespace protobuf // int32 x = 4; if (this->_internal_x() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<4>( - stream, this->_internal_x(), target - ); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray( + 4, this->_internal_x(), target + ); } // int32 y = 5; if (this->_internal_y() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<5>( - stream, this->_internal_y(), target - ); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray( + 5, this->_internal_y(), target + ); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream - ); + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream + ); } // @@protoc_insertion_point(serialize_to_array_end:protobuf.PlayerMsg) return target; @@ -1065,16 +1153,15 @@ namespace protobuf return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } - const ::google::protobuf::Message::ClassData PlayerMsg::_class_data_ = { - PlayerMsg::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor - }; - const ::google::protobuf::Message::ClassData* PlayerMsg::GetClassData() const + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PlayerMsg::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + PlayerMsg::MergeImpl}; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* PlayerMsg::GetClassData() const { return &_class_data_; } - void PlayerMsg::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) + void PlayerMsg::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); @@ -1103,7 +1190,7 @@ namespace protobuf { _this->_internal_set_y(from._internal_y()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void PlayerMsg::CopyFrom(const PlayerMsg& from) @@ -1115,27 +1202,23 @@ namespace protobuf MergeFrom(from); } - PROTOBUF_NOINLINE bool PlayerMsg::IsInitialized() const + bool PlayerMsg::IsInitialized() const { return true; } - ::_pbi::CachedSize* PlayerMsg::AccessCachedSize() const - { - return &_impl_._cached_size_; - } - void PlayerMsg::InternalSwap(PlayerMsg* PROTOBUF_RESTRICT other) + void PlayerMsg::InternalSwap(PlayerMsg* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::google::protobuf::internal::memswap< + ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(PlayerMsg, _impl_.y_) + sizeof(PlayerMsg::_impl_.y_) - PROTOBUF_FIELD_OFFSET(PlayerMsg, _impl_.player_id_)>( reinterpret_cast(&_impl_.player_id_), reinterpret_cast(&other->_impl_.player_id_) ); } - ::google::protobuf::Metadata PlayerMsg::GetMetadata() const + ::PROTOBUF_NAMESPACE_ID::Metadata PlayerMsg::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_Message2Server_2eproto_getter, &descriptor_table_Message2Server_2eproto_once, file_level_metadata_Message2Server_2eproto[2] @@ -1148,111 +1231,160 @@ namespace protobuf public: }; - MoveMsg::MoveMsg(::google::protobuf::Arena* arena) : - ::google::protobuf::Message(arena) + MoveMsg::MoveMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena) : + ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:protobuf.MoveMsg) } - MoveMsg::MoveMsg( - ::google::protobuf::Arena* arena, const MoveMsg& from - ) : - MoveMsg(arena) - { - MergeFrom(from); - } - inline PROTOBUF_NDEBUG_INLINE MoveMsg::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena - ) : - _cached_size_{0} + MoveMsg::MoveMsg(const MoveMsg& from) : + ::PROTOBUF_NAMESPACE_ID::Message(), + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>( + from._internal_metadata_ + ); + // @@protoc_insertion_point(copy_constructor:protobuf.MoveMsg) } inline void MoveMsg::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, player_id_), 0, offsetof(Impl_, team_id_) - offsetof(Impl_, player_id_) + sizeof(Impl_::team_id_)); + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.player_id_){::int64_t{0}} + + , + decltype(_impl_.angle_){0} + + , + decltype(_impl_.time_in_milliseconds_){::int64_t{0}} + + , + decltype(_impl_.team_id_){::int64_t{0}} + + , + /*decltype(_impl_._cached_size_)*/ {}}; } + MoveMsg::~MoveMsg() { // @@protoc_insertion_point(destructor:protobuf.MoveMsg) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) + { + (void)arena; + return; + } SharedDtor(); } + inline void MoveMsg::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + ABSL_DCHECK(GetArenaForAllocation() == nullptr); } - PROTOBUF_NOINLINE void MoveMsg::Clear() + void MoveMsg::SetCachedSize(int size) const + { + _impl_._cached_size_.Set(size); + } + + void MoveMsg::Clear() { // @@protoc_insertion_point(message_clear_start:protobuf.MoveMsg) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; ::memset(&_impl_.player_id_, 0, static_cast<::size_t>(reinterpret_cast(&_impl_.team_id_) - reinterpret_cast(&_impl_.player_id_)) + sizeof(_impl_.team_id_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); - } - - const char* MoveMsg::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx - ) - { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + const char* MoveMsg::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) + { +#define CHK_(x) \ + if (PROTOBUF_PREDICT_FALSE(!(x))) \ + goto failure + while (!ctx->Done(&ptr)) + { + ::uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) + { + // int64 player_id = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) + { + _impl_.player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + // double angle = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 17)) + { + _impl_.angle_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } + else + { + goto handle_unusual; + } + continue; + // int64 time_in_milliseconds = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) + { + _impl_.time_in_milliseconds_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + // int64 team_id = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 32)) + { + _impl_.team_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) + { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, + ctx + ); + CHK_(ptr != nullptr); + } // while + message_done: return ptr; + failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<2, 4, 0, 0, 2> MoveMsg::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 4, - 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967280, // skipmap - offsetof(decltype(_table_), field_entries), - 4, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_MoveMsg_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, - {{ - // int64 team_id = 4; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(MoveMsg, _impl_.team_id_), 63>(), - {32, 63, 0, PROTOBUF_FIELD_OFFSET(MoveMsg, _impl_.team_id_)}}, - // int64 player_id = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(MoveMsg, _impl_.player_id_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(MoveMsg, _impl_.player_id_)}}, - // double angle = 2; - {::_pbi::TcParser::FastF64S1, - {17, 63, 0, PROTOBUF_FIELD_OFFSET(MoveMsg, _impl_.angle_)}}, - // int64 time_in_milliseconds = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(MoveMsg, _impl_.time_in_milliseconds_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(MoveMsg, _impl_.time_in_milliseconds_)}}, - }}, - {{65535, 65535}}, - {{ - // int64 player_id = 1; - {PROTOBUF_FIELD_OFFSET(MoveMsg, _impl_.player_id_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt64)}, - // double angle = 2; - {PROTOBUF_FIELD_OFFSET(MoveMsg, _impl_.angle_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // int64 time_in_milliseconds = 3; - {PROTOBUF_FIELD_OFFSET(MoveMsg, _impl_.time_in_milliseconds_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt64)}, - // int64 team_id = 4; - {PROTOBUF_FIELD_OFFSET(MoveMsg, _impl_.team_id_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt64)}, - }}, - // no aux_entries - {{}}, - }; - ::uint8_t* MoveMsg::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream ) const { // @@protoc_insertion_point(serialize_to_array_start:protobuf.MoveMsg) @@ -1262,10 +1394,10 @@ namespace protobuf // int64 player_id = 1; if (this->_internal_player_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64ToArrayWithField<1>( - stream, this->_internal_player_id(), target - ); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray( + 1, this->_internal_player_id(), target + ); } // double angle = 2; @@ -1284,27 +1416,26 @@ namespace protobuf // int64 time_in_milliseconds = 3; if (this->_internal_time_in_milliseconds() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64ToArrayWithField<3>( - stream, this->_internal_time_in_milliseconds(), target - ); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray( + 3, this->_internal_time_in_milliseconds(), target + ); } // int64 team_id = 4; if (this->_internal_team_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64ToArrayWithField<4>( - stream, this->_internal_team_id(), target - ); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray( + 4, this->_internal_team_id(), target + ); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream - ); + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream + ); } // @@protoc_insertion_point(serialize_to_array_end:protobuf.MoveMsg) return target; @@ -1356,16 +1487,15 @@ namespace protobuf return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } - const ::google::protobuf::Message::ClassData MoveMsg::_class_data_ = { - MoveMsg::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor - }; - const ::google::protobuf::Message::ClassData* MoveMsg::GetClassData() const + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MoveMsg::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + MoveMsg::MergeImpl}; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MoveMsg::GetClassData() const { return &_class_data_; } - void MoveMsg::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) + void MoveMsg::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); @@ -1394,7 +1524,7 @@ namespace protobuf { _this->_internal_set_team_id(from._internal_team_id()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MoveMsg::CopyFrom(const MoveMsg& from) @@ -1406,27 +1536,23 @@ namespace protobuf MergeFrom(from); } - PROTOBUF_NOINLINE bool MoveMsg::IsInitialized() const + bool MoveMsg::IsInitialized() const { return true; } - ::_pbi::CachedSize* MoveMsg::AccessCachedSize() const - { - return &_impl_._cached_size_; - } - void MoveMsg::InternalSwap(MoveMsg* PROTOBUF_RESTRICT other) + void MoveMsg::InternalSwap(MoveMsg* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::google::protobuf::internal::memswap< + ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(MoveMsg, _impl_.team_id_) + sizeof(MoveMsg::_impl_.team_id_) - PROTOBUF_FIELD_OFFSET(MoveMsg, _impl_.player_id_)>( reinterpret_cast(&_impl_.player_id_), reinterpret_cast(&other->_impl_.player_id_) ); } - ::google::protobuf::Metadata MoveMsg::GetMetadata() const + ::PROTOBUF_NAMESPACE_ID::Metadata MoveMsg::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_Message2Server_2eproto_getter, &descriptor_table_Message2Server_2eproto_once, file_level_metadata_Message2Server_2eproto[3] @@ -1441,83 +1567,101 @@ namespace protobuf PROTOBUF_FIELD_OFFSET(::protobuf::SendMsg, _impl_._oneof_case_); }; - SendMsg::SendMsg(::google::protobuf::Arena* arena) : - ::google::protobuf::Message(arena) + SendMsg::SendMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena) : + ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:protobuf.SendMsg) } - inline PROTOBUF_NDEBUG_INLINE SendMsg::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, const Impl_& from - ) : - message_{}, - _cached_size_{0}, - _oneof_case_{from._oneof_case_[0]} - { - } - - SendMsg::SendMsg( - ::google::protobuf::Arena* arena, - const SendMsg& from - ) : - ::google::protobuf::Message(arena) + SendMsg::SendMsg(const SendMsg& from) : + ::PROTOBUF_NAMESPACE_ID::Message() { SendMsg* const _this = this; (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_ - ); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::memcpy(reinterpret_cast(&_impl_) + offsetof(Impl_, player_id_), reinterpret_cast(&from._impl_) + offsetof(Impl_, player_id_), offsetof(Impl_, team_id_) - offsetof(Impl_, player_id_) + sizeof(Impl_::team_id_)); - switch (message_case()) + new (&_impl_) Impl_{ + decltype(_impl_.player_id_){} + + , + decltype(_impl_.to_player_id_){} + + , + decltype(_impl_.team_id_){} + + , + decltype(_impl_.message_){}, + /*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<::size_t>(reinterpret_cast(&_impl_.team_id_) - reinterpret_cast(&_impl_.player_id_)) + sizeof(_impl_.team_id_)); + clear_has_message(); + switch (from.message_case()) { - case MESSAGE_NOT_SET: - break; case kTextMessage: - new (&_impl_.message_.text_message_) decltype(_impl_.message_.text_message_){arena, from._impl_.message_.text_message_}; - break; + { + _this->_internal_set_text_message(from._internal_text_message()); + break; + } case kBinaryMessage: - new (&_impl_.message_.binary_message_) decltype(_impl_.message_.binary_message_){arena, from._impl_.message_.binary_message_}; - break; + { + _this->_internal_set_binary_message(from._internal_binary_message()); + break; + } + case MESSAGE_NOT_SET: + { + break; + } } - // @@protoc_insertion_point(copy_constructor:protobuf.SendMsg) } - inline PROTOBUF_NDEBUG_INLINE SendMsg::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena - ) : - message_{}, - _cached_size_{0}, - _oneof_case_{} - { - } inline void SendMsg::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, player_id_), 0, offsetof(Impl_, team_id_) - offsetof(Impl_, player_id_) + sizeof(Impl_::team_id_)); + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.player_id_){::int64_t{0}} + + , + decltype(_impl_.to_player_id_){::int64_t{0}} + + , + decltype(_impl_.team_id_){::int64_t{0}} + + , + decltype(_impl_.message_){}, + /*decltype(_impl_._cached_size_)*/ {}, + /*decltype(_impl_._oneof_case_)*/ {}}; + clear_has_message(); } + SendMsg::~SendMsg() { // @@protoc_insertion_point(destructor:protobuf.SendMsg) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) + { + (void)arena; + return; + } SharedDtor(); } + inline void SendMsg::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); + ABSL_DCHECK(GetArenaForAllocation() == nullptr); if (has_message()) { clear_message(); } - _impl_.~Impl_(); + } + + void SendMsg::SetCachedSize(int size) const + { + _impl_._cached_size_.Set(size); } void SendMsg::clear_message() { // @@protoc_insertion_point(one_of_clear_start:protobuf.SendMsg) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); switch (message_case()) { case kTextMessage: @@ -1538,80 +1682,120 @@ namespace protobuf _impl_._oneof_case_[0] = MESSAGE_NOT_SET; } - PROTOBUF_NOINLINE void SendMsg::Clear() + void SendMsg::Clear() { // @@protoc_insertion_point(message_clear_start:protobuf.SendMsg) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; ::memset(&_impl_.player_id_, 0, static_cast<::size_t>(reinterpret_cast(&_impl_.team_id_) - reinterpret_cast(&_impl_.player_id_)) + sizeof(_impl_.team_id_)); clear_message(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); - } - - const char* SendMsg::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx - ) - { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + const char* SendMsg::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) + { +#define CHK_(x) \ + if (PROTOBUF_PREDICT_FALSE(!(x))) \ + goto failure + while (!ctx->Done(&ptr)) + { + ::uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) + { + // int64 player_id = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) + { + _impl_.player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + // int64 to_player_id = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) + { + _impl_.to_player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + // string text_message = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) + { + auto str = _internal_mutable_text_message(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "protobuf.SendMsg.text_message")); + } + else + { + goto handle_unusual; + } + continue; + // bytes binary_message = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 34)) + { + auto str = _internal_mutable_binary_message(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + // int64 team_id = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 40)) + { + _impl_.team_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) + { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, + ctx + ); + CHK_(ptr != nullptr); + } // while + message_done: return ptr; + failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<3, 5, 0, 37, 2> SendMsg::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 5, - 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967264, // skipmap - offsetof(decltype(_table_), field_entries), - 5, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_SendMsg_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, - {{ - {::_pbi::TcParser::MiniParse, {}}, - // int64 player_id = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(SendMsg, _impl_.player_id_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(SendMsg, _impl_.player_id_)}}, - // int64 to_player_id = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(SendMsg, _impl_.to_player_id_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(SendMsg, _impl_.to_player_id_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - // int64 team_id = 5; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(SendMsg, _impl_.team_id_), 63>(), - {40, 63, 0, PROTOBUF_FIELD_OFFSET(SendMsg, _impl_.team_id_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, - {{65535, 65535}}, - {{ - // int64 player_id = 1; - {PROTOBUF_FIELD_OFFSET(SendMsg, _impl_.player_id_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt64)}, - // int64 to_player_id = 2; - {PROTOBUF_FIELD_OFFSET(SendMsg, _impl_.to_player_id_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt64)}, - // string text_message = 3; - {PROTOBUF_FIELD_OFFSET(SendMsg, _impl_.message_.text_message_), _Internal::kOneofCaseOffset + 0, 0, (0 | ::_fl::kFcOneof | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // bytes binary_message = 4; - {PROTOBUF_FIELD_OFFSET(SendMsg, _impl_.message_.binary_message_), _Internal::kOneofCaseOffset + 0, 0, (0 | ::_fl::kFcOneof | ::_fl::kBytes | ::_fl::kRepAString)}, - // int64 team_id = 5; - {PROTOBUF_FIELD_OFFSET(SendMsg, _impl_.team_id_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt64)}, - }}, - // no aux_entries - {{"\20\0\0\14\0\0\0\0" - "protobuf.SendMsg" - "text_message"}}, - }; - ::uint8_t* SendMsg::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream ) const { // @@protoc_insertion_point(serialize_to_array_start:protobuf.SendMsg) @@ -1621,19 +1805,19 @@ namespace protobuf // int64 player_id = 1; if (this->_internal_player_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64ToArrayWithField<1>( - stream, this->_internal_player_id(), target - ); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray( + 1, this->_internal_player_id(), target + ); } // int64 to_player_id = 2; if (this->_internal_to_player_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64ToArrayWithField<2>( - stream, this->_internal_to_player_id(), target - ); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray( + 2, this->_internal_to_player_id(), target + ); } switch (message_case()) @@ -1641,8 +1825,8 @@ namespace protobuf case kTextMessage: { const std::string& _s = this->_internal_text_message(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "protobuf.SendMsg.text_message" + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "protobuf.SendMsg.text_message" ); target = stream->WriteStringMaybeAliased(3, _s, target); break; @@ -1653,24 +1837,22 @@ namespace protobuf target = stream->WriteBytesMaybeAliased(4, _s, target); break; } - default: - break; + default:; } // int64 team_id = 5; if (this->_internal_team_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64ToArrayWithField<5>( - stream, this->_internal_team_id(), target - ); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray( + 5, this->_internal_team_id(), target + ); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream - ); + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream + ); } // @@protoc_insertion_point(serialize_to_array_end:protobuf.SendMsg) return target; @@ -1714,7 +1896,7 @@ namespace protobuf // string text_message = 3; case kTextMessage: { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_text_message() ); break; @@ -1722,7 +1904,7 @@ namespace protobuf // bytes binary_message = 4; case kBinaryMessage: { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( this->_internal_binary_message() ); break; @@ -1735,16 +1917,15 @@ namespace protobuf return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } - const ::google::protobuf::Message::ClassData SendMsg::_class_data_ = { - SendMsg::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor - }; - const ::google::protobuf::Message::ClassData* SendMsg::GetClassData() const + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SendMsg::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + SendMsg::MergeImpl}; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* SendMsg::GetClassData() const { return &_class_data_; } - void SendMsg::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) + void SendMsg::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); @@ -1782,7 +1963,7 @@ namespace protobuf break; } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void SendMsg::CopyFrom(const SendMsg& from) @@ -1794,20 +1975,16 @@ namespace protobuf MergeFrom(from); } - PROTOBUF_NOINLINE bool SendMsg::IsInitialized() const + bool SendMsg::IsInitialized() const { return true; } - ::_pbi::CachedSize* SendMsg::AccessCachedSize() const - { - return &_impl_._cached_size_; - } - void SendMsg::InternalSwap(SendMsg* PROTOBUF_RESTRICT other) + void SendMsg::InternalSwap(SendMsg* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::google::protobuf::internal::memswap< + ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(SendMsg, _impl_.team_id_) + sizeof(SendMsg::_impl_.team_id_) - PROTOBUF_FIELD_OFFSET(SendMsg, _impl_.player_id_)>( reinterpret_cast(&_impl_.player_id_), reinterpret_cast(&other->_impl_.player_id_) @@ -1816,7 +1993,7 @@ namespace protobuf swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); } - ::google::protobuf::Metadata SendMsg::GetMetadata() const + ::PROTOBUF_NAMESPACE_ID::Metadata SendMsg::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_Message2Server_2eproto_getter, &descriptor_table_Message2Server_2eproto_once, file_level_metadata_Message2Server_2eproto[4] @@ -1829,107 +2006,145 @@ namespace protobuf public: }; - AttackMsg::AttackMsg(::google::protobuf::Arena* arena) : - ::google::protobuf::Message(arena) + AttackMsg::AttackMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena) : + ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:protobuf.AttackMsg) } - AttackMsg::AttackMsg( - ::google::protobuf::Arena* arena, const AttackMsg& from - ) : - AttackMsg(arena) - { - MergeFrom(from); - } - inline PROTOBUF_NDEBUG_INLINE AttackMsg::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena - ) : - _cached_size_{0} + AttackMsg::AttackMsg(const AttackMsg& from) : + ::PROTOBUF_NAMESPACE_ID::Message(), + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>( + from._internal_metadata_ + ); + // @@protoc_insertion_point(copy_constructor:protobuf.AttackMsg) } inline void AttackMsg::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, player_id_), 0, offsetof(Impl_, team_id_) - offsetof(Impl_, player_id_) + sizeof(Impl_::team_id_)); + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.player_id_){::int64_t{0}} + + , + decltype(_impl_.angle_){0} + + , + decltype(_impl_.team_id_){::int64_t{0}} + + , + /*decltype(_impl_._cached_size_)*/ {}}; } + AttackMsg::~AttackMsg() { // @@protoc_insertion_point(destructor:protobuf.AttackMsg) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) + { + (void)arena; + return; + } SharedDtor(); } + inline void AttackMsg::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + } + + void AttackMsg::SetCachedSize(int size) const + { + _impl_._cached_size_.Set(size); } - PROTOBUF_NOINLINE void AttackMsg::Clear() + void AttackMsg::Clear() { // @@protoc_insertion_point(message_clear_start:protobuf.AttackMsg) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; ::memset(&_impl_.player_id_, 0, static_cast<::size_t>(reinterpret_cast(&_impl_.team_id_) - reinterpret_cast(&_impl_.player_id_)) + sizeof(_impl_.team_id_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); - } - - const char* AttackMsg::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx - ) - { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + const char* AttackMsg::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) + { +#define CHK_(x) \ + if (PROTOBUF_PREDICT_FALSE(!(x))) \ + goto failure + while (!ctx->Done(&ptr)) + { + ::uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) + { + // int64 player_id = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) + { + _impl_.player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + // double angle = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 17)) + { + _impl_.angle_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } + else + { + goto handle_unusual; + } + continue; + // int64 team_id = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) + { + _impl_.team_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) + { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, + ctx + ); + CHK_(ptr != nullptr); + } // while + message_done: return ptr; + failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<2, 3, 0, 0, 2> AttackMsg::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 3, - 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_AttackMsg_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, - {{ - {::_pbi::TcParser::MiniParse, {}}, - // int64 player_id = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(AttackMsg, _impl_.player_id_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(AttackMsg, _impl_.player_id_)}}, - // double angle = 2; - {::_pbi::TcParser::FastF64S1, - {17, 63, 0, PROTOBUF_FIELD_OFFSET(AttackMsg, _impl_.angle_)}}, - // int64 team_id = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(AttackMsg, _impl_.team_id_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(AttackMsg, _impl_.team_id_)}}, - }}, - {{65535, 65535}}, - {{ - // int64 player_id = 1; - {PROTOBUF_FIELD_OFFSET(AttackMsg, _impl_.player_id_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt64)}, - // double angle = 2; - {PROTOBUF_FIELD_OFFSET(AttackMsg, _impl_.angle_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // int64 team_id = 3; - {PROTOBUF_FIELD_OFFSET(AttackMsg, _impl_.team_id_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt64)}, - }}, - // no aux_entries - {{}}, - }; - ::uint8_t* AttackMsg::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream ) const { // @@protoc_insertion_point(serialize_to_array_start:protobuf.AttackMsg) @@ -1939,10 +2154,10 @@ namespace protobuf // int64 player_id = 1; if (this->_internal_player_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64ToArrayWithField<1>( - stream, this->_internal_player_id(), target - ); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray( + 1, this->_internal_player_id(), target + ); } // double angle = 2; @@ -1961,18 +2176,17 @@ namespace protobuf // int64 team_id = 3; if (this->_internal_team_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64ToArrayWithField<3>( - stream, this->_internal_team_id(), target - ); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray( + 3, this->_internal_team_id(), target + ); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream - ); + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream + ); } // @@protoc_insertion_point(serialize_to_array_end:protobuf.AttackMsg) return target; @@ -2016,16 +2230,15 @@ namespace protobuf return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } - const ::google::protobuf::Message::ClassData AttackMsg::_class_data_ = { - AttackMsg::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor - }; - const ::google::protobuf::Message::ClassData* AttackMsg::GetClassData() const + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AttackMsg::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + AttackMsg::MergeImpl}; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* AttackMsg::GetClassData() const { return &_class_data_; } - void AttackMsg::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) + void AttackMsg::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); @@ -2050,7 +2263,7 @@ namespace protobuf { _this->_internal_set_team_id(from._internal_team_id()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void AttackMsg::CopyFrom(const AttackMsg& from) @@ -2062,27 +2275,23 @@ namespace protobuf MergeFrom(from); } - PROTOBUF_NOINLINE bool AttackMsg::IsInitialized() const + bool AttackMsg::IsInitialized() const { return true; } - ::_pbi::CachedSize* AttackMsg::AccessCachedSize() const - { - return &_impl_._cached_size_; - } - void AttackMsg::InternalSwap(AttackMsg* PROTOBUF_RESTRICT other) + void AttackMsg::InternalSwap(AttackMsg* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::google::protobuf::internal::memswap< + ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(AttackMsg, _impl_.team_id_) + sizeof(AttackMsg::_impl_.team_id_) - PROTOBUF_FIELD_OFFSET(AttackMsg, _impl_.player_id_)>( reinterpret_cast(&_impl_.player_id_), reinterpret_cast(&other->_impl_.player_id_) ); } - ::google::protobuf::Metadata AttackMsg::GetMetadata() const + ::PROTOBUF_NAMESPACE_ID::Metadata AttackMsg::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_Message2Server_2eproto_getter, &descriptor_table_Message2Server_2eproto_once, file_level_metadata_Message2Server_2eproto[5] @@ -2095,107 +2304,146 @@ namespace protobuf public: }; - ConstructMsg::ConstructMsg(::google::protobuf::Arena* arena) : - ::google::protobuf::Message(arena) + ConstructMsg::ConstructMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena) : + ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:protobuf.ConstructMsg) } - ConstructMsg::ConstructMsg( - ::google::protobuf::Arena* arena, const ConstructMsg& from - ) : - ConstructMsg(arena) - { - MergeFrom(from); - } - inline PROTOBUF_NDEBUG_INLINE ConstructMsg::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena - ) : - _cached_size_{0} + ConstructMsg::ConstructMsg(const ConstructMsg& from) : + ::PROTOBUF_NAMESPACE_ID::Message(), + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>( + from._internal_metadata_ + ); + // @@protoc_insertion_point(copy_constructor:protobuf.ConstructMsg) } inline void ConstructMsg::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, player_id_), 0, offsetof(Impl_, construction_type_) - offsetof(Impl_, player_id_) + sizeof(Impl_::construction_type_)); + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.player_id_){::int64_t{0}} + + , + decltype(_impl_.team_id_){::int64_t{0}} + + , + decltype(_impl_.construction_type_){0} + + , + /*decltype(_impl_._cached_size_)*/ {}}; } + ConstructMsg::~ConstructMsg() { // @@protoc_insertion_point(destructor:protobuf.ConstructMsg) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) + { + (void)arena; + return; + } SharedDtor(); } + inline void ConstructMsg::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + } + + void ConstructMsg::SetCachedSize(int size) const + { + _impl_._cached_size_.Set(size); } - PROTOBUF_NOINLINE void ConstructMsg::Clear() + void ConstructMsg::Clear() { // @@protoc_insertion_point(message_clear_start:protobuf.ConstructMsg) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; ::memset(&_impl_.player_id_, 0, static_cast<::size_t>(reinterpret_cast(&_impl_.construction_type_) - reinterpret_cast(&_impl_.player_id_)) + sizeof(_impl_.construction_type_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); - } - - const char* ConstructMsg::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx - ) - { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + const char* ConstructMsg::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) + { +#define CHK_(x) \ + if (PROTOBUF_PREDICT_FALSE(!(x))) \ + goto failure + while (!ctx->Done(&ptr)) + { + ::uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) + { + // int64 player_id = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) + { + _impl_.player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + // .protobuf.ConstructionType construction_type = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) + { + ::int32_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + _internal_set_construction_type(static_cast<::protobuf::ConstructionType>(val)); + } + else + { + goto handle_unusual; + } + continue; + // int64 team_id = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) + { + _impl_.team_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) + { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, + ctx + ); + CHK_(ptr != nullptr); + } // while + message_done: return ptr; + failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<2, 3, 0, 0, 2> ConstructMsg::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 3, - 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_ConstructMsg_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, - {{ - {::_pbi::TcParser::MiniParse, {}}, - // int64 player_id = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ConstructMsg, _impl_.player_id_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(ConstructMsg, _impl_.player_id_)}}, - // .protobuf.ConstructionType construction_type = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ConstructMsg, _impl_.construction_type_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(ConstructMsg, _impl_.construction_type_)}}, - // int64 team_id = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ConstructMsg, _impl_.team_id_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(ConstructMsg, _impl_.team_id_)}}, - }}, - {{65535, 65535}}, - {{ - // int64 player_id = 1; - {PROTOBUF_FIELD_OFFSET(ConstructMsg, _impl_.player_id_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt64)}, - // .protobuf.ConstructionType construction_type = 2; - {PROTOBUF_FIELD_OFFSET(ConstructMsg, _impl_.construction_type_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - // int64 team_id = 3; - {PROTOBUF_FIELD_OFFSET(ConstructMsg, _impl_.team_id_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt64)}, - }}, - // no aux_entries - {{}}, - }; - ::uint8_t* ConstructMsg::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream ) const { // @@protoc_insertion_point(serialize_to_array_start:protobuf.ConstructMsg) @@ -2205,10 +2453,10 @@ namespace protobuf // int64 player_id = 1; if (this->_internal_player_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64ToArrayWithField<1>( - stream, this->_internal_player_id(), target - ); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray( + 1, this->_internal_player_id(), target + ); } // .protobuf.ConstructionType construction_type = 2; @@ -2223,18 +2471,17 @@ namespace protobuf // int64 team_id = 3; if (this->_internal_team_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64ToArrayWithField<3>( - stream, this->_internal_team_id(), target - ); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray( + 3, this->_internal_team_id(), target + ); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream - ); + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream + ); } // @@protoc_insertion_point(serialize_to_array_end:protobuf.ConstructMsg) return target; @@ -2275,16 +2522,15 @@ namespace protobuf return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } - const ::google::protobuf::Message::ClassData ConstructMsg::_class_data_ = { - ConstructMsg::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor - }; - const ::google::protobuf::Message::ClassData* ConstructMsg::GetClassData() const + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ConstructMsg::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + ConstructMsg::MergeImpl}; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* ConstructMsg::GetClassData() const { return &_class_data_; } - void ConstructMsg::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) + void ConstructMsg::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); @@ -2305,7 +2551,7 @@ namespace protobuf { _this->_internal_set_construction_type(from._internal_construction_type()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ConstructMsg::CopyFrom(const ConstructMsg& from) @@ -2317,27 +2563,23 @@ namespace protobuf MergeFrom(from); } - PROTOBUF_NOINLINE bool ConstructMsg::IsInitialized() const + bool ConstructMsg::IsInitialized() const { return true; } - ::_pbi::CachedSize* ConstructMsg::AccessCachedSize() const - { - return &_impl_._cached_size_; - } - void ConstructMsg::InternalSwap(ConstructMsg* PROTOBUF_RESTRICT other) + void ConstructMsg::InternalSwap(ConstructMsg* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::google::protobuf::internal::memswap< + ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(ConstructMsg, _impl_.construction_type_) + sizeof(ConstructMsg::_impl_.construction_type_) - PROTOBUF_FIELD_OFFSET(ConstructMsg, _impl_.player_id_)>( reinterpret_cast(&_impl_.player_id_), reinterpret_cast(&other->_impl_.player_id_) ); } - ::google::protobuf::Metadata ConstructMsg::GetMetadata() const + ::PROTOBUF_NAMESPACE_ID::Metadata ConstructMsg::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_Message2Server_2eproto_getter, &descriptor_table_Message2Server_2eproto_once, file_level_metadata_Message2Server_2eproto[6] @@ -2350,107 +2592,145 @@ namespace protobuf public: }; - RecoverMsg::RecoverMsg(::google::protobuf::Arena* arena) : - ::google::protobuf::Message(arena) + RecoverMsg::RecoverMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena) : + ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:protobuf.RecoverMsg) } - RecoverMsg::RecoverMsg( - ::google::protobuf::Arena* arena, const RecoverMsg& from - ) : - RecoverMsg(arena) - { - MergeFrom(from); - } - inline PROTOBUF_NDEBUG_INLINE RecoverMsg::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena - ) : - _cached_size_{0} + RecoverMsg::RecoverMsg(const RecoverMsg& from) : + ::PROTOBUF_NAMESPACE_ID::Message(), + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>( + from._internal_metadata_ + ); + // @@protoc_insertion_point(copy_constructor:protobuf.RecoverMsg) } inline void RecoverMsg::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, player_id_), 0, offsetof(Impl_, team_id_) - offsetof(Impl_, player_id_) + sizeof(Impl_::team_id_)); + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.player_id_){::int64_t{0}} + + , + decltype(_impl_.recover_){::int64_t{0}} + + , + decltype(_impl_.team_id_){::int64_t{0}} + + , + /*decltype(_impl_._cached_size_)*/ {}}; } + RecoverMsg::~RecoverMsg() { // @@protoc_insertion_point(destructor:protobuf.RecoverMsg) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) + { + (void)arena; + return; + } SharedDtor(); } + inline void RecoverMsg::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + } + + void RecoverMsg::SetCachedSize(int size) const + { + _impl_._cached_size_.Set(size); } - PROTOBUF_NOINLINE void RecoverMsg::Clear() + void RecoverMsg::Clear() { // @@protoc_insertion_point(message_clear_start:protobuf.RecoverMsg) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; ::memset(&_impl_.player_id_, 0, static_cast<::size_t>(reinterpret_cast(&_impl_.team_id_) - reinterpret_cast(&_impl_.player_id_)) + sizeof(_impl_.team_id_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); - } - - const char* RecoverMsg::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx - ) - { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + const char* RecoverMsg::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) + { +#define CHK_(x) \ + if (PROTOBUF_PREDICT_FALSE(!(x))) \ + goto failure + while (!ctx->Done(&ptr)) + { + ::uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) + { + // int64 player_id = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) + { + _impl_.player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + // int64 recover = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) + { + _impl_.recover_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + // int64 team_id = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) + { + _impl_.team_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) + { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, + ctx + ); + CHK_(ptr != nullptr); + } // while + message_done: return ptr; + failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<2, 3, 0, 0, 2> RecoverMsg::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 3, - 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_RecoverMsg_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, - {{ - {::_pbi::TcParser::MiniParse, {}}, - // int64 player_id = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(RecoverMsg, _impl_.player_id_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(RecoverMsg, _impl_.player_id_)}}, - // int64 recover = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(RecoverMsg, _impl_.recover_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(RecoverMsg, _impl_.recover_)}}, - // int64 team_id = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(RecoverMsg, _impl_.team_id_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(RecoverMsg, _impl_.team_id_)}}, - }}, - {{65535, 65535}}, - {{ - // int64 player_id = 1; - {PROTOBUF_FIELD_OFFSET(RecoverMsg, _impl_.player_id_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt64)}, - // int64 recover = 2; - {PROTOBUF_FIELD_OFFSET(RecoverMsg, _impl_.recover_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt64)}, - // int64 team_id = 3; - {PROTOBUF_FIELD_OFFSET(RecoverMsg, _impl_.team_id_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt64)}, - }}, - // no aux_entries - {{}}, - }; - ::uint8_t* RecoverMsg::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream ) const { // @@protoc_insertion_point(serialize_to_array_start:protobuf.RecoverMsg) @@ -2460,36 +2740,35 @@ namespace protobuf // int64 player_id = 1; if (this->_internal_player_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64ToArrayWithField<1>( - stream, this->_internal_player_id(), target - ); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray( + 1, this->_internal_player_id(), target + ); } // int64 recover = 2; if (this->_internal_recover() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64ToArrayWithField<2>( - stream, this->_internal_recover(), target - ); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray( + 2, this->_internal_recover(), target + ); } // int64 team_id = 3; if (this->_internal_team_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64ToArrayWithField<3>( - stream, this->_internal_team_id(), target - ); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray( + 3, this->_internal_team_id(), target + ); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream - ); + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream + ); } // @@protoc_insertion_point(serialize_to_array_end:protobuf.RecoverMsg) return target; @@ -2531,16 +2810,15 @@ namespace protobuf return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } - const ::google::protobuf::Message::ClassData RecoverMsg::_class_data_ = { - RecoverMsg::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor - }; - const ::google::protobuf::Message::ClassData* RecoverMsg::GetClassData() const + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RecoverMsg::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + RecoverMsg::MergeImpl}; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* RecoverMsg::GetClassData() const { return &_class_data_; } - void RecoverMsg::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) + void RecoverMsg::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); @@ -2561,7 +2839,7 @@ namespace protobuf { _this->_internal_set_team_id(from._internal_team_id()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void RecoverMsg::CopyFrom(const RecoverMsg& from) @@ -2573,27 +2851,23 @@ namespace protobuf MergeFrom(from); } - PROTOBUF_NOINLINE bool RecoverMsg::IsInitialized() const + bool RecoverMsg::IsInitialized() const { return true; } - ::_pbi::CachedSize* RecoverMsg::AccessCachedSize() const - { - return &_impl_._cached_size_; - } - void RecoverMsg::InternalSwap(RecoverMsg* PROTOBUF_RESTRICT other) + void RecoverMsg::InternalSwap(RecoverMsg* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::google::protobuf::internal::memswap< + ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(RecoverMsg, _impl_.team_id_) + sizeof(RecoverMsg::_impl_.team_id_) - PROTOBUF_FIELD_OFFSET(RecoverMsg, _impl_.player_id_)>( reinterpret_cast(&_impl_.player_id_), reinterpret_cast(&other->_impl_.player_id_) ); } - ::google::protobuf::Metadata RecoverMsg::GetMetadata() const + ::PROTOBUF_NAMESPACE_ID::Metadata RecoverMsg::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_Message2Server_2eproto_getter, &descriptor_table_Message2Server_2eproto_once, file_level_metadata_Message2Server_2eproto[7] @@ -2606,107 +2880,146 @@ namespace protobuf public: }; - InstallMsg::InstallMsg(::google::protobuf::Arena* arena) : - ::google::protobuf::Message(arena) + InstallMsg::InstallMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena) : + ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:protobuf.InstallMsg) } - InstallMsg::InstallMsg( - ::google::protobuf::Arena* arena, const InstallMsg& from - ) : - InstallMsg(arena) - { - MergeFrom(from); - } - inline PROTOBUF_NDEBUG_INLINE InstallMsg::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena - ) : - _cached_size_{0} + InstallMsg::InstallMsg(const InstallMsg& from) : + ::PROTOBUF_NAMESPACE_ID::Message(), + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>( + from._internal_metadata_ + ); + // @@protoc_insertion_point(copy_constructor:protobuf.InstallMsg) } inline void InstallMsg::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, player_id_), 0, offsetof(Impl_, module_type_) - offsetof(Impl_, player_id_) + sizeof(Impl_::module_type_)); + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.player_id_){::int64_t{0}} + + , + decltype(_impl_.team_id_){::int64_t{0}} + + , + decltype(_impl_.module_type_){0} + + , + /*decltype(_impl_._cached_size_)*/ {}}; } + InstallMsg::~InstallMsg() { // @@protoc_insertion_point(destructor:protobuf.InstallMsg) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) + { + (void)arena; + return; + } SharedDtor(); } + inline void InstallMsg::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + } + + void InstallMsg::SetCachedSize(int size) const + { + _impl_._cached_size_.Set(size); } - PROTOBUF_NOINLINE void InstallMsg::Clear() + void InstallMsg::Clear() { // @@protoc_insertion_point(message_clear_start:protobuf.InstallMsg) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; ::memset(&_impl_.player_id_, 0, static_cast<::size_t>(reinterpret_cast(&_impl_.module_type_) - reinterpret_cast(&_impl_.player_id_)) + sizeof(_impl_.module_type_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); - } - - const char* InstallMsg::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx - ) - { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + const char* InstallMsg::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) + { +#define CHK_(x) \ + if (PROTOBUF_PREDICT_FALSE(!(x))) \ + goto failure + while (!ctx->Done(&ptr)) + { + ::uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) + { + // .protobuf.ModuleType module_type = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) + { + ::int32_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + _internal_set_module_type(static_cast<::protobuf::ModuleType>(val)); + } + else + { + goto handle_unusual; + } + continue; + // int64 player_id = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) + { + _impl_.player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + // int64 team_id = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) + { + _impl_.team_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) + { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, + ctx + ); + CHK_(ptr != nullptr); + } // while + message_done: return ptr; + failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<2, 3, 0, 0, 2> InstallMsg::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 3, - 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_InstallMsg_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, - {{ - {::_pbi::TcParser::MiniParse, {}}, - // .protobuf.ModuleType module_type = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(InstallMsg, _impl_.module_type_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(InstallMsg, _impl_.module_type_)}}, - // int64 player_id = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(InstallMsg, _impl_.player_id_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(InstallMsg, _impl_.player_id_)}}, - // int64 team_id = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(InstallMsg, _impl_.team_id_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(InstallMsg, _impl_.team_id_)}}, - }}, - {{65535, 65535}}, - {{ - // .protobuf.ModuleType module_type = 1; - {PROTOBUF_FIELD_OFFSET(InstallMsg, _impl_.module_type_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - // int64 player_id = 2; - {PROTOBUF_FIELD_OFFSET(InstallMsg, _impl_.player_id_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt64)}, - // int64 team_id = 3; - {PROTOBUF_FIELD_OFFSET(InstallMsg, _impl_.team_id_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt64)}, - }}, - // no aux_entries - {{}}, - }; - ::uint8_t* InstallMsg::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream ) const { // @@protoc_insertion_point(serialize_to_array_start:protobuf.InstallMsg) @@ -2725,27 +3038,26 @@ namespace protobuf // int64 player_id = 2; if (this->_internal_player_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64ToArrayWithField<2>( - stream, this->_internal_player_id(), target - ); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray( + 2, this->_internal_player_id(), target + ); } // int64 team_id = 3; if (this->_internal_team_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64ToArrayWithField<3>( - stream, this->_internal_team_id(), target - ); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray( + 3, this->_internal_team_id(), target + ); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream - ); + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream + ); } // @@protoc_insertion_point(serialize_to_array_end:protobuf.InstallMsg) return target; @@ -2786,16 +3098,15 @@ namespace protobuf return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } - const ::google::protobuf::Message::ClassData InstallMsg::_class_data_ = { - InstallMsg::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor - }; - const ::google::protobuf::Message::ClassData* InstallMsg::GetClassData() const + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData InstallMsg::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + InstallMsg::MergeImpl}; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* InstallMsg::GetClassData() const { return &_class_data_; } - void InstallMsg::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) + void InstallMsg::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); @@ -2816,7 +3127,7 @@ namespace protobuf { _this->_internal_set_module_type(from._internal_module_type()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void InstallMsg::CopyFrom(const InstallMsg& from) @@ -2828,27 +3139,23 @@ namespace protobuf MergeFrom(from); } - PROTOBUF_NOINLINE bool InstallMsg::IsInitialized() const + bool InstallMsg::IsInitialized() const { return true; } - ::_pbi::CachedSize* InstallMsg::AccessCachedSize() const - { - return &_impl_._cached_size_; - } - void InstallMsg::InternalSwap(InstallMsg* PROTOBUF_RESTRICT other) + void InstallMsg::InternalSwap(InstallMsg* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::google::protobuf::internal::memswap< + ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(InstallMsg, _impl_.module_type_) + sizeof(InstallMsg::_impl_.module_type_) - PROTOBUF_FIELD_OFFSET(InstallMsg, _impl_.player_id_)>( reinterpret_cast(&_impl_.player_id_), reinterpret_cast(&other->_impl_.player_id_) ); } - ::google::protobuf::Metadata InstallMsg::GetMetadata() const + ::PROTOBUF_NAMESPACE_ID::Metadata InstallMsg::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_Message2Server_2eproto_getter, &descriptor_table_Message2Server_2eproto_once, file_level_metadata_Message2Server_2eproto[8] @@ -2861,111 +3168,161 @@ namespace protobuf public: }; - BuildShipMsg::BuildShipMsg(::google::protobuf::Arena* arena) : - ::google::protobuf::Message(arena) + BuildShipMsg::BuildShipMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena) : + ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:protobuf.BuildShipMsg) } - BuildShipMsg::BuildShipMsg( - ::google::protobuf::Arena* arena, const BuildShipMsg& from - ) : - BuildShipMsg(arena) - { - MergeFrom(from); - } - inline PROTOBUF_NDEBUG_INLINE BuildShipMsg::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena - ) : - _cached_size_{0} + BuildShipMsg::BuildShipMsg(const BuildShipMsg& from) : + ::PROTOBUF_NAMESPACE_ID::Message(), + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>( + from._internal_metadata_ + ); + // @@protoc_insertion_point(copy_constructor:protobuf.BuildShipMsg) } inline void BuildShipMsg::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, x_), 0, offsetof(Impl_, ship_type_) - offsetof(Impl_, x_) + sizeof(Impl_::ship_type_)); + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.x_){0} + + , + decltype(_impl_.y_){0} + + , + decltype(_impl_.team_id_){::int64_t{0}} + + , + decltype(_impl_.ship_type_){0} + + , + /*decltype(_impl_._cached_size_)*/ {}}; } + BuildShipMsg::~BuildShipMsg() { // @@protoc_insertion_point(destructor:protobuf.BuildShipMsg) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) + { + (void)arena; + return; + } SharedDtor(); } + inline void BuildShipMsg::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + ABSL_DCHECK(GetArenaForAllocation() == nullptr); } - PROTOBUF_NOINLINE void BuildShipMsg::Clear() + void BuildShipMsg::SetCachedSize(int size) const + { + _impl_._cached_size_.Set(size); + } + + void BuildShipMsg::Clear() { // @@protoc_insertion_point(message_clear_start:protobuf.BuildShipMsg) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; ::memset(&_impl_.x_, 0, static_cast<::size_t>(reinterpret_cast(&_impl_.ship_type_) - reinterpret_cast(&_impl_.x_)) + sizeof(_impl_.ship_type_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); - } - - const char* BuildShipMsg::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx - ) - { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + const char* BuildShipMsg::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) + { +#define CHK_(x) \ + if (PROTOBUF_PREDICT_FALSE(!(x))) \ + goto failure + while (!ctx->Done(&ptr)) + { + ::uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) + { + // int32 x = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) + { + _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + // int32 y = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) + { + _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + // .protobuf.ShipType ship_type = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) + { + ::int32_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + _internal_set_ship_type(static_cast<::protobuf::ShipType>(val)); + } + else + { + goto handle_unusual; + } + continue; + // int64 team_id = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 32)) + { + _impl_.team_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } + else + { + goto handle_unusual; + } + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) + { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, + ctx + ); + CHK_(ptr != nullptr); + } // while + message_done: return ptr; + failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<2, 4, 0, 0, 2> BuildShipMsg::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 4, - 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967280, // skipmap - offsetof(decltype(_table_), field_entries), - 4, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_BuildShipMsg_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, - {{ - // int64 team_id = 4; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(BuildShipMsg, _impl_.team_id_), 63>(), - {32, 63, 0, PROTOBUF_FIELD_OFFSET(BuildShipMsg, _impl_.team_id_)}}, - // int32 x = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(BuildShipMsg, _impl_.x_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(BuildShipMsg, _impl_.x_)}}, - // int32 y = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(BuildShipMsg, _impl_.y_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(BuildShipMsg, _impl_.y_)}}, - // .protobuf.ShipType ship_type = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(BuildShipMsg, _impl_.ship_type_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(BuildShipMsg, _impl_.ship_type_)}}, - }}, - {{65535, 65535}}, - {{ - // int32 x = 1; - {PROTOBUF_FIELD_OFFSET(BuildShipMsg, _impl_.x_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - // int32 y = 2; - {PROTOBUF_FIELD_OFFSET(BuildShipMsg, _impl_.y_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - // .protobuf.ShipType ship_type = 3; - {PROTOBUF_FIELD_OFFSET(BuildShipMsg, _impl_.ship_type_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - // int64 team_id = 4; - {PROTOBUF_FIELD_OFFSET(BuildShipMsg, _impl_.team_id_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt64)}, - }}, - // no aux_entries - {{}}, - }; - ::uint8_t* BuildShipMsg::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream ) const { // @@protoc_insertion_point(serialize_to_array_start:protobuf.BuildShipMsg) @@ -2975,19 +3332,19 @@ namespace protobuf // int32 x = 1; if (this->_internal_x() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<1>( - stream, this->_internal_x(), target - ); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray( + 1, this->_internal_x(), target + ); } // int32 y = 2; if (this->_internal_y() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<2>( - stream, this->_internal_y(), target - ); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray( + 2, this->_internal_y(), target + ); } // .protobuf.ShipType ship_type = 3; @@ -3002,18 +3359,17 @@ namespace protobuf // int64 team_id = 4; if (this->_internal_team_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64ToArrayWithField<4>( - stream, this->_internal_team_id(), target - ); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray( + 4, this->_internal_team_id(), target + ); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream - ); + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream + ); } // @@protoc_insertion_point(serialize_to_array_end:protobuf.BuildShipMsg) return target; @@ -3062,16 +3418,15 @@ namespace protobuf return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } - const ::google::protobuf::Message::ClassData BuildShipMsg::_class_data_ = { - BuildShipMsg::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor - }; - const ::google::protobuf::Message::ClassData* BuildShipMsg::GetClassData() const + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData BuildShipMsg::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + BuildShipMsg::MergeImpl}; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* BuildShipMsg::GetClassData() const { return &_class_data_; } - void BuildShipMsg::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) + void BuildShipMsg::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); @@ -3096,7 +3451,7 @@ namespace protobuf { _this->_internal_set_ship_type(from._internal_ship_type()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void BuildShipMsg::CopyFrom(const BuildShipMsg& from) @@ -3108,27 +3463,23 @@ namespace protobuf MergeFrom(from); } - PROTOBUF_NOINLINE bool BuildShipMsg::IsInitialized() const + bool BuildShipMsg::IsInitialized() const { return true; } - ::_pbi::CachedSize* BuildShipMsg::AccessCachedSize() const - { - return &_impl_._cached_size_; - } - void BuildShipMsg::InternalSwap(BuildShipMsg* PROTOBUF_RESTRICT other) + void BuildShipMsg::InternalSwap(BuildShipMsg* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::google::protobuf::internal::memswap< + ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(BuildShipMsg, _impl_.ship_type_) + sizeof(BuildShipMsg::_impl_.ship_type_) - PROTOBUF_FIELD_OFFSET(BuildShipMsg, _impl_.x_)>( reinterpret_cast(&_impl_.x_), reinterpret_cast(&other->_impl_.x_) ); } - ::google::protobuf::Metadata BuildShipMsg::GetMetadata() const + ::PROTOBUF_NAMESPACE_ID::Metadata BuildShipMsg::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_Message2Server_2eproto_getter, &descriptor_table_Message2Server_2eproto_once, file_level_metadata_Message2Server_2eproto[9] @@ -3136,11 +3487,67 @@ namespace protobuf } // @@protoc_insertion_point(namespace_scope) } // namespace protobuf -namespace google +PROTOBUF_NAMESPACE_OPEN +template<> +PROTOBUF_NOINLINE ::protobuf::NullRequest* + Arena::CreateMaybeMessage<::protobuf::NullRequest>(Arena* arena) { - namespace protobuf - { - } // namespace protobuf -} // namespace google + return Arena::CreateMessageInternal<::protobuf::NullRequest>(arena); +} +template<> +PROTOBUF_NOINLINE ::protobuf::IDMsg* + Arena::CreateMaybeMessage<::protobuf::IDMsg>(Arena* arena) +{ + return Arena::CreateMessageInternal<::protobuf::IDMsg>(arena); +} +template<> +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) +{ + return Arena::CreateMessageInternal<::protobuf::MoveMsg>(arena); +} +template<> +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) +{ + return Arena::CreateMessageInternal<::protobuf::AttackMsg>(arena); +} +template<> +PROTOBUF_NOINLINE ::protobuf::ConstructMsg* + Arena::CreateMaybeMessage<::protobuf::ConstructMsg>(Arena* arena) +{ + return Arena::CreateMessageInternal<::protobuf::ConstructMsg>(arena); +} +template<> +PROTOBUF_NOINLINE ::protobuf::RecoverMsg* + Arena::CreateMaybeMessage<::protobuf::RecoverMsg>(Arena* arena) +{ + return Arena::CreateMessageInternal<::protobuf::RecoverMsg>(arena); +} +template<> +PROTOBUF_NOINLINE ::protobuf::InstallMsg* + Arena::CreateMaybeMessage<::protobuf::InstallMsg>(Arena* arena) +{ + return Arena::CreateMessageInternal<::protobuf::InstallMsg>(arena); +} +template<> +PROTOBUF_NOINLINE ::protobuf::BuildShipMsg* + Arena::CreateMaybeMessage<::protobuf::BuildShipMsg>(Arena* arena) +{ + return Arena::CreateMessageInternal<::protobuf::BuildShipMsg>(arena); +} +PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) #include "google/protobuf/port_undef.inc" diff --git a/CAPI/cpp/proto/Message2Server.pb.h b/CAPI/cpp/proto/Message2Server.pb.h old mode 100755 new mode 100644 index db1648fd..50af2525 --- a/CAPI/cpp/proto/Message2Server.pb.h +++ b/CAPI/cpp/proto/Message2Server.pb.h @@ -1,6 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: Message2Server.proto -// Protobuf C++ Version: 4.25.1 #ifndef GOOGLE_PROTOBUF_INCLUDED_Message2Server_2eproto_2epb_2eh #define GOOGLE_PROTOBUF_INCLUDED_Message2Server_2eproto_2epb_2eh @@ -8,16 +7,15 @@ #include #include #include -#include #include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4025000 +#if PROTOBUF_VERSION < 4023000 #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 // PROTOBUF_VERSION -#if 4025001 < PROTOBUF_MIN_PROTOC_VERSION +#if 4023004 < 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." @@ -27,7 +25,6 @@ #include "google/protobuf/arena.h" #include "google/protobuf/arenastring.h" #include "google/protobuf/generated_message_bases.h" -#include "google/protobuf/generated_message_tctable_decl.h" #include "google/protobuf/generated_message_util.h" #include "google/protobuf/metadata_lite.h" #include "google/protobuf/generated_message_reflection.h" @@ -43,23 +40,19 @@ #define PROTOBUF_INTERNAL_EXPORT_Message2Server_2eproto -namespace google +PROTOBUF_NAMESPACE_OPEN +namespace internal { - namespace protobuf - { - namespace internal - { - class AnyMetadata; - } // namespace internal - } // namespace protobuf -} // namespace google + class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_Message2Server_2eproto { static const ::uint32_t offsets[]; }; -extern const ::google::protobuf::internal::DescriptorTable +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_Message2Server_2eproto; namespace protobuf { @@ -94,12 +87,28 @@ namespace protobuf struct SendMsgDefaultTypeInternal; extern SendMsgDefaultTypeInternal _SendMsg_default_instance_; } // namespace protobuf -namespace google -{ - namespace protobuf - { - } // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> +::protobuf::AttackMsg* Arena::CreateMaybeMessage<::protobuf::AttackMsg>(Arena*); +template<> +::protobuf::BuildShipMsg* Arena::CreateMaybeMessage<::protobuf::BuildShipMsg>(Arena*); +template<> +::protobuf::ConstructMsg* Arena::CreateMaybeMessage<::protobuf::ConstructMsg>(Arena*); +template<> +::protobuf::IDMsg* Arena::CreateMaybeMessage<::protobuf::IDMsg>(Arena*); +template<> +::protobuf::InstallMsg* Arena::CreateMaybeMessage<::protobuf::InstallMsg>(Arena*); +template<> +::protobuf::MoveMsg* Arena::CreateMaybeMessage<::protobuf::MoveMsg>(Arena*); +template<> +::protobuf::NullRequest* Arena::CreateMaybeMessage<::protobuf::NullRequest>(Arena*); +template<> +::protobuf::PlayerMsg* Arena::CreateMaybeMessage<::protobuf::PlayerMsg>(Arena*); +template<> +::protobuf::RecoverMsg* Arena::CreateMaybeMessage<::protobuf::RecoverMsg>(Arena*); +template<> +::protobuf::SendMsg* Arena::CreateMaybeMessage<::protobuf::SendMsg>(Arena*); +PROTOBUF_NAMESPACE_CLOSE namespace protobuf { @@ -108,41 +117,37 @@ namespace protobuf // ------------------------------------------------------------------- - class SendMsg final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf.SendMsg) */ + class NullRequest final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:protobuf.NullRequest) */ { public: - inline SendMsg() : - SendMsg(nullptr) + inline NullRequest() : + NullRequest(nullptr) { } - ~SendMsg() override; template - explicit PROTOBUF_CONSTEXPR SendMsg(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR NullRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline SendMsg(const SendMsg& from) : - SendMsg(nullptr, from) - { - } - SendMsg(SendMsg&& from) noexcept + NullRequest(const NullRequest& from); + NullRequest(NullRequest&& from) noexcept : - SendMsg() + NullRequest() { *this = ::std::move(from); } - inline SendMsg& operator=(const SendMsg& from) + inline NullRequest& operator=(const NullRequest& from) { CopyFrom(from); return *this; } - inline SendMsg& operator=(SendMsg&& from) noexcept + inline NullRequest& operator=(NullRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { @@ -155,305 +160,157 @@ namespace protobuf return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const SendMsg& default_instance() + static const NullRequest& default_instance() { return *internal_default_instance(); } - enum MessageCase - { - kTextMessage = 3, - kBinaryMessage = 4, - MESSAGE_NOT_SET = 0, - }; - - static inline const SendMsg* internal_default_instance() + static inline const NullRequest* internal_default_instance() { - return reinterpret_cast( - &_SendMsg_default_instance_ + return reinterpret_cast( + &_NullRequest_default_instance_ ); } static constexpr int kIndexInFileMessages = - 4; + 0; - friend void swap(SendMsg& a, SendMsg& b) + friend void swap(NullRequest& a, NullRequest& b) { a.Swap(&b); } - inline void Swap(SendMsg* other) + inline void Swap(NullRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SendMsg* other) + void UnsafeArenaSwap(NullRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SendMsg* New(::google::protobuf::Arena* arena = nullptr) const final + NullRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const SendMsg& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const SendMsg& from) + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const NullRequest& from) { - SendMsg::MergeImpl(*this, from); + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); } - - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream - ) const final; - int GetCachedSize() const + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const NullRequest& from) { - return _impl_._cached_size_.Get(); + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); } - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(SendMsg* other); + public: private: - friend class ::google::protobuf::internal::AnyMetadata; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "protobuf.SendMsg"; + return "protobuf.NullRequest"; } protected: - explicit SendMsg(::google::protobuf::Arena* arena); - SendMsg(::google::protobuf::Arena* arena, const SendMsg& from); + explicit NullRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData* GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int - { - kPlayerIdFieldNumber = 1, - kToPlayerIdFieldNumber = 2, - kTeamIdFieldNumber = 5, - kTextMessageFieldNumber = 3, - kBinaryMessageFieldNumber = 4, - }; - // int64 player_id = 1; - void clear_player_id(); - ::int64_t player_id() const; - void set_player_id(::int64_t value); - - private: - ::int64_t _internal_player_id() const; - void _internal_set_player_id(::int64_t value); - - public: - // int64 to_player_id = 2; - void clear_to_player_id(); - ::int64_t to_player_id() const; - void set_to_player_id(::int64_t value); - - private: - ::int64_t _internal_to_player_id() const; - void _internal_set_to_player_id(::int64_t value); - - public: - // int64 team_id = 5; - void clear_team_id(); - ::int64_t team_id() const; - void set_team_id(::int64_t value); - - private: - ::int64_t _internal_team_id() const; - void _internal_set_team_id(::int64_t value); - - public: - // string text_message = 3; - bool has_text_message() const; - void clear_text_message(); - const std::string& text_message() const; - template - void set_text_message(Arg_&& arg, Args_... args); - std::string* mutable_text_message(); - PROTOBUF_NODISCARD std::string* release_text_message(); - void set_allocated_text_message(std::string* value); - - private: - const std::string& _internal_text_message() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_text_message( - const std::string& value - ); - std::string* _internal_mutable_text_message(); - - public: - // bytes binary_message = 4; - bool has_binary_message() const; - void clear_binary_message(); - const std::string& binary_message() const; - template - void set_binary_message(Arg_&& arg, Args_... args); - std::string* mutable_binary_message(); - PROTOBUF_NODISCARD std::string* release_binary_message(); - void set_allocated_binary_message(std::string* value); - - private: - const std::string& _internal_binary_message() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_binary_message( - const std::string& value - ); - std::string* _internal_mutable_binary_message(); - - public: - void clear_message(); - MessageCase message_case() const; - // @@protoc_insertion_point(class_scope:protobuf.SendMsg) + // @@protoc_insertion_point(class_scope:protobuf.NullRequest) private: class _Internal; - void set_has_text_message(); - void set_has_binary_message(); - - inline bool has_message() const; - inline void clear_has_message(); - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, - 5, - 0, - 37, - 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; + friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized - ) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, const Impl_& from); - ::int64_t player_id_; - ::int64_t to_player_id_; - ::int64_t team_id_; - union MessageUnion - { - constexpr MessageUnion() : - _constinit_{} - { - } - ::google::protobuf::internal::ConstantInitialized _constinit_; - ::google::protobuf::internal::ArenaStringPtr text_message_; - ::google::protobuf::internal::ArenaStringPtr binary_message_; - } message_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::uint32_t _oneof_case_[1]; - - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union - { - Impl_ _impl_; }; friend struct ::TableStruct_Message2Server_2eproto; }; // ------------------------------------------------------------------- - class RecoverMsg final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf.RecoverMsg) */ + class IDMsg final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:protobuf.IDMsg) */ { public: - inline RecoverMsg() : - RecoverMsg(nullptr) + inline IDMsg() : + IDMsg(nullptr) { } - ~RecoverMsg() override; + ~IDMsg() override; template - explicit PROTOBUF_CONSTEXPR RecoverMsg(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR IDMsg(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline RecoverMsg(const RecoverMsg& from) : - RecoverMsg(nullptr, from) - { - } - RecoverMsg(RecoverMsg&& from) noexcept + IDMsg(const IDMsg& from); + IDMsg(IDMsg&& from) noexcept : - RecoverMsg() + IDMsg() { *this = ::std::move(from); } - inline RecoverMsg& operator=(const RecoverMsg& from) + inline IDMsg& operator=(const IDMsg& from) { CopyFrom(from); return *this; } - inline RecoverMsg& operator=(RecoverMsg&& from) noexcept + inline IDMsg& operator=(IDMsg&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { @@ -466,126 +323,123 @@ namespace protobuf return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const RecoverMsg& default_instance() + static const IDMsg& default_instance() { return *internal_default_instance(); } - static inline const RecoverMsg* internal_default_instance() + static inline const IDMsg* internal_default_instance() { - return reinterpret_cast( - &_RecoverMsg_default_instance_ + return reinterpret_cast( + &_IDMsg_default_instance_ ); } static constexpr int kIndexInFileMessages = - 7; + 1; - friend void swap(RecoverMsg& a, RecoverMsg& b) + friend void swap(IDMsg& a, IDMsg& b) { a.Swap(&b); } - inline void Swap(RecoverMsg* other) + inline void Swap(IDMsg* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(RecoverMsg* other) + void UnsafeArenaSwap(IDMsg* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - RecoverMsg* New(::google::protobuf::Arena* arena = nullptr) const final + IDMsg* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const RecoverMsg& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const RecoverMsg& from) + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const IDMsg& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const IDMsg& from) { - RecoverMsg::MergeImpl(*this, from); + IDMsg::MergeImpl(*this, from); } private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream ) const final; - int GetCachedSize() const + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); void SharedDtor(); - void InternalSwap(RecoverMsg* other); + void SetCachedSize(int size) const final; + void InternalSwap(IDMsg* other); private: - friend class ::google::protobuf::internal::AnyMetadata; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "protobuf.RecoverMsg"; + return "protobuf.IDMsg"; } protected: - explicit RecoverMsg(::google::protobuf::Arena* arena); - RecoverMsg(::google::protobuf::Arena* arena, const RecoverMsg& from); + explicit IDMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData* GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -594,8 +448,7 @@ namespace protobuf enum : int { kPlayerIdFieldNumber = 1, - kRecoverFieldNumber = 2, - kTeamIdFieldNumber = 3, + kTeamIdFieldNumber = 2, }; // int64 player_id = 1; void clear_player_id(); @@ -607,17 +460,7 @@ namespace protobuf void _internal_set_player_id(::int64_t value); public: - // int64 recover = 2; - void clear_recover(); - ::int64_t recover() const; - void set_recover(::int64_t value); - - private: - ::int64_t _internal_recover() const; - void _internal_set_recover(::int64_t value); - - public: - // int64 team_id = 3; + // int64 team_id = 2; void clear_team_id(); ::int64_t team_id() const; void set_team_id(::int64_t value); @@ -627,37 +470,20 @@ namespace protobuf void _internal_set_team_id(::int64_t value); public: - // @@protoc_insertion_point(class_scope:protobuf.RecoverMsg) + // @@protoc_insertion_point(class_scope:protobuf.IDMsg) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, - 3, - 0, - 0, - 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; + friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized - ) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, const Impl_& from); ::int64_t player_id_; - ::int64_t recover_; ::int64_t team_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; }; union { @@ -667,7 +493,7 @@ namespace protobuf }; // ------------------------------------------------------------------- class PlayerMsg final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf.PlayerMsg) */ + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:protobuf.PlayerMsg) */ { public: inline PlayerMsg() : @@ -676,12 +502,9 @@ namespace protobuf } ~PlayerMsg() override; template - explicit PROTOBUF_CONSTEXPR PlayerMsg(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR PlayerMsg(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline PlayerMsg(const PlayerMsg& from) : - PlayerMsg(nullptr, from) - { - } + PlayerMsg(const PlayerMsg& from); PlayerMsg(PlayerMsg&& from) noexcept : PlayerMsg() @@ -698,9 +521,9 @@ namespace protobuf { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { @@ -713,26 +536,24 @@ namespace protobuf return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } @@ -758,81 +579,80 @@ namespace protobuf if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(PlayerMsg* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - PlayerMsg* New(::google::protobuf::Arena* arena = nullptr) const final + PlayerMsg* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const PlayerMsg& from); - using ::google::protobuf::Message::MergeFrom; + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom(const PlayerMsg& from) { PlayerMsg::MergeImpl(*this, from); } private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream ) const final; - int GetCachedSize() const + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(PlayerMsg* other); private: - friend class ::google::protobuf::internal::AnyMetadata; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::absl::string_view FullMessageName() { return "protobuf.PlayerMsg"; } protected: - explicit PlayerMsg(::google::protobuf::Arena* arena); - PlayerMsg(::google::protobuf::Arena* arena, const PlayerMsg& from); + explicit PlayerMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData* GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -901,34 +721,18 @@ namespace protobuf private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, - 5, - 0, - 0, - 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; + friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized - ) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, const Impl_& from); ::int64_t player_id_; ::int64_t team_id_; int ship_type_; ::int32_t x_; ::int32_t y_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; }; union { @@ -937,40 +741,38 @@ namespace protobuf friend struct ::TableStruct_Message2Server_2eproto; }; // ------------------------------------------------------------------- - class NullRequest final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:protobuf.NullRequest) */ + class MoveMsg final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:protobuf.MoveMsg) */ { public: - inline NullRequest() : - NullRequest(nullptr) + inline MoveMsg() : + MoveMsg(nullptr) { } + ~MoveMsg() override; template - explicit PROTOBUF_CONSTEXPR NullRequest(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR MoveMsg(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline NullRequest(const NullRequest& from) : - NullRequest(nullptr, from) - { - } - NullRequest(NullRequest&& from) noexcept + MoveMsg(const MoveMsg& from); + MoveMsg(MoveMsg&& from) noexcept : - NullRequest() + MoveMsg() { *this = ::std::move(from); } - inline NullRequest& operator=(const NullRequest& from) + inline MoveMsg& operator=(const MoveMsg& from) { CopyFrom(from); return *this; } - inline NullRequest& operator=(NullRequest&& from) noexcept + inline MoveMsg& operator=(MoveMsg&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { @@ -983,168 +785,231 @@ namespace protobuf return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const NullRequest& default_instance() + static const MoveMsg& default_instance() { return *internal_default_instance(); } - static inline const NullRequest* internal_default_instance() + static inline const MoveMsg* internal_default_instance() { - return reinterpret_cast( - &_NullRequest_default_instance_ + return reinterpret_cast( + &_MoveMsg_default_instance_ ); } static constexpr int kIndexInFileMessages = - 0; + 3; - friend void swap(NullRequest& a, NullRequest& b) + friend void swap(MoveMsg& a, MoveMsg& b) { a.Swap(&b); } - inline void Swap(NullRequest* other) + inline void Swap(MoveMsg* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(NullRequest* other) + void UnsafeArenaSwap(MoveMsg* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - NullRequest* New(::google::protobuf::Arena* arena = nullptr) const final + MoveMsg* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return CreateMaybeMessage(arena); } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const NullRequest& from) + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const MoveMsg& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const MoveMsg& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); + MoveMsg::MergeImpl(*this, from); } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const NullRequest& from) + + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream + ) const final; + int GetCachedSize() const final { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + return _impl_._cached_size_.Get(); } - public: + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MoveMsg* other); private: - friend class ::google::protobuf::internal::AnyMetadata; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "protobuf.NullRequest"; + return "protobuf.MoveMsg"; } protected: - explicit NullRequest(::google::protobuf::Arena* arena); - NullRequest(::google::protobuf::Arena* arena, const NullRequest& from); + explicit MoveMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::google::protobuf::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:protobuf.NullRequest) + enum : int + { + kPlayerIdFieldNumber = 1, + kAngleFieldNumber = 2, + kTimeInMillisecondsFieldNumber = 3, + kTeamIdFieldNumber = 4, + }; + // int64 player_id = 1; + void clear_player_id(); + ::int64_t player_id() const; + void set_player_id(::int64_t value); + + private: + ::int64_t _internal_player_id() const; + void _internal_set_player_id(::int64_t value); + + public: + // double angle = 2; + void clear_angle(); + double angle() const; + void set_angle(double value); + + private: + double _internal_angle() const; + void _internal_set_angle(double value); + + public: + // int64 time_in_milliseconds = 3; + void clear_time_in_milliseconds(); + ::int64_t time_in_milliseconds() const; + void set_time_in_milliseconds(::int64_t value); + + private: + ::int64_t _internal_time_in_milliseconds() const; + void _internal_set_time_in_milliseconds(::int64_t value); + + public: + // int64 team_id = 4; + void clear_team_id(); + ::int64_t team_id() const; + void set_team_id(::int64_t value); + + private: + ::int64_t _internal_team_id() const; + void _internal_set_team_id(::int64_t value); + + public: + // @@protoc_insertion_point(class_scope:protobuf.MoveMsg) private: class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; + friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized - ) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER + ::int64_t player_id_; + double angle_; + ::int64_t time_in_milliseconds_; + ::int64_t team_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union + { + Impl_ _impl_; }; friend struct ::TableStruct_Message2Server_2eproto; }; // ------------------------------------------------------------------- - class MoveMsg final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf.MoveMsg) */ + class SendMsg final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:protobuf.SendMsg) */ { public: - inline MoveMsg() : - MoveMsg(nullptr) + inline SendMsg() : + SendMsg(nullptr) { } - ~MoveMsg() override; + ~SendMsg() override; template - explicit PROTOBUF_CONSTEXPR MoveMsg(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR SendMsg(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline MoveMsg(const MoveMsg& from) : - MoveMsg(nullptr, from) - { - } - MoveMsg(MoveMsg&& from) noexcept + SendMsg(const SendMsg& from); + SendMsg(SendMsg&& from) noexcept : - MoveMsg() + SendMsg() { *this = ::std::move(from); } - inline MoveMsg& operator=(const MoveMsg& from) + inline SendMsg& operator=(const SendMsg& from) { CopyFrom(from); return *this; } - inline MoveMsg& operator=(MoveMsg&& from) noexcept + inline SendMsg& operator=(SendMsg&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { @@ -1157,126 +1022,130 @@ namespace protobuf return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const MoveMsg& default_instance() + static const SendMsg& default_instance() { return *internal_default_instance(); } - static inline const MoveMsg* internal_default_instance() + enum MessageCase { - return reinterpret_cast( - &_MoveMsg_default_instance_ + kTextMessage = 3, + kBinaryMessage = 4, + MESSAGE_NOT_SET = 0, + }; + + static inline const SendMsg* internal_default_instance() + { + return reinterpret_cast( + &_SendMsg_default_instance_ ); } static constexpr int kIndexInFileMessages = - 3; + 4; - friend void swap(MoveMsg& a, MoveMsg& b) + friend void swap(SendMsg& a, SendMsg& b) { a.Swap(&b); } - inline void Swap(MoveMsg* other) + inline void Swap(SendMsg* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(MoveMsg* other) + void UnsafeArenaSwap(SendMsg* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - MoveMsg* New(::google::protobuf::Arena* arena = nullptr) const final + SendMsg* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const MoveMsg& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const MoveMsg& from) + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const SendMsg& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const SendMsg& from) { - MoveMsg::MergeImpl(*this, from); + SendMsg::MergeImpl(*this, from); } private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream ) const final; - int GetCachedSize() const + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); void SharedDtor(); - void InternalSwap(MoveMsg* other); + void SetCachedSize(int size) const final; + void InternalSwap(SendMsg* other); private: - friend class ::google::protobuf::internal::AnyMetadata; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "protobuf.MoveMsg"; + return "protobuf.SendMsg"; } protected: - explicit MoveMsg(::google::protobuf::Arena* arena); - MoveMsg(::google::protobuf::Arena* arena, const MoveMsg& from); + explicit SendMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData* GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1285,9 +1154,10 @@ namespace protobuf enum : int { kPlayerIdFieldNumber = 1, - kAngleFieldNumber = 2, - kTimeInMillisecondsFieldNumber = 3, - kTeamIdFieldNumber = 4, + kToPlayerIdFieldNumber = 2, + kTeamIdFieldNumber = 5, + kTextMessageFieldNumber = 3, + kBinaryMessageFieldNumber = 4, }; // int64 player_id = 1; void clear_player_id(); @@ -1299,27 +1169,17 @@ namespace protobuf void _internal_set_player_id(::int64_t value); public: - // double angle = 2; - void clear_angle(); - double angle() const; - void set_angle(double value); - - private: - double _internal_angle() const; - void _internal_set_angle(double value); - - public: - // int64 time_in_milliseconds = 3; - void clear_time_in_milliseconds(); - ::int64_t time_in_milliseconds() const; - void set_time_in_milliseconds(::int64_t value); + // int64 to_player_id = 2; + void clear_to_player_id(); + ::int64_t to_player_id() const; + void set_to_player_id(::int64_t value); private: - ::int64_t _internal_time_in_milliseconds() const; - void _internal_set_time_in_milliseconds(::int64_t value); + ::int64_t _internal_to_player_id() const; + void _internal_set_to_player_id(::int64_t value); public: - // int64 team_id = 4; + // int64 team_id = 5; void clear_team_id(); ::int64_t team_id() const; void set_team_id(::int64_t value); @@ -1329,38 +1189,77 @@ namespace protobuf void _internal_set_team_id(::int64_t value); public: - // @@protoc_insertion_point(class_scope:protobuf.MoveMsg) + // string text_message = 3; + bool has_text_message() const; + void clear_text_message(); + const std::string& text_message() const; + + template + void set_text_message(Arg_&& arg, Args_... args); + std::string* mutable_text_message(); + PROTOBUF_NODISCARD std::string* release_text_message(); + void set_allocated_text_message(std::string* ptr); + + private: + const std::string& _internal_text_message() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_text_message( + const std::string& value + ); + std::string* _internal_mutable_text_message(); + + public: + // bytes binary_message = 4; + bool has_binary_message() const; + void clear_binary_message(); + const std::string& binary_message() const; + + template + void set_binary_message(Arg_&& arg, Args_... args); + std::string* mutable_binary_message(); + PROTOBUF_NODISCARD std::string* release_binary_message(); + void set_allocated_binary_message(std::string* ptr); + + private: + const std::string& _internal_binary_message() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_binary_message( + const std::string& value + ); + std::string* _internal_mutable_binary_message(); + + public: + void clear_message(); + MessageCase message_case() const; + // @@protoc_insertion_point(class_scope:protobuf.SendMsg) private: class _Internal; + void set_has_text_message(); + void set_has_binary_message(); + + inline bool has_message() const; + inline void clear_has_message(); - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, - 4, - 0, - 0, - 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; + friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized - ) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, const Impl_& from); ::int64_t player_id_; - double angle_; - ::int64_t time_in_milliseconds_; + ::int64_t to_player_id_; ::int64_t team_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER + union MessageUnion + { + constexpr MessageUnion() : + _constinit_{} + { + } + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr text_message_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr binary_message_; + } message_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::uint32_t _oneof_case_[1]; }; union { @@ -1369,41 +1268,38 @@ namespace protobuf friend struct ::TableStruct_Message2Server_2eproto; }; // ------------------------------------------------------------------- - class InstallMsg final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf.InstallMsg) */ + class AttackMsg final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:protobuf.AttackMsg) */ { public: - inline InstallMsg() : - InstallMsg(nullptr) + inline AttackMsg() : + AttackMsg(nullptr) { } - ~InstallMsg() override; + ~AttackMsg() override; template - explicit PROTOBUF_CONSTEXPR InstallMsg(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR AttackMsg(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline InstallMsg(const InstallMsg& from) : - InstallMsg(nullptr, from) - { - } - InstallMsg(InstallMsg&& from) noexcept + AttackMsg(const AttackMsg& from); + AttackMsg(AttackMsg&& from) noexcept : - InstallMsg() + AttackMsg() { *this = ::std::move(from); } - inline InstallMsg& operator=(const InstallMsg& from) + inline AttackMsg& operator=(const AttackMsg& from) { CopyFrom(from); return *this; } - inline InstallMsg& operator=(InstallMsg&& from) noexcept + inline AttackMsg& operator=(AttackMsg&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { @@ -1416,126 +1312,123 @@ namespace protobuf return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const InstallMsg& default_instance() + static const AttackMsg& default_instance() { return *internal_default_instance(); } - static inline const InstallMsg* internal_default_instance() + static inline const AttackMsg* internal_default_instance() { - return reinterpret_cast( - &_InstallMsg_default_instance_ + return reinterpret_cast( + &_AttackMsg_default_instance_ ); } static constexpr int kIndexInFileMessages = - 8; + 5; - friend void swap(InstallMsg& a, InstallMsg& b) + friend void swap(AttackMsg& a, AttackMsg& b) { a.Swap(&b); } - inline void Swap(InstallMsg* other) + inline void Swap(AttackMsg* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(InstallMsg* other) + void UnsafeArenaSwap(AttackMsg* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - InstallMsg* New(::google::protobuf::Arena* arena = nullptr) const final + AttackMsg* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const InstallMsg& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const InstallMsg& from) + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const AttackMsg& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const AttackMsg& from) { - InstallMsg::MergeImpl(*this, from); + AttackMsg::MergeImpl(*this, from); } private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream ) const final; - int GetCachedSize() const + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); void SharedDtor(); - void InternalSwap(InstallMsg* other); + void SetCachedSize(int size) const final; + void InternalSwap(AttackMsg* other); private: - friend class ::google::protobuf::internal::AnyMetadata; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "protobuf.InstallMsg"; + return "protobuf.AttackMsg"; } protected: - explicit InstallMsg(::google::protobuf::Arena* arena); - InstallMsg(::google::protobuf::Arena* arena, const InstallMsg& from); + explicit AttackMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData* GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1543,11 +1436,11 @@ namespace protobuf enum : int { - kPlayerIdFieldNumber = 2, + kPlayerIdFieldNumber = 1, + kAngleFieldNumber = 2, kTeamIdFieldNumber = 3, - kModuleTypeFieldNumber = 1, }; - // int64 player_id = 2; + // int64 player_id = 1; void clear_player_id(); ::int64_t player_id() const; void set_player_id(::int64_t value); @@ -1556,6 +1449,16 @@ namespace protobuf ::int64_t _internal_player_id() const; void _internal_set_player_id(::int64_t value); + public: + // double angle = 2; + void clear_angle(); + double angle() const; + void set_angle(double value); + + private: + double _internal_angle() const; + void _internal_set_angle(double value); + public: // int64 team_id = 3; void clear_team_id(); @@ -1567,47 +1470,21 @@ namespace protobuf void _internal_set_team_id(::int64_t value); public: - // .protobuf.ModuleType module_type = 1; - void clear_module_type(); - ::protobuf::ModuleType module_type() const; - void set_module_type(::protobuf::ModuleType value); - - private: - ::protobuf::ModuleType _internal_module_type() const; - void _internal_set_module_type(::protobuf::ModuleType value); - - public: - // @@protoc_insertion_point(class_scope:protobuf.InstallMsg) + // @@protoc_insertion_point(class_scope:protobuf.AttackMsg) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, - 3, - 0, - 0, - 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; + friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized - ) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, const Impl_& from); ::int64_t player_id_; + double angle_; ::int64_t team_id_; - int module_type_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; }; union { @@ -1616,41 +1493,38 @@ namespace protobuf friend struct ::TableStruct_Message2Server_2eproto; }; // ------------------------------------------------------------------- - class IDMsg final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf.IDMsg) */ + class ConstructMsg final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:protobuf.ConstructMsg) */ { public: - inline IDMsg() : - IDMsg(nullptr) + inline ConstructMsg() : + ConstructMsg(nullptr) { } - ~IDMsg() override; + ~ConstructMsg() override; template - explicit PROTOBUF_CONSTEXPR IDMsg(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR ConstructMsg(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline IDMsg(const IDMsg& from) : - IDMsg(nullptr, from) - { - } - IDMsg(IDMsg&& from) noexcept + ConstructMsg(const ConstructMsg& from); + ConstructMsg(ConstructMsg&& from) noexcept : - IDMsg() + ConstructMsg() { *this = ::std::move(from); } - inline IDMsg& operator=(const IDMsg& from) + inline ConstructMsg& operator=(const ConstructMsg& from) { CopyFrom(from); return *this; } - inline IDMsg& operator=(IDMsg&& from) noexcept + inline ConstructMsg& operator=(ConstructMsg&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { @@ -1663,126 +1537,123 @@ namespace protobuf return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const IDMsg& default_instance() + static const ConstructMsg& default_instance() { return *internal_default_instance(); } - static inline const IDMsg* internal_default_instance() + static inline const ConstructMsg* internal_default_instance() { - return reinterpret_cast( - &_IDMsg_default_instance_ + return reinterpret_cast( + &_ConstructMsg_default_instance_ ); } static constexpr int kIndexInFileMessages = - 1; + 6; - friend void swap(IDMsg& a, IDMsg& b) + friend void swap(ConstructMsg& a, ConstructMsg& b) { a.Swap(&b); } - inline void Swap(IDMsg* other) + inline void Swap(ConstructMsg* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(IDMsg* other) + void UnsafeArenaSwap(ConstructMsg* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - IDMsg* New(::google::protobuf::Arena* arena = nullptr) const final + ConstructMsg* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const IDMsg& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const IDMsg& from) + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ConstructMsg& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ConstructMsg& from) { - IDMsg::MergeImpl(*this, from); + ConstructMsg::MergeImpl(*this, from); } private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream ) const final; - int GetCachedSize() const + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); void SharedDtor(); - void InternalSwap(IDMsg* other); + void SetCachedSize(int size) const final; + void InternalSwap(ConstructMsg* other); private: - friend class ::google::protobuf::internal::AnyMetadata; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "protobuf.IDMsg"; + return "protobuf.ConstructMsg"; } protected: - explicit IDMsg(::google::protobuf::Arena* arena); - IDMsg(::google::protobuf::Arena* arena, const IDMsg& from); + explicit ConstructMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData* GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1791,7 +1662,8 @@ namespace protobuf enum : int { kPlayerIdFieldNumber = 1, - kTeamIdFieldNumber = 2, + kTeamIdFieldNumber = 3, + kConstructionTypeFieldNumber = 2, }; // int64 player_id = 1; void clear_player_id(); @@ -1803,7 +1675,7 @@ namespace protobuf void _internal_set_player_id(::int64_t value); public: - // int64 team_id = 2; + // int64 team_id = 3; void clear_team_id(); ::int64_t team_id() const; void set_team_id(::int64_t value); @@ -1813,36 +1685,31 @@ namespace protobuf void _internal_set_team_id(::int64_t value); public: - // @@protoc_insertion_point(class_scope:protobuf.IDMsg) + // .protobuf.ConstructionType construction_type = 2; + void clear_construction_type(); + ::protobuf::ConstructionType construction_type() const; + void set_construction_type(::protobuf::ConstructionType value); + + private: + ::protobuf::ConstructionType _internal_construction_type() const; + void _internal_set_construction_type(::protobuf::ConstructionType value); + + public: + // @@protoc_insertion_point(class_scope:protobuf.ConstructMsg) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, - 2, - 0, - 0, - 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; + friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized - ) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, const Impl_& from); ::int64_t player_id_; ::int64_t team_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER + int construction_type_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; }; union { @@ -1851,41 +1718,38 @@ namespace protobuf friend struct ::TableStruct_Message2Server_2eproto; }; // ------------------------------------------------------------------- - class ConstructMsg final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf.ConstructMsg) */ + class RecoverMsg final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:protobuf.RecoverMsg) */ { public: - inline ConstructMsg() : - ConstructMsg(nullptr) + inline RecoverMsg() : + RecoverMsg(nullptr) { } - ~ConstructMsg() override; + ~RecoverMsg() override; template - explicit PROTOBUF_CONSTEXPR ConstructMsg(::google::protobuf::internal::ConstantInitialized); - - inline ConstructMsg(const ConstructMsg& from) : - ConstructMsg(nullptr, from) - { - } - ConstructMsg(ConstructMsg&& from) noexcept + explicit PROTOBUF_CONSTEXPR RecoverMsg(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + RecoverMsg(const RecoverMsg& from); + RecoverMsg(RecoverMsg&& from) noexcept : - ConstructMsg() + RecoverMsg() { *this = ::std::move(from); } - inline ConstructMsg& operator=(const ConstructMsg& from) + inline RecoverMsg& operator=(const RecoverMsg& from) { CopyFrom(from); return *this; } - inline ConstructMsg& operator=(ConstructMsg&& from) noexcept + inline RecoverMsg& operator=(RecoverMsg&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { @@ -1898,126 +1762,123 @@ namespace protobuf return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ConstructMsg& default_instance() + static const RecoverMsg& default_instance() { return *internal_default_instance(); } - static inline const ConstructMsg* internal_default_instance() + static inline const RecoverMsg* internal_default_instance() { - return reinterpret_cast( - &_ConstructMsg_default_instance_ + return reinterpret_cast( + &_RecoverMsg_default_instance_ ); } static constexpr int kIndexInFileMessages = - 6; + 7; - friend void swap(ConstructMsg& a, ConstructMsg& b) + friend void swap(RecoverMsg& a, RecoverMsg& b) { a.Swap(&b); } - inline void Swap(ConstructMsg* other) + inline void Swap(RecoverMsg* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ConstructMsg* other) + void UnsafeArenaSwap(RecoverMsg* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ConstructMsg* New(::google::protobuf::Arena* arena = nullptr) const final + RecoverMsg* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ConstructMsg& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const ConstructMsg& from) + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const RecoverMsg& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const RecoverMsg& from) { - ConstructMsg::MergeImpl(*this, from); + RecoverMsg::MergeImpl(*this, from); } private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream ) const final; - int GetCachedSize() const + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); void SharedDtor(); - void InternalSwap(ConstructMsg* other); + void SetCachedSize(int size) const final; + void InternalSwap(RecoverMsg* other); private: - friend class ::google::protobuf::internal::AnyMetadata; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "protobuf.ConstructMsg"; + return "protobuf.RecoverMsg"; } protected: - explicit ConstructMsg(::google::protobuf::Arena* arena); - ConstructMsg(::google::protobuf::Arena* arena, const ConstructMsg& from); + explicit RecoverMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData* GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -2026,8 +1887,8 @@ namespace protobuf enum : int { kPlayerIdFieldNumber = 1, + kRecoverFieldNumber = 2, kTeamIdFieldNumber = 3, - kConstructionTypeFieldNumber = 2, }; // int64 player_id = 1; void clear_player_id(); @@ -2038,6 +1899,16 @@ namespace protobuf ::int64_t _internal_player_id() const; void _internal_set_player_id(::int64_t value); + public: + // int64 recover = 2; + void clear_recover(); + ::int64_t recover() const; + void set_recover(::int64_t value); + + private: + ::int64_t _internal_recover() const; + void _internal_set_recover(::int64_t value); + public: // int64 team_id = 3; void clear_team_id(); @@ -2049,47 +1920,21 @@ namespace protobuf void _internal_set_team_id(::int64_t value); public: - // .protobuf.ConstructionType construction_type = 2; - void clear_construction_type(); - ::protobuf::ConstructionType construction_type() const; - void set_construction_type(::protobuf::ConstructionType value); - - private: - ::protobuf::ConstructionType _internal_construction_type() const; - void _internal_set_construction_type(::protobuf::ConstructionType value); - - public: - // @@protoc_insertion_point(class_scope:protobuf.ConstructMsg) + // @@protoc_insertion_point(class_scope:protobuf.RecoverMsg) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, - 3, - 0, - 0, - 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; + friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized - ) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, const Impl_& from); ::int64_t player_id_; + ::int64_t recover_; ::int64_t team_id_; - int construction_type_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; }; union { @@ -2098,41 +1943,38 @@ namespace protobuf friend struct ::TableStruct_Message2Server_2eproto; }; // ------------------------------------------------------------------- - class BuildShipMsg final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf.BuildShipMsg) */ + class InstallMsg final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:protobuf.InstallMsg) */ { public: - inline BuildShipMsg() : - BuildShipMsg(nullptr) + inline InstallMsg() : + InstallMsg(nullptr) { } - ~BuildShipMsg() override; + ~InstallMsg() override; template - explicit PROTOBUF_CONSTEXPR BuildShipMsg(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR InstallMsg(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline BuildShipMsg(const BuildShipMsg& from) : - BuildShipMsg(nullptr, from) - { - } - BuildShipMsg(BuildShipMsg&& from) noexcept + InstallMsg(const InstallMsg& from); + InstallMsg(InstallMsg&& from) noexcept : - BuildShipMsg() + InstallMsg() { *this = ::std::move(from); } - inline BuildShipMsg& operator=(const BuildShipMsg& from) + inline InstallMsg& operator=(const InstallMsg& from) { CopyFrom(from); return *this; } - inline BuildShipMsg& operator=(BuildShipMsg&& from) noexcept + inline InstallMsg& operator=(InstallMsg&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { @@ -2145,126 +1987,123 @@ namespace protobuf return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const BuildShipMsg& default_instance() + static const InstallMsg& default_instance() { return *internal_default_instance(); } - static inline const BuildShipMsg* internal_default_instance() + static inline const InstallMsg* internal_default_instance() { - return reinterpret_cast( - &_BuildShipMsg_default_instance_ + return reinterpret_cast( + &_InstallMsg_default_instance_ ); } static constexpr int kIndexInFileMessages = - 9; + 8; - friend void swap(BuildShipMsg& a, BuildShipMsg& b) + friend void swap(InstallMsg& a, InstallMsg& b) { a.Swap(&b); } - inline void Swap(BuildShipMsg* other) + inline void Swap(InstallMsg* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(BuildShipMsg* other) + void UnsafeArenaSwap(InstallMsg* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - BuildShipMsg* New(::google::protobuf::Arena* arena = nullptr) const final + InstallMsg* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const BuildShipMsg& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const BuildShipMsg& from) + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const InstallMsg& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const InstallMsg& from) { - BuildShipMsg::MergeImpl(*this, from); + InstallMsg::MergeImpl(*this, from); } private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream ) const final; - int GetCachedSize() const + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); void SharedDtor(); - void InternalSwap(BuildShipMsg* other); + void SetCachedSize(int size) const final; + void InternalSwap(InstallMsg* other); private: - friend class ::google::protobuf::internal::AnyMetadata; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "protobuf.BuildShipMsg"; + return "protobuf.InstallMsg"; } protected: - explicit BuildShipMsg(::google::protobuf::Arena* arena); - BuildShipMsg(::google::protobuf::Arena* arena, const BuildShipMsg& from); + explicit InstallMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData* GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -2272,32 +2111,21 @@ namespace protobuf enum : int { - kXFieldNumber = 1, - kYFieldNumber = 2, - kTeamIdFieldNumber = 4, - kShipTypeFieldNumber = 3, + kPlayerIdFieldNumber = 2, + kTeamIdFieldNumber = 3, + kModuleTypeFieldNumber = 1, }; - // int32 x = 1; - void clear_x(); - ::int32_t x() const; - void set_x(::int32_t value); - - private: - ::int32_t _internal_x() const; - void _internal_set_x(::int32_t value); - - public: - // int32 y = 2; - void clear_y(); - ::int32_t y() const; - void set_y(::int32_t value); + // int64 player_id = 2; + void clear_player_id(); + ::int64_t player_id() const; + void set_player_id(::int64_t value); private: - ::int32_t _internal_y() const; - void _internal_set_y(::int32_t value); + ::int64_t _internal_player_id() const; + void _internal_set_player_id(::int64_t value); public: - // int64 team_id = 4; + // int64 team_id = 3; void clear_team_id(); ::int64_t team_id() const; void set_team_id(::int64_t value); @@ -2307,48 +2135,31 @@ namespace protobuf void _internal_set_team_id(::int64_t value); public: - // .protobuf.ShipType ship_type = 3; - void clear_ship_type(); - ::protobuf::ShipType ship_type() const; - void set_ship_type(::protobuf::ShipType value); + // .protobuf.ModuleType module_type = 1; + void clear_module_type(); + ::protobuf::ModuleType module_type() const; + void set_module_type(::protobuf::ModuleType value); private: - ::protobuf::ShipType _internal_ship_type() const; - void _internal_set_ship_type(::protobuf::ShipType value); + ::protobuf::ModuleType _internal_module_type() const; + void _internal_set_module_type(::protobuf::ModuleType value); public: - // @@protoc_insertion_point(class_scope:protobuf.BuildShipMsg) + // @@protoc_insertion_point(class_scope:protobuf.InstallMsg) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, - 4, - 0, - 0, - 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; + friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized - ) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, const Impl_& from); - ::int32_t x_; - ::int32_t y_; + ::int64_t player_id_; ::int64_t team_id_; - int ship_type_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER + int module_type_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; }; union { @@ -2357,41 +2168,38 @@ namespace protobuf friend struct ::TableStruct_Message2Server_2eproto; }; // ------------------------------------------------------------------- - class AttackMsg final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf.AttackMsg) */ + class BuildShipMsg final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:protobuf.BuildShipMsg) */ { public: - inline AttackMsg() : - AttackMsg(nullptr) + inline BuildShipMsg() : + BuildShipMsg(nullptr) { } - ~AttackMsg() override; + ~BuildShipMsg() override; template - explicit PROTOBUF_CONSTEXPR AttackMsg(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR BuildShipMsg(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline AttackMsg(const AttackMsg& from) : - AttackMsg(nullptr, from) - { - } - AttackMsg(AttackMsg&& from) noexcept + BuildShipMsg(const BuildShipMsg& from); + BuildShipMsg(BuildShipMsg&& from) noexcept : - AttackMsg() + BuildShipMsg() { *this = ::std::move(from); } - inline AttackMsg& operator=(const AttackMsg& from) + inline BuildShipMsg& operator=(const BuildShipMsg& from) { CopyFrom(from); return *this; } - inline AttackMsg& operator=(AttackMsg&& from) noexcept + inline BuildShipMsg& operator=(BuildShipMsg&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { @@ -2404,126 +2212,123 @@ namespace protobuf return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const AttackMsg& default_instance() + static const BuildShipMsg& default_instance() { return *internal_default_instance(); } - static inline const AttackMsg* internal_default_instance() + static inline const BuildShipMsg* internal_default_instance() { - return reinterpret_cast( - &_AttackMsg_default_instance_ + return reinterpret_cast( + &_BuildShipMsg_default_instance_ ); } static constexpr int kIndexInFileMessages = - 5; + 9; - friend void swap(AttackMsg& a, AttackMsg& b) + friend void swap(BuildShipMsg& a, BuildShipMsg& b) { a.Swap(&b); } - inline void Swap(AttackMsg* other) + inline void Swap(BuildShipMsg* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(AttackMsg* other) + void UnsafeArenaSwap(BuildShipMsg* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - AttackMsg* New(::google::protobuf::Arena* arena = nullptr) const final + BuildShipMsg* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const AttackMsg& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const AttackMsg& from) + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const BuildShipMsg& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const BuildShipMsg& from) { - AttackMsg::MergeImpl(*this, from); + BuildShipMsg::MergeImpl(*this, from); } private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream ) const final; - int GetCachedSize() const + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); void SharedDtor(); - void InternalSwap(AttackMsg* other); + void SetCachedSize(int size) const final; + void InternalSwap(BuildShipMsg* other); private: - friend class ::google::protobuf::internal::AnyMetadata; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "protobuf.AttackMsg"; + return "protobuf.BuildShipMsg"; } protected: - explicit AttackMsg(::google::protobuf::Arena* arena); - AttackMsg(::google::protobuf::Arena* arena, const AttackMsg& from); + explicit BuildShipMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData* GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -2531,31 +2336,32 @@ namespace protobuf enum : int { - kPlayerIdFieldNumber = 1, - kAngleFieldNumber = 2, - kTeamIdFieldNumber = 3, + kXFieldNumber = 1, + kYFieldNumber = 2, + kTeamIdFieldNumber = 4, + kShipTypeFieldNumber = 3, }; - // int64 player_id = 1; - void clear_player_id(); - ::int64_t player_id() const; - void set_player_id(::int64_t value); + // int32 x = 1; + void clear_x(); + ::int32_t x() const; + void set_x(::int32_t value); private: - ::int64_t _internal_player_id() const; - void _internal_set_player_id(::int64_t value); + ::int32_t _internal_x() const; + void _internal_set_x(::int32_t value); public: - // double angle = 2; - void clear_angle(); - double angle() const; - void set_angle(double value); + // int32 y = 2; + void clear_y(); + ::int32_t y() const; + void set_y(::int32_t value); private: - double _internal_angle() const; - void _internal_set_angle(double value); + ::int32_t _internal_y() const; + void _internal_set_y(::int32_t value); public: - // int64 team_id = 3; + // int64 team_id = 4; void clear_team_id(); ::int64_t team_id() const; void set_team_id(::int64_t value); @@ -2565,37 +2371,32 @@ namespace protobuf void _internal_set_team_id(::int64_t value); public: - // @@protoc_insertion_point(class_scope:protobuf.AttackMsg) + // .protobuf.ShipType ship_type = 3; + void clear_ship_type(); + ::protobuf::ShipType ship_type() const; + void set_ship_type(::protobuf::ShipType value); + + private: + ::protobuf::ShipType _internal_ship_type() const; + void _internal_set_ship_type(::protobuf::ShipType value); + + public: + // @@protoc_insertion_point(class_scope:protobuf.BuildShipMsg) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, - 3, - 0, - 0, - 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; + friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized - ) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, const Impl_& from); - ::int64_t player_id_; - double angle_; + ::int32_t x_; + ::int32_t y_; ::int64_t team_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER + int ship_type_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; }; union { @@ -2623,7 +2424,6 @@ namespace protobuf // int64 player_id = 1; inline void IDMsg::clear_player_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.player_id_ = ::int64_t{0}; } inline ::int64_t IDMsg::player_id() const @@ -2638,12 +2438,10 @@ namespace protobuf } inline ::int64_t IDMsg::_internal_player_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.player_id_; } inline void IDMsg::_internal_set_player_id(::int64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.player_id_ = value; } @@ -2651,7 +2449,6 @@ namespace protobuf // int64 team_id = 2; inline void IDMsg::clear_team_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.team_id_ = ::int64_t{0}; } inline ::int64_t IDMsg::team_id() const @@ -2666,12 +2463,10 @@ namespace protobuf } inline ::int64_t IDMsg::_internal_team_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.team_id_; } inline void IDMsg::_internal_set_team_id(::int64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.team_id_ = value; } @@ -2683,7 +2478,6 @@ namespace protobuf // int64 player_id = 1; inline void PlayerMsg::clear_player_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.player_id_ = ::int64_t{0}; } inline ::int64_t PlayerMsg::player_id() const @@ -2698,12 +2492,10 @@ namespace protobuf } inline ::int64_t PlayerMsg::_internal_player_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.player_id_; } inline void PlayerMsg::_internal_set_player_id(::int64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.player_id_ = value; } @@ -2711,7 +2503,6 @@ namespace protobuf // int64 team_id = 2; inline void PlayerMsg::clear_team_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.team_id_ = ::int64_t{0}; } inline ::int64_t PlayerMsg::team_id() const @@ -2726,12 +2517,10 @@ namespace protobuf } inline ::int64_t PlayerMsg::_internal_team_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.team_id_; } inline void PlayerMsg::_internal_set_team_id(::int64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.team_id_ = value; } @@ -2739,7 +2528,6 @@ namespace protobuf // .protobuf.ShipType ship_type = 3; inline void PlayerMsg::clear_ship_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.ship_type_ = 0; } inline ::protobuf::ShipType PlayerMsg::ship_type() const @@ -2754,12 +2542,10 @@ namespace protobuf } inline ::protobuf::ShipType PlayerMsg::_internal_ship_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return static_cast<::protobuf::ShipType>(_impl_.ship_type_); } inline void PlayerMsg::_internal_set_ship_type(::protobuf::ShipType value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.ship_type_ = value; } @@ -2767,7 +2553,6 @@ namespace protobuf // int32 x = 4; inline void PlayerMsg::clear_x() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.x_ = 0; } inline ::int32_t PlayerMsg::x() const @@ -2782,12 +2567,10 @@ namespace protobuf } inline ::int32_t PlayerMsg::_internal_x() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.x_; } inline void PlayerMsg::_internal_set_x(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.x_ = value; } @@ -2795,7 +2578,6 @@ namespace protobuf // int32 y = 5; inline void PlayerMsg::clear_y() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.y_ = 0; } inline ::int32_t PlayerMsg::y() const @@ -2810,12 +2592,10 @@ namespace protobuf } inline ::int32_t PlayerMsg::_internal_y() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.y_; } inline void PlayerMsg::_internal_set_y(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.y_ = value; } @@ -2827,7 +2607,6 @@ namespace protobuf // int64 player_id = 1; inline void MoveMsg::clear_player_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.player_id_ = ::int64_t{0}; } inline ::int64_t MoveMsg::player_id() const @@ -2842,12 +2621,10 @@ namespace protobuf } inline ::int64_t MoveMsg::_internal_player_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.player_id_; } inline void MoveMsg::_internal_set_player_id(::int64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.player_id_ = value; } @@ -2855,7 +2632,6 @@ namespace protobuf // double angle = 2; inline void MoveMsg::clear_angle() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.angle_ = 0; } inline double MoveMsg::angle() const @@ -2870,12 +2646,10 @@ namespace protobuf } inline double MoveMsg::_internal_angle() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.angle_; } inline void MoveMsg::_internal_set_angle(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.angle_ = value; } @@ -2883,7 +2657,6 @@ namespace protobuf // int64 time_in_milliseconds = 3; inline void MoveMsg::clear_time_in_milliseconds() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.time_in_milliseconds_ = ::int64_t{0}; } inline ::int64_t MoveMsg::time_in_milliseconds() const @@ -2898,12 +2671,10 @@ namespace protobuf } inline ::int64_t MoveMsg::_internal_time_in_milliseconds() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.time_in_milliseconds_; } inline void MoveMsg::_internal_set_time_in_milliseconds(::int64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.time_in_milliseconds_ = value; } @@ -2911,7 +2682,6 @@ namespace protobuf // int64 team_id = 4; inline void MoveMsg::clear_team_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.team_id_ = ::int64_t{0}; } inline ::int64_t MoveMsg::team_id() const @@ -2926,12 +2696,10 @@ namespace protobuf } inline ::int64_t MoveMsg::_internal_team_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.team_id_; } inline void MoveMsg::_internal_set_team_id(::int64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.team_id_ = value; } @@ -2943,7 +2711,6 @@ namespace protobuf // int64 player_id = 1; inline void SendMsg::clear_player_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.player_id_ = ::int64_t{0}; } inline ::int64_t SendMsg::player_id() const @@ -2958,12 +2725,10 @@ namespace protobuf } inline ::int64_t SendMsg::_internal_player_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.player_id_; } inline void SendMsg::_internal_set_player_id(::int64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.player_id_ = value; } @@ -2971,7 +2736,6 @@ namespace protobuf // int64 to_player_id = 2; inline void SendMsg::clear_to_player_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.to_player_id_ = ::int64_t{0}; } inline ::int64_t SendMsg::to_player_id() const @@ -2986,12 +2750,10 @@ namespace protobuf } inline ::int64_t SendMsg::_internal_to_player_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.to_player_id_; } inline void SendMsg::_internal_set_to_player_id(::int64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.to_player_id_ = value; } @@ -3007,7 +2769,6 @@ namespace protobuf } inline void SendMsg::clear_text_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (message_case() == kTextMessage) { _impl_.message_.text_message_.Destroy(); @@ -3015,7 +2776,6 @@ namespace protobuf } } inline const std::string& SendMsg::text_message() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:protobuf.SendMsg.text_message) return _internal_text_message(); @@ -3023,7 +2783,6 @@ namespace protobuf template inline PROTOBUF_ALWAYS_INLINE void SendMsg::set_text_message(Arg_&& arg, Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (message_case() != kTextMessage) { clear_message(); @@ -3031,10 +2790,10 @@ namespace protobuf set_has_text_message(); _impl_.message_.text_message_.InitDefault(); } - _impl_.message_.text_message_.Set(static_cast(arg), args..., GetArena()); + _impl_.message_.text_message_.Set(static_cast(arg), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:protobuf.SendMsg.text_message) } - inline std::string* SendMsg::mutable_text_message() ABSL_ATTRIBUTE_LIFETIME_BOUND + inline std::string* SendMsg::mutable_text_message() { std::string* _s = _internal_mutable_text_message(); // @@protoc_insertion_point(field_mutable:protobuf.SendMsg.text_message) @@ -3042,16 +2801,14 @@ namespace protobuf } inline const std::string& SendMsg::_internal_text_message() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); if (message_case() != kTextMessage) { - return ::google::protobuf::internal::GetEmptyStringAlreadyInited(); + return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); } return _impl_.message_.text_message_.Get(); } inline void SendMsg::_internal_set_text_message(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (message_case() != kTextMessage) { clear_message(); @@ -3059,11 +2816,11 @@ namespace protobuf set_has_text_message(); _impl_.message_.text_message_.InitDefault(); } - _impl_.message_.text_message_.Set(value, GetArena()); + + _impl_.message_.text_message_.Set(value, GetArenaForAllocation()); } inline std::string* SendMsg::_internal_mutable_text_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (message_case() != kTextMessage) { clear_message(); @@ -3071,11 +2828,10 @@ namespace protobuf set_has_text_message(); _impl_.message_.text_message_.InitDefault(); } - return _impl_.message_.text_message_.Mutable(GetArena()); + return _impl_.message_.text_message_.Mutable(GetArenaForAllocation()); } inline std::string* SendMsg::release_text_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:protobuf.SendMsg.text_message) if (message_case() != kTextMessage) { @@ -3086,7 +2842,6 @@ namespace protobuf } inline void SendMsg::set_allocated_text_message(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (has_message()) { clear_message(); @@ -3094,7 +2849,7 @@ namespace protobuf if (value != nullptr) { set_has_text_message(); - _impl_.message_.text_message_.InitAllocated(value, GetArena()); + _impl_.message_.text_message_.InitAllocated(value, GetArenaForAllocation()); } // @@protoc_insertion_point(field_set_allocated:protobuf.SendMsg.text_message) } @@ -3110,7 +2865,6 @@ namespace protobuf } inline void SendMsg::clear_binary_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (message_case() == kBinaryMessage) { _impl_.message_.binary_message_.Destroy(); @@ -3118,7 +2872,6 @@ namespace protobuf } } inline const std::string& SendMsg::binary_message() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:protobuf.SendMsg.binary_message) return _internal_binary_message(); @@ -3126,7 +2879,6 @@ namespace protobuf template inline PROTOBUF_ALWAYS_INLINE void SendMsg::set_binary_message(Arg_&& arg, Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (message_case() != kBinaryMessage) { clear_message(); @@ -3134,10 +2886,10 @@ namespace protobuf set_has_binary_message(); _impl_.message_.binary_message_.InitDefault(); } - _impl_.message_.binary_message_.SetBytes(static_cast(arg), args..., GetArena()); + _impl_.message_.binary_message_.SetBytes(static_cast(arg), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:protobuf.SendMsg.binary_message) } - inline std::string* SendMsg::mutable_binary_message() ABSL_ATTRIBUTE_LIFETIME_BOUND + inline std::string* SendMsg::mutable_binary_message() { std::string* _s = _internal_mutable_binary_message(); // @@protoc_insertion_point(field_mutable:protobuf.SendMsg.binary_message) @@ -3145,16 +2897,14 @@ namespace protobuf } inline const std::string& SendMsg::_internal_binary_message() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); if (message_case() != kBinaryMessage) { - return ::google::protobuf::internal::GetEmptyStringAlreadyInited(); + return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); } return _impl_.message_.binary_message_.Get(); } inline void SendMsg::_internal_set_binary_message(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (message_case() != kBinaryMessage) { clear_message(); @@ -3162,11 +2912,11 @@ namespace protobuf set_has_binary_message(); _impl_.message_.binary_message_.InitDefault(); } - _impl_.message_.binary_message_.Set(value, GetArena()); + + _impl_.message_.binary_message_.Set(value, GetArenaForAllocation()); } inline std::string* SendMsg::_internal_mutable_binary_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (message_case() != kBinaryMessage) { clear_message(); @@ -3174,11 +2924,10 @@ namespace protobuf set_has_binary_message(); _impl_.message_.binary_message_.InitDefault(); } - return _impl_.message_.binary_message_.Mutable(GetArena()); + return _impl_.message_.binary_message_.Mutable(GetArenaForAllocation()); } inline std::string* SendMsg::release_binary_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:protobuf.SendMsg.binary_message) if (message_case() != kBinaryMessage) { @@ -3189,7 +2938,6 @@ namespace protobuf } inline void SendMsg::set_allocated_binary_message(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (has_message()) { clear_message(); @@ -3197,7 +2945,7 @@ namespace protobuf if (value != nullptr) { set_has_binary_message(); - _impl_.message_.binary_message_.InitAllocated(value, GetArena()); + _impl_.message_.binary_message_.InitAllocated(value, GetArenaForAllocation()); } // @@protoc_insertion_point(field_set_allocated:protobuf.SendMsg.binary_message) } @@ -3205,7 +2953,6 @@ namespace protobuf // int64 team_id = 5; inline void SendMsg::clear_team_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.team_id_ = ::int64_t{0}; } inline ::int64_t SendMsg::team_id() const @@ -3220,12 +2967,10 @@ namespace protobuf } inline ::int64_t SendMsg::_internal_team_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.team_id_; } inline void SendMsg::_internal_set_team_id(::int64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.team_id_ = value; } @@ -3249,7 +2994,6 @@ namespace protobuf // int64 player_id = 1; inline void AttackMsg::clear_player_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.player_id_ = ::int64_t{0}; } inline ::int64_t AttackMsg::player_id() const @@ -3264,12 +3008,10 @@ namespace protobuf } inline ::int64_t AttackMsg::_internal_player_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.player_id_; } inline void AttackMsg::_internal_set_player_id(::int64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.player_id_ = value; } @@ -3277,7 +3019,6 @@ namespace protobuf // double angle = 2; inline void AttackMsg::clear_angle() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.angle_ = 0; } inline double AttackMsg::angle() const @@ -3292,12 +3033,10 @@ namespace protobuf } inline double AttackMsg::_internal_angle() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.angle_; } inline void AttackMsg::_internal_set_angle(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.angle_ = value; } @@ -3305,7 +3044,6 @@ namespace protobuf // int64 team_id = 3; inline void AttackMsg::clear_team_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.team_id_ = ::int64_t{0}; } inline ::int64_t AttackMsg::team_id() const @@ -3320,12 +3058,10 @@ namespace protobuf } inline ::int64_t AttackMsg::_internal_team_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.team_id_; } inline void AttackMsg::_internal_set_team_id(::int64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.team_id_ = value; } @@ -3337,7 +3073,6 @@ namespace protobuf // int64 player_id = 1; inline void ConstructMsg::clear_player_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.player_id_ = ::int64_t{0}; } inline ::int64_t ConstructMsg::player_id() const @@ -3352,12 +3087,10 @@ namespace protobuf } inline ::int64_t ConstructMsg::_internal_player_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.player_id_; } inline void ConstructMsg::_internal_set_player_id(::int64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.player_id_ = value; } @@ -3365,7 +3098,6 @@ namespace protobuf // .protobuf.ConstructionType construction_type = 2; inline void ConstructMsg::clear_construction_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.construction_type_ = 0; } inline ::protobuf::ConstructionType ConstructMsg::construction_type() const @@ -3380,12 +3112,10 @@ namespace protobuf } inline ::protobuf::ConstructionType ConstructMsg::_internal_construction_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return static_cast<::protobuf::ConstructionType>(_impl_.construction_type_); } inline void ConstructMsg::_internal_set_construction_type(::protobuf::ConstructionType value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.construction_type_ = value; } @@ -3393,7 +3123,6 @@ namespace protobuf // int64 team_id = 3; inline void ConstructMsg::clear_team_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.team_id_ = ::int64_t{0}; } inline ::int64_t ConstructMsg::team_id() const @@ -3408,12 +3137,10 @@ namespace protobuf } inline ::int64_t ConstructMsg::_internal_team_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.team_id_; } inline void ConstructMsg::_internal_set_team_id(::int64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.team_id_ = value; } @@ -3425,7 +3152,6 @@ namespace protobuf // int64 player_id = 1; inline void RecoverMsg::clear_player_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.player_id_ = ::int64_t{0}; } inline ::int64_t RecoverMsg::player_id() const @@ -3440,12 +3166,10 @@ namespace protobuf } inline ::int64_t RecoverMsg::_internal_player_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.player_id_; } inline void RecoverMsg::_internal_set_player_id(::int64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.player_id_ = value; } @@ -3453,7 +3177,6 @@ namespace protobuf // int64 recover = 2; inline void RecoverMsg::clear_recover() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.recover_ = ::int64_t{0}; } inline ::int64_t RecoverMsg::recover() const @@ -3468,12 +3191,10 @@ namespace protobuf } inline ::int64_t RecoverMsg::_internal_recover() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.recover_; } inline void RecoverMsg::_internal_set_recover(::int64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.recover_ = value; } @@ -3481,7 +3202,6 @@ namespace protobuf // int64 team_id = 3; inline void RecoverMsg::clear_team_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.team_id_ = ::int64_t{0}; } inline ::int64_t RecoverMsg::team_id() const @@ -3496,12 +3216,10 @@ namespace protobuf } inline ::int64_t RecoverMsg::_internal_team_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.team_id_; } inline void RecoverMsg::_internal_set_team_id(::int64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.team_id_ = value; } @@ -3513,7 +3231,6 @@ namespace protobuf // .protobuf.ModuleType module_type = 1; inline void InstallMsg::clear_module_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.module_type_ = 0; } inline ::protobuf::ModuleType InstallMsg::module_type() const @@ -3528,12 +3245,10 @@ namespace protobuf } inline ::protobuf::ModuleType InstallMsg::_internal_module_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return static_cast<::protobuf::ModuleType>(_impl_.module_type_); } inline void InstallMsg::_internal_set_module_type(::protobuf::ModuleType value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.module_type_ = value; } @@ -3541,7 +3256,6 @@ namespace protobuf // int64 player_id = 2; inline void InstallMsg::clear_player_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.player_id_ = ::int64_t{0}; } inline ::int64_t InstallMsg::player_id() const @@ -3556,12 +3270,10 @@ namespace protobuf } inline ::int64_t InstallMsg::_internal_player_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.player_id_; } inline void InstallMsg::_internal_set_player_id(::int64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.player_id_ = value; } @@ -3569,7 +3281,6 @@ namespace protobuf // int64 team_id = 3; inline void InstallMsg::clear_team_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.team_id_ = ::int64_t{0}; } inline ::int64_t InstallMsg::team_id() const @@ -3584,12 +3295,10 @@ namespace protobuf } inline ::int64_t InstallMsg::_internal_team_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.team_id_; } inline void InstallMsg::_internal_set_team_id(::int64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.team_id_ = value; } @@ -3601,7 +3310,6 @@ namespace protobuf // int32 x = 1; inline void BuildShipMsg::clear_x() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.x_ = 0; } inline ::int32_t BuildShipMsg::x() const @@ -3616,12 +3324,10 @@ namespace protobuf } inline ::int32_t BuildShipMsg::_internal_x() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.x_; } inline void BuildShipMsg::_internal_set_x(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.x_ = value; } @@ -3629,7 +3335,6 @@ namespace protobuf // int32 y = 2; inline void BuildShipMsg::clear_y() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.y_ = 0; } inline ::int32_t BuildShipMsg::y() const @@ -3644,12 +3349,10 @@ namespace protobuf } inline ::int32_t BuildShipMsg::_internal_y() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.y_; } inline void BuildShipMsg::_internal_set_y(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.y_ = value; } @@ -3657,7 +3360,6 @@ namespace protobuf // .protobuf.ShipType ship_type = 3; inline void BuildShipMsg::clear_ship_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.ship_type_ = 0; } inline ::protobuf::ShipType BuildShipMsg::ship_type() const @@ -3672,12 +3374,10 @@ namespace protobuf } inline ::protobuf::ShipType BuildShipMsg::_internal_ship_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return static_cast<::protobuf::ShipType>(_impl_.ship_type_); } inline void BuildShipMsg::_internal_set_ship_type(::protobuf::ShipType value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.ship_type_ = value; } @@ -3685,7 +3385,6 @@ namespace protobuf // int64 team_id = 4; inline void BuildShipMsg::clear_team_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.team_id_ = ::int64_t{0}; } inline ::int64_t BuildShipMsg::team_id() const @@ -3700,12 +3399,10 @@ namespace protobuf } inline ::int64_t BuildShipMsg::_internal_team_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.team_id_; } inline void BuildShipMsg::_internal_set_team_id(::int64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.team_id_ = value; } diff --git a/CAPI/cpp/proto/MessageType.pb.cc b/CAPI/cpp/proto/MessageType.pb.cc old mode 100755 new mode 100644 index 2c696271..394995aa --- a/CAPI/cpp/proto/MessageType.pb.cc +++ b/CAPI/cpp/proto/MessageType.pb.cc @@ -11,15 +11,13 @@ #include "google/protobuf/generated_message_reflection.h" #include "google/protobuf/reflection_ops.h" #include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" // @@protoc_insertion_point(includes) // Must be included last. #include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = ::PROTOBUF_NAMESPACE_ID::internal; namespace protobuf { } // namespace protobuf @@ -113,221 +111,322 @@ PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_MessageType_2eproto(&descriptor_table_MessageType_2eproto); namespace protobuf { - const ::google::protobuf::EnumDescriptor* GameState_descriptor() + const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* GameState_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_MessageType_2eproto); + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_MessageType_2eproto); return file_level_enum_descriptors_MessageType_2eproto[0]; } - PROTOBUF_CONSTINIT const uint32_t GameState_internal_data_[] = { - 262144u, - 0u, - }; bool GameState_IsValid(int value) { - return 0 <= value && value <= 3; + switch (value) + { + case 0: + case 1: + case 2: + case 3: + return true; + default: + return false; + } } - const ::google::protobuf::EnumDescriptor* PlaceType_descriptor() + const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* PlaceType_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_MessageType_2eproto); + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_MessageType_2eproto); return file_level_enum_descriptors_MessageType_2eproto[1]; } - PROTOBUF_CONSTINIT const uint32_t PlaceType_internal_data_[] = { - 589824u, - 0u, - }; bool PlaceType_IsValid(int value) { - return 0 <= value && value <= 8; - } - const ::google::protobuf::EnumDescriptor* ShapeType_descriptor() - { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_MessageType_2eproto); + switch (value) + { + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + return true; + default: + return false; + } + } + const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ShapeType_descriptor() + { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_MessageType_2eproto); return file_level_enum_descriptors_MessageType_2eproto[2]; } - PROTOBUF_CONSTINIT const uint32_t ShapeType_internal_data_[] = { - 196608u, - 0u, - }; bool ShapeType_IsValid(int value) { - return 0 <= value && value <= 2; + switch (value) + { + case 0: + case 1: + case 2: + return true; + default: + return false; + } } - const ::google::protobuf::EnumDescriptor* PlayerType_descriptor() + const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* PlayerType_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_MessageType_2eproto); + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_MessageType_2eproto); return file_level_enum_descriptors_MessageType_2eproto[3]; } - PROTOBUF_CONSTINIT const uint32_t PlayerType_internal_data_[] = { - 196608u, - 0u, - }; bool PlayerType_IsValid(int value) { - return 0 <= value && value <= 2; + switch (value) + { + case 0: + case 1: + case 2: + return true; + default: + return false; + } } - const ::google::protobuf::EnumDescriptor* ShipType_descriptor() + const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ShipType_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_MessageType_2eproto); + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_MessageType_2eproto); return file_level_enum_descriptors_MessageType_2eproto[4]; } - PROTOBUF_CONSTINIT const uint32_t ShipType_internal_data_[] = { - 262144u, - 0u, - }; bool ShipType_IsValid(int value) { - return 0 <= value && value <= 3; + switch (value) + { + case 0: + case 1: + case 2: + case 3: + return true; + default: + return false; + } } - const ::google::protobuf::EnumDescriptor* ShipState_descriptor() + const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ShipState_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_MessageType_2eproto); + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_MessageType_2eproto); return file_level_enum_descriptors_MessageType_2eproto[5]; } - PROTOBUF_CONSTINIT const uint32_t ShipState_internal_data_[] = { - 655360u, - 0u, - }; bool ShipState_IsValid(int value) { - return 0 <= value && value <= 9; - } - const ::google::protobuf::EnumDescriptor* WeaponType_descriptor() - { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_MessageType_2eproto); + switch (value) + { + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + return true; + default: + return false; + } + } + const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* WeaponType_descriptor() + { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_MessageType_2eproto); return file_level_enum_descriptors_MessageType_2eproto[6]; } - PROTOBUF_CONSTINIT const uint32_t WeaponType_internal_data_[] = { - 393216u, - 0u, - }; bool WeaponType_IsValid(int value) { - return 0 <= value && value <= 5; - } - const ::google::protobuf::EnumDescriptor* ConstructorType_descriptor() - { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_MessageType_2eproto); + switch (value) + { + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + return true; + default: + return false; + } + } + const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ConstructorType_descriptor() + { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_MessageType_2eproto); return file_level_enum_descriptors_MessageType_2eproto[7]; } - PROTOBUF_CONSTINIT const uint32_t ConstructorType_internal_data_[] = { - 262144u, - 0u, - }; bool ConstructorType_IsValid(int value) { - return 0 <= value && value <= 3; + switch (value) + { + case 0: + case 1: + case 2: + case 3: + return true; + default: + return false; + } } - const ::google::protobuf::EnumDescriptor* ArmorType_descriptor() + const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ArmorType_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_MessageType_2eproto); + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_MessageType_2eproto); return file_level_enum_descriptors_MessageType_2eproto[8]; } - PROTOBUF_CONSTINIT const uint32_t ArmorType_internal_data_[] = { - 262144u, - 0u, - }; bool ArmorType_IsValid(int value) { - return 0 <= value && value <= 3; + switch (value) + { + case 0: + case 1: + case 2: + case 3: + return true; + default: + return false; + } } - const ::google::protobuf::EnumDescriptor* ShieldType_descriptor() + const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ShieldType_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_MessageType_2eproto); + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_MessageType_2eproto); return file_level_enum_descriptors_MessageType_2eproto[9]; } - PROTOBUF_CONSTINIT const uint32_t ShieldType_internal_data_[] = { - 262144u, - 0u, - }; bool ShieldType_IsValid(int value) { - return 0 <= value && value <= 3; + switch (value) + { + case 0: + case 1: + case 2: + case 3: + return true; + default: + return false; + } } - const ::google::protobuf::EnumDescriptor* ProducerType_descriptor() + const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ProducerType_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_MessageType_2eproto); + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_MessageType_2eproto); return file_level_enum_descriptors_MessageType_2eproto[10]; } - PROTOBUF_CONSTINIT const uint32_t ProducerType_internal_data_[] = { - 262144u, - 0u, - }; bool ProducerType_IsValid(int value) { - return 0 <= value && value <= 3; + switch (value) + { + case 0: + case 1: + case 2: + case 3: + return true; + default: + return false; + } } - const ::google::protobuf::EnumDescriptor* ModuleType_descriptor() + const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ModuleType_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_MessageType_2eproto); + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_MessageType_2eproto); return file_level_enum_descriptors_MessageType_2eproto[11]; } - PROTOBUF_CONSTINIT const uint32_t ModuleType_internal_data_[] = { - 1179648u, - 0u, - }; bool ModuleType_IsValid(int value) { - return 0 <= value && value <= 17; - } - const ::google::protobuf::EnumDescriptor* BulletType_descriptor() - { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_MessageType_2eproto); + switch (value) + { + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + case 11: + case 12: + case 13: + case 14: + case 15: + case 16: + case 17: + return true; + default: + return false; + } + } + const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* BulletType_descriptor() + { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_MessageType_2eproto); return file_level_enum_descriptors_MessageType_2eproto[12]; } - PROTOBUF_CONSTINIT const uint32_t BulletType_internal_data_[] = { - 393216u, - 0u, - }; bool BulletType_IsValid(int value) { - return 0 <= value && value <= 5; - } - const ::google::protobuf::EnumDescriptor* ConstructionType_descriptor() - { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_MessageType_2eproto); + switch (value) + { + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + return true; + default: + return false; + } + } + const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ConstructionType_descriptor() + { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_MessageType_2eproto); return file_level_enum_descriptors_MessageType_2eproto[13]; } - PROTOBUF_CONSTINIT const uint32_t ConstructionType_internal_data_[] = { - 262144u, - 0u, - }; bool ConstructionType_IsValid(int value) { - return 0 <= value && value <= 3; + switch (value) + { + case 0: + case 1: + case 2: + case 3: + return true; + default: + return false; + } } - const ::google::protobuf::EnumDescriptor* NewsType_descriptor() + const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* NewsType_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_MessageType_2eproto); + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_MessageType_2eproto); return file_level_enum_descriptors_MessageType_2eproto[14]; } - PROTOBUF_CONSTINIT const uint32_t NewsType_internal_data_[] = { - 196608u, - 0u, - }; bool NewsType_IsValid(int value) { - return 0 <= value && value <= 2; + switch (value) + { + case 0: + case 1: + case 2: + return true; + default: + return false; + } } - const ::google::protobuf::EnumDescriptor* PlayerTeam_descriptor() + const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* PlayerTeam_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_MessageType_2eproto); + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_MessageType_2eproto); return file_level_enum_descriptors_MessageType_2eproto[15]; } - PROTOBUF_CONSTINIT const uint32_t PlayerTeam_internal_data_[] = { - 196608u, - 0u, - }; bool PlayerTeam_IsValid(int value) { - return 0 <= value && value <= 2; + switch (value) + { + case 0: + case 1: + case 2: + return true; + default: + return false; + } } // @@protoc_insertion_point(namespace_scope) } // namespace protobuf -namespace google -{ - namespace protobuf - { - } // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_OPEN +PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) #include "google/protobuf/port_undef.inc" diff --git a/CAPI/cpp/proto/MessageType.pb.h b/CAPI/cpp/proto/MessageType.pb.h old mode 100755 new mode 100644 index 48087492..cb6b79b3 --- a/CAPI/cpp/proto/MessageType.pb.h +++ b/CAPI/cpp/proto/MessageType.pb.h @@ -1,6 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: MessageType.proto -// Protobuf C++ Version: 4.25.1 #ifndef GOOGLE_PROTOBUF_INCLUDED_MessageType_2eproto_2epb_2eh #define GOOGLE_PROTOBUF_INCLUDED_MessageType_2eproto_2epb_2eh @@ -8,16 +7,15 @@ #include #include #include -#include #include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4025000 +#if PROTOBUF_VERSION < 4023000 #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 // PROTOBUF_VERSION -#if 4025001 < PROTOBUF_MIN_PROTOC_VERSION +#if 4023004 < 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." @@ -26,7 +24,6 @@ #include "google/protobuf/io/coded_stream.h" #include "google/protobuf/arena.h" #include "google/protobuf/arenastring.h" -#include "google/protobuf/generated_message_tctable_decl.h" #include "google/protobuf/generated_message_util.h" #include "google/protobuf/metadata_lite.h" #include "google/protobuf/generated_message_reflection.h" @@ -40,30 +37,22 @@ #define PROTOBUF_INTERNAL_EXPORT_MessageType_2eproto -namespace google +PROTOBUF_NAMESPACE_OPEN +namespace internal { - namespace protobuf - { - namespace internal - { - class AnyMetadata; - } // namespace internal - } // namespace protobuf -} // namespace google + class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_MessageType_2eproto { static const ::uint32_t offsets[]; }; -extern const ::google::protobuf::internal::DescriptorTable +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_MessageType_2eproto; -namespace google -{ - namespace protobuf - { - } // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_OPEN +PROTOBUF_NAMESPACE_CLOSE namespace protobuf { @@ -80,11 +69,10 @@ namespace protobuf }; bool GameState_IsValid(int value); - extern const uint32_t GameState_internal_data_[]; constexpr GameState GameState_MIN = static_cast(0); constexpr GameState GameState_MAX = static_cast(3); constexpr int GameState_ARRAYSIZE = 3 + 1; - const ::google::protobuf::EnumDescriptor* + const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* GameState_descriptor(); template const std::string& GameState_Name(T value) @@ -95,13 +83,13 @@ namespace protobuf template<> inline const std::string& GameState_Name(GameState value) { - return ::google::protobuf::internal::NameOfDenseEnum( + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfDenseEnum( static_cast(value) ); } inline bool GameState_Parse(absl::string_view name, GameState* value) { - return ::google::protobuf::internal::ParseNamedEnum( + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( GameState_descriptor(), name, value ); } @@ -123,11 +111,10 @@ namespace protobuf }; bool PlaceType_IsValid(int value); - extern const uint32_t PlaceType_internal_data_[]; constexpr PlaceType PlaceType_MIN = static_cast(0); constexpr PlaceType PlaceType_MAX = static_cast(8); constexpr int PlaceType_ARRAYSIZE = 8 + 1; - const ::google::protobuf::EnumDescriptor* + const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* PlaceType_descriptor(); template const std::string& PlaceType_Name(T value) @@ -138,13 +125,13 @@ namespace protobuf template<> inline const std::string& PlaceType_Name(PlaceType value) { - return ::google::protobuf::internal::NameOfDenseEnum( + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfDenseEnum( static_cast(value) ); } inline bool PlaceType_Parse(absl::string_view name, PlaceType* value) { - return ::google::protobuf::internal::ParseNamedEnum( + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( PlaceType_descriptor(), name, value ); } @@ -160,11 +147,10 @@ namespace protobuf }; bool ShapeType_IsValid(int value); - extern const uint32_t ShapeType_internal_data_[]; constexpr ShapeType ShapeType_MIN = static_cast(0); constexpr ShapeType ShapeType_MAX = static_cast(2); constexpr int ShapeType_ARRAYSIZE = 2 + 1; - const ::google::protobuf::EnumDescriptor* + const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ShapeType_descriptor(); template const std::string& ShapeType_Name(T value) @@ -175,13 +161,13 @@ namespace protobuf template<> inline const std::string& ShapeType_Name(ShapeType value) { - return ::google::protobuf::internal::NameOfDenseEnum( + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfDenseEnum( static_cast(value) ); } inline bool ShapeType_Parse(absl::string_view name, ShapeType* value) { - return ::google::protobuf::internal::ParseNamedEnum( + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( ShapeType_descriptor(), name, value ); } @@ -197,11 +183,10 @@ namespace protobuf }; bool PlayerType_IsValid(int value); - extern const uint32_t PlayerType_internal_data_[]; constexpr PlayerType PlayerType_MIN = static_cast(0); constexpr PlayerType PlayerType_MAX = static_cast(2); constexpr int PlayerType_ARRAYSIZE = 2 + 1; - const ::google::protobuf::EnumDescriptor* + const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* PlayerType_descriptor(); template const std::string& PlayerType_Name(T value) @@ -212,13 +197,13 @@ namespace protobuf template<> inline const std::string& PlayerType_Name(PlayerType value) { - return ::google::protobuf::internal::NameOfDenseEnum( + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfDenseEnum( static_cast(value) ); } inline bool PlayerType_Parse(absl::string_view name, PlayerType* value) { - return ::google::protobuf::internal::ParseNamedEnum( + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( PlayerType_descriptor(), name, value ); } @@ -235,11 +220,10 @@ namespace protobuf }; bool ShipType_IsValid(int value); - extern const uint32_t ShipType_internal_data_[]; constexpr ShipType ShipType_MIN = static_cast(0); constexpr ShipType ShipType_MAX = static_cast(3); constexpr int ShipType_ARRAYSIZE = 3 + 1; - const ::google::protobuf::EnumDescriptor* + const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ShipType_descriptor(); template const std::string& ShipType_Name(T value) @@ -250,13 +234,13 @@ namespace protobuf template<> inline const std::string& ShipType_Name(ShipType value) { - return ::google::protobuf::internal::NameOfDenseEnum( + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfDenseEnum( static_cast(value) ); } inline bool ShipType_Parse(absl::string_view name, ShipType* value) { - return ::google::protobuf::internal::ParseNamedEnum( + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( ShipType_descriptor(), name, value ); } @@ -279,11 +263,10 @@ namespace protobuf }; bool ShipState_IsValid(int value); - extern const uint32_t ShipState_internal_data_[]; constexpr ShipState ShipState_MIN = static_cast(0); constexpr ShipState ShipState_MAX = static_cast(9); constexpr int ShipState_ARRAYSIZE = 9 + 1; - const ::google::protobuf::EnumDescriptor* + const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ShipState_descriptor(); template const std::string& ShipState_Name(T value) @@ -294,13 +277,13 @@ namespace protobuf template<> inline const std::string& ShipState_Name(ShipState value) { - return ::google::protobuf::internal::NameOfDenseEnum( + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfDenseEnum( static_cast(value) ); } inline bool ShipState_Parse(absl::string_view name, ShipState* value) { - return ::google::protobuf::internal::ParseNamedEnum( + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( ShipState_descriptor(), name, value ); } @@ -319,11 +302,10 @@ namespace protobuf }; bool WeaponType_IsValid(int value); - extern const uint32_t WeaponType_internal_data_[]; constexpr WeaponType WeaponType_MIN = static_cast(0); constexpr WeaponType WeaponType_MAX = static_cast(5); constexpr int WeaponType_ARRAYSIZE = 5 + 1; - const ::google::protobuf::EnumDescriptor* + const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* WeaponType_descriptor(); template const std::string& WeaponType_Name(T value) @@ -334,13 +316,13 @@ namespace protobuf template<> inline const std::string& WeaponType_Name(WeaponType value) { - return ::google::protobuf::internal::NameOfDenseEnum( + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfDenseEnum( static_cast(value) ); } inline bool WeaponType_Parse(absl::string_view name, WeaponType* value) { - return ::google::protobuf::internal::ParseNamedEnum( + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( WeaponType_descriptor(), name, value ); } @@ -357,11 +339,10 @@ namespace protobuf }; bool ConstructorType_IsValid(int value); - extern const uint32_t ConstructorType_internal_data_[]; constexpr ConstructorType ConstructorType_MIN = static_cast(0); constexpr ConstructorType ConstructorType_MAX = static_cast(3); constexpr int ConstructorType_ARRAYSIZE = 3 + 1; - const ::google::protobuf::EnumDescriptor* + const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ConstructorType_descriptor(); template const std::string& ConstructorType_Name(T value) @@ -372,13 +353,13 @@ namespace protobuf template<> inline const std::string& ConstructorType_Name(ConstructorType value) { - return ::google::protobuf::internal::NameOfDenseEnum( + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfDenseEnum( static_cast(value) ); } inline bool ConstructorType_Parse(absl::string_view name, ConstructorType* value) { - return ::google::protobuf::internal::ParseNamedEnum( + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( ConstructorType_descriptor(), name, value ); } @@ -395,11 +376,10 @@ namespace protobuf }; bool ArmorType_IsValid(int value); - extern const uint32_t ArmorType_internal_data_[]; constexpr ArmorType ArmorType_MIN = static_cast(0); constexpr ArmorType ArmorType_MAX = static_cast(3); constexpr int ArmorType_ARRAYSIZE = 3 + 1; - const ::google::protobuf::EnumDescriptor* + const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ArmorType_descriptor(); template const std::string& ArmorType_Name(T value) @@ -410,13 +390,13 @@ namespace protobuf template<> inline const std::string& ArmorType_Name(ArmorType value) { - return ::google::protobuf::internal::NameOfDenseEnum( + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfDenseEnum( static_cast(value) ); } inline bool ArmorType_Parse(absl::string_view name, ArmorType* value) { - return ::google::protobuf::internal::ParseNamedEnum( + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( ArmorType_descriptor(), name, value ); } @@ -433,11 +413,10 @@ namespace protobuf }; bool ShieldType_IsValid(int value); - extern const uint32_t ShieldType_internal_data_[]; constexpr ShieldType ShieldType_MIN = static_cast(0); constexpr ShieldType ShieldType_MAX = static_cast(3); constexpr int ShieldType_ARRAYSIZE = 3 + 1; - const ::google::protobuf::EnumDescriptor* + const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ShieldType_descriptor(); template const std::string& ShieldType_Name(T value) @@ -448,13 +427,13 @@ namespace protobuf template<> inline const std::string& ShieldType_Name(ShieldType value) { - return ::google::protobuf::internal::NameOfDenseEnum( + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfDenseEnum( static_cast(value) ); } inline bool ShieldType_Parse(absl::string_view name, ShieldType* value) { - return ::google::protobuf::internal::ParseNamedEnum( + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( ShieldType_descriptor(), name, value ); } @@ -471,11 +450,10 @@ namespace protobuf }; bool ProducerType_IsValid(int value); - extern const uint32_t ProducerType_internal_data_[]; constexpr ProducerType ProducerType_MIN = static_cast(0); constexpr ProducerType ProducerType_MAX = static_cast(3); constexpr int ProducerType_ARRAYSIZE = 3 + 1; - const ::google::protobuf::EnumDescriptor* + const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ProducerType_descriptor(); template const std::string& ProducerType_Name(T value) @@ -486,13 +464,13 @@ namespace protobuf template<> inline const std::string& ProducerType_Name(ProducerType value) { - return ::google::protobuf::internal::NameOfDenseEnum( + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfDenseEnum( static_cast(value) ); } inline bool ProducerType_Parse(absl::string_view name, ProducerType* value) { - return ::google::protobuf::internal::ParseNamedEnum( + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( ProducerType_descriptor(), name, value ); } @@ -523,11 +501,10 @@ namespace protobuf }; bool ModuleType_IsValid(int value); - extern const uint32_t ModuleType_internal_data_[]; constexpr ModuleType ModuleType_MIN = static_cast(0); constexpr ModuleType ModuleType_MAX = static_cast(17); constexpr int ModuleType_ARRAYSIZE = 17 + 1; - const ::google::protobuf::EnumDescriptor* + const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ModuleType_descriptor(); template const std::string& ModuleType_Name(T value) @@ -538,13 +515,13 @@ namespace protobuf template<> inline const std::string& ModuleType_Name(ModuleType value) { - return ::google::protobuf::internal::NameOfDenseEnum( + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfDenseEnum( static_cast(value) ); } inline bool ModuleType_Parse(absl::string_view name, ModuleType* value) { - return ::google::protobuf::internal::ParseNamedEnum( + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( ModuleType_descriptor(), name, value ); } @@ -563,11 +540,10 @@ namespace protobuf }; bool BulletType_IsValid(int value); - extern const uint32_t BulletType_internal_data_[]; constexpr BulletType BulletType_MIN = static_cast(0); constexpr BulletType BulletType_MAX = static_cast(5); constexpr int BulletType_ARRAYSIZE = 5 + 1; - const ::google::protobuf::EnumDescriptor* + const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* BulletType_descriptor(); template const std::string& BulletType_Name(T value) @@ -578,13 +554,13 @@ namespace protobuf template<> inline const std::string& BulletType_Name(BulletType value) { - return ::google::protobuf::internal::NameOfDenseEnum( + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfDenseEnum( static_cast(value) ); } inline bool BulletType_Parse(absl::string_view name, BulletType* value) { - return ::google::protobuf::internal::ParseNamedEnum( + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( BulletType_descriptor(), name, value ); } @@ -601,11 +577,10 @@ namespace protobuf }; bool ConstructionType_IsValid(int value); - extern const uint32_t ConstructionType_internal_data_[]; constexpr ConstructionType ConstructionType_MIN = static_cast(0); constexpr ConstructionType ConstructionType_MAX = static_cast(3); constexpr int ConstructionType_ARRAYSIZE = 3 + 1; - const ::google::protobuf::EnumDescriptor* + const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ConstructionType_descriptor(); template const std::string& ConstructionType_Name(T value) @@ -616,13 +591,13 @@ namespace protobuf template<> inline const std::string& ConstructionType_Name(ConstructionType value) { - return ::google::protobuf::internal::NameOfDenseEnum( + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfDenseEnum( static_cast(value) ); } inline bool ConstructionType_Parse(absl::string_view name, ConstructionType* value) { - return ::google::protobuf::internal::ParseNamedEnum( + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( ConstructionType_descriptor(), name, value ); } @@ -638,11 +613,10 @@ namespace protobuf }; bool NewsType_IsValid(int value); - extern const uint32_t NewsType_internal_data_[]; constexpr NewsType NewsType_MIN = static_cast(0); constexpr NewsType NewsType_MAX = static_cast(2); constexpr int NewsType_ARRAYSIZE = 2 + 1; - const ::google::protobuf::EnumDescriptor* + const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* NewsType_descriptor(); template const std::string& NewsType_Name(T value) @@ -653,13 +627,13 @@ namespace protobuf template<> inline const std::string& NewsType_Name(NewsType value) { - return ::google::protobuf::internal::NameOfDenseEnum( + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfDenseEnum( static_cast(value) ); } inline bool NewsType_Parse(absl::string_view name, NewsType* value) { - return ::google::protobuf::internal::ParseNamedEnum( + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( NewsType_descriptor(), name, value ); } @@ -675,11 +649,10 @@ namespace protobuf }; bool PlayerTeam_IsValid(int value); - extern const uint32_t PlayerTeam_internal_data_[]; constexpr PlayerTeam PlayerTeam_MIN = static_cast(0); constexpr PlayerTeam PlayerTeam_MAX = static_cast(2); constexpr int PlayerTeam_ARRAYSIZE = 2 + 1; - const ::google::protobuf::EnumDescriptor* + const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* PlayerTeam_descriptor(); template const std::string& PlayerTeam_Name(T value) @@ -690,13 +663,13 @@ namespace protobuf template<> inline const std::string& PlayerTeam_Name(PlayerTeam value) { - return ::google::protobuf::internal::NameOfDenseEnum( + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfDenseEnum( static_cast(value) ); } inline bool PlayerTeam_Parse(absl::string_view name, PlayerTeam* value) { - return ::google::protobuf::internal::ParseNamedEnum( + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( PlayerTeam_descriptor(), name, value ); } @@ -718,158 +691,154 @@ namespace protobuf // @@protoc_insertion_point(namespace_scope) } // namespace protobuf -namespace google -{ - namespace protobuf - { - - template<> - struct is_proto_enum<::protobuf::GameState> : std::true_type - { - }; - template<> - inline const EnumDescriptor* GetEnumDescriptor<::protobuf::GameState>() - { - return ::protobuf::GameState_descriptor(); - } - template<> - struct is_proto_enum<::protobuf::PlaceType> : std::true_type - { - }; - template<> - inline const EnumDescriptor* GetEnumDescriptor<::protobuf::PlaceType>() - { - return ::protobuf::PlaceType_descriptor(); - } - template<> - struct is_proto_enum<::protobuf::ShapeType> : std::true_type - { - }; - template<> - inline const EnumDescriptor* GetEnumDescriptor<::protobuf::ShapeType>() - { - return ::protobuf::ShapeType_descriptor(); - } - template<> - struct is_proto_enum<::protobuf::PlayerType> : std::true_type - { - }; - template<> - inline const EnumDescriptor* GetEnumDescriptor<::protobuf::PlayerType>() - { - return ::protobuf::PlayerType_descriptor(); - } - template<> - struct is_proto_enum<::protobuf::ShipType> : std::true_type - { - }; - template<> - inline const EnumDescriptor* GetEnumDescriptor<::protobuf::ShipType>() - { - return ::protobuf::ShipType_descriptor(); - } - template<> - struct is_proto_enum<::protobuf::ShipState> : std::true_type - { - }; - template<> - inline const EnumDescriptor* GetEnumDescriptor<::protobuf::ShipState>() - { - return ::protobuf::ShipState_descriptor(); - } - template<> - struct is_proto_enum<::protobuf::WeaponType> : std::true_type - { - }; - template<> - inline const EnumDescriptor* GetEnumDescriptor<::protobuf::WeaponType>() - { - return ::protobuf::WeaponType_descriptor(); - } - template<> - struct is_proto_enum<::protobuf::ConstructorType> : std::true_type - { - }; - template<> - inline const EnumDescriptor* GetEnumDescriptor<::protobuf::ConstructorType>() - { - return ::protobuf::ConstructorType_descriptor(); - } - template<> - struct is_proto_enum<::protobuf::ArmorType> : std::true_type - { - }; - template<> - inline const EnumDescriptor* GetEnumDescriptor<::protobuf::ArmorType>() - { - return ::protobuf::ArmorType_descriptor(); - } - template<> - struct is_proto_enum<::protobuf::ShieldType> : std::true_type - { - }; - template<> - inline const EnumDescriptor* GetEnumDescriptor<::protobuf::ShieldType>() - { - return ::protobuf::ShieldType_descriptor(); - } - template<> - struct is_proto_enum<::protobuf::ProducerType> : std::true_type - { - }; - template<> - inline const EnumDescriptor* GetEnumDescriptor<::protobuf::ProducerType>() - { - return ::protobuf::ProducerType_descriptor(); - } - template<> - struct is_proto_enum<::protobuf::ModuleType> : std::true_type - { - }; - template<> - inline const EnumDescriptor* GetEnumDescriptor<::protobuf::ModuleType>() - { - return ::protobuf::ModuleType_descriptor(); - } - template<> - struct is_proto_enum<::protobuf::BulletType> : std::true_type - { - }; - template<> - inline const EnumDescriptor* GetEnumDescriptor<::protobuf::BulletType>() - { - return ::protobuf::BulletType_descriptor(); - } - template<> - struct is_proto_enum<::protobuf::ConstructionType> : std::true_type - { - }; - template<> - inline const EnumDescriptor* GetEnumDescriptor<::protobuf::ConstructionType>() - { - return ::protobuf::ConstructionType_descriptor(); - } - template<> - struct is_proto_enum<::protobuf::NewsType> : std::true_type - { - }; - template<> - inline const EnumDescriptor* GetEnumDescriptor<::protobuf::NewsType>() - { - return ::protobuf::NewsType_descriptor(); - } - template<> - struct is_proto_enum<::protobuf::PlayerTeam> : std::true_type - { - }; - template<> - inline const EnumDescriptor* GetEnumDescriptor<::protobuf::PlayerTeam>() - { - return ::protobuf::PlayerTeam_descriptor(); - } - - } // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_OPEN + +template<> +struct is_proto_enum<::protobuf::GameState> : std::true_type +{ +}; +template<> +inline const EnumDescriptor* GetEnumDescriptor<::protobuf::GameState>() +{ + return ::protobuf::GameState_descriptor(); +} +template<> +struct is_proto_enum<::protobuf::PlaceType> : std::true_type +{ +}; +template<> +inline const EnumDescriptor* GetEnumDescriptor<::protobuf::PlaceType>() +{ + return ::protobuf::PlaceType_descriptor(); +} +template<> +struct is_proto_enum<::protobuf::ShapeType> : std::true_type +{ +}; +template<> +inline const EnumDescriptor* GetEnumDescriptor<::protobuf::ShapeType>() +{ + return ::protobuf::ShapeType_descriptor(); +} +template<> +struct is_proto_enum<::protobuf::PlayerType> : std::true_type +{ +}; +template<> +inline const EnumDescriptor* GetEnumDescriptor<::protobuf::PlayerType>() +{ + return ::protobuf::PlayerType_descriptor(); +} +template<> +struct is_proto_enum<::protobuf::ShipType> : std::true_type +{ +}; +template<> +inline const EnumDescriptor* GetEnumDescriptor<::protobuf::ShipType>() +{ + return ::protobuf::ShipType_descriptor(); +} +template<> +struct is_proto_enum<::protobuf::ShipState> : std::true_type +{ +}; +template<> +inline const EnumDescriptor* GetEnumDescriptor<::protobuf::ShipState>() +{ + return ::protobuf::ShipState_descriptor(); +} +template<> +struct is_proto_enum<::protobuf::WeaponType> : std::true_type +{ +}; +template<> +inline const EnumDescriptor* GetEnumDescriptor<::protobuf::WeaponType>() +{ + return ::protobuf::WeaponType_descriptor(); +} +template<> +struct is_proto_enum<::protobuf::ConstructorType> : std::true_type +{ +}; +template<> +inline const EnumDescriptor* GetEnumDescriptor<::protobuf::ConstructorType>() +{ + return ::protobuf::ConstructorType_descriptor(); +} +template<> +struct is_proto_enum<::protobuf::ArmorType> : std::true_type +{ +}; +template<> +inline const EnumDescriptor* GetEnumDescriptor<::protobuf::ArmorType>() +{ + return ::protobuf::ArmorType_descriptor(); +} +template<> +struct is_proto_enum<::protobuf::ShieldType> : std::true_type +{ +}; +template<> +inline const EnumDescriptor* GetEnumDescriptor<::protobuf::ShieldType>() +{ + return ::protobuf::ShieldType_descriptor(); +} +template<> +struct is_proto_enum<::protobuf::ProducerType> : std::true_type +{ +}; +template<> +inline const EnumDescriptor* GetEnumDescriptor<::protobuf::ProducerType>() +{ + return ::protobuf::ProducerType_descriptor(); +} +template<> +struct is_proto_enum<::protobuf::ModuleType> : std::true_type +{ +}; +template<> +inline const EnumDescriptor* GetEnumDescriptor<::protobuf::ModuleType>() +{ + return ::protobuf::ModuleType_descriptor(); +} +template<> +struct is_proto_enum<::protobuf::BulletType> : std::true_type +{ +}; +template<> +inline const EnumDescriptor* GetEnumDescriptor<::protobuf::BulletType>() +{ + return ::protobuf::BulletType_descriptor(); +} +template<> +struct is_proto_enum<::protobuf::ConstructionType> : std::true_type +{ +}; +template<> +inline const EnumDescriptor* GetEnumDescriptor<::protobuf::ConstructionType>() +{ + return ::protobuf::ConstructionType_descriptor(); +} +template<> +struct is_proto_enum<::protobuf::NewsType> : std::true_type +{ +}; +template<> +inline const EnumDescriptor* GetEnumDescriptor<::protobuf::NewsType>() +{ + return ::protobuf::NewsType_descriptor(); +} +template<> +struct is_proto_enum<::protobuf::PlayerTeam> : std::true_type +{ +}; +template<> +inline const EnumDescriptor* GetEnumDescriptor<::protobuf::PlayerTeam>() +{ + return ::protobuf::PlayerTeam_descriptor(); +} + +PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) diff --git a/CAPI/cpp/proto/Services.grpc.pb.cc b/CAPI/cpp/proto/Services.grpc.pb.cc old mode 100755 new mode 100644 diff --git a/CAPI/cpp/proto/Services.grpc.pb.h b/CAPI/cpp/proto/Services.grpc.pb.h old mode 100755 new mode 100644 diff --git a/CAPI/cpp/proto/Services.pb.cc b/CAPI/cpp/proto/Services.pb.cc old mode 100755 new mode 100644 index 36e021ea..9bb67597 --- a/CAPI/cpp/proto/Services.pb.cc +++ b/CAPI/cpp/proto/Services.pb.cc @@ -11,15 +11,13 @@ #include "google/protobuf/generated_message_reflection.h" #include "google/protobuf/reflection_ops.h" #include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" // @@protoc_insertion_point(includes) // Must be included last. #include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = ::PROTOBUF_NAMESPACE_ID::internal; namespace protobuf { } // namespace protobuf @@ -98,11 +96,7 @@ namespace protobuf { // @@protoc_insertion_point(namespace_scope) } // namespace protobuf -namespace google -{ - namespace protobuf - { - } // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_OPEN +PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) #include "google/protobuf/port_undef.inc" diff --git a/CAPI/cpp/proto/Services.pb.h b/CAPI/cpp/proto/Services.pb.h old mode 100755 new mode 100644 index 88fd711d..c58807eb --- a/CAPI/cpp/proto/Services.pb.h +++ b/CAPI/cpp/proto/Services.pb.h @@ -1,6 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: Services.proto -// Protobuf C++ Version: 4.25.1 #ifndef GOOGLE_PROTOBUF_INCLUDED_Services_2eproto_2epb_2eh #define GOOGLE_PROTOBUF_INCLUDED_Services_2eproto_2epb_2eh @@ -8,16 +7,15 @@ #include #include #include -#include #include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4025000 +#if PROTOBUF_VERSION < 4023000 #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 // PROTOBUF_VERSION -#if 4025001 < PROTOBUF_MIN_PROTOC_VERSION +#if 4023004 < 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." @@ -26,7 +24,6 @@ #include "google/protobuf/io/coded_stream.h" #include "google/protobuf/arena.h" #include "google/protobuf/arenastring.h" -#include "google/protobuf/generated_message_tctable_decl.h" #include "google/protobuf/generated_message_util.h" #include "google/protobuf/metadata_lite.h" #include "google/protobuf/generated_message_reflection.h" @@ -41,30 +38,22 @@ #define PROTOBUF_INTERNAL_EXPORT_Services_2eproto -namespace google +PROTOBUF_NAMESPACE_OPEN +namespace internal { - namespace protobuf - { - namespace internal - { - class AnyMetadata; - } // namespace internal - } // namespace protobuf -} // namespace google + class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_Services_2eproto { static const ::uint32_t offsets[]; }; -extern const ::google::protobuf::internal::DescriptorTable +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_Services_2eproto; -namespace google -{ - namespace protobuf - { - } // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_OPEN +PROTOBUF_NAMESPACE_CLOSE namespace protobuf { diff --git a/CAPI/python/PyAPI/AI.py b/CAPI/python/PyAPI/AI.py index e69de29b..46e17fca 100644 --- a/CAPI/python/PyAPI/AI.py +++ b/CAPI/python/PyAPI/AI.py @@ -0,0 +1,50 @@ +import PyAPI.structures as THUAI7 +from PyAPI.Interface import IShipAPI, ITeamAPI, IAI +from typing import Union, Final, cast, List +from PyAPI.constants import Constants +import queue + +import time + + +class Setting: + # 为假则play()期间确保游戏状态不更新,为真则只保证游戏状态在调用相关方法时不更新,大致一帧更新一次 + @staticmethod + def asynchronous() -> bool: + return False + + +numOfGridPerCell: Final[int] = 1000 + + +class AssistFunction: + @staticmethod + def CellToGrid(cell: int) -> int: + return cell * numOfGridPerCell + numOfGridPerCell // 2 + + @staticmethod + def GridToCell(grid: int) -> int: + return grid // numOfGridPerCell + + +class AI(IAI): + def __init__(self, pID: int): + self.__playerID = pID + + def ShipPlay(self, api: IShipAPI) -> None: + # 公共操作 + + if self.__playerID == 0: + # player0的操作 + return + elif self.__playerID == 1: + # player1的操作 + return + elif self.__playerID == 2: + # player2的操作 + return + return + + def TeamPlay(self, api: ITeamAPI) -> None: + # 操作 + return diff --git a/CAPI/python/PyAPI/API.py b/CAPI/python/PyAPI/API.py index 73613364..083e84d2 100644 --- a/CAPI/python/PyAPI/API.py +++ b/CAPI/python/PyAPI/API.py @@ -1,5 +1,222 @@ -import PyAPI.structures as THUAI6 -from PyAPI.Interface import ILogic, IStudentAPI, ITrickerAPI, IGameTimer, IAI +import PyAPI.structures as THUAI7 +from PyAPI.Interface import ILogic, IShipAPI, ITeamAPI, IGameTimer, IAI from math import pi from concurrent.futures import ThreadPoolExecutor, Future from typing import List, cast, Tuple, Union + + +class ShipAPI(IShipAPI, IGameTimer): + def __init__(self, logic: ILogic) -> None: + self.__logic = logic + self.__pool = ThreadPoolExecutor(20) + + def Move(self, timeInMilliseconds: int, angle: float) -> Future[bool]: + return self.__pool.submit(self.__logic.move, timeInMilliseconds, angle) + + def MoveRight(self, timeInMilliseconds: int) -> Future[bool]: + return self.Move(timeInMilliseconds, pi * 0.5) + + def MoveLeft(self, timeInMilliseconds: int) -> Future[bool]: + return self.Move(timeInMilliseconds, pi * 1.5) + + def MoveUp(self, timeInMilliseconds: int) -> Future[bool]: + return self.Move(timeInMilliseconds, pi) + + def MoveDown(self, timeInMilliseconds: int) -> Future[bool]: + return self.Move(timeInMilliseconds, 0) + + def Attack(self, angle: float) -> Future[bool]: + return self.__pool.submit(self.__logic.Attack, angle) + + def Recover(self) -> Future[bool]: + return self.__pool.submit(self.__logic.Recover) + + def Produce(self) -> Future[bool]: + return self.__pool.submit(self.__logic.Produce) + + def Rebuild(self, constructionType: THUAI7.ConstructionType) -> Future[bool]: + return self.__pool.submit(self.__logic.Rebuild, constructionType) + + def Construct(self, constructionType: THUAI7.ConstructionType) -> Future[bool]: + return self.__pool.submit(self.__logic.Construct, constructionType) + + def GetFrameCount(self) -> int: + return self.__logic.GetFrameCount() + + def Wait(self) -> bool: + if self.__logic.GetCounter() == -1: + return False + else: + return self.__logic.WaitThread() + + def EndAllAction(self) -> Future[bool]: + return self.__pool.submit(self.__logic.EndAllAction) + + def SendMessage(self, toID: int, message: Union[str, bytes]) -> Future[bool]: + return self.__pool.submit(self.__logic.SendMessage, toID, message) + + def HaveMessage(self) -> bool: + return self.__logic.HaveMessage() + + def GetMessage(self) -> Tuple[int, Union[str, bytes]]: + return self.__logic.GetMessage() + + def GetShips(self) -> List[THUAI7.Ship]: + return self.__logic.GetShips() + + def GetEnemyShips(self) -> List[THUAI7.Ship]: + return self.__logic.GetEnemyShips() + + def GetBullets(self) -> List[THUAI7.Bullet]: + return self.__logic.GetBullets() + + def GetFullMap(self) -> List[List[THUAI7.PlaceType]]: + return self.__logic.GetFullMap() + + def GetPlaceType(self, cellX: int, cellY: int) -> THUAI7.PlaceType: + return self.__logic.GetPlaceType(cellX, cellY) + + def GetConstructionHp(self, cellX: int, cellY: int) -> int: + return self.__logic.GetConstructionHp(cellX, cellY) + + def GetWormHp(self, cellX: int, cellY: int) -> int: + return self.__logic.GetWormHp(cellX, cellY) + + def GetResouceState(self, cellX: int, cellY: int) -> int: + return self.__logic.GetResouceState(cellX, cellY) + + def GetHomeHp(self) -> int: + return self.__logic.GetHomeHp() + + def GetGameInfo(self) -> THUAI7.GameInfo: + return self.__logic.GetGameInfo() + + def GetPlayerGUIDs(self) -> List[int]: + return self.__logic.GetPlayerGUIDs() + + def GetSelfInfo(self) -> THUAI7.Ship: + return cast(THUAI7.Ships, self.__logic.GetSelfInfo()) + + def GetMoney(self) -> int: + return self.__logic.GetMoney() + + def GetScore(self) -> int: + return self.__logic.GetScore() + + def HaveView(self, gridX: int, gridY: int) -> bool: + return self.__logic.HaveView(gridX, gridY, self.GetSelfInfo().x, + self.GetSelfInfo().y, self.GetSelfInfo().viewRange) + + def Print(self, cont: str) -> None: + pass + + def PrintShip(self) -> None: + pass + + def PrintSelfInfo(self) -> None: + pass + + def StartTimer(self) -> None: + pass + + def EndTimer(self) -> None: + pass + + def Play(self, ai: IAI) -> None: + ai.ShipPlay(self) + + +class TeamAPI(ITeamAPI, IGameTimer): + def __init__(self, logic: ILogic) -> None: + self.__logic = logic + self.__pool = ThreadPoolExecutor(20) + + def StartTimer(self) -> None: + pass + + def EndTimer(self) -> None: + pass + + def Play(self, ai: IAI) -> None: + ai.TeamPlay(self) + + def SendMessage(self, toID: int, message: Union[str, bytes]) -> Future[bool]: + return self.__pool.submit(self.__logic.SendMessage, toID, message) + + def HaveMessage(self) -> bool: + return self.__logic.HaveMessage() + + def GetMessage(self) -> Tuple[int, Union[str, bytes]]: + return self.__logic.GetMessage() + + def GetFrameCount(self) -> int: + return self.__logic.GetFrameCount() + + def Wait(self) -> bool: + if self.__logic.GetCounter() == -1: + return False + else: + return self.__logic.WaitThread() + + def EndAllAction(self) -> Future[bool]: + return self.__pool.submit(self.__logic.EndAllAction) + + def GetBullets(self) -> List[THUAI7.Bullet]: + return self.__logic.GetBullets() + + def GetShips(self) -> List[THUAI7.Ship]: + return self.__logic.GetShips() + + def GetEnemyShips(self) -> List[THUAI7.Ship]: + return self.__logic.GetEnemyShips() + + def GetFullMap(self) -> List[List[THUAI7.PlaceType]]: + return self.__logic.GetFullMap() + + def GetPlaceType(self, cellX: int, cellY: int) -> THUAI7.PlaceType: + return self.__logic.GetPlaceType(cellX, cellY) + + def GetConstructionHp(self, cellX: int, cellY: int) -> int: + return self.__logic.GetConstructionHp(cellX, cellY) + + def GetWormHp(self, cellX: int, cellY: int) -> int: + return self.__logic.GetWormHp(cellX, cellY) + + def GetResouceState(self, cellX: int, cellY: int) -> int: + return self.__logic.GetResouceState(cellX, cellY) + + def GetHomeHp(self) -> int: + return self.__logic.GetHomeHp() + + def GetGameInfo(self) -> THUAI7.GameInfo: + return self.__logic.GetGameInfo() + + def GetPlayerGUIDs(self) -> List[int]: + return self.__logic.GetPlayerGUIDs() + + def GetSelfInfo(self) -> THUAI7.Home: + return cast(THUAI7.Home, self.__logic.GetSelfInfo()) + + def GetScore(self) -> int: + return self.__logic.GetScore() + + def GetMoney(self) -> int: + return self.__logic.GetMoney() + + def InstallModule(self, ID: int, type: THUAI7.ModuleType) -> Future[bool]: + return self.__pool.submit(self.__logic.InstallModule, ID, type) + + def Recycle(self, ID: int) -> Future[bool]: + return self.__pool.submit(self.__logic.Recycle, ID) + + def BuildShip(self, shipType: THUAI7.ShipType, cellX: int, cellY: int) -> Future[bool]: + return self.__pool.submit(self.__logic.BuildShip, shipType, cellX, cellY) + + def Print(self, string: str) -> None: + pass + + def PrintTeam(self) -> None: + pass + + def PrintSelfInfo(self) -> None: + pass diff --git a/CAPI/python/PyAPI/Communication.py b/CAPI/python/PyAPI/Communication.py index e1f71c72..1a8798f5 100644 --- a/CAPI/python/PyAPI/Communication.py +++ b/CAPI/python/PyAPI/Communication.py @@ -224,18 +224,29 @@ def GetMessage2Client(self) -> Message2Clients.MessageToClient: self.__haveNewMessage = False return self.__message2Client - def AddPlayer(self, playerID: int, teamID: int, shipType: THUAI7.ShipType, cellX: int, cellY: int) -> None: + def AddPlayer(self, playerID: int, teamID: int, cellX: int, cellY: int, shipType: THUAI7.ShipType) -> None: def tMessage(): try: - playerMsg = THUAI72Proto.THUAI72ProtobufPlayerMsg(playerID, teamID, shipType, cellX, cellY) - for msg in self.__THUAI7Stub.AddPlayer(playerMsg): - with self.__cvMessage: - self.__haveNewMessage = True - self.__message2Client = msg - self.__cvMessage.notify() - with self.__mtxLimit: - self.__counter = 0 - self.__counterMove = 0 + if playerID == 0: + playerMsg = THUAI72Proto.THUAI72ProtobufPlayerMsg(playerID, teamID, shipType, cellX, cellY) + for msg in self.__THUAI7Stub.AddPlayer(playerMsg): + with self.__cvMessage: + self.__haveNewMessage = True + self.__message2Client = msg + self.__cvMessage.notify() + with self.__mtxLimit: + self.__counter = 0 + self.__counterMove = 0 + elif playerID >= 1 and playerID <= 8: + playerMsg = THUAI72Proto.THUAI72ProtobufPlayerMsg(playerID, teamID, shipType, cellX, cellY) + for msg in self.__THUAI7Stub.AddPlayer(playerMsg): + with self.__cvMessage: + self.__haveNewMessage = True + self.__message2Client = msg + self.__cvMessage.notify() + with self.__mtxLimit: + self.__counter = 0 + self.__counterMove = 0 except grpc.RpcError: return diff --git a/CAPI/python/PyAPI/Interface.py b/CAPI/python/PyAPI/Interface.py index c155c5be..8b4ef123 100644 --- a/CAPI/python/PyAPI/Interface.py +++ b/CAPI/python/PyAPI/Interface.py @@ -162,6 +162,11 @@ def HaveMessage(self) -> bool: def GetMessage(self) -> Tuple[int, str]: pass + @abstractmethod + def Move(self, timeInMilliseconds: int, angle: float) -> Future[bool]: + pass + + # 获取游戏目前所进行的帧数 @abstractmethod def GetFrameCount(self) -> int: '获取游戏目前所进行的帧数' @@ -244,6 +249,10 @@ def PrintTeam(self) -> None: def PrintSelfInfo(self) -> None: pass + @abstractmethod + def GetSelfInfo(self) -> Union[THUAI7.Ship, THUAI7.Team]: + pass + class IShipAPI(IAPI, metaclass=ABCMeta): @abstractmethod diff --git a/CAPI/python/PyAPI/logic.py b/CAPI/python/PyAPI/logic.py index f39558db..92576053 100644 --- a/CAPI/python/PyAPI/logic.py +++ b/CAPI/python/PyAPI/logic.py @@ -216,6 +216,10 @@ def BuildShip(self, shipType: THUAI7.ShipType, cellX: int, cellY: int) -> bool: self.__logger.debug("Called BuildShip") return self.__comm.BuildShip(cellX, cellY, shipType, self.__teamID) + def __TryConnection(self) -> bool: + self.__logger.info("Try to connect to the server.") + return self.__comm.TryConnection(self.__playerID, self.__teamID) + def __ProcessMessage(self) -> None: def messageThread(): self.__logger.info("Message thread started") @@ -275,9 +279,14 @@ def LoadBuffer(self, message: Message2Clients.MessageToClient) -> None: self.__bufferState.guids.clear() self.__logger.debug("Buffer cleared") - for obj in message.obj_message: - if obj.WhichOneof("message_of_obj") == "ship_message": - self.__bufferState.guids.append(obj.ship_message.guid) + if self.__playerID != 0: + for obj in message.obj_message: + if obj.WhichOneof("message_of_obj") == "ship_message": + self.__bufferState.guids.append(obj.ship_message.guid) + else: + for obj in message.obj_message: + if obj.WhichOneof("message_of_obj") == "team_message": + self.__bufferState.guids.append(obj.team_message.guid) self.__bufferState.gameInfo = Proto2THUAI7.Protobuf2THUAI7GameInfo(message.all_message) @@ -298,25 +307,32 @@ def LoadBuffer(self, message: Message2Clients.MessageToClient) -> None: self.__counterBuffer += 1 self.__cvBuffer.notify() - def LoadBufferSelf(self, message: Message2Clients.MessageToClient) -> None: - for item in message.obj_message: - if item.WhichOneof("message_of_obj") == "ship_message": - if item.ship_message.player_id == self.__playerID: - self.__bufferState.self = Proto2THUAI7.Protobuf2THUAI7Ship(item.ship_message) - self.__bufferState.ships.append(self.__bufferState.self) - else: - self.__bufferState.ships.append(Proto2THUAI7.Protobuf2THUAI7Ship(item.ship_message)) - self.__logger.debug("Load ship") + def __LoadBufferSelf(self, message: Message2Clients.MessageToClient) -> None: + if self.__playerID != 0: + for item in message.obj_message: + if item.WhichOneof("message_of_obj") == "ship_message": + if item.ship_message.player_id == self.__playerID: + self.__bufferState.self = Proto2THUAI7.Protobuf2THUAI7Ship(item.ship_message) + self.__bufferState.ships.append(self.__bufferState.self) + else: + self.__bufferState.ships.append(Proto2THUAI7.Protobuf2THUAI7Ship(item.ship_message)) + self.__logger.debug("Load ship") + else: + for item in message.obj_message: + if item.WhichOneof("message_of_obj") == "team_message": + self.__bufferState.self = Proto2THUAI7.Protobuf2THUAI7Team(item.team_message) + self.__bufferState.teams.append(self.__bufferState.self) + self.__logger.debug("Load team") - def LoadBufferCase(self, item: Message2Clients.MessageOfObj) -> None: + def __LoadBufferCase(self, item: Message2Clients.MessageOfObj) -> None: if item.WhichOneof("message_of_obj") == "ship_message": - if AssistFunction.HaveView(self.__bufferState.self.viewRange, - self.__bufferState.self.x, - self.__bufferState.self.y, - item.ship_message.x, - item.ship_message.y, - self.__bufferState.gameMap): - if item.ship_message.team_id != self.__teamID: + if item.ship_message.team_id != self.__teamID: + if AssistFunction.HaveView(self.__bufferState.self.viewRange, + self.__bufferState.self.x, + self.__bufferState.self.y, + item.ship_message.x, + item.ship_message.y, + self.__bufferState.gameMap): self.__bufferState.enemyShips.append(Proto2THUAI7.Protobuf2THUAI7Ship(item.ship_message)) self.__logger.debug("Load enemy ship") @@ -335,7 +351,8 @@ def LoadBufferCase(self, item: Message2Clients.MessageOfObj) -> None: self.__logger.debug("Add Bullet!") elif item.WhichOneof("message_of_obj") == "factory_message": - if item.factory_message.team_id == self.__teamID: + if AssistFunction.HaveView(self.__bufferState.self.viewRange, self.__bufferState.self.x, + self.__bufferState.self.y, item.factory_message.x, item.factory_message.y, self.__bufferState.gameMap): pos = ( AssistFunction.GridToCell( item.factory_message.x), AssistFunction.GridToCell( @@ -348,7 +365,14 @@ def LoadBufferCase(self, item: Message2Clients.MessageOfObj) -> None: self.__logger.debug("Update Factory") elif item.WhichOneof("message_of_obj") == "community_message": - if item.community_message.team_id == self.__teamID: + if AssistFunction.HaveView( + self.__bufferState.self.viewRange, + self.__bufferState.self.x, + self.__bufferState.self.y, + item.community_message.x, + item.community_message.y, + self.__bufferState.gameMap, + ): pos = ( AssistFunction.GridToCell( item.community_message.x), AssistFunction.GridToCell( @@ -361,7 +385,8 @@ def LoadBufferCase(self, item: Message2Clients.MessageOfObj) -> None: self.__logger.debug("Update Community") elif item.WhichOneof("message_of_obj") == "fort_message": - if item.fort_message.team_id == self.__teamID: + if AssistFunction.HaveView(self.__bufferState.self.viewRange, self.__bufferState.self.x, + self.__bufferState.self.y, item.fort_message.x, item.fort_message.y, self.__bufferState.gameMap): pos = (AssistFunction.GridToCell(item.fort_message.x), AssistFunction.GridToCell(item.fort_message.y)) if pos not in self.__bufferState.mapInfo.fortState: self.__bufferState.mapInfo.fortState[pos] = item.fort_message.hp @@ -379,17 +404,21 @@ def LoadBufferCase(self, item: Message2Clients.MessageOfObj) -> None: self.__logger.debug("Update Wormhole") elif item.WhichOneof("message_of_obj") == "home_message": - pos = (AssistFunction.GridToCell(item.home_message.x), AssistFunction.GridToCell(item.home_message.y)) - self.__bufferState.mapInfo.homeState[pos] = item.home_message.hp - self.__logger.debug("Update Home") + if AssistFunction.HaveView(self.__bufferState.self.viewRange, self.__bufferState.self.x, + self.__bufferState.self.y, item.home_message.x, item.home_message.y, self.__bufferState.gameMap): + pos = (AssistFunction.GridToCell(item.home_message.x), AssistFunction.GridToCell(item.home_message.y)) + self.__bufferState.mapInfo.homeState[pos] = item.home_message.hp + self.__logger.debug("Update Home") elif item.WhichOneof("message_of_obj") == "resource_message": - pos = ( - AssistFunction.GridToCell( - item.resource_message.x), AssistFunction.GridToCell( - item.resource_message.y)) - self.__bufferState.mapInfo.resourceState[pos] = item.resource_message.progress - self.__logger.debug("Update Resource") + if AssistFunction.HaveView(self.__bufferState.self.viewRange, self.__bufferState.self.x, + self.__bufferState.self.y, item.resource_message.x, item.resource_message.y, self.__bufferState.gameMap): + pos = ( + AssistFunction.GridToCell( + item.resource_message.x), AssistFunction.GridToCell( + item.resource_message.y)) + self.__bufferState.mapInfo.resourceState[pos] = item.resource_message.progress + self.__logger.debug("Update Resource") elif item.WhichOneof("message_of_obj") == "news_message": if item.news_message.to_id == self.__playerID: @@ -419,8 +448,9 @@ def LoadBufferCase(self, item: Message2Clients.MessageOfObj) -> None: # self.__logger.debug("Add Bombed Bullet!") elif item.WhichOneof("message_of_obj") == "team_message": - self.__bufferState.teams.append(Proto2THUAI7.Protobuf2THUAI7Team(item.team_message)) - self.__logger.debug("Add Team!") + if item.team_message.team_id != self.__teamID: + self.__bufferState.teams.append(Proto2THUAI7.Protobuf2THUAI7Team(item.team_message)) + self.__logger.debug("Add Team!") else: self.__logger.error("Unknown message!") diff --git a/CAPI/python/PyAPI/structures.py b/CAPI/python/PyAPI/structures.py index 92e82711..56708c92 100644 --- a/CAPI/python/PyAPI/structures.py +++ b/CAPI/python/PyAPI/structures.py @@ -1,5 +1,11 @@ from enum import Enum -from typing import Dict, Tuple +from typing import List, Dict +import sys + +if sys.version_info < (3, 9): + from typing import Tuple +else: + Tuple = tuple class GameState(Enum): diff --git a/CAPI/python/PyAPI/utils.py b/CAPI/python/PyAPI/utils.py index cd19799c..8b367c7f 100644 --- a/CAPI/python/PyAPI/utils.py +++ b/CAPI/python/PyAPI/utils.py @@ -505,3 +505,7 @@ def THUAI72ProtobufPlayerMsg( y=y, ship_type=THUAI72Proto.shipTypeDict[shipType] ) + + @staticmethod + def THUAI72ProtobufRecoverMsg(playerID: int, recover: int, teamID: int) -> Message2Server.RecoverMsg: + return Message2Server.RecoverMsg(player_id=playerID, team_id=teamID, recover=recover) diff --git a/CAPI/python/generate_proto.sh b/CAPI/python/generate_proto.sh new file mode 100644 index 00000000..25e4cb7e --- /dev/null +++ b/CAPI/python/generate_proto.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +python3 -m pip install -r requirements.txt + +mkdir -p proto + +python3 -m grpc_tools.protoc -I../../dependency/proto/ --python_out=./proto --pyi_out=./proto MessageType.proto +python3 -m grpc_tools.protoc -I../../dependency/proto/ --python_out=./proto --pyi_out=./proto Message2Clients.proto +python3 -m grpc_tools.protoc -I../../dependency/proto/ --python_out=./proto --pyi_out=./proto Message2Server.proto +python3 -m grpc_tools.protoc -I../../dependency/proto/ --python_out=./proto --pyi_out=./proto --grpc_python_out=./proto Services.proto diff --git a/CAPI/python/requirements.txt b/CAPI/python/requirements.txt new file mode 100644 index 00000000..61138d46 --- /dev/null +++ b/CAPI/python/requirements.txt @@ -0,0 +1,3 @@ +grpcio==1.54.2 +grpcio-tools==1.54.2 +numpy diff --git a/dependency/proto/Message2Clients.proto b/dependency/proto/Message2Clients.proto index 74217c3e..815ada00 100755 --- a/dependency/proto/Message2Clients.proto +++ b/dependency/proto/Message2Clients.proto @@ -113,7 +113,7 @@ message MessageOfTeam int64 player_id = 2; int32 score = 3; int32 money = 4; - + int64 guid=5; } message MessageOfObj @@ -140,6 +140,10 @@ message MessageOfAll int32 game_time = 1; int32 red_team_score=2; int32 blue_team_score=3; + int32 red_team_money=4; + int32 blue_team_money=5; + int32 red_home_hp=6; + int32 blue_home_hp=7; } message MessageToClient