wj_lidar_msg.pb.cc 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: wj_lidar_msg.proto
  3. #include "wj_lidar_msg.pb.h"
  4. #include <algorithm>
  5. #include <google/protobuf/stubs/common.h>
  6. #include <google/protobuf/stubs/port.h>
  7. #include <google/protobuf/stubs/once.h>
  8. #include <google/protobuf/io/coded_stream.h>
  9. #include <google/protobuf/wire_format_lite_inl.h>
  10. #include <google/protobuf/descriptor.h>
  11. #include <google/protobuf/generated_message_reflection.h>
  12. #include <google/protobuf/reflection_ops.h>
  13. #include <google/protobuf/wire_format.h>
  14. // This is a temporary google only hack
  15. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  16. #include "third_party/protobuf/version.h"
  17. #endif
  18. // @@protoc_insertion_point(includes)
  19. namespace wj_lidar_message {
  20. class Terminal_fence_statuDefaultTypeInternal {
  21. public:
  22. ::google::protobuf::internal::ExplicitlyConstructed<Terminal_fence_statu>
  23. _instance;
  24. } _Terminal_fence_statu_default_instance_;
  25. class Fence_statu_messageDefaultTypeInternal {
  26. public:
  27. ::google::protobuf::internal::ExplicitlyConstructed<Fence_statu_message>
  28. _instance;
  29. } _Fence_statu_message_default_instance_;
  30. } // namespace wj_lidar_message
  31. namespace protobuf_wj_5flidar_5fmsg_2eproto {
  32. void InitDefaultsTerminal_fence_statuImpl() {
  33. GOOGLE_PROTOBUF_VERIFY_VERSION;
  34. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  35. ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
  36. #else
  37. ::google::protobuf::internal::InitProtobufDefaults();
  38. #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  39. {
  40. void* ptr = &::wj_lidar_message::_Terminal_fence_statu_default_instance_;
  41. new (ptr) ::wj_lidar_message::Terminal_fence_statu();
  42. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  43. }
  44. ::wj_lidar_message::Terminal_fence_statu::InitAsDefaultInstance();
  45. }
  46. void InitDefaultsTerminal_fence_statu() {
  47. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  48. ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTerminal_fence_statuImpl);
  49. }
  50. void InitDefaultsFence_statu_messageImpl() {
  51. GOOGLE_PROTOBUF_VERIFY_VERSION;
  52. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  53. ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
  54. #else
  55. ::google::protobuf::internal::InitProtobufDefaults();
  56. #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  57. protobuf_wj_5flidar_5fmsg_2eproto::InitDefaultsTerminal_fence_statu();
  58. {
  59. void* ptr = &::wj_lidar_message::_Fence_statu_message_default_instance_;
  60. new (ptr) ::wj_lidar_message::Fence_statu_message();
  61. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  62. }
  63. ::wj_lidar_message::Fence_statu_message::InitAsDefaultInstance();
  64. }
  65. void InitDefaultsFence_statu_message() {
  66. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  67. ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsFence_statu_messageImpl);
  68. }
  69. ::google::protobuf::Metadata file_level_metadata[2];
  70. const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  71. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj_lidar_message::Terminal_fence_statu, _has_bits_),
  72. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj_lidar_message::Terminal_fence_statu, _internal_metadata_),
  73. ~0u, // no _extensions_
  74. ~0u, // no _oneof_case_
  75. ~0u, // no _weak_field_map_
  76. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj_lidar_message::Terminal_fence_statu, terminal_id_),
  77. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj_lidar_message::Terminal_fence_statu, cloud_statu_),
  78. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj_lidar_message::Terminal_fence_statu, position_statu_),
  79. 0,
  80. 1,
  81. 2,
  82. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj_lidar_message::Fence_statu_message, _has_bits_),
  83. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj_lidar_message::Fence_statu_message, _internal_metadata_),
  84. ~0u, // no _extensions_
  85. ~0u, // no _oneof_case_
  86. ~0u, // no _weak_field_map_
  87. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj_lidar_message::Fence_statu_message, fence_statu_),
  88. ~0u,
  89. };
  90. static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  91. { 0, 8, sizeof(::wj_lidar_message::Terminal_fence_statu)},
  92. { 11, 17, sizeof(::wj_lidar_message::Fence_statu_message)},
  93. };
  94. static ::google::protobuf::Message const * const file_default_instances[] = {
  95. reinterpret_cast<const ::google::protobuf::Message*>(&::wj_lidar_message::_Terminal_fence_statu_default_instance_),
  96. reinterpret_cast<const ::google::protobuf::Message*>(&::wj_lidar_message::_Fence_statu_message_default_instance_),
  97. };
  98. void protobuf_AssignDescriptors() {
  99. AddDescriptors();
  100. ::google::protobuf::MessageFactory* factory = NULL;
  101. AssignDescriptors(
  102. "wj_lidar_msg.proto", schemas, file_default_instances, TableStruct::offsets, factory,
  103. file_level_metadata, NULL, NULL);
  104. }
  105. void protobuf_AssignDescriptorsOnce() {
  106. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  107. ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
  108. }
  109. void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
  110. void protobuf_RegisterTypes(const ::std::string&) {
  111. protobuf_AssignDescriptorsOnce();
  112. ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 2);
  113. }
  114. void AddDescriptorsImpl() {
  115. InitDefaults();
  116. static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  117. "\n\022wj_lidar_msg.proto\022\020wj_lidar_message\"X"
  118. "\n\024Terminal_fence_statu\022\023\n\013terminal_id\030\001 "
  119. "\002(\003\022\023\n\013cloud_statu\030\002 \002(\003\022\026\n\016position_sta"
  120. "tu\030\003 \002(\003\"R\n\023Fence_statu_message\022;\n\013fence"
  121. "_statu\030\001 \003(\0132&.wj_lidar_message.Terminal"
  122. "_fence_statu"
  123. };
  124. ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
  125. descriptor, 212);
  126. ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
  127. "wj_lidar_msg.proto", &protobuf_RegisterTypes);
  128. }
  129. void AddDescriptors() {
  130. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  131. ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
  132. }
  133. // Force AddDescriptors() to be called at dynamic initialization time.
  134. struct StaticDescriptorInitializer {
  135. StaticDescriptorInitializer() {
  136. AddDescriptors();
  137. }
  138. } static_descriptor_initializer;
  139. } // namespace protobuf_wj_5flidar_5fmsg_2eproto
  140. namespace wj_lidar_message {
  141. // ===================================================================
  142. void Terminal_fence_statu::InitAsDefaultInstance() {
  143. }
  144. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  145. const int Terminal_fence_statu::kTerminalIdFieldNumber;
  146. const int Terminal_fence_statu::kCloudStatuFieldNumber;
  147. const int Terminal_fence_statu::kPositionStatuFieldNumber;
  148. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  149. Terminal_fence_statu::Terminal_fence_statu()
  150. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  151. if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
  152. ::protobuf_wj_5flidar_5fmsg_2eproto::InitDefaultsTerminal_fence_statu();
  153. }
  154. SharedCtor();
  155. // @@protoc_insertion_point(constructor:wj_lidar_message.Terminal_fence_statu)
  156. }
  157. Terminal_fence_statu::Terminal_fence_statu(const Terminal_fence_statu& from)
  158. : ::google::protobuf::Message(),
  159. _internal_metadata_(NULL),
  160. _has_bits_(from._has_bits_),
  161. _cached_size_(0) {
  162. _internal_metadata_.MergeFrom(from._internal_metadata_);
  163. ::memcpy(&terminal_id_, &from.terminal_id_,
  164. static_cast<size_t>(reinterpret_cast<char*>(&position_statu_) -
  165. reinterpret_cast<char*>(&terminal_id_)) + sizeof(position_statu_));
  166. // @@protoc_insertion_point(copy_constructor:wj_lidar_message.Terminal_fence_statu)
  167. }
  168. void Terminal_fence_statu::SharedCtor() {
  169. _cached_size_ = 0;
  170. ::memset(&terminal_id_, 0, static_cast<size_t>(
  171. reinterpret_cast<char*>(&position_statu_) -
  172. reinterpret_cast<char*>(&terminal_id_)) + sizeof(position_statu_));
  173. }
  174. Terminal_fence_statu::~Terminal_fence_statu() {
  175. // @@protoc_insertion_point(destructor:wj_lidar_message.Terminal_fence_statu)
  176. SharedDtor();
  177. }
  178. void Terminal_fence_statu::SharedDtor() {
  179. }
  180. void Terminal_fence_statu::SetCachedSize(int size) const {
  181. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  182. _cached_size_ = size;
  183. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  184. }
  185. const ::google::protobuf::Descriptor* Terminal_fence_statu::descriptor() {
  186. ::protobuf_wj_5flidar_5fmsg_2eproto::protobuf_AssignDescriptorsOnce();
  187. return ::protobuf_wj_5flidar_5fmsg_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  188. }
  189. const Terminal_fence_statu& Terminal_fence_statu::default_instance() {
  190. ::protobuf_wj_5flidar_5fmsg_2eproto::InitDefaultsTerminal_fence_statu();
  191. return *internal_default_instance();
  192. }
  193. Terminal_fence_statu* Terminal_fence_statu::New(::google::protobuf::Arena* arena) const {
  194. Terminal_fence_statu* n = new Terminal_fence_statu;
  195. if (arena != NULL) {
  196. arena->Own(n);
  197. }
  198. return n;
  199. }
  200. void Terminal_fence_statu::Clear() {
  201. // @@protoc_insertion_point(message_clear_start:wj_lidar_message.Terminal_fence_statu)
  202. ::google::protobuf::uint32 cached_has_bits = 0;
  203. // Prevent compiler warnings about cached_has_bits being unused
  204. (void) cached_has_bits;
  205. cached_has_bits = _has_bits_[0];
  206. if (cached_has_bits & 7u) {
  207. ::memset(&terminal_id_, 0, static_cast<size_t>(
  208. reinterpret_cast<char*>(&position_statu_) -
  209. reinterpret_cast<char*>(&terminal_id_)) + sizeof(position_statu_));
  210. }
  211. _has_bits_.Clear();
  212. _internal_metadata_.Clear();
  213. }
  214. bool Terminal_fence_statu::MergePartialFromCodedStream(
  215. ::google::protobuf::io::CodedInputStream* input) {
  216. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  217. ::google::protobuf::uint32 tag;
  218. // @@protoc_insertion_point(parse_start:wj_lidar_message.Terminal_fence_statu)
  219. for (;;) {
  220. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  221. tag = p.first;
  222. if (!p.second) goto handle_unusual;
  223. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  224. // required int64 terminal_id = 1;
  225. case 1: {
  226. if (static_cast< ::google::protobuf::uint8>(tag) ==
  227. static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
  228. set_has_terminal_id();
  229. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  230. ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
  231. input, &terminal_id_)));
  232. } else {
  233. goto handle_unusual;
  234. }
  235. break;
  236. }
  237. // required int64 cloud_statu = 2;
  238. case 2: {
  239. if (static_cast< ::google::protobuf::uint8>(tag) ==
  240. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  241. set_has_cloud_statu();
  242. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  243. ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
  244. input, &cloud_statu_)));
  245. } else {
  246. goto handle_unusual;
  247. }
  248. break;
  249. }
  250. // required int64 position_statu = 3;
  251. case 3: {
  252. if (static_cast< ::google::protobuf::uint8>(tag) ==
  253. static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
  254. set_has_position_statu();
  255. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  256. ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
  257. input, &position_statu_)));
  258. } else {
  259. goto handle_unusual;
  260. }
  261. break;
  262. }
  263. default: {
  264. handle_unusual:
  265. if (tag == 0) {
  266. goto success;
  267. }
  268. DO_(::google::protobuf::internal::WireFormat::SkipField(
  269. input, tag, _internal_metadata_.mutable_unknown_fields()));
  270. break;
  271. }
  272. }
  273. }
  274. success:
  275. // @@protoc_insertion_point(parse_success:wj_lidar_message.Terminal_fence_statu)
  276. return true;
  277. failure:
  278. // @@protoc_insertion_point(parse_failure:wj_lidar_message.Terminal_fence_statu)
  279. return false;
  280. #undef DO_
  281. }
  282. void Terminal_fence_statu::SerializeWithCachedSizes(
  283. ::google::protobuf::io::CodedOutputStream* output) const {
  284. // @@protoc_insertion_point(serialize_start:wj_lidar_message.Terminal_fence_statu)
  285. ::google::protobuf::uint32 cached_has_bits = 0;
  286. (void) cached_has_bits;
  287. cached_has_bits = _has_bits_[0];
  288. // required int64 terminal_id = 1;
  289. if (cached_has_bits & 0x00000001u) {
  290. ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->terminal_id(), output);
  291. }
  292. // required int64 cloud_statu = 2;
  293. if (cached_has_bits & 0x00000002u) {
  294. ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->cloud_statu(), output);
  295. }
  296. // required int64 position_statu = 3;
  297. if (cached_has_bits & 0x00000004u) {
  298. ::google::protobuf::internal::WireFormatLite::WriteInt64(3, this->position_statu(), output);
  299. }
  300. if (_internal_metadata_.have_unknown_fields()) {
  301. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  302. _internal_metadata_.unknown_fields(), output);
  303. }
  304. // @@protoc_insertion_point(serialize_end:wj_lidar_message.Terminal_fence_statu)
  305. }
  306. ::google::protobuf::uint8* Terminal_fence_statu::InternalSerializeWithCachedSizesToArray(
  307. bool deterministic, ::google::protobuf::uint8* target) const {
  308. (void)deterministic; // Unused
  309. // @@protoc_insertion_point(serialize_to_array_start:wj_lidar_message.Terminal_fence_statu)
  310. ::google::protobuf::uint32 cached_has_bits = 0;
  311. (void) cached_has_bits;
  312. cached_has_bits = _has_bits_[0];
  313. // required int64 terminal_id = 1;
  314. if (cached_has_bits & 0x00000001u) {
  315. target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->terminal_id(), target);
  316. }
  317. // required int64 cloud_statu = 2;
  318. if (cached_has_bits & 0x00000002u) {
  319. target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->cloud_statu(), target);
  320. }
  321. // required int64 position_statu = 3;
  322. if (cached_has_bits & 0x00000004u) {
  323. target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(3, this->position_statu(), target);
  324. }
  325. if (_internal_metadata_.have_unknown_fields()) {
  326. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  327. _internal_metadata_.unknown_fields(), target);
  328. }
  329. // @@protoc_insertion_point(serialize_to_array_end:wj_lidar_message.Terminal_fence_statu)
  330. return target;
  331. }
  332. size_t Terminal_fence_statu::RequiredFieldsByteSizeFallback() const {
  333. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:wj_lidar_message.Terminal_fence_statu)
  334. size_t total_size = 0;
  335. if (has_terminal_id()) {
  336. // required int64 terminal_id = 1;
  337. total_size += 1 +
  338. ::google::protobuf::internal::WireFormatLite::Int64Size(
  339. this->terminal_id());
  340. }
  341. if (has_cloud_statu()) {
  342. // required int64 cloud_statu = 2;
  343. total_size += 1 +
  344. ::google::protobuf::internal::WireFormatLite::Int64Size(
  345. this->cloud_statu());
  346. }
  347. if (has_position_statu()) {
  348. // required int64 position_statu = 3;
  349. total_size += 1 +
  350. ::google::protobuf::internal::WireFormatLite::Int64Size(
  351. this->position_statu());
  352. }
  353. return total_size;
  354. }
  355. size_t Terminal_fence_statu::ByteSizeLong() const {
  356. // @@protoc_insertion_point(message_byte_size_start:wj_lidar_message.Terminal_fence_statu)
  357. size_t total_size = 0;
  358. if (_internal_metadata_.have_unknown_fields()) {
  359. total_size +=
  360. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  361. _internal_metadata_.unknown_fields());
  362. }
  363. if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present.
  364. // required int64 terminal_id = 1;
  365. total_size += 1 +
  366. ::google::protobuf::internal::WireFormatLite::Int64Size(
  367. this->terminal_id());
  368. // required int64 cloud_statu = 2;
  369. total_size += 1 +
  370. ::google::protobuf::internal::WireFormatLite::Int64Size(
  371. this->cloud_statu());
  372. // required int64 position_statu = 3;
  373. total_size += 1 +
  374. ::google::protobuf::internal::WireFormatLite::Int64Size(
  375. this->position_statu());
  376. } else {
  377. total_size += RequiredFieldsByteSizeFallback();
  378. }
  379. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  380. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  381. _cached_size_ = cached_size;
  382. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  383. return total_size;
  384. }
  385. void Terminal_fence_statu::MergeFrom(const ::google::protobuf::Message& from) {
  386. // @@protoc_insertion_point(generalized_merge_from_start:wj_lidar_message.Terminal_fence_statu)
  387. GOOGLE_DCHECK_NE(&from, this);
  388. const Terminal_fence_statu* source =
  389. ::google::protobuf::internal::DynamicCastToGenerated<const Terminal_fence_statu>(
  390. &from);
  391. if (source == NULL) {
  392. // @@protoc_insertion_point(generalized_merge_from_cast_fail:wj_lidar_message.Terminal_fence_statu)
  393. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  394. } else {
  395. // @@protoc_insertion_point(generalized_merge_from_cast_success:wj_lidar_message.Terminal_fence_statu)
  396. MergeFrom(*source);
  397. }
  398. }
  399. void Terminal_fence_statu::MergeFrom(const Terminal_fence_statu& from) {
  400. // @@protoc_insertion_point(class_specific_merge_from_start:wj_lidar_message.Terminal_fence_statu)
  401. GOOGLE_DCHECK_NE(&from, this);
  402. _internal_metadata_.MergeFrom(from._internal_metadata_);
  403. ::google::protobuf::uint32 cached_has_bits = 0;
  404. (void) cached_has_bits;
  405. cached_has_bits = from._has_bits_[0];
  406. if (cached_has_bits & 7u) {
  407. if (cached_has_bits & 0x00000001u) {
  408. terminal_id_ = from.terminal_id_;
  409. }
  410. if (cached_has_bits & 0x00000002u) {
  411. cloud_statu_ = from.cloud_statu_;
  412. }
  413. if (cached_has_bits & 0x00000004u) {
  414. position_statu_ = from.position_statu_;
  415. }
  416. _has_bits_[0] |= cached_has_bits;
  417. }
  418. }
  419. void Terminal_fence_statu::CopyFrom(const ::google::protobuf::Message& from) {
  420. // @@protoc_insertion_point(generalized_copy_from_start:wj_lidar_message.Terminal_fence_statu)
  421. if (&from == this) return;
  422. Clear();
  423. MergeFrom(from);
  424. }
  425. void Terminal_fence_statu::CopyFrom(const Terminal_fence_statu& from) {
  426. // @@protoc_insertion_point(class_specific_copy_from_start:wj_lidar_message.Terminal_fence_statu)
  427. if (&from == this) return;
  428. Clear();
  429. MergeFrom(from);
  430. }
  431. bool Terminal_fence_statu::IsInitialized() const {
  432. if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false;
  433. return true;
  434. }
  435. void Terminal_fence_statu::Swap(Terminal_fence_statu* other) {
  436. if (other == this) return;
  437. InternalSwap(other);
  438. }
  439. void Terminal_fence_statu::InternalSwap(Terminal_fence_statu* other) {
  440. using std::swap;
  441. swap(terminal_id_, other->terminal_id_);
  442. swap(cloud_statu_, other->cloud_statu_);
  443. swap(position_statu_, other->position_statu_);
  444. swap(_has_bits_[0], other->_has_bits_[0]);
  445. _internal_metadata_.Swap(&other->_internal_metadata_);
  446. swap(_cached_size_, other->_cached_size_);
  447. }
  448. ::google::protobuf::Metadata Terminal_fence_statu::GetMetadata() const {
  449. protobuf_wj_5flidar_5fmsg_2eproto::protobuf_AssignDescriptorsOnce();
  450. return ::protobuf_wj_5flidar_5fmsg_2eproto::file_level_metadata[kIndexInFileMessages];
  451. }
  452. // ===================================================================
  453. void Fence_statu_message::InitAsDefaultInstance() {
  454. }
  455. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  456. const int Fence_statu_message::kFenceStatuFieldNumber;
  457. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  458. Fence_statu_message::Fence_statu_message()
  459. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  460. if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
  461. ::protobuf_wj_5flidar_5fmsg_2eproto::InitDefaultsFence_statu_message();
  462. }
  463. SharedCtor();
  464. // @@protoc_insertion_point(constructor:wj_lidar_message.Fence_statu_message)
  465. }
  466. Fence_statu_message::Fence_statu_message(const Fence_statu_message& from)
  467. : ::google::protobuf::Message(),
  468. _internal_metadata_(NULL),
  469. _has_bits_(from._has_bits_),
  470. _cached_size_(0),
  471. fence_statu_(from.fence_statu_) {
  472. _internal_metadata_.MergeFrom(from._internal_metadata_);
  473. // @@protoc_insertion_point(copy_constructor:wj_lidar_message.Fence_statu_message)
  474. }
  475. void Fence_statu_message::SharedCtor() {
  476. _cached_size_ = 0;
  477. }
  478. Fence_statu_message::~Fence_statu_message() {
  479. // @@protoc_insertion_point(destructor:wj_lidar_message.Fence_statu_message)
  480. SharedDtor();
  481. }
  482. void Fence_statu_message::SharedDtor() {
  483. }
  484. void Fence_statu_message::SetCachedSize(int size) const {
  485. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  486. _cached_size_ = size;
  487. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  488. }
  489. const ::google::protobuf::Descriptor* Fence_statu_message::descriptor() {
  490. ::protobuf_wj_5flidar_5fmsg_2eproto::protobuf_AssignDescriptorsOnce();
  491. return ::protobuf_wj_5flidar_5fmsg_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  492. }
  493. const Fence_statu_message& Fence_statu_message::default_instance() {
  494. ::protobuf_wj_5flidar_5fmsg_2eproto::InitDefaultsFence_statu_message();
  495. return *internal_default_instance();
  496. }
  497. Fence_statu_message* Fence_statu_message::New(::google::protobuf::Arena* arena) const {
  498. Fence_statu_message* n = new Fence_statu_message;
  499. if (arena != NULL) {
  500. arena->Own(n);
  501. }
  502. return n;
  503. }
  504. void Fence_statu_message::Clear() {
  505. // @@protoc_insertion_point(message_clear_start:wj_lidar_message.Fence_statu_message)
  506. ::google::protobuf::uint32 cached_has_bits = 0;
  507. // Prevent compiler warnings about cached_has_bits being unused
  508. (void) cached_has_bits;
  509. fence_statu_.Clear();
  510. _has_bits_.Clear();
  511. _internal_metadata_.Clear();
  512. }
  513. bool Fence_statu_message::MergePartialFromCodedStream(
  514. ::google::protobuf::io::CodedInputStream* input) {
  515. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  516. ::google::protobuf::uint32 tag;
  517. // @@protoc_insertion_point(parse_start:wj_lidar_message.Fence_statu_message)
  518. for (;;) {
  519. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  520. tag = p.first;
  521. if (!p.second) goto handle_unusual;
  522. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  523. // repeated .wj_lidar_message.Terminal_fence_statu fence_statu = 1;
  524. case 1: {
  525. if (static_cast< ::google::protobuf::uint8>(tag) ==
  526. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  527. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_fence_statu()));
  528. } else {
  529. goto handle_unusual;
  530. }
  531. break;
  532. }
  533. default: {
  534. handle_unusual:
  535. if (tag == 0) {
  536. goto success;
  537. }
  538. DO_(::google::protobuf::internal::WireFormat::SkipField(
  539. input, tag, _internal_metadata_.mutable_unknown_fields()));
  540. break;
  541. }
  542. }
  543. }
  544. success:
  545. // @@protoc_insertion_point(parse_success:wj_lidar_message.Fence_statu_message)
  546. return true;
  547. failure:
  548. // @@protoc_insertion_point(parse_failure:wj_lidar_message.Fence_statu_message)
  549. return false;
  550. #undef DO_
  551. }
  552. void Fence_statu_message::SerializeWithCachedSizes(
  553. ::google::protobuf::io::CodedOutputStream* output) const {
  554. // @@protoc_insertion_point(serialize_start:wj_lidar_message.Fence_statu_message)
  555. ::google::protobuf::uint32 cached_has_bits = 0;
  556. (void) cached_has_bits;
  557. // repeated .wj_lidar_message.Terminal_fence_statu fence_statu = 1;
  558. for (unsigned int i = 0,
  559. n = static_cast<unsigned int>(this->fence_statu_size()); i < n; i++) {
  560. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  561. 1, this->fence_statu(static_cast<int>(i)), output);
  562. }
  563. if (_internal_metadata_.have_unknown_fields()) {
  564. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  565. _internal_metadata_.unknown_fields(), output);
  566. }
  567. // @@protoc_insertion_point(serialize_end:wj_lidar_message.Fence_statu_message)
  568. }
  569. ::google::protobuf::uint8* Fence_statu_message::InternalSerializeWithCachedSizesToArray(
  570. bool deterministic, ::google::protobuf::uint8* target) const {
  571. (void)deterministic; // Unused
  572. // @@protoc_insertion_point(serialize_to_array_start:wj_lidar_message.Fence_statu_message)
  573. ::google::protobuf::uint32 cached_has_bits = 0;
  574. (void) cached_has_bits;
  575. // repeated .wj_lidar_message.Terminal_fence_statu fence_statu = 1;
  576. for (unsigned int i = 0,
  577. n = static_cast<unsigned int>(this->fence_statu_size()); i < n; i++) {
  578. target = ::google::protobuf::internal::WireFormatLite::
  579. InternalWriteMessageToArray(
  580. 1, this->fence_statu(static_cast<int>(i)), deterministic, target);
  581. }
  582. if (_internal_metadata_.have_unknown_fields()) {
  583. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  584. _internal_metadata_.unknown_fields(), target);
  585. }
  586. // @@protoc_insertion_point(serialize_to_array_end:wj_lidar_message.Fence_statu_message)
  587. return target;
  588. }
  589. size_t Fence_statu_message::ByteSizeLong() const {
  590. // @@protoc_insertion_point(message_byte_size_start:wj_lidar_message.Fence_statu_message)
  591. size_t total_size = 0;
  592. if (_internal_metadata_.have_unknown_fields()) {
  593. total_size +=
  594. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  595. _internal_metadata_.unknown_fields());
  596. }
  597. // repeated .wj_lidar_message.Terminal_fence_statu fence_statu = 1;
  598. {
  599. unsigned int count = static_cast<unsigned int>(this->fence_statu_size());
  600. total_size += 1UL * count;
  601. for (unsigned int i = 0; i < count; i++) {
  602. total_size +=
  603. ::google::protobuf::internal::WireFormatLite::MessageSize(
  604. this->fence_statu(static_cast<int>(i)));
  605. }
  606. }
  607. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  608. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  609. _cached_size_ = cached_size;
  610. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  611. return total_size;
  612. }
  613. void Fence_statu_message::MergeFrom(const ::google::protobuf::Message& from) {
  614. // @@protoc_insertion_point(generalized_merge_from_start:wj_lidar_message.Fence_statu_message)
  615. GOOGLE_DCHECK_NE(&from, this);
  616. const Fence_statu_message* source =
  617. ::google::protobuf::internal::DynamicCastToGenerated<const Fence_statu_message>(
  618. &from);
  619. if (source == NULL) {
  620. // @@protoc_insertion_point(generalized_merge_from_cast_fail:wj_lidar_message.Fence_statu_message)
  621. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  622. } else {
  623. // @@protoc_insertion_point(generalized_merge_from_cast_success:wj_lidar_message.Fence_statu_message)
  624. MergeFrom(*source);
  625. }
  626. }
  627. void Fence_statu_message::MergeFrom(const Fence_statu_message& from) {
  628. // @@protoc_insertion_point(class_specific_merge_from_start:wj_lidar_message.Fence_statu_message)
  629. GOOGLE_DCHECK_NE(&from, this);
  630. _internal_metadata_.MergeFrom(from._internal_metadata_);
  631. ::google::protobuf::uint32 cached_has_bits = 0;
  632. (void) cached_has_bits;
  633. fence_statu_.MergeFrom(from.fence_statu_);
  634. }
  635. void Fence_statu_message::CopyFrom(const ::google::protobuf::Message& from) {
  636. // @@protoc_insertion_point(generalized_copy_from_start:wj_lidar_message.Fence_statu_message)
  637. if (&from == this) return;
  638. Clear();
  639. MergeFrom(from);
  640. }
  641. void Fence_statu_message::CopyFrom(const Fence_statu_message& from) {
  642. // @@protoc_insertion_point(class_specific_copy_from_start:wj_lidar_message.Fence_statu_message)
  643. if (&from == this) return;
  644. Clear();
  645. MergeFrom(from);
  646. }
  647. bool Fence_statu_message::IsInitialized() const {
  648. if (!::google::protobuf::internal::AllAreInitialized(this->fence_statu())) return false;
  649. return true;
  650. }
  651. void Fence_statu_message::Swap(Fence_statu_message* other) {
  652. if (other == this) return;
  653. InternalSwap(other);
  654. }
  655. void Fence_statu_message::InternalSwap(Fence_statu_message* other) {
  656. using std::swap;
  657. fence_statu_.InternalSwap(&other->fence_statu_);
  658. swap(_has_bits_[0], other->_has_bits_[0]);
  659. _internal_metadata_.Swap(&other->_internal_metadata_);
  660. swap(_cached_size_, other->_cached_size_);
  661. }
  662. ::google::protobuf::Metadata Fence_statu_message::GetMetadata() const {
  663. protobuf_wj_5flidar_5fmsg_2eproto::protobuf_AssignDescriptorsOnce();
  664. return ::protobuf_wj_5flidar_5fmsg_2eproto::file_level_metadata[kIndexInFileMessages];
  665. }
  666. // @@protoc_insertion_point(namespace_scope)
  667. } // namespace wj_lidar_message
  668. // @@protoc_insertion_point(global_scope)