wj_lidar_msg.pb.cc 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641
  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/io/coded_stream.h>
  6. #include <google/protobuf/extension_set.h>
  7. #include <google/protobuf/wire_format_lite.h>
  8. #include <google/protobuf/descriptor.h>
  9. #include <google/protobuf/generated_message_reflection.h>
  10. #include <google/protobuf/reflection_ops.h>
  11. #include <google/protobuf/wire_format.h>
  12. // @@protoc_insertion_point(includes)
  13. #include <google/protobuf/port_def.inc>
  14. extern PROTOBUF_INTERNAL_EXPORT_wj_5flidar_5fmsg_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Terminal_fence_statu_wj_5flidar_5fmsg_2eproto;
  15. namespace wj_lidar_message {
  16. class Terminal_fence_statuDefaultTypeInternal {
  17. public:
  18. ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<Terminal_fence_statu> _instance;
  19. } _Terminal_fence_statu_default_instance_;
  20. class Fence_statu_messageDefaultTypeInternal {
  21. public:
  22. ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<Fence_statu_message> _instance;
  23. } _Fence_statu_message_default_instance_;
  24. } // namespace wj_lidar_message
  25. static void InitDefaultsscc_info_Fence_statu_message_wj_5flidar_5fmsg_2eproto() {
  26. GOOGLE_PROTOBUF_VERIFY_VERSION;
  27. {
  28. void* ptr = &::wj_lidar_message::_Fence_statu_message_default_instance_;
  29. new (ptr) ::wj_lidar_message::Fence_statu_message();
  30. ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
  31. }
  32. ::wj_lidar_message::Fence_statu_message::InitAsDefaultInstance();
  33. }
  34. ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_Fence_statu_message_wj_5flidar_5fmsg_2eproto =
  35. {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_Fence_statu_message_wj_5flidar_5fmsg_2eproto}, {
  36. &scc_info_Terminal_fence_statu_wj_5flidar_5fmsg_2eproto.base,}};
  37. static void InitDefaultsscc_info_Terminal_fence_statu_wj_5flidar_5fmsg_2eproto() {
  38. GOOGLE_PROTOBUF_VERIFY_VERSION;
  39. {
  40. void* ptr = &::wj_lidar_message::_Terminal_fence_statu_default_instance_;
  41. new (ptr) ::wj_lidar_message::Terminal_fence_statu();
  42. ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
  43. }
  44. ::wj_lidar_message::Terminal_fence_statu::InitAsDefaultInstance();
  45. }
  46. ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Terminal_fence_statu_wj_5flidar_5fmsg_2eproto =
  47. {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_Terminal_fence_statu_wj_5flidar_5fmsg_2eproto}, {}};
  48. static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_wj_5flidar_5fmsg_2eproto[2];
  49. static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_wj_5flidar_5fmsg_2eproto = nullptr;
  50. static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_wj_5flidar_5fmsg_2eproto = nullptr;
  51. const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_wj_5flidar_5fmsg_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  52. PROTOBUF_FIELD_OFFSET(::wj_lidar_message::Terminal_fence_statu, _has_bits_),
  53. PROTOBUF_FIELD_OFFSET(::wj_lidar_message::Terminal_fence_statu, _internal_metadata_),
  54. ~0u, // no _extensions_
  55. ~0u, // no _oneof_case_
  56. ~0u, // no _weak_field_map_
  57. PROTOBUF_FIELD_OFFSET(::wj_lidar_message::Terminal_fence_statu, terminal_id_),
  58. PROTOBUF_FIELD_OFFSET(::wj_lidar_message::Terminal_fence_statu, cloud_statu_),
  59. PROTOBUF_FIELD_OFFSET(::wj_lidar_message::Terminal_fence_statu, position_statu_),
  60. 0,
  61. 1,
  62. 2,
  63. ~0u, // no _has_bits_
  64. PROTOBUF_FIELD_OFFSET(::wj_lidar_message::Fence_statu_message, _internal_metadata_),
  65. ~0u, // no _extensions_
  66. ~0u, // no _oneof_case_
  67. ~0u, // no _weak_field_map_
  68. PROTOBUF_FIELD_OFFSET(::wj_lidar_message::Fence_statu_message, fence_statu_),
  69. };
  70. static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  71. { 0, 8, sizeof(::wj_lidar_message::Terminal_fence_statu)},
  72. { 11, -1, sizeof(::wj_lidar_message::Fence_statu_message)},
  73. };
  74. static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
  75. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::wj_lidar_message::_Terminal_fence_statu_default_instance_),
  76. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::wj_lidar_message::_Fence_statu_message_default_instance_),
  77. };
  78. const char descriptor_table_protodef_wj_5flidar_5fmsg_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
  79. "\n\022wj_lidar_msg.proto\022\020wj_lidar_message\"X"
  80. "\n\024Terminal_fence_statu\022\023\n\013terminal_id\030\001 "
  81. "\002(\003\022\023\n\013cloud_statu\030\002 \002(\003\022\026\n\016position_sta"
  82. "tu\030\003 \002(\003\"R\n\023Fence_statu_message\022;\n\013fence"
  83. "_statu\030\001 \003(\0132&.wj_lidar_message.Terminal"
  84. "_fence_statu"
  85. ;
  86. static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_wj_5flidar_5fmsg_2eproto_deps[1] = {
  87. };
  88. static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_wj_5flidar_5fmsg_2eproto_sccs[2] = {
  89. &scc_info_Fence_statu_message_wj_5flidar_5fmsg_2eproto.base,
  90. &scc_info_Terminal_fence_statu_wj_5flidar_5fmsg_2eproto.base,
  91. };
  92. static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_wj_5flidar_5fmsg_2eproto_once;
  93. const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_wj_5flidar_5fmsg_2eproto = {
  94. false, false, descriptor_table_protodef_wj_5flidar_5fmsg_2eproto, "wj_lidar_msg.proto", 212,
  95. &descriptor_table_wj_5flidar_5fmsg_2eproto_once, descriptor_table_wj_5flidar_5fmsg_2eproto_sccs, descriptor_table_wj_5flidar_5fmsg_2eproto_deps, 2, 0,
  96. schemas, file_default_instances, TableStruct_wj_5flidar_5fmsg_2eproto::offsets,
  97. file_level_metadata_wj_5flidar_5fmsg_2eproto, 2, file_level_enum_descriptors_wj_5flidar_5fmsg_2eproto, file_level_service_descriptors_wj_5flidar_5fmsg_2eproto,
  98. };
  99. // Force running AddDescriptors() at dynamic initialization time.
  100. static bool dynamic_init_dummy_wj_5flidar_5fmsg_2eproto = (static_cast<void>(::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_wj_5flidar_5fmsg_2eproto)), true);
  101. namespace wj_lidar_message {
  102. // ===================================================================
  103. void Terminal_fence_statu::InitAsDefaultInstance() {
  104. }
  105. class Terminal_fence_statu::_Internal {
  106. public:
  107. using HasBits = decltype(std::declval<Terminal_fence_statu>()._has_bits_);
  108. static void set_has_terminal_id(HasBits* has_bits) {
  109. (*has_bits)[0] |= 1u;
  110. }
  111. static void set_has_cloud_statu(HasBits* has_bits) {
  112. (*has_bits)[0] |= 2u;
  113. }
  114. static void set_has_position_statu(HasBits* has_bits) {
  115. (*has_bits)[0] |= 4u;
  116. }
  117. static bool MissingRequiredFields(const HasBits& has_bits) {
  118. return ((has_bits[0] & 0x00000007) ^ 0x00000007) != 0;
  119. }
  120. };
  121. Terminal_fence_statu::Terminal_fence_statu(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  122. : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
  123. SharedCtor();
  124. RegisterArenaDtor(arena);
  125. // @@protoc_insertion_point(arena_constructor:wj_lidar_message.Terminal_fence_statu)
  126. }
  127. Terminal_fence_statu::Terminal_fence_statu(const Terminal_fence_statu& from)
  128. : ::PROTOBUF_NAMESPACE_ID::Message(),
  129. _has_bits_(from._has_bits_) {
  130. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  131. ::memcpy(&terminal_id_, &from.terminal_id_,
  132. static_cast<size_t>(reinterpret_cast<char*>(&position_statu_) -
  133. reinterpret_cast<char*>(&terminal_id_)) + sizeof(position_statu_));
  134. // @@protoc_insertion_point(copy_constructor:wj_lidar_message.Terminal_fence_statu)
  135. }
  136. void Terminal_fence_statu::SharedCtor() {
  137. ::memset(&terminal_id_, 0, static_cast<size_t>(
  138. reinterpret_cast<char*>(&position_statu_) -
  139. reinterpret_cast<char*>(&terminal_id_)) + sizeof(position_statu_));
  140. }
  141. Terminal_fence_statu::~Terminal_fence_statu() {
  142. // @@protoc_insertion_point(destructor:wj_lidar_message.Terminal_fence_statu)
  143. SharedDtor();
  144. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  145. }
  146. void Terminal_fence_statu::SharedDtor() {
  147. GOOGLE_DCHECK(GetArena() == nullptr);
  148. }
  149. void Terminal_fence_statu::ArenaDtor(void* object) {
  150. Terminal_fence_statu* _this = reinterpret_cast< Terminal_fence_statu* >(object);
  151. (void)_this;
  152. }
  153. void Terminal_fence_statu::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  154. }
  155. void Terminal_fence_statu::SetCachedSize(int size) const {
  156. _cached_size_.Set(size);
  157. }
  158. const Terminal_fence_statu& Terminal_fence_statu::default_instance() {
  159. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Terminal_fence_statu_wj_5flidar_5fmsg_2eproto.base);
  160. return *internal_default_instance();
  161. }
  162. void Terminal_fence_statu::Clear() {
  163. // @@protoc_insertion_point(message_clear_start:wj_lidar_message.Terminal_fence_statu)
  164. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  165. // Prevent compiler warnings about cached_has_bits being unused
  166. (void) cached_has_bits;
  167. cached_has_bits = _has_bits_[0];
  168. if (cached_has_bits & 0x00000007u) {
  169. ::memset(&terminal_id_, 0, static_cast<size_t>(
  170. reinterpret_cast<char*>(&position_statu_) -
  171. reinterpret_cast<char*>(&terminal_id_)) + sizeof(position_statu_));
  172. }
  173. _has_bits_.Clear();
  174. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  175. }
  176. const char* Terminal_fence_statu::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  177. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  178. _Internal::HasBits has_bits{};
  179. ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena;
  180. while (!ctx->Done(&ptr)) {
  181. ::PROTOBUF_NAMESPACE_ID::uint32 tag;
  182. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  183. CHK_(ptr);
  184. switch (tag >> 3) {
  185. // required int64 terminal_id = 1;
  186. case 1:
  187. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
  188. _Internal::set_has_terminal_id(&has_bits);
  189. terminal_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  190. CHK_(ptr);
  191. } else goto handle_unusual;
  192. continue;
  193. // required int64 cloud_statu = 2;
  194. case 2:
  195. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
  196. _Internal::set_has_cloud_statu(&has_bits);
  197. cloud_statu_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  198. CHK_(ptr);
  199. } else goto handle_unusual;
  200. continue;
  201. // required int64 position_statu = 3;
  202. case 3:
  203. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
  204. _Internal::set_has_position_statu(&has_bits);
  205. position_statu_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  206. CHK_(ptr);
  207. } else goto handle_unusual;
  208. continue;
  209. default: {
  210. handle_unusual:
  211. if ((tag & 7) == 4 || tag == 0) {
  212. ctx->SetLastTag(tag);
  213. goto success;
  214. }
  215. ptr = UnknownFieldParse(tag,
  216. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  217. ptr, ctx);
  218. CHK_(ptr != nullptr);
  219. continue;
  220. }
  221. } // switch
  222. } // while
  223. success:
  224. _has_bits_.Or(has_bits);
  225. return ptr;
  226. failure:
  227. ptr = nullptr;
  228. goto success;
  229. #undef CHK_
  230. }
  231. ::PROTOBUF_NAMESPACE_ID::uint8* Terminal_fence_statu::_InternalSerialize(
  232. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  233. // @@protoc_insertion_point(serialize_to_array_start:wj_lidar_message.Terminal_fence_statu)
  234. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  235. (void) cached_has_bits;
  236. cached_has_bits = _has_bits_[0];
  237. // required int64 terminal_id = 1;
  238. if (cached_has_bits & 0x00000001u) {
  239. target = stream->EnsureSpace(target);
  240. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_terminal_id(), target);
  241. }
  242. // required int64 cloud_statu = 2;
  243. if (cached_has_bits & 0x00000002u) {
  244. target = stream->EnsureSpace(target);
  245. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->_internal_cloud_statu(), target);
  246. }
  247. // required int64 position_statu = 3;
  248. if (cached_has_bits & 0x00000004u) {
  249. target = stream->EnsureSpace(target);
  250. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(3, this->_internal_position_statu(), target);
  251. }
  252. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  253. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  254. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  255. }
  256. // @@protoc_insertion_point(serialize_to_array_end:wj_lidar_message.Terminal_fence_statu)
  257. return target;
  258. }
  259. size_t Terminal_fence_statu::RequiredFieldsByteSizeFallback() const {
  260. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:wj_lidar_message.Terminal_fence_statu)
  261. size_t total_size = 0;
  262. if (_internal_has_terminal_id()) {
  263. // required int64 terminal_id = 1;
  264. total_size += 1 +
  265. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
  266. this->_internal_terminal_id());
  267. }
  268. if (_internal_has_cloud_statu()) {
  269. // required int64 cloud_statu = 2;
  270. total_size += 1 +
  271. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
  272. this->_internal_cloud_statu());
  273. }
  274. if (_internal_has_position_statu()) {
  275. // required int64 position_statu = 3;
  276. total_size += 1 +
  277. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
  278. this->_internal_position_statu());
  279. }
  280. return total_size;
  281. }
  282. size_t Terminal_fence_statu::ByteSizeLong() const {
  283. // @@protoc_insertion_point(message_byte_size_start:wj_lidar_message.Terminal_fence_statu)
  284. size_t total_size = 0;
  285. if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present.
  286. // required int64 terminal_id = 1;
  287. total_size += 1 +
  288. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
  289. this->_internal_terminal_id());
  290. // required int64 cloud_statu = 2;
  291. total_size += 1 +
  292. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
  293. this->_internal_cloud_statu());
  294. // required int64 position_statu = 3;
  295. total_size += 1 +
  296. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
  297. this->_internal_position_statu());
  298. } else {
  299. total_size += RequiredFieldsByteSizeFallback();
  300. }
  301. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  302. // Prevent compiler warnings about cached_has_bits being unused
  303. (void) cached_has_bits;
  304. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  305. return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
  306. _internal_metadata_, total_size, &_cached_size_);
  307. }
  308. int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
  309. SetCachedSize(cached_size);
  310. return total_size;
  311. }
  312. void Terminal_fence_statu::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  313. // @@protoc_insertion_point(generalized_merge_from_start:wj_lidar_message.Terminal_fence_statu)
  314. GOOGLE_DCHECK_NE(&from, this);
  315. const Terminal_fence_statu* source =
  316. ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<Terminal_fence_statu>(
  317. &from);
  318. if (source == nullptr) {
  319. // @@protoc_insertion_point(generalized_merge_from_cast_fail:wj_lidar_message.Terminal_fence_statu)
  320. ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
  321. } else {
  322. // @@protoc_insertion_point(generalized_merge_from_cast_success:wj_lidar_message.Terminal_fence_statu)
  323. MergeFrom(*source);
  324. }
  325. }
  326. void Terminal_fence_statu::MergeFrom(const Terminal_fence_statu& from) {
  327. // @@protoc_insertion_point(class_specific_merge_from_start:wj_lidar_message.Terminal_fence_statu)
  328. GOOGLE_DCHECK_NE(&from, this);
  329. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  330. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  331. (void) cached_has_bits;
  332. cached_has_bits = from._has_bits_[0];
  333. if (cached_has_bits & 0x00000007u) {
  334. if (cached_has_bits & 0x00000001u) {
  335. terminal_id_ = from.terminal_id_;
  336. }
  337. if (cached_has_bits & 0x00000002u) {
  338. cloud_statu_ = from.cloud_statu_;
  339. }
  340. if (cached_has_bits & 0x00000004u) {
  341. position_statu_ = from.position_statu_;
  342. }
  343. _has_bits_[0] |= cached_has_bits;
  344. }
  345. }
  346. void Terminal_fence_statu::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  347. // @@protoc_insertion_point(generalized_copy_from_start:wj_lidar_message.Terminal_fence_statu)
  348. if (&from == this) return;
  349. Clear();
  350. MergeFrom(from);
  351. }
  352. void Terminal_fence_statu::CopyFrom(const Terminal_fence_statu& from) {
  353. // @@protoc_insertion_point(class_specific_copy_from_start:wj_lidar_message.Terminal_fence_statu)
  354. if (&from == this) return;
  355. Clear();
  356. MergeFrom(from);
  357. }
  358. bool Terminal_fence_statu::IsInitialized() const {
  359. if (_Internal::MissingRequiredFields(_has_bits_)) return false;
  360. return true;
  361. }
  362. void Terminal_fence_statu::InternalSwap(Terminal_fence_statu* other) {
  363. using std::swap;
  364. _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
  365. swap(_has_bits_[0], other->_has_bits_[0]);
  366. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  367. PROTOBUF_FIELD_OFFSET(Terminal_fence_statu, position_statu_)
  368. + sizeof(Terminal_fence_statu::position_statu_)
  369. - PROTOBUF_FIELD_OFFSET(Terminal_fence_statu, terminal_id_)>(
  370. reinterpret_cast<char*>(&terminal_id_),
  371. reinterpret_cast<char*>(&other->terminal_id_));
  372. }
  373. ::PROTOBUF_NAMESPACE_ID::Metadata Terminal_fence_statu::GetMetadata() const {
  374. return GetMetadataStatic();
  375. }
  376. // ===================================================================
  377. void Fence_statu_message::InitAsDefaultInstance() {
  378. }
  379. class Fence_statu_message::_Internal {
  380. public:
  381. };
  382. Fence_statu_message::Fence_statu_message(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  383. : ::PROTOBUF_NAMESPACE_ID::Message(arena),
  384. fence_statu_(arena) {
  385. SharedCtor();
  386. RegisterArenaDtor(arena);
  387. // @@protoc_insertion_point(arena_constructor:wj_lidar_message.Fence_statu_message)
  388. }
  389. Fence_statu_message::Fence_statu_message(const Fence_statu_message& from)
  390. : ::PROTOBUF_NAMESPACE_ID::Message(),
  391. fence_statu_(from.fence_statu_) {
  392. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  393. // @@protoc_insertion_point(copy_constructor:wj_lidar_message.Fence_statu_message)
  394. }
  395. void Fence_statu_message::SharedCtor() {
  396. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Fence_statu_message_wj_5flidar_5fmsg_2eproto.base);
  397. }
  398. Fence_statu_message::~Fence_statu_message() {
  399. // @@protoc_insertion_point(destructor:wj_lidar_message.Fence_statu_message)
  400. SharedDtor();
  401. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  402. }
  403. void Fence_statu_message::SharedDtor() {
  404. GOOGLE_DCHECK(GetArena() == nullptr);
  405. }
  406. void Fence_statu_message::ArenaDtor(void* object) {
  407. Fence_statu_message* _this = reinterpret_cast< Fence_statu_message* >(object);
  408. (void)_this;
  409. }
  410. void Fence_statu_message::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  411. }
  412. void Fence_statu_message::SetCachedSize(int size) const {
  413. _cached_size_.Set(size);
  414. }
  415. const Fence_statu_message& Fence_statu_message::default_instance() {
  416. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Fence_statu_message_wj_5flidar_5fmsg_2eproto.base);
  417. return *internal_default_instance();
  418. }
  419. void Fence_statu_message::Clear() {
  420. // @@protoc_insertion_point(message_clear_start:wj_lidar_message.Fence_statu_message)
  421. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  422. // Prevent compiler warnings about cached_has_bits being unused
  423. (void) cached_has_bits;
  424. fence_statu_.Clear();
  425. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  426. }
  427. const char* Fence_statu_message::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  428. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  429. ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena;
  430. while (!ctx->Done(&ptr)) {
  431. ::PROTOBUF_NAMESPACE_ID::uint32 tag;
  432. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  433. CHK_(ptr);
  434. switch (tag >> 3) {
  435. // repeated .wj_lidar_message.Terminal_fence_statu fence_statu = 1;
  436. case 1:
  437. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
  438. ptr -= 1;
  439. do {
  440. ptr += 1;
  441. ptr = ctx->ParseMessage(_internal_add_fence_statu(), ptr);
  442. CHK_(ptr);
  443. if (!ctx->DataAvailable(ptr)) break;
  444. } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
  445. } else goto handle_unusual;
  446. continue;
  447. default: {
  448. handle_unusual:
  449. if ((tag & 7) == 4 || tag == 0) {
  450. ctx->SetLastTag(tag);
  451. goto success;
  452. }
  453. ptr = UnknownFieldParse(tag,
  454. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  455. ptr, ctx);
  456. CHK_(ptr != nullptr);
  457. continue;
  458. }
  459. } // switch
  460. } // while
  461. success:
  462. return ptr;
  463. failure:
  464. ptr = nullptr;
  465. goto success;
  466. #undef CHK_
  467. }
  468. ::PROTOBUF_NAMESPACE_ID::uint8* Fence_statu_message::_InternalSerialize(
  469. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  470. // @@protoc_insertion_point(serialize_to_array_start:wj_lidar_message.Fence_statu_message)
  471. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  472. (void) cached_has_bits;
  473. // repeated .wj_lidar_message.Terminal_fence_statu fence_statu = 1;
  474. for (unsigned int i = 0,
  475. n = static_cast<unsigned int>(this->_internal_fence_statu_size()); i < n; i++) {
  476. target = stream->EnsureSpace(target);
  477. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  478. InternalWriteMessage(1, this->_internal_fence_statu(i), target, stream);
  479. }
  480. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  481. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  482. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  483. }
  484. // @@protoc_insertion_point(serialize_to_array_end:wj_lidar_message.Fence_statu_message)
  485. return target;
  486. }
  487. size_t Fence_statu_message::ByteSizeLong() const {
  488. // @@protoc_insertion_point(message_byte_size_start:wj_lidar_message.Fence_statu_message)
  489. size_t total_size = 0;
  490. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  491. // Prevent compiler warnings about cached_has_bits being unused
  492. (void) cached_has_bits;
  493. // repeated .wj_lidar_message.Terminal_fence_statu fence_statu = 1;
  494. total_size += 1UL * this->_internal_fence_statu_size();
  495. for (const auto& msg : this->fence_statu_) {
  496. total_size +=
  497. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  498. }
  499. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  500. return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
  501. _internal_metadata_, total_size, &_cached_size_);
  502. }
  503. int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
  504. SetCachedSize(cached_size);
  505. return total_size;
  506. }
  507. void Fence_statu_message::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  508. // @@protoc_insertion_point(generalized_merge_from_start:wj_lidar_message.Fence_statu_message)
  509. GOOGLE_DCHECK_NE(&from, this);
  510. const Fence_statu_message* source =
  511. ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<Fence_statu_message>(
  512. &from);
  513. if (source == nullptr) {
  514. // @@protoc_insertion_point(generalized_merge_from_cast_fail:wj_lidar_message.Fence_statu_message)
  515. ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
  516. } else {
  517. // @@protoc_insertion_point(generalized_merge_from_cast_success:wj_lidar_message.Fence_statu_message)
  518. MergeFrom(*source);
  519. }
  520. }
  521. void Fence_statu_message::MergeFrom(const Fence_statu_message& from) {
  522. // @@protoc_insertion_point(class_specific_merge_from_start:wj_lidar_message.Fence_statu_message)
  523. GOOGLE_DCHECK_NE(&from, this);
  524. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  525. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  526. (void) cached_has_bits;
  527. fence_statu_.MergeFrom(from.fence_statu_);
  528. }
  529. void Fence_statu_message::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  530. // @@protoc_insertion_point(generalized_copy_from_start:wj_lidar_message.Fence_statu_message)
  531. if (&from == this) return;
  532. Clear();
  533. MergeFrom(from);
  534. }
  535. void Fence_statu_message::CopyFrom(const Fence_statu_message& from) {
  536. // @@protoc_insertion_point(class_specific_copy_from_start:wj_lidar_message.Fence_statu_message)
  537. if (&from == this) return;
  538. Clear();
  539. MergeFrom(from);
  540. }
  541. bool Fence_statu_message::IsInitialized() const {
  542. if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(fence_statu_)) return false;
  543. return true;
  544. }
  545. void Fence_statu_message::InternalSwap(Fence_statu_message* other) {
  546. using std::swap;
  547. _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
  548. fence_statu_.InternalSwap(&other->fence_statu_);
  549. }
  550. ::PROTOBUF_NAMESPACE_ID::Metadata Fence_statu_message::GetMetadata() const {
  551. return GetMetadataStatic();
  552. }
  553. // @@protoc_insertion_point(namespace_scope)
  554. } // namespace wj_lidar_message
  555. PROTOBUF_NAMESPACE_OPEN
  556. template<> PROTOBUF_NOINLINE ::wj_lidar_message::Terminal_fence_statu* Arena::CreateMaybeMessage< ::wj_lidar_message::Terminal_fence_statu >(Arena* arena) {
  557. return Arena::CreateMessageInternal< ::wj_lidar_message::Terminal_fence_statu >(arena);
  558. }
  559. template<> PROTOBUF_NOINLINE ::wj_lidar_message::Fence_statu_message* Arena::CreateMaybeMessage< ::wj_lidar_message::Fence_statu_message >(Arena* arena) {
  560. return Arena::CreateMessageInternal< ::wj_lidar_message::Fence_statu_message >(arena);
  561. }
  562. PROTOBUF_NAMESPACE_CLOSE
  563. // @@protoc_insertion_point(global_scope)
  564. #include <google/protobuf/port_undef.inc>