|
@@ -0,0 +1,664 @@
|
|
|
+// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
|
+// source: ground_measure_msg.proto
|
|
|
+
|
|
|
+#include "ground_measure_msg.pb.h"
|
|
|
+
|
|
|
+#include <algorithm>
|
|
|
+
|
|
|
+#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>
|
|
|
+#include <google/protobuf/generated_message_reflection.h>
|
|
|
+#include <google/protobuf/reflection_ops.h>
|
|
|
+#include <google/protobuf/wire_format.h>
|
|
|
+// This is a temporary google only hack
|
|
|
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
|
|
|
+#include "third_party/protobuf/version.h"
|
|
|
+#endif
|
|
|
+// @@protoc_insertion_point(includes)
|
|
|
+namespace message {
|
|
|
+class Ground_measure_statu_msgDefaultTypeInternal {
|
|
|
+ public:
|
|
|
+ ::google::protobuf::internal::ExplicitlyConstructed<Ground_measure_statu_msg>
|
|
|
+ _instance;
|
|
|
+} _Ground_measure_statu_msg_default_instance_;
|
|
|
+} // namespace message
|
|
|
+namespace protobuf_ground_5fmeasure_5fmsg_2eproto {
|
|
|
+void InitDefaultsGround_measure_statu_msgImpl() {
|
|
|
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
+
|
|
|
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
|
|
|
+ ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
|
|
|
+#else
|
|
|
+ ::google::protobuf::internal::InitProtobufDefaults();
|
|
|
+#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
|
|
|
+ protobuf_message_5fbase_2eproto::InitDefaultsBase_info();
|
|
|
+ protobuf_message_5fbase_2eproto::InitDefaultsLocate_information();
|
|
|
+ {
|
|
|
+ void* ptr = &::message::_Ground_measure_statu_msg_default_instance_;
|
|
|
+ new (ptr) ::message::Ground_measure_statu_msg();
|
|
|
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
|
|
|
+ }
|
|
|
+ ::message::Ground_measure_statu_msg::InitAsDefaultInstance();
|
|
|
+}
|
|
|
+
|
|
|
+void InitDefaultsGround_measure_statu_msg() {
|
|
|
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
|
|
|
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsGround_measure_statu_msgImpl);
|
|
|
+}
|
|
|
+
|
|
|
+::google::protobuf::Metadata file_level_metadata[1];
|
|
|
+const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[2];
|
|
|
+
|
|
|
+const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Ground_measure_statu_msg, _has_bits_),
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Ground_measure_statu_msg, _internal_metadata_),
|
|
|
+ ~0u, // no _extensions_
|
|
|
+ ~0u, // no _oneof_case_
|
|
|
+ ~0u, // no _weak_field_map_
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Ground_measure_statu_msg, base_info_),
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Ground_measure_statu_msg, id_),
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Ground_measure_statu_msg, laser_statu_vector_),
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Ground_measure_statu_msg, ground_statu_),
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Ground_measure_statu_msg, locate_information_realtime_),
|
|
|
+ 0,
|
|
|
+ 2,
|
|
|
+ ~0u,
|
|
|
+ 3,
|
|
|
+ 1,
|
|
|
+};
|
|
|
+static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
|
|
|
+ { 0, 10, sizeof(::message::Ground_measure_statu_msg)},
|
|
|
+};
|
|
|
+
|
|
|
+static ::google::protobuf::Message const * const file_default_instances[] = {
|
|
|
+ reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Ground_measure_statu_msg_default_instance_),
|
|
|
+};
|
|
|
+
|
|
|
+void protobuf_AssignDescriptors() {
|
|
|
+ AddDescriptors();
|
|
|
+ ::google::protobuf::MessageFactory* factory = NULL;
|
|
|
+ AssignDescriptors(
|
|
|
+ "ground_measure_msg.proto", schemas, file_default_instances, TableStruct::offsets, factory,
|
|
|
+ file_level_metadata, file_level_enum_descriptors, NULL);
|
|
|
+}
|
|
|
+
|
|
|
+void protobuf_AssignDescriptorsOnce() {
|
|
|
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
|
|
|
+ ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
|
|
|
+}
|
|
|
+
|
|
|
+void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
|
|
|
+void protobuf_RegisterTypes(const ::std::string&) {
|
|
|
+ protobuf_AssignDescriptorsOnce();
|
|
|
+ ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 1);
|
|
|
+}
|
|
|
+
|
|
|
+void AddDescriptorsImpl() {
|
|
|
+ InitDefaults();
|
|
|
+ static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
|
|
|
+ "\n\030ground_measure_msg.proto\022\007message\032\022mes"
|
|
|
+ "sage_base.proto\"\356\001\n\030Ground_measure_statu"
|
|
|
+ "_msg\022%\n\tbase_info\030\001 \002(\0132\022.message.Base_i"
|
|
|
+ "nfo\022\n\n\002id\030\002 \002(\005\0220\n\022laser_statu_vector\030\003 "
|
|
|
+ "\003(\0162\024.message.Laser_statu\022+\n\014ground_stat"
|
|
|
+ "u\030\004 \002(\0162\025.message.Ground_statu\022@\n\033locate"
|
|
|
+ "_information_realtime\030\005 \001(\0132\033.message.Lo"
|
|
|
+ "cate_information*U\n\013Laser_statu\022\024\n\020LASER"
|
|
|
+ "_DISCONNECT\020\000\022\017\n\013LASER_READY\020\001\022\016\n\nLASER_"
|
|
|
+ "BUSY\020\002\022\017\n\013LASER_FAULT\020\003*\201\001\n\014Ground_statu"
|
|
|
+ "\022\013\n\007Nothing\020\000\022\t\n\005Noise\020\001\022\017\n\013Car_correct\020"
|
|
|
+ "\002\022\020\n\014Car_left_out\020\003\022\021\n\rCar_right_out\020\004\022\017"
|
|
|
+ "\n\013Car_top_out\020\005\022\022\n\016Car_bottom_out\020\006"
|
|
|
+ };
|
|
|
+ ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
|
|
|
+ descriptor, 515);
|
|
|
+ ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
|
|
|
+ "ground_measure_msg.proto", &protobuf_RegisterTypes);
|
|
|
+ ::protobuf_message_5fbase_2eproto::AddDescriptors();
|
|
|
+}
|
|
|
+
|
|
|
+void AddDescriptors() {
|
|
|
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
|
|
|
+ ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
|
|
|
+}
|
|
|
+// Force AddDescriptors() to be called at dynamic initialization time.
|
|
|
+struct StaticDescriptorInitializer {
|
|
|
+ StaticDescriptorInitializer() {
|
|
|
+ AddDescriptors();
|
|
|
+ }
|
|
|
+} static_descriptor_initializer;
|
|
|
+} // namespace protobuf_ground_5fmeasure_5fmsg_2eproto
|
|
|
+namespace message {
|
|
|
+const ::google::protobuf::EnumDescriptor* Laser_statu_descriptor() {
|
|
|
+ protobuf_ground_5fmeasure_5fmsg_2eproto::protobuf_AssignDescriptorsOnce();
|
|
|
+ return protobuf_ground_5fmeasure_5fmsg_2eproto::file_level_enum_descriptors[0];
|
|
|
+}
|
|
|
+bool Laser_statu_IsValid(int value) {
|
|
|
+ switch (value) {
|
|
|
+ case 0:
|
|
|
+ case 1:
|
|
|
+ case 2:
|
|
|
+ case 3:
|
|
|
+ return true;
|
|
|
+ default:
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+const ::google::protobuf::EnumDescriptor* Ground_statu_descriptor() {
|
|
|
+ protobuf_ground_5fmeasure_5fmsg_2eproto::protobuf_AssignDescriptorsOnce();
|
|
|
+ return protobuf_ground_5fmeasure_5fmsg_2eproto::file_level_enum_descriptors[1];
|
|
|
+}
|
|
|
+bool Ground_statu_IsValid(int value) {
|
|
|
+ switch (value) {
|
|
|
+ case 0:
|
|
|
+ case 1:
|
|
|
+ case 2:
|
|
|
+ case 3:
|
|
|
+ case 4:
|
|
|
+ case 5:
|
|
|
+ case 6:
|
|
|
+ return true;
|
|
|
+ default:
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+// ===================================================================
|
|
|
+
|
|
|
+void Ground_measure_statu_msg::InitAsDefaultInstance() {
|
|
|
+ ::message::_Ground_measure_statu_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>(
|
|
|
+ ::message::Base_info::internal_default_instance());
|
|
|
+ ::message::_Ground_measure_statu_msg_default_instance_._instance.get_mutable()->locate_information_realtime_ = const_cast< ::message::Locate_information*>(
|
|
|
+ ::message::Locate_information::internal_default_instance());
|
|
|
+}
|
|
|
+void Ground_measure_statu_msg::clear_base_info() {
|
|
|
+ if (base_info_ != NULL) base_info_->Clear();
|
|
|
+ clear_has_base_info();
|
|
|
+}
|
|
|
+void Ground_measure_statu_msg::clear_locate_information_realtime() {
|
|
|
+ if (locate_information_realtime_ != NULL) locate_information_realtime_->Clear();
|
|
|
+ clear_has_locate_information_realtime();
|
|
|
+}
|
|
|
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
+const int Ground_measure_statu_msg::kBaseInfoFieldNumber;
|
|
|
+const int Ground_measure_statu_msg::kIdFieldNumber;
|
|
|
+const int Ground_measure_statu_msg::kLaserStatuVectorFieldNumber;
|
|
|
+const int Ground_measure_statu_msg::kGroundStatuFieldNumber;
|
|
|
+const int Ground_measure_statu_msg::kLocateInformationRealtimeFieldNumber;
|
|
|
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
+
|
|
|
+Ground_measure_statu_msg::Ground_measure_statu_msg()
|
|
|
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
|
|
|
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
|
|
|
+ ::protobuf_ground_5fmeasure_5fmsg_2eproto::InitDefaultsGround_measure_statu_msg();
|
|
|
+ }
|
|
|
+ SharedCtor();
|
|
|
+ // @@protoc_insertion_point(constructor:message.Ground_measure_statu_msg)
|
|
|
+}
|
|
|
+Ground_measure_statu_msg::Ground_measure_statu_msg(const Ground_measure_statu_msg& from)
|
|
|
+ : ::google::protobuf::Message(),
|
|
|
+ _internal_metadata_(NULL),
|
|
|
+ _has_bits_(from._has_bits_),
|
|
|
+ _cached_size_(0),
|
|
|
+ laser_statu_vector_(from.laser_statu_vector_) {
|
|
|
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
+ if (from.has_base_info()) {
|
|
|
+ base_info_ = new ::message::Base_info(*from.base_info_);
|
|
|
+ } else {
|
|
|
+ base_info_ = NULL;
|
|
|
+ }
|
|
|
+ if (from.has_locate_information_realtime()) {
|
|
|
+ locate_information_realtime_ = new ::message::Locate_information(*from.locate_information_realtime_);
|
|
|
+ } else {
|
|
|
+ locate_information_realtime_ = NULL;
|
|
|
+ }
|
|
|
+ ::memcpy(&id_, &from.id_,
|
|
|
+ static_cast<size_t>(reinterpret_cast<char*>(&ground_statu_) -
|
|
|
+ reinterpret_cast<char*>(&id_)) + sizeof(ground_statu_));
|
|
|
+ // @@protoc_insertion_point(copy_constructor:message.Ground_measure_statu_msg)
|
|
|
+}
|
|
|
+
|
|
|
+void Ground_measure_statu_msg::SharedCtor() {
|
|
|
+ _cached_size_ = 0;
|
|
|
+ ::memset(&base_info_, 0, static_cast<size_t>(
|
|
|
+ reinterpret_cast<char*>(&ground_statu_) -
|
|
|
+ reinterpret_cast<char*>(&base_info_)) + sizeof(ground_statu_));
|
|
|
+}
|
|
|
+
|
|
|
+Ground_measure_statu_msg::~Ground_measure_statu_msg() {
|
|
|
+ // @@protoc_insertion_point(destructor:message.Ground_measure_statu_msg)
|
|
|
+ SharedDtor();
|
|
|
+}
|
|
|
+
|
|
|
+void Ground_measure_statu_msg::SharedDtor() {
|
|
|
+ if (this != internal_default_instance()) delete base_info_;
|
|
|
+ if (this != internal_default_instance()) delete locate_information_realtime_;
|
|
|
+}
|
|
|
+
|
|
|
+void Ground_measure_statu_msg::SetCachedSize(int size) const {
|
|
|
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
|
+ _cached_size_ = size;
|
|
|
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
|
+}
|
|
|
+const ::google::protobuf::Descriptor* Ground_measure_statu_msg::descriptor() {
|
|
|
+ ::protobuf_ground_5fmeasure_5fmsg_2eproto::protobuf_AssignDescriptorsOnce();
|
|
|
+ return ::protobuf_ground_5fmeasure_5fmsg_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
|
|
|
+}
|
|
|
+
|
|
|
+const Ground_measure_statu_msg& Ground_measure_statu_msg::default_instance() {
|
|
|
+ ::protobuf_ground_5fmeasure_5fmsg_2eproto::InitDefaultsGround_measure_statu_msg();
|
|
|
+ return *internal_default_instance();
|
|
|
+}
|
|
|
+
|
|
|
+Ground_measure_statu_msg* Ground_measure_statu_msg::New(::google::protobuf::Arena* arena) const {
|
|
|
+ Ground_measure_statu_msg* n = new Ground_measure_statu_msg;
|
|
|
+ if (arena != NULL) {
|
|
|
+ arena->Own(n);
|
|
|
+ }
|
|
|
+ return n;
|
|
|
+}
|
|
|
+
|
|
|
+void Ground_measure_statu_msg::Clear() {
|
|
|
+// @@protoc_insertion_point(message_clear_start:message.Ground_measure_statu_msg)
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ // Prevent compiler warnings about cached_has_bits being unused
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ laser_statu_vector_.Clear();
|
|
|
+ cached_has_bits = _has_bits_[0];
|
|
|
+ if (cached_has_bits & 3u) {
|
|
|
+ if (cached_has_bits & 0x00000001u) {
|
|
|
+ GOOGLE_DCHECK(base_info_ != NULL);
|
|
|
+ base_info_->Clear();
|
|
|
+ }
|
|
|
+ if (cached_has_bits & 0x00000002u) {
|
|
|
+ GOOGLE_DCHECK(locate_information_realtime_ != NULL);
|
|
|
+ locate_information_realtime_->Clear();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (cached_has_bits & 12u) {
|
|
|
+ ::memset(&id_, 0, static_cast<size_t>(
|
|
|
+ reinterpret_cast<char*>(&ground_statu_) -
|
|
|
+ reinterpret_cast<char*>(&id_)) + sizeof(ground_statu_));
|
|
|
+ }
|
|
|
+ _has_bits_.Clear();
|
|
|
+ _internal_metadata_.Clear();
|
|
|
+}
|
|
|
+
|
|
|
+bool Ground_measure_statu_msg::MergePartialFromCodedStream(
|
|
|
+ ::google::protobuf::io::CodedInputStream* input) {
|
|
|
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
|
|
|
+ ::google::protobuf::uint32 tag;
|
|
|
+ // @@protoc_insertion_point(parse_start:message.Ground_measure_statu_msg)
|
|
|
+ for (;;) {
|
|
|
+ ::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)) {
|
|
|
+ // required .message.Base_info base_info = 1;
|
|
|
+ case 1: {
|
|
|
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
|
|
|
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
|
|
|
+ input, mutable_base_info()));
|
|
|
+ } else {
|
|
|
+ goto handle_unusual;
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ }
|
|
|
+
|
|
|
+ // required int32 id = 2;
|
|
|
+ case 2: {
|
|
|
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
+ static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
|
|
|
+ set_has_id();
|
|
|
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
|
+ ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
|
|
|
+ input, &id_)));
|
|
|
+ } else {
|
|
|
+ goto handle_unusual;
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ }
|
|
|
+
|
|
|
+ // repeated .message.Laser_statu laser_statu_vector = 3;
|
|
|
+ case 3: {
|
|
|
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
+ static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
|
|
|
+ int value;
|
|
|
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
|
+ int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
|
|
|
+ input, &value)));
|
|
|
+ if (::message::Laser_statu_IsValid(value)) {
|
|
|
+ add_laser_statu_vector(static_cast< ::message::Laser_statu >(value));
|
|
|
+ } else {
|
|
|
+ mutable_unknown_fields()->AddVarint(
|
|
|
+ 3, static_cast< ::google::protobuf::uint64>(value));
|
|
|
+ }
|
|
|
+ } else if (
|
|
|
+ static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
+ static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
|
|
|
+ DO_((::google::protobuf::internal::WireFormat::ReadPackedEnumPreserveUnknowns(
|
|
|
+ input,
|
|
|
+ 3,
|
|
|
+ ::message::Laser_statu_IsValid,
|
|
|
+ mutable_unknown_fields(),
|
|
|
+ this->mutable_laser_statu_vector())));
|
|
|
+ } else {
|
|
|
+ goto handle_unusual;
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ }
|
|
|
+
|
|
|
+ // required .message.Ground_statu ground_statu = 4;
|
|
|
+ case 4: {
|
|
|
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
+ static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
|
|
|
+ int value;
|
|
|
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
|
+ int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
|
|
|
+ input, &value)));
|
|
|
+ if (::message::Ground_statu_IsValid(value)) {
|
|
|
+ set_ground_statu(static_cast< ::message::Ground_statu >(value));
|
|
|
+ } else {
|
|
|
+ mutable_unknown_fields()->AddVarint(
|
|
|
+ 4, static_cast< ::google::protobuf::uint64>(value));
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ goto handle_unusual;
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ }
|
|
|
+
|
|
|
+ // optional .message.Locate_information locate_information_realtime = 5;
|
|
|
+ case 5: {
|
|
|
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
+ static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
|
|
|
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
|
|
|
+ input, mutable_locate_information_realtime()));
|
|
|
+ } else {
|
|
|
+ goto handle_unusual;
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ }
|
|
|
+
|
|
|
+ default: {
|
|
|
+ handle_unusual:
|
|
|
+ if (tag == 0) {
|
|
|
+ goto success;
|
|
|
+ }
|
|
|
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
|
|
|
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+success:
|
|
|
+ // @@protoc_insertion_point(parse_success:message.Ground_measure_statu_msg)
|
|
|
+ return true;
|
|
|
+failure:
|
|
|
+ // @@protoc_insertion_point(parse_failure:message.Ground_measure_statu_msg)
|
|
|
+ return false;
|
|
|
+#undef DO_
|
|
|
+}
|
|
|
+
|
|
|
+void Ground_measure_statu_msg::SerializeWithCachedSizes(
|
|
|
+ ::google::protobuf::io::CodedOutputStream* output) const {
|
|
|
+ // @@protoc_insertion_point(serialize_start:message.Ground_measure_statu_msg)
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ cached_has_bits = _has_bits_[0];
|
|
|
+ // required .message.Base_info base_info = 1;
|
|
|
+ if (cached_has_bits & 0x00000001u) {
|
|
|
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
|
+ 1, *this->base_info_, output);
|
|
|
+ }
|
|
|
+
|
|
|
+ // required int32 id = 2;
|
|
|
+ if (cached_has_bits & 0x00000004u) {
|
|
|
+ ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->id(), output);
|
|
|
+ }
|
|
|
+
|
|
|
+ // repeated .message.Laser_statu laser_statu_vector = 3;
|
|
|
+ for (int i = 0, n = this->laser_statu_vector_size(); i < n; i++) {
|
|
|
+ ::google::protobuf::internal::WireFormatLite::WriteEnum(
|
|
|
+ 3, this->laser_statu_vector(i), output);
|
|
|
+ }
|
|
|
+
|
|
|
+ // required .message.Ground_statu ground_statu = 4;
|
|
|
+ if (cached_has_bits & 0x00000008u) {
|
|
|
+ ::google::protobuf::internal::WireFormatLite::WriteEnum(
|
|
|
+ 4, this->ground_statu(), output);
|
|
|
+ }
|
|
|
+
|
|
|
+ // optional .message.Locate_information locate_information_realtime = 5;
|
|
|
+ if (cached_has_bits & 0x00000002u) {
|
|
|
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
|
+ 5, *this->locate_information_realtime_, output);
|
|
|
+ }
|
|
|
+
|
|
|
+ if (_internal_metadata_.have_unknown_fields()) {
|
|
|
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
|
|
+ _internal_metadata_.unknown_fields(), output);
|
|
|
+ }
|
|
|
+ // @@protoc_insertion_point(serialize_end:message.Ground_measure_statu_msg)
|
|
|
+}
|
|
|
+
|
|
|
+::google::protobuf::uint8* Ground_measure_statu_msg::InternalSerializeWithCachedSizesToArray(
|
|
|
+ bool deterministic, ::google::protobuf::uint8* target) const {
|
|
|
+ (void)deterministic; // Unused
|
|
|
+ // @@protoc_insertion_point(serialize_to_array_start:message.Ground_measure_statu_msg)
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ cached_has_bits = _has_bits_[0];
|
|
|
+ // required .message.Base_info base_info = 1;
|
|
|
+ if (cached_has_bits & 0x00000001u) {
|
|
|
+ target = ::google::protobuf::internal::WireFormatLite::
|
|
|
+ InternalWriteMessageToArray(
|
|
|
+ 1, *this->base_info_, deterministic, target);
|
|
|
+ }
|
|
|
+
|
|
|
+ // required int32 id = 2;
|
|
|
+ if (cached_has_bits & 0x00000004u) {
|
|
|
+ target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->id(), target);
|
|
|
+ }
|
|
|
+
|
|
|
+ // repeated .message.Laser_statu laser_statu_vector = 3;
|
|
|
+ target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
|
|
|
+ 3, this->laser_statu_vector_, target);
|
|
|
+
|
|
|
+ // required .message.Ground_statu ground_statu = 4;
|
|
|
+ if (cached_has_bits & 0x00000008u) {
|
|
|
+ target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
|
|
|
+ 4, this->ground_statu(), target);
|
|
|
+ }
|
|
|
+
|
|
|
+ // optional .message.Locate_information locate_information_realtime = 5;
|
|
|
+ if (cached_has_bits & 0x00000002u) {
|
|
|
+ target = ::google::protobuf::internal::WireFormatLite::
|
|
|
+ InternalWriteMessageToArray(
|
|
|
+ 5, *this->locate_information_realtime_, deterministic, target);
|
|
|
+ }
|
|
|
+
|
|
|
+ if (_internal_metadata_.have_unknown_fields()) {
|
|
|
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
|
+ _internal_metadata_.unknown_fields(), target);
|
|
|
+ }
|
|
|
+ // @@protoc_insertion_point(serialize_to_array_end:message.Ground_measure_statu_msg)
|
|
|
+ return target;
|
|
|
+}
|
|
|
+
|
|
|
+size_t Ground_measure_statu_msg::RequiredFieldsByteSizeFallback() const {
|
|
|
+// @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Ground_measure_statu_msg)
|
|
|
+ size_t total_size = 0;
|
|
|
+
|
|
|
+ if (has_base_info()) {
|
|
|
+ // required .message.Base_info base_info = 1;
|
|
|
+ total_size += 1 +
|
|
|
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
+ *this->base_info_);
|
|
|
+ }
|
|
|
+
|
|
|
+ if (has_id()) {
|
|
|
+ // required int32 id = 2;
|
|
|
+ total_size += 1 +
|
|
|
+ ::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
|
+ this->id());
|
|
|
+ }
|
|
|
+
|
|
|
+ if (has_ground_statu()) {
|
|
|
+ // required .message.Ground_statu ground_statu = 4;
|
|
|
+ total_size += 1 +
|
|
|
+ ::google::protobuf::internal::WireFormatLite::EnumSize(this->ground_statu());
|
|
|
+ }
|
|
|
+
|
|
|
+ return total_size;
|
|
|
+}
|
|
|
+size_t Ground_measure_statu_msg::ByteSizeLong() const {
|
|
|
+// @@protoc_insertion_point(message_byte_size_start:message.Ground_measure_statu_msg)
|
|
|
+ size_t total_size = 0;
|
|
|
+
|
|
|
+ if (_internal_metadata_.have_unknown_fields()) {
|
|
|
+ total_size +=
|
|
|
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
|
+ _internal_metadata_.unknown_fields());
|
|
|
+ }
|
|
|
+ if (((_has_bits_[0] & 0x0000000d) ^ 0x0000000d) == 0) { // All required fields are present.
|
|
|
+ // required .message.Base_info base_info = 1;
|
|
|
+ total_size += 1 +
|
|
|
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
+ *this->base_info_);
|
|
|
+
|
|
|
+ // required int32 id = 2;
|
|
|
+ total_size += 1 +
|
|
|
+ ::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
|
+ this->id());
|
|
|
+
|
|
|
+ // required .message.Ground_statu ground_statu = 4;
|
|
|
+ total_size += 1 +
|
|
|
+ ::google::protobuf::internal::WireFormatLite::EnumSize(this->ground_statu());
|
|
|
+
|
|
|
+ } else {
|
|
|
+ total_size += RequiredFieldsByteSizeFallback();
|
|
|
+ }
|
|
|
+ // repeated .message.Laser_statu laser_statu_vector = 3;
|
|
|
+ {
|
|
|
+ size_t data_size = 0;
|
|
|
+ unsigned int count = static_cast<unsigned int>(this->laser_statu_vector_size());for (unsigned int i = 0; i < count; i++) {
|
|
|
+ data_size += ::google::protobuf::internal::WireFormatLite::EnumSize(
|
|
|
+ this->laser_statu_vector(static_cast<int>(i)));
|
|
|
+ }
|
|
|
+ total_size += (1UL * count) + data_size;
|
|
|
+ }
|
|
|
+
|
|
|
+ // optional .message.Locate_information locate_information_realtime = 5;
|
|
|
+ if (has_locate_information_realtime()) {
|
|
|
+ total_size += 1 +
|
|
|
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
+ *this->locate_information_realtime_);
|
|
|
+ }
|
|
|
+
|
|
|
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
|
|
|
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
|
+ _cached_size_ = cached_size;
|
|
|
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
|
+ return total_size;
|
|
|
+}
|
|
|
+
|
|
|
+void Ground_measure_statu_msg::MergeFrom(const ::google::protobuf::Message& from) {
|
|
|
+// @@protoc_insertion_point(generalized_merge_from_start:message.Ground_measure_statu_msg)
|
|
|
+ GOOGLE_DCHECK_NE(&from, this);
|
|
|
+ const Ground_measure_statu_msg* source =
|
|
|
+ ::google::protobuf::internal::DynamicCastToGenerated<const Ground_measure_statu_msg>(
|
|
|
+ &from);
|
|
|
+ if (source == NULL) {
|
|
|
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Ground_measure_statu_msg)
|
|
|
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
|
|
+ } else {
|
|
|
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Ground_measure_statu_msg)
|
|
|
+ MergeFrom(*source);
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+void Ground_measure_statu_msg::MergeFrom(const Ground_measure_statu_msg& from) {
|
|
|
+// @@protoc_insertion_point(class_specific_merge_from_start:message.Ground_measure_statu_msg)
|
|
|
+ GOOGLE_DCHECK_NE(&from, this);
|
|
|
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ laser_statu_vector_.MergeFrom(from.laser_statu_vector_);
|
|
|
+ cached_has_bits = from._has_bits_[0];
|
|
|
+ if (cached_has_bits & 15u) {
|
|
|
+ if (cached_has_bits & 0x00000001u) {
|
|
|
+ mutable_base_info()->::message::Base_info::MergeFrom(from.base_info());
|
|
|
+ }
|
|
|
+ if (cached_has_bits & 0x00000002u) {
|
|
|
+ mutable_locate_information_realtime()->::message::Locate_information::MergeFrom(from.locate_information_realtime());
|
|
|
+ }
|
|
|
+ if (cached_has_bits & 0x00000004u) {
|
|
|
+ id_ = from.id_;
|
|
|
+ }
|
|
|
+ if (cached_has_bits & 0x00000008u) {
|
|
|
+ ground_statu_ = from.ground_statu_;
|
|
|
+ }
|
|
|
+ _has_bits_[0] |= cached_has_bits;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+void Ground_measure_statu_msg::CopyFrom(const ::google::protobuf::Message& from) {
|
|
|
+// @@protoc_insertion_point(generalized_copy_from_start:message.Ground_measure_statu_msg)
|
|
|
+ if (&from == this) return;
|
|
|
+ Clear();
|
|
|
+ MergeFrom(from);
|
|
|
+}
|
|
|
+
|
|
|
+void Ground_measure_statu_msg::CopyFrom(const Ground_measure_statu_msg& from) {
|
|
|
+// @@protoc_insertion_point(class_specific_copy_from_start:message.Ground_measure_statu_msg)
|
|
|
+ if (&from == this) return;
|
|
|
+ Clear();
|
|
|
+ MergeFrom(from);
|
|
|
+}
|
|
|
+
|
|
|
+bool Ground_measure_statu_msg::IsInitialized() const {
|
|
|
+ if ((_has_bits_[0] & 0x0000000d) != 0x0000000d) return false;
|
|
|
+ if (has_base_info()) {
|
|
|
+ if (!this->base_info_->IsInitialized()) return false;
|
|
|
+ }
|
|
|
+ return true;
|
|
|
+}
|
|
|
+
|
|
|
+void Ground_measure_statu_msg::Swap(Ground_measure_statu_msg* other) {
|
|
|
+ if (other == this) return;
|
|
|
+ InternalSwap(other);
|
|
|
+}
|
|
|
+void Ground_measure_statu_msg::InternalSwap(Ground_measure_statu_msg* other) {
|
|
|
+ using std::swap;
|
|
|
+ laser_statu_vector_.InternalSwap(&other->laser_statu_vector_);
|
|
|
+ swap(base_info_, other->base_info_);
|
|
|
+ swap(locate_information_realtime_, other->locate_information_realtime_);
|
|
|
+ swap(id_, other->id_);
|
|
|
+ swap(ground_statu_, other->ground_statu_);
|
|
|
+ swap(_has_bits_[0], other->_has_bits_[0]);
|
|
|
+ _internal_metadata_.Swap(&other->_internal_metadata_);
|
|
|
+ swap(_cached_size_, other->_cached_size_);
|
|
|
+}
|
|
|
+
|
|
|
+::google::protobuf::Metadata Ground_measure_statu_msg::GetMetadata() const {
|
|
|
+ protobuf_ground_5fmeasure_5fmsg_2eproto::protobuf_AssignDescriptorsOnce();
|
|
|
+ return ::protobuf_ground_5fmeasure_5fmsg_2eproto::file_level_metadata[kIndexInFileMessages];
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+// @@protoc_insertion_point(namespace_scope)
|
|
|
+} // namespace message
|
|
|
+
|
|
|
+// @@protoc_insertion_point(global_scope)
|