// Generated by the protocol buffer compiler. DO NOT EDIT! // source: wj_lidar_conf.proto #include "wj_lidar_conf.pb.h" #include #include #include #include #include #include #include #include // @@protoc_insertion_point(includes) #include extern PROTOBUF_INTERNAL_EXPORT_wj_5flidar_5fconf_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Region_wj_5flidar_5fconf_2eproto; extern PROTOBUF_INTERNAL_EXPORT_wj_5flidar_5fconf_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Transform2d_wj_5flidar_5fconf_2eproto; extern PROTOBUF_INTERNAL_EXPORT_wj_5flidar_5fconf_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_netConfig_wj_5flidar_5fconf_2eproto; extern PROTOBUF_INTERNAL_EXPORT_wj_5flidar_5fconf_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_scanLimit_wj_5flidar_5fconf_2eproto; extern PROTOBUF_INTERNAL_EXPORT_wj_5flidar_5fconf_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_wjLidarParams_wj_5flidar_5fconf_2eproto; namespace wj { class wjManagerParamsDefaultTypeInternal { public: ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _wjManagerParams_default_instance_; class RegionDefaultTypeInternal { public: ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _Region_default_instance_; class wjLidarParamsDefaultTypeInternal { public: ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _wjLidarParams_default_instance_; class netConfigDefaultTypeInternal { public: ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _netConfig_default_instance_; class Transform2dDefaultTypeInternal { public: ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _Transform2d_default_instance_; class scanLimitDefaultTypeInternal { public: ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _scanLimit_default_instance_; } // namespace wj static void InitDefaultsscc_info_Region_wj_5flidar_5fconf_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { void* ptr = &::wj::_Region_default_instance_; new (ptr) ::wj::Region(); ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } ::wj::Region::InitAsDefaultInstance(); } ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Region_wj_5flidar_5fconf_2eproto = {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_Region_wj_5flidar_5fconf_2eproto}, {}}; static void InitDefaultsscc_info_Transform2d_wj_5flidar_5fconf_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { void* ptr = &::wj::_Transform2d_default_instance_; new (ptr) ::wj::Transform2d(); ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } ::wj::Transform2d::InitAsDefaultInstance(); } ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Transform2d_wj_5flidar_5fconf_2eproto = {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_Transform2d_wj_5flidar_5fconf_2eproto}, {}}; static void InitDefaultsscc_info_netConfig_wj_5flidar_5fconf_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { void* ptr = &::wj::_netConfig_default_instance_; new (ptr) ::wj::netConfig(); ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } ::wj::netConfig::InitAsDefaultInstance(); } ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_netConfig_wj_5flidar_5fconf_2eproto = {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_netConfig_wj_5flidar_5fconf_2eproto}, {}}; static void InitDefaultsscc_info_scanLimit_wj_5flidar_5fconf_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { void* ptr = &::wj::_scanLimit_default_instance_; new (ptr) ::wj::scanLimit(); ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } ::wj::scanLimit::InitAsDefaultInstance(); } ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_scanLimit_wj_5flidar_5fconf_2eproto = {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_scanLimit_wj_5flidar_5fconf_2eproto}, {}}; static void InitDefaultsscc_info_wjLidarParams_wj_5flidar_5fconf_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { void* ptr = &::wj::_wjLidarParams_default_instance_; new (ptr) ::wj::wjLidarParams(); ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } ::wj::wjLidarParams::InitAsDefaultInstance(); } ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_wjLidarParams_wj_5flidar_5fconf_2eproto = {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 3, 0, InitDefaultsscc_info_wjLidarParams_wj_5flidar_5fconf_2eproto}, { &scc_info_netConfig_wj_5flidar_5fconf_2eproto.base, &scc_info_Transform2d_wj_5flidar_5fconf_2eproto.base, &scc_info_scanLimit_wj_5flidar_5fconf_2eproto.base,}}; static void InitDefaultsscc_info_wjManagerParams_wj_5flidar_5fconf_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; ::wj::wjManagerParams::_i_give_permission_to_break_this_code_default_plc_ip_address_.DefaultConstruct(); *::wj::wjManagerParams::_i_give_permission_to_break_this_code_default_plc_ip_address_.get_mutable() = std::string("192.168.0.1", 11); ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyString( ::wj::wjManagerParams::_i_give_permission_to_break_this_code_default_plc_ip_address_.get_mutable()); { void* ptr = &::wj::_wjManagerParams_default_instance_; new (ptr) ::wj::wjManagerParams(); ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } ::wj::wjManagerParams::InitAsDefaultInstance(); } ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_wjManagerParams_wj_5flidar_5fconf_2eproto = {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, 0, InitDefaultsscc_info_wjManagerParams_wj_5flidar_5fconf_2eproto}, { &scc_info_wjLidarParams_wj_5flidar_5fconf_2eproto.base, &scc_info_Region_wj_5flidar_5fconf_2eproto.base,}}; static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_wj_5flidar_5fconf_2eproto[6]; static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_wj_5flidar_5fconf_2eproto = nullptr; static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_wj_5flidar_5fconf_2eproto = nullptr; const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_wj_5flidar_5fconf_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { PROTOBUF_FIELD_OFFSET(::wj::wjManagerParams, _has_bits_), PROTOBUF_FIELD_OFFSET(::wj::wjManagerParams, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::wj::wjManagerParams, wj_lidar_), PROTOBUF_FIELD_OFFSET(::wj::wjManagerParams, regions_), PROTOBUF_FIELD_OFFSET(::wj::wjManagerParams, fence_data_path_), PROTOBUF_FIELD_OFFSET(::wj::wjManagerParams, fence_log_path_), PROTOBUF_FIELD_OFFSET(::wj::wjManagerParams, plc_ip_address_), ~0u, ~0u, 0, 1, 2, PROTOBUF_FIELD_OFFSET(::wj::Region, _has_bits_), PROTOBUF_FIELD_OFFSET(::wj::Region, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::wj::Region, minx_), PROTOBUF_FIELD_OFFSET(::wj::Region, maxx_), PROTOBUF_FIELD_OFFSET(::wj::Region, miny_), PROTOBUF_FIELD_OFFSET(::wj::Region, maxy_), 0, 1, 2, 3, PROTOBUF_FIELD_OFFSET(::wj::wjLidarParams, _has_bits_), PROTOBUF_FIELD_OFFSET(::wj::wjLidarParams, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::wj::wjLidarParams, angle_min_), PROTOBUF_FIELD_OFFSET(::wj::wjLidarParams, angle_max_), PROTOBUF_FIELD_OFFSET(::wj::wjLidarParams, angle_increment_), PROTOBUF_FIELD_OFFSET(::wj::wjLidarParams, time_increment_), PROTOBUF_FIELD_OFFSET(::wj::wjLidarParams, range_min_), PROTOBUF_FIELD_OFFSET(::wj::wjLidarParams, range_max_), PROTOBUF_FIELD_OFFSET(::wj::wjLidarParams, net_config_), PROTOBUF_FIELD_OFFSET(::wj::wjLidarParams, transform_), PROTOBUF_FIELD_OFFSET(::wj::wjLidarParams, scan_limit_), 5, 6, 7, 8, 3, 4, 0, 1, 2, PROTOBUF_FIELD_OFFSET(::wj::netConfig, _has_bits_), PROTOBUF_FIELD_OFFSET(::wj::netConfig, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::wj::netConfig, ip_address_), PROTOBUF_FIELD_OFFSET(::wj::netConfig, port_), 0, 1, PROTOBUF_FIELD_OFFSET(::wj::Transform2d, _has_bits_), PROTOBUF_FIELD_OFFSET(::wj::Transform2d, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::wj::Transform2d, m00_), PROTOBUF_FIELD_OFFSET(::wj::Transform2d, m01_), PROTOBUF_FIELD_OFFSET(::wj::Transform2d, m02_), PROTOBUF_FIELD_OFFSET(::wj::Transform2d, m10_), PROTOBUF_FIELD_OFFSET(::wj::Transform2d, m11_), PROTOBUF_FIELD_OFFSET(::wj::Transform2d, m12_), 4, 0, 1, 2, 5, 3, PROTOBUF_FIELD_OFFSET(::wj::scanLimit, _has_bits_), PROTOBUF_FIELD_OFFSET(::wj::scanLimit, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::wj::scanLimit, dist_limit_), PROTOBUF_FIELD_OFFSET(::wj::scanLimit, minx_), PROTOBUF_FIELD_OFFSET(::wj::scanLimit, maxx_), PROTOBUF_FIELD_OFFSET(::wj::scanLimit, miny_), PROTOBUF_FIELD_OFFSET(::wj::scanLimit, maxy_), 1, 2, 3, 4, 0, }; static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, 10, sizeof(::wj::wjManagerParams)}, { 15, 24, sizeof(::wj::Region)}, { 28, 42, sizeof(::wj::wjLidarParams)}, { 51, 58, sizeof(::wj::netConfig)}, { 60, 71, sizeof(::wj::Transform2d)}, { 77, 87, sizeof(::wj::scanLimit)}, }; static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { reinterpret_cast(&::wj::_wjManagerParams_default_instance_), reinterpret_cast(&::wj::_Region_default_instance_), reinterpret_cast(&::wj::_wjLidarParams_default_instance_), reinterpret_cast(&::wj::_netConfig_default_instance_), reinterpret_cast(&::wj::_Transform2d_default_instance_), reinterpret_cast(&::wj::_scanLimit_default_instance_), }; const char descriptor_table_protodef_wj_5flidar_5fconf_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = "\n\023wj_lidar_conf.proto\022\002wj\"\255\001\n\017wjManagerP" "arams\022#\n\010wj_lidar\030\001 \003(\0132\021.wj.wjLidarPara" "ms\022\033\n\007regions\030\002 \003(\0132\n.wj.Region\022\031\n\017fence" "_data_path\030\003 \001(\t:\000\022\030\n\016fence_log_path\030\004 \001" "(\t:\000\022#\n\016plc_ip_address\030\005 \001(\t:\013192.168.0." "1\"@\n\006Region\022\014\n\004minx\030\001 \002(\002\022\014\n\004maxx\030\002 \002(\002\022" "\014\n\004miny\030\003 \002(\002\022\014\n\004maxy\030\004 \002(\002\"\246\002\n\rwjLidarP" "arams\022\035\n\tangle_min\030\001 \001(\002:\n-2.3561945\022\034\n\t" "angle_max\030\002 \001(\002:\t2.3561945\022 \n\017angle_incr" "ement\030\003 \001(\002:\0070.00582\022\037\n\016time_increment\030\004" " \001(\002:\0076.2e-05\022\024\n\trange_min\030\005 \001(\005:\0010\022\025\n\tr" "ange_max\030\006 \001(\005:\00230\022!\n\nnet_config\030\007 \002(\0132\r" ".wj.netConfig\022\"\n\ttransform\030\010 \002(\0132\017.wj.Tr" "ansform2d\022!\n\nscan_limit\030\t \002(\0132\r.wj.scanL" "imit\"5\n\tnetConfig\022\024\n\nip_address\030\001 \001(\t:\000\022" "\022\n\004port\030\002 \001(\005:\0048000\"m\n\013Transform2d\022\016\n\003m0" "0\030\001 \001(\002:\0011\022\016\n\003m01\030\002 \001(\002:\0010\022\016\n\003m02\030\003 \001(\002:" "\0010\022\016\n\003m10\030\004 \001(\002:\0010\022\016\n\003m11\030\005 \001(\002:\0011\022\016\n\003m1" "2\030\006 \001(\002:\0010\"o\n\tscanLimit\022\025\n\ndist_limit\030\001 " "\001(\002:\0018\022\020\n\004minx\030\002 \001(\002:\002-6\022\022\n\004maxx\030\003 \001(\002:\004" "-0.2\022\022\n\004miny\030\004 \001(\002:\004-3.5\022\021\n\004maxy\030\005 \001(\002:\003" "3.5" ; static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_wj_5flidar_5fconf_2eproto_deps[1] = { }; static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_wj_5flidar_5fconf_2eproto_sccs[6] = { &scc_info_Region_wj_5flidar_5fconf_2eproto.base, &scc_info_Transform2d_wj_5flidar_5fconf_2eproto.base, &scc_info_netConfig_wj_5flidar_5fconf_2eproto.base, &scc_info_scanLimit_wj_5flidar_5fconf_2eproto.base, &scc_info_wjLidarParams_wj_5flidar_5fconf_2eproto.base, &scc_info_wjManagerParams_wj_5flidar_5fconf_2eproto.base, }; static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_wj_5flidar_5fconf_2eproto_once; const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_wj_5flidar_5fconf_2eproto = { false, false, descriptor_table_protodef_wj_5flidar_5fconf_2eproto, "wj_lidar_conf.proto", 843, &descriptor_table_wj_5flidar_5fconf_2eproto_once, descriptor_table_wj_5flidar_5fconf_2eproto_sccs, descriptor_table_wj_5flidar_5fconf_2eproto_deps, 6, 0, schemas, file_default_instances, TableStruct_wj_5flidar_5fconf_2eproto::offsets, file_level_metadata_wj_5flidar_5fconf_2eproto, 6, file_level_enum_descriptors_wj_5flidar_5fconf_2eproto, file_level_service_descriptors_wj_5flidar_5fconf_2eproto, }; // Force running AddDescriptors() at dynamic initialization time. static bool dynamic_init_dummy_wj_5flidar_5fconf_2eproto = (static_cast(::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_wj_5flidar_5fconf_2eproto)), true); namespace wj { // =================================================================== void wjManagerParams::InitAsDefaultInstance() { } class wjManagerParams::_Internal { public: using HasBits = decltype(std::declval()._has_bits_); static void set_has_fence_data_path(HasBits* has_bits) { (*has_bits)[0] |= 1u; } static void set_has_fence_log_path(HasBits* has_bits) { (*has_bits)[0] |= 2u; } static void set_has_plc_ip_address(HasBits* has_bits) { (*has_bits)[0] |= 4u; } }; ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed wjManagerParams::_i_give_permission_to_break_this_code_default_plc_ip_address_; wjManagerParams::wjManagerParams(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena), wj_lidar_(arena), regions_(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:wj.wjManagerParams) } wjManagerParams::wjManagerParams(const wjManagerParams& from) : ::PROTOBUF_NAMESPACE_ID::Message(), _has_bits_(from._has_bits_), wj_lidar_(from.wj_lidar_), regions_(from.regions_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); fence_data_path_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_fence_data_path()) { fence_data_path_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_fence_data_path(), GetArena()); } fence_log_path_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_fence_log_path()) { fence_log_path_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_fence_log_path(), GetArena()); } plc_ip_address_.UnsafeSetDefault(&::wj::wjManagerParams::_i_give_permission_to_break_this_code_default_plc_ip_address_.get()); if (from._internal_has_plc_ip_address()) { plc_ip_address_.Set(&::wj::wjManagerParams::_i_give_permission_to_break_this_code_default_plc_ip_address_.get(), from._internal_plc_ip_address(), GetArena()); } // @@protoc_insertion_point(copy_constructor:wj.wjManagerParams) } void wjManagerParams::SharedCtor() { ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_wjManagerParams_wj_5flidar_5fconf_2eproto.base); fence_data_path_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); fence_log_path_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); plc_ip_address_.UnsafeSetDefault(&::wj::wjManagerParams::_i_give_permission_to_break_this_code_default_plc_ip_address_.get()); } wjManagerParams::~wjManagerParams() { // @@protoc_insertion_point(destructor:wj.wjManagerParams) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void wjManagerParams::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); fence_data_path_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); fence_log_path_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); plc_ip_address_.DestroyNoArena(&::wj::wjManagerParams::_i_give_permission_to_break_this_code_default_plc_ip_address_.get()); } void wjManagerParams::ArenaDtor(void* object) { wjManagerParams* _this = reinterpret_cast< wjManagerParams* >(object); (void)_this; } void wjManagerParams::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } void wjManagerParams::SetCachedSize(int size) const { _cached_size_.Set(size); } const wjManagerParams& wjManagerParams::default_instance() { ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_wjManagerParams_wj_5flidar_5fconf_2eproto.base); return *internal_default_instance(); } void wjManagerParams::Clear() { // @@protoc_insertion_point(message_clear_start:wj.wjManagerParams) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; wj_lidar_.Clear(); regions_.Clear(); cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000007u) { if (cached_has_bits & 0x00000001u) { fence_data_path_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { fence_log_path_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000004u) { plc_ip_address_.ClearToDefault(&::wj::wjManagerParams::_i_give_permission_to_break_this_code_default_plc_ip_address_.get(), GetArena()); } } _has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* wjManagerParams::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure _Internal::HasBits has_bits{}; ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { // repeated .wj.wjLidarParams wj_lidar = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { ptr -= 1; do { ptr += 1; ptr = ctx->ParseMessage(_internal_add_wj_lidar(), ptr); CHK_(ptr); if (!ctx->DataAvailable(ptr)) break; } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); } else goto handle_unusual; continue; // repeated .wj.Region regions = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { ptr -= 1; do { ptr += 1; ptr = ctx->ParseMessage(_internal_add_regions(), ptr); CHK_(ptr); if (!ctx->DataAvailable(ptr)) break; } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); } else goto handle_unusual; continue; // optional string fence_data_path = 3 [default = ""]; case 3: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { auto str = _internal_mutable_fence_data_path(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "wj.wjManagerParams.fence_data_path"); #endif // !NDEBUG CHK_(ptr); } else goto handle_unusual; continue; // optional string fence_log_path = 4 [default = ""]; case 4: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { auto str = _internal_mutable_fence_log_path(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "wj.wjManagerParams.fence_log_path"); #endif // !NDEBUG CHK_(ptr); } else goto handle_unusual; continue; // optional string plc_ip_address = 5 [default = "192.168.0.1"]; case 5: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { auto str = _internal_mutable_plc_ip_address(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "wj.wjManagerParams.plc_ip_address"); #endif // !NDEBUG CHK_(ptr); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* wjManagerParams::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:wj.wjManagerParams) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; // repeated .wj.wjLidarParams wj_lidar = 1; for (unsigned int i = 0, n = static_cast(this->_internal_wj_lidar_size()); i < n; i++) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, this->_internal_wj_lidar(i), target, stream); } // repeated .wj.Region regions = 2; for (unsigned int i = 0, n = static_cast(this->_internal_regions_size()); i < n; i++) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(2, this->_internal_regions(i), target, stream); } cached_has_bits = _has_bits_[0]; // optional string fence_data_path = 3 [default = ""]; if (cached_has_bits & 0x00000001u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_fence_data_path().data(), static_cast(this->_internal_fence_data_path().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "wj.wjManagerParams.fence_data_path"); target = stream->WriteStringMaybeAliased( 3, this->_internal_fence_data_path(), target); } // optional string fence_log_path = 4 [default = ""]; if (cached_has_bits & 0x00000002u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_fence_log_path().data(), static_cast(this->_internal_fence_log_path().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "wj.wjManagerParams.fence_log_path"); target = stream->WriteStringMaybeAliased( 4, this->_internal_fence_log_path(), target); } // optional string plc_ip_address = 5 [default = "192.168.0.1"]; if (cached_has_bits & 0x00000004u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_plc_ip_address().data(), static_cast(this->_internal_plc_ip_address().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "wj.wjManagerParams.plc_ip_address"); target = stream->WriteStringMaybeAliased( 5, this->_internal_plc_ip_address(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::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:wj.wjManagerParams) return target; } size_t wjManagerParams::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:wj.wjManagerParams) size_t total_size = 0; ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .wj.wjLidarParams wj_lidar = 1; total_size += 1UL * this->_internal_wj_lidar_size(); for (const auto& msg : this->wj_lidar_) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } // repeated .wj.Region regions = 2; total_size += 1UL * this->_internal_regions_size(); for (const auto& msg : this->regions_) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000007u) { // optional string fence_data_path = 3 [default = ""]; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_fence_data_path()); } // optional string fence_log_path = 4 [default = ""]; if (cached_has_bits & 0x00000002u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_fence_log_path()); } // optional string plc_ip_address = 5 [default = "192.168.0.1"]; if (cached_has_bits & 0x00000004u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_plc_ip_address()); } } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void wjManagerParams::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:wj.wjManagerParams) GOOGLE_DCHECK_NE(&from, this); const wjManagerParams* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:wj.wjManagerParams) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:wj.wjManagerParams) MergeFrom(*source); } } void wjManagerParams::MergeFrom(const wjManagerParams& from) { // @@protoc_insertion_point(class_specific_merge_from_start:wj.wjManagerParams) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; wj_lidar_.MergeFrom(from.wj_lidar_); regions_.MergeFrom(from.regions_); cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 0x00000007u) { if (cached_has_bits & 0x00000001u) { _internal_set_fence_data_path(from._internal_fence_data_path()); } if (cached_has_bits & 0x00000002u) { _internal_set_fence_log_path(from._internal_fence_log_path()); } if (cached_has_bits & 0x00000004u) { _internal_set_plc_ip_address(from._internal_plc_ip_address()); } } } void wjManagerParams::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:wj.wjManagerParams) if (&from == this) return; Clear(); MergeFrom(from); } void wjManagerParams::CopyFrom(const wjManagerParams& from) { // @@protoc_insertion_point(class_specific_copy_from_start:wj.wjManagerParams) if (&from == this) return; Clear(); MergeFrom(from); } bool wjManagerParams::IsInitialized() const { if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(wj_lidar_)) return false; if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(regions_)) return false; return true; } void wjManagerParams::InternalSwap(wjManagerParams* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); wj_lidar_.InternalSwap(&other->wj_lidar_); regions_.InternalSwap(&other->regions_); fence_data_path_.Swap(&other->fence_data_path_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); fence_log_path_.Swap(&other->fence_log_path_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); plc_ip_address_.Swap(&other->plc_ip_address_, &::wj::wjManagerParams::_i_give_permission_to_break_this_code_default_plc_ip_address_.get(), GetArena()); } ::PROTOBUF_NAMESPACE_ID::Metadata wjManagerParams::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== void Region::InitAsDefaultInstance() { } class Region::_Internal { public: using HasBits = decltype(std::declval()._has_bits_); static void set_has_minx(HasBits* has_bits) { (*has_bits)[0] |= 1u; } static void set_has_maxx(HasBits* has_bits) { (*has_bits)[0] |= 2u; } static void set_has_miny(HasBits* has_bits) { (*has_bits)[0] |= 4u; } static void set_has_maxy(HasBits* has_bits) { (*has_bits)[0] |= 8u; } static bool MissingRequiredFields(const HasBits& has_bits) { return ((has_bits[0] & 0x0000000f) ^ 0x0000000f) != 0; } }; Region::Region(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:wj.Region) } Region::Region(const Region& from) : ::PROTOBUF_NAMESPACE_ID::Message(), _has_bits_(from._has_bits_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::memcpy(&minx_, &from.minx_, static_cast(reinterpret_cast(&maxy_) - reinterpret_cast(&minx_)) + sizeof(maxy_)); // @@protoc_insertion_point(copy_constructor:wj.Region) } void Region::SharedCtor() { ::memset(&minx_, 0, static_cast( reinterpret_cast(&maxy_) - reinterpret_cast(&minx_)) + sizeof(maxy_)); } Region::~Region() { // @@protoc_insertion_point(destructor:wj.Region) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void Region::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); } void Region::ArenaDtor(void* object) { Region* _this = reinterpret_cast< Region* >(object); (void)_this; } void Region::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } void Region::SetCachedSize(int size) const { _cached_size_.Set(size); } const Region& Region::default_instance() { ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Region_wj_5flidar_5fconf_2eproto.base); return *internal_default_instance(); } void Region::Clear() { // @@protoc_insertion_point(message_clear_start:wj.Region) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x0000000fu) { ::memset(&minx_, 0, static_cast( reinterpret_cast(&maxy_) - reinterpret_cast(&minx_)) + sizeof(maxy_)); } _has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* Region::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure _Internal::HasBits has_bits{}; ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { // required float minx = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 13)) { _Internal::set_has_minx(&has_bits); minx_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(float); } else goto handle_unusual; continue; // required float maxx = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 21)) { _Internal::set_has_maxx(&has_bits); maxx_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(float); } else goto handle_unusual; continue; // required float miny = 3; case 3: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 29)) { _Internal::set_has_miny(&has_bits); miny_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(float); } else goto handle_unusual; continue; // required float maxy = 4; case 4: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 37)) { _Internal::set_has_maxy(&has_bits); maxy_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(float); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* Region::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:wj.Region) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required float minx = 1; if (cached_has_bits & 0x00000001u) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(1, this->_internal_minx(), target); } // required float maxx = 2; if (cached_has_bits & 0x00000002u) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(2, this->_internal_maxx(), target); } // required float miny = 3; if (cached_has_bits & 0x00000004u) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(3, this->_internal_miny(), target); } // required float maxy = 4; if (cached_has_bits & 0x00000008u) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(4, this->_internal_maxy(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::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:wj.Region) return target; } size_t Region::RequiredFieldsByteSizeFallback() const { // @@protoc_insertion_point(required_fields_byte_size_fallback_start:wj.Region) size_t total_size = 0; if (_internal_has_minx()) { // required float minx = 1; total_size += 1 + 4; } if (_internal_has_maxx()) { // required float maxx = 2; total_size += 1 + 4; } if (_internal_has_miny()) { // required float miny = 3; total_size += 1 + 4; } if (_internal_has_maxy()) { // required float maxy = 4; total_size += 1 + 4; } return total_size; } size_t Region::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:wj.Region) size_t total_size = 0; if (((_has_bits_[0] & 0x0000000f) ^ 0x0000000f) == 0) { // All required fields are present. // required float minx = 1; total_size += 1 + 4; // required float maxx = 2; total_size += 1 + 4; // required float miny = 3; total_size += 1 + 4; // required float maxy = 4; total_size += 1 + 4; } else { total_size += RequiredFieldsByteSizeFallback(); } ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void Region::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:wj.Region) GOOGLE_DCHECK_NE(&from, this); const Region* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:wj.Region) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:wj.Region) MergeFrom(*source); } } void Region::MergeFrom(const Region& from) { // @@protoc_insertion_point(class_specific_merge_from_start:wj.Region) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 0x0000000fu) { if (cached_has_bits & 0x00000001u) { minx_ = from.minx_; } if (cached_has_bits & 0x00000002u) { maxx_ = from.maxx_; } if (cached_has_bits & 0x00000004u) { miny_ = from.miny_; } if (cached_has_bits & 0x00000008u) { maxy_ = from.maxy_; } _has_bits_[0] |= cached_has_bits; } } void Region::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:wj.Region) if (&from == this) return; Clear(); MergeFrom(from); } void Region::CopyFrom(const Region& from) { // @@protoc_insertion_point(class_specific_copy_from_start:wj.Region) if (&from == this) return; Clear(); MergeFrom(from); } bool Region::IsInitialized() const { if (_Internal::MissingRequiredFields(_has_bits_)) return false; return true; } void Region::InternalSwap(Region* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(Region, maxy_) + sizeof(Region::maxy_) - PROTOBUF_FIELD_OFFSET(Region, minx_)>( reinterpret_cast(&minx_), reinterpret_cast(&other->minx_)); } ::PROTOBUF_NAMESPACE_ID::Metadata Region::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== void wjLidarParams::InitAsDefaultInstance() { ::wj::_wjLidarParams_default_instance_._instance.get_mutable()->net_config_ = const_cast< ::wj::netConfig*>( ::wj::netConfig::internal_default_instance()); ::wj::_wjLidarParams_default_instance_._instance.get_mutable()->transform_ = const_cast< ::wj::Transform2d*>( ::wj::Transform2d::internal_default_instance()); ::wj::_wjLidarParams_default_instance_._instance.get_mutable()->scan_limit_ = const_cast< ::wj::scanLimit*>( ::wj::scanLimit::internal_default_instance()); } class wjLidarParams::_Internal { public: using HasBits = decltype(std::declval()._has_bits_); static void set_has_angle_min(HasBits* has_bits) { (*has_bits)[0] |= 32u; } static void set_has_angle_max(HasBits* has_bits) { (*has_bits)[0] |= 64u; } static void set_has_angle_increment(HasBits* has_bits) { (*has_bits)[0] |= 128u; } static void set_has_time_increment(HasBits* has_bits) { (*has_bits)[0] |= 256u; } static void set_has_range_min(HasBits* has_bits) { (*has_bits)[0] |= 8u; } static void set_has_range_max(HasBits* has_bits) { (*has_bits)[0] |= 16u; } static const ::wj::netConfig& net_config(const wjLidarParams* msg); static void set_has_net_config(HasBits* has_bits) { (*has_bits)[0] |= 1u; } static const ::wj::Transform2d& transform(const wjLidarParams* msg); static void set_has_transform(HasBits* has_bits) { (*has_bits)[0] |= 2u; } static const ::wj::scanLimit& scan_limit(const wjLidarParams* msg); static void set_has_scan_limit(HasBits* has_bits) { (*has_bits)[0] |= 4u; } static bool MissingRequiredFields(const HasBits& has_bits) { return ((has_bits[0] & 0x00000007) ^ 0x00000007) != 0; } }; const ::wj::netConfig& wjLidarParams::_Internal::net_config(const wjLidarParams* msg) { return *msg->net_config_; } const ::wj::Transform2d& wjLidarParams::_Internal::transform(const wjLidarParams* msg) { return *msg->transform_; } const ::wj::scanLimit& wjLidarParams::_Internal::scan_limit(const wjLidarParams* msg) { return *msg->scan_limit_; } wjLidarParams::wjLidarParams(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:wj.wjLidarParams) } wjLidarParams::wjLidarParams(const wjLidarParams& from) : ::PROTOBUF_NAMESPACE_ID::Message(), _has_bits_(from._has_bits_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); if (from._internal_has_net_config()) { net_config_ = new ::wj::netConfig(*from.net_config_); } else { net_config_ = nullptr; } if (from._internal_has_transform()) { transform_ = new ::wj::Transform2d(*from.transform_); } else { transform_ = nullptr; } if (from._internal_has_scan_limit()) { scan_limit_ = new ::wj::scanLimit(*from.scan_limit_); } else { scan_limit_ = nullptr; } ::memcpy(&range_min_, &from.range_min_, static_cast(reinterpret_cast(&time_increment_) - reinterpret_cast(&range_min_)) + sizeof(time_increment_)); // @@protoc_insertion_point(copy_constructor:wj.wjLidarParams) } void wjLidarParams::SharedCtor() { ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_wjLidarParams_wj_5flidar_5fconf_2eproto.base); ::memset(&net_config_, 0, static_cast( reinterpret_cast(&range_min_) - reinterpret_cast(&net_config_)) + sizeof(range_min_)); range_max_ = 30; angle_min_ = -2.3561945f; angle_max_ = 2.3561945f; angle_increment_ = 0.00582f; time_increment_ = 6.2e-05f; } wjLidarParams::~wjLidarParams() { // @@protoc_insertion_point(destructor:wj.wjLidarParams) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void wjLidarParams::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); if (this != internal_default_instance()) delete net_config_; if (this != internal_default_instance()) delete transform_; if (this != internal_default_instance()) delete scan_limit_; } void wjLidarParams::ArenaDtor(void* object) { wjLidarParams* _this = reinterpret_cast< wjLidarParams* >(object); (void)_this; } void wjLidarParams::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } void wjLidarParams::SetCachedSize(int size) const { _cached_size_.Set(size); } const wjLidarParams& wjLidarParams::default_instance() { ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_wjLidarParams_wj_5flidar_5fconf_2eproto.base); return *internal_default_instance(); } void wjLidarParams::Clear() { // @@protoc_insertion_point(message_clear_start:wj.wjLidarParams) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000007u) { if (cached_has_bits & 0x00000001u) { GOOGLE_DCHECK(net_config_ != nullptr); net_config_->Clear(); } if (cached_has_bits & 0x00000002u) { GOOGLE_DCHECK(transform_ != nullptr); transform_->Clear(); } if (cached_has_bits & 0x00000004u) { GOOGLE_DCHECK(scan_limit_ != nullptr); scan_limit_->Clear(); } } if (cached_has_bits & 0x000000f8u) { range_min_ = 0; range_max_ = 30; angle_min_ = -2.3561945f; angle_max_ = 2.3561945f; angle_increment_ = 0.00582f; } time_increment_ = 6.2e-05f; _has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* wjLidarParams::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure _Internal::HasBits has_bits{}; ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { // optional float angle_min = 1 [default = -2.3561945]; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 13)) { _Internal::set_has_angle_min(&has_bits); angle_min_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(float); } else goto handle_unusual; continue; // optional float angle_max = 2 [default = 2.3561945]; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 21)) { _Internal::set_has_angle_max(&has_bits); angle_max_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(float); } else goto handle_unusual; continue; // optional float angle_increment = 3 [default = 0.00582]; case 3: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 29)) { _Internal::set_has_angle_increment(&has_bits); angle_increment_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(float); } else goto handle_unusual; continue; // optional float time_increment = 4 [default = 6.2e-05]; case 4: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 37)) { _Internal::set_has_time_increment(&has_bits); time_increment_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(float); } else goto handle_unusual; continue; // optional int32 range_min = 5 [default = 0]; case 5: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) { _Internal::set_has_range_min(&has_bits); range_min_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional int32 range_max = 6 [default = 30]; case 6: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) { _Internal::set_has_range_max(&has_bits); range_max_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // required .wj.netConfig net_config = 7; case 7: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) { ptr = ctx->ParseMessage(_internal_mutable_net_config(), ptr); CHK_(ptr); } else goto handle_unusual; continue; // required .wj.Transform2d transform = 8; case 8: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) { ptr = ctx->ParseMessage(_internal_mutable_transform(), ptr); CHK_(ptr); } else goto handle_unusual; continue; // required .wj.scanLimit scan_limit = 9; case 9: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 74)) { ptr = ctx->ParseMessage(_internal_mutable_scan_limit(), ptr); CHK_(ptr); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* wjLidarParams::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:wj.wjLidarParams) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // optional float angle_min = 1 [default = -2.3561945]; if (cached_has_bits & 0x00000020u) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(1, this->_internal_angle_min(), target); } // optional float angle_max = 2 [default = 2.3561945]; if (cached_has_bits & 0x00000040u) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(2, this->_internal_angle_max(), target); } // optional float angle_increment = 3 [default = 0.00582]; if (cached_has_bits & 0x00000080u) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(3, this->_internal_angle_increment(), target); } // optional float time_increment = 4 [default = 6.2e-05]; if (cached_has_bits & 0x00000100u) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(4, this->_internal_time_increment(), target); } // optional int32 range_min = 5 [default = 0]; if (cached_has_bits & 0x00000008u) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(5, this->_internal_range_min(), target); } // optional int32 range_max = 6 [default = 30]; if (cached_has_bits & 0x00000010u) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(6, this->_internal_range_max(), target); } // required .wj.netConfig net_config = 7; if (cached_has_bits & 0x00000001u) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage( 7, _Internal::net_config(this), target, stream); } // required .wj.Transform2d transform = 8; if (cached_has_bits & 0x00000002u) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage( 8, _Internal::transform(this), target, stream); } // required .wj.scanLimit scan_limit = 9; if (cached_has_bits & 0x00000004u) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage( 9, _Internal::scan_limit(this), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::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:wj.wjLidarParams) return target; } size_t wjLidarParams::RequiredFieldsByteSizeFallback() const { // @@protoc_insertion_point(required_fields_byte_size_fallback_start:wj.wjLidarParams) size_t total_size = 0; if (_internal_has_net_config()) { // required .wj.netConfig net_config = 7; total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *net_config_); } if (_internal_has_transform()) { // required .wj.Transform2d transform = 8; total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *transform_); } if (_internal_has_scan_limit()) { // required .wj.scanLimit scan_limit = 9; total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *scan_limit_); } return total_size; } size_t wjLidarParams::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:wj.wjLidarParams) size_t total_size = 0; if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present. // required .wj.netConfig net_config = 7; total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *net_config_); // required .wj.Transform2d transform = 8; total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *transform_); // required .wj.scanLimit scan_limit = 9; total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *scan_limit_); } else { total_size += RequiredFieldsByteSizeFallback(); } ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x000000f8u) { // optional int32 range_min = 5 [default = 0]; if (cached_has_bits & 0x00000008u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( this->_internal_range_min()); } // optional int32 range_max = 6 [default = 30]; if (cached_has_bits & 0x00000010u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( this->_internal_range_max()); } // optional float angle_min = 1 [default = -2.3561945]; if (cached_has_bits & 0x00000020u) { total_size += 1 + 4; } // optional float angle_max = 2 [default = 2.3561945]; if (cached_has_bits & 0x00000040u) { total_size += 1 + 4; } // optional float angle_increment = 3 [default = 0.00582]; if (cached_has_bits & 0x00000080u) { total_size += 1 + 4; } } // optional float time_increment = 4 [default = 6.2e-05]; if (cached_has_bits & 0x00000100u) { total_size += 1 + 4; } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void wjLidarParams::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:wj.wjLidarParams) GOOGLE_DCHECK_NE(&from, this); const wjLidarParams* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:wj.wjLidarParams) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:wj.wjLidarParams) MergeFrom(*source); } } void wjLidarParams::MergeFrom(const wjLidarParams& from) { // @@protoc_insertion_point(class_specific_merge_from_start:wj.wjLidarParams) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 0x000000ffu) { if (cached_has_bits & 0x00000001u) { _internal_mutable_net_config()->::wj::netConfig::MergeFrom(from._internal_net_config()); } if (cached_has_bits & 0x00000002u) { _internal_mutable_transform()->::wj::Transform2d::MergeFrom(from._internal_transform()); } if (cached_has_bits & 0x00000004u) { _internal_mutable_scan_limit()->::wj::scanLimit::MergeFrom(from._internal_scan_limit()); } if (cached_has_bits & 0x00000008u) { range_min_ = from.range_min_; } if (cached_has_bits & 0x00000010u) { range_max_ = from.range_max_; } if (cached_has_bits & 0x00000020u) { angle_min_ = from.angle_min_; } if (cached_has_bits & 0x00000040u) { angle_max_ = from.angle_max_; } if (cached_has_bits & 0x00000080u) { angle_increment_ = from.angle_increment_; } _has_bits_[0] |= cached_has_bits; } if (cached_has_bits & 0x00000100u) { _internal_set_time_increment(from._internal_time_increment()); } } void wjLidarParams::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:wj.wjLidarParams) if (&from == this) return; Clear(); MergeFrom(from); } void wjLidarParams::CopyFrom(const wjLidarParams& from) { // @@protoc_insertion_point(class_specific_copy_from_start:wj.wjLidarParams) if (&from == this) return; Clear(); MergeFrom(from); } bool wjLidarParams::IsInitialized() const { if (_Internal::MissingRequiredFields(_has_bits_)) return false; return true; } void wjLidarParams::InternalSwap(wjLidarParams* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(wjLidarParams, range_min_) + sizeof(wjLidarParams::range_min_) - PROTOBUF_FIELD_OFFSET(wjLidarParams, net_config_)>( reinterpret_cast(&net_config_), reinterpret_cast(&other->net_config_)); swap(range_max_, other->range_max_); swap(angle_min_, other->angle_min_); swap(angle_max_, other->angle_max_); swap(angle_increment_, other->angle_increment_); swap(time_increment_, other->time_increment_); } ::PROTOBUF_NAMESPACE_ID::Metadata wjLidarParams::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== void netConfig::InitAsDefaultInstance() { } class netConfig::_Internal { public: using HasBits = decltype(std::declval()._has_bits_); static void set_has_ip_address(HasBits* has_bits) { (*has_bits)[0] |= 1u; } static void set_has_port(HasBits* has_bits) { (*has_bits)[0] |= 2u; } }; netConfig::netConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:wj.netConfig) } netConfig::netConfig(const netConfig& from) : ::PROTOBUF_NAMESPACE_ID::Message(), _has_bits_(from._has_bits_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ip_address_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_ip_address()) { ip_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_ip_address(), GetArena()); } port_ = from.port_; // @@protoc_insertion_point(copy_constructor:wj.netConfig) } void netConfig::SharedCtor() { ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_netConfig_wj_5flidar_5fconf_2eproto.base); ip_address_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); port_ = 8000; } netConfig::~netConfig() { // @@protoc_insertion_point(destructor:wj.netConfig) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void netConfig::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); ip_address_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } void netConfig::ArenaDtor(void* object) { netConfig* _this = reinterpret_cast< netConfig* >(object); (void)_this; } void netConfig::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } void netConfig::SetCachedSize(int size) const { _cached_size_.Set(size); } const netConfig& netConfig::default_instance() { ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_netConfig_wj_5flidar_5fconf_2eproto.base); return *internal_default_instance(); } void netConfig::Clear() { // @@protoc_insertion_point(message_clear_start:wj.netConfig) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { ip_address_.ClearNonDefaultToEmpty(); } port_ = 8000; } _has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* netConfig::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure _Internal::HasBits has_bits{}; ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { // optional string ip_address = 1 [default = ""]; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { auto str = _internal_mutable_ip_address(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "wj.netConfig.ip_address"); #endif // !NDEBUG CHK_(ptr); } else goto handle_unusual; continue; // optional int32 port = 2 [default = 8000]; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { _Internal::set_has_port(&has_bits); port_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* netConfig::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:wj.netConfig) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // optional string ip_address = 1 [default = ""]; if (cached_has_bits & 0x00000001u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_ip_address().data(), static_cast(this->_internal_ip_address().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "wj.netConfig.ip_address"); target = stream->WriteStringMaybeAliased( 1, this->_internal_ip_address(), target); } // optional int32 port = 2 [default = 8000]; if (cached_has_bits & 0x00000002u) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_port(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::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:wj.netConfig) return target; } size_t netConfig::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:wj.netConfig) size_t total_size = 0; ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000003u) { // optional string ip_address = 1 [default = ""]; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_ip_address()); } // optional int32 port = 2 [default = 8000]; if (cached_has_bits & 0x00000002u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( this->_internal_port()); } } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void netConfig::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:wj.netConfig) GOOGLE_DCHECK_NE(&from, this); const netConfig* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:wj.netConfig) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:wj.netConfig) MergeFrom(*source); } } void netConfig::MergeFrom(const netConfig& from) { // @@protoc_insertion_point(class_specific_merge_from_start:wj.netConfig) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { _internal_set_ip_address(from._internal_ip_address()); } if (cached_has_bits & 0x00000002u) { port_ = from.port_; } _has_bits_[0] |= cached_has_bits; } } void netConfig::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:wj.netConfig) if (&from == this) return; Clear(); MergeFrom(from); } void netConfig::CopyFrom(const netConfig& from) { // @@protoc_insertion_point(class_specific_copy_from_start:wj.netConfig) if (&from == this) return; Clear(); MergeFrom(from); } bool netConfig::IsInitialized() const { return true; } void netConfig::InternalSwap(netConfig* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); ip_address_.Swap(&other->ip_address_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); swap(port_, other->port_); } ::PROTOBUF_NAMESPACE_ID::Metadata netConfig::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== void Transform2d::InitAsDefaultInstance() { } class Transform2d::_Internal { public: using HasBits = decltype(std::declval()._has_bits_); static void set_has_m00(HasBits* has_bits) { (*has_bits)[0] |= 16u; } static void set_has_m01(HasBits* has_bits) { (*has_bits)[0] |= 1u; } static void set_has_m02(HasBits* has_bits) { (*has_bits)[0] |= 2u; } static void set_has_m10(HasBits* has_bits) { (*has_bits)[0] |= 4u; } static void set_has_m11(HasBits* has_bits) { (*has_bits)[0] |= 32u; } static void set_has_m12(HasBits* has_bits) { (*has_bits)[0] |= 8u; } }; Transform2d::Transform2d(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:wj.Transform2d) } Transform2d::Transform2d(const Transform2d& from) : ::PROTOBUF_NAMESPACE_ID::Message(), _has_bits_(from._has_bits_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::memcpy(&m01_, &from.m01_, static_cast(reinterpret_cast(&m11_) - reinterpret_cast(&m01_)) + sizeof(m11_)); // @@protoc_insertion_point(copy_constructor:wj.Transform2d) } void Transform2d::SharedCtor() { ::memset(&m01_, 0, static_cast( reinterpret_cast(&m12_) - reinterpret_cast(&m01_)) + sizeof(m12_)); m00_ = 1; m11_ = 1; } Transform2d::~Transform2d() { // @@protoc_insertion_point(destructor:wj.Transform2d) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void Transform2d::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); } void Transform2d::ArenaDtor(void* object) { Transform2d* _this = reinterpret_cast< Transform2d* >(object); (void)_this; } void Transform2d::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } void Transform2d::SetCachedSize(int size) const { _cached_size_.Set(size); } const Transform2d& Transform2d::default_instance() { ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Transform2d_wj_5flidar_5fconf_2eproto.base); return *internal_default_instance(); } void Transform2d::Clear() { // @@protoc_insertion_point(message_clear_start:wj.Transform2d) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x0000003fu) { ::memset(&m01_, 0, static_cast( reinterpret_cast(&m12_) - reinterpret_cast(&m01_)) + sizeof(m12_)); m00_ = 1; m11_ = 1; } _has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* Transform2d::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure _Internal::HasBits has_bits{}; ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { // optional float m00 = 1 [default = 1]; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 13)) { _Internal::set_has_m00(&has_bits); m00_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(float); } else goto handle_unusual; continue; // optional float m01 = 2 [default = 0]; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 21)) { _Internal::set_has_m01(&has_bits); m01_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(float); } else goto handle_unusual; continue; // optional float m02 = 3 [default = 0]; case 3: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 29)) { _Internal::set_has_m02(&has_bits); m02_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(float); } else goto handle_unusual; continue; // optional float m10 = 4 [default = 0]; case 4: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 37)) { _Internal::set_has_m10(&has_bits); m10_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(float); } else goto handle_unusual; continue; // optional float m11 = 5 [default = 1]; case 5: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 45)) { _Internal::set_has_m11(&has_bits); m11_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(float); } else goto handle_unusual; continue; // optional float m12 = 6 [default = 0]; case 6: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 53)) { _Internal::set_has_m12(&has_bits); m12_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(float); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* Transform2d::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:wj.Transform2d) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // optional float m00 = 1 [default = 1]; if (cached_has_bits & 0x00000010u) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(1, this->_internal_m00(), target); } // optional float m01 = 2 [default = 0]; if (cached_has_bits & 0x00000001u) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(2, this->_internal_m01(), target); } // optional float m02 = 3 [default = 0]; if (cached_has_bits & 0x00000002u) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(3, this->_internal_m02(), target); } // optional float m10 = 4 [default = 0]; if (cached_has_bits & 0x00000004u) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(4, this->_internal_m10(), target); } // optional float m11 = 5 [default = 1]; if (cached_has_bits & 0x00000020u) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(5, this->_internal_m11(), target); } // optional float m12 = 6 [default = 0]; if (cached_has_bits & 0x00000008u) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(6, this->_internal_m12(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::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:wj.Transform2d) return target; } size_t Transform2d::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:wj.Transform2d) size_t total_size = 0; ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x0000003fu) { // optional float m01 = 2 [default = 0]; if (cached_has_bits & 0x00000001u) { total_size += 1 + 4; } // optional float m02 = 3 [default = 0]; if (cached_has_bits & 0x00000002u) { total_size += 1 + 4; } // optional float m10 = 4 [default = 0]; if (cached_has_bits & 0x00000004u) { total_size += 1 + 4; } // optional float m12 = 6 [default = 0]; if (cached_has_bits & 0x00000008u) { total_size += 1 + 4; } // optional float m00 = 1 [default = 1]; if (cached_has_bits & 0x00000010u) { total_size += 1 + 4; } // optional float m11 = 5 [default = 1]; if (cached_has_bits & 0x00000020u) { total_size += 1 + 4; } } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void Transform2d::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:wj.Transform2d) GOOGLE_DCHECK_NE(&from, this); const Transform2d* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:wj.Transform2d) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:wj.Transform2d) MergeFrom(*source); } } void Transform2d::MergeFrom(const Transform2d& from) { // @@protoc_insertion_point(class_specific_merge_from_start:wj.Transform2d) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 0x0000003fu) { if (cached_has_bits & 0x00000001u) { m01_ = from.m01_; } if (cached_has_bits & 0x00000002u) { m02_ = from.m02_; } if (cached_has_bits & 0x00000004u) { m10_ = from.m10_; } if (cached_has_bits & 0x00000008u) { m12_ = from.m12_; } if (cached_has_bits & 0x00000010u) { m00_ = from.m00_; } if (cached_has_bits & 0x00000020u) { m11_ = from.m11_; } _has_bits_[0] |= cached_has_bits; } } void Transform2d::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:wj.Transform2d) if (&from == this) return; Clear(); MergeFrom(from); } void Transform2d::CopyFrom(const Transform2d& from) { // @@protoc_insertion_point(class_specific_copy_from_start:wj.Transform2d) if (&from == this) return; Clear(); MergeFrom(from); } bool Transform2d::IsInitialized() const { return true; } void Transform2d::InternalSwap(Transform2d* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(Transform2d, m12_) + sizeof(Transform2d::m12_) - PROTOBUF_FIELD_OFFSET(Transform2d, m01_)>( reinterpret_cast(&m01_), reinterpret_cast(&other->m01_)); swap(m00_, other->m00_); swap(m11_, other->m11_); } ::PROTOBUF_NAMESPACE_ID::Metadata Transform2d::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== void scanLimit::InitAsDefaultInstance() { } class scanLimit::_Internal { public: using HasBits = decltype(std::declval()._has_bits_); static void set_has_dist_limit(HasBits* has_bits) { (*has_bits)[0] |= 2u; } static void set_has_minx(HasBits* has_bits) { (*has_bits)[0] |= 4u; } static void set_has_maxx(HasBits* has_bits) { (*has_bits)[0] |= 8u; } static void set_has_miny(HasBits* has_bits) { (*has_bits)[0] |= 16u; } static void set_has_maxy(HasBits* has_bits) { (*has_bits)[0] |= 1u; } }; scanLimit::scanLimit(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:wj.scanLimit) } scanLimit::scanLimit(const scanLimit& from) : ::PROTOBUF_NAMESPACE_ID::Message(), _has_bits_(from._has_bits_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::memcpy(&maxy_, &from.maxy_, static_cast(reinterpret_cast(&miny_) - reinterpret_cast(&maxy_)) + sizeof(miny_)); // @@protoc_insertion_point(copy_constructor:wj.scanLimit) } void scanLimit::SharedCtor() { maxy_ = 3.5f; dist_limit_ = 8; minx_ = -6; maxx_ = -0.2f; miny_ = -3.5f; } scanLimit::~scanLimit() { // @@protoc_insertion_point(destructor:wj.scanLimit) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void scanLimit::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); } void scanLimit::ArenaDtor(void* object) { scanLimit* _this = reinterpret_cast< scanLimit* >(object); (void)_this; } void scanLimit::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } void scanLimit::SetCachedSize(int size) const { _cached_size_.Set(size); } const scanLimit& scanLimit::default_instance() { ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_scanLimit_wj_5flidar_5fconf_2eproto.base); return *internal_default_instance(); } void scanLimit::Clear() { // @@protoc_insertion_point(message_clear_start:wj.scanLimit) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x0000001fu) { maxy_ = 3.5f; dist_limit_ = 8; minx_ = -6; maxx_ = -0.2f; miny_ = -3.5f; } _has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* scanLimit::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure _Internal::HasBits has_bits{}; ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { // optional float dist_limit = 1 [default = 8]; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 13)) { _Internal::set_has_dist_limit(&has_bits); dist_limit_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(float); } else goto handle_unusual; continue; // optional float minx = 2 [default = -6]; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 21)) { _Internal::set_has_minx(&has_bits); minx_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(float); } else goto handle_unusual; continue; // optional float maxx = 3 [default = -0.2]; case 3: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 29)) { _Internal::set_has_maxx(&has_bits); maxx_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(float); } else goto handle_unusual; continue; // optional float miny = 4 [default = -3.5]; case 4: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 37)) { _Internal::set_has_miny(&has_bits); miny_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(float); } else goto handle_unusual; continue; // optional float maxy = 5 [default = 3.5]; case 5: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 45)) { _Internal::set_has_maxy(&has_bits); maxy_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(float); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* scanLimit::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:wj.scanLimit) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // optional float dist_limit = 1 [default = 8]; if (cached_has_bits & 0x00000002u) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(1, this->_internal_dist_limit(), target); } // optional float minx = 2 [default = -6]; if (cached_has_bits & 0x00000004u) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(2, this->_internal_minx(), target); } // optional float maxx = 3 [default = -0.2]; if (cached_has_bits & 0x00000008u) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(3, this->_internal_maxx(), target); } // optional float miny = 4 [default = -3.5]; if (cached_has_bits & 0x00000010u) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(4, this->_internal_miny(), target); } // optional float maxy = 5 [default = 3.5]; if (cached_has_bits & 0x00000001u) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(5, this->_internal_maxy(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::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:wj.scanLimit) return target; } size_t scanLimit::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:wj.scanLimit) size_t total_size = 0; ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x0000001fu) { // optional float maxy = 5 [default = 3.5]; if (cached_has_bits & 0x00000001u) { total_size += 1 + 4; } // optional float dist_limit = 1 [default = 8]; if (cached_has_bits & 0x00000002u) { total_size += 1 + 4; } // optional float minx = 2 [default = -6]; if (cached_has_bits & 0x00000004u) { total_size += 1 + 4; } // optional float maxx = 3 [default = -0.2]; if (cached_has_bits & 0x00000008u) { total_size += 1 + 4; } // optional float miny = 4 [default = -3.5]; if (cached_has_bits & 0x00000010u) { total_size += 1 + 4; } } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void scanLimit::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:wj.scanLimit) GOOGLE_DCHECK_NE(&from, this); const scanLimit* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:wj.scanLimit) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:wj.scanLimit) MergeFrom(*source); } } void scanLimit::MergeFrom(const scanLimit& from) { // @@protoc_insertion_point(class_specific_merge_from_start:wj.scanLimit) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 0x0000001fu) { if (cached_has_bits & 0x00000001u) { maxy_ = from.maxy_; } if (cached_has_bits & 0x00000002u) { dist_limit_ = from.dist_limit_; } if (cached_has_bits & 0x00000004u) { minx_ = from.minx_; } if (cached_has_bits & 0x00000008u) { maxx_ = from.maxx_; } if (cached_has_bits & 0x00000010u) { miny_ = from.miny_; } _has_bits_[0] |= cached_has_bits; } } void scanLimit::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:wj.scanLimit) if (&from == this) return; Clear(); MergeFrom(from); } void scanLimit::CopyFrom(const scanLimit& from) { // @@protoc_insertion_point(class_specific_copy_from_start:wj.scanLimit) if (&from == this) return; Clear(); MergeFrom(from); } bool scanLimit::IsInitialized() const { return true; } void scanLimit::InternalSwap(scanLimit* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); swap(maxy_, other->maxy_); swap(dist_limit_, other->dist_limit_); swap(minx_, other->minx_); swap(maxx_, other->maxx_); swap(miny_, other->miny_); } ::PROTOBUF_NAMESPACE_ID::Metadata scanLimit::GetMetadata() const { return GetMetadataStatic(); } // @@protoc_insertion_point(namespace_scope) } // namespace wj PROTOBUF_NAMESPACE_OPEN template<> PROTOBUF_NOINLINE ::wj::wjManagerParams* Arena::CreateMaybeMessage< ::wj::wjManagerParams >(Arena* arena) { return Arena::CreateMessageInternal< ::wj::wjManagerParams >(arena); } template<> PROTOBUF_NOINLINE ::wj::Region* Arena::CreateMaybeMessage< ::wj::Region >(Arena* arena) { return Arena::CreateMessageInternal< ::wj::Region >(arena); } template<> PROTOBUF_NOINLINE ::wj::wjLidarParams* Arena::CreateMaybeMessage< ::wj::wjLidarParams >(Arena* arena) { return Arena::CreateMessageInternal< ::wj::wjLidarParams >(arena); } template<> PROTOBUF_NOINLINE ::wj::netConfig* Arena::CreateMaybeMessage< ::wj::netConfig >(Arena* arena) { return Arena::CreateMessageInternal< ::wj::netConfig >(arena); } template<> PROTOBUF_NOINLINE ::wj::Transform2d* Arena::CreateMaybeMessage< ::wj::Transform2d >(Arena* arena) { return Arena::CreateMessageInternal< ::wj::Transform2d >(arena); } template<> PROTOBUF_NOINLINE ::wj::scanLimit* Arena::CreateMaybeMessage< ::wj::scanLimit >(Arena* arena) { return Arena::CreateMessageInternal< ::wj::scanLimit >(arena); } PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) #include