hardware_limit.pb.cc 51 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: hardware_limit.proto
  3. #include "hardware_limit.pb.h"
  4. #include <algorithm>
  5. #include <google/protobuf/stubs/common.h>
  6. #include <google/protobuf/stubs/port.h>
  7. #include <google/protobuf/io/coded_stream.h>
  8. #include <google/protobuf/wire_format_lite_inl.h>
  9. #include <google/protobuf/descriptor.h>
  10. #include <google/protobuf/generated_message_reflection.h>
  11. #include <google/protobuf/reflection_ops.h>
  12. #include <google/protobuf/wire_format.h>
  13. // This is a temporary google only hack
  14. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  15. #include "third_party/protobuf/version.h"
  16. #endif
  17. // @@protoc_insertion_point(includes)
  18. namespace protobuf_hardware_5flimit_2eproto {
  19. extern PROTOBUF_INTERNAL_EXPORT_protobuf_hardware_5flimit_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Railing;
  20. extern PROTOBUF_INTERNAL_EXPORT_protobuf_hardware_5flimit_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Theta_range;
  21. } // namespace protobuf_hardware_5flimit_2eproto
  22. namespace Hardware_limit {
  23. class RailingDefaultTypeInternal {
  24. public:
  25. ::google::protobuf::internal::ExplicitlyConstructed<Railing>
  26. _instance;
  27. } _Railing_default_instance_;
  28. class Theta_rangeDefaultTypeInternal {
  29. public:
  30. ::google::protobuf::internal::ExplicitlyConstructed<Theta_range>
  31. _instance;
  32. } _Theta_range_default_instance_;
  33. class Hardware_parameterDefaultTypeInternal {
  34. public:
  35. ::google::protobuf::internal::ExplicitlyConstructed<Hardware_parameter>
  36. _instance;
  37. } _Hardware_parameter_default_instance_;
  38. } // namespace Hardware_limit
  39. namespace protobuf_hardware_5flimit_2eproto {
  40. static void InitDefaultsRailing() {
  41. GOOGLE_PROTOBUF_VERIFY_VERSION;
  42. {
  43. void* ptr = &::Hardware_limit::_Railing_default_instance_;
  44. new (ptr) ::Hardware_limit::Railing();
  45. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  46. }
  47. ::Hardware_limit::Railing::InitAsDefaultInstance();
  48. }
  49. ::google::protobuf::internal::SCCInfo<0> scc_info_Railing =
  50. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsRailing}, {}};
  51. static void InitDefaultsTheta_range() {
  52. GOOGLE_PROTOBUF_VERIFY_VERSION;
  53. {
  54. void* ptr = &::Hardware_limit::_Theta_range_default_instance_;
  55. new (ptr) ::Hardware_limit::Theta_range();
  56. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  57. }
  58. ::Hardware_limit::Theta_range::InitAsDefaultInstance();
  59. }
  60. ::google::protobuf::internal::SCCInfo<0> scc_info_Theta_range =
  61. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTheta_range}, {}};
  62. static void InitDefaultsHardware_parameter() {
  63. GOOGLE_PROTOBUF_VERIFY_VERSION;
  64. {
  65. void* ptr = &::Hardware_limit::_Hardware_parameter_default_instance_;
  66. new (ptr) ::Hardware_limit::Hardware_parameter();
  67. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  68. }
  69. ::Hardware_limit::Hardware_parameter::InitAsDefaultInstance();
  70. }
  71. ::google::protobuf::internal::SCCInfo<2> scc_info_Hardware_parameter =
  72. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsHardware_parameter}, {
  73. &protobuf_hardware_5flimit_2eproto::scc_info_Railing.base,
  74. &protobuf_hardware_5flimit_2eproto::scc_info_Theta_range.base,}};
  75. void InitDefaults() {
  76. ::google::protobuf::internal::InitSCC(&scc_info_Railing.base);
  77. ::google::protobuf::internal::InitSCC(&scc_info_Theta_range.base);
  78. ::google::protobuf::internal::InitSCC(&scc_info_Hardware_parameter.base);
  79. }
  80. ::google::protobuf::Metadata file_level_metadata[3];
  81. const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  82. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hardware_limit::Railing, _has_bits_),
  83. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hardware_limit::Railing, _internal_metadata_),
  84. ~0u, // no _extensions_
  85. ~0u, // no _oneof_case_
  86. ~0u, // no _weak_field_map_
  87. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hardware_limit::Railing, pa_),
  88. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hardware_limit::Railing, pb_),
  89. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hardware_limit::Railing, pc_),
  90. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hardware_limit::Railing, railing_width_),
  91. 0,
  92. 1,
  93. 2,
  94. 3,
  95. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hardware_limit::Theta_range, _has_bits_),
  96. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hardware_limit::Theta_range, _internal_metadata_),
  97. ~0u, // no _extensions_
  98. ~0u, // no _oneof_case_
  99. ~0u, // no _weak_field_map_
  100. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hardware_limit::Theta_range, min_theta_),
  101. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hardware_limit::Theta_range, max_theta_),
  102. 0,
  103. 1,
  104. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hardware_limit::Hardware_parameter, _has_bits_),
  105. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hardware_limit::Hardware_parameter, _internal_metadata_),
  106. ~0u, // no _extensions_
  107. ~0u, // no _oneof_case_
  108. ~0u, // no _weak_field_map_
  109. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hardware_limit::Hardware_parameter, railing_parameter_),
  110. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hardware_limit::Hardware_parameter, center_min_y_),
  111. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hardware_limit::Hardware_parameter, center_max_y_),
  112. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hardware_limit::Hardware_parameter, center_min_x_),
  113. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hardware_limit::Hardware_parameter, center_max_x_),
  114. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hardware_limit::Hardware_parameter, corner_min_y_),
  115. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hardware_limit::Hardware_parameter, corner_max_y_),
  116. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hardware_limit::Hardware_parameter, theta_range_),
  117. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hardware_limit::Hardware_parameter, height_),
  118. ~0u,
  119. 0,
  120. 1,
  121. 2,
  122. 3,
  123. 4,
  124. 5,
  125. ~0u,
  126. 6,
  127. };
  128. static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  129. { 0, 9, sizeof(::Hardware_limit::Railing)},
  130. { 13, 20, sizeof(::Hardware_limit::Theta_range)},
  131. { 22, 36, sizeof(::Hardware_limit::Hardware_parameter)},
  132. };
  133. static ::google::protobuf::Message const * const file_default_instances[] = {
  134. reinterpret_cast<const ::google::protobuf::Message*>(&::Hardware_limit::_Railing_default_instance_),
  135. reinterpret_cast<const ::google::protobuf::Message*>(&::Hardware_limit::_Theta_range_default_instance_),
  136. reinterpret_cast<const ::google::protobuf::Message*>(&::Hardware_limit::_Hardware_parameter_default_instance_),
  137. };
  138. void protobuf_AssignDescriptors() {
  139. AddDescriptors();
  140. AssignDescriptors(
  141. "hardware_limit.proto", schemas, file_default_instances, TableStruct::offsets,
  142. file_level_metadata, NULL, NULL);
  143. }
  144. void protobuf_AssignDescriptorsOnce() {
  145. static ::google::protobuf::internal::once_flag once;
  146. ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors);
  147. }
  148. void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
  149. void protobuf_RegisterTypes(const ::std::string&) {
  150. protobuf_AssignDescriptorsOnce();
  151. ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 3);
  152. }
  153. void AddDescriptorsImpl() {
  154. InitDefaults();
  155. static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  156. "\n\024hardware_limit.proto\022\016Hardware_limit\"G"
  157. "\n\007Railing\022\n\n\002pa\030\001 \002(\002\022\n\n\002pb\030\002 \002(\002\022\n\n\002pc\030"
  158. "\003 \002(\002\022\030\n\rrailing_width\030\004 \001(\002:\0010\"3\n\013Theta"
  159. "_range\022\021\n\tmin_theta\030\001 \002(\002\022\021\n\tmax_theta\030\002"
  160. " \002(\002\"\216\002\n\022Hardware_parameter\0222\n\021railing_p"
  161. "arameter\030\001 \003(\0132\027.Hardware_limit.Railing\022"
  162. "\024\n\014center_min_y\030\002 \002(\002\022\024\n\014center_max_y\030\003 "
  163. "\002(\002\022\024\n\014center_min_x\030\004 \002(\002\022\024\n\014center_max_"
  164. "x\030\005 \002(\002\022\024\n\014corner_min_y\030\006 \002(\002\022\024\n\014corner_"
  165. "max_y\030\007 \002(\002\0220\n\013theta_range\030\010 \003(\0132\033.Hardw"
  166. "are_limit.Theta_range\022\016\n\006height\030\t \002(\002"
  167. };
  168. ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
  169. descriptor, 437);
  170. ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
  171. "hardware_limit.proto", &protobuf_RegisterTypes);
  172. }
  173. void AddDescriptors() {
  174. static ::google::protobuf::internal::once_flag once;
  175. ::google::protobuf::internal::call_once(once, AddDescriptorsImpl);
  176. }
  177. // Force AddDescriptors() to be called at dynamic initialization time.
  178. struct StaticDescriptorInitializer {
  179. StaticDescriptorInitializer() {
  180. AddDescriptors();
  181. }
  182. } static_descriptor_initializer;
  183. } // namespace protobuf_hardware_5flimit_2eproto
  184. namespace Hardware_limit {
  185. // ===================================================================
  186. void Railing::InitAsDefaultInstance() {
  187. }
  188. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  189. const int Railing::kPaFieldNumber;
  190. const int Railing::kPbFieldNumber;
  191. const int Railing::kPcFieldNumber;
  192. const int Railing::kRailingWidthFieldNumber;
  193. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  194. Railing::Railing()
  195. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  196. ::google::protobuf::internal::InitSCC(
  197. &protobuf_hardware_5flimit_2eproto::scc_info_Railing.base);
  198. SharedCtor();
  199. // @@protoc_insertion_point(constructor:Hardware_limit.Railing)
  200. }
  201. Railing::Railing(const Railing& from)
  202. : ::google::protobuf::Message(),
  203. _internal_metadata_(NULL),
  204. _has_bits_(from._has_bits_) {
  205. _internal_metadata_.MergeFrom(from._internal_metadata_);
  206. ::memcpy(&pa_, &from.pa_,
  207. static_cast<size_t>(reinterpret_cast<char*>(&railing_width_) -
  208. reinterpret_cast<char*>(&pa_)) + sizeof(railing_width_));
  209. // @@protoc_insertion_point(copy_constructor:Hardware_limit.Railing)
  210. }
  211. void Railing::SharedCtor() {
  212. ::memset(&pa_, 0, static_cast<size_t>(
  213. reinterpret_cast<char*>(&railing_width_) -
  214. reinterpret_cast<char*>(&pa_)) + sizeof(railing_width_));
  215. }
  216. Railing::~Railing() {
  217. // @@protoc_insertion_point(destructor:Hardware_limit.Railing)
  218. SharedDtor();
  219. }
  220. void Railing::SharedDtor() {
  221. }
  222. void Railing::SetCachedSize(int size) const {
  223. _cached_size_.Set(size);
  224. }
  225. const ::google::protobuf::Descriptor* Railing::descriptor() {
  226. ::protobuf_hardware_5flimit_2eproto::protobuf_AssignDescriptorsOnce();
  227. return ::protobuf_hardware_5flimit_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  228. }
  229. const Railing& Railing::default_instance() {
  230. ::google::protobuf::internal::InitSCC(&protobuf_hardware_5flimit_2eproto::scc_info_Railing.base);
  231. return *internal_default_instance();
  232. }
  233. void Railing::Clear() {
  234. // @@protoc_insertion_point(message_clear_start:Hardware_limit.Railing)
  235. ::google::protobuf::uint32 cached_has_bits = 0;
  236. // Prevent compiler warnings about cached_has_bits being unused
  237. (void) cached_has_bits;
  238. cached_has_bits = _has_bits_[0];
  239. if (cached_has_bits & 15u) {
  240. ::memset(&pa_, 0, static_cast<size_t>(
  241. reinterpret_cast<char*>(&railing_width_) -
  242. reinterpret_cast<char*>(&pa_)) + sizeof(railing_width_));
  243. }
  244. _has_bits_.Clear();
  245. _internal_metadata_.Clear();
  246. }
  247. bool Railing::MergePartialFromCodedStream(
  248. ::google::protobuf::io::CodedInputStream* input) {
  249. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  250. ::google::protobuf::uint32 tag;
  251. // @@protoc_insertion_point(parse_start:Hardware_limit.Railing)
  252. for (;;) {
  253. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  254. tag = p.first;
  255. if (!p.second) goto handle_unusual;
  256. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  257. // required float pa = 1;
  258. case 1: {
  259. if (static_cast< ::google::protobuf::uint8>(tag) ==
  260. static_cast< ::google::protobuf::uint8>(13u /* 13 & 0xFF */)) {
  261. set_has_pa();
  262. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  263. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  264. input, &pa_)));
  265. } else {
  266. goto handle_unusual;
  267. }
  268. break;
  269. }
  270. // required float pb = 2;
  271. case 2: {
  272. if (static_cast< ::google::protobuf::uint8>(tag) ==
  273. static_cast< ::google::protobuf::uint8>(21u /* 21 & 0xFF */)) {
  274. set_has_pb();
  275. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  276. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  277. input, &pb_)));
  278. } else {
  279. goto handle_unusual;
  280. }
  281. break;
  282. }
  283. // required float pc = 3;
  284. case 3: {
  285. if (static_cast< ::google::protobuf::uint8>(tag) ==
  286. static_cast< ::google::protobuf::uint8>(29u /* 29 & 0xFF */)) {
  287. set_has_pc();
  288. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  289. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  290. input, &pc_)));
  291. } else {
  292. goto handle_unusual;
  293. }
  294. break;
  295. }
  296. // optional float railing_width = 4 [default = 0];
  297. case 4: {
  298. if (static_cast< ::google::protobuf::uint8>(tag) ==
  299. static_cast< ::google::protobuf::uint8>(37u /* 37 & 0xFF */)) {
  300. set_has_railing_width();
  301. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  302. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  303. input, &railing_width_)));
  304. } else {
  305. goto handle_unusual;
  306. }
  307. break;
  308. }
  309. default: {
  310. handle_unusual:
  311. if (tag == 0) {
  312. goto success;
  313. }
  314. DO_(::google::protobuf::internal::WireFormat::SkipField(
  315. input, tag, _internal_metadata_.mutable_unknown_fields()));
  316. break;
  317. }
  318. }
  319. }
  320. success:
  321. // @@protoc_insertion_point(parse_success:Hardware_limit.Railing)
  322. return true;
  323. failure:
  324. // @@protoc_insertion_point(parse_failure:Hardware_limit.Railing)
  325. return false;
  326. #undef DO_
  327. }
  328. void Railing::SerializeWithCachedSizes(
  329. ::google::protobuf::io::CodedOutputStream* output) const {
  330. // @@protoc_insertion_point(serialize_start:Hardware_limit.Railing)
  331. ::google::protobuf::uint32 cached_has_bits = 0;
  332. (void) cached_has_bits;
  333. cached_has_bits = _has_bits_[0];
  334. // required float pa = 1;
  335. if (cached_has_bits & 0x00000001u) {
  336. ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->pa(), output);
  337. }
  338. // required float pb = 2;
  339. if (cached_has_bits & 0x00000002u) {
  340. ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->pb(), output);
  341. }
  342. // required float pc = 3;
  343. if (cached_has_bits & 0x00000004u) {
  344. ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->pc(), output);
  345. }
  346. // optional float railing_width = 4 [default = 0];
  347. if (cached_has_bits & 0x00000008u) {
  348. ::google::protobuf::internal::WireFormatLite::WriteFloat(4, this->railing_width(), output);
  349. }
  350. if (_internal_metadata_.have_unknown_fields()) {
  351. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  352. _internal_metadata_.unknown_fields(), output);
  353. }
  354. // @@protoc_insertion_point(serialize_end:Hardware_limit.Railing)
  355. }
  356. ::google::protobuf::uint8* Railing::InternalSerializeWithCachedSizesToArray(
  357. bool deterministic, ::google::protobuf::uint8* target) const {
  358. (void)deterministic; // Unused
  359. // @@protoc_insertion_point(serialize_to_array_start:Hardware_limit.Railing)
  360. ::google::protobuf::uint32 cached_has_bits = 0;
  361. (void) cached_has_bits;
  362. cached_has_bits = _has_bits_[0];
  363. // required float pa = 1;
  364. if (cached_has_bits & 0x00000001u) {
  365. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->pa(), target);
  366. }
  367. // required float pb = 2;
  368. if (cached_has_bits & 0x00000002u) {
  369. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->pb(), target);
  370. }
  371. // required float pc = 3;
  372. if (cached_has_bits & 0x00000004u) {
  373. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->pc(), target);
  374. }
  375. // optional float railing_width = 4 [default = 0];
  376. if (cached_has_bits & 0x00000008u) {
  377. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(4, this->railing_width(), target);
  378. }
  379. if (_internal_metadata_.have_unknown_fields()) {
  380. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  381. _internal_metadata_.unknown_fields(), target);
  382. }
  383. // @@protoc_insertion_point(serialize_to_array_end:Hardware_limit.Railing)
  384. return target;
  385. }
  386. size_t Railing::RequiredFieldsByteSizeFallback() const {
  387. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:Hardware_limit.Railing)
  388. size_t total_size = 0;
  389. if (has_pa()) {
  390. // required float pa = 1;
  391. total_size += 1 + 4;
  392. }
  393. if (has_pb()) {
  394. // required float pb = 2;
  395. total_size += 1 + 4;
  396. }
  397. if (has_pc()) {
  398. // required float pc = 3;
  399. total_size += 1 + 4;
  400. }
  401. return total_size;
  402. }
  403. size_t Railing::ByteSizeLong() const {
  404. // @@protoc_insertion_point(message_byte_size_start:Hardware_limit.Railing)
  405. size_t total_size = 0;
  406. if (_internal_metadata_.have_unknown_fields()) {
  407. total_size +=
  408. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  409. _internal_metadata_.unknown_fields());
  410. }
  411. if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present.
  412. // required float pa = 1;
  413. total_size += 1 + 4;
  414. // required float pb = 2;
  415. total_size += 1 + 4;
  416. // required float pc = 3;
  417. total_size += 1 + 4;
  418. } else {
  419. total_size += RequiredFieldsByteSizeFallback();
  420. }
  421. // optional float railing_width = 4 [default = 0];
  422. if (has_railing_width()) {
  423. total_size += 1 + 4;
  424. }
  425. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  426. SetCachedSize(cached_size);
  427. return total_size;
  428. }
  429. void Railing::MergeFrom(const ::google::protobuf::Message& from) {
  430. // @@protoc_insertion_point(generalized_merge_from_start:Hardware_limit.Railing)
  431. GOOGLE_DCHECK_NE(&from, this);
  432. const Railing* source =
  433. ::google::protobuf::internal::DynamicCastToGenerated<const Railing>(
  434. &from);
  435. if (source == NULL) {
  436. // @@protoc_insertion_point(generalized_merge_from_cast_fail:Hardware_limit.Railing)
  437. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  438. } else {
  439. // @@protoc_insertion_point(generalized_merge_from_cast_success:Hardware_limit.Railing)
  440. MergeFrom(*source);
  441. }
  442. }
  443. void Railing::MergeFrom(const Railing& from) {
  444. // @@protoc_insertion_point(class_specific_merge_from_start:Hardware_limit.Railing)
  445. GOOGLE_DCHECK_NE(&from, this);
  446. _internal_metadata_.MergeFrom(from._internal_metadata_);
  447. ::google::protobuf::uint32 cached_has_bits = 0;
  448. (void) cached_has_bits;
  449. cached_has_bits = from._has_bits_[0];
  450. if (cached_has_bits & 15u) {
  451. if (cached_has_bits & 0x00000001u) {
  452. pa_ = from.pa_;
  453. }
  454. if (cached_has_bits & 0x00000002u) {
  455. pb_ = from.pb_;
  456. }
  457. if (cached_has_bits & 0x00000004u) {
  458. pc_ = from.pc_;
  459. }
  460. if (cached_has_bits & 0x00000008u) {
  461. railing_width_ = from.railing_width_;
  462. }
  463. _has_bits_[0] |= cached_has_bits;
  464. }
  465. }
  466. void Railing::CopyFrom(const ::google::protobuf::Message& from) {
  467. // @@protoc_insertion_point(generalized_copy_from_start:Hardware_limit.Railing)
  468. if (&from == this) return;
  469. Clear();
  470. MergeFrom(from);
  471. }
  472. void Railing::CopyFrom(const Railing& from) {
  473. // @@protoc_insertion_point(class_specific_copy_from_start:Hardware_limit.Railing)
  474. if (&from == this) return;
  475. Clear();
  476. MergeFrom(from);
  477. }
  478. bool Railing::IsInitialized() const {
  479. if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false;
  480. return true;
  481. }
  482. void Railing::Swap(Railing* other) {
  483. if (other == this) return;
  484. InternalSwap(other);
  485. }
  486. void Railing::InternalSwap(Railing* other) {
  487. using std::swap;
  488. swap(pa_, other->pa_);
  489. swap(pb_, other->pb_);
  490. swap(pc_, other->pc_);
  491. swap(railing_width_, other->railing_width_);
  492. swap(_has_bits_[0], other->_has_bits_[0]);
  493. _internal_metadata_.Swap(&other->_internal_metadata_);
  494. }
  495. ::google::protobuf::Metadata Railing::GetMetadata() const {
  496. protobuf_hardware_5flimit_2eproto::protobuf_AssignDescriptorsOnce();
  497. return ::protobuf_hardware_5flimit_2eproto::file_level_metadata[kIndexInFileMessages];
  498. }
  499. // ===================================================================
  500. void Theta_range::InitAsDefaultInstance() {
  501. }
  502. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  503. const int Theta_range::kMinThetaFieldNumber;
  504. const int Theta_range::kMaxThetaFieldNumber;
  505. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  506. Theta_range::Theta_range()
  507. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  508. ::google::protobuf::internal::InitSCC(
  509. &protobuf_hardware_5flimit_2eproto::scc_info_Theta_range.base);
  510. SharedCtor();
  511. // @@protoc_insertion_point(constructor:Hardware_limit.Theta_range)
  512. }
  513. Theta_range::Theta_range(const Theta_range& from)
  514. : ::google::protobuf::Message(),
  515. _internal_metadata_(NULL),
  516. _has_bits_(from._has_bits_) {
  517. _internal_metadata_.MergeFrom(from._internal_metadata_);
  518. ::memcpy(&min_theta_, &from.min_theta_,
  519. static_cast<size_t>(reinterpret_cast<char*>(&max_theta_) -
  520. reinterpret_cast<char*>(&min_theta_)) + sizeof(max_theta_));
  521. // @@protoc_insertion_point(copy_constructor:Hardware_limit.Theta_range)
  522. }
  523. void Theta_range::SharedCtor() {
  524. ::memset(&min_theta_, 0, static_cast<size_t>(
  525. reinterpret_cast<char*>(&max_theta_) -
  526. reinterpret_cast<char*>(&min_theta_)) + sizeof(max_theta_));
  527. }
  528. Theta_range::~Theta_range() {
  529. // @@protoc_insertion_point(destructor:Hardware_limit.Theta_range)
  530. SharedDtor();
  531. }
  532. void Theta_range::SharedDtor() {
  533. }
  534. void Theta_range::SetCachedSize(int size) const {
  535. _cached_size_.Set(size);
  536. }
  537. const ::google::protobuf::Descriptor* Theta_range::descriptor() {
  538. ::protobuf_hardware_5flimit_2eproto::protobuf_AssignDescriptorsOnce();
  539. return ::protobuf_hardware_5flimit_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  540. }
  541. const Theta_range& Theta_range::default_instance() {
  542. ::google::protobuf::internal::InitSCC(&protobuf_hardware_5flimit_2eproto::scc_info_Theta_range.base);
  543. return *internal_default_instance();
  544. }
  545. void Theta_range::Clear() {
  546. // @@protoc_insertion_point(message_clear_start:Hardware_limit.Theta_range)
  547. ::google::protobuf::uint32 cached_has_bits = 0;
  548. // Prevent compiler warnings about cached_has_bits being unused
  549. (void) cached_has_bits;
  550. cached_has_bits = _has_bits_[0];
  551. if (cached_has_bits & 3u) {
  552. ::memset(&min_theta_, 0, static_cast<size_t>(
  553. reinterpret_cast<char*>(&max_theta_) -
  554. reinterpret_cast<char*>(&min_theta_)) + sizeof(max_theta_));
  555. }
  556. _has_bits_.Clear();
  557. _internal_metadata_.Clear();
  558. }
  559. bool Theta_range::MergePartialFromCodedStream(
  560. ::google::protobuf::io::CodedInputStream* input) {
  561. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  562. ::google::protobuf::uint32 tag;
  563. // @@protoc_insertion_point(parse_start:Hardware_limit.Theta_range)
  564. for (;;) {
  565. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  566. tag = p.first;
  567. if (!p.second) goto handle_unusual;
  568. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  569. // required float min_theta = 1;
  570. case 1: {
  571. if (static_cast< ::google::protobuf::uint8>(tag) ==
  572. static_cast< ::google::protobuf::uint8>(13u /* 13 & 0xFF */)) {
  573. set_has_min_theta();
  574. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  575. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  576. input, &min_theta_)));
  577. } else {
  578. goto handle_unusual;
  579. }
  580. break;
  581. }
  582. // required float max_theta = 2;
  583. case 2: {
  584. if (static_cast< ::google::protobuf::uint8>(tag) ==
  585. static_cast< ::google::protobuf::uint8>(21u /* 21 & 0xFF */)) {
  586. set_has_max_theta();
  587. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  588. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  589. input, &max_theta_)));
  590. } else {
  591. goto handle_unusual;
  592. }
  593. break;
  594. }
  595. default: {
  596. handle_unusual:
  597. if (tag == 0) {
  598. goto success;
  599. }
  600. DO_(::google::protobuf::internal::WireFormat::SkipField(
  601. input, tag, _internal_metadata_.mutable_unknown_fields()));
  602. break;
  603. }
  604. }
  605. }
  606. success:
  607. // @@protoc_insertion_point(parse_success:Hardware_limit.Theta_range)
  608. return true;
  609. failure:
  610. // @@protoc_insertion_point(parse_failure:Hardware_limit.Theta_range)
  611. return false;
  612. #undef DO_
  613. }
  614. void Theta_range::SerializeWithCachedSizes(
  615. ::google::protobuf::io::CodedOutputStream* output) const {
  616. // @@protoc_insertion_point(serialize_start:Hardware_limit.Theta_range)
  617. ::google::protobuf::uint32 cached_has_bits = 0;
  618. (void) cached_has_bits;
  619. cached_has_bits = _has_bits_[0];
  620. // required float min_theta = 1;
  621. if (cached_has_bits & 0x00000001u) {
  622. ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->min_theta(), output);
  623. }
  624. // required float max_theta = 2;
  625. if (cached_has_bits & 0x00000002u) {
  626. ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->max_theta(), output);
  627. }
  628. if (_internal_metadata_.have_unknown_fields()) {
  629. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  630. _internal_metadata_.unknown_fields(), output);
  631. }
  632. // @@protoc_insertion_point(serialize_end:Hardware_limit.Theta_range)
  633. }
  634. ::google::protobuf::uint8* Theta_range::InternalSerializeWithCachedSizesToArray(
  635. bool deterministic, ::google::protobuf::uint8* target) const {
  636. (void)deterministic; // Unused
  637. // @@protoc_insertion_point(serialize_to_array_start:Hardware_limit.Theta_range)
  638. ::google::protobuf::uint32 cached_has_bits = 0;
  639. (void) cached_has_bits;
  640. cached_has_bits = _has_bits_[0];
  641. // required float min_theta = 1;
  642. if (cached_has_bits & 0x00000001u) {
  643. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->min_theta(), target);
  644. }
  645. // required float max_theta = 2;
  646. if (cached_has_bits & 0x00000002u) {
  647. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->max_theta(), target);
  648. }
  649. if (_internal_metadata_.have_unknown_fields()) {
  650. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  651. _internal_metadata_.unknown_fields(), target);
  652. }
  653. // @@protoc_insertion_point(serialize_to_array_end:Hardware_limit.Theta_range)
  654. return target;
  655. }
  656. size_t Theta_range::RequiredFieldsByteSizeFallback() const {
  657. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:Hardware_limit.Theta_range)
  658. size_t total_size = 0;
  659. if (has_min_theta()) {
  660. // required float min_theta = 1;
  661. total_size += 1 + 4;
  662. }
  663. if (has_max_theta()) {
  664. // required float max_theta = 2;
  665. total_size += 1 + 4;
  666. }
  667. return total_size;
  668. }
  669. size_t Theta_range::ByteSizeLong() const {
  670. // @@protoc_insertion_point(message_byte_size_start:Hardware_limit.Theta_range)
  671. size_t total_size = 0;
  672. if (_internal_metadata_.have_unknown_fields()) {
  673. total_size +=
  674. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  675. _internal_metadata_.unknown_fields());
  676. }
  677. if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present.
  678. // required float min_theta = 1;
  679. total_size += 1 + 4;
  680. // required float max_theta = 2;
  681. total_size += 1 + 4;
  682. } else {
  683. total_size += RequiredFieldsByteSizeFallback();
  684. }
  685. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  686. SetCachedSize(cached_size);
  687. return total_size;
  688. }
  689. void Theta_range::MergeFrom(const ::google::protobuf::Message& from) {
  690. // @@protoc_insertion_point(generalized_merge_from_start:Hardware_limit.Theta_range)
  691. GOOGLE_DCHECK_NE(&from, this);
  692. const Theta_range* source =
  693. ::google::protobuf::internal::DynamicCastToGenerated<const Theta_range>(
  694. &from);
  695. if (source == NULL) {
  696. // @@protoc_insertion_point(generalized_merge_from_cast_fail:Hardware_limit.Theta_range)
  697. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  698. } else {
  699. // @@protoc_insertion_point(generalized_merge_from_cast_success:Hardware_limit.Theta_range)
  700. MergeFrom(*source);
  701. }
  702. }
  703. void Theta_range::MergeFrom(const Theta_range& from) {
  704. // @@protoc_insertion_point(class_specific_merge_from_start:Hardware_limit.Theta_range)
  705. GOOGLE_DCHECK_NE(&from, this);
  706. _internal_metadata_.MergeFrom(from._internal_metadata_);
  707. ::google::protobuf::uint32 cached_has_bits = 0;
  708. (void) cached_has_bits;
  709. cached_has_bits = from._has_bits_[0];
  710. if (cached_has_bits & 3u) {
  711. if (cached_has_bits & 0x00000001u) {
  712. min_theta_ = from.min_theta_;
  713. }
  714. if (cached_has_bits & 0x00000002u) {
  715. max_theta_ = from.max_theta_;
  716. }
  717. _has_bits_[0] |= cached_has_bits;
  718. }
  719. }
  720. void Theta_range::CopyFrom(const ::google::protobuf::Message& from) {
  721. // @@protoc_insertion_point(generalized_copy_from_start:Hardware_limit.Theta_range)
  722. if (&from == this) return;
  723. Clear();
  724. MergeFrom(from);
  725. }
  726. void Theta_range::CopyFrom(const Theta_range& from) {
  727. // @@protoc_insertion_point(class_specific_copy_from_start:Hardware_limit.Theta_range)
  728. if (&from == this) return;
  729. Clear();
  730. MergeFrom(from);
  731. }
  732. bool Theta_range::IsInitialized() const {
  733. if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
  734. return true;
  735. }
  736. void Theta_range::Swap(Theta_range* other) {
  737. if (other == this) return;
  738. InternalSwap(other);
  739. }
  740. void Theta_range::InternalSwap(Theta_range* other) {
  741. using std::swap;
  742. swap(min_theta_, other->min_theta_);
  743. swap(max_theta_, other->max_theta_);
  744. swap(_has_bits_[0], other->_has_bits_[0]);
  745. _internal_metadata_.Swap(&other->_internal_metadata_);
  746. }
  747. ::google::protobuf::Metadata Theta_range::GetMetadata() const {
  748. protobuf_hardware_5flimit_2eproto::protobuf_AssignDescriptorsOnce();
  749. return ::protobuf_hardware_5flimit_2eproto::file_level_metadata[kIndexInFileMessages];
  750. }
  751. // ===================================================================
  752. void Hardware_parameter::InitAsDefaultInstance() {
  753. }
  754. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  755. const int Hardware_parameter::kRailingParameterFieldNumber;
  756. const int Hardware_parameter::kCenterMinYFieldNumber;
  757. const int Hardware_parameter::kCenterMaxYFieldNumber;
  758. const int Hardware_parameter::kCenterMinXFieldNumber;
  759. const int Hardware_parameter::kCenterMaxXFieldNumber;
  760. const int Hardware_parameter::kCornerMinYFieldNumber;
  761. const int Hardware_parameter::kCornerMaxYFieldNumber;
  762. const int Hardware_parameter::kThetaRangeFieldNumber;
  763. const int Hardware_parameter::kHeightFieldNumber;
  764. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  765. Hardware_parameter::Hardware_parameter()
  766. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  767. ::google::protobuf::internal::InitSCC(
  768. &protobuf_hardware_5flimit_2eproto::scc_info_Hardware_parameter.base);
  769. SharedCtor();
  770. // @@protoc_insertion_point(constructor:Hardware_limit.Hardware_parameter)
  771. }
  772. Hardware_parameter::Hardware_parameter(const Hardware_parameter& from)
  773. : ::google::protobuf::Message(),
  774. _internal_metadata_(NULL),
  775. _has_bits_(from._has_bits_),
  776. railing_parameter_(from.railing_parameter_),
  777. theta_range_(from.theta_range_) {
  778. _internal_metadata_.MergeFrom(from._internal_metadata_);
  779. ::memcpy(&center_min_y_, &from.center_min_y_,
  780. static_cast<size_t>(reinterpret_cast<char*>(&height_) -
  781. reinterpret_cast<char*>(&center_min_y_)) + sizeof(height_));
  782. // @@protoc_insertion_point(copy_constructor:Hardware_limit.Hardware_parameter)
  783. }
  784. void Hardware_parameter::SharedCtor() {
  785. ::memset(&center_min_y_, 0, static_cast<size_t>(
  786. reinterpret_cast<char*>(&height_) -
  787. reinterpret_cast<char*>(&center_min_y_)) + sizeof(height_));
  788. }
  789. Hardware_parameter::~Hardware_parameter() {
  790. // @@protoc_insertion_point(destructor:Hardware_limit.Hardware_parameter)
  791. SharedDtor();
  792. }
  793. void Hardware_parameter::SharedDtor() {
  794. }
  795. void Hardware_parameter::SetCachedSize(int size) const {
  796. _cached_size_.Set(size);
  797. }
  798. const ::google::protobuf::Descriptor* Hardware_parameter::descriptor() {
  799. ::protobuf_hardware_5flimit_2eproto::protobuf_AssignDescriptorsOnce();
  800. return ::protobuf_hardware_5flimit_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  801. }
  802. const Hardware_parameter& Hardware_parameter::default_instance() {
  803. ::google::protobuf::internal::InitSCC(&protobuf_hardware_5flimit_2eproto::scc_info_Hardware_parameter.base);
  804. return *internal_default_instance();
  805. }
  806. void Hardware_parameter::Clear() {
  807. // @@protoc_insertion_point(message_clear_start:Hardware_limit.Hardware_parameter)
  808. ::google::protobuf::uint32 cached_has_bits = 0;
  809. // Prevent compiler warnings about cached_has_bits being unused
  810. (void) cached_has_bits;
  811. railing_parameter_.Clear();
  812. theta_range_.Clear();
  813. cached_has_bits = _has_bits_[0];
  814. if (cached_has_bits & 127u) {
  815. ::memset(&center_min_y_, 0, static_cast<size_t>(
  816. reinterpret_cast<char*>(&height_) -
  817. reinterpret_cast<char*>(&center_min_y_)) + sizeof(height_));
  818. }
  819. _has_bits_.Clear();
  820. _internal_metadata_.Clear();
  821. }
  822. bool Hardware_parameter::MergePartialFromCodedStream(
  823. ::google::protobuf::io::CodedInputStream* input) {
  824. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  825. ::google::protobuf::uint32 tag;
  826. // @@protoc_insertion_point(parse_start:Hardware_limit.Hardware_parameter)
  827. for (;;) {
  828. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  829. tag = p.first;
  830. if (!p.second) goto handle_unusual;
  831. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  832. // repeated .Hardware_limit.Railing railing_parameter = 1;
  833. case 1: {
  834. if (static_cast< ::google::protobuf::uint8>(tag) ==
  835. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  836. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  837. input, add_railing_parameter()));
  838. } else {
  839. goto handle_unusual;
  840. }
  841. break;
  842. }
  843. // required float center_min_y = 2;
  844. case 2: {
  845. if (static_cast< ::google::protobuf::uint8>(tag) ==
  846. static_cast< ::google::protobuf::uint8>(21u /* 21 & 0xFF */)) {
  847. set_has_center_min_y();
  848. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  849. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  850. input, &center_min_y_)));
  851. } else {
  852. goto handle_unusual;
  853. }
  854. break;
  855. }
  856. // required float center_max_y = 3;
  857. case 3: {
  858. if (static_cast< ::google::protobuf::uint8>(tag) ==
  859. static_cast< ::google::protobuf::uint8>(29u /* 29 & 0xFF */)) {
  860. set_has_center_max_y();
  861. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  862. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  863. input, &center_max_y_)));
  864. } else {
  865. goto handle_unusual;
  866. }
  867. break;
  868. }
  869. // required float center_min_x = 4;
  870. case 4: {
  871. if (static_cast< ::google::protobuf::uint8>(tag) ==
  872. static_cast< ::google::protobuf::uint8>(37u /* 37 & 0xFF */)) {
  873. set_has_center_min_x();
  874. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  875. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  876. input, &center_min_x_)));
  877. } else {
  878. goto handle_unusual;
  879. }
  880. break;
  881. }
  882. // required float center_max_x = 5;
  883. case 5: {
  884. if (static_cast< ::google::protobuf::uint8>(tag) ==
  885. static_cast< ::google::protobuf::uint8>(45u /* 45 & 0xFF */)) {
  886. set_has_center_max_x();
  887. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  888. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  889. input, &center_max_x_)));
  890. } else {
  891. goto handle_unusual;
  892. }
  893. break;
  894. }
  895. // required float corner_min_y = 6;
  896. case 6: {
  897. if (static_cast< ::google::protobuf::uint8>(tag) ==
  898. static_cast< ::google::protobuf::uint8>(53u /* 53 & 0xFF */)) {
  899. set_has_corner_min_y();
  900. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  901. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  902. input, &corner_min_y_)));
  903. } else {
  904. goto handle_unusual;
  905. }
  906. break;
  907. }
  908. // required float corner_max_y = 7;
  909. case 7: {
  910. if (static_cast< ::google::protobuf::uint8>(tag) ==
  911. static_cast< ::google::protobuf::uint8>(61u /* 61 & 0xFF */)) {
  912. set_has_corner_max_y();
  913. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  914. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  915. input, &corner_max_y_)));
  916. } else {
  917. goto handle_unusual;
  918. }
  919. break;
  920. }
  921. // repeated .Hardware_limit.Theta_range theta_range = 8;
  922. case 8: {
  923. if (static_cast< ::google::protobuf::uint8>(tag) ==
  924. static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
  925. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  926. input, add_theta_range()));
  927. } else {
  928. goto handle_unusual;
  929. }
  930. break;
  931. }
  932. // required float height = 9;
  933. case 9: {
  934. if (static_cast< ::google::protobuf::uint8>(tag) ==
  935. static_cast< ::google::protobuf::uint8>(77u /* 77 & 0xFF */)) {
  936. set_has_height();
  937. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  938. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  939. input, &height_)));
  940. } else {
  941. goto handle_unusual;
  942. }
  943. break;
  944. }
  945. default: {
  946. handle_unusual:
  947. if (tag == 0) {
  948. goto success;
  949. }
  950. DO_(::google::protobuf::internal::WireFormat::SkipField(
  951. input, tag, _internal_metadata_.mutable_unknown_fields()));
  952. break;
  953. }
  954. }
  955. }
  956. success:
  957. // @@protoc_insertion_point(parse_success:Hardware_limit.Hardware_parameter)
  958. return true;
  959. failure:
  960. // @@protoc_insertion_point(parse_failure:Hardware_limit.Hardware_parameter)
  961. return false;
  962. #undef DO_
  963. }
  964. void Hardware_parameter::SerializeWithCachedSizes(
  965. ::google::protobuf::io::CodedOutputStream* output) const {
  966. // @@protoc_insertion_point(serialize_start:Hardware_limit.Hardware_parameter)
  967. ::google::protobuf::uint32 cached_has_bits = 0;
  968. (void) cached_has_bits;
  969. // repeated .Hardware_limit.Railing railing_parameter = 1;
  970. for (unsigned int i = 0,
  971. n = static_cast<unsigned int>(this->railing_parameter_size()); i < n; i++) {
  972. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  973. 1,
  974. this->railing_parameter(static_cast<int>(i)),
  975. output);
  976. }
  977. cached_has_bits = _has_bits_[0];
  978. // required float center_min_y = 2;
  979. if (cached_has_bits & 0x00000001u) {
  980. ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->center_min_y(), output);
  981. }
  982. // required float center_max_y = 3;
  983. if (cached_has_bits & 0x00000002u) {
  984. ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->center_max_y(), output);
  985. }
  986. // required float center_min_x = 4;
  987. if (cached_has_bits & 0x00000004u) {
  988. ::google::protobuf::internal::WireFormatLite::WriteFloat(4, this->center_min_x(), output);
  989. }
  990. // required float center_max_x = 5;
  991. if (cached_has_bits & 0x00000008u) {
  992. ::google::protobuf::internal::WireFormatLite::WriteFloat(5, this->center_max_x(), output);
  993. }
  994. // required float corner_min_y = 6;
  995. if (cached_has_bits & 0x00000010u) {
  996. ::google::protobuf::internal::WireFormatLite::WriteFloat(6, this->corner_min_y(), output);
  997. }
  998. // required float corner_max_y = 7;
  999. if (cached_has_bits & 0x00000020u) {
  1000. ::google::protobuf::internal::WireFormatLite::WriteFloat(7, this->corner_max_y(), output);
  1001. }
  1002. // repeated .Hardware_limit.Theta_range theta_range = 8;
  1003. for (unsigned int i = 0,
  1004. n = static_cast<unsigned int>(this->theta_range_size()); i < n; i++) {
  1005. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1006. 8,
  1007. this->theta_range(static_cast<int>(i)),
  1008. output);
  1009. }
  1010. // required float height = 9;
  1011. if (cached_has_bits & 0x00000040u) {
  1012. ::google::protobuf::internal::WireFormatLite::WriteFloat(9, this->height(), output);
  1013. }
  1014. if (_internal_metadata_.have_unknown_fields()) {
  1015. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1016. _internal_metadata_.unknown_fields(), output);
  1017. }
  1018. // @@protoc_insertion_point(serialize_end:Hardware_limit.Hardware_parameter)
  1019. }
  1020. ::google::protobuf::uint8* Hardware_parameter::InternalSerializeWithCachedSizesToArray(
  1021. bool deterministic, ::google::protobuf::uint8* target) const {
  1022. (void)deterministic; // Unused
  1023. // @@protoc_insertion_point(serialize_to_array_start:Hardware_limit.Hardware_parameter)
  1024. ::google::protobuf::uint32 cached_has_bits = 0;
  1025. (void) cached_has_bits;
  1026. // repeated .Hardware_limit.Railing railing_parameter = 1;
  1027. for (unsigned int i = 0,
  1028. n = static_cast<unsigned int>(this->railing_parameter_size()); i < n; i++) {
  1029. target = ::google::protobuf::internal::WireFormatLite::
  1030. InternalWriteMessageToArray(
  1031. 1, this->railing_parameter(static_cast<int>(i)), deterministic, target);
  1032. }
  1033. cached_has_bits = _has_bits_[0];
  1034. // required float center_min_y = 2;
  1035. if (cached_has_bits & 0x00000001u) {
  1036. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->center_min_y(), target);
  1037. }
  1038. // required float center_max_y = 3;
  1039. if (cached_has_bits & 0x00000002u) {
  1040. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->center_max_y(), target);
  1041. }
  1042. // required float center_min_x = 4;
  1043. if (cached_has_bits & 0x00000004u) {
  1044. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(4, this->center_min_x(), target);
  1045. }
  1046. // required float center_max_x = 5;
  1047. if (cached_has_bits & 0x00000008u) {
  1048. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(5, this->center_max_x(), target);
  1049. }
  1050. // required float corner_min_y = 6;
  1051. if (cached_has_bits & 0x00000010u) {
  1052. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(6, this->corner_min_y(), target);
  1053. }
  1054. // required float corner_max_y = 7;
  1055. if (cached_has_bits & 0x00000020u) {
  1056. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(7, this->corner_max_y(), target);
  1057. }
  1058. // repeated .Hardware_limit.Theta_range theta_range = 8;
  1059. for (unsigned int i = 0,
  1060. n = static_cast<unsigned int>(this->theta_range_size()); i < n; i++) {
  1061. target = ::google::protobuf::internal::WireFormatLite::
  1062. InternalWriteMessageToArray(
  1063. 8, this->theta_range(static_cast<int>(i)), deterministic, target);
  1064. }
  1065. // required float height = 9;
  1066. if (cached_has_bits & 0x00000040u) {
  1067. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(9, this->height(), target);
  1068. }
  1069. if (_internal_metadata_.have_unknown_fields()) {
  1070. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1071. _internal_metadata_.unknown_fields(), target);
  1072. }
  1073. // @@protoc_insertion_point(serialize_to_array_end:Hardware_limit.Hardware_parameter)
  1074. return target;
  1075. }
  1076. size_t Hardware_parameter::RequiredFieldsByteSizeFallback() const {
  1077. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:Hardware_limit.Hardware_parameter)
  1078. size_t total_size = 0;
  1079. if (has_center_min_y()) {
  1080. // required float center_min_y = 2;
  1081. total_size += 1 + 4;
  1082. }
  1083. if (has_center_max_y()) {
  1084. // required float center_max_y = 3;
  1085. total_size += 1 + 4;
  1086. }
  1087. if (has_center_min_x()) {
  1088. // required float center_min_x = 4;
  1089. total_size += 1 + 4;
  1090. }
  1091. if (has_center_max_x()) {
  1092. // required float center_max_x = 5;
  1093. total_size += 1 + 4;
  1094. }
  1095. if (has_corner_min_y()) {
  1096. // required float corner_min_y = 6;
  1097. total_size += 1 + 4;
  1098. }
  1099. if (has_corner_max_y()) {
  1100. // required float corner_max_y = 7;
  1101. total_size += 1 + 4;
  1102. }
  1103. if (has_height()) {
  1104. // required float height = 9;
  1105. total_size += 1 + 4;
  1106. }
  1107. return total_size;
  1108. }
  1109. size_t Hardware_parameter::ByteSizeLong() const {
  1110. // @@protoc_insertion_point(message_byte_size_start:Hardware_limit.Hardware_parameter)
  1111. size_t total_size = 0;
  1112. if (_internal_metadata_.have_unknown_fields()) {
  1113. total_size +=
  1114. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1115. _internal_metadata_.unknown_fields());
  1116. }
  1117. if (((_has_bits_[0] & 0x0000007f) ^ 0x0000007f) == 0) { // All required fields are present.
  1118. // required float center_min_y = 2;
  1119. total_size += 1 + 4;
  1120. // required float center_max_y = 3;
  1121. total_size += 1 + 4;
  1122. // required float center_min_x = 4;
  1123. total_size += 1 + 4;
  1124. // required float center_max_x = 5;
  1125. total_size += 1 + 4;
  1126. // required float corner_min_y = 6;
  1127. total_size += 1 + 4;
  1128. // required float corner_max_y = 7;
  1129. total_size += 1 + 4;
  1130. // required float height = 9;
  1131. total_size += 1 + 4;
  1132. } else {
  1133. total_size += RequiredFieldsByteSizeFallback();
  1134. }
  1135. // repeated .Hardware_limit.Railing railing_parameter = 1;
  1136. {
  1137. unsigned int count = static_cast<unsigned int>(this->railing_parameter_size());
  1138. total_size += 1UL * count;
  1139. for (unsigned int i = 0; i < count; i++) {
  1140. total_size +=
  1141. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1142. this->railing_parameter(static_cast<int>(i)));
  1143. }
  1144. }
  1145. // repeated .Hardware_limit.Theta_range theta_range = 8;
  1146. {
  1147. unsigned int count = static_cast<unsigned int>(this->theta_range_size());
  1148. total_size += 1UL * count;
  1149. for (unsigned int i = 0; i < count; i++) {
  1150. total_size +=
  1151. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1152. this->theta_range(static_cast<int>(i)));
  1153. }
  1154. }
  1155. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  1156. SetCachedSize(cached_size);
  1157. return total_size;
  1158. }
  1159. void Hardware_parameter::MergeFrom(const ::google::protobuf::Message& from) {
  1160. // @@protoc_insertion_point(generalized_merge_from_start:Hardware_limit.Hardware_parameter)
  1161. GOOGLE_DCHECK_NE(&from, this);
  1162. const Hardware_parameter* source =
  1163. ::google::protobuf::internal::DynamicCastToGenerated<const Hardware_parameter>(
  1164. &from);
  1165. if (source == NULL) {
  1166. // @@protoc_insertion_point(generalized_merge_from_cast_fail:Hardware_limit.Hardware_parameter)
  1167. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1168. } else {
  1169. // @@protoc_insertion_point(generalized_merge_from_cast_success:Hardware_limit.Hardware_parameter)
  1170. MergeFrom(*source);
  1171. }
  1172. }
  1173. void Hardware_parameter::MergeFrom(const Hardware_parameter& from) {
  1174. // @@protoc_insertion_point(class_specific_merge_from_start:Hardware_limit.Hardware_parameter)
  1175. GOOGLE_DCHECK_NE(&from, this);
  1176. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1177. ::google::protobuf::uint32 cached_has_bits = 0;
  1178. (void) cached_has_bits;
  1179. railing_parameter_.MergeFrom(from.railing_parameter_);
  1180. theta_range_.MergeFrom(from.theta_range_);
  1181. cached_has_bits = from._has_bits_[0];
  1182. if (cached_has_bits & 127u) {
  1183. if (cached_has_bits & 0x00000001u) {
  1184. center_min_y_ = from.center_min_y_;
  1185. }
  1186. if (cached_has_bits & 0x00000002u) {
  1187. center_max_y_ = from.center_max_y_;
  1188. }
  1189. if (cached_has_bits & 0x00000004u) {
  1190. center_min_x_ = from.center_min_x_;
  1191. }
  1192. if (cached_has_bits & 0x00000008u) {
  1193. center_max_x_ = from.center_max_x_;
  1194. }
  1195. if (cached_has_bits & 0x00000010u) {
  1196. corner_min_y_ = from.corner_min_y_;
  1197. }
  1198. if (cached_has_bits & 0x00000020u) {
  1199. corner_max_y_ = from.corner_max_y_;
  1200. }
  1201. if (cached_has_bits & 0x00000040u) {
  1202. height_ = from.height_;
  1203. }
  1204. _has_bits_[0] |= cached_has_bits;
  1205. }
  1206. }
  1207. void Hardware_parameter::CopyFrom(const ::google::protobuf::Message& from) {
  1208. // @@protoc_insertion_point(generalized_copy_from_start:Hardware_limit.Hardware_parameter)
  1209. if (&from == this) return;
  1210. Clear();
  1211. MergeFrom(from);
  1212. }
  1213. void Hardware_parameter::CopyFrom(const Hardware_parameter& from) {
  1214. // @@protoc_insertion_point(class_specific_copy_from_start:Hardware_limit.Hardware_parameter)
  1215. if (&from == this) return;
  1216. Clear();
  1217. MergeFrom(from);
  1218. }
  1219. bool Hardware_parameter::IsInitialized() const {
  1220. if ((_has_bits_[0] & 0x0000007f) != 0x0000007f) return false;
  1221. if (!::google::protobuf::internal::AllAreInitialized(this->railing_parameter())) return false;
  1222. if (!::google::protobuf::internal::AllAreInitialized(this->theta_range())) return false;
  1223. return true;
  1224. }
  1225. void Hardware_parameter::Swap(Hardware_parameter* other) {
  1226. if (other == this) return;
  1227. InternalSwap(other);
  1228. }
  1229. void Hardware_parameter::InternalSwap(Hardware_parameter* other) {
  1230. using std::swap;
  1231. CastToBase(&railing_parameter_)->InternalSwap(CastToBase(&other->railing_parameter_));
  1232. CastToBase(&theta_range_)->InternalSwap(CastToBase(&other->theta_range_));
  1233. swap(center_min_y_, other->center_min_y_);
  1234. swap(center_max_y_, other->center_max_y_);
  1235. swap(center_min_x_, other->center_min_x_);
  1236. swap(center_max_x_, other->center_max_x_);
  1237. swap(corner_min_y_, other->corner_min_y_);
  1238. swap(corner_max_y_, other->corner_max_y_);
  1239. swap(height_, other->height_);
  1240. swap(_has_bits_[0], other->_has_bits_[0]);
  1241. _internal_metadata_.Swap(&other->_internal_metadata_);
  1242. }
  1243. ::google::protobuf::Metadata Hardware_parameter::GetMetadata() const {
  1244. protobuf_hardware_5flimit_2eproto::protobuf_AssignDescriptorsOnce();
  1245. return ::protobuf_hardware_5flimit_2eproto::file_level_metadata[kIndexInFileMessages];
  1246. }
  1247. // @@protoc_insertion_point(namespace_scope)
  1248. } // namespace Hardware_limit
  1249. namespace google {
  1250. namespace protobuf {
  1251. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::Hardware_limit::Railing* Arena::CreateMaybeMessage< ::Hardware_limit::Railing >(Arena* arena) {
  1252. return Arena::CreateInternal< ::Hardware_limit::Railing >(arena);
  1253. }
  1254. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::Hardware_limit::Theta_range* Arena::CreateMaybeMessage< ::Hardware_limit::Theta_range >(Arena* arena) {
  1255. return Arena::CreateInternal< ::Hardware_limit::Theta_range >(arena);
  1256. }
  1257. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::Hardware_limit::Hardware_parameter* Arena::CreateMaybeMessage< ::Hardware_limit::Hardware_parameter >(Arena* arena) {
  1258. return Arena::CreateInternal< ::Hardware_limit::Hardware_parameter >(arena);
  1259. }
  1260. } // namespace protobuf
  1261. } // namespace google
  1262. // @@protoc_insertion_point(global_scope)