// Generated by the protocol buffer compiler. DO NOT EDIT! // source: net.proto #include "net.pb.h" #include #include #include #include #include #include #include #include // @@protoc_insertion_point(includes) #include PROTOBUF_PRAGMA_INIT_SEG namespace _pb = ::PROTOBUF_NAMESPACE_ID; namespace _pbi = _pb::internal; namespace proto { PROTOBUF_CONSTEXPR angles::angles( ::_pbi::ConstantInitialized): _impl_{ /*decltype(_impl_.pitch_)*/0 , /*decltype(_impl_.yaw_)*/0 , /*decltype(_impl_._cached_size_)*/{}} {} struct anglesDefaultTypeInternal { PROTOBUF_CONSTEXPR anglesDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~anglesDefaultTypeInternal() {} union { angles _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 anglesDefaultTypeInternal _angles_default_instance_; PROTOBUF_CONSTEXPR coords::coords( ::_pbi::ConstantInitialized): _impl_{ /*decltype(_impl_.x_)*/0 , /*decltype(_impl_.z_)*/0 , /*decltype(_impl_._cached_size_)*/{}} {} struct coordsDefaultTypeInternal { PROTOBUF_CONSTEXPR coordsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~coordsDefaultTypeInternal() {} union { coords _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 coordsDefaultTypeInternal _coords_default_instance_; PROTOBUF_CONSTEXPR vec3::vec3( ::_pbi::ConstantInitialized): _impl_{ /*decltype(_impl_.x_)*/0 , /*decltype(_impl_.y_)*/0 , /*decltype(_impl_.z_)*/0 , /*decltype(_impl_._cached_size_)*/{}} {} struct vec3DefaultTypeInternal { PROTOBUF_CONSTEXPR vec3DefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~vec3DefaultTypeInternal() {} union { vec3 _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 vec3DefaultTypeInternal _vec3_default_instance_; PROTOBUF_CONSTEXPR ivec3::ivec3( ::_pbi::ConstantInitialized): _impl_{ /*decltype(_impl_.x_)*/0 , /*decltype(_impl_.y_)*/0 , /*decltype(_impl_.z_)*/0 , /*decltype(_impl_._cached_size_)*/{}} {} struct ivec3DefaultTypeInternal { PROTOBUF_CONSTEXPR ivec3DefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ivec3DefaultTypeInternal() {} union { ivec3 _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ivec3DefaultTypeInternal _ivec3_default_instance_; PROTOBUF_CONSTEXPR entity::entity( ::_pbi::ConstantInitialized): _impl_{ /*decltype(_impl_.chunk_pos_)*/nullptr , /*decltype(_impl_.local_pos_)*/nullptr , /*decltype(_impl_.index_)*/0u , /*decltype(_impl_._cached_size_)*/{}} {} struct entityDefaultTypeInternal { PROTOBUF_CONSTEXPR entityDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~entityDefaultTypeInternal() {} union { entity _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 entityDefaultTypeInternal _entity_default_instance_; PROTOBUF_CONSTEXPR animate::animate( ::_pbi::ConstantInitialized): _impl_{ /*decltype(_impl_.entity_)*/nullptr , /*decltype(_impl_.viewangles_)*/nullptr , /*decltype(_impl_.velocity_)*/nullptr , /*decltype(_impl_.commands_)*/0u , /*decltype(_impl_.active_item_)*/0u , /*decltype(_impl_._cached_size_)*/{}} {} struct animateDefaultTypeInternal { PROTOBUF_CONSTEXPR animateDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~animateDefaultTypeInternal() {} union { animate _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 animateDefaultTypeInternal _animate_default_instance_; PROTOBUF_CONSTEXPR item::item( ::_pbi::ConstantInitialized): _impl_{ /*decltype(_impl_.index_)*/0u , /*decltype(_impl_.type_)*/0u , /*decltype(_impl_.quantity_)*/0u , /*decltype(_impl_._cached_size_)*/{}} {} struct itemDefaultTypeInternal { PROTOBUF_CONSTEXPR itemDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~itemDefaultTypeInternal() {} union { item _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 itemDefaultTypeInternal _item_default_instance_; PROTOBUF_CONSTEXPR item_array::item_array( ::_pbi::ConstantInitialized): _impl_{ /*decltype(_impl_.items_)*/{} , /*decltype(_impl_._cached_size_)*/{}} {} struct item_arrayDefaultTypeInternal { PROTOBUF_CONSTEXPR item_arrayDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~item_arrayDefaultTypeInternal() {} union { item_array _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 item_arrayDefaultTypeInternal _item_array_default_instance_; PROTOBUF_CONSTEXPR player::player( ::_pbi::ConstantInitialized): _impl_{ /*decltype(_impl_.animate_)*/nullptr , /*decltype(_impl_.inventory_)*/nullptr , /*decltype(_impl_._cached_size_)*/{}} {} struct playerDefaultTypeInternal { PROTOBUF_CONSTEXPR playerDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~playerDefaultTypeInternal() {} union { player _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 playerDefaultTypeInternal _player_default_instance_; PROTOBUF_CONSTEXPR auth::auth( ::_pbi::ConstantInitialized): _impl_{ /*decltype(_impl_.username_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} , /*decltype(_impl_.password_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} , /*decltype(_impl_._cached_size_)*/{}} {} struct authDefaultTypeInternal { PROTOBUF_CONSTEXPR authDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~authDefaultTypeInternal() {} union { auth _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 authDefaultTypeInternal _auth_default_instance_; PROTOBUF_CONSTEXPR init::init( ::_pbi::ConstantInitialized): _impl_{ /*decltype(_impl_.localplayer_)*/nullptr , /*decltype(_impl_.seed_)*/uint64_t{0u} , /*decltype(_impl_.draw_distance_)*/0 , /*decltype(_impl_.tickrate_)*/0u , /*decltype(_impl_.tick_)*/0u , /*decltype(_impl_._cached_size_)*/{}} {} struct initDefaultTypeInternal { PROTOBUF_CONSTEXPR initDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~initDefaultTypeInternal() {} union { init _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 initDefaultTypeInternal _init_default_instance_; PROTOBUF_CONSTEXPR move::move( ::_pbi::ConstantInitialized): _impl_{ /*decltype(_impl_.viewangles_)*/nullptr , /*decltype(_impl_.commands_)*/0u , /*decltype(_impl_.active_item_)*/0u , /*decltype(_impl_.sequence_)*/0u , /*decltype(_impl_._cached_size_)*/{}} {} struct moveDefaultTypeInternal { PROTOBUF_CONSTEXPR moveDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~moveDefaultTypeInternal() {} union { move _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 moveDefaultTypeInternal _move_default_instance_; PROTOBUF_CONSTEXPR remove_entity::remove_entity( ::_pbi::ConstantInitialized): _impl_{ /*decltype(_impl_.index_)*/0u , /*decltype(_impl_._cached_size_)*/{}} {} struct remove_entityDefaultTypeInternal { PROTOBUF_CONSTEXPR remove_entityDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~remove_entityDefaultTypeInternal() {} union { remove_entity _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 remove_entityDefaultTypeInternal _remove_entity_default_instance_; PROTOBUF_CONSTEXPR say::say( ::_pbi::ConstantInitialized): _impl_{ /*decltype(_impl_.text_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} , /*decltype(_impl_._cached_size_)*/{}} {} struct sayDefaultTypeInternal { PROTOBUF_CONSTEXPR sayDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~sayDefaultTypeInternal() {} union { say _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 sayDefaultTypeInternal _say_default_instance_; PROTOBUF_CONSTEXPR hear_player::hear_player( ::_pbi::ConstantInitialized): _impl_{ /*decltype(_impl_.text_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} , /*decltype(_impl_.index_)*/0u , /*decltype(_impl_._cached_size_)*/{}} {} struct hear_playerDefaultTypeInternal { PROTOBUF_CONSTEXPR hear_playerDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~hear_playerDefaultTypeInternal() {} union { hear_player _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 hear_playerDefaultTypeInternal _hear_player_default_instance_; PROTOBUF_CONSTEXPR request_chunk::request_chunk( ::_pbi::ConstantInitialized): _impl_{ /*decltype(_impl_.chunk_pos_)*/nullptr , /*decltype(_impl_._cached_size_)*/{}} {} struct request_chunkDefaultTypeInternal { PROTOBUF_CONSTEXPR request_chunkDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~request_chunkDefaultTypeInternal() {} union { request_chunk _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 request_chunkDefaultTypeInternal _request_chunk_default_instance_; PROTOBUF_CONSTEXPR remove_chunk::remove_chunk( ::_pbi::ConstantInitialized): _impl_{ /*decltype(_impl_.chunk_pos_)*/nullptr , /*decltype(_impl_._cached_size_)*/{}} {} struct remove_chunkDefaultTypeInternal { PROTOBUF_CONSTEXPR remove_chunkDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~remove_chunkDefaultTypeInternal() {} union { remove_chunk _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 remove_chunkDefaultTypeInternal _remove_chunk_default_instance_; PROTOBUF_CONSTEXPR chunk::chunk( ::_pbi::ConstantInitialized): _impl_{ /*decltype(_impl_.blocks_)*/{} , /*decltype(_impl_._blocks_cached_byte_size_)*/{0} , /*decltype(_impl_.chunk_pos_)*/nullptr , /*decltype(_impl_._cached_size_)*/{}} {} struct chunkDefaultTypeInternal { PROTOBUF_CONSTEXPR chunkDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~chunkDefaultTypeInternal() {} union { chunk _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 chunkDefaultTypeInternal _chunk_default_instance_; PROTOBUF_CONSTEXPR add_block::add_block( ::_pbi::ConstantInitialized): _impl_{ /*decltype(_impl_.chunk_pos_)*/nullptr , /*decltype(_impl_.block_pos_)*/nullptr , /*decltype(_impl_.active_item_)*/0u , /*decltype(_impl_._cached_size_)*/{}} {} struct add_blockDefaultTypeInternal { PROTOBUF_CONSTEXPR add_blockDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~add_blockDefaultTypeInternal() {} union { add_block _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 add_blockDefaultTypeInternal _add_block_default_instance_; PROTOBUF_CONSTEXPR remove_block::remove_block( ::_pbi::ConstantInitialized): _impl_{ /*decltype(_impl_.chunk_pos_)*/nullptr , /*decltype(_impl_.block_pos_)*/nullptr , /*decltype(_impl_._cached_size_)*/{}} {} struct remove_blockDefaultTypeInternal { PROTOBUF_CONSTEXPR remove_blockDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~remove_blockDefaultTypeInternal() {} union { remove_block _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 remove_blockDefaultTypeInternal _remove_block_default_instance_; PROTOBUF_CONSTEXPR server_message::server_message( ::_pbi::ConstantInitialized): _impl_{ /*decltype(_impl_.message_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} , /*decltype(_impl_.fatal_)*/false , /*decltype(_impl_._cached_size_)*/{}} {} struct server_messageDefaultTypeInternal { PROTOBUF_CONSTEXPR server_messageDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~server_messageDefaultTypeInternal() {} union { server_message _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 server_messageDefaultTypeInternal _server_message_default_instance_; PROTOBUF_CONSTEXPR item_swap::item_swap( ::_pbi::ConstantInitialized): _impl_{ /*decltype(_impl_.index_a_)*/0u , /*decltype(_impl_.index_b_)*/0u , /*decltype(_impl_._cached_size_)*/{}} {} struct item_swapDefaultTypeInternal { PROTOBUF_CONSTEXPR item_swapDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~item_swapDefaultTypeInternal() {} union { item_swap _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 item_swapDefaultTypeInternal _item_swap_default_instance_; PROTOBUF_CONSTEXPR item_use::item_use( ::_pbi::ConstantInitialized): _impl_{ /*decltype(_impl_.index_)*/0u , /*decltype(_impl_._cached_size_)*/{}} {} struct item_useDefaultTypeInternal { PROTOBUF_CONSTEXPR item_useDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~item_useDefaultTypeInternal() {} union { item_use _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 item_useDefaultTypeInternal _item_use_default_instance_; PROTOBUF_CONSTEXPR item_update::item_update( ::_pbi::ConstantInitialized): _impl_{ /*decltype(_impl_.items_)*/{} , /*decltype(_impl_._cached_size_)*/{}} {} struct item_updateDefaultTypeInternal { PROTOBUF_CONSTEXPR item_updateDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~item_updateDefaultTypeInternal() {} union { item_update _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 item_updateDefaultTypeInternal _item_update_default_instance_; PROTOBUF_CONSTEXPR animate_update::animate_update( ::_pbi::ConstantInitialized): _impl_{ /*decltype(_impl_._has_bits_)*/{} , /*decltype(_impl_._cached_size_)*/{} , /*decltype(_impl_.animate_)*/nullptr , /*decltype(_impl_.tick_)*/0u , /*decltype(_impl_.sequence_)*/0u} {} struct animate_updateDefaultTypeInternal { PROTOBUF_CONSTEXPR animate_updateDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~animate_updateDefaultTypeInternal() {} union { animate_update _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 animate_updateDefaultTypeInternal _animate_update_default_instance_; PROTOBUF_CONSTEXPR packet::packet( ::_pbi::ConstantInitialized): _impl_{ /*decltype(_impl_.contents_)*/{} , /*decltype(_impl_._cached_size_)*/{} , /*decltype(_impl_._oneof_case_)*/{}} {} struct packetDefaultTypeInternal { PROTOBUF_CONSTEXPR packetDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~packetDefaultTypeInternal() {} union { packet _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 packetDefaultTypeInternal _packet_default_instance_; } // namespace proto static ::_pb::Metadata file_level_metadata_net_2eproto[26]; static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_net_2eproto = nullptr; static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_net_2eproto = nullptr; const uint32_t TableStruct_net_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::proto::angles, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::angles, _impl_.pitch_), PROTOBUF_FIELD_OFFSET(::proto::angles, _impl_.yaw_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::proto::coords, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::coords, _impl_.x_), PROTOBUF_FIELD_OFFSET(::proto::coords, _impl_.z_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::proto::vec3, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::vec3, _impl_.x_), PROTOBUF_FIELD_OFFSET(::proto::vec3, _impl_.y_), PROTOBUF_FIELD_OFFSET(::proto::vec3, _impl_.z_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::proto::ivec3, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::ivec3, _impl_.x_), PROTOBUF_FIELD_OFFSET(::proto::ivec3, _impl_.y_), PROTOBUF_FIELD_OFFSET(::proto::ivec3, _impl_.z_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::proto::entity, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::entity, _impl_.index_), PROTOBUF_FIELD_OFFSET(::proto::entity, _impl_.chunk_pos_), PROTOBUF_FIELD_OFFSET(::proto::entity, _impl_.local_pos_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::proto::animate, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::animate, _impl_.entity_), PROTOBUF_FIELD_OFFSET(::proto::animate, _impl_.commands_), PROTOBUF_FIELD_OFFSET(::proto::animate, _impl_.viewangles_), PROTOBUF_FIELD_OFFSET(::proto::animate, _impl_.velocity_), PROTOBUF_FIELD_OFFSET(::proto::animate, _impl_.active_item_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::proto::item, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::item, _impl_.index_), PROTOBUF_FIELD_OFFSET(::proto::item, _impl_.type_), PROTOBUF_FIELD_OFFSET(::proto::item, _impl_.quantity_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::proto::item_array, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::item_array, _impl_.items_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::proto::player, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::player, _impl_.animate_), PROTOBUF_FIELD_OFFSET(::proto::player, _impl_.inventory_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::proto::auth, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::auth, _impl_.username_), PROTOBUF_FIELD_OFFSET(::proto::auth, _impl_.password_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::proto::init, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::init, _impl_.seed_), PROTOBUF_FIELD_OFFSET(::proto::init, _impl_.draw_distance_), PROTOBUF_FIELD_OFFSET(::proto::init, _impl_.localplayer_), PROTOBUF_FIELD_OFFSET(::proto::init, _impl_.tickrate_), PROTOBUF_FIELD_OFFSET(::proto::init, _impl_.tick_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::proto::move, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::move, _impl_.commands_), PROTOBUF_FIELD_OFFSET(::proto::move, _impl_.viewangles_), PROTOBUF_FIELD_OFFSET(::proto::move, _impl_.active_item_), PROTOBUF_FIELD_OFFSET(::proto::move, _impl_.sequence_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::proto::remove_entity, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::remove_entity, _impl_.index_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::proto::say, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::say, _impl_.text_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::proto::hear_player, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::hear_player, _impl_.index_), PROTOBUF_FIELD_OFFSET(::proto::hear_player, _impl_.text_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::proto::request_chunk, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::request_chunk, _impl_.chunk_pos_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::proto::remove_chunk, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::remove_chunk, _impl_.chunk_pos_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::proto::chunk, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::chunk, _impl_.chunk_pos_), PROTOBUF_FIELD_OFFSET(::proto::chunk, _impl_.blocks_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::proto::add_block, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::add_block, _impl_.chunk_pos_), PROTOBUF_FIELD_OFFSET(::proto::add_block, _impl_.block_pos_), PROTOBUF_FIELD_OFFSET(::proto::add_block, _impl_.active_item_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::proto::remove_block, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::remove_block, _impl_.chunk_pos_), PROTOBUF_FIELD_OFFSET(::proto::remove_block, _impl_.block_pos_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::proto::server_message, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::server_message, _impl_.message_), PROTOBUF_FIELD_OFFSET(::proto::server_message, _impl_.fatal_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::proto::item_swap, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::item_swap, _impl_.index_a_), PROTOBUF_FIELD_OFFSET(::proto::item_swap, _impl_.index_b_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::proto::item_use, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::item_use, _impl_.index_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::proto::item_update, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::item_update, _impl_.items_), PROTOBUF_FIELD_OFFSET(::proto::animate_update, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::proto::animate_update, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::animate_update, _impl_.animate_), PROTOBUF_FIELD_OFFSET(::proto::animate_update, _impl_.tick_), PROTOBUF_FIELD_OFFSET(::proto::animate_update, _impl_.sequence_), ~0u, ~0u, 0, ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::proto::packet, _internal_metadata_), ~0u, // no _extensions_ PROTOBUF_FIELD_OFFSET(::proto::packet, _impl_._oneof_case_[0]), ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ ::_pbi::kInvalidFieldOffsetTag, ::_pbi::kInvalidFieldOffsetTag, ::_pbi::kInvalidFieldOffsetTag, ::_pbi::kInvalidFieldOffsetTag, ::_pbi::kInvalidFieldOffsetTag, ::_pbi::kInvalidFieldOffsetTag, ::_pbi::kInvalidFieldOffsetTag, ::_pbi::kInvalidFieldOffsetTag, ::_pbi::kInvalidFieldOffsetTag, ::_pbi::kInvalidFieldOffsetTag, ::_pbi::kInvalidFieldOffsetTag, ::_pbi::kInvalidFieldOffsetTag, ::_pbi::kInvalidFieldOffsetTag, ::_pbi::kInvalidFieldOffsetTag, ::_pbi::kInvalidFieldOffsetTag, ::_pbi::kInvalidFieldOffsetTag, PROTOBUF_FIELD_OFFSET(::proto::packet, _impl_.contents_), }; static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, -1, -1, sizeof(::proto::angles)}, { 8, -1, -1, sizeof(::proto::coords)}, { 16, -1, -1, sizeof(::proto::vec3)}, { 25, -1, -1, sizeof(::proto::ivec3)}, { 34, -1, -1, sizeof(::proto::entity)}, { 43, -1, -1, sizeof(::proto::animate)}, { 54, -1, -1, sizeof(::proto::item)}, { 63, -1, -1, sizeof(::proto::item_array)}, { 70, -1, -1, sizeof(::proto::player)}, { 78, -1, -1, sizeof(::proto::auth)}, { 86, -1, -1, sizeof(::proto::init)}, { 97, -1, -1, sizeof(::proto::move)}, { 107, -1, -1, sizeof(::proto::remove_entity)}, { 114, -1, -1, sizeof(::proto::say)}, { 121, -1, -1, sizeof(::proto::hear_player)}, { 129, -1, -1, sizeof(::proto::request_chunk)}, { 136, -1, -1, sizeof(::proto::remove_chunk)}, { 143, -1, -1, sizeof(::proto::chunk)}, { 151, -1, -1, sizeof(::proto::add_block)}, { 160, -1, -1, sizeof(::proto::remove_block)}, { 168, -1, -1, sizeof(::proto::server_message)}, { 176, -1, -1, sizeof(::proto::item_swap)}, { 184, -1, -1, sizeof(::proto::item_use)}, { 191, -1, -1, sizeof(::proto::item_update)}, { 198, 207, -1, sizeof(::proto::animate_update)}, { 210, -1, -1, sizeof(::proto::packet)}, }; static const ::_pb::Message* const file_default_instances[] = { &::proto::_angles_default_instance_._instance, &::proto::_coords_default_instance_._instance, &::proto::_vec3_default_instance_._instance, &::proto::_ivec3_default_instance_._instance, &::proto::_entity_default_instance_._instance, &::proto::_animate_default_instance_._instance, &::proto::_item_default_instance_._instance, &::proto::_item_array_default_instance_._instance, &::proto::_player_default_instance_._instance, &::proto::_auth_default_instance_._instance, &::proto::_init_default_instance_._instance, &::proto::_move_default_instance_._instance, &::proto::_remove_entity_default_instance_._instance, &::proto::_say_default_instance_._instance, &::proto::_hear_player_default_instance_._instance, &::proto::_request_chunk_default_instance_._instance, &::proto::_remove_chunk_default_instance_._instance, &::proto::_chunk_default_instance_._instance, &::proto::_add_block_default_instance_._instance, &::proto::_remove_block_default_instance_._instance, &::proto::_server_message_default_instance_._instance, &::proto::_item_swap_default_instance_._instance, &::proto::_item_use_default_instance_._instance, &::proto::_item_update_default_instance_._instance, &::proto::_animate_update_default_instance_._instance, &::proto::_packet_default_instance_._instance, }; const char descriptor_table_protodef_net_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = "\n\tnet.proto\022\005proto\"$\n\006angles\022\r\n\005pitch\030\001 " "\001(\002\022\013\n\003yaw\030\002 \001(\002\"\036\n\006coords\022\t\n\001x\030\001 \001(\005\022\t\n" "\001z\030\002 \001(\005\"\'\n\004vec3\022\t\n\001x\030\001 \001(\002\022\t\n\001y\030\002 \001(\002\022\t" "\n\001z\030\003 \001(\002\"(\n\005ivec3\022\t\n\001x\030\001 \001(\005\022\t\n\001y\030\002 \001(\005" "\022\t\n\001z\030\003 \001(\005\"Y\n\006entity\022\r\n\005index\030\001 \001(\r\022 \n\t" "chunk_pos\030\002 \001(\0132\r.proto.coords\022\036\n\tlocal_" "pos\030\003 \001(\0132\013.proto.vec3\"\221\001\n\007animate\022\035\n\006en" "tity\030\001 \001(\0132\r.proto.entity\022\020\n\010commands\030\002 " "\001(\r\022!\n\nviewangles\030\003 \001(\0132\r.proto.angles\022\035" "\n\010velocity\030\004 \001(\0132\013.proto.vec3\022\023\n\013active_" "item\030\005 \001(\r\"5\n\004item\022\r\n\005index\030\001 \001(\r\022\014\n\004typ" "e\030\002 \001(\r\022\020\n\010quantity\030\003 \001(\r\"(\n\nitem_array\022" "\032\n\005items\030\001 \003(\0132\013.proto.item\"O\n\006player\022\037\n" "\007animate\030\001 \001(\0132\016.proto.animate\022$\n\tinvent" "ory\030\002 \001(\0132\021.proto.item_array\"*\n\004auth\022\020\n\010" "username\030\001 \001(\t\022\020\n\010password\030\002 \001(\t\"o\n\004init" "\022\014\n\004seed\030\001 \001(\004\022\025\n\rdraw_distance\030\002 \001(\005\022\"\n" "\013localplayer\030\003 \001(\0132\r.proto.player\022\020\n\010tic" "krate\030\004 \001(\r\022\014\n\004tick\030\005 \001(\r\"b\n\004move\022\020\n\010com" "mands\030\001 \001(\r\022!\n\nviewangles\030\002 \001(\0132\r.proto." "angles\022\023\n\013active_item\030\003 \001(\r\022\020\n\010sequence\030" "\004 \001(\r\"\036\n\rremove_entity\022\r\n\005index\030\001 \001(\r\"\023\n" "\003say\022\014\n\004text\030\001 \001(\t\"*\n\013hear_player\022\r\n\005ind" "ex\030\001 \001(\r\022\014\n\004text\030\002 \001(\t\"1\n\rrequest_chunk\022" " \n\tchunk_pos\030\001 \001(\0132\r.proto.coords\"0\n\014rem" "ove_chunk\022 \n\tchunk_pos\030\001 \001(\0132\r.proto.coo" "rds\"=\n\005chunk\022 \n\tchunk_pos\030\001 \001(\0132\r.proto." "coords\022\022\n\006blocks\030\002 \003(\rB\002\020\001\"c\n\tadd_block\022" " \n\tchunk_pos\030\001 \001(\0132\r.proto.coords\022\037\n\tblo" "ck_pos\030\002 \001(\0132\014.proto.ivec3\022\023\n\013active_ite" "m\030\003 \001(\r\"Q\n\014remove_block\022 \n\tchunk_pos\030\001 \001" "(\0132\r.proto.coords\022\037\n\tblock_pos\030\002 \001(\0132\014.p" "roto.ivec3\"0\n\016server_message\022\017\n\007message\030" "\001 \001(\t\022\r\n\005fatal\030\002 \001(\010\"-\n\titem_swap\022\017\n\007ind" "ex_a\030\001 \001(\r\022\017\n\007index_b\030\002 \001(\r\"\031\n\010item_use\022" "\r\n\005index\030\001 \001(\r\")\n\013item_update\022\032\n\005items\030\001" " \003(\0132\013.proto.item\"c\n\016animate_update\022\037\n\007a" "nimate\030\001 \001(\0132\016.proto.animate\022\014\n\004tick\030\002 \001" "(\r\022\025\n\010sequence\030\003 \001(\rH\000\210\001\001B\013\n\t_sequence\"\370" "\005\n\006packet\022\"\n\013auth_packet\030\001 \001(\0132\013.proto.a" "uthH\000\022\"\n\013init_packet\030\002 \001(\0132\013.proto.initH" "\000\022\"\n\013move_packet\030\003 \001(\0132\013.proto.moveH\000\0226\n" "\025animate_update_packet\030\004 \001(\0132\025.proto.ani" "mate_updateH\000\0224\n\024remove_entity_packet\030\005 " "\001(\0132\024.proto.remove_entityH\000\022 \n\nsay_packe" "t\030\006 \001(\0132\n.proto.sayH\000\0220\n\022hear_player_pac" "ket\030\007 \001(\0132\022.proto.hear_playerH\000\0224\n\024reque" "st_chunk_packet\030\010 \001(\0132\024.proto.request_ch" "unkH\000\022$\n\014chunk_packet\030\t \001(\0132\014.proto.chun" "kH\000\0222\n\023remove_chunk_packet\030\n \001(\0132\023.proto" ".remove_chunkH\000\022,\n\020add_block_packet\030\013 \001(" "\0132\020.proto.add_blockH\000\0222\n\023remove_block_pa" "cket\030\014 \001(\0132\023.proto.remove_blockH\000\0226\n\025ser" "ver_message_packet\030\r \001(\0132\025.proto.server_" "messageH\000\022,\n\020item_swap_packet\030\016 \001(\0132\020.pr" "oto.item_swapH\000\022*\n\017item_use_packet\030\020 \001(\013" "2\017.proto.item_useH\000\0220\n\022item_update_packe" "t\030\017 \001(\0132\022.proto.item_updateH\000B\n\n\010content" "sb\006proto3" ; static ::_pbi::once_flag descriptor_table_net_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_net_2eproto = { false, false, 2329, descriptor_table_protodef_net_2eproto, "net.proto", &descriptor_table_net_2eproto_once, nullptr, 0, 26, schemas, file_default_instances, TableStruct_net_2eproto::offsets, file_level_metadata_net_2eproto, file_level_enum_descriptors_net_2eproto, file_level_service_descriptors_net_2eproto, }; PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_net_2eproto_getter() { return &descriptor_table_net_2eproto; } // Force running AddDescriptors() at dynamic initialization time. PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_net_2eproto(&descriptor_table_net_2eproto); namespace proto { // =================================================================== class angles::_Internal { public: }; angles::angles(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.angles) } angles::angles(const angles& from) : ::PROTOBUF_NAMESPACE_ID::Message() { angles* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_.pitch_){} , decltype(_impl_.yaw_){} , /*decltype(_impl_._cached_size_)*/{}}; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::memcpy(&_impl_.pitch_, &from._impl_.pitch_, static_cast(reinterpret_cast(&_impl_.yaw_) - reinterpret_cast(&_impl_.pitch_)) + sizeof(_impl_.yaw_)); // @@protoc_insertion_point(copy_constructor:proto.angles) } inline void angles::SharedCtor( ::_pb::Arena* arena, bool is_message_owned) { (void)arena; (void)is_message_owned; new (&_impl_) Impl_{ decltype(_impl_.pitch_){0} , decltype(_impl_.yaw_){0} , /*decltype(_impl_._cached_size_)*/{} }; } angles::~angles() { // @@protoc_insertion_point(destructor:proto.angles) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; return; } SharedDtor(); } inline void angles::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } void angles::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } void angles::Clear() { // @@protoc_insertion_point(message_clear_start:proto.angles) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; ::memset(&_impl_.pitch_, 0, static_cast( reinterpret_cast(&_impl_.yaw_) - reinterpret_cast(&_impl_.pitch_)) + sizeof(_impl_.yaw_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* angles::_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) { // float pitch = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 13)) { _impl_.pitch_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(float); } else goto handle_unusual; continue; // float yaw = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 21)) { _impl_.yaw_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(float); } 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_ } uint8_t* angles::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.angles) uint32_t cached_has_bits = 0; (void) cached_has_bits; // float pitch = 1; static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); float tmp_pitch = this->_internal_pitch(); uint32_t raw_pitch; memcpy(&raw_pitch, &tmp_pitch, sizeof(tmp_pitch)); if (raw_pitch != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteFloatToArray(1, this->_internal_pitch(), target); } // float yaw = 2; static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); float tmp_yaw = this->_internal_yaw(); uint32_t raw_yaw; memcpy(&raw_yaw, &tmp_yaw, sizeof(tmp_yaw)); if (raw_yaw != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteFloatToArray(2, this->_internal_yaw(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { 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:proto.angles) return target; } size_t angles::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.angles) size_t total_size = 0; uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // float pitch = 1; static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); float tmp_pitch = this->_internal_pitch(); uint32_t raw_pitch; memcpy(&raw_pitch, &tmp_pitch, sizeof(tmp_pitch)); if (raw_pitch != 0) { total_size += 1 + 4; } // float yaw = 2; static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); float tmp_yaw = this->_internal_yaw(); uint32_t raw_yaw; memcpy(&raw_yaw, &tmp_yaw, sizeof(tmp_yaw)); if (raw_yaw != 0) { total_size += 1 + 4; } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData angles::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, angles::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*angles::GetClassData() const { return &_class_data_; } void angles::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:proto.angles) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void) cached_has_bits; static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); float tmp_pitch = from._internal_pitch(); uint32_t raw_pitch; memcpy(&raw_pitch, &tmp_pitch, sizeof(tmp_pitch)); if (raw_pitch != 0) { _this->_internal_set_pitch(from._internal_pitch()); } static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); float tmp_yaw = from._internal_yaw(); uint32_t raw_yaw; memcpy(&raw_yaw, &tmp_yaw, sizeof(tmp_yaw)); if (raw_yaw != 0) { _this->_internal_set_yaw(from._internal_yaw()); } _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void angles::CopyFrom(const angles& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.angles) if (&from == this) return; Clear(); MergeFrom(from); } bool angles::IsInitialized() const { return true; } void angles::InternalSwap(angles* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(angles, _impl_.yaw_) + sizeof(angles::_impl_.yaw_) - PROTOBUF_FIELD_OFFSET(angles, _impl_.pitch_)>( reinterpret_cast(&_impl_.pitch_), reinterpret_cast(&other->_impl_.pitch_)); } ::PROTOBUF_NAMESPACE_ID::Metadata angles::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_net_2eproto_getter, &descriptor_table_net_2eproto_once, file_level_metadata_net_2eproto[0]); } // =================================================================== class coords::_Internal { public: }; coords::coords(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.coords) } coords::coords(const coords& from) : ::PROTOBUF_NAMESPACE_ID::Message() { coords* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_.x_){} , decltype(_impl_.z_){} , /*decltype(_impl_._cached_size_)*/{}}; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::memcpy(&_impl_.x_, &from._impl_.x_, static_cast(reinterpret_cast(&_impl_.z_) - reinterpret_cast(&_impl_.x_)) + sizeof(_impl_.z_)); // @@protoc_insertion_point(copy_constructor:proto.coords) } inline void coords::SharedCtor( ::_pb::Arena* arena, bool is_message_owned) { (void)arena; (void)is_message_owned; new (&_impl_) Impl_{ decltype(_impl_.x_){0} , decltype(_impl_.z_){0} , /*decltype(_impl_._cached_size_)*/{} }; } coords::~coords() { // @@protoc_insertion_point(destructor:proto.coords) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; return; } SharedDtor(); } inline void coords::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } void coords::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } void coords::Clear() { // @@protoc_insertion_point(message_clear_start:proto.coords) 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( reinterpret_cast(&_impl_.z_) - reinterpret_cast(&_impl_.x_)) + sizeof(_impl_.z_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* coords::_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(tag) == 8)) { _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // int32 z = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { _impl_.z_ = ::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_ } uint8_t* coords::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.coords) uint32_t cached_has_bits = 0; (void) cached_has_bits; // int32 x = 1; if (this->_internal_x() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_x(), target); } // int32 z = 2; if (this->_internal_z() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_z(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { 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:proto.coords) return target; } size_t coords::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.coords) size_t total_size = 0; uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // int32 x = 1; if (this->_internal_x() != 0) { total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_x()); } // int32 z = 2; if (this->_internal_z() != 0) { total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_z()); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData coords::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, coords::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*coords::GetClassData() const { return &_class_data_; } void coords::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:proto.coords) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void) cached_has_bits; if (from._internal_x() != 0) { _this->_internal_set_x(from._internal_x()); } if (from._internal_z() != 0) { _this->_internal_set_z(from._internal_z()); } _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void coords::CopyFrom(const coords& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.coords) if (&from == this) return; Clear(); MergeFrom(from); } bool coords::IsInitialized() const { return true; } void coords::InternalSwap(coords* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(coords, _impl_.z_) + sizeof(coords::_impl_.z_) - PROTOBUF_FIELD_OFFSET(coords, _impl_.x_)>( reinterpret_cast(&_impl_.x_), reinterpret_cast(&other->_impl_.x_)); } ::PROTOBUF_NAMESPACE_ID::Metadata coords::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_net_2eproto_getter, &descriptor_table_net_2eproto_once, file_level_metadata_net_2eproto[1]); } // =================================================================== class vec3::_Internal { public: }; vec3::vec3(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.vec3) } vec3::vec3(const vec3& from) : ::PROTOBUF_NAMESPACE_ID::Message() { vec3* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_.x_){} , decltype(_impl_.y_){} , decltype(_impl_.z_){} , /*decltype(_impl_._cached_size_)*/{}}; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::memcpy(&_impl_.x_, &from._impl_.x_, static_cast(reinterpret_cast(&_impl_.z_) - reinterpret_cast(&_impl_.x_)) + sizeof(_impl_.z_)); // @@protoc_insertion_point(copy_constructor:proto.vec3) } inline void vec3::SharedCtor( ::_pb::Arena* arena, bool is_message_owned) { (void)arena; (void)is_message_owned; new (&_impl_) Impl_{ decltype(_impl_.x_){0} , decltype(_impl_.y_){0} , decltype(_impl_.z_){0} , /*decltype(_impl_._cached_size_)*/{} }; } vec3::~vec3() { // @@protoc_insertion_point(destructor:proto.vec3) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; return; } SharedDtor(); } inline void vec3::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } void vec3::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } void vec3::Clear() { // @@protoc_insertion_point(message_clear_start:proto.vec3) 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( reinterpret_cast(&_impl_.z_) - reinterpret_cast(&_impl_.x_)) + sizeof(_impl_.z_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* vec3::_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) { // float x = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 13)) { _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(float); } else goto handle_unusual; continue; // float y = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 21)) { _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(float); } else goto handle_unusual; continue; // float z = 3; case 3: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 29)) { _impl_.z_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(float); } 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_ } uint8_t* vec3::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.vec3) uint32_t cached_has_bits = 0; (void) cached_has_bits; // float x = 1; static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); float tmp_x = this->_internal_x(); uint32_t raw_x; memcpy(&raw_x, &tmp_x, sizeof(tmp_x)); if (raw_x != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteFloatToArray(1, this->_internal_x(), target); } // float y = 2; static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); float tmp_y = this->_internal_y(); uint32_t raw_y; memcpy(&raw_y, &tmp_y, sizeof(tmp_y)); if (raw_y != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteFloatToArray(2, this->_internal_y(), target); } // float z = 3; static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); float tmp_z = this->_internal_z(); uint32_t raw_z; memcpy(&raw_z, &tmp_z, sizeof(tmp_z)); if (raw_z != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteFloatToArray(3, this->_internal_z(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { 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:proto.vec3) return target; } size_t vec3::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.vec3) size_t total_size = 0; uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // float x = 1; static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); float tmp_x = this->_internal_x(); uint32_t raw_x; memcpy(&raw_x, &tmp_x, sizeof(tmp_x)); if (raw_x != 0) { total_size += 1 + 4; } // float y = 2; static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); float tmp_y = this->_internal_y(); uint32_t raw_y; memcpy(&raw_y, &tmp_y, sizeof(tmp_y)); if (raw_y != 0) { total_size += 1 + 4; } // float z = 3; static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); float tmp_z = this->_internal_z(); uint32_t raw_z; memcpy(&raw_z, &tmp_z, sizeof(tmp_z)); if (raw_z != 0) { total_size += 1 + 4; } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData vec3::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, vec3::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*vec3::GetClassData() const { return &_class_data_; } void vec3::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:proto.vec3) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void) cached_has_bits; static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); float tmp_x = from._internal_x(); uint32_t raw_x; memcpy(&raw_x, &tmp_x, sizeof(tmp_x)); if (raw_x != 0) { _this->_internal_set_x(from._internal_x()); } static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); float tmp_y = from._internal_y(); uint32_t raw_y; memcpy(&raw_y, &tmp_y, sizeof(tmp_y)); if (raw_y != 0) { _this->_internal_set_y(from._internal_y()); } static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); float tmp_z = from._internal_z(); uint32_t raw_z; memcpy(&raw_z, &tmp_z, sizeof(tmp_z)); if (raw_z != 0) { _this->_internal_set_z(from._internal_z()); } _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void vec3::CopyFrom(const vec3& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.vec3) if (&from == this) return; Clear(); MergeFrom(from); } bool vec3::IsInitialized() const { return true; } void vec3::InternalSwap(vec3* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(vec3, _impl_.z_) + sizeof(vec3::_impl_.z_) - PROTOBUF_FIELD_OFFSET(vec3, _impl_.x_)>( reinterpret_cast(&_impl_.x_), reinterpret_cast(&other->_impl_.x_)); } ::PROTOBUF_NAMESPACE_ID::Metadata vec3::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_net_2eproto_getter, &descriptor_table_net_2eproto_once, file_level_metadata_net_2eproto[2]); } // =================================================================== class ivec3::_Internal { public: }; ivec3::ivec3(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.ivec3) } ivec3::ivec3(const ivec3& from) : ::PROTOBUF_NAMESPACE_ID::Message() { ivec3* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_.x_){} , decltype(_impl_.y_){} , decltype(_impl_.z_){} , /*decltype(_impl_._cached_size_)*/{}}; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::memcpy(&_impl_.x_, &from._impl_.x_, static_cast(reinterpret_cast(&_impl_.z_) - reinterpret_cast(&_impl_.x_)) + sizeof(_impl_.z_)); // @@protoc_insertion_point(copy_constructor:proto.ivec3) } inline void ivec3::SharedCtor( ::_pb::Arena* arena, bool is_message_owned) { (void)arena; (void)is_message_owned; new (&_impl_) Impl_{ decltype(_impl_.x_){0} , decltype(_impl_.y_){0} , decltype(_impl_.z_){0} , /*decltype(_impl_._cached_size_)*/{} }; } ivec3::~ivec3() { // @@protoc_insertion_point(destructor:proto.ivec3) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; return; } SharedDtor(); } inline void ivec3::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } void ivec3::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } void ivec3::Clear() { // @@protoc_insertion_point(message_clear_start:proto.ivec3) 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( reinterpret_cast(&_impl_.z_) - reinterpret_cast(&_impl_.x_)) + sizeof(_impl_.z_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* ivec3::_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(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(tag) == 16)) { _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // int32 z = 3; case 3: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { _impl_.z_ = ::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_ } uint8_t* ivec3::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.ivec3) uint32_t cached_has_bits = 0; (void) cached_has_bits; // int32 x = 1; if (this->_internal_x() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_x(), target); } // int32 y = 2; if (this->_internal_y() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_y(), target); } // int32 z = 3; if (this->_internal_z() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_z(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { 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:proto.ivec3) return target; } size_t ivec3::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.ivec3) size_t total_size = 0; uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // int32 x = 1; if (this->_internal_x() != 0) { total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_x()); } // int32 y = 2; if (this->_internal_y() != 0) { total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_y()); } // int32 z = 3; if (this->_internal_z() != 0) { total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_z()); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ivec3::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, ivec3::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ivec3::GetClassData() const { return &_class_data_; } void ivec3::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:proto.ivec3) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void) cached_has_bits; if (from._internal_x() != 0) { _this->_internal_set_x(from._internal_x()); } if (from._internal_y() != 0) { _this->_internal_set_y(from._internal_y()); } if (from._internal_z() != 0) { _this->_internal_set_z(from._internal_z()); } _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ivec3::CopyFrom(const ivec3& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.ivec3) if (&from == this) return; Clear(); MergeFrom(from); } bool ivec3::IsInitialized() const { return true; } void ivec3::InternalSwap(ivec3* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(ivec3, _impl_.z_) + sizeof(ivec3::_impl_.z_) - PROTOBUF_FIELD_OFFSET(ivec3, _impl_.x_)>( reinterpret_cast(&_impl_.x_), reinterpret_cast(&other->_impl_.x_)); } ::PROTOBUF_NAMESPACE_ID::Metadata ivec3::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_net_2eproto_getter, &descriptor_table_net_2eproto_once, file_level_metadata_net_2eproto[3]); } // =================================================================== class entity::_Internal { public: static const ::proto::coords& chunk_pos(const entity* msg); static const ::proto::vec3& local_pos(const entity* msg); }; const ::proto::coords& entity::_Internal::chunk_pos(const entity* msg) { return *msg->_impl_.chunk_pos_; } const ::proto::vec3& entity::_Internal::local_pos(const entity* msg) { return *msg->_impl_.local_pos_; } entity::entity(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.entity) } entity::entity(const entity& from) : ::PROTOBUF_NAMESPACE_ID::Message() { entity* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_.chunk_pos_){nullptr} , decltype(_impl_.local_pos_){nullptr} , decltype(_impl_.index_){} , /*decltype(_impl_._cached_size_)*/{}}; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); if (from._internal_has_chunk_pos()) { _this->_impl_.chunk_pos_ = new ::proto::coords(*from._impl_.chunk_pos_); } if (from._internal_has_local_pos()) { _this->_impl_.local_pos_ = new ::proto::vec3(*from._impl_.local_pos_); } _this->_impl_.index_ = from._impl_.index_; // @@protoc_insertion_point(copy_constructor:proto.entity) } inline void entity::SharedCtor( ::_pb::Arena* arena, bool is_message_owned) { (void)arena; (void)is_message_owned; new (&_impl_) Impl_{ decltype(_impl_.chunk_pos_){nullptr} , decltype(_impl_.local_pos_){nullptr} , decltype(_impl_.index_){0u} , /*decltype(_impl_._cached_size_)*/{} }; } entity::~entity() { // @@protoc_insertion_point(destructor:proto.entity) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; return; } SharedDtor(); } inline void entity::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); if (this != internal_default_instance()) delete _impl_.chunk_pos_; if (this != internal_default_instance()) delete _impl_.local_pos_; } void entity::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } void entity::Clear() { // @@protoc_insertion_point(message_clear_start:proto.entity) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; if (GetArenaForAllocation() == nullptr && _impl_.chunk_pos_ != nullptr) { delete _impl_.chunk_pos_; } _impl_.chunk_pos_ = nullptr; if (GetArenaForAllocation() == nullptr && _impl_.local_pos_ != nullptr) { delete _impl_.local_pos_; } _impl_.local_pos_ = nullptr; _impl_.index_ = 0u; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* entity::_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) { // uint32 index = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { _impl_.index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // .proto.coords chunk_pos = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { ptr = ctx->ParseMessage(_internal_mutable_chunk_pos(), ptr); CHK_(ptr); } else goto handle_unusual; continue; // .proto.vec3 local_pos = 3; case 3: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { ptr = ctx->ParseMessage(_internal_mutable_local_pos(), 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_ } uint8_t* entity::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.entity) uint32_t cached_has_bits = 0; (void) cached_has_bits; // uint32 index = 1; if (this->_internal_index() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_index(), target); } // .proto.coords chunk_pos = 2; if (this->_internal_has_chunk_pos()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(2, _Internal::chunk_pos(this), _Internal::chunk_pos(this).GetCachedSize(), target, stream); } // .proto.vec3 local_pos = 3; if (this->_internal_has_local_pos()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(3, _Internal::local_pos(this), _Internal::local_pos(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { 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:proto.entity) return target; } size_t entity::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.entity) size_t total_size = 0; uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .proto.coords chunk_pos = 2; if (this->_internal_has_chunk_pos()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *_impl_.chunk_pos_); } // .proto.vec3 local_pos = 3; if (this->_internal_has_local_pos()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *_impl_.local_pos_); } // uint32 index = 1; if (this->_internal_index() != 0) { total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_index()); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData entity::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, entity::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*entity::GetClassData() const { return &_class_data_; } void entity::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:proto.entity) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void) cached_has_bits; if (from._internal_has_chunk_pos()) { _this->_internal_mutable_chunk_pos()->::proto::coords::MergeFrom( from._internal_chunk_pos()); } if (from._internal_has_local_pos()) { _this->_internal_mutable_local_pos()->::proto::vec3::MergeFrom( from._internal_local_pos()); } if (from._internal_index() != 0) { _this->_internal_set_index(from._internal_index()); } _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void entity::CopyFrom(const entity& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.entity) if (&from == this) return; Clear(); MergeFrom(from); } bool entity::IsInitialized() const { return true; } void entity::InternalSwap(entity* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(entity, _impl_.index_) + sizeof(entity::_impl_.index_) - PROTOBUF_FIELD_OFFSET(entity, _impl_.chunk_pos_)>( reinterpret_cast(&_impl_.chunk_pos_), reinterpret_cast(&other->_impl_.chunk_pos_)); } ::PROTOBUF_NAMESPACE_ID::Metadata entity::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_net_2eproto_getter, &descriptor_table_net_2eproto_once, file_level_metadata_net_2eproto[4]); } // =================================================================== class animate::_Internal { public: static const ::proto::entity& entity(const animate* msg); static const ::proto::angles& viewangles(const animate* msg); static const ::proto::vec3& velocity(const animate* msg); }; const ::proto::entity& animate::_Internal::entity(const animate* msg) { return *msg->_impl_.entity_; } const ::proto::angles& animate::_Internal::viewangles(const animate* msg) { return *msg->_impl_.viewangles_; } const ::proto::vec3& animate::_Internal::velocity(const animate* msg) { return *msg->_impl_.velocity_; } animate::animate(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.animate) } animate::animate(const animate& from) : ::PROTOBUF_NAMESPACE_ID::Message() { animate* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_.entity_){nullptr} , decltype(_impl_.viewangles_){nullptr} , decltype(_impl_.velocity_){nullptr} , decltype(_impl_.commands_){} , decltype(_impl_.active_item_){} , /*decltype(_impl_._cached_size_)*/{}}; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); if (from._internal_has_entity()) { _this->_impl_.entity_ = new ::proto::entity(*from._impl_.entity_); } if (from._internal_has_viewangles()) { _this->_impl_.viewangles_ = new ::proto::angles(*from._impl_.viewangles_); } if (from._internal_has_velocity()) { _this->_impl_.velocity_ = new ::proto::vec3(*from._impl_.velocity_); } ::memcpy(&_impl_.commands_, &from._impl_.commands_, static_cast(reinterpret_cast(&_impl_.active_item_) - reinterpret_cast(&_impl_.commands_)) + sizeof(_impl_.active_item_)); // @@protoc_insertion_point(copy_constructor:proto.animate) } inline void animate::SharedCtor( ::_pb::Arena* arena, bool is_message_owned) { (void)arena; (void)is_message_owned; new (&_impl_) Impl_{ decltype(_impl_.entity_){nullptr} , decltype(_impl_.viewangles_){nullptr} , decltype(_impl_.velocity_){nullptr} , decltype(_impl_.commands_){0u} , decltype(_impl_.active_item_){0u} , /*decltype(_impl_._cached_size_)*/{} }; } animate::~animate() { // @@protoc_insertion_point(destructor:proto.animate) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; return; } SharedDtor(); } inline void animate::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); if (this != internal_default_instance()) delete _impl_.entity_; if (this != internal_default_instance()) delete _impl_.viewangles_; if (this != internal_default_instance()) delete _impl_.velocity_; } void animate::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } void animate::Clear() { // @@protoc_insertion_point(message_clear_start:proto.animate) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; if (GetArenaForAllocation() == nullptr && _impl_.entity_ != nullptr) { delete _impl_.entity_; } _impl_.entity_ = nullptr; if (GetArenaForAllocation() == nullptr && _impl_.viewangles_ != nullptr) { delete _impl_.viewangles_; } _impl_.viewangles_ = nullptr; if (GetArenaForAllocation() == nullptr && _impl_.velocity_ != nullptr) { delete _impl_.velocity_; } _impl_.velocity_ = nullptr; ::memset(&_impl_.commands_, 0, static_cast( reinterpret_cast(&_impl_.active_item_) - reinterpret_cast(&_impl_.commands_)) + sizeof(_impl_.active_item_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* animate::_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) { // .proto.entity entity = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_entity(), ptr); CHK_(ptr); } else goto handle_unusual; continue; // uint32 commands = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { _impl_.commands_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // .proto.angles viewangles = 3; case 3: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { ptr = ctx->ParseMessage(_internal_mutable_viewangles(), ptr); CHK_(ptr); } else goto handle_unusual; continue; // .proto.vec3 velocity = 4; case 4: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { ptr = ctx->ParseMessage(_internal_mutable_velocity(), ptr); CHK_(ptr); } else goto handle_unusual; continue; // uint32 active_item = 5; case 5: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { _impl_.active_item_ = ::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_ } uint8_t* animate::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.animate) uint32_t cached_has_bits = 0; (void) cached_has_bits; // .proto.entity entity = 1; if (this->_internal_has_entity()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, _Internal::entity(this), _Internal::entity(this).GetCachedSize(), target, stream); } // uint32 commands = 2; if (this->_internal_commands() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_commands(), target); } // .proto.angles viewangles = 3; if (this->_internal_has_viewangles()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(3, _Internal::viewangles(this), _Internal::viewangles(this).GetCachedSize(), target, stream); } // .proto.vec3 velocity = 4; if (this->_internal_has_velocity()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(4, _Internal::velocity(this), _Internal::velocity(this).GetCachedSize(), target, stream); } // uint32 active_item = 5; if (this->_internal_active_item() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt32ToArray(5, this->_internal_active_item(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { 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:proto.animate) return target; } size_t animate::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.animate) size_t total_size = 0; uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .proto.entity entity = 1; if (this->_internal_has_entity()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *_impl_.entity_); } // .proto.angles viewangles = 3; if (this->_internal_has_viewangles()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *_impl_.viewangles_); } // .proto.vec3 velocity = 4; if (this->_internal_has_velocity()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *_impl_.velocity_); } // uint32 commands = 2; if (this->_internal_commands() != 0) { total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_commands()); } // uint32 active_item = 5; if (this->_internal_active_item() != 0) { total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_active_item()); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData animate::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, animate::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*animate::GetClassData() const { return &_class_data_; } void animate::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:proto.animate) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void) cached_has_bits; if (from._internal_has_entity()) { _this->_internal_mutable_entity()->::proto::entity::MergeFrom( from._internal_entity()); } if (from._internal_has_viewangles()) { _this->_internal_mutable_viewangles()->::proto::angles::MergeFrom( from._internal_viewangles()); } if (from._internal_has_velocity()) { _this->_internal_mutable_velocity()->::proto::vec3::MergeFrom( from._internal_velocity()); } if (from._internal_commands() != 0) { _this->_internal_set_commands(from._internal_commands()); } if (from._internal_active_item() != 0) { _this->_internal_set_active_item(from._internal_active_item()); } _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void animate::CopyFrom(const animate& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.animate) if (&from == this) return; Clear(); MergeFrom(from); } bool animate::IsInitialized() const { return true; } void animate::InternalSwap(animate* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(animate, _impl_.active_item_) + sizeof(animate::_impl_.active_item_) - PROTOBUF_FIELD_OFFSET(animate, _impl_.entity_)>( reinterpret_cast(&_impl_.entity_), reinterpret_cast(&other->_impl_.entity_)); } ::PROTOBUF_NAMESPACE_ID::Metadata animate::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_net_2eproto_getter, &descriptor_table_net_2eproto_once, file_level_metadata_net_2eproto[5]); } // =================================================================== class item::_Internal { public: }; item::item(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.item) } item::item(const item& from) : ::PROTOBUF_NAMESPACE_ID::Message() { item* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_.index_){} , decltype(_impl_.type_){} , decltype(_impl_.quantity_){} , /*decltype(_impl_._cached_size_)*/{}}; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::memcpy(&_impl_.index_, &from._impl_.index_, static_cast(reinterpret_cast(&_impl_.quantity_) - reinterpret_cast(&_impl_.index_)) + sizeof(_impl_.quantity_)); // @@protoc_insertion_point(copy_constructor:proto.item) } inline void item::SharedCtor( ::_pb::Arena* arena, bool is_message_owned) { (void)arena; (void)is_message_owned; new (&_impl_) Impl_{ decltype(_impl_.index_){0u} , decltype(_impl_.type_){0u} , decltype(_impl_.quantity_){0u} , /*decltype(_impl_._cached_size_)*/{} }; } item::~item() { // @@protoc_insertion_point(destructor:proto.item) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; return; } SharedDtor(); } inline void item::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } void item::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } void item::Clear() { // @@protoc_insertion_point(message_clear_start:proto.item) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; ::memset(&_impl_.index_, 0, static_cast( reinterpret_cast(&_impl_.quantity_) - reinterpret_cast(&_impl_.index_)) + sizeof(_impl_.quantity_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* item::_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) { // uint32 index = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { _impl_.index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // uint32 type = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { _impl_.type_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // uint32 quantity = 3; case 3: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { _impl_.quantity_ = ::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_ } uint8_t* item::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.item) uint32_t cached_has_bits = 0; (void) cached_has_bits; // uint32 index = 1; if (this->_internal_index() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_index(), target); } // uint32 type = 2; if (this->_internal_type() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_type(), target); } // uint32 quantity = 3; if (this->_internal_quantity() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt32ToArray(3, this->_internal_quantity(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { 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:proto.item) return target; } size_t item::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.item) size_t total_size = 0; uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // uint32 index = 1; if (this->_internal_index() != 0) { total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_index()); } // uint32 type = 2; if (this->_internal_type() != 0) { total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_type()); } // uint32 quantity = 3; if (this->_internal_quantity() != 0) { total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_quantity()); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData item::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, item::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*item::GetClassData() const { return &_class_data_; } void item::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:proto.item) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void) cached_has_bits; if (from._internal_index() != 0) { _this->_internal_set_index(from._internal_index()); } if (from._internal_type() != 0) { _this->_internal_set_type(from._internal_type()); } if (from._internal_quantity() != 0) { _this->_internal_set_quantity(from._internal_quantity()); } _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void item::CopyFrom(const item& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.item) if (&from == this) return; Clear(); MergeFrom(from); } bool item::IsInitialized() const { return true; } void item::InternalSwap(item* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(item, _impl_.quantity_) + sizeof(item::_impl_.quantity_) - PROTOBUF_FIELD_OFFSET(item, _impl_.index_)>( reinterpret_cast(&_impl_.index_), reinterpret_cast(&other->_impl_.index_)); } ::PROTOBUF_NAMESPACE_ID::Metadata item::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_net_2eproto_getter, &descriptor_table_net_2eproto_once, file_level_metadata_net_2eproto[6]); } // =================================================================== class item_array::_Internal { public: }; item_array::item_array(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.item_array) } item_array::item_array(const item_array& from) : ::PROTOBUF_NAMESPACE_ID::Message() { item_array* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_.items_){from._impl_.items_} , /*decltype(_impl_._cached_size_)*/{}}; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:proto.item_array) } inline void item_array::SharedCtor( ::_pb::Arena* arena, bool is_message_owned) { (void)arena; (void)is_message_owned; new (&_impl_) Impl_{ decltype(_impl_.items_){arena} , /*decltype(_impl_._cached_size_)*/{} }; } item_array::~item_array() { // @@protoc_insertion_point(destructor:proto.item_array) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; return; } SharedDtor(); } inline void item_array::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); _impl_.items_.~RepeatedPtrField(); } void item_array::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } void item_array::Clear() { // @@protoc_insertion_point(message_clear_start:proto.item_array) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; _impl_.items_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* item_array::_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) { // repeated .proto.item items = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { ptr -= 1; do { ptr += 1; ptr = ctx->ParseMessage(_internal_add_items(), 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_ } uint8_t* item_array::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.item_array) uint32_t cached_has_bits = 0; (void) cached_has_bits; // repeated .proto.item items = 1; for (unsigned i = 0, n = static_cast(this->_internal_items_size()); i < n; i++) { const auto& repfield = this->_internal_items(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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.item_array) return target; } size_t item_array::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.item_array) size_t total_size = 0; uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .proto.item items = 1; total_size += 1UL * this->_internal_items_size(); for (const auto& msg : this->_impl_.items_) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData item_array::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, item_array::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*item_array::GetClassData() const { return &_class_data_; } void item_array::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:proto.item_array) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void) cached_has_bits; _this->_impl_.items_.MergeFrom(from._impl_.items_); _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void item_array::CopyFrom(const item_array& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.item_array) if (&from == this) return; Clear(); MergeFrom(from); } bool item_array::IsInitialized() const { return true; } void item_array::InternalSwap(item_array* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); _impl_.items_.InternalSwap(&other->_impl_.items_); } ::PROTOBUF_NAMESPACE_ID::Metadata item_array::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_net_2eproto_getter, &descriptor_table_net_2eproto_once, file_level_metadata_net_2eproto[7]); } // =================================================================== class player::_Internal { public: static const ::proto::animate& animate(const player* msg); static const ::proto::item_array& inventory(const player* msg); }; const ::proto::animate& player::_Internal::animate(const player* msg) { return *msg->_impl_.animate_; } const ::proto::item_array& player::_Internal::inventory(const player* msg) { return *msg->_impl_.inventory_; } player::player(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.player) } player::player(const player& from) : ::PROTOBUF_NAMESPACE_ID::Message() { player* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_.animate_){nullptr} , decltype(_impl_.inventory_){nullptr} , /*decltype(_impl_._cached_size_)*/{}}; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); if (from._internal_has_animate()) { _this->_impl_.animate_ = new ::proto::animate(*from._impl_.animate_); } if (from._internal_has_inventory()) { _this->_impl_.inventory_ = new ::proto::item_array(*from._impl_.inventory_); } // @@protoc_insertion_point(copy_constructor:proto.player) } inline void player::SharedCtor( ::_pb::Arena* arena, bool is_message_owned) { (void)arena; (void)is_message_owned; new (&_impl_) Impl_{ decltype(_impl_.animate_){nullptr} , decltype(_impl_.inventory_){nullptr} , /*decltype(_impl_._cached_size_)*/{} }; } player::~player() { // @@protoc_insertion_point(destructor:proto.player) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; return; } SharedDtor(); } inline void player::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); if (this != internal_default_instance()) delete _impl_.animate_; if (this != internal_default_instance()) delete _impl_.inventory_; } void player::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } void player::Clear() { // @@protoc_insertion_point(message_clear_start:proto.player) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; if (GetArenaForAllocation() == nullptr && _impl_.animate_ != nullptr) { delete _impl_.animate_; } _impl_.animate_ = nullptr; if (GetArenaForAllocation() == nullptr && _impl_.inventory_ != nullptr) { delete _impl_.inventory_; } _impl_.inventory_ = nullptr; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* player::_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) { // .proto.animate animate = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_animate(), ptr); CHK_(ptr); } else goto handle_unusual; continue; // .proto.item_array inventory = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { ptr = ctx->ParseMessage(_internal_mutable_inventory(), 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_ } uint8_t* player::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.player) uint32_t cached_has_bits = 0; (void) cached_has_bits; // .proto.animate animate = 1; if (this->_internal_has_animate()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, _Internal::animate(this), _Internal::animate(this).GetCachedSize(), target, stream); } // .proto.item_array inventory = 2; if (this->_internal_has_inventory()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(2, _Internal::inventory(this), _Internal::inventory(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { 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:proto.player) return target; } size_t player::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.player) size_t total_size = 0; uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .proto.animate animate = 1; if (this->_internal_has_animate()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *_impl_.animate_); } // .proto.item_array inventory = 2; if (this->_internal_has_inventory()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *_impl_.inventory_); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData player::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, player::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*player::GetClassData() const { return &_class_data_; } void player::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:proto.player) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void) cached_has_bits; if (from._internal_has_animate()) { _this->_internal_mutable_animate()->::proto::animate::MergeFrom( from._internal_animate()); } if (from._internal_has_inventory()) { _this->_internal_mutable_inventory()->::proto::item_array::MergeFrom( from._internal_inventory()); } _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void player::CopyFrom(const player& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.player) if (&from == this) return; Clear(); MergeFrom(from); } bool player::IsInitialized() const { return true; } void player::InternalSwap(player* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(player, _impl_.inventory_) + sizeof(player::_impl_.inventory_) - PROTOBUF_FIELD_OFFSET(player, _impl_.animate_)>( reinterpret_cast(&_impl_.animate_), reinterpret_cast(&other->_impl_.animate_)); } ::PROTOBUF_NAMESPACE_ID::Metadata player::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_net_2eproto_getter, &descriptor_table_net_2eproto_once, file_level_metadata_net_2eproto[8]); } // =================================================================== class auth::_Internal { public: }; auth::auth(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.auth) } auth::auth(const auth& from) : ::PROTOBUF_NAMESPACE_ID::Message() { auth* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_.username_){} , decltype(_impl_.password_){} , /*decltype(_impl_._cached_size_)*/{}}; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); _impl_.username_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.username_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_username().empty()) { _this->_impl_.username_.Set(from._internal_username(), _this->GetArenaForAllocation()); } _impl_.password_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.password_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_password().empty()) { _this->_impl_.password_.Set(from._internal_password(), _this->GetArenaForAllocation()); } // @@protoc_insertion_point(copy_constructor:proto.auth) } inline void auth::SharedCtor( ::_pb::Arena* arena, bool is_message_owned) { (void)arena; (void)is_message_owned; new (&_impl_) Impl_{ decltype(_impl_.username_){} , decltype(_impl_.password_){} , /*decltype(_impl_._cached_size_)*/{} }; _impl_.username_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.username_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.password_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.password_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } auth::~auth() { // @@protoc_insertion_point(destructor:proto.auth) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; return; } SharedDtor(); } inline void auth::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); _impl_.username_.Destroy(); _impl_.password_.Destroy(); } void auth::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } void auth::Clear() { // @@protoc_insertion_point(message_clear_start:proto.auth) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; _impl_.username_.ClearToEmpty(); _impl_.password_.ClearToEmpty(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* auth::_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) { // string username = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { auto str = _internal_mutable_username(); ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); CHK_(::_pbi::VerifyUTF8(str, "proto.auth.username")); } else goto handle_unusual; continue; // string password = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { auto str = _internal_mutable_password(); ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); CHK_(::_pbi::VerifyUTF8(str, "proto.auth.password")); } 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_ } uint8_t* auth::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.auth) uint32_t cached_has_bits = 0; (void) cached_has_bits; // string username = 1; if (!this->_internal_username().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_username().data(), static_cast(this->_internal_username().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "proto.auth.username"); target = stream->WriteStringMaybeAliased( 1, this->_internal_username(), target); } // string password = 2; if (!this->_internal_password().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_password().data(), static_cast(this->_internal_password().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "proto.auth.password"); target = stream->WriteStringMaybeAliased( 2, this->_internal_password(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { 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:proto.auth) return target; } size_t auth::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.auth) size_t total_size = 0; uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string username = 1; if (!this->_internal_username().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_username()); } // string password = 2; if (!this->_internal_password().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_password()); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData auth::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, auth::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*auth::GetClassData() const { return &_class_data_; } void auth::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:proto.auth) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_username().empty()) { _this->_internal_set_username(from._internal_username()); } if (!from._internal_password().empty()) { _this->_internal_set_password(from._internal_password()); } _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void auth::CopyFrom(const auth& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.auth) if (&from == this) return; Clear(); MergeFrom(from); } bool auth::IsInitialized() const { return true; } void auth::InternalSwap(auth* other) { using std::swap; auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( &_impl_.username_, lhs_arena, &other->_impl_.username_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( &_impl_.password_, lhs_arena, &other->_impl_.password_, rhs_arena ); } ::PROTOBUF_NAMESPACE_ID::Metadata auth::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_net_2eproto_getter, &descriptor_table_net_2eproto_once, file_level_metadata_net_2eproto[9]); } // =================================================================== class init::_Internal { public: static const ::proto::player& localplayer(const init* msg); }; const ::proto::player& init::_Internal::localplayer(const init* msg) { return *msg->_impl_.localplayer_; } init::init(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.init) } init::init(const init& from) : ::PROTOBUF_NAMESPACE_ID::Message() { init* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_.localplayer_){nullptr} , decltype(_impl_.seed_){} , decltype(_impl_.draw_distance_){} , decltype(_impl_.tickrate_){} , decltype(_impl_.tick_){} , /*decltype(_impl_._cached_size_)*/{}}; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); if (from._internal_has_localplayer()) { _this->_impl_.localplayer_ = new ::proto::player(*from._impl_.localplayer_); } ::memcpy(&_impl_.seed_, &from._impl_.seed_, static_cast(reinterpret_cast(&_impl_.tick_) - reinterpret_cast(&_impl_.seed_)) + sizeof(_impl_.tick_)); // @@protoc_insertion_point(copy_constructor:proto.init) } inline void init::SharedCtor( ::_pb::Arena* arena, bool is_message_owned) { (void)arena; (void)is_message_owned; new (&_impl_) Impl_{ decltype(_impl_.localplayer_){nullptr} , decltype(_impl_.seed_){uint64_t{0u}} , decltype(_impl_.draw_distance_){0} , decltype(_impl_.tickrate_){0u} , decltype(_impl_.tick_){0u} , /*decltype(_impl_._cached_size_)*/{} }; } init::~init() { // @@protoc_insertion_point(destructor:proto.init) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; return; } SharedDtor(); } inline void init::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); if (this != internal_default_instance()) delete _impl_.localplayer_; } void init::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } void init::Clear() { // @@protoc_insertion_point(message_clear_start:proto.init) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; if (GetArenaForAllocation() == nullptr && _impl_.localplayer_ != nullptr) { delete _impl_.localplayer_; } _impl_.localplayer_ = nullptr; ::memset(&_impl_.seed_, 0, static_cast( reinterpret_cast(&_impl_.tick_) - reinterpret_cast(&_impl_.seed_)) + sizeof(_impl_.tick_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* init::_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) { // uint64 seed = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { _impl_.seed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // int32 draw_distance = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { _impl_.draw_distance_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // .proto.player localplayer = 3; case 3: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { ptr = ctx->ParseMessage(_internal_mutable_localplayer(), ptr); CHK_(ptr); } else goto handle_unusual; continue; // uint32 tickrate = 4; case 4: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { _impl_.tickrate_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // uint32 tick = 5; case 5: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { _impl_.tick_ = ::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_ } uint8_t* init::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.init) uint32_t cached_has_bits = 0; (void) cached_has_bits; // uint64 seed = 1; if (this->_internal_seed() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_seed(), target); } // int32 draw_distance = 2; if (this->_internal_draw_distance() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_draw_distance(), target); } // .proto.player localplayer = 3; if (this->_internal_has_localplayer()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(3, _Internal::localplayer(this), _Internal::localplayer(this).GetCachedSize(), target, stream); } // uint32 tickrate = 4; if (this->_internal_tickrate() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt32ToArray(4, this->_internal_tickrate(), target); } // uint32 tick = 5; if (this->_internal_tick() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt32ToArray(5, this->_internal_tick(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { 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:proto.init) return target; } size_t init::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.init) size_t total_size = 0; uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .proto.player localplayer = 3; if (this->_internal_has_localplayer()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *_impl_.localplayer_); } // uint64 seed = 1; if (this->_internal_seed() != 0) { total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_seed()); } // int32 draw_distance = 2; if (this->_internal_draw_distance() != 0) { total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_draw_distance()); } // uint32 tickrate = 4; if (this->_internal_tickrate() != 0) { total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_tickrate()); } // uint32 tick = 5; if (this->_internal_tick() != 0) { total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_tick()); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData init::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, init::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*init::GetClassData() const { return &_class_data_; } void init::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:proto.init) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void) cached_has_bits; if (from._internal_has_localplayer()) { _this->_internal_mutable_localplayer()->::proto::player::MergeFrom( from._internal_localplayer()); } if (from._internal_seed() != 0) { _this->_internal_set_seed(from._internal_seed()); } if (from._internal_draw_distance() != 0) { _this->_internal_set_draw_distance(from._internal_draw_distance()); } if (from._internal_tickrate() != 0) { _this->_internal_set_tickrate(from._internal_tickrate()); } if (from._internal_tick() != 0) { _this->_internal_set_tick(from._internal_tick()); } _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void init::CopyFrom(const init& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.init) if (&from == this) return; Clear(); MergeFrom(from); } bool init::IsInitialized() const { return true; } void init::InternalSwap(init* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(init, _impl_.tick_) + sizeof(init::_impl_.tick_) - PROTOBUF_FIELD_OFFSET(init, _impl_.localplayer_)>( reinterpret_cast(&_impl_.localplayer_), reinterpret_cast(&other->_impl_.localplayer_)); } ::PROTOBUF_NAMESPACE_ID::Metadata init::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_net_2eproto_getter, &descriptor_table_net_2eproto_once, file_level_metadata_net_2eproto[10]); } // =================================================================== class move::_Internal { public: static const ::proto::angles& viewangles(const move* msg); }; const ::proto::angles& move::_Internal::viewangles(const move* msg) { return *msg->_impl_.viewangles_; } move::move(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.move) } move::move(const move& from) : ::PROTOBUF_NAMESPACE_ID::Message() { move* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_.viewangles_){nullptr} , decltype(_impl_.commands_){} , decltype(_impl_.active_item_){} , decltype(_impl_.sequence_){} , /*decltype(_impl_._cached_size_)*/{}}; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); if (from._internal_has_viewangles()) { _this->_impl_.viewangles_ = new ::proto::angles(*from._impl_.viewangles_); } ::memcpy(&_impl_.commands_, &from._impl_.commands_, static_cast(reinterpret_cast(&_impl_.sequence_) - reinterpret_cast(&_impl_.commands_)) + sizeof(_impl_.sequence_)); // @@protoc_insertion_point(copy_constructor:proto.move) } inline void move::SharedCtor( ::_pb::Arena* arena, bool is_message_owned) { (void)arena; (void)is_message_owned; new (&_impl_) Impl_{ decltype(_impl_.viewangles_){nullptr} , decltype(_impl_.commands_){0u} , decltype(_impl_.active_item_){0u} , decltype(_impl_.sequence_){0u} , /*decltype(_impl_._cached_size_)*/{} }; } move::~move() { // @@protoc_insertion_point(destructor:proto.move) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; return; } SharedDtor(); } inline void move::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); if (this != internal_default_instance()) delete _impl_.viewangles_; } void move::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } void move::Clear() { // @@protoc_insertion_point(message_clear_start:proto.move) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; if (GetArenaForAllocation() == nullptr && _impl_.viewangles_ != nullptr) { delete _impl_.viewangles_; } _impl_.viewangles_ = nullptr; ::memset(&_impl_.commands_, 0, static_cast( reinterpret_cast(&_impl_.sequence_) - reinterpret_cast(&_impl_.commands_)) + sizeof(_impl_.sequence_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* move::_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) { // uint32 commands = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { _impl_.commands_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // .proto.angles viewangles = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { ptr = ctx->ParseMessage(_internal_mutable_viewangles(), ptr); CHK_(ptr); } else goto handle_unusual; continue; // uint32 active_item = 3; case 3: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { _impl_.active_item_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // uint32 sequence = 4; case 4: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { _impl_.sequence_ = ::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_ } uint8_t* move::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.move) uint32_t cached_has_bits = 0; (void) cached_has_bits; // uint32 commands = 1; if (this->_internal_commands() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_commands(), target); } // .proto.angles viewangles = 2; if (this->_internal_has_viewangles()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(2, _Internal::viewangles(this), _Internal::viewangles(this).GetCachedSize(), target, stream); } // uint32 active_item = 3; if (this->_internal_active_item() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt32ToArray(3, this->_internal_active_item(), target); } // uint32 sequence = 4; if (this->_internal_sequence() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt32ToArray(4, this->_internal_sequence(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { 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:proto.move) return target; } size_t move::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.move) size_t total_size = 0; uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .proto.angles viewangles = 2; if (this->_internal_has_viewangles()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *_impl_.viewangles_); } // uint32 commands = 1; if (this->_internal_commands() != 0) { total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_commands()); } // uint32 active_item = 3; if (this->_internal_active_item() != 0) { total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_active_item()); } // uint32 sequence = 4; if (this->_internal_sequence() != 0) { total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_sequence()); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData move::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, move::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*move::GetClassData() const { return &_class_data_; } void move::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:proto.move) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void) cached_has_bits; if (from._internal_has_viewangles()) { _this->_internal_mutable_viewangles()->::proto::angles::MergeFrom( from._internal_viewangles()); } if (from._internal_commands() != 0) { _this->_internal_set_commands(from._internal_commands()); } if (from._internal_active_item() != 0) { _this->_internal_set_active_item(from._internal_active_item()); } if (from._internal_sequence() != 0) { _this->_internal_set_sequence(from._internal_sequence()); } _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void move::CopyFrom(const move& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.move) if (&from == this) return; Clear(); MergeFrom(from); } bool move::IsInitialized() const { return true; } void move::InternalSwap(move* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(move, _impl_.sequence_) + sizeof(move::_impl_.sequence_) - PROTOBUF_FIELD_OFFSET(move, _impl_.viewangles_)>( reinterpret_cast(&_impl_.viewangles_), reinterpret_cast(&other->_impl_.viewangles_)); } ::PROTOBUF_NAMESPACE_ID::Metadata move::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_net_2eproto_getter, &descriptor_table_net_2eproto_once, file_level_metadata_net_2eproto[11]); } // =================================================================== class remove_entity::_Internal { public: }; remove_entity::remove_entity(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.remove_entity) } remove_entity::remove_entity(const remove_entity& from) : ::PROTOBUF_NAMESPACE_ID::Message() { remove_entity* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_.index_){} , /*decltype(_impl_._cached_size_)*/{}}; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); _this->_impl_.index_ = from._impl_.index_; // @@protoc_insertion_point(copy_constructor:proto.remove_entity) } inline void remove_entity::SharedCtor( ::_pb::Arena* arena, bool is_message_owned) { (void)arena; (void)is_message_owned; new (&_impl_) Impl_{ decltype(_impl_.index_){0u} , /*decltype(_impl_._cached_size_)*/{} }; } remove_entity::~remove_entity() { // @@protoc_insertion_point(destructor:proto.remove_entity) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; return; } SharedDtor(); } inline void remove_entity::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } void remove_entity::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } void remove_entity::Clear() { // @@protoc_insertion_point(message_clear_start:proto.remove_entity) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; _impl_.index_ = 0u; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* remove_entity::_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) { // uint32 index = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { _impl_.index_ = ::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_ } uint8_t* remove_entity::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.remove_entity) uint32_t cached_has_bits = 0; (void) cached_has_bits; // uint32 index = 1; if (this->_internal_index() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_index(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { 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:proto.remove_entity) return target; } size_t remove_entity::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.remove_entity) size_t total_size = 0; uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // uint32 index = 1; if (this->_internal_index() != 0) { total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_index()); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData remove_entity::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, remove_entity::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*remove_entity::GetClassData() const { return &_class_data_; } void remove_entity::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:proto.remove_entity) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void) cached_has_bits; if (from._internal_index() != 0) { _this->_internal_set_index(from._internal_index()); } _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void remove_entity::CopyFrom(const remove_entity& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.remove_entity) if (&from == this) return; Clear(); MergeFrom(from); } bool remove_entity::IsInitialized() const { return true; } void remove_entity::InternalSwap(remove_entity* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_.index_, other->_impl_.index_); } ::PROTOBUF_NAMESPACE_ID::Metadata remove_entity::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_net_2eproto_getter, &descriptor_table_net_2eproto_once, file_level_metadata_net_2eproto[12]); } // =================================================================== class say::_Internal { public: }; say::say(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.say) } say::say(const say& from) : ::PROTOBUF_NAMESPACE_ID::Message() { say* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_.text_){} , /*decltype(_impl_._cached_size_)*/{}}; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); _impl_.text_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.text_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_text().empty()) { _this->_impl_.text_.Set(from._internal_text(), _this->GetArenaForAllocation()); } // @@protoc_insertion_point(copy_constructor:proto.say) } inline void say::SharedCtor( ::_pb::Arena* arena, bool is_message_owned) { (void)arena; (void)is_message_owned; new (&_impl_) Impl_{ decltype(_impl_.text_){} , /*decltype(_impl_._cached_size_)*/{} }; _impl_.text_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.text_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } say::~say() { // @@protoc_insertion_point(destructor:proto.say) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; return; } SharedDtor(); } inline void say::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); _impl_.text_.Destroy(); } void say::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } void say::Clear() { // @@protoc_insertion_point(message_clear_start:proto.say) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; _impl_.text_.ClearToEmpty(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* say::_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) { // string text = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { auto str = _internal_mutable_text(); ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); CHK_(::_pbi::VerifyUTF8(str, "proto.say.text")); } 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_ } uint8_t* say::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.say) uint32_t cached_has_bits = 0; (void) cached_has_bits; // string text = 1; if (!this->_internal_text().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_text().data(), static_cast(this->_internal_text().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "proto.say.text"); target = stream->WriteStringMaybeAliased( 1, this->_internal_text(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { 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:proto.say) return target; } size_t say::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.say) size_t total_size = 0; uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string text = 1; if (!this->_internal_text().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_text()); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData say::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, say::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*say::GetClassData() const { return &_class_data_; } void say::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:proto.say) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_text().empty()) { _this->_internal_set_text(from._internal_text()); } _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void say::CopyFrom(const say& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.say) if (&from == this) return; Clear(); MergeFrom(from); } bool say::IsInitialized() const { return true; } void say::InternalSwap(say* other) { using std::swap; auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( &_impl_.text_, lhs_arena, &other->_impl_.text_, rhs_arena ); } ::PROTOBUF_NAMESPACE_ID::Metadata say::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_net_2eproto_getter, &descriptor_table_net_2eproto_once, file_level_metadata_net_2eproto[13]); } // =================================================================== class hear_player::_Internal { public: }; hear_player::hear_player(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.hear_player) } hear_player::hear_player(const hear_player& from) : ::PROTOBUF_NAMESPACE_ID::Message() { hear_player* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_.text_){} , decltype(_impl_.index_){} , /*decltype(_impl_._cached_size_)*/{}}; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); _impl_.text_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.text_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_text().empty()) { _this->_impl_.text_.Set(from._internal_text(), _this->GetArenaForAllocation()); } _this->_impl_.index_ = from._impl_.index_; // @@protoc_insertion_point(copy_constructor:proto.hear_player) } inline void hear_player::SharedCtor( ::_pb::Arena* arena, bool is_message_owned) { (void)arena; (void)is_message_owned; new (&_impl_) Impl_{ decltype(_impl_.text_){} , decltype(_impl_.index_){0u} , /*decltype(_impl_._cached_size_)*/{} }; _impl_.text_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.text_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } hear_player::~hear_player() { // @@protoc_insertion_point(destructor:proto.hear_player) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; return; } SharedDtor(); } inline void hear_player::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); _impl_.text_.Destroy(); } void hear_player::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } void hear_player::Clear() { // @@protoc_insertion_point(message_clear_start:proto.hear_player) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; _impl_.text_.ClearToEmpty(); _impl_.index_ = 0u; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* hear_player::_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) { // uint32 index = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { _impl_.index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // string text = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { auto str = _internal_mutable_text(); ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); CHK_(::_pbi::VerifyUTF8(str, "proto.hear_player.text")); } 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_ } uint8_t* hear_player::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.hear_player) uint32_t cached_has_bits = 0; (void) cached_has_bits; // uint32 index = 1; if (this->_internal_index() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_index(), target); } // string text = 2; if (!this->_internal_text().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_text().data(), static_cast(this->_internal_text().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "proto.hear_player.text"); target = stream->WriteStringMaybeAliased( 2, this->_internal_text(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { 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:proto.hear_player) return target; } size_t hear_player::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.hear_player) size_t total_size = 0; uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string text = 2; if (!this->_internal_text().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_text()); } // uint32 index = 1; if (this->_internal_index() != 0) { total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_index()); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData hear_player::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, hear_player::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*hear_player::GetClassData() const { return &_class_data_; } void hear_player::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:proto.hear_player) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_text().empty()) { _this->_internal_set_text(from._internal_text()); } if (from._internal_index() != 0) { _this->_internal_set_index(from._internal_index()); } _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void hear_player::CopyFrom(const hear_player& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.hear_player) if (&from == this) return; Clear(); MergeFrom(from); } bool hear_player::IsInitialized() const { return true; } void hear_player::InternalSwap(hear_player* other) { using std::swap; auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( &_impl_.text_, lhs_arena, &other->_impl_.text_, rhs_arena ); swap(_impl_.index_, other->_impl_.index_); } ::PROTOBUF_NAMESPACE_ID::Metadata hear_player::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_net_2eproto_getter, &descriptor_table_net_2eproto_once, file_level_metadata_net_2eproto[14]); } // =================================================================== class request_chunk::_Internal { public: static const ::proto::coords& chunk_pos(const request_chunk* msg); }; const ::proto::coords& request_chunk::_Internal::chunk_pos(const request_chunk* msg) { return *msg->_impl_.chunk_pos_; } request_chunk::request_chunk(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.request_chunk) } request_chunk::request_chunk(const request_chunk& from) : ::PROTOBUF_NAMESPACE_ID::Message() { request_chunk* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_.chunk_pos_){nullptr} , /*decltype(_impl_._cached_size_)*/{}}; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); if (from._internal_has_chunk_pos()) { _this->_impl_.chunk_pos_ = new ::proto::coords(*from._impl_.chunk_pos_); } // @@protoc_insertion_point(copy_constructor:proto.request_chunk) } inline void request_chunk::SharedCtor( ::_pb::Arena* arena, bool is_message_owned) { (void)arena; (void)is_message_owned; new (&_impl_) Impl_{ decltype(_impl_.chunk_pos_){nullptr} , /*decltype(_impl_._cached_size_)*/{} }; } request_chunk::~request_chunk() { // @@protoc_insertion_point(destructor:proto.request_chunk) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; return; } SharedDtor(); } inline void request_chunk::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); if (this != internal_default_instance()) delete _impl_.chunk_pos_; } void request_chunk::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } void request_chunk::Clear() { // @@protoc_insertion_point(message_clear_start:proto.request_chunk) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; if (GetArenaForAllocation() == nullptr && _impl_.chunk_pos_ != nullptr) { delete _impl_.chunk_pos_; } _impl_.chunk_pos_ = nullptr; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* request_chunk::_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) { // .proto.coords chunk_pos = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_chunk_pos(), 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_ } uint8_t* request_chunk::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.request_chunk) uint32_t cached_has_bits = 0; (void) cached_has_bits; // .proto.coords chunk_pos = 1; if (this->_internal_has_chunk_pos()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, _Internal::chunk_pos(this), _Internal::chunk_pos(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { 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:proto.request_chunk) return target; } size_t request_chunk::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.request_chunk) size_t total_size = 0; uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .proto.coords chunk_pos = 1; if (this->_internal_has_chunk_pos()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *_impl_.chunk_pos_); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData request_chunk::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, request_chunk::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*request_chunk::GetClassData() const { return &_class_data_; } void request_chunk::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:proto.request_chunk) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void) cached_has_bits; if (from._internal_has_chunk_pos()) { _this->_internal_mutable_chunk_pos()->::proto::coords::MergeFrom( from._internal_chunk_pos()); } _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void request_chunk::CopyFrom(const request_chunk& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.request_chunk) if (&from == this) return; Clear(); MergeFrom(from); } bool request_chunk::IsInitialized() const { return true; } void request_chunk::InternalSwap(request_chunk* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_.chunk_pos_, other->_impl_.chunk_pos_); } ::PROTOBUF_NAMESPACE_ID::Metadata request_chunk::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_net_2eproto_getter, &descriptor_table_net_2eproto_once, file_level_metadata_net_2eproto[15]); } // =================================================================== class remove_chunk::_Internal { public: static const ::proto::coords& chunk_pos(const remove_chunk* msg); }; const ::proto::coords& remove_chunk::_Internal::chunk_pos(const remove_chunk* msg) { return *msg->_impl_.chunk_pos_; } remove_chunk::remove_chunk(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.remove_chunk) } remove_chunk::remove_chunk(const remove_chunk& from) : ::PROTOBUF_NAMESPACE_ID::Message() { remove_chunk* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_.chunk_pos_){nullptr} , /*decltype(_impl_._cached_size_)*/{}}; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); if (from._internal_has_chunk_pos()) { _this->_impl_.chunk_pos_ = new ::proto::coords(*from._impl_.chunk_pos_); } // @@protoc_insertion_point(copy_constructor:proto.remove_chunk) } inline void remove_chunk::SharedCtor( ::_pb::Arena* arena, bool is_message_owned) { (void)arena; (void)is_message_owned; new (&_impl_) Impl_{ decltype(_impl_.chunk_pos_){nullptr} , /*decltype(_impl_._cached_size_)*/{} }; } remove_chunk::~remove_chunk() { // @@protoc_insertion_point(destructor:proto.remove_chunk) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; return; } SharedDtor(); } inline void remove_chunk::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); if (this != internal_default_instance()) delete _impl_.chunk_pos_; } void remove_chunk::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } void remove_chunk::Clear() { // @@protoc_insertion_point(message_clear_start:proto.remove_chunk) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; if (GetArenaForAllocation() == nullptr && _impl_.chunk_pos_ != nullptr) { delete _impl_.chunk_pos_; } _impl_.chunk_pos_ = nullptr; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* remove_chunk::_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) { // .proto.coords chunk_pos = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_chunk_pos(), 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_ } uint8_t* remove_chunk::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.remove_chunk) uint32_t cached_has_bits = 0; (void) cached_has_bits; // .proto.coords chunk_pos = 1; if (this->_internal_has_chunk_pos()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, _Internal::chunk_pos(this), _Internal::chunk_pos(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { 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:proto.remove_chunk) return target; } size_t remove_chunk::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.remove_chunk) size_t total_size = 0; uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .proto.coords chunk_pos = 1; if (this->_internal_has_chunk_pos()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *_impl_.chunk_pos_); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData remove_chunk::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, remove_chunk::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*remove_chunk::GetClassData() const { return &_class_data_; } void remove_chunk::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:proto.remove_chunk) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void) cached_has_bits; if (from._internal_has_chunk_pos()) { _this->_internal_mutable_chunk_pos()->::proto::coords::MergeFrom( from._internal_chunk_pos()); } _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void remove_chunk::CopyFrom(const remove_chunk& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.remove_chunk) if (&from == this) return; Clear(); MergeFrom(from); } bool remove_chunk::IsInitialized() const { return true; } void remove_chunk::InternalSwap(remove_chunk* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_.chunk_pos_, other->_impl_.chunk_pos_); } ::PROTOBUF_NAMESPACE_ID::Metadata remove_chunk::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_net_2eproto_getter, &descriptor_table_net_2eproto_once, file_level_metadata_net_2eproto[16]); } // =================================================================== class chunk::_Internal { public: static const ::proto::coords& chunk_pos(const chunk* msg); }; const ::proto::coords& chunk::_Internal::chunk_pos(const chunk* msg) { return *msg->_impl_.chunk_pos_; } chunk::chunk(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.chunk) } chunk::chunk(const chunk& from) : ::PROTOBUF_NAMESPACE_ID::Message() { chunk* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_.blocks_){from._impl_.blocks_} , /*decltype(_impl_._blocks_cached_byte_size_)*/{0} , decltype(_impl_.chunk_pos_){nullptr} , /*decltype(_impl_._cached_size_)*/{}}; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); if (from._internal_has_chunk_pos()) { _this->_impl_.chunk_pos_ = new ::proto::coords(*from._impl_.chunk_pos_); } // @@protoc_insertion_point(copy_constructor:proto.chunk) } inline void chunk::SharedCtor( ::_pb::Arena* arena, bool is_message_owned) { (void)arena; (void)is_message_owned; new (&_impl_) Impl_{ decltype(_impl_.blocks_){arena} , /*decltype(_impl_._blocks_cached_byte_size_)*/{0} , decltype(_impl_.chunk_pos_){nullptr} , /*decltype(_impl_._cached_size_)*/{} }; } chunk::~chunk() { // @@protoc_insertion_point(destructor:proto.chunk) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; return; } SharedDtor(); } inline void chunk::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); _impl_.blocks_.~RepeatedField(); if (this != internal_default_instance()) delete _impl_.chunk_pos_; } void chunk::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } void chunk::Clear() { // @@protoc_insertion_point(message_clear_start:proto.chunk) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; _impl_.blocks_.Clear(); if (GetArenaForAllocation() == nullptr && _impl_.chunk_pos_ != nullptr) { delete _impl_.chunk_pos_; } _impl_.chunk_pos_ = nullptr; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* chunk::_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) { // .proto.coords chunk_pos = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_chunk_pos(), ptr); CHK_(ptr); } else goto handle_unusual; continue; // repeated uint32 blocks = 2 [packed = true]; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedUInt32Parser(_internal_mutable_blocks(), ptr, ctx); CHK_(ptr); } else if (static_cast(tag) == 16) { _internal_add_blocks(::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_ } uint8_t* chunk::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.chunk) uint32_t cached_has_bits = 0; (void) cached_has_bits; // .proto.coords chunk_pos = 1; if (this->_internal_has_chunk_pos()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, _Internal::chunk_pos(this), _Internal::chunk_pos(this).GetCachedSize(), target, stream); } // repeated uint32 blocks = 2 [packed = true]; { int byte_size = _impl_._blocks_cached_byte_size_.load(std::memory_order_relaxed); if (byte_size > 0) { target = stream->WriteUInt32Packed( 2, _internal_blocks(), byte_size, target); } } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { 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:proto.chunk) return target; } size_t chunk::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.chunk) size_t total_size = 0; uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated uint32 blocks = 2 [packed = true]; { size_t data_size = ::_pbi::WireFormatLite:: UInt32Size(this->_impl_.blocks_); if (data_size > 0) { total_size += 1 + ::_pbi::WireFormatLite::Int32Size(static_cast(data_size)); } int cached_size = ::_pbi::ToCachedSize(data_size); _impl_._blocks_cached_byte_size_.store(cached_size, std::memory_order_relaxed); total_size += data_size; } // .proto.coords chunk_pos = 1; if (this->_internal_has_chunk_pos()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *_impl_.chunk_pos_); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData chunk::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, chunk::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*chunk::GetClassData() const { return &_class_data_; } void chunk::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:proto.chunk) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void) cached_has_bits; _this->_impl_.blocks_.MergeFrom(from._impl_.blocks_); if (from._internal_has_chunk_pos()) { _this->_internal_mutable_chunk_pos()->::proto::coords::MergeFrom( from._internal_chunk_pos()); } _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void chunk::CopyFrom(const chunk& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.chunk) if (&from == this) return; Clear(); MergeFrom(from); } bool chunk::IsInitialized() const { return true; } void chunk::InternalSwap(chunk* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); _impl_.blocks_.InternalSwap(&other->_impl_.blocks_); swap(_impl_.chunk_pos_, other->_impl_.chunk_pos_); } ::PROTOBUF_NAMESPACE_ID::Metadata chunk::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_net_2eproto_getter, &descriptor_table_net_2eproto_once, file_level_metadata_net_2eproto[17]); } // =================================================================== class add_block::_Internal { public: static const ::proto::coords& chunk_pos(const add_block* msg); static const ::proto::ivec3& block_pos(const add_block* msg); }; const ::proto::coords& add_block::_Internal::chunk_pos(const add_block* msg) { return *msg->_impl_.chunk_pos_; } const ::proto::ivec3& add_block::_Internal::block_pos(const add_block* msg) { return *msg->_impl_.block_pos_; } add_block::add_block(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.add_block) } add_block::add_block(const add_block& from) : ::PROTOBUF_NAMESPACE_ID::Message() { add_block* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_.chunk_pos_){nullptr} , decltype(_impl_.block_pos_){nullptr} , decltype(_impl_.active_item_){} , /*decltype(_impl_._cached_size_)*/{}}; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); if (from._internal_has_chunk_pos()) { _this->_impl_.chunk_pos_ = new ::proto::coords(*from._impl_.chunk_pos_); } if (from._internal_has_block_pos()) { _this->_impl_.block_pos_ = new ::proto::ivec3(*from._impl_.block_pos_); } _this->_impl_.active_item_ = from._impl_.active_item_; // @@protoc_insertion_point(copy_constructor:proto.add_block) } inline void add_block::SharedCtor( ::_pb::Arena* arena, bool is_message_owned) { (void)arena; (void)is_message_owned; new (&_impl_) Impl_{ decltype(_impl_.chunk_pos_){nullptr} , decltype(_impl_.block_pos_){nullptr} , decltype(_impl_.active_item_){0u} , /*decltype(_impl_._cached_size_)*/{} }; } add_block::~add_block() { // @@protoc_insertion_point(destructor:proto.add_block) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; return; } SharedDtor(); } inline void add_block::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); if (this != internal_default_instance()) delete _impl_.chunk_pos_; if (this != internal_default_instance()) delete _impl_.block_pos_; } void add_block::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } void add_block::Clear() { // @@protoc_insertion_point(message_clear_start:proto.add_block) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; if (GetArenaForAllocation() == nullptr && _impl_.chunk_pos_ != nullptr) { delete _impl_.chunk_pos_; } _impl_.chunk_pos_ = nullptr; if (GetArenaForAllocation() == nullptr && _impl_.block_pos_ != nullptr) { delete _impl_.block_pos_; } _impl_.block_pos_ = nullptr; _impl_.active_item_ = 0u; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* add_block::_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) { // .proto.coords chunk_pos = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_chunk_pos(), ptr); CHK_(ptr); } else goto handle_unusual; continue; // .proto.ivec3 block_pos = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { ptr = ctx->ParseMessage(_internal_mutable_block_pos(), ptr); CHK_(ptr); } else goto handle_unusual; continue; // uint32 active_item = 3; case 3: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { _impl_.active_item_ = ::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_ } uint8_t* add_block::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.add_block) uint32_t cached_has_bits = 0; (void) cached_has_bits; // .proto.coords chunk_pos = 1; if (this->_internal_has_chunk_pos()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, _Internal::chunk_pos(this), _Internal::chunk_pos(this).GetCachedSize(), target, stream); } // .proto.ivec3 block_pos = 2; if (this->_internal_has_block_pos()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(2, _Internal::block_pos(this), _Internal::block_pos(this).GetCachedSize(), target, stream); } // uint32 active_item = 3; if (this->_internal_active_item() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt32ToArray(3, this->_internal_active_item(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { 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:proto.add_block) return target; } size_t add_block::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.add_block) size_t total_size = 0; uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .proto.coords chunk_pos = 1; if (this->_internal_has_chunk_pos()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *_impl_.chunk_pos_); } // .proto.ivec3 block_pos = 2; if (this->_internal_has_block_pos()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *_impl_.block_pos_); } // uint32 active_item = 3; if (this->_internal_active_item() != 0) { total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_active_item()); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData add_block::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, add_block::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*add_block::GetClassData() const { return &_class_data_; } void add_block::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:proto.add_block) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void) cached_has_bits; if (from._internal_has_chunk_pos()) { _this->_internal_mutable_chunk_pos()->::proto::coords::MergeFrom( from._internal_chunk_pos()); } if (from._internal_has_block_pos()) { _this->_internal_mutable_block_pos()->::proto::ivec3::MergeFrom( from._internal_block_pos()); } if (from._internal_active_item() != 0) { _this->_internal_set_active_item(from._internal_active_item()); } _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void add_block::CopyFrom(const add_block& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.add_block) if (&from == this) return; Clear(); MergeFrom(from); } bool add_block::IsInitialized() const { return true; } void add_block::InternalSwap(add_block* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(add_block, _impl_.active_item_) + sizeof(add_block::_impl_.active_item_) - PROTOBUF_FIELD_OFFSET(add_block, _impl_.chunk_pos_)>( reinterpret_cast(&_impl_.chunk_pos_), reinterpret_cast(&other->_impl_.chunk_pos_)); } ::PROTOBUF_NAMESPACE_ID::Metadata add_block::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_net_2eproto_getter, &descriptor_table_net_2eproto_once, file_level_metadata_net_2eproto[18]); } // =================================================================== class remove_block::_Internal { public: static const ::proto::coords& chunk_pos(const remove_block* msg); static const ::proto::ivec3& block_pos(const remove_block* msg); }; const ::proto::coords& remove_block::_Internal::chunk_pos(const remove_block* msg) { return *msg->_impl_.chunk_pos_; } const ::proto::ivec3& remove_block::_Internal::block_pos(const remove_block* msg) { return *msg->_impl_.block_pos_; } remove_block::remove_block(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.remove_block) } remove_block::remove_block(const remove_block& from) : ::PROTOBUF_NAMESPACE_ID::Message() { remove_block* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_.chunk_pos_){nullptr} , decltype(_impl_.block_pos_){nullptr} , /*decltype(_impl_._cached_size_)*/{}}; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); if (from._internal_has_chunk_pos()) { _this->_impl_.chunk_pos_ = new ::proto::coords(*from._impl_.chunk_pos_); } if (from._internal_has_block_pos()) { _this->_impl_.block_pos_ = new ::proto::ivec3(*from._impl_.block_pos_); } // @@protoc_insertion_point(copy_constructor:proto.remove_block) } inline void remove_block::SharedCtor( ::_pb::Arena* arena, bool is_message_owned) { (void)arena; (void)is_message_owned; new (&_impl_) Impl_{ decltype(_impl_.chunk_pos_){nullptr} , decltype(_impl_.block_pos_){nullptr} , /*decltype(_impl_._cached_size_)*/{} }; } remove_block::~remove_block() { // @@protoc_insertion_point(destructor:proto.remove_block) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; return; } SharedDtor(); } inline void remove_block::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); if (this != internal_default_instance()) delete _impl_.chunk_pos_; if (this != internal_default_instance()) delete _impl_.block_pos_; } void remove_block::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } void remove_block::Clear() { // @@protoc_insertion_point(message_clear_start:proto.remove_block) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; if (GetArenaForAllocation() == nullptr && _impl_.chunk_pos_ != nullptr) { delete _impl_.chunk_pos_; } _impl_.chunk_pos_ = nullptr; if (GetArenaForAllocation() == nullptr && _impl_.block_pos_ != nullptr) { delete _impl_.block_pos_; } _impl_.block_pos_ = nullptr; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* remove_block::_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) { // .proto.coords chunk_pos = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_chunk_pos(), ptr); CHK_(ptr); } else goto handle_unusual; continue; // .proto.ivec3 block_pos = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { ptr = ctx->ParseMessage(_internal_mutable_block_pos(), 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_ } uint8_t* remove_block::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.remove_block) uint32_t cached_has_bits = 0; (void) cached_has_bits; // .proto.coords chunk_pos = 1; if (this->_internal_has_chunk_pos()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, _Internal::chunk_pos(this), _Internal::chunk_pos(this).GetCachedSize(), target, stream); } // .proto.ivec3 block_pos = 2; if (this->_internal_has_block_pos()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(2, _Internal::block_pos(this), _Internal::block_pos(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { 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:proto.remove_block) return target; } size_t remove_block::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.remove_block) size_t total_size = 0; uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .proto.coords chunk_pos = 1; if (this->_internal_has_chunk_pos()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *_impl_.chunk_pos_); } // .proto.ivec3 block_pos = 2; if (this->_internal_has_block_pos()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *_impl_.block_pos_); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData remove_block::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, remove_block::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*remove_block::GetClassData() const { return &_class_data_; } void remove_block::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:proto.remove_block) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void) cached_has_bits; if (from._internal_has_chunk_pos()) { _this->_internal_mutable_chunk_pos()->::proto::coords::MergeFrom( from._internal_chunk_pos()); } if (from._internal_has_block_pos()) { _this->_internal_mutable_block_pos()->::proto::ivec3::MergeFrom( from._internal_block_pos()); } _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void remove_block::CopyFrom(const remove_block& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.remove_block) if (&from == this) return; Clear(); MergeFrom(from); } bool remove_block::IsInitialized() const { return true; } void remove_block::InternalSwap(remove_block* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(remove_block, _impl_.block_pos_) + sizeof(remove_block::_impl_.block_pos_) - PROTOBUF_FIELD_OFFSET(remove_block, _impl_.chunk_pos_)>( reinterpret_cast(&_impl_.chunk_pos_), reinterpret_cast(&other->_impl_.chunk_pos_)); } ::PROTOBUF_NAMESPACE_ID::Metadata remove_block::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_net_2eproto_getter, &descriptor_table_net_2eproto_once, file_level_metadata_net_2eproto[19]); } // =================================================================== class server_message::_Internal { public: }; server_message::server_message(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.server_message) } server_message::server_message(const server_message& from) : ::PROTOBUF_NAMESPACE_ID::Message() { server_message* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_.message_){} , decltype(_impl_.fatal_){} , /*decltype(_impl_._cached_size_)*/{}}; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); _impl_.message_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.message_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_message().empty()) { _this->_impl_.message_.Set(from._internal_message(), _this->GetArenaForAllocation()); } _this->_impl_.fatal_ = from._impl_.fatal_; // @@protoc_insertion_point(copy_constructor:proto.server_message) } inline void server_message::SharedCtor( ::_pb::Arena* arena, bool is_message_owned) { (void)arena; (void)is_message_owned; new (&_impl_) Impl_{ decltype(_impl_.message_){} , decltype(_impl_.fatal_){false} , /*decltype(_impl_._cached_size_)*/{} }; _impl_.message_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.message_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } server_message::~server_message() { // @@protoc_insertion_point(destructor:proto.server_message) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; return; } SharedDtor(); } inline void server_message::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); _impl_.message_.Destroy(); } void server_message::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } void server_message::Clear() { // @@protoc_insertion_point(message_clear_start:proto.server_message) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; _impl_.message_.ClearToEmpty(); _impl_.fatal_ = false; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* server_message::_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) { // string message = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { auto str = _internal_mutable_message(); ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); CHK_(::_pbi::VerifyUTF8(str, "proto.server_message.message")); } else goto handle_unusual; continue; // bool fatal = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { _impl_.fatal_ = ::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_ } uint8_t* server_message::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.server_message) uint32_t cached_has_bits = 0; (void) cached_has_bits; // string message = 1; if (!this->_internal_message().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_message().data(), static_cast(this->_internal_message().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "proto.server_message.message"); target = stream->WriteStringMaybeAliased( 1, this->_internal_message(), target); } // bool fatal = 2; if (this->_internal_fatal() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_fatal(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { 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:proto.server_message) return target; } size_t server_message::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.server_message) size_t total_size = 0; uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string message = 1; if (!this->_internal_message().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_message()); } // bool fatal = 2; if (this->_internal_fatal() != 0) { total_size += 1 + 1; } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData server_message::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, server_message::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*server_message::GetClassData() const { return &_class_data_; } void server_message::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:proto.server_message) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_message().empty()) { _this->_internal_set_message(from._internal_message()); } if (from._internal_fatal() != 0) { _this->_internal_set_fatal(from._internal_fatal()); } _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void server_message::CopyFrom(const server_message& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.server_message) if (&from == this) return; Clear(); MergeFrom(from); } bool server_message::IsInitialized() const { return true; } void server_message::InternalSwap(server_message* other) { using std::swap; auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( &_impl_.message_, lhs_arena, &other->_impl_.message_, rhs_arena ); swap(_impl_.fatal_, other->_impl_.fatal_); } ::PROTOBUF_NAMESPACE_ID::Metadata server_message::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_net_2eproto_getter, &descriptor_table_net_2eproto_once, file_level_metadata_net_2eproto[20]); } // =================================================================== class item_swap::_Internal { public: }; item_swap::item_swap(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.item_swap) } item_swap::item_swap(const item_swap& from) : ::PROTOBUF_NAMESPACE_ID::Message() { item_swap* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_.index_a_){} , decltype(_impl_.index_b_){} , /*decltype(_impl_._cached_size_)*/{}}; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::memcpy(&_impl_.index_a_, &from._impl_.index_a_, static_cast(reinterpret_cast(&_impl_.index_b_) - reinterpret_cast(&_impl_.index_a_)) + sizeof(_impl_.index_b_)); // @@protoc_insertion_point(copy_constructor:proto.item_swap) } inline void item_swap::SharedCtor( ::_pb::Arena* arena, bool is_message_owned) { (void)arena; (void)is_message_owned; new (&_impl_) Impl_{ decltype(_impl_.index_a_){0u} , decltype(_impl_.index_b_){0u} , /*decltype(_impl_._cached_size_)*/{} }; } item_swap::~item_swap() { // @@protoc_insertion_point(destructor:proto.item_swap) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; return; } SharedDtor(); } inline void item_swap::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } void item_swap::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } void item_swap::Clear() { // @@protoc_insertion_point(message_clear_start:proto.item_swap) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; ::memset(&_impl_.index_a_, 0, static_cast( reinterpret_cast(&_impl_.index_b_) - reinterpret_cast(&_impl_.index_a_)) + sizeof(_impl_.index_b_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* item_swap::_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) { // uint32 index_a = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { _impl_.index_a_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // uint32 index_b = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { _impl_.index_b_ = ::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_ } uint8_t* item_swap::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.item_swap) uint32_t cached_has_bits = 0; (void) cached_has_bits; // uint32 index_a = 1; if (this->_internal_index_a() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_index_a(), target); } // uint32 index_b = 2; if (this->_internal_index_b() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_index_b(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { 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:proto.item_swap) return target; } size_t item_swap::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.item_swap) size_t total_size = 0; uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // uint32 index_a = 1; if (this->_internal_index_a() != 0) { total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_index_a()); } // uint32 index_b = 2; if (this->_internal_index_b() != 0) { total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_index_b()); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData item_swap::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, item_swap::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*item_swap::GetClassData() const { return &_class_data_; } void item_swap::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:proto.item_swap) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void) cached_has_bits; if (from._internal_index_a() != 0) { _this->_internal_set_index_a(from._internal_index_a()); } if (from._internal_index_b() != 0) { _this->_internal_set_index_b(from._internal_index_b()); } _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void item_swap::CopyFrom(const item_swap& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.item_swap) if (&from == this) return; Clear(); MergeFrom(from); } bool item_swap::IsInitialized() const { return true; } void item_swap::InternalSwap(item_swap* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(item_swap, _impl_.index_b_) + sizeof(item_swap::_impl_.index_b_) - PROTOBUF_FIELD_OFFSET(item_swap, _impl_.index_a_)>( reinterpret_cast(&_impl_.index_a_), reinterpret_cast(&other->_impl_.index_a_)); } ::PROTOBUF_NAMESPACE_ID::Metadata item_swap::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_net_2eproto_getter, &descriptor_table_net_2eproto_once, file_level_metadata_net_2eproto[21]); } // =================================================================== class item_use::_Internal { public: }; item_use::item_use(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.item_use) } item_use::item_use(const item_use& from) : ::PROTOBUF_NAMESPACE_ID::Message() { item_use* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_.index_){} , /*decltype(_impl_._cached_size_)*/{}}; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); _this->_impl_.index_ = from._impl_.index_; // @@protoc_insertion_point(copy_constructor:proto.item_use) } inline void item_use::SharedCtor( ::_pb::Arena* arena, bool is_message_owned) { (void)arena; (void)is_message_owned; new (&_impl_) Impl_{ decltype(_impl_.index_){0u} , /*decltype(_impl_._cached_size_)*/{} }; } item_use::~item_use() { // @@protoc_insertion_point(destructor:proto.item_use) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; return; } SharedDtor(); } inline void item_use::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } void item_use::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } void item_use::Clear() { // @@protoc_insertion_point(message_clear_start:proto.item_use) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; _impl_.index_ = 0u; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* item_use::_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) { // uint32 index = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { _impl_.index_ = ::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_ } uint8_t* item_use::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.item_use) uint32_t cached_has_bits = 0; (void) cached_has_bits; // uint32 index = 1; if (this->_internal_index() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_index(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { 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:proto.item_use) return target; } size_t item_use::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.item_use) size_t total_size = 0; uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // uint32 index = 1; if (this->_internal_index() != 0) { total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_index()); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData item_use::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, item_use::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*item_use::GetClassData() const { return &_class_data_; } void item_use::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:proto.item_use) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void) cached_has_bits; if (from._internal_index() != 0) { _this->_internal_set_index(from._internal_index()); } _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void item_use::CopyFrom(const item_use& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.item_use) if (&from == this) return; Clear(); MergeFrom(from); } bool item_use::IsInitialized() const { return true; } void item_use::InternalSwap(item_use* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_.index_, other->_impl_.index_); } ::PROTOBUF_NAMESPACE_ID::Metadata item_use::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_net_2eproto_getter, &descriptor_table_net_2eproto_once, file_level_metadata_net_2eproto[22]); } // =================================================================== class item_update::_Internal { public: }; item_update::item_update(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.item_update) } item_update::item_update(const item_update& from) : ::PROTOBUF_NAMESPACE_ID::Message() { item_update* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_.items_){from._impl_.items_} , /*decltype(_impl_._cached_size_)*/{}}; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:proto.item_update) } inline void item_update::SharedCtor( ::_pb::Arena* arena, bool is_message_owned) { (void)arena; (void)is_message_owned; new (&_impl_) Impl_{ decltype(_impl_.items_){arena} , /*decltype(_impl_._cached_size_)*/{} }; } item_update::~item_update() { // @@protoc_insertion_point(destructor:proto.item_update) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; return; } SharedDtor(); } inline void item_update::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); _impl_.items_.~RepeatedPtrField(); } void item_update::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } void item_update::Clear() { // @@protoc_insertion_point(message_clear_start:proto.item_update) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; _impl_.items_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* item_update::_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) { // repeated .proto.item items = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { ptr -= 1; do { ptr += 1; ptr = ctx->ParseMessage(_internal_add_items(), 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_ } uint8_t* item_update::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.item_update) uint32_t cached_has_bits = 0; (void) cached_has_bits; // repeated .proto.item items = 1; for (unsigned i = 0, n = static_cast(this->_internal_items_size()); i < n; i++) { const auto& repfield = this->_internal_items(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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.item_update) return target; } size_t item_update::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.item_update) size_t total_size = 0; uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .proto.item items = 1; total_size += 1UL * this->_internal_items_size(); for (const auto& msg : this->_impl_.items_) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData item_update::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, item_update::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*item_update::GetClassData() const { return &_class_data_; } void item_update::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:proto.item_update) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void) cached_has_bits; _this->_impl_.items_.MergeFrom(from._impl_.items_); _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void item_update::CopyFrom(const item_update& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.item_update) if (&from == this) return; Clear(); MergeFrom(from); } bool item_update::IsInitialized() const { return true; } void item_update::InternalSwap(item_update* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); _impl_.items_.InternalSwap(&other->_impl_.items_); } ::PROTOBUF_NAMESPACE_ID::Metadata item_update::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_net_2eproto_getter, &descriptor_table_net_2eproto_once, file_level_metadata_net_2eproto[23]); } // =================================================================== class animate_update::_Internal { public: using HasBits = decltype(std::declval()._impl_._has_bits_); static const ::proto::animate& animate(const animate_update* msg); static void set_has_sequence(HasBits* has_bits) { (*has_bits)[0] |= 1u; } }; const ::proto::animate& animate_update::_Internal::animate(const animate_update* msg) { return *msg->_impl_.animate_; } animate_update::animate_update(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.animate_update) } animate_update::animate_update(const animate_update& from) : ::PROTOBUF_NAMESPACE_ID::Message() { animate_update* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_._has_bits_){from._impl_._has_bits_} , /*decltype(_impl_._cached_size_)*/{} , decltype(_impl_.animate_){nullptr} , decltype(_impl_.tick_){} , decltype(_impl_.sequence_){}}; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); if (from._internal_has_animate()) { _this->_impl_.animate_ = new ::proto::animate(*from._impl_.animate_); } ::memcpy(&_impl_.tick_, &from._impl_.tick_, static_cast(reinterpret_cast(&_impl_.sequence_) - reinterpret_cast(&_impl_.tick_)) + sizeof(_impl_.sequence_)); // @@protoc_insertion_point(copy_constructor:proto.animate_update) } inline void animate_update::SharedCtor( ::_pb::Arena* arena, bool is_message_owned) { (void)arena; (void)is_message_owned; new (&_impl_) Impl_{ decltype(_impl_._has_bits_){} , /*decltype(_impl_._cached_size_)*/{} , decltype(_impl_.animate_){nullptr} , decltype(_impl_.tick_){0u} , decltype(_impl_.sequence_){0u} }; } animate_update::~animate_update() { // @@protoc_insertion_point(destructor:proto.animate_update) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; return; } SharedDtor(); } inline void animate_update::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); if (this != internal_default_instance()) delete _impl_.animate_; } void animate_update::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } void animate_update::Clear() { // @@protoc_insertion_point(message_clear_start:proto.animate_update) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; if (GetArenaForAllocation() == nullptr && _impl_.animate_ != nullptr) { delete _impl_.animate_; } _impl_.animate_ = nullptr; _impl_.tick_ = 0u; _impl_.sequence_ = 0u; _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* animate_update::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #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) { // .proto.animate animate = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_animate(), ptr); CHK_(ptr); } else goto handle_unusual; continue; // uint32 tick = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { _impl_.tick_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional uint32 sequence = 3; case 3: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { _Internal::set_has_sequence(&has_bits); _impl_.sequence_ = ::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: _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; goto message_done; #undef CHK_ } uint8_t* animate_update::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.animate_update) uint32_t cached_has_bits = 0; (void) cached_has_bits; // .proto.animate animate = 1; if (this->_internal_has_animate()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, _Internal::animate(this), _Internal::animate(this).GetCachedSize(), target, stream); } // uint32 tick = 2; if (this->_internal_tick() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_tick(), target); } // optional uint32 sequence = 3; if (_internal_has_sequence()) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt32ToArray(3, this->_internal_sequence(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { 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:proto.animate_update) return target; } size_t animate_update::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.animate_update) size_t total_size = 0; uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .proto.animate animate = 1; if (this->_internal_has_animate()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *_impl_.animate_); } // uint32 tick = 2; if (this->_internal_tick() != 0) { total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_tick()); } // optional uint32 sequence = 3; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_sequence()); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData animate_update::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, animate_update::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*animate_update::GetClassData() const { return &_class_data_; } void animate_update::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:proto.animate_update) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void) cached_has_bits; if (from._internal_has_animate()) { _this->_internal_mutable_animate()->::proto::animate::MergeFrom( from._internal_animate()); } if (from._internal_tick() != 0) { _this->_internal_set_tick(from._internal_tick()); } if (from._internal_has_sequence()) { _this->_internal_set_sequence(from._internal_sequence()); } _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void animate_update::CopyFrom(const animate_update& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.animate_update) if (&from == this) return; Clear(); MergeFrom(from); } bool animate_update::IsInitialized() const { return true; } void animate_update::InternalSwap(animate_update* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(animate_update, _impl_.sequence_) + sizeof(animate_update::_impl_.sequence_) - PROTOBUF_FIELD_OFFSET(animate_update, _impl_.animate_)>( reinterpret_cast(&_impl_.animate_), reinterpret_cast(&other->_impl_.animate_)); } ::PROTOBUF_NAMESPACE_ID::Metadata animate_update::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_net_2eproto_getter, &descriptor_table_net_2eproto_once, file_level_metadata_net_2eproto[24]); } // =================================================================== class packet::_Internal { public: static const ::proto::auth& auth_packet(const packet* msg); static const ::proto::init& init_packet(const packet* msg); static const ::proto::move& move_packet(const packet* msg); static const ::proto::animate_update& animate_update_packet(const packet* msg); static const ::proto::remove_entity& remove_entity_packet(const packet* msg); static const ::proto::say& say_packet(const packet* msg); static const ::proto::hear_player& hear_player_packet(const packet* msg); static const ::proto::request_chunk& request_chunk_packet(const packet* msg); static const ::proto::chunk& chunk_packet(const packet* msg); static const ::proto::remove_chunk& remove_chunk_packet(const packet* msg); static const ::proto::add_block& add_block_packet(const packet* msg); static const ::proto::remove_block& remove_block_packet(const packet* msg); static const ::proto::server_message& server_message_packet(const packet* msg); static const ::proto::item_swap& item_swap_packet(const packet* msg); static const ::proto::item_use& item_use_packet(const packet* msg); static const ::proto::item_update& item_update_packet(const packet* msg); }; const ::proto::auth& packet::_Internal::auth_packet(const packet* msg) { return *msg->_impl_.contents_.auth_packet_; } const ::proto::init& packet::_Internal::init_packet(const packet* msg) { return *msg->_impl_.contents_.init_packet_; } const ::proto::move& packet::_Internal::move_packet(const packet* msg) { return *msg->_impl_.contents_.move_packet_; } const ::proto::animate_update& packet::_Internal::animate_update_packet(const packet* msg) { return *msg->_impl_.contents_.animate_update_packet_; } const ::proto::remove_entity& packet::_Internal::remove_entity_packet(const packet* msg) { return *msg->_impl_.contents_.remove_entity_packet_; } const ::proto::say& packet::_Internal::say_packet(const packet* msg) { return *msg->_impl_.contents_.say_packet_; } const ::proto::hear_player& packet::_Internal::hear_player_packet(const packet* msg) { return *msg->_impl_.contents_.hear_player_packet_; } const ::proto::request_chunk& packet::_Internal::request_chunk_packet(const packet* msg) { return *msg->_impl_.contents_.request_chunk_packet_; } const ::proto::chunk& packet::_Internal::chunk_packet(const packet* msg) { return *msg->_impl_.contents_.chunk_packet_; } const ::proto::remove_chunk& packet::_Internal::remove_chunk_packet(const packet* msg) { return *msg->_impl_.contents_.remove_chunk_packet_; } const ::proto::add_block& packet::_Internal::add_block_packet(const packet* msg) { return *msg->_impl_.contents_.add_block_packet_; } const ::proto::remove_block& packet::_Internal::remove_block_packet(const packet* msg) { return *msg->_impl_.contents_.remove_block_packet_; } const ::proto::server_message& packet::_Internal::server_message_packet(const packet* msg) { return *msg->_impl_.contents_.server_message_packet_; } const ::proto::item_swap& packet::_Internal::item_swap_packet(const packet* msg) { return *msg->_impl_.contents_.item_swap_packet_; } const ::proto::item_use& packet::_Internal::item_use_packet(const packet* msg) { return *msg->_impl_.contents_.item_use_packet_; } const ::proto::item_update& packet::_Internal::item_update_packet(const packet* msg) { return *msg->_impl_.contents_.item_update_packet_; } void packet::set_allocated_auth_packet(::proto::auth* auth_packet) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_contents(); if (auth_packet) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(auth_packet); if (message_arena != submessage_arena) { auth_packet = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, auth_packet, submessage_arena); } set_has_auth_packet(); _impl_.contents_.auth_packet_ = auth_packet; } // @@protoc_insertion_point(field_set_allocated:proto.packet.auth_packet) } void packet::set_allocated_init_packet(::proto::init* init_packet) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_contents(); if (init_packet) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(init_packet); if (message_arena != submessage_arena) { init_packet = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, init_packet, submessage_arena); } set_has_init_packet(); _impl_.contents_.init_packet_ = init_packet; } // @@protoc_insertion_point(field_set_allocated:proto.packet.init_packet) } void packet::set_allocated_move_packet(::proto::move* move_packet) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_contents(); if (move_packet) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(move_packet); if (message_arena != submessage_arena) { move_packet = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, move_packet, submessage_arena); } set_has_move_packet(); _impl_.contents_.move_packet_ = move_packet; } // @@protoc_insertion_point(field_set_allocated:proto.packet.move_packet) } void packet::set_allocated_animate_update_packet(::proto::animate_update* animate_update_packet) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_contents(); if (animate_update_packet) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(animate_update_packet); if (message_arena != submessage_arena) { animate_update_packet = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, animate_update_packet, submessage_arena); } set_has_animate_update_packet(); _impl_.contents_.animate_update_packet_ = animate_update_packet; } // @@protoc_insertion_point(field_set_allocated:proto.packet.animate_update_packet) } void packet::set_allocated_remove_entity_packet(::proto::remove_entity* remove_entity_packet) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_contents(); if (remove_entity_packet) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(remove_entity_packet); if (message_arena != submessage_arena) { remove_entity_packet = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, remove_entity_packet, submessage_arena); } set_has_remove_entity_packet(); _impl_.contents_.remove_entity_packet_ = remove_entity_packet; } // @@protoc_insertion_point(field_set_allocated:proto.packet.remove_entity_packet) } void packet::set_allocated_say_packet(::proto::say* say_packet) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_contents(); if (say_packet) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(say_packet); if (message_arena != submessage_arena) { say_packet = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, say_packet, submessage_arena); } set_has_say_packet(); _impl_.contents_.say_packet_ = say_packet; } // @@protoc_insertion_point(field_set_allocated:proto.packet.say_packet) } void packet::set_allocated_hear_player_packet(::proto::hear_player* hear_player_packet) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_contents(); if (hear_player_packet) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(hear_player_packet); if (message_arena != submessage_arena) { hear_player_packet = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, hear_player_packet, submessage_arena); } set_has_hear_player_packet(); _impl_.contents_.hear_player_packet_ = hear_player_packet; } // @@protoc_insertion_point(field_set_allocated:proto.packet.hear_player_packet) } void packet::set_allocated_request_chunk_packet(::proto::request_chunk* request_chunk_packet) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_contents(); if (request_chunk_packet) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(request_chunk_packet); if (message_arena != submessage_arena) { request_chunk_packet = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, request_chunk_packet, submessage_arena); } set_has_request_chunk_packet(); _impl_.contents_.request_chunk_packet_ = request_chunk_packet; } // @@protoc_insertion_point(field_set_allocated:proto.packet.request_chunk_packet) } void packet::set_allocated_chunk_packet(::proto::chunk* chunk_packet) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_contents(); if (chunk_packet) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(chunk_packet); if (message_arena != submessage_arena) { chunk_packet = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, chunk_packet, submessage_arena); } set_has_chunk_packet(); _impl_.contents_.chunk_packet_ = chunk_packet; } // @@protoc_insertion_point(field_set_allocated:proto.packet.chunk_packet) } void packet::set_allocated_remove_chunk_packet(::proto::remove_chunk* remove_chunk_packet) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_contents(); if (remove_chunk_packet) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(remove_chunk_packet); if (message_arena != submessage_arena) { remove_chunk_packet = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, remove_chunk_packet, submessage_arena); } set_has_remove_chunk_packet(); _impl_.contents_.remove_chunk_packet_ = remove_chunk_packet; } // @@protoc_insertion_point(field_set_allocated:proto.packet.remove_chunk_packet) } void packet::set_allocated_add_block_packet(::proto::add_block* add_block_packet) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_contents(); if (add_block_packet) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(add_block_packet); if (message_arena != submessage_arena) { add_block_packet = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, add_block_packet, submessage_arena); } set_has_add_block_packet(); _impl_.contents_.add_block_packet_ = add_block_packet; } // @@protoc_insertion_point(field_set_allocated:proto.packet.add_block_packet) } void packet::set_allocated_remove_block_packet(::proto::remove_block* remove_block_packet) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_contents(); if (remove_block_packet) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(remove_block_packet); if (message_arena != submessage_arena) { remove_block_packet = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, remove_block_packet, submessage_arena); } set_has_remove_block_packet(); _impl_.contents_.remove_block_packet_ = remove_block_packet; } // @@protoc_insertion_point(field_set_allocated:proto.packet.remove_block_packet) } void packet::set_allocated_server_message_packet(::proto::server_message* server_message_packet) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_contents(); if (server_message_packet) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(server_message_packet); if (message_arena != submessage_arena) { server_message_packet = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, server_message_packet, submessage_arena); } set_has_server_message_packet(); _impl_.contents_.server_message_packet_ = server_message_packet; } // @@protoc_insertion_point(field_set_allocated:proto.packet.server_message_packet) } void packet::set_allocated_item_swap_packet(::proto::item_swap* item_swap_packet) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_contents(); if (item_swap_packet) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(item_swap_packet); if (message_arena != submessage_arena) { item_swap_packet = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, item_swap_packet, submessage_arena); } set_has_item_swap_packet(); _impl_.contents_.item_swap_packet_ = item_swap_packet; } // @@protoc_insertion_point(field_set_allocated:proto.packet.item_swap_packet) } void packet::set_allocated_item_use_packet(::proto::item_use* item_use_packet) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_contents(); if (item_use_packet) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(item_use_packet); if (message_arena != submessage_arena) { item_use_packet = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, item_use_packet, submessage_arena); } set_has_item_use_packet(); _impl_.contents_.item_use_packet_ = item_use_packet; } // @@protoc_insertion_point(field_set_allocated:proto.packet.item_use_packet) } void packet::set_allocated_item_update_packet(::proto::item_update* item_update_packet) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_contents(); if (item_update_packet) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(item_update_packet); if (message_arena != submessage_arena) { item_update_packet = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, item_update_packet, submessage_arena); } set_has_item_update_packet(); _impl_.contents_.item_update_packet_ = item_update_packet; } // @@protoc_insertion_point(field_set_allocated:proto.packet.item_update_packet) } packet::packet(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.packet) } packet::packet(const packet& from) : ::PROTOBUF_NAMESPACE_ID::Message() { packet* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_.contents_){} , /*decltype(_impl_._cached_size_)*/{} , /*decltype(_impl_._oneof_case_)*/{}}; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); clear_has_contents(); switch (from.contents_case()) { case kAuthPacket: { _this->_internal_mutable_auth_packet()->::proto::auth::MergeFrom( from._internal_auth_packet()); break; } case kInitPacket: { _this->_internal_mutable_init_packet()->::proto::init::MergeFrom( from._internal_init_packet()); break; } case kMovePacket: { _this->_internal_mutable_move_packet()->::proto::move::MergeFrom( from._internal_move_packet()); break; } case kAnimateUpdatePacket: { _this->_internal_mutable_animate_update_packet()->::proto::animate_update::MergeFrom( from._internal_animate_update_packet()); break; } case kRemoveEntityPacket: { _this->_internal_mutable_remove_entity_packet()->::proto::remove_entity::MergeFrom( from._internal_remove_entity_packet()); break; } case kSayPacket: { _this->_internal_mutable_say_packet()->::proto::say::MergeFrom( from._internal_say_packet()); break; } case kHearPlayerPacket: { _this->_internal_mutable_hear_player_packet()->::proto::hear_player::MergeFrom( from._internal_hear_player_packet()); break; } case kRequestChunkPacket: { _this->_internal_mutable_request_chunk_packet()->::proto::request_chunk::MergeFrom( from._internal_request_chunk_packet()); break; } case kChunkPacket: { _this->_internal_mutable_chunk_packet()->::proto::chunk::MergeFrom( from._internal_chunk_packet()); break; } case kRemoveChunkPacket: { _this->_internal_mutable_remove_chunk_packet()->::proto::remove_chunk::MergeFrom( from._internal_remove_chunk_packet()); break; } case kAddBlockPacket: { _this->_internal_mutable_add_block_packet()->::proto::add_block::MergeFrom( from._internal_add_block_packet()); break; } case kRemoveBlockPacket: { _this->_internal_mutable_remove_block_packet()->::proto::remove_block::MergeFrom( from._internal_remove_block_packet()); break; } case kServerMessagePacket: { _this->_internal_mutable_server_message_packet()->::proto::server_message::MergeFrom( from._internal_server_message_packet()); break; } case kItemSwapPacket: { _this->_internal_mutable_item_swap_packet()->::proto::item_swap::MergeFrom( from._internal_item_swap_packet()); break; } case kItemUsePacket: { _this->_internal_mutable_item_use_packet()->::proto::item_use::MergeFrom( from._internal_item_use_packet()); break; } case kItemUpdatePacket: { _this->_internal_mutable_item_update_packet()->::proto::item_update::MergeFrom( from._internal_item_update_packet()); break; } case CONTENTS_NOT_SET: { break; } } // @@protoc_insertion_point(copy_constructor:proto.packet) } inline void packet::SharedCtor( ::_pb::Arena* arena, bool is_message_owned) { (void)arena; (void)is_message_owned; new (&_impl_) Impl_{ decltype(_impl_.contents_){} , /*decltype(_impl_._cached_size_)*/{} , /*decltype(_impl_._oneof_case_)*/{} }; clear_has_contents(); } packet::~packet() { // @@protoc_insertion_point(destructor:proto.packet) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; return; } SharedDtor(); } inline void packet::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); if (has_contents()) { clear_contents(); } } void packet::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } void packet::clear_contents() { // @@protoc_insertion_point(one_of_clear_start:proto.packet) switch (contents_case()) { case kAuthPacket: { if (GetArenaForAllocation() == nullptr) { delete _impl_.contents_.auth_packet_; } break; } case kInitPacket: { if (GetArenaForAllocation() == nullptr) { delete _impl_.contents_.init_packet_; } break; } case kMovePacket: { if (GetArenaForAllocation() == nullptr) { delete _impl_.contents_.move_packet_; } break; } case kAnimateUpdatePacket: { if (GetArenaForAllocation() == nullptr) { delete _impl_.contents_.animate_update_packet_; } break; } case kRemoveEntityPacket: { if (GetArenaForAllocation() == nullptr) { delete _impl_.contents_.remove_entity_packet_; } break; } case kSayPacket: { if (GetArenaForAllocation() == nullptr) { delete _impl_.contents_.say_packet_; } break; } case kHearPlayerPacket: { if (GetArenaForAllocation() == nullptr) { delete _impl_.contents_.hear_player_packet_; } break; } case kRequestChunkPacket: { if (GetArenaForAllocation() == nullptr) { delete _impl_.contents_.request_chunk_packet_; } break; } case kChunkPacket: { if (GetArenaForAllocation() == nullptr) { delete _impl_.contents_.chunk_packet_; } break; } case kRemoveChunkPacket: { if (GetArenaForAllocation() == nullptr) { delete _impl_.contents_.remove_chunk_packet_; } break; } case kAddBlockPacket: { if (GetArenaForAllocation() == nullptr) { delete _impl_.contents_.add_block_packet_; } break; } case kRemoveBlockPacket: { if (GetArenaForAllocation() == nullptr) { delete _impl_.contents_.remove_block_packet_; } break; } case kServerMessagePacket: { if (GetArenaForAllocation() == nullptr) { delete _impl_.contents_.server_message_packet_; } break; } case kItemSwapPacket: { if (GetArenaForAllocation() == nullptr) { delete _impl_.contents_.item_swap_packet_; } break; } case kItemUsePacket: { if (GetArenaForAllocation() == nullptr) { delete _impl_.contents_.item_use_packet_; } break; } case kItemUpdatePacket: { if (GetArenaForAllocation() == nullptr) { delete _impl_.contents_.item_update_packet_; } break; } case CONTENTS_NOT_SET: { break; } } _impl_._oneof_case_[0] = CONTENTS_NOT_SET; } void packet::Clear() { // @@protoc_insertion_point(message_clear_start:proto.packet) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; clear_contents(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* packet::_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) { // .proto.auth auth_packet = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_auth_packet(), ptr); CHK_(ptr); } else goto handle_unusual; continue; // .proto.init init_packet = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { ptr = ctx->ParseMessage(_internal_mutable_init_packet(), ptr); CHK_(ptr); } else goto handle_unusual; continue; // .proto.move move_packet = 3; case 3: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { ptr = ctx->ParseMessage(_internal_mutable_move_packet(), ptr); CHK_(ptr); } else goto handle_unusual; continue; // .proto.animate_update animate_update_packet = 4; case 4: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { ptr = ctx->ParseMessage(_internal_mutable_animate_update_packet(), ptr); CHK_(ptr); } else goto handle_unusual; continue; // .proto.remove_entity remove_entity_packet = 5; case 5: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { ptr = ctx->ParseMessage(_internal_mutable_remove_entity_packet(), ptr); CHK_(ptr); } else goto handle_unusual; continue; // .proto.say say_packet = 6; case 6: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { ptr = ctx->ParseMessage(_internal_mutable_say_packet(), ptr); CHK_(ptr); } else goto handle_unusual; continue; // .proto.hear_player hear_player_packet = 7; case 7: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { ptr = ctx->ParseMessage(_internal_mutable_hear_player_packet(), ptr); CHK_(ptr); } else goto handle_unusual; continue; // .proto.request_chunk request_chunk_packet = 8; case 8: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { ptr = ctx->ParseMessage(_internal_mutable_request_chunk_packet(), ptr); CHK_(ptr); } else goto handle_unusual; continue; // .proto.chunk chunk_packet = 9; case 9: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 74)) { ptr = ctx->ParseMessage(_internal_mutable_chunk_packet(), ptr); CHK_(ptr); } else goto handle_unusual; continue; // .proto.remove_chunk remove_chunk_packet = 10; case 10: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 82)) { ptr = ctx->ParseMessage(_internal_mutable_remove_chunk_packet(), ptr); CHK_(ptr); } else goto handle_unusual; continue; // .proto.add_block add_block_packet = 11; case 11: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 90)) { ptr = ctx->ParseMessage(_internal_mutable_add_block_packet(), ptr); CHK_(ptr); } else goto handle_unusual; continue; // .proto.remove_block remove_block_packet = 12; case 12: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 98)) { ptr = ctx->ParseMessage(_internal_mutable_remove_block_packet(), ptr); CHK_(ptr); } else goto handle_unusual; continue; // .proto.server_message server_message_packet = 13; case 13: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 106)) { ptr = ctx->ParseMessage(_internal_mutable_server_message_packet(), ptr); CHK_(ptr); } else goto handle_unusual; continue; // .proto.item_swap item_swap_packet = 14; case 14: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 114)) { ptr = ctx->ParseMessage(_internal_mutable_item_swap_packet(), ptr); CHK_(ptr); } else goto handle_unusual; continue; // .proto.item_update item_update_packet = 15; case 15: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 122)) { ptr = ctx->ParseMessage(_internal_mutable_item_update_packet(), ptr); CHK_(ptr); } else goto handle_unusual; continue; // .proto.item_use item_use_packet = 16; case 16: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 130)) { ptr = ctx->ParseMessage(_internal_mutable_item_use_packet(), 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_ } uint8_t* packet::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.packet) uint32_t cached_has_bits = 0; (void) cached_has_bits; // .proto.auth auth_packet = 1; if (_internal_has_auth_packet()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, _Internal::auth_packet(this), _Internal::auth_packet(this).GetCachedSize(), target, stream); } // .proto.init init_packet = 2; if (_internal_has_init_packet()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(2, _Internal::init_packet(this), _Internal::init_packet(this).GetCachedSize(), target, stream); } // .proto.move move_packet = 3; if (_internal_has_move_packet()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(3, _Internal::move_packet(this), _Internal::move_packet(this).GetCachedSize(), target, stream); } // .proto.animate_update animate_update_packet = 4; if (_internal_has_animate_update_packet()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(4, _Internal::animate_update_packet(this), _Internal::animate_update_packet(this).GetCachedSize(), target, stream); } // .proto.remove_entity remove_entity_packet = 5; if (_internal_has_remove_entity_packet()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(5, _Internal::remove_entity_packet(this), _Internal::remove_entity_packet(this).GetCachedSize(), target, stream); } // .proto.say say_packet = 6; if (_internal_has_say_packet()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(6, _Internal::say_packet(this), _Internal::say_packet(this).GetCachedSize(), target, stream); } // .proto.hear_player hear_player_packet = 7; if (_internal_has_hear_player_packet()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(7, _Internal::hear_player_packet(this), _Internal::hear_player_packet(this).GetCachedSize(), target, stream); } // .proto.request_chunk request_chunk_packet = 8; if (_internal_has_request_chunk_packet()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(8, _Internal::request_chunk_packet(this), _Internal::request_chunk_packet(this).GetCachedSize(), target, stream); } // .proto.chunk chunk_packet = 9; if (_internal_has_chunk_packet()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(9, _Internal::chunk_packet(this), _Internal::chunk_packet(this).GetCachedSize(), target, stream); } // .proto.remove_chunk remove_chunk_packet = 10; if (_internal_has_remove_chunk_packet()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(10, _Internal::remove_chunk_packet(this), _Internal::remove_chunk_packet(this).GetCachedSize(), target, stream); } // .proto.add_block add_block_packet = 11; if (_internal_has_add_block_packet()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(11, _Internal::add_block_packet(this), _Internal::add_block_packet(this).GetCachedSize(), target, stream); } // .proto.remove_block remove_block_packet = 12; if (_internal_has_remove_block_packet()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(12, _Internal::remove_block_packet(this), _Internal::remove_block_packet(this).GetCachedSize(), target, stream); } // .proto.server_message server_message_packet = 13; if (_internal_has_server_message_packet()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(13, _Internal::server_message_packet(this), _Internal::server_message_packet(this).GetCachedSize(), target, stream); } // .proto.item_swap item_swap_packet = 14; if (_internal_has_item_swap_packet()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(14, _Internal::item_swap_packet(this), _Internal::item_swap_packet(this).GetCachedSize(), target, stream); } // .proto.item_update item_update_packet = 15; if (_internal_has_item_update_packet()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(15, _Internal::item_update_packet(this), _Internal::item_update_packet(this).GetCachedSize(), target, stream); } // .proto.item_use item_use_packet = 16; if (_internal_has_item_use_packet()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(16, _Internal::item_use_packet(this), _Internal::item_use_packet(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { 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:proto.packet) return target; } size_t packet::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.packet) size_t total_size = 0; uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; switch (contents_case()) { // .proto.auth auth_packet = 1; case kAuthPacket: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *_impl_.contents_.auth_packet_); break; } // .proto.init init_packet = 2; case kInitPacket: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *_impl_.contents_.init_packet_); break; } // .proto.move move_packet = 3; case kMovePacket: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *_impl_.contents_.move_packet_); break; } // .proto.animate_update animate_update_packet = 4; case kAnimateUpdatePacket: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *_impl_.contents_.animate_update_packet_); break; } // .proto.remove_entity remove_entity_packet = 5; case kRemoveEntityPacket: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *_impl_.contents_.remove_entity_packet_); break; } // .proto.say say_packet = 6; case kSayPacket: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *_impl_.contents_.say_packet_); break; } // .proto.hear_player hear_player_packet = 7; case kHearPlayerPacket: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *_impl_.contents_.hear_player_packet_); break; } // .proto.request_chunk request_chunk_packet = 8; case kRequestChunkPacket: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *_impl_.contents_.request_chunk_packet_); break; } // .proto.chunk chunk_packet = 9; case kChunkPacket: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *_impl_.contents_.chunk_packet_); break; } // .proto.remove_chunk remove_chunk_packet = 10; case kRemoveChunkPacket: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *_impl_.contents_.remove_chunk_packet_); break; } // .proto.add_block add_block_packet = 11; case kAddBlockPacket: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *_impl_.contents_.add_block_packet_); break; } // .proto.remove_block remove_block_packet = 12; case kRemoveBlockPacket: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *_impl_.contents_.remove_block_packet_); break; } // .proto.server_message server_message_packet = 13; case kServerMessagePacket: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *_impl_.contents_.server_message_packet_); break; } // .proto.item_swap item_swap_packet = 14; case kItemSwapPacket: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *_impl_.contents_.item_swap_packet_); break; } // .proto.item_use item_use_packet = 16; case kItemUsePacket: { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *_impl_.contents_.item_use_packet_); break; } // .proto.item_update item_update_packet = 15; case kItemUpdatePacket: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *_impl_.contents_.item_update_packet_); break; } case CONTENTS_NOT_SET: { break; } } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData packet::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, packet::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*packet::GetClassData() const { return &_class_data_; } void packet::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:proto.packet) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void) cached_has_bits; switch (from.contents_case()) { case kAuthPacket: { _this->_internal_mutable_auth_packet()->::proto::auth::MergeFrom( from._internal_auth_packet()); break; } case kInitPacket: { _this->_internal_mutable_init_packet()->::proto::init::MergeFrom( from._internal_init_packet()); break; } case kMovePacket: { _this->_internal_mutable_move_packet()->::proto::move::MergeFrom( from._internal_move_packet()); break; } case kAnimateUpdatePacket: { _this->_internal_mutable_animate_update_packet()->::proto::animate_update::MergeFrom( from._internal_animate_update_packet()); break; } case kRemoveEntityPacket: { _this->_internal_mutable_remove_entity_packet()->::proto::remove_entity::MergeFrom( from._internal_remove_entity_packet()); break; } case kSayPacket: { _this->_internal_mutable_say_packet()->::proto::say::MergeFrom( from._internal_say_packet()); break; } case kHearPlayerPacket: { _this->_internal_mutable_hear_player_packet()->::proto::hear_player::MergeFrom( from._internal_hear_player_packet()); break; } case kRequestChunkPacket: { _this->_internal_mutable_request_chunk_packet()->::proto::request_chunk::MergeFrom( from._internal_request_chunk_packet()); break; } case kChunkPacket: { _this->_internal_mutable_chunk_packet()->::proto::chunk::MergeFrom( from._internal_chunk_packet()); break; } case kRemoveChunkPacket: { _this->_internal_mutable_remove_chunk_packet()->::proto::remove_chunk::MergeFrom( from._internal_remove_chunk_packet()); break; } case kAddBlockPacket: { _this->_internal_mutable_add_block_packet()->::proto::add_block::MergeFrom( from._internal_add_block_packet()); break; } case kRemoveBlockPacket: { _this->_internal_mutable_remove_block_packet()->::proto::remove_block::MergeFrom( from._internal_remove_block_packet()); break; } case kServerMessagePacket: { _this->_internal_mutable_server_message_packet()->::proto::server_message::MergeFrom( from._internal_server_message_packet()); break; } case kItemSwapPacket: { _this->_internal_mutable_item_swap_packet()->::proto::item_swap::MergeFrom( from._internal_item_swap_packet()); break; } case kItemUsePacket: { _this->_internal_mutable_item_use_packet()->::proto::item_use::MergeFrom( from._internal_item_use_packet()); break; } case kItemUpdatePacket: { _this->_internal_mutable_item_update_packet()->::proto::item_update::MergeFrom( from._internal_item_update_packet()); break; } case CONTENTS_NOT_SET: { break; } } _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void packet::CopyFrom(const packet& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.packet) if (&from == this) return; Clear(); MergeFrom(from); } bool packet::IsInitialized() const { return true; } void packet::InternalSwap(packet* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_.contents_, other->_impl_.contents_); swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); } ::PROTOBUF_NAMESPACE_ID::Metadata packet::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_net_2eproto_getter, &descriptor_table_net_2eproto_once, file_level_metadata_net_2eproto[25]); } // @@protoc_insertion_point(namespace_scope) } // namespace proto PROTOBUF_NAMESPACE_OPEN template<> PROTOBUF_NOINLINE ::proto::angles* Arena::CreateMaybeMessage< ::proto::angles >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::angles >(arena); } template<> PROTOBUF_NOINLINE ::proto::coords* Arena::CreateMaybeMessage< ::proto::coords >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::coords >(arena); } template<> PROTOBUF_NOINLINE ::proto::vec3* Arena::CreateMaybeMessage< ::proto::vec3 >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::vec3 >(arena); } template<> PROTOBUF_NOINLINE ::proto::ivec3* Arena::CreateMaybeMessage< ::proto::ivec3 >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::ivec3 >(arena); } template<> PROTOBUF_NOINLINE ::proto::entity* Arena::CreateMaybeMessage< ::proto::entity >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::entity >(arena); } template<> PROTOBUF_NOINLINE ::proto::animate* Arena::CreateMaybeMessage< ::proto::animate >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::animate >(arena); } template<> PROTOBUF_NOINLINE ::proto::item* Arena::CreateMaybeMessage< ::proto::item >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::item >(arena); } template<> PROTOBUF_NOINLINE ::proto::item_array* Arena::CreateMaybeMessage< ::proto::item_array >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::item_array >(arena); } template<> PROTOBUF_NOINLINE ::proto::player* Arena::CreateMaybeMessage< ::proto::player >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::player >(arena); } template<> PROTOBUF_NOINLINE ::proto::auth* Arena::CreateMaybeMessage< ::proto::auth >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::auth >(arena); } template<> PROTOBUF_NOINLINE ::proto::init* Arena::CreateMaybeMessage< ::proto::init >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::init >(arena); } template<> PROTOBUF_NOINLINE ::proto::move* Arena::CreateMaybeMessage< ::proto::move >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::move >(arena); } template<> PROTOBUF_NOINLINE ::proto::remove_entity* Arena::CreateMaybeMessage< ::proto::remove_entity >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::remove_entity >(arena); } template<> PROTOBUF_NOINLINE ::proto::say* Arena::CreateMaybeMessage< ::proto::say >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::say >(arena); } template<> PROTOBUF_NOINLINE ::proto::hear_player* Arena::CreateMaybeMessage< ::proto::hear_player >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::hear_player >(arena); } template<> PROTOBUF_NOINLINE ::proto::request_chunk* Arena::CreateMaybeMessage< ::proto::request_chunk >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::request_chunk >(arena); } template<> PROTOBUF_NOINLINE ::proto::remove_chunk* Arena::CreateMaybeMessage< ::proto::remove_chunk >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::remove_chunk >(arena); } template<> PROTOBUF_NOINLINE ::proto::chunk* Arena::CreateMaybeMessage< ::proto::chunk >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::chunk >(arena); } template<> PROTOBUF_NOINLINE ::proto::add_block* Arena::CreateMaybeMessage< ::proto::add_block >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::add_block >(arena); } template<> PROTOBUF_NOINLINE ::proto::remove_block* Arena::CreateMaybeMessage< ::proto::remove_block >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::remove_block >(arena); } template<> PROTOBUF_NOINLINE ::proto::server_message* Arena::CreateMaybeMessage< ::proto::server_message >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::server_message >(arena); } template<> PROTOBUF_NOINLINE ::proto::item_swap* Arena::CreateMaybeMessage< ::proto::item_swap >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::item_swap >(arena); } template<> PROTOBUF_NOINLINE ::proto::item_use* Arena::CreateMaybeMessage< ::proto::item_use >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::item_use >(arena); } template<> PROTOBUF_NOINLINE ::proto::item_update* Arena::CreateMaybeMessage< ::proto::item_update >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::item_update >(arena); } template<> PROTOBUF_NOINLINE ::proto::animate_update* Arena::CreateMaybeMessage< ::proto::animate_update >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::animate_update >(arena); } template<> PROTOBUF_NOINLINE ::proto::packet* Arena::CreateMaybeMessage< ::proto::packet >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::packet >(arena); } PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) #include