|
@@ -16,6 +16,7 @@
|
|
|
#include <google/protobuf/port_def.inc>
|
|
|
extern PROTOBUF_INTERNAL_EXPORT_configure_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Box_configure_2eproto;
|
|
|
extern PROTOBUF_INTERNAL_EXPORT_configure_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Calib_parameter_configure_2eproto;
|
|
|
+extern PROTOBUF_INTERNAL_EXPORT_configure_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Communication_configure_configure_2eproto;
|
|
|
extern PROTOBUF_INTERNAL_EXPORT_configure_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_Lidar_configure_configure_2eproto;
|
|
|
namespace ground_region {
|
|
|
class Calib_parameterDefaultTypeInternal {
|
|
@@ -30,6 +31,10 @@ class BoxDefaultTypeInternal {
|
|
|
public:
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<Box> _instance;
|
|
|
} _Box_default_instance_;
|
|
|
+class Communication_configureDefaultTypeInternal {
|
|
|
+ public:
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<Communication_configure> _instance;
|
|
|
+} _Communication_configure_default_instance_;
|
|
|
class ConfigureDefaultTypeInternal {
|
|
|
public:
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<Configure> _instance;
|
|
@@ -63,6 +68,20 @@ static void InitDefaultsscc_info_Calib_parameter_configure_2eproto() {
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Calib_parameter_configure_2eproto =
|
|
|
{{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_Calib_parameter_configure_2eproto}, {}};
|
|
|
|
|
|
+static void InitDefaultsscc_info_Communication_configure_configure_2eproto() {
|
|
|
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
+
|
|
|
+ {
|
|
|
+ void* ptr = &::ground_region::_Communication_configure_default_instance_;
|
|
|
+ new (ptr) ::ground_region::Communication_configure();
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
|
|
|
+ }
|
|
|
+ ::ground_region::Communication_configure::InitAsDefaultInstance();
|
|
|
+}
|
|
|
+
|
|
|
+::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Communication_configure_configure_2eproto =
|
|
|
+ {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_Communication_configure_configure_2eproto}, {}};
|
|
|
+
|
|
|
static void InitDefaultsscc_info_Configure_configure_2eproto() {
|
|
|
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
|
|
@@ -74,10 +93,11 @@ static void InitDefaultsscc_info_Configure_configure_2eproto() {
|
|
|
::ground_region::Configure::InitAsDefaultInstance();
|
|
|
}
|
|
|
|
|
|
-::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_Configure_configure_2eproto =
|
|
|
- {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, 0, InitDefaultsscc_info_Configure_configure_2eproto}, {
|
|
|
+::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_Configure_configure_2eproto =
|
|
|
+ {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 3, 0, InitDefaultsscc_info_Configure_configure_2eproto}, {
|
|
|
&scc_info_Lidar_configure_configure_2eproto.base,
|
|
|
- &scc_info_Box_configure_2eproto.base,}};
|
|
|
+ &scc_info_Box_configure_2eproto.base,
|
|
|
+ &scc_info_Communication_configure_configure_2eproto.base,}};
|
|
|
|
|
|
static void InitDefaultsscc_info_Lidar_configure_configure_2eproto() {
|
|
|
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
@@ -94,7 +114,7 @@ static void InitDefaultsscc_info_Lidar_configure_configure_2eproto() {
|
|
|
{{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_Lidar_configure_configure_2eproto}, {
|
|
|
&scc_info_Calib_parameter_configure_2eproto.base,}};
|
|
|
|
|
|
-static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_configure_2eproto[4];
|
|
|
+static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_configure_2eproto[5];
|
|
|
static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_configure_2eproto = nullptr;
|
|
|
static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_configure_2eproto = nullptr;
|
|
|
|
|
@@ -144,6 +164,15 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_configure_2eproto::offsets[] P
|
|
|
3,
|
|
|
4,
|
|
|
5,
|
|
|
+ PROTOBUF_FIELD_OFFSET(::ground_region::Communication_configure, _has_bits_),
|
|
|
+ PROTOBUF_FIELD_OFFSET(::ground_region::Communication_configure, _internal_metadata_),
|
|
|
+ ~0u, // no _extensions_
|
|
|
+ ~0u, // no _oneof_case_
|
|
|
+ ~0u, // no _weak_field_map_
|
|
|
+ PROTOBUF_FIELD_OFFSET(::ground_region::Communication_configure, ip_),
|
|
|
+ PROTOBUF_FIELD_OFFSET(::ground_region::Communication_configure, port_),
|
|
|
+ 0,
|
|
|
+ 1,
|
|
|
PROTOBUF_FIELD_OFFSET(::ground_region::Configure, _has_bits_),
|
|
|
PROTOBUF_FIELD_OFFSET(::ground_region::Configure, _internal_metadata_),
|
|
|
~0u, // no _extensions_
|
|
@@ -151,20 +180,26 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_configure_2eproto::offsets[] P
|
|
|
~0u, // no _weak_field_map_
|
|
|
PROTOBUF_FIELD_OFFSET(::ground_region::Configure, lidar_),
|
|
|
PROTOBUF_FIELD_OFFSET(::ground_region::Configure, box_),
|
|
|
+ PROTOBUF_FIELD_OFFSET(::ground_region::Configure, id_),
|
|
|
+ PROTOBUF_FIELD_OFFSET(::ground_region::Configure, communication_cfg_),
|
|
|
~0u,
|
|
|
0,
|
|
|
+ 2,
|
|
|
+ 1,
|
|
|
};
|
|
|
static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
|
|
{ 0, 11, sizeof(::ground_region::Calib_parameter)},
|
|
|
{ 17, 25, sizeof(::ground_region::Lidar_configure)},
|
|
|
{ 28, 39, sizeof(::ground_region::Box)},
|
|
|
- { 45, 52, sizeof(::ground_region::Configure)},
|
|
|
+ { 45, 52, sizeof(::ground_region::Communication_configure)},
|
|
|
+ { 54, 63, sizeof(::ground_region::Configure)},
|
|
|
};
|
|
|
|
|
|
static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
|
|
|
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::ground_region::_Calib_parameter_default_instance_),
|
|
|
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::ground_region::_Lidar_configure_default_instance_),
|
|
|
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::ground_region::_Box_default_instance_),
|
|
|
+ reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::ground_region::_Communication_configure_default_instance_),
|
|
|
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::ground_region::_Configure_default_instance_),
|
|
|
};
|
|
|
|
|
@@ -177,24 +212,28 @@ const char descriptor_table_protodef_configure_2eproto[] PROTOBUF_SECTION_VARIAB
|
|
|
".ground_region.Calib_parameter\"Y\n\003Box\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\022\014\n\004minz\030\005 \002(\002\022\014\n\004maxz\030\006 \002("
|
|
|
- "\002\"[\n\tConfigure\022-\n\005lidar\030\001 \003(\0132\036.ground_r"
|
|
|
- "egion.Lidar_configure\022\037\n\003box\030\002 \002(\0132\022.gro"
|
|
|
- "und_region.Box"
|
|
|
+ "\002\"3\n\027Communication_configure\022\n\n\002ip\030\001 \002(\t"
|
|
|
+ "\022\014\n\004port\030\002 \002(\005\"\252\001\n\tConfigure\022-\n\005lidar\030\001 "
|
|
|
+ "\003(\0132\036.ground_region.Lidar_configure\022\037\n\003b"
|
|
|
+ "ox\030\002 \002(\0132\022.ground_region.Box\022\n\n\002id\030\003 \002(\005"
|
|
|
+ "\022A\n\021communication_cfg\030\004 \002(\0132&.ground_reg"
|
|
|
+ "ion.Communication_configure"
|
|
|
;
|
|
|
static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_configure_2eproto_deps[1] = {
|
|
|
};
|
|
|
-static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_configure_2eproto_sccs[4] = {
|
|
|
+static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_configure_2eproto_sccs[5] = {
|
|
|
&scc_info_Box_configure_2eproto.base,
|
|
|
&scc_info_Calib_parameter_configure_2eproto.base,
|
|
|
+ &scc_info_Communication_configure_configure_2eproto.base,
|
|
|
&scc_info_Configure_configure_2eproto.base,
|
|
|
&scc_info_Lidar_configure_configure_2eproto.base,
|
|
|
};
|
|
|
static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_configure_2eproto_once;
|
|
|
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_configure_2eproto = {
|
|
|
- false, false, descriptor_table_protodef_configure_2eproto, "configure.proto", 414,
|
|
|
- &descriptor_table_configure_2eproto_once, descriptor_table_configure_2eproto_sccs, descriptor_table_configure_2eproto_deps, 4, 0,
|
|
|
+ false, false, descriptor_table_protodef_configure_2eproto, "configure.proto", 547,
|
|
|
+ &descriptor_table_configure_2eproto_once, descriptor_table_configure_2eproto_sccs, descriptor_table_configure_2eproto_deps, 5, 0,
|
|
|
schemas, file_default_instances, TableStruct_configure_2eproto::offsets,
|
|
|
- file_level_metadata_configure_2eproto, 4, file_level_enum_descriptors_configure_2eproto, file_level_service_descriptors_configure_2eproto,
|
|
|
+ file_level_metadata_configure_2eproto, 5, file_level_enum_descriptors_configure_2eproto, file_level_service_descriptors_configure_2eproto,
|
|
|
};
|
|
|
|
|
|
// Force running AddDescriptors() at dynamic initialization time.
|
|
@@ -1272,11 +1311,296 @@ void Box::InternalSwap(Box* other) {
|
|
|
}
|
|
|
|
|
|
|
|
|
+// ===================================================================
|
|
|
+
|
|
|
+void Communication_configure::InitAsDefaultInstance() {
|
|
|
+}
|
|
|
+class Communication_configure::_Internal {
|
|
|
+ public:
|
|
|
+ using HasBits = decltype(std::declval<Communication_configure>()._has_bits_);
|
|
|
+ static void set_has_ip(HasBits* has_bits) {
|
|
|
+ (*has_bits)[0] |= 1u;
|
|
|
+ }
|
|
|
+ static void set_has_port(HasBits* has_bits) {
|
|
|
+ (*has_bits)[0] |= 2u;
|
|
|
+ }
|
|
|
+ static bool MissingRequiredFields(const HasBits& has_bits) {
|
|
|
+ return ((has_bits[0] & 0x00000003) ^ 0x00000003) != 0;
|
|
|
+ }
|
|
|
+};
|
|
|
+
|
|
|
+Communication_configure::Communication_configure(::PROTOBUF_NAMESPACE_ID::Arena* arena)
|
|
|
+ : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
|
|
|
+ SharedCtor();
|
|
|
+ RegisterArenaDtor(arena);
|
|
|
+ // @@protoc_insertion_point(arena_constructor:ground_region.Communication_configure)
|
|
|
+}
|
|
|
+Communication_configure::Communication_configure(const Communication_configure& from)
|
|
|
+ : ::PROTOBUF_NAMESPACE_ID::Message(),
|
|
|
+ _has_bits_(from._has_bits_) {
|
|
|
+ _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
|
+ ip_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
|
+ if (from._internal_has_ip()) {
|
|
|
+ ip_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_ip(),
|
|
|
+ GetArena());
|
|
|
+ }
|
|
|
+ port_ = from.port_;
|
|
|
+ // @@protoc_insertion_point(copy_constructor:ground_region.Communication_configure)
|
|
|
+}
|
|
|
+
|
|
|
+void Communication_configure::SharedCtor() {
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Communication_configure_configure_2eproto.base);
|
|
|
+ ip_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
|
+ port_ = 0;
|
|
|
+}
|
|
|
+
|
|
|
+Communication_configure::~Communication_configure() {
|
|
|
+ // @@protoc_insertion_point(destructor:ground_region.Communication_configure)
|
|
|
+ SharedDtor();
|
|
|
+ _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
|
|
+}
|
|
|
+
|
|
|
+void Communication_configure::SharedDtor() {
|
|
|
+ GOOGLE_DCHECK(GetArena() == nullptr);
|
|
|
+ ip_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
|
+}
|
|
|
+
|
|
|
+void Communication_configure::ArenaDtor(void* object) {
|
|
|
+ Communication_configure* _this = reinterpret_cast< Communication_configure* >(object);
|
|
|
+ (void)_this;
|
|
|
+}
|
|
|
+void Communication_configure::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
|
|
|
+}
|
|
|
+void Communication_configure::SetCachedSize(int size) const {
|
|
|
+ _cached_size_.Set(size);
|
|
|
+}
|
|
|
+const Communication_configure& Communication_configure::default_instance() {
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Communication_configure_configure_2eproto.base);
|
|
|
+ return *internal_default_instance();
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+void Communication_configure::Clear() {
|
|
|
+// @@protoc_insertion_point(message_clear_start:ground_region.Communication_configure)
|
|
|
+ ::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 & 0x00000001u) {
|
|
|
+ ip_.ClearNonDefaultToEmpty();
|
|
|
+ }
|
|
|
+ port_ = 0;
|
|
|
+ _has_bits_.Clear();
|
|
|
+ _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
|
|
+}
|
|
|
+
|
|
|
+const char* Communication_configure::_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 string ip = 1;
|
|
|
+ case 1:
|
|
|
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
|
|
|
+ auto str = _internal_mutable_ip();
|
|
|
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
|
|
|
+ #ifndef NDEBUG
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "ground_region.Communication_configure.ip");
|
|
|
+ #endif // !NDEBUG
|
|
|
+ CHK_(ptr);
|
|
|
+ } else goto handle_unusual;
|
|
|
+ continue;
|
|
|
+ // required int32 port = 2;
|
|
|
+ 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* Communication_configure::_InternalSerialize(
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
|
|
+ // @@protoc_insertion_point(serialize_to_array_start:ground_region.Communication_configure)
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ cached_has_bits = _has_bits_[0];
|
|
|
+ // required string ip = 1;
|
|
|
+ if (cached_has_bits & 0x00000001u) {
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
|
+ this->_internal_ip().data(), static_cast<int>(this->_internal_ip().length()),
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
|
|
|
+ "ground_region.Communication_configure.ip");
|
|
|
+ target = stream->WriteStringMaybeAliased(
|
|
|
+ 1, this->_internal_ip(), target);
|
|
|
+ }
|
|
|
+
|
|
|
+ // required int32 port = 2;
|
|
|
+ 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:ground_region.Communication_configure)
|
|
|
+ return target;
|
|
|
+}
|
|
|
+
|
|
|
+size_t Communication_configure::RequiredFieldsByteSizeFallback() const {
|
|
|
+// @@protoc_insertion_point(required_fields_byte_size_fallback_start:ground_region.Communication_configure)
|
|
|
+ size_t total_size = 0;
|
|
|
+
|
|
|
+ if (_internal_has_ip()) {
|
|
|
+ // required string ip = 1;
|
|
|
+ total_size += 1 +
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
|
+ this->_internal_ip());
|
|
|
+ }
|
|
|
+
|
|
|
+ if (_internal_has_port()) {
|
|
|
+ // required int32 port = 2;
|
|
|
+ total_size += 1 +
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
|
|
|
+ this->_internal_port());
|
|
|
+ }
|
|
|
+
|
|
|
+ return total_size;
|
|
|
+}
|
|
|
+size_t Communication_configure::ByteSizeLong() const {
|
|
|
+// @@protoc_insertion_point(message_byte_size_start:ground_region.Communication_configure)
|
|
|
+ size_t total_size = 0;
|
|
|
+
|
|
|
+ if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present.
|
|
|
+ // required string ip = 1;
|
|
|
+ total_size += 1 +
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
|
+ this->_internal_ip());
|
|
|
+
|
|
|
+ // required int32 port = 2;
|
|
|
+ total_size += 1 +
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
|
|
|
+ this->_internal_port());
|
|
|
+
|
|
|
+ } 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 Communication_configure::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
|
|
+// @@protoc_insertion_point(generalized_merge_from_start:ground_region.Communication_configure)
|
|
|
+ GOOGLE_DCHECK_NE(&from, this);
|
|
|
+ const Communication_configure* source =
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<Communication_configure>(
|
|
|
+ &from);
|
|
|
+ if (source == nullptr) {
|
|
|
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:ground_region.Communication_configure)
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
|
|
|
+ } else {
|
|
|
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:ground_region.Communication_configure)
|
|
|
+ MergeFrom(*source);
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+void Communication_configure::MergeFrom(const Communication_configure& from) {
|
|
|
+// @@protoc_insertion_point(class_specific_merge_from_start:ground_region.Communication_configure)
|
|
|
+ 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(from._internal_ip());
|
|
|
+ }
|
|
|
+ if (cached_has_bits & 0x00000002u) {
|
|
|
+ port_ = from.port_;
|
|
|
+ }
|
|
|
+ _has_bits_[0] |= cached_has_bits;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+void Communication_configure::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
|
|
+// @@protoc_insertion_point(generalized_copy_from_start:ground_region.Communication_configure)
|
|
|
+ if (&from == this) return;
|
|
|
+ Clear();
|
|
|
+ MergeFrom(from);
|
|
|
+}
|
|
|
+
|
|
|
+void Communication_configure::CopyFrom(const Communication_configure& from) {
|
|
|
+// @@protoc_insertion_point(class_specific_copy_from_start:ground_region.Communication_configure)
|
|
|
+ if (&from == this) return;
|
|
|
+ Clear();
|
|
|
+ MergeFrom(from);
|
|
|
+}
|
|
|
+
|
|
|
+bool Communication_configure::IsInitialized() const {
|
|
|
+ if (_Internal::MissingRequiredFields(_has_bits_)) return false;
|
|
|
+ return true;
|
|
|
+}
|
|
|
+
|
|
|
+void Communication_configure::InternalSwap(Communication_configure* other) {
|
|
|
+ using std::swap;
|
|
|
+ _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
|
|
|
+ swap(_has_bits_[0], other->_has_bits_[0]);
|
|
|
+ ip_.Swap(&other->ip_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
|
+ swap(port_, other->port_);
|
|
|
+}
|
|
|
+
|
|
|
+::PROTOBUF_NAMESPACE_ID::Metadata Communication_configure::GetMetadata() const {
|
|
|
+ return GetMetadataStatic();
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
// ===================================================================
|
|
|
|
|
|
void Configure::InitAsDefaultInstance() {
|
|
|
::ground_region::_Configure_default_instance_._instance.get_mutable()->box_ = const_cast< ::ground_region::Box*>(
|
|
|
::ground_region::Box::internal_default_instance());
|
|
|
+ ::ground_region::_Configure_default_instance_._instance.get_mutable()->communication_cfg_ = const_cast< ::ground_region::Communication_configure*>(
|
|
|
+ ::ground_region::Communication_configure::internal_default_instance());
|
|
|
}
|
|
|
class Configure::_Internal {
|
|
|
public:
|
|
@@ -1285,8 +1609,15 @@ class Configure::_Internal {
|
|
|
static void set_has_box(HasBits* has_bits) {
|
|
|
(*has_bits)[0] |= 1u;
|
|
|
}
|
|
|
+ static void set_has_id(HasBits* has_bits) {
|
|
|
+ (*has_bits)[0] |= 4u;
|
|
|
+ }
|
|
|
+ static const ::ground_region::Communication_configure& communication_cfg(const Configure* msg);
|
|
|
+ static void set_has_communication_cfg(HasBits* has_bits) {
|
|
|
+ (*has_bits)[0] |= 2u;
|
|
|
+ }
|
|
|
static bool MissingRequiredFields(const HasBits& has_bits) {
|
|
|
- return ((has_bits[0] & 0x00000001) ^ 0x00000001) != 0;
|
|
|
+ return ((has_bits[0] & 0x00000007) ^ 0x00000007) != 0;
|
|
|
}
|
|
|
};
|
|
|
|
|
@@ -1294,6 +1625,10 @@ const ::ground_region::Box&
|
|
|
Configure::_Internal::box(const Configure* msg) {
|
|
|
return *msg->box_;
|
|
|
}
|
|
|
+const ::ground_region::Communication_configure&
|
|
|
+Configure::_Internal::communication_cfg(const Configure* msg) {
|
|
|
+ return *msg->communication_cfg_;
|
|
|
+}
|
|
|
Configure::Configure(::PROTOBUF_NAMESPACE_ID::Arena* arena)
|
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(arena),
|
|
|
lidar_(arena) {
|
|
@@ -1311,12 +1646,20 @@ Configure::Configure(const Configure& from)
|
|
|
} else {
|
|
|
box_ = nullptr;
|
|
|
}
|
|
|
+ if (from._internal_has_communication_cfg()) {
|
|
|
+ communication_cfg_ = new ::ground_region::Communication_configure(*from.communication_cfg_);
|
|
|
+ } else {
|
|
|
+ communication_cfg_ = nullptr;
|
|
|
+ }
|
|
|
+ id_ = from.id_;
|
|
|
// @@protoc_insertion_point(copy_constructor:ground_region.Configure)
|
|
|
}
|
|
|
|
|
|
void Configure::SharedCtor() {
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Configure_configure_2eproto.base);
|
|
|
- box_ = nullptr;
|
|
|
+ ::memset(&box_, 0, static_cast<size_t>(
|
|
|
+ reinterpret_cast<char*>(&id_) -
|
|
|
+ reinterpret_cast<char*>(&box_)) + sizeof(id_));
|
|
|
}
|
|
|
|
|
|
Configure::~Configure() {
|
|
@@ -1328,6 +1671,7 @@ Configure::~Configure() {
|
|
|
void Configure::SharedDtor() {
|
|
|
GOOGLE_DCHECK(GetArena() == nullptr);
|
|
|
if (this != internal_default_instance()) delete box_;
|
|
|
+ if (this != internal_default_instance()) delete communication_cfg_;
|
|
|
}
|
|
|
|
|
|
void Configure::ArenaDtor(void* object) {
|
|
@@ -1353,10 +1697,17 @@ void Configure::Clear() {
|
|
|
|
|
|
lidar_.Clear();
|
|
|
cached_has_bits = _has_bits_[0];
|
|
|
- if (cached_has_bits & 0x00000001u) {
|
|
|
- GOOGLE_DCHECK(box_ != nullptr);
|
|
|
- box_->Clear();
|
|
|
+ if (cached_has_bits & 0x00000003u) {
|
|
|
+ if (cached_has_bits & 0x00000001u) {
|
|
|
+ GOOGLE_DCHECK(box_ != nullptr);
|
|
|
+ box_->Clear();
|
|
|
+ }
|
|
|
+ if (cached_has_bits & 0x00000002u) {
|
|
|
+ GOOGLE_DCHECK(communication_cfg_ != nullptr);
|
|
|
+ communication_cfg_->Clear();
|
|
|
+ }
|
|
|
}
|
|
|
+ id_ = 0;
|
|
|
_has_bits_.Clear();
|
|
|
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
|
|
}
|
|
@@ -1389,6 +1740,21 @@ const char* Configure::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::
|
|
|
CHK_(ptr);
|
|
|
} else goto handle_unusual;
|
|
|
continue;
|
|
|
+ // required int32 id = 3;
|
|
|
+ case 3:
|
|
|
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
|
|
|
+ _Internal::set_has_id(&has_bits);
|
|
|
+ id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
|
|
+ CHK_(ptr);
|
|
|
+ } else goto handle_unusual;
|
|
|
+ continue;
|
|
|
+ // required .ground_region.Communication_configure communication_cfg = 4;
|
|
|
+ case 4:
|
|
|
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
|
|
|
+ ptr = ctx->ParseMessage(_internal_mutable_communication_cfg(), ptr);
|
|
|
+ CHK_(ptr);
|
|
|
+ } else goto handle_unusual;
|
|
|
+ continue;
|
|
|
default: {
|
|
|
handle_unusual:
|
|
|
if ((tag & 7) == 4 || tag == 0) {
|
|
@@ -1435,6 +1801,20 @@ failure:
|
|
|
2, _Internal::box(this), target, stream);
|
|
|
}
|
|
|
|
|
|
+ // required int32 id = 3;
|
|
|
+ if (cached_has_bits & 0x00000004u) {
|
|
|
+ target = stream->EnsureSpace(target);
|
|
|
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_id(), target);
|
|
|
+ }
|
|
|
+
|
|
|
+ // required .ground_region.Communication_configure communication_cfg = 4;
|
|
|
+ if (cached_has_bits & 0x00000002u) {
|
|
|
+ target = stream->EnsureSpace(target);
|
|
|
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
|
+ InternalWriteMessage(
|
|
|
+ 4, _Internal::communication_cfg(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);
|
|
@@ -1443,15 +1823,55 @@ failure:
|
|
|
return target;
|
|
|
}
|
|
|
|
|
|
+size_t Configure::RequiredFieldsByteSizeFallback() const {
|
|
|
+// @@protoc_insertion_point(required_fields_byte_size_fallback_start:ground_region.Configure)
|
|
|
+ size_t total_size = 0;
|
|
|
+
|
|
|
+ if (_internal_has_box()) {
|
|
|
+ // required .ground_region.Box box = 2;
|
|
|
+ total_size += 1 +
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
|
|
+ *box_);
|
|
|
+ }
|
|
|
+
|
|
|
+ if (_internal_has_communication_cfg()) {
|
|
|
+ // required .ground_region.Communication_configure communication_cfg = 4;
|
|
|
+ total_size += 1 +
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
|
|
+ *communication_cfg_);
|
|
|
+ }
|
|
|
+
|
|
|
+ if (_internal_has_id()) {
|
|
|
+ // required int32 id = 3;
|
|
|
+ total_size += 1 +
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
|
|
|
+ this->_internal_id());
|
|
|
+ }
|
|
|
+
|
|
|
+ return total_size;
|
|
|
+}
|
|
|
size_t Configure::ByteSizeLong() const {
|
|
|
// @@protoc_insertion_point(message_byte_size_start:ground_region.Configure)
|
|
|
size_t total_size = 0;
|
|
|
|
|
|
- // required .ground_region.Box box = 2;
|
|
|
- if (_internal_has_box()) {
|
|
|
+ if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present.
|
|
|
+ // required .ground_region.Box box = 2;
|
|
|
total_size += 1 +
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
|
|
*box_);
|
|
|
+
|
|
|
+ // required .ground_region.Communication_configure communication_cfg = 4;
|
|
|
+ total_size += 1 +
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
|
|
+ *communication_cfg_);
|
|
|
+
|
|
|
+ // required int32 id = 3;
|
|
|
+ total_size += 1 +
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
|
|
|
+ this->_internal_id());
|
|
|
+
|
|
|
+ } else {
|
|
|
+ total_size += RequiredFieldsByteSizeFallback();
|
|
|
}
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
@@ -1496,8 +1916,18 @@ void Configure::MergeFrom(const Configure& from) {
|
|
|
(void) cached_has_bits;
|
|
|
|
|
|
lidar_.MergeFrom(from.lidar_);
|
|
|
- if (from._internal_has_box()) {
|
|
|
- _internal_mutable_box()->::ground_region::Box::MergeFrom(from._internal_box());
|
|
|
+ cached_has_bits = from._has_bits_[0];
|
|
|
+ if (cached_has_bits & 0x00000007u) {
|
|
|
+ if (cached_has_bits & 0x00000001u) {
|
|
|
+ _internal_mutable_box()->::ground_region::Box::MergeFrom(from._internal_box());
|
|
|
+ }
|
|
|
+ if (cached_has_bits & 0x00000002u) {
|
|
|
+ _internal_mutable_communication_cfg()->::ground_region::Communication_configure::MergeFrom(from._internal_communication_cfg());
|
|
|
+ }
|
|
|
+ if (cached_has_bits & 0x00000004u) {
|
|
|
+ id_ = from.id_;
|
|
|
+ }
|
|
|
+ _has_bits_[0] |= cached_has_bits;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -1521,6 +1951,9 @@ bool Configure::IsInitialized() const {
|
|
|
if (_internal_has_box()) {
|
|
|
if (!box_->IsInitialized()) return false;
|
|
|
}
|
|
|
+ if (_internal_has_communication_cfg()) {
|
|
|
+ if (!communication_cfg_->IsInitialized()) return false;
|
|
|
+ }
|
|
|
return true;
|
|
|
}
|
|
|
|
|
@@ -1529,7 +1962,12 @@ void Configure::InternalSwap(Configure* other) {
|
|
|
_internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
|
|
|
swap(_has_bits_[0], other->_has_bits_[0]);
|
|
|
lidar_.InternalSwap(&other->lidar_);
|
|
|
- swap(box_, other->box_);
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::internal::memswap<
|
|
|
+ PROTOBUF_FIELD_OFFSET(Configure, id_)
|
|
|
+ + sizeof(Configure::id_)
|
|
|
+ - PROTOBUF_FIELD_OFFSET(Configure, box_)>(
|
|
|
+ reinterpret_cast<char*>(&box_),
|
|
|
+ reinterpret_cast<char*>(&other->box_));
|
|
|
}
|
|
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata Configure::GetMetadata() const {
|
|
@@ -1549,6 +1987,9 @@ template<> PROTOBUF_NOINLINE ::ground_region::Lidar_configure* Arena::CreateMayb
|
|
|
template<> PROTOBUF_NOINLINE ::ground_region::Box* Arena::CreateMaybeMessage< ::ground_region::Box >(Arena* arena) {
|
|
|
return Arena::CreateMessageInternal< ::ground_region::Box >(arena);
|
|
|
}
|
|
|
+template<> PROTOBUF_NOINLINE ::ground_region::Communication_configure* Arena::CreateMaybeMessage< ::ground_region::Communication_configure >(Arena* arena) {
|
|
|
+ return Arena::CreateMessageInternal< ::ground_region::Communication_configure >(arena);
|
|
|
+}
|
|
|
template<> PROTOBUF_NOINLINE ::ground_region::Configure* Arena::CreateMaybeMessage< ::ground_region::Configure >(Arena* arena) {
|
|
|
return Arena::CreateMessageInternal< ::ground_region::Configure >(arena);
|
|
|
}
|