|
@@ -7,7 +7,6 @@
|
|
|
|
|
|
#include <google/protobuf/stubs/common.h>
|
|
|
#include <google/protobuf/stubs/port.h>
|
|
|
-#include <google/protobuf/stubs/once.h>
|
|
|
#include <google/protobuf/io/coded_stream.h>
|
|
|
#include <google/protobuf/wire_format_lite_inl.h>
|
|
|
#include <google/protobuf/descriptor.h>
|
|
@@ -19,6 +18,14 @@
|
|
|
#include "third_party/protobuf/version.h"
|
|
|
#endif
|
|
|
// @@protoc_insertion_point(includes)
|
|
|
+
|
|
|
+namespace protobuf_wj_5flidar_5fconf_2eproto {
|
|
|
+extern PROTOBUF_INTERNAL_EXPORT_protobuf_wj_5flidar_5fconf_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Region;
|
|
|
+extern PROTOBUF_INTERNAL_EXPORT_protobuf_wj_5flidar_5fconf_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Transform2d;
|
|
|
+extern PROTOBUF_INTERNAL_EXPORT_protobuf_wj_5flidar_5fconf_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_netConfig;
|
|
|
+extern PROTOBUF_INTERNAL_EXPORT_protobuf_wj_5flidar_5fconf_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_scanLimit;
|
|
|
+extern PROTOBUF_INTERNAL_EXPORT_protobuf_wj_5flidar_5fconf_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_wjLidarParams;
|
|
|
+} // namespace protobuf_wj_5flidar_5fconf_2eproto
|
|
|
namespace wj {
|
|
|
class wjManagerParamsDefaultTypeInternal {
|
|
|
public:
|
|
@@ -52,20 +59,13 @@ class scanLimitDefaultTypeInternal {
|
|
|
} _scanLimit_default_instance_;
|
|
|
} // namespace wj
|
|
|
namespace protobuf_wj_5flidar_5fconf_2eproto {
|
|
|
-void InitDefaultswjManagerParamsImpl() {
|
|
|
+static void InitDefaultswjManagerParams() {
|
|
|
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
|
|
|
-#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
|
|
|
- ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
|
|
|
-#else
|
|
|
- ::google::protobuf::internal::InitProtobufDefaults();
|
|
|
-#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
|
|
|
- protobuf_wj_5flidar_5fconf_2eproto::InitDefaultswjLidarParams();
|
|
|
- protobuf_wj_5flidar_5fconf_2eproto::InitDefaultsRegion();
|
|
|
- ::wj::wjManagerParams::_default_plc_ip_address_.DefaultConstruct();
|
|
|
- *::wj::wjManagerParams::_default_plc_ip_address_.get_mutable() = ::std::string("192.168.0.1", 11);
|
|
|
+ ::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);
|
|
|
::google::protobuf::internal::OnShutdownDestroyString(
|
|
|
- ::wj::wjManagerParams::_default_plc_ip_address_.get_mutable());
|
|
|
+ ::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();
|
|
@@ -74,19 +74,14 @@ void InitDefaultswjManagerParamsImpl() {
|
|
|
::wj::wjManagerParams::InitAsDefaultInstance();
|
|
|
}
|
|
|
|
|
|
-void InitDefaultswjManagerParams() {
|
|
|
- static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
|
|
|
- ::google::protobuf::GoogleOnceInit(&once, &InitDefaultswjManagerParamsImpl);
|
|
|
-}
|
|
|
+::google::protobuf::internal::SCCInfo<2> scc_info_wjManagerParams =
|
|
|
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultswjManagerParams}, {
|
|
|
+ &protobuf_wj_5flidar_5fconf_2eproto::scc_info_wjLidarParams.base,
|
|
|
+ &protobuf_wj_5flidar_5fconf_2eproto::scc_info_Region.base,}};
|
|
|
|
|
|
-void InitDefaultsRegionImpl() {
|
|
|
+static void InitDefaultsRegion() {
|
|
|
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
|
|
|
-#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
|
|
|
- ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
|
|
|
-#else
|
|
|
- ::google::protobuf::internal::InitProtobufDefaults();
|
|
|
-#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
|
|
|
{
|
|
|
void* ptr = &::wj::_Region_default_instance_;
|
|
|
new (ptr) ::wj::Region();
|
|
@@ -95,22 +90,12 @@ void InitDefaultsRegionImpl() {
|
|
|
::wj::Region::InitAsDefaultInstance();
|
|
|
}
|
|
|
|
|
|
-void InitDefaultsRegion() {
|
|
|
- static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
|
|
|
- ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRegionImpl);
|
|
|
-}
|
|
|
+::google::protobuf::internal::SCCInfo<0> scc_info_Region =
|
|
|
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsRegion}, {}};
|
|
|
|
|
|
-void InitDefaultswjLidarParamsImpl() {
|
|
|
+static void InitDefaultswjLidarParams() {
|
|
|
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
|
|
|
-#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
|
|
|
- ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
|
|
|
-#else
|
|
|
- ::google::protobuf::internal::InitProtobufDefaults();
|
|
|
-#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
|
|
|
- protobuf_wj_5flidar_5fconf_2eproto::InitDefaultsnetConfig();
|
|
|
- protobuf_wj_5flidar_5fconf_2eproto::InitDefaultsTransform2d();
|
|
|
- protobuf_wj_5flidar_5fconf_2eproto::InitDefaultsscanLimit();
|
|
|
{
|
|
|
void* ptr = &::wj::_wjLidarParams_default_instance_;
|
|
|
new (ptr) ::wj::wjLidarParams();
|
|
@@ -119,19 +104,15 @@ void InitDefaultswjLidarParamsImpl() {
|
|
|
::wj::wjLidarParams::InitAsDefaultInstance();
|
|
|
}
|
|
|
|
|
|
-void InitDefaultswjLidarParams() {
|
|
|
- static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
|
|
|
- ::google::protobuf::GoogleOnceInit(&once, &InitDefaultswjLidarParamsImpl);
|
|
|
-}
|
|
|
+::google::protobuf::internal::SCCInfo<3> scc_info_wjLidarParams =
|
|
|
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultswjLidarParams}, {
|
|
|
+ &protobuf_wj_5flidar_5fconf_2eproto::scc_info_netConfig.base,
|
|
|
+ &protobuf_wj_5flidar_5fconf_2eproto::scc_info_Transform2d.base,
|
|
|
+ &protobuf_wj_5flidar_5fconf_2eproto::scc_info_scanLimit.base,}};
|
|
|
|
|
|
-void InitDefaultsnetConfigImpl() {
|
|
|
+static void InitDefaultsnetConfig() {
|
|
|
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
|
|
|
-#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
|
|
|
- ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
|
|
|
-#else
|
|
|
- ::google::protobuf::internal::InitProtobufDefaults();
|
|
|
-#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
|
|
|
{
|
|
|
void* ptr = &::wj::_netConfig_default_instance_;
|
|
|
new (ptr) ::wj::netConfig();
|
|
@@ -140,19 +121,12 @@ void InitDefaultsnetConfigImpl() {
|
|
|
::wj::netConfig::InitAsDefaultInstance();
|
|
|
}
|
|
|
|
|
|
-void InitDefaultsnetConfig() {
|
|
|
- static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
|
|
|
- ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsnetConfigImpl);
|
|
|
-}
|
|
|
+::google::protobuf::internal::SCCInfo<0> scc_info_netConfig =
|
|
|
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsnetConfig}, {}};
|
|
|
|
|
|
-void InitDefaultsTransform2dImpl() {
|
|
|
+static void InitDefaultsTransform2d() {
|
|
|
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
|
|
|
-#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
|
|
|
- ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
|
|
|
-#else
|
|
|
- ::google::protobuf::internal::InitProtobufDefaults();
|
|
|
-#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
|
|
|
{
|
|
|
void* ptr = &::wj::_Transform2d_default_instance_;
|
|
|
new (ptr) ::wj::Transform2d();
|
|
@@ -161,19 +135,12 @@ void InitDefaultsTransform2dImpl() {
|
|
|
::wj::Transform2d::InitAsDefaultInstance();
|
|
|
}
|
|
|
|
|
|
-void InitDefaultsTransform2d() {
|
|
|
- static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
|
|
|
- ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTransform2dImpl);
|
|
|
-}
|
|
|
+::google::protobuf::internal::SCCInfo<0> scc_info_Transform2d =
|
|
|
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTransform2d}, {}};
|
|
|
|
|
|
-void InitDefaultsscanLimitImpl() {
|
|
|
+static void InitDefaultsscanLimit() {
|
|
|
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
|
|
|
-#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
|
|
|
- ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
|
|
|
-#else
|
|
|
- ::google::protobuf::internal::InitProtobufDefaults();
|
|
|
-#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
|
|
|
{
|
|
|
void* ptr = &::wj::_scanLimit_default_instance_;
|
|
|
new (ptr) ::wj::scanLimit();
|
|
@@ -182,9 +149,16 @@ void InitDefaultsscanLimitImpl() {
|
|
|
::wj::scanLimit::InitAsDefaultInstance();
|
|
|
}
|
|
|
|
|
|
-void InitDefaultsscanLimit() {
|
|
|
- static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
|
|
|
- ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsscanLimitImpl);
|
|
|
+::google::protobuf::internal::SCCInfo<0> scc_info_scanLimit =
|
|
|
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscanLimit}, {}};
|
|
|
+
|
|
|
+void InitDefaults() {
|
|
|
+ ::google::protobuf::internal::InitSCC(&scc_info_wjManagerParams.base);
|
|
|
+ ::google::protobuf::internal::InitSCC(&scc_info_Region.base);
|
|
|
+ ::google::protobuf::internal::InitSCC(&scc_info_wjLidarParams.base);
|
|
|
+ ::google::protobuf::internal::InitSCC(&scc_info_netConfig.base);
|
|
|
+ ::google::protobuf::internal::InitSCC(&scc_info_Transform2d.base);
|
|
|
+ ::google::protobuf::internal::InitSCC(&scc_info_scanLimit.base);
|
|
|
}
|
|
|
|
|
|
::google::protobuf::Metadata file_level_metadata[6];
|
|
@@ -303,15 +277,14 @@ static ::google::protobuf::Message const * const file_default_instances[] = {
|
|
|
|
|
|
void protobuf_AssignDescriptors() {
|
|
|
AddDescriptors();
|
|
|
- ::google::protobuf::MessageFactory* factory = NULL;
|
|
|
AssignDescriptors(
|
|
|
- "wj_lidar_conf.proto", schemas, file_default_instances, TableStruct::offsets, factory,
|
|
|
+ "wj_lidar_conf.proto", schemas, file_default_instances, TableStruct::offsets,
|
|
|
file_level_metadata, NULL, NULL);
|
|
|
}
|
|
|
|
|
|
void protobuf_AssignDescriptorsOnce() {
|
|
|
- static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
|
|
|
- ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
|
|
|
+ static ::google::protobuf::internal::once_flag once;
|
|
|
+ ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors);
|
|
|
}
|
|
|
|
|
|
void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
|
|
@@ -353,8 +326,8 @@ void AddDescriptorsImpl() {
|
|
|
}
|
|
|
|
|
|
void AddDescriptors() {
|
|
|
- static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
|
|
|
- ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
|
|
|
+ static ::google::protobuf::internal::once_flag once;
|
|
|
+ ::google::protobuf::internal::call_once(once, AddDescriptorsImpl);
|
|
|
}
|
|
|
// Force AddDescriptors() to be called at dynamic initialization time.
|
|
|
struct StaticDescriptorInitializer {
|
|
@@ -369,7 +342,7 @@ namespace wj {
|
|
|
|
|
|
void wjManagerParams::InitAsDefaultInstance() {
|
|
|
}
|
|
|
-::google::protobuf::internal::ExplicitlyConstructed< ::std::string> wjManagerParams::_default_plc_ip_address_;
|
|
|
+::google::protobuf::internal::ExplicitlyConstructed<::std::string> wjManagerParams::_i_give_permission_to_break_this_code_default_plc_ip_address_;
|
|
|
#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
const int wjManagerParams::kWjLidarFieldNumber;
|
|
|
const int wjManagerParams::kRegionsFieldNumber;
|
|
@@ -380,9 +353,8 @@ const int wjManagerParams::kPlcIpAddressFieldNumber;
|
|
|
|
|
|
wjManagerParams::wjManagerParams()
|
|
|
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
|
|
|
- if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
|
|
|
- ::protobuf_wj_5flidar_5fconf_2eproto::InitDefaultswjManagerParams();
|
|
|
- }
|
|
|
+ ::google::protobuf::internal::InitSCC(
|
|
|
+ &protobuf_wj_5flidar_5fconf_2eproto::scc_info_wjManagerParams.base);
|
|
|
SharedCtor();
|
|
|
// @@protoc_insertion_point(constructor:wj.wjManagerParams)
|
|
|
}
|
|
@@ -390,7 +362,6 @@ wjManagerParams::wjManagerParams(const wjManagerParams& from)
|
|
|
: ::google::protobuf::Message(),
|
|
|
_internal_metadata_(NULL),
|
|
|
_has_bits_(from._has_bits_),
|
|
|
- _cached_size_(0),
|
|
|
wj_lidar_(from.wj_lidar_),
|
|
|
regions_(from.regions_) {
|
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
@@ -402,18 +373,17 @@ wjManagerParams::wjManagerParams(const wjManagerParams& from)
|
|
|
if (from.has_fence_log_path()) {
|
|
|
fence_log_path_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.fence_log_path_);
|
|
|
}
|
|
|
- plc_ip_address_.UnsafeSetDefault(&::wj::wjManagerParams::_default_plc_ip_address_.get());
|
|
|
+ plc_ip_address_.UnsafeSetDefault(&::wj::wjManagerParams::_i_give_permission_to_break_this_code_default_plc_ip_address_.get());
|
|
|
if (from.has_plc_ip_address()) {
|
|
|
- plc_ip_address_.AssignWithDefault(&::wj::wjManagerParams::_default_plc_ip_address_.get(), from.plc_ip_address_);
|
|
|
+ plc_ip_address_.AssignWithDefault(&::wj::wjManagerParams::_i_give_permission_to_break_this_code_default_plc_ip_address_.get(), from.plc_ip_address_);
|
|
|
}
|
|
|
// @@protoc_insertion_point(copy_constructor:wj.wjManagerParams)
|
|
|
}
|
|
|
|
|
|
void wjManagerParams::SharedCtor() {
|
|
|
- _cached_size_ = 0;
|
|
|
fence_data_path_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
fence_log_path_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
- plc_ip_address_.UnsafeSetDefault(&::wj::wjManagerParams::_default_plc_ip_address_.get());
|
|
|
+ plc_ip_address_.UnsafeSetDefault(&::wj::wjManagerParams::_i_give_permission_to_break_this_code_default_plc_ip_address_.get());
|
|
|
}
|
|
|
|
|
|
wjManagerParams::~wjManagerParams() {
|
|
@@ -424,13 +394,11 @@ wjManagerParams::~wjManagerParams() {
|
|
|
void wjManagerParams::SharedDtor() {
|
|
|
fence_data_path_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
fence_log_path_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
- plc_ip_address_.DestroyNoArena(&::wj::wjManagerParams::_default_plc_ip_address_.get());
|
|
|
+ plc_ip_address_.DestroyNoArena(&::wj::wjManagerParams::_i_give_permission_to_break_this_code_default_plc_ip_address_.get());
|
|
|
}
|
|
|
|
|
|
void wjManagerParams::SetCachedSize(int size) const {
|
|
|
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
|
- _cached_size_ = size;
|
|
|
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
|
+ _cached_size_.Set(size);
|
|
|
}
|
|
|
const ::google::protobuf::Descriptor* wjManagerParams::descriptor() {
|
|
|
::protobuf_wj_5flidar_5fconf_2eproto::protobuf_AssignDescriptorsOnce();
|
|
@@ -438,17 +406,10 @@ const ::google::protobuf::Descriptor* wjManagerParams::descriptor() {
|
|
|
}
|
|
|
|
|
|
const wjManagerParams& wjManagerParams::default_instance() {
|
|
|
- ::protobuf_wj_5flidar_5fconf_2eproto::InitDefaultswjManagerParams();
|
|
|
+ ::google::protobuf::internal::InitSCC(&protobuf_wj_5flidar_5fconf_2eproto::scc_info_wjManagerParams.base);
|
|
|
return *internal_default_instance();
|
|
|
}
|
|
|
|
|
|
-wjManagerParams* wjManagerParams::New(::google::protobuf::Arena* arena) const {
|
|
|
- wjManagerParams* n = new wjManagerParams;
|
|
|
- if (arena != NULL) {
|
|
|
- arena->Own(n);
|
|
|
- }
|
|
|
- return n;
|
|
|
-}
|
|
|
|
|
|
void wjManagerParams::Clear() {
|
|
|
// @@protoc_insertion_point(message_clear_start:wj.wjManagerParams)
|
|
@@ -461,16 +422,13 @@ void wjManagerParams::Clear() {
|
|
|
cached_has_bits = _has_bits_[0];
|
|
|
if (cached_has_bits & 7u) {
|
|
|
if (cached_has_bits & 0x00000001u) {
|
|
|
- GOOGLE_DCHECK(!fence_data_path_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
|
|
|
- (*fence_data_path_.UnsafeRawStringPointer())->clear();
|
|
|
+ fence_data_path_.ClearNonDefaultToEmptyNoArena();
|
|
|
}
|
|
|
if (cached_has_bits & 0x00000002u) {
|
|
|
- GOOGLE_DCHECK(!fence_log_path_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
|
|
|
- (*fence_log_path_.UnsafeRawStringPointer())->clear();
|
|
|
+ fence_log_path_.ClearNonDefaultToEmptyNoArena();
|
|
|
}
|
|
|
if (cached_has_bits & 0x00000004u) {
|
|
|
- GOOGLE_DCHECK(!plc_ip_address_.IsDefault(&::wj::wjManagerParams::_default_plc_ip_address_.get()));
|
|
|
- (*plc_ip_address_.UnsafeRawStringPointer())->assign(*&::wj::wjManagerParams::_default_plc_ip_address_.get());
|
|
|
+ plc_ip_address_.UnsafeMutablePointer()->assign(*&::wj::wjManagerParams::_i_give_permission_to_break_this_code_default_plc_ip_address_.get());
|
|
|
}
|
|
|
}
|
|
|
_has_bits_.Clear();
|
|
@@ -483,7 +441,7 @@ bool wjManagerParams::MergePartialFromCodedStream(
|
|
|
::google::protobuf::uint32 tag;
|
|
|
// @@protoc_insertion_point(parse_start:wj.wjManagerParams)
|
|
|
for (;;) {
|
|
|
- ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
|
|
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
|
|
tag = p.first;
|
|
|
if (!p.second) goto handle_unusual;
|
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
@@ -491,7 +449,8 @@ bool wjManagerParams::MergePartialFromCodedStream(
|
|
|
case 1: {
|
|
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
|
|
|
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_wj_lidar()));
|
|
|
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
|
|
|
+ input, add_wj_lidar()));
|
|
|
} else {
|
|
|
goto handle_unusual;
|
|
|
}
|
|
@@ -502,7 +461,8 @@ bool wjManagerParams::MergePartialFromCodedStream(
|
|
|
case 2: {
|
|
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
|
|
|
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_regions()));
|
|
|
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
|
|
|
+ input, add_regions()));
|
|
|
} else {
|
|
|
goto handle_unusual;
|
|
|
}
|
|
@@ -587,14 +547,18 @@ void wjManagerParams::SerializeWithCachedSizes(
|
|
|
for (unsigned int i = 0,
|
|
|
n = static_cast<unsigned int>(this->wj_lidar_size()); i < n; i++) {
|
|
|
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
|
- 1, this->wj_lidar(static_cast<int>(i)), output);
|
|
|
+ 1,
|
|
|
+ this->wj_lidar(static_cast<int>(i)),
|
|
|
+ output);
|
|
|
}
|
|
|
|
|
|
// repeated .wj.Region regions = 2;
|
|
|
for (unsigned int i = 0,
|
|
|
n = static_cast<unsigned int>(this->regions_size()); i < n; i++) {
|
|
|
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
|
- 2, this->regions(static_cast<int>(i)), output);
|
|
|
+ 2,
|
|
|
+ this->regions(static_cast<int>(i)),
|
|
|
+ output);
|
|
|
}
|
|
|
|
|
|
cached_has_bits = _has_bits_[0];
|
|
@@ -755,9 +719,7 @@ size_t wjManagerParams::ByteSizeLong() const {
|
|
|
|
|
|
}
|
|
|
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
|
|
|
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
|
- _cached_size_ = cached_size;
|
|
|
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
|
+ SetCachedSize(cached_size);
|
|
|
return total_size;
|
|
|
}
|
|
|
|
|
@@ -797,7 +759,7 @@ void wjManagerParams::MergeFrom(const wjManagerParams& from) {
|
|
|
}
|
|
|
if (cached_has_bits & 0x00000004u) {
|
|
|
set_has_plc_ip_address();
|
|
|
- plc_ip_address_.AssignWithDefault(&::wj::wjManagerParams::_default_plc_ip_address_.get(), from.plc_ip_address_);
|
|
|
+ plc_ip_address_.AssignWithDefault(&::wj::wjManagerParams::_i_give_permission_to_break_this_code_default_plc_ip_address_.get(), from.plc_ip_address_);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -828,14 +790,16 @@ void wjManagerParams::Swap(wjManagerParams* other) {
|
|
|
}
|
|
|
void wjManagerParams::InternalSwap(wjManagerParams* other) {
|
|
|
using std::swap;
|
|
|
- wj_lidar_.InternalSwap(&other->wj_lidar_);
|
|
|
- regions_.InternalSwap(&other->regions_);
|
|
|
- fence_data_path_.Swap(&other->fence_data_path_);
|
|
|
- fence_log_path_.Swap(&other->fence_log_path_);
|
|
|
- plc_ip_address_.Swap(&other->plc_ip_address_);
|
|
|
+ CastToBase(&wj_lidar_)->InternalSwap(CastToBase(&other->wj_lidar_));
|
|
|
+ CastToBase(®ions_)->InternalSwap(CastToBase(&other->regions_));
|
|
|
+ fence_data_path_.Swap(&other->fence_data_path_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
|
|
|
+ GetArenaNoVirtual());
|
|
|
+ fence_log_path_.Swap(&other->fence_log_path_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
|
|
|
+ GetArenaNoVirtual());
|
|
|
+ plc_ip_address_.Swap(&other->plc_ip_address_, &::wj::wjManagerParams::_i_give_permission_to_break_this_code_default_plc_ip_address_.get(),
|
|
|
+ GetArenaNoVirtual());
|
|
|
swap(_has_bits_[0], other->_has_bits_[0]);
|
|
|
_internal_metadata_.Swap(&other->_internal_metadata_);
|
|
|
- swap(_cached_size_, other->_cached_size_);
|
|
|
}
|
|
|
|
|
|
::google::protobuf::Metadata wjManagerParams::GetMetadata() const {
|
|
@@ -857,17 +821,15 @@ const int Region::kMaxyFieldNumber;
|
|
|
|
|
|
Region::Region()
|
|
|
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
|
|
|
- if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
|
|
|
- ::protobuf_wj_5flidar_5fconf_2eproto::InitDefaultsRegion();
|
|
|
- }
|
|
|
+ ::google::protobuf::internal::InitSCC(
|
|
|
+ &protobuf_wj_5flidar_5fconf_2eproto::scc_info_Region.base);
|
|
|
SharedCtor();
|
|
|
// @@protoc_insertion_point(constructor:wj.Region)
|
|
|
}
|
|
|
Region::Region(const Region& from)
|
|
|
: ::google::protobuf::Message(),
|
|
|
_internal_metadata_(NULL),
|
|
|
- _has_bits_(from._has_bits_),
|
|
|
- _cached_size_(0) {
|
|
|
+ _has_bits_(from._has_bits_) {
|
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
::memcpy(&minx_, &from.minx_,
|
|
|
static_cast<size_t>(reinterpret_cast<char*>(&maxy_) -
|
|
@@ -876,7 +838,6 @@ Region::Region(const Region& from)
|
|
|
}
|
|
|
|
|
|
void Region::SharedCtor() {
|
|
|
- _cached_size_ = 0;
|
|
|
::memset(&minx_, 0, static_cast<size_t>(
|
|
|
reinterpret_cast<char*>(&maxy_) -
|
|
|
reinterpret_cast<char*>(&minx_)) + sizeof(maxy_));
|
|
@@ -891,9 +852,7 @@ void Region::SharedDtor() {
|
|
|
}
|
|
|
|
|
|
void Region::SetCachedSize(int size) const {
|
|
|
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
|
- _cached_size_ = size;
|
|
|
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
|
+ _cached_size_.Set(size);
|
|
|
}
|
|
|
const ::google::protobuf::Descriptor* Region::descriptor() {
|
|
|
::protobuf_wj_5flidar_5fconf_2eproto::protobuf_AssignDescriptorsOnce();
|
|
@@ -901,17 +860,10 @@ const ::google::protobuf::Descriptor* Region::descriptor() {
|
|
|
}
|
|
|
|
|
|
const Region& Region::default_instance() {
|
|
|
- ::protobuf_wj_5flidar_5fconf_2eproto::InitDefaultsRegion();
|
|
|
+ ::google::protobuf::internal::InitSCC(&protobuf_wj_5flidar_5fconf_2eproto::scc_info_Region.base);
|
|
|
return *internal_default_instance();
|
|
|
}
|
|
|
|
|
|
-Region* Region::New(::google::protobuf::Arena* arena) const {
|
|
|
- Region* n = new Region;
|
|
|
- if (arena != NULL) {
|
|
|
- arena->Own(n);
|
|
|
- }
|
|
|
- return n;
|
|
|
-}
|
|
|
|
|
|
void Region::Clear() {
|
|
|
// @@protoc_insertion_point(message_clear_start:wj.Region)
|
|
@@ -935,7 +887,7 @@ bool Region::MergePartialFromCodedStream(
|
|
|
::google::protobuf::uint32 tag;
|
|
|
// @@protoc_insertion_point(parse_start:wj.Region)
|
|
|
for (;;) {
|
|
|
- ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
|
|
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
|
|
tag = p.first;
|
|
|
if (!p.second) goto handle_unusual;
|
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
@@ -1137,9 +1089,7 @@ size_t Region::ByteSizeLong() const {
|
|
|
total_size += RequiredFieldsByteSizeFallback();
|
|
|
}
|
|
|
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
|
|
|
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
|
- _cached_size_ = cached_size;
|
|
|
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
|
+ SetCachedSize(cached_size);
|
|
|
return total_size;
|
|
|
}
|
|
|
|
|
@@ -1214,7 +1164,6 @@ void Region::InternalSwap(Region* other) {
|
|
|
swap(maxy_, other->maxy_);
|
|
|
swap(_has_bits_[0], other->_has_bits_[0]);
|
|
|
_internal_metadata_.Swap(&other->_internal_metadata_);
|
|
|
- swap(_cached_size_, other->_cached_size_);
|
|
|
}
|
|
|
|
|
|
::google::protobuf::Metadata Region::GetMetadata() const {
|
|
@@ -1247,17 +1196,15 @@ const int wjLidarParams::kScanLimitFieldNumber;
|
|
|
|
|
|
wjLidarParams::wjLidarParams()
|
|
|
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
|
|
|
- if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
|
|
|
- ::protobuf_wj_5flidar_5fconf_2eproto::InitDefaultswjLidarParams();
|
|
|
- }
|
|
|
+ ::google::protobuf::internal::InitSCC(
|
|
|
+ &protobuf_wj_5flidar_5fconf_2eproto::scc_info_wjLidarParams.base);
|
|
|
SharedCtor();
|
|
|
// @@protoc_insertion_point(constructor:wj.wjLidarParams)
|
|
|
}
|
|
|
wjLidarParams::wjLidarParams(const wjLidarParams& from)
|
|
|
: ::google::protobuf::Message(),
|
|
|
_internal_metadata_(NULL),
|
|
|
- _has_bits_(from._has_bits_),
|
|
|
- _cached_size_(0) {
|
|
|
+ _has_bits_(from._has_bits_) {
|
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
if (from.has_net_config()) {
|
|
|
net_config_ = new ::wj::netConfig(*from.net_config_);
|
|
@@ -1281,7 +1228,6 @@ wjLidarParams::wjLidarParams(const wjLidarParams& from)
|
|
|
}
|
|
|
|
|
|
void wjLidarParams::SharedCtor() {
|
|
|
- _cached_size_ = 0;
|
|
|
::memset(&net_config_, 0, static_cast<size_t>(
|
|
|
reinterpret_cast<char*>(&range_min_) -
|
|
|
reinterpret_cast<char*>(&net_config_)) + sizeof(range_min_));
|
|
@@ -1304,9 +1250,7 @@ void wjLidarParams::SharedDtor() {
|
|
|
}
|
|
|
|
|
|
void wjLidarParams::SetCachedSize(int size) const {
|
|
|
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
|
- _cached_size_ = size;
|
|
|
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
|
+ _cached_size_.Set(size);
|
|
|
}
|
|
|
const ::google::protobuf::Descriptor* wjLidarParams::descriptor() {
|
|
|
::protobuf_wj_5flidar_5fconf_2eproto::protobuf_AssignDescriptorsOnce();
|
|
@@ -1314,17 +1258,10 @@ const ::google::protobuf::Descriptor* wjLidarParams::descriptor() {
|
|
|
}
|
|
|
|
|
|
const wjLidarParams& wjLidarParams::default_instance() {
|
|
|
- ::protobuf_wj_5flidar_5fconf_2eproto::InitDefaultswjLidarParams();
|
|
|
+ ::google::protobuf::internal::InitSCC(&protobuf_wj_5flidar_5fconf_2eproto::scc_info_wjLidarParams.base);
|
|
|
return *internal_default_instance();
|
|
|
}
|
|
|
|
|
|
-wjLidarParams* wjLidarParams::New(::google::protobuf::Arena* arena) const {
|
|
|
- wjLidarParams* n = new wjLidarParams;
|
|
|
- if (arena != NULL) {
|
|
|
- arena->Own(n);
|
|
|
- }
|
|
|
- return n;
|
|
|
-}
|
|
|
|
|
|
void wjLidarParams::Clear() {
|
|
|
// @@protoc_insertion_point(message_clear_start:wj.wjLidarParams)
|
|
@@ -1365,7 +1302,7 @@ bool wjLidarParams::MergePartialFromCodedStream(
|
|
|
::google::protobuf::uint32 tag;
|
|
|
// @@protoc_insertion_point(parse_start:wj.wjLidarParams)
|
|
|
for (;;) {
|
|
|
- ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
|
|
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
|
|
tag = p.first;
|
|
|
if (!p.second) goto handle_unusual;
|
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
@@ -1549,19 +1486,19 @@ void wjLidarParams::SerializeWithCachedSizes(
|
|
|
// required .wj.netConfig net_config = 7;
|
|
|
if (cached_has_bits & 0x00000001u) {
|
|
|
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
|
- 7, *this->net_config_, output);
|
|
|
+ 7, this->_internal_net_config(), output);
|
|
|
}
|
|
|
|
|
|
// required .wj.Transform2d transform = 8;
|
|
|
if (cached_has_bits & 0x00000002u) {
|
|
|
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
|
- 8, *this->transform_, output);
|
|
|
+ 8, this->_internal_transform(), output);
|
|
|
}
|
|
|
|
|
|
// required .wj.scanLimit scan_limit = 9;
|
|
|
if (cached_has_bits & 0x00000004u) {
|
|
|
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
|
- 9, *this->scan_limit_, output);
|
|
|
+ 9, this->_internal_scan_limit(), output);
|
|
|
}
|
|
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
@@ -1613,21 +1550,21 @@ void wjLidarParams::SerializeWithCachedSizes(
|
|
|
if (cached_has_bits & 0x00000001u) {
|
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
|
|
InternalWriteMessageToArray(
|
|
|
- 7, *this->net_config_, deterministic, target);
|
|
|
+ 7, this->_internal_net_config(), deterministic, target);
|
|
|
}
|
|
|
|
|
|
// required .wj.Transform2d transform = 8;
|
|
|
if (cached_has_bits & 0x00000002u) {
|
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
|
|
InternalWriteMessageToArray(
|
|
|
- 8, *this->transform_, deterministic, target);
|
|
|
+ 8, this->_internal_transform(), deterministic, target);
|
|
|
}
|
|
|
|
|
|
// required .wj.scanLimit scan_limit = 9;
|
|
|
if (cached_has_bits & 0x00000004u) {
|
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
|
|
InternalWriteMessageToArray(
|
|
|
- 9, *this->scan_limit_, deterministic, target);
|
|
|
+ 9, this->_internal_scan_limit(), deterministic, target);
|
|
|
}
|
|
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
@@ -1646,21 +1583,21 @@ size_t wjLidarParams::RequiredFieldsByteSizeFallback() const {
|
|
|
// required .wj.netConfig net_config = 7;
|
|
|
total_size += 1 +
|
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
- *this->net_config_);
|
|
|
+ *net_config_);
|
|
|
}
|
|
|
|
|
|
if (has_transform()) {
|
|
|
// required .wj.Transform2d transform = 8;
|
|
|
total_size += 1 +
|
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
- *this->transform_);
|
|
|
+ *transform_);
|
|
|
}
|
|
|
|
|
|
if (has_scan_limit()) {
|
|
|
// required .wj.scanLimit scan_limit = 9;
|
|
|
total_size += 1 +
|
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
- *this->scan_limit_);
|
|
|
+ *scan_limit_);
|
|
|
}
|
|
|
|
|
|
return total_size;
|
|
@@ -1678,17 +1615,17 @@ size_t wjLidarParams::ByteSizeLong() const {
|
|
|
// required .wj.netConfig net_config = 7;
|
|
|
total_size += 1 +
|
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
- *this->net_config_);
|
|
|
+ *net_config_);
|
|
|
|
|
|
// required .wj.Transform2d transform = 8;
|
|
|
total_size += 1 +
|
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
- *this->transform_);
|
|
|
+ *transform_);
|
|
|
|
|
|
// required .wj.scanLimit scan_limit = 9;
|
|
|
total_size += 1 +
|
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
- *this->scan_limit_);
|
|
|
+ *scan_limit_);
|
|
|
|
|
|
} else {
|
|
|
total_size += RequiredFieldsByteSizeFallback();
|
|
@@ -1730,9 +1667,7 @@ size_t wjLidarParams::ByteSizeLong() const {
|
|
|
}
|
|
|
|
|
|
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
|
|
|
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
|
- _cached_size_ = cached_size;
|
|
|
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
|
+ SetCachedSize(cached_size);
|
|
|
return total_size;
|
|
|
}
|
|
|
|
|
@@ -1827,7 +1762,6 @@ void wjLidarParams::InternalSwap(wjLidarParams* other) {
|
|
|
swap(time_increment_, other->time_increment_);
|
|
|
swap(_has_bits_[0], other->_has_bits_[0]);
|
|
|
_internal_metadata_.Swap(&other->_internal_metadata_);
|
|
|
- swap(_cached_size_, other->_cached_size_);
|
|
|
}
|
|
|
|
|
|
::google::protobuf::Metadata wjLidarParams::GetMetadata() const {
|
|
@@ -1847,17 +1781,15 @@ const int netConfig::kPortFieldNumber;
|
|
|
|
|
|
netConfig::netConfig()
|
|
|
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
|
|
|
- if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
|
|
|
- ::protobuf_wj_5flidar_5fconf_2eproto::InitDefaultsnetConfig();
|
|
|
- }
|
|
|
+ ::google::protobuf::internal::InitSCC(
|
|
|
+ &protobuf_wj_5flidar_5fconf_2eproto::scc_info_netConfig.base);
|
|
|
SharedCtor();
|
|
|
// @@protoc_insertion_point(constructor:wj.netConfig)
|
|
|
}
|
|
|
netConfig::netConfig(const netConfig& from)
|
|
|
: ::google::protobuf::Message(),
|
|
|
_internal_metadata_(NULL),
|
|
|
- _has_bits_(from._has_bits_),
|
|
|
- _cached_size_(0) {
|
|
|
+ _has_bits_(from._has_bits_) {
|
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
ip_address_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
if (from.has_ip_address()) {
|
|
@@ -1868,7 +1800,6 @@ netConfig::netConfig(const netConfig& from)
|
|
|
}
|
|
|
|
|
|
void netConfig::SharedCtor() {
|
|
|
- _cached_size_ = 0;
|
|
|
ip_address_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
port_ = 8000;
|
|
|
}
|
|
@@ -1883,9 +1814,7 @@ void netConfig::SharedDtor() {
|
|
|
}
|
|
|
|
|
|
void netConfig::SetCachedSize(int size) const {
|
|
|
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
|
- _cached_size_ = size;
|
|
|
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
|
+ _cached_size_.Set(size);
|
|
|
}
|
|
|
const ::google::protobuf::Descriptor* netConfig::descriptor() {
|
|
|
::protobuf_wj_5flidar_5fconf_2eproto::protobuf_AssignDescriptorsOnce();
|
|
@@ -1893,17 +1822,10 @@ const ::google::protobuf::Descriptor* netConfig::descriptor() {
|
|
|
}
|
|
|
|
|
|
const netConfig& netConfig::default_instance() {
|
|
|
- ::protobuf_wj_5flidar_5fconf_2eproto::InitDefaultsnetConfig();
|
|
|
+ ::google::protobuf::internal::InitSCC(&protobuf_wj_5flidar_5fconf_2eproto::scc_info_netConfig.base);
|
|
|
return *internal_default_instance();
|
|
|
}
|
|
|
|
|
|
-netConfig* netConfig::New(::google::protobuf::Arena* arena) const {
|
|
|
- netConfig* n = new netConfig;
|
|
|
- if (arena != NULL) {
|
|
|
- arena->Own(n);
|
|
|
- }
|
|
|
- return n;
|
|
|
-}
|
|
|
|
|
|
void netConfig::Clear() {
|
|
|
// @@protoc_insertion_point(message_clear_start:wj.netConfig)
|
|
@@ -1914,8 +1836,7 @@ void netConfig::Clear() {
|
|
|
cached_has_bits = _has_bits_[0];
|
|
|
if (cached_has_bits & 3u) {
|
|
|
if (cached_has_bits & 0x00000001u) {
|
|
|
- GOOGLE_DCHECK(!ip_address_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
|
|
|
- (*ip_address_.UnsafeRawStringPointer())->clear();
|
|
|
+ ip_address_.ClearNonDefaultToEmptyNoArena();
|
|
|
}
|
|
|
port_ = 8000;
|
|
|
}
|
|
@@ -1929,7 +1850,7 @@ bool netConfig::MergePartialFromCodedStream(
|
|
|
::google::protobuf::uint32 tag;
|
|
|
// @@protoc_insertion_point(parse_start:wj.netConfig)
|
|
|
for (;;) {
|
|
|
- ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
|
|
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
|
|
tag = p.first;
|
|
|
if (!p.second) goto handle_unusual;
|
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
@@ -2070,9 +1991,7 @@ size_t netConfig::ByteSizeLong() const {
|
|
|
|
|
|
}
|
|
|
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
|
|
|
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
|
- _cached_size_ = cached_size;
|
|
|
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
|
+ SetCachedSize(cached_size);
|
|
|
return total_size;
|
|
|
}
|
|
|
|
|
@@ -2135,11 +2054,11 @@ void netConfig::Swap(netConfig* other) {
|
|
|
}
|
|
|
void netConfig::InternalSwap(netConfig* other) {
|
|
|
using std::swap;
|
|
|
- ip_address_.Swap(&other->ip_address_);
|
|
|
+ ip_address_.Swap(&other->ip_address_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
|
|
|
+ GetArenaNoVirtual());
|
|
|
swap(port_, other->port_);
|
|
|
swap(_has_bits_[0], other->_has_bits_[0]);
|
|
|
_internal_metadata_.Swap(&other->_internal_metadata_);
|
|
|
- swap(_cached_size_, other->_cached_size_);
|
|
|
}
|
|
|
|
|
|
::google::protobuf::Metadata netConfig::GetMetadata() const {
|
|
@@ -2163,17 +2082,15 @@ const int Transform2d::kM12FieldNumber;
|
|
|
|
|
|
Transform2d::Transform2d()
|
|
|
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
|
|
|
- if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
|
|
|
- ::protobuf_wj_5flidar_5fconf_2eproto::InitDefaultsTransform2d();
|
|
|
- }
|
|
|
+ ::google::protobuf::internal::InitSCC(
|
|
|
+ &protobuf_wj_5flidar_5fconf_2eproto::scc_info_Transform2d.base);
|
|
|
SharedCtor();
|
|
|
// @@protoc_insertion_point(constructor:wj.Transform2d)
|
|
|
}
|
|
|
Transform2d::Transform2d(const Transform2d& from)
|
|
|
: ::google::protobuf::Message(),
|
|
|
_internal_metadata_(NULL),
|
|
|
- _has_bits_(from._has_bits_),
|
|
|
- _cached_size_(0) {
|
|
|
+ _has_bits_(from._has_bits_) {
|
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
::memcpy(&m01_, &from.m01_,
|
|
|
static_cast<size_t>(reinterpret_cast<char*>(&m11_) -
|
|
@@ -2182,7 +2099,6 @@ Transform2d::Transform2d(const Transform2d& from)
|
|
|
}
|
|
|
|
|
|
void Transform2d::SharedCtor() {
|
|
|
- _cached_size_ = 0;
|
|
|
::memset(&m01_, 0, static_cast<size_t>(
|
|
|
reinterpret_cast<char*>(&m12_) -
|
|
|
reinterpret_cast<char*>(&m01_)) + sizeof(m12_));
|
|
@@ -2199,9 +2115,7 @@ void Transform2d::SharedDtor() {
|
|
|
}
|
|
|
|
|
|
void Transform2d::SetCachedSize(int size) const {
|
|
|
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
|
- _cached_size_ = size;
|
|
|
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
|
+ _cached_size_.Set(size);
|
|
|
}
|
|
|
const ::google::protobuf::Descriptor* Transform2d::descriptor() {
|
|
|
::protobuf_wj_5flidar_5fconf_2eproto::protobuf_AssignDescriptorsOnce();
|
|
@@ -2209,17 +2123,10 @@ const ::google::protobuf::Descriptor* Transform2d::descriptor() {
|
|
|
}
|
|
|
|
|
|
const Transform2d& Transform2d::default_instance() {
|
|
|
- ::protobuf_wj_5flidar_5fconf_2eproto::InitDefaultsTransform2d();
|
|
|
+ ::google::protobuf::internal::InitSCC(&protobuf_wj_5flidar_5fconf_2eproto::scc_info_Transform2d.base);
|
|
|
return *internal_default_instance();
|
|
|
}
|
|
|
|
|
|
-Transform2d* Transform2d::New(::google::protobuf::Arena* arena) const {
|
|
|
- Transform2d* n = new Transform2d;
|
|
|
- if (arena != NULL) {
|
|
|
- arena->Own(n);
|
|
|
- }
|
|
|
- return n;
|
|
|
-}
|
|
|
|
|
|
void Transform2d::Clear() {
|
|
|
// @@protoc_insertion_point(message_clear_start:wj.Transform2d)
|
|
@@ -2245,7 +2152,7 @@ bool Transform2d::MergePartialFromCodedStream(
|
|
|
::google::protobuf::uint32 tag;
|
|
|
// @@protoc_insertion_point(parse_start:wj.Transform2d)
|
|
|
for (;;) {
|
|
|
- ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
|
|
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
|
|
tag = p.first;
|
|
|
if (!p.second) goto handle_unusual;
|
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
@@ -2485,9 +2392,7 @@ size_t Transform2d::ByteSizeLong() const {
|
|
|
|
|
|
}
|
|
|
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
|
|
|
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
|
- _cached_size_ = cached_size;
|
|
|
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
|
+ SetCachedSize(cached_size);
|
|
|
return total_size;
|
|
|
}
|
|
|
|
|
@@ -2569,7 +2474,6 @@ void Transform2d::InternalSwap(Transform2d* other) {
|
|
|
swap(m11_, other->m11_);
|
|
|
swap(_has_bits_[0], other->_has_bits_[0]);
|
|
|
_internal_metadata_.Swap(&other->_internal_metadata_);
|
|
|
- swap(_cached_size_, other->_cached_size_);
|
|
|
}
|
|
|
|
|
|
::google::protobuf::Metadata Transform2d::GetMetadata() const {
|
|
@@ -2592,17 +2496,15 @@ const int scanLimit::kMaxyFieldNumber;
|
|
|
|
|
|
scanLimit::scanLimit()
|
|
|
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
|
|
|
- if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
|
|
|
- ::protobuf_wj_5flidar_5fconf_2eproto::InitDefaultsscanLimit();
|
|
|
- }
|
|
|
+ ::google::protobuf::internal::InitSCC(
|
|
|
+ &protobuf_wj_5flidar_5fconf_2eproto::scc_info_scanLimit.base);
|
|
|
SharedCtor();
|
|
|
// @@protoc_insertion_point(constructor:wj.scanLimit)
|
|
|
}
|
|
|
scanLimit::scanLimit(const scanLimit& from)
|
|
|
: ::google::protobuf::Message(),
|
|
|
_internal_metadata_(NULL),
|
|
|
- _has_bits_(from._has_bits_),
|
|
|
- _cached_size_(0) {
|
|
|
+ _has_bits_(from._has_bits_) {
|
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
::memcpy(&maxy_, &from.maxy_,
|
|
|
static_cast<size_t>(reinterpret_cast<char*>(&miny_) -
|
|
@@ -2611,7 +2513,6 @@ scanLimit::scanLimit(const scanLimit& from)
|
|
|
}
|
|
|
|
|
|
void scanLimit::SharedCtor() {
|
|
|
- _cached_size_ = 0;
|
|
|
maxy_ = 3.5f;
|
|
|
dist_limit_ = 8;
|
|
|
minx_ = -6;
|
|
@@ -2628,9 +2529,7 @@ void scanLimit::SharedDtor() {
|
|
|
}
|
|
|
|
|
|
void scanLimit::SetCachedSize(int size) const {
|
|
|
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
|
- _cached_size_ = size;
|
|
|
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
|
+ _cached_size_.Set(size);
|
|
|
}
|
|
|
const ::google::protobuf::Descriptor* scanLimit::descriptor() {
|
|
|
::protobuf_wj_5flidar_5fconf_2eproto::protobuf_AssignDescriptorsOnce();
|
|
@@ -2638,17 +2537,10 @@ const ::google::protobuf::Descriptor* scanLimit::descriptor() {
|
|
|
}
|
|
|
|
|
|
const scanLimit& scanLimit::default_instance() {
|
|
|
- ::protobuf_wj_5flidar_5fconf_2eproto::InitDefaultsscanLimit();
|
|
|
+ ::google::protobuf::internal::InitSCC(&protobuf_wj_5flidar_5fconf_2eproto::scc_info_scanLimit.base);
|
|
|
return *internal_default_instance();
|
|
|
}
|
|
|
|
|
|
-scanLimit* scanLimit::New(::google::protobuf::Arena* arena) const {
|
|
|
- scanLimit* n = new scanLimit;
|
|
|
- if (arena != NULL) {
|
|
|
- arena->Own(n);
|
|
|
- }
|
|
|
- return n;
|
|
|
-}
|
|
|
|
|
|
void scanLimit::Clear() {
|
|
|
// @@protoc_insertion_point(message_clear_start:wj.scanLimit)
|
|
@@ -2674,7 +2566,7 @@ bool scanLimit::MergePartialFromCodedStream(
|
|
|
::google::protobuf::uint32 tag;
|
|
|
// @@protoc_insertion_point(parse_start:wj.scanLimit)
|
|
|
for (;;) {
|
|
|
- ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
|
|
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
|
|
tag = p.first;
|
|
|
if (!p.second) goto handle_unusual;
|
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
@@ -2885,9 +2777,7 @@ size_t scanLimit::ByteSizeLong() const {
|
|
|
|
|
|
}
|
|
|
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
|
|
|
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
|
- _cached_size_ = cached_size;
|
|
|
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
|
+ SetCachedSize(cached_size);
|
|
|
return total_size;
|
|
|
}
|
|
|
|
|
@@ -2965,7 +2855,6 @@ void scanLimit::InternalSwap(scanLimit* other) {
|
|
|
swap(miny_, other->miny_);
|
|
|
swap(_has_bits_[0], other->_has_bits_[0]);
|
|
|
_internal_metadata_.Swap(&other->_internal_metadata_);
|
|
|
- swap(_cached_size_, other->_cached_size_);
|
|
|
}
|
|
|
|
|
|
::google::protobuf::Metadata scanLimit::GetMetadata() const {
|
|
@@ -2976,5 +2865,27 @@ void scanLimit::InternalSwap(scanLimit* other) {
|
|
|
|
|
|
// @@protoc_insertion_point(namespace_scope)
|
|
|
} // namespace wj
|
|
|
+namespace google {
|
|
|
+namespace protobuf {
|
|
|
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::wj::wjManagerParams* Arena::CreateMaybeMessage< ::wj::wjManagerParams >(Arena* arena) {
|
|
|
+ return Arena::CreateInternal< ::wj::wjManagerParams >(arena);
|
|
|
+}
|
|
|
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::wj::Region* Arena::CreateMaybeMessage< ::wj::Region >(Arena* arena) {
|
|
|
+ return Arena::CreateInternal< ::wj::Region >(arena);
|
|
|
+}
|
|
|
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::wj::wjLidarParams* Arena::CreateMaybeMessage< ::wj::wjLidarParams >(Arena* arena) {
|
|
|
+ return Arena::CreateInternal< ::wj::wjLidarParams >(arena);
|
|
|
+}
|
|
|
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::wj::netConfig* Arena::CreateMaybeMessage< ::wj::netConfig >(Arena* arena) {
|
|
|
+ return Arena::CreateInternal< ::wj::netConfig >(arena);
|
|
|
+}
|
|
|
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::wj::Transform2d* Arena::CreateMaybeMessage< ::wj::Transform2d >(Arena* arena) {
|
|
|
+ return Arena::CreateInternal< ::wj::Transform2d >(arena);
|
|
|
+}
|
|
|
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::wj::scanLimit* Arena::CreateMaybeMessage< ::wj::scanLimit >(Arena* arena) {
|
|
|
+ return Arena::CreateInternal< ::wj::scanLimit >(arena);
|
|
|
+}
|
|
|
+} // namespace protobuf
|
|
|
+} // namespace google
|
|
|
|
|
|
// @@protoc_insertion_point(global_scope)
|