wj_lidar_msg.pb.cc 31 KB

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