setting.pb.cc 77 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: setting.proto
  3. #include "setting.pb.h"
  4. #include <algorithm>
  5. #include <google/protobuf/io/coded_stream.h>
  6. #include <google/protobuf/extension_set.h>
  7. #include <google/protobuf/wire_format_lite.h>
  8. #include <google/protobuf/descriptor.h>
  9. #include <google/protobuf/generated_message_reflection.h>
  10. #include <google/protobuf/reflection_ops.h>
  11. #include <google/protobuf/wire_format.h>
  12. // @@protoc_insertion_point(includes)
  13. #include <google/protobuf/port_def.inc>
  14. extern PROTOBUF_INTERNAL_EXPORT_setting_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_box_param_setting_2eproto;
  15. extern PROTOBUF_INTERNAL_EXPORT_setting_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_lidar_parameter_setting_2eproto;
  16. extern PROTOBUF_INTERNAL_EXPORT_setting_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_plc_param_setting_2eproto;
  17. extern PROTOBUF_INTERNAL_EXPORT_setting_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_shutter_param_setting_2eproto;
  18. namespace shutter {
  19. class lidar_parameterDefaultTypeInternal {
  20. public:
  21. ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<lidar_parameter> _instance;
  22. } _lidar_parameter_default_instance_;
  23. class box_paramDefaultTypeInternal {
  24. public:
  25. ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<box_param> _instance;
  26. } _box_param_default_instance_;
  27. class plc_paramDefaultTypeInternal {
  28. public:
  29. ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<plc_param> _instance;
  30. } _plc_param_default_instance_;
  31. class shutter_paramDefaultTypeInternal {
  32. public:
  33. ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<shutter_param> _instance;
  34. } _shutter_param_default_instance_;
  35. class setting_parameterDefaultTypeInternal {
  36. public:
  37. ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<setting_parameter> _instance;
  38. } _setting_parameter_default_instance_;
  39. } // namespace shutter
  40. static void InitDefaultsscc_info_box_param_setting_2eproto() {
  41. GOOGLE_PROTOBUF_VERIFY_VERSION;
  42. {
  43. void* ptr = &::shutter::_box_param_default_instance_;
  44. new (ptr) ::shutter::box_param();
  45. ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
  46. }
  47. ::shutter::box_param::InitAsDefaultInstance();
  48. }
  49. ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_box_param_setting_2eproto =
  50. {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_box_param_setting_2eproto}, {}};
  51. static void InitDefaultsscc_info_lidar_parameter_setting_2eproto() {
  52. GOOGLE_PROTOBUF_VERIFY_VERSION;
  53. {
  54. void* ptr = &::shutter::_lidar_parameter_default_instance_;
  55. new (ptr) ::shutter::lidar_parameter();
  56. ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
  57. }
  58. ::shutter::lidar_parameter::InitAsDefaultInstance();
  59. }
  60. ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_lidar_parameter_setting_2eproto =
  61. {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_lidar_parameter_setting_2eproto}, {}};
  62. static void InitDefaultsscc_info_plc_param_setting_2eproto() {
  63. GOOGLE_PROTOBUF_VERIFY_VERSION;
  64. {
  65. void* ptr = &::shutter::_plc_param_default_instance_;
  66. new (ptr) ::shutter::plc_param();
  67. ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
  68. }
  69. ::shutter::plc_param::InitAsDefaultInstance();
  70. }
  71. ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_plc_param_setting_2eproto =
  72. {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_plc_param_setting_2eproto}, {}};
  73. static void InitDefaultsscc_info_setting_parameter_setting_2eproto() {
  74. GOOGLE_PROTOBUF_VERIFY_VERSION;
  75. {
  76. void* ptr = &::shutter::_setting_parameter_default_instance_;
  77. new (ptr) ::shutter::setting_parameter();
  78. ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
  79. }
  80. ::shutter::setting_parameter::InitAsDefaultInstance();
  81. }
  82. ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_setting_parameter_setting_2eproto =
  83. {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, 0, InitDefaultsscc_info_setting_parameter_setting_2eproto}, {
  84. &scc_info_shutter_param_setting_2eproto.base,
  85. &scc_info_plc_param_setting_2eproto.base,}};
  86. static void InitDefaultsscc_info_shutter_param_setting_2eproto() {
  87. GOOGLE_PROTOBUF_VERIFY_VERSION;
  88. {
  89. void* ptr = &::shutter::_shutter_param_default_instance_;
  90. new (ptr) ::shutter::shutter_param();
  91. ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
  92. }
  93. ::shutter::shutter_param::InitAsDefaultInstance();
  94. }
  95. ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_shutter_param_setting_2eproto =
  96. {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, 0, InitDefaultsscc_info_shutter_param_setting_2eproto}, {
  97. &scc_info_lidar_parameter_setting_2eproto.base,
  98. &scc_info_box_param_setting_2eproto.base,}};
  99. static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_setting_2eproto[5];
  100. static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_setting_2eproto = nullptr;
  101. static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_setting_2eproto = nullptr;
  102. const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_setting_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  103. PROTOBUF_FIELD_OFFSET(::shutter::lidar_parameter, _has_bits_),
  104. PROTOBUF_FIELD_OFFSET(::shutter::lidar_parameter, _internal_metadata_),
  105. ~0u, // no _extensions_
  106. ~0u, // no _oneof_case_
  107. ~0u, // no _weak_field_map_
  108. PROTOBUF_FIELD_OFFSET(::shutter::lidar_parameter, sncode_),
  109. PROTOBUF_FIELD_OFFSET(::shutter::lidar_parameter, r_),
  110. PROTOBUF_FIELD_OFFSET(::shutter::lidar_parameter, p_),
  111. PROTOBUF_FIELD_OFFSET(::shutter::lidar_parameter, y_),
  112. PROTOBUF_FIELD_OFFSET(::shutter::lidar_parameter, tx_),
  113. PROTOBUF_FIELD_OFFSET(::shutter::lidar_parameter, ty_),
  114. PROTOBUF_FIELD_OFFSET(::shutter::lidar_parameter, tz_),
  115. PROTOBUF_FIELD_OFFSET(::shutter::lidar_parameter, fps_),
  116. 0,
  117. 1,
  118. 2,
  119. 3,
  120. 4,
  121. 5,
  122. 6,
  123. 7,
  124. PROTOBUF_FIELD_OFFSET(::shutter::box_param, _has_bits_),
  125. PROTOBUF_FIELD_OFFSET(::shutter::box_param, _internal_metadata_),
  126. ~0u, // no _extensions_
  127. ~0u, // no _oneof_case_
  128. ~0u, // no _weak_field_map_
  129. PROTOBUF_FIELD_OFFSET(::shutter::box_param, minx_),
  130. PROTOBUF_FIELD_OFFSET(::shutter::box_param, maxx_),
  131. PROTOBUF_FIELD_OFFSET(::shutter::box_param, miny_),
  132. PROTOBUF_FIELD_OFFSET(::shutter::box_param, maxy_),
  133. PROTOBUF_FIELD_OFFSET(::shutter::box_param, minz_),
  134. PROTOBUF_FIELD_OFFSET(::shutter::box_param, maxz_),
  135. 0,
  136. 1,
  137. 2,
  138. 3,
  139. 4,
  140. 5,
  141. PROTOBUF_FIELD_OFFSET(::shutter::plc_param, _has_bits_),
  142. PROTOBUF_FIELD_OFFSET(::shutter::plc_param, _internal_metadata_),
  143. ~0u, // no _extensions_
  144. ~0u, // no _oneof_case_
  145. ~0u, // no _weak_field_map_
  146. PROTOBUF_FIELD_OFFSET(::shutter::plc_param, ip_),
  147. PROTOBUF_FIELD_OFFSET(::shutter::plc_param, dbnumber_),
  148. PROTOBUF_FIELD_OFFSET(::shutter::plc_param, start_id_),
  149. 0,
  150. 1,
  151. 2,
  152. PROTOBUF_FIELD_OFFSET(::shutter::shutter_param, _has_bits_),
  153. PROTOBUF_FIELD_OFFSET(::shutter::shutter_param, _internal_metadata_),
  154. ~0u, // no _extensions_
  155. ~0u, // no _oneof_case_
  156. ~0u, // no _weak_field_map_
  157. PROTOBUF_FIELD_OFFSET(::shutter::shutter_param, lidars_),
  158. PROTOBUF_FIELD_OFFSET(::shutter::shutter_param, box_),
  159. PROTOBUF_FIELD_OFFSET(::shutter::shutter_param, verify_box1_),
  160. PROTOBUF_FIELD_OFFSET(::shutter::shutter_param, verify_box2_),
  161. ~0u,
  162. 0,
  163. 1,
  164. 2,
  165. PROTOBUF_FIELD_OFFSET(::shutter::setting_parameter, _has_bits_),
  166. PROTOBUF_FIELD_OFFSET(::shutter::setting_parameter, _internal_metadata_),
  167. ~0u, // no _extensions_
  168. ~0u, // no _oneof_case_
  169. ~0u, // no _weak_field_map_
  170. PROTOBUF_FIELD_OFFSET(::shutter::setting_parameter, entrance_parameter_),
  171. PROTOBUF_FIELD_OFFSET(::shutter::setting_parameter, export_parameter_),
  172. PROTOBUF_FIELD_OFFSET(::shutter::setting_parameter, plc_setting_),
  173. 0,
  174. 1,
  175. 2,
  176. };
  177. static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  178. { 0, 13, sizeof(::shutter::lidar_parameter)},
  179. { 21, 32, sizeof(::shutter::box_param)},
  180. { 38, 46, sizeof(::shutter::plc_param)},
  181. { 49, 58, sizeof(::shutter::shutter_param)},
  182. { 62, 70, sizeof(::shutter::setting_parameter)},
  183. };
  184. static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
  185. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::shutter::_lidar_parameter_default_instance_),
  186. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::shutter::_box_param_default_instance_),
  187. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::shutter::_plc_param_default_instance_),
  188. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::shutter::_shutter_param_default_instance_),
  189. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::shutter::_setting_parameter_default_instance_),
  190. };
  191. const char descriptor_table_protodef_setting_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
  192. "\n\rsetting.proto\022\007shutter\"\211\001\n\017lidar_param"
  193. "eter\022\016\n\006sncode\030\001 \001(\t\022\014\n\001r\030\002 \001(\001:\0010\022\014\n\001p\030"
  194. "\003 \001(\001:\0010\022\014\n\001y\030\004 \001(\001:\0010\022\r\n\002tx\030\005 \001(\001:\0011\022\r\n"
  195. "\002ty\030\006 \001(\001:\0011\022\r\n\002tz\030\007 \001(\001:\0011\022\017\n\003fps\030\010 \001(\001"
  196. ":\00210\"_\n\tbox_param\022\014\n\004minx\030\001 \001(\001\022\014\n\004maxx\030"
  197. "\002 \001(\001\022\014\n\004miny\030\003 \001(\001\022\014\n\004maxy\030\004 \001(\001\022\014\n\004min"
  198. "z\030\005 \001(\001\022\014\n\004maxz\030\006 \001(\001\">\n\tplc_param\022\n\n\002ip"
  199. "\030\001 \002(\t\022\020\n\010dbnumber\030\002 \002(\005\022\023\n\010start_id\030\003 \001"
  200. "(\005:\0010\"\254\001\n\rshutter_param\022(\n\006lidars\030\001 \003(\0132"
  201. "\030.shutter.lidar_parameter\022\037\n\003box\030\002 \001(\0132\022"
  202. ".shutter.box_param\022\'\n\013verify_box1\030\003 \001(\0132"
  203. "\022.shutter.box_param\022\'\n\013verify_box2\030\004 \001(\013"
  204. "2\022.shutter.box_param\"\242\001\n\021setting_paramet"
  205. "er\0222\n\022entrance_parameter\030\001 \001(\0132\026.shutter"
  206. ".shutter_param\0220\n\020export_parameter\030\002 \001(\013"
  207. "2\026.shutter.shutter_param\022\'\n\013plc_setting\030"
  208. "\003 \002(\0132\022.shutter.plc_param"
  209. ;
  210. static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_setting_2eproto_deps[1] = {
  211. };
  212. static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_setting_2eproto_sccs[5] = {
  213. &scc_info_box_param_setting_2eproto.base,
  214. &scc_info_lidar_parameter_setting_2eproto.base,
  215. &scc_info_plc_param_setting_2eproto.base,
  216. &scc_info_setting_parameter_setting_2eproto.base,
  217. &scc_info_shutter_param_setting_2eproto.base,
  218. };
  219. static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_setting_2eproto_once;
  220. const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_setting_2eproto = {
  221. false, false, descriptor_table_protodef_setting_2eproto, "setting.proto", 665,
  222. &descriptor_table_setting_2eproto_once, descriptor_table_setting_2eproto_sccs, descriptor_table_setting_2eproto_deps, 5, 0,
  223. schemas, file_default_instances, TableStruct_setting_2eproto::offsets,
  224. file_level_metadata_setting_2eproto, 5, file_level_enum_descriptors_setting_2eproto, file_level_service_descriptors_setting_2eproto,
  225. };
  226. // Force running AddDescriptors() at dynamic initialization time.
  227. static bool dynamic_init_dummy_setting_2eproto = (static_cast<void>(::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_setting_2eproto)), true);
  228. namespace shutter {
  229. // ===================================================================
  230. void lidar_parameter::InitAsDefaultInstance() {
  231. }
  232. class lidar_parameter::_Internal {
  233. public:
  234. using HasBits = decltype(std::declval<lidar_parameter>()._has_bits_);
  235. static void set_has_sncode(HasBits* has_bits) {
  236. (*has_bits)[0] |= 1u;
  237. }
  238. static void set_has_r(HasBits* has_bits) {
  239. (*has_bits)[0] |= 2u;
  240. }
  241. static void set_has_p(HasBits* has_bits) {
  242. (*has_bits)[0] |= 4u;
  243. }
  244. static void set_has_y(HasBits* has_bits) {
  245. (*has_bits)[0] |= 8u;
  246. }
  247. static void set_has_tx(HasBits* has_bits) {
  248. (*has_bits)[0] |= 16u;
  249. }
  250. static void set_has_ty(HasBits* has_bits) {
  251. (*has_bits)[0] |= 32u;
  252. }
  253. static void set_has_tz(HasBits* has_bits) {
  254. (*has_bits)[0] |= 64u;
  255. }
  256. static void set_has_fps(HasBits* has_bits) {
  257. (*has_bits)[0] |= 128u;
  258. }
  259. };
  260. lidar_parameter::lidar_parameter(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  261. : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
  262. SharedCtor();
  263. RegisterArenaDtor(arena);
  264. // @@protoc_insertion_point(arena_constructor:shutter.lidar_parameter)
  265. }
  266. lidar_parameter::lidar_parameter(const lidar_parameter& from)
  267. : ::PROTOBUF_NAMESPACE_ID::Message(),
  268. _has_bits_(from._has_bits_) {
  269. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  270. sncode_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  271. if (from._internal_has_sncode()) {
  272. sncode_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_sncode(),
  273. GetArena());
  274. }
  275. ::memcpy(&r_, &from.r_,
  276. static_cast<size_t>(reinterpret_cast<char*>(&fps_) -
  277. reinterpret_cast<char*>(&r_)) + sizeof(fps_));
  278. // @@protoc_insertion_point(copy_constructor:shutter.lidar_parameter)
  279. }
  280. void lidar_parameter::SharedCtor() {
  281. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_lidar_parameter_setting_2eproto.base);
  282. sncode_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  283. ::memset(&r_, 0, static_cast<size_t>(
  284. reinterpret_cast<char*>(&y_) -
  285. reinterpret_cast<char*>(&r_)) + sizeof(y_));
  286. tx_ = 1;
  287. ty_ = 1;
  288. tz_ = 1;
  289. fps_ = 10;
  290. }
  291. lidar_parameter::~lidar_parameter() {
  292. // @@protoc_insertion_point(destructor:shutter.lidar_parameter)
  293. SharedDtor();
  294. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  295. }
  296. void lidar_parameter::SharedDtor() {
  297. GOOGLE_DCHECK(GetArena() == nullptr);
  298. sncode_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  299. }
  300. void lidar_parameter::ArenaDtor(void* object) {
  301. lidar_parameter* _this = reinterpret_cast< lidar_parameter* >(object);
  302. (void)_this;
  303. }
  304. void lidar_parameter::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  305. }
  306. void lidar_parameter::SetCachedSize(int size) const {
  307. _cached_size_.Set(size);
  308. }
  309. const lidar_parameter& lidar_parameter::default_instance() {
  310. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_lidar_parameter_setting_2eproto.base);
  311. return *internal_default_instance();
  312. }
  313. void lidar_parameter::Clear() {
  314. // @@protoc_insertion_point(message_clear_start:shutter.lidar_parameter)
  315. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  316. // Prevent compiler warnings about cached_has_bits being unused
  317. (void) cached_has_bits;
  318. cached_has_bits = _has_bits_[0];
  319. if (cached_has_bits & 0x00000001u) {
  320. sncode_.ClearNonDefaultToEmpty();
  321. }
  322. if (cached_has_bits & 0x000000feu) {
  323. ::memset(&r_, 0, static_cast<size_t>(
  324. reinterpret_cast<char*>(&y_) -
  325. reinterpret_cast<char*>(&r_)) + sizeof(y_));
  326. tx_ = 1;
  327. ty_ = 1;
  328. tz_ = 1;
  329. fps_ = 10;
  330. }
  331. _has_bits_.Clear();
  332. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  333. }
  334. const char* lidar_parameter::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  335. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  336. _Internal::HasBits has_bits{};
  337. ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena;
  338. while (!ctx->Done(&ptr)) {
  339. ::PROTOBUF_NAMESPACE_ID::uint32 tag;
  340. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  341. CHK_(ptr);
  342. switch (tag >> 3) {
  343. // optional string sncode = 1;
  344. case 1:
  345. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
  346. auto str = _internal_mutable_sncode();
  347. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  348. #ifndef NDEBUG
  349. ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "shutter.lidar_parameter.sncode");
  350. #endif // !NDEBUG
  351. CHK_(ptr);
  352. } else goto handle_unusual;
  353. continue;
  354. // optional double r = 2 [default = 0];
  355. case 2:
  356. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 17)) {
  357. _Internal::set_has_r(&has_bits);
  358. r_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  359. ptr += sizeof(double);
  360. } else goto handle_unusual;
  361. continue;
  362. // optional double p = 3 [default = 0];
  363. case 3:
  364. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 25)) {
  365. _Internal::set_has_p(&has_bits);
  366. p_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  367. ptr += sizeof(double);
  368. } else goto handle_unusual;
  369. continue;
  370. // optional double y = 4 [default = 0];
  371. case 4:
  372. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 33)) {
  373. _Internal::set_has_y(&has_bits);
  374. y_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  375. ptr += sizeof(double);
  376. } else goto handle_unusual;
  377. continue;
  378. // optional double tx = 5 [default = 1];
  379. case 5:
  380. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 41)) {
  381. _Internal::set_has_tx(&has_bits);
  382. tx_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  383. ptr += sizeof(double);
  384. } else goto handle_unusual;
  385. continue;
  386. // optional double ty = 6 [default = 1];
  387. case 6:
  388. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 49)) {
  389. _Internal::set_has_ty(&has_bits);
  390. ty_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  391. ptr += sizeof(double);
  392. } else goto handle_unusual;
  393. continue;
  394. // optional double tz = 7 [default = 1];
  395. case 7:
  396. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 57)) {
  397. _Internal::set_has_tz(&has_bits);
  398. tz_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  399. ptr += sizeof(double);
  400. } else goto handle_unusual;
  401. continue;
  402. // optional double fps = 8 [default = 10];
  403. case 8:
  404. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 65)) {
  405. _Internal::set_has_fps(&has_bits);
  406. fps_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  407. ptr += sizeof(double);
  408. } else goto handle_unusual;
  409. continue;
  410. default: {
  411. handle_unusual:
  412. if ((tag & 7) == 4 || tag == 0) {
  413. ctx->SetLastTag(tag);
  414. goto success;
  415. }
  416. ptr = UnknownFieldParse(tag,
  417. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  418. ptr, ctx);
  419. CHK_(ptr != nullptr);
  420. continue;
  421. }
  422. } // switch
  423. } // while
  424. success:
  425. _has_bits_.Or(has_bits);
  426. return ptr;
  427. failure:
  428. ptr = nullptr;
  429. goto success;
  430. #undef CHK_
  431. }
  432. ::PROTOBUF_NAMESPACE_ID::uint8* lidar_parameter::_InternalSerialize(
  433. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  434. // @@protoc_insertion_point(serialize_to_array_start:shutter.lidar_parameter)
  435. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  436. (void) cached_has_bits;
  437. cached_has_bits = _has_bits_[0];
  438. // optional string sncode = 1;
  439. if (cached_has_bits & 0x00000001u) {
  440. ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
  441. this->_internal_sncode().data(), static_cast<int>(this->_internal_sncode().length()),
  442. ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
  443. "shutter.lidar_parameter.sncode");
  444. target = stream->WriteStringMaybeAliased(
  445. 1, this->_internal_sncode(), target);
  446. }
  447. // optional double r = 2 [default = 0];
  448. if (cached_has_bits & 0x00000002u) {
  449. target = stream->EnsureSpace(target);
  450. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(2, this->_internal_r(), target);
  451. }
  452. // optional double p = 3 [default = 0];
  453. if (cached_has_bits & 0x00000004u) {
  454. target = stream->EnsureSpace(target);
  455. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(3, this->_internal_p(), target);
  456. }
  457. // optional double y = 4 [default = 0];
  458. if (cached_has_bits & 0x00000008u) {
  459. target = stream->EnsureSpace(target);
  460. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(4, this->_internal_y(), target);
  461. }
  462. // optional double tx = 5 [default = 1];
  463. if (cached_has_bits & 0x00000010u) {
  464. target = stream->EnsureSpace(target);
  465. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(5, this->_internal_tx(), target);
  466. }
  467. // optional double ty = 6 [default = 1];
  468. if (cached_has_bits & 0x00000020u) {
  469. target = stream->EnsureSpace(target);
  470. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(6, this->_internal_ty(), target);
  471. }
  472. // optional double tz = 7 [default = 1];
  473. if (cached_has_bits & 0x00000040u) {
  474. target = stream->EnsureSpace(target);
  475. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(7, this->_internal_tz(), target);
  476. }
  477. // optional double fps = 8 [default = 10];
  478. if (cached_has_bits & 0x00000080u) {
  479. target = stream->EnsureSpace(target);
  480. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(8, this->_internal_fps(), target);
  481. }
  482. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  483. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  484. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  485. }
  486. // @@protoc_insertion_point(serialize_to_array_end:shutter.lidar_parameter)
  487. return target;
  488. }
  489. size_t lidar_parameter::ByteSizeLong() const {
  490. // @@protoc_insertion_point(message_byte_size_start:shutter.lidar_parameter)
  491. size_t total_size = 0;
  492. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  493. // Prevent compiler warnings about cached_has_bits being unused
  494. (void) cached_has_bits;
  495. cached_has_bits = _has_bits_[0];
  496. if (cached_has_bits & 0x000000ffu) {
  497. // optional string sncode = 1;
  498. if (cached_has_bits & 0x00000001u) {
  499. total_size += 1 +
  500. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  501. this->_internal_sncode());
  502. }
  503. // optional double r = 2 [default = 0];
  504. if (cached_has_bits & 0x00000002u) {
  505. total_size += 1 + 8;
  506. }
  507. // optional double p = 3 [default = 0];
  508. if (cached_has_bits & 0x00000004u) {
  509. total_size += 1 + 8;
  510. }
  511. // optional double y = 4 [default = 0];
  512. if (cached_has_bits & 0x00000008u) {
  513. total_size += 1 + 8;
  514. }
  515. // optional double tx = 5 [default = 1];
  516. if (cached_has_bits & 0x00000010u) {
  517. total_size += 1 + 8;
  518. }
  519. // optional double ty = 6 [default = 1];
  520. if (cached_has_bits & 0x00000020u) {
  521. total_size += 1 + 8;
  522. }
  523. // optional double tz = 7 [default = 1];
  524. if (cached_has_bits & 0x00000040u) {
  525. total_size += 1 + 8;
  526. }
  527. // optional double fps = 8 [default = 10];
  528. if (cached_has_bits & 0x00000080u) {
  529. total_size += 1 + 8;
  530. }
  531. }
  532. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  533. return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
  534. _internal_metadata_, total_size, &_cached_size_);
  535. }
  536. int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
  537. SetCachedSize(cached_size);
  538. return total_size;
  539. }
  540. void lidar_parameter::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  541. // @@protoc_insertion_point(generalized_merge_from_start:shutter.lidar_parameter)
  542. GOOGLE_DCHECK_NE(&from, this);
  543. const lidar_parameter* source =
  544. ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<lidar_parameter>(
  545. &from);
  546. if (source == nullptr) {
  547. // @@protoc_insertion_point(generalized_merge_from_cast_fail:shutter.lidar_parameter)
  548. ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
  549. } else {
  550. // @@protoc_insertion_point(generalized_merge_from_cast_success:shutter.lidar_parameter)
  551. MergeFrom(*source);
  552. }
  553. }
  554. void lidar_parameter::MergeFrom(const lidar_parameter& from) {
  555. // @@protoc_insertion_point(class_specific_merge_from_start:shutter.lidar_parameter)
  556. GOOGLE_DCHECK_NE(&from, this);
  557. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  558. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  559. (void) cached_has_bits;
  560. cached_has_bits = from._has_bits_[0];
  561. if (cached_has_bits & 0x000000ffu) {
  562. if (cached_has_bits & 0x00000001u) {
  563. _internal_set_sncode(from._internal_sncode());
  564. }
  565. if (cached_has_bits & 0x00000002u) {
  566. r_ = from.r_;
  567. }
  568. if (cached_has_bits & 0x00000004u) {
  569. p_ = from.p_;
  570. }
  571. if (cached_has_bits & 0x00000008u) {
  572. y_ = from.y_;
  573. }
  574. if (cached_has_bits & 0x00000010u) {
  575. tx_ = from.tx_;
  576. }
  577. if (cached_has_bits & 0x00000020u) {
  578. ty_ = from.ty_;
  579. }
  580. if (cached_has_bits & 0x00000040u) {
  581. tz_ = from.tz_;
  582. }
  583. if (cached_has_bits & 0x00000080u) {
  584. fps_ = from.fps_;
  585. }
  586. _has_bits_[0] |= cached_has_bits;
  587. }
  588. }
  589. void lidar_parameter::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  590. // @@protoc_insertion_point(generalized_copy_from_start:shutter.lidar_parameter)
  591. if (&from == this) return;
  592. Clear();
  593. MergeFrom(from);
  594. }
  595. void lidar_parameter::CopyFrom(const lidar_parameter& from) {
  596. // @@protoc_insertion_point(class_specific_copy_from_start:shutter.lidar_parameter)
  597. if (&from == this) return;
  598. Clear();
  599. MergeFrom(from);
  600. }
  601. bool lidar_parameter::IsInitialized() const {
  602. return true;
  603. }
  604. void lidar_parameter::InternalSwap(lidar_parameter* other) {
  605. using std::swap;
  606. _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
  607. swap(_has_bits_[0], other->_has_bits_[0]);
  608. sncode_.Swap(&other->sncode_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
  609. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  610. PROTOBUF_FIELD_OFFSET(lidar_parameter, y_)
  611. + sizeof(lidar_parameter::y_)
  612. - PROTOBUF_FIELD_OFFSET(lidar_parameter, r_)>(
  613. reinterpret_cast<char*>(&r_),
  614. reinterpret_cast<char*>(&other->r_));
  615. swap(tx_, other->tx_);
  616. swap(ty_, other->ty_);
  617. swap(tz_, other->tz_);
  618. swap(fps_, other->fps_);
  619. }
  620. ::PROTOBUF_NAMESPACE_ID::Metadata lidar_parameter::GetMetadata() const {
  621. return GetMetadataStatic();
  622. }
  623. // ===================================================================
  624. void box_param::InitAsDefaultInstance() {
  625. }
  626. class box_param::_Internal {
  627. public:
  628. using HasBits = decltype(std::declval<box_param>()._has_bits_);
  629. static void set_has_minx(HasBits* has_bits) {
  630. (*has_bits)[0] |= 1u;
  631. }
  632. static void set_has_maxx(HasBits* has_bits) {
  633. (*has_bits)[0] |= 2u;
  634. }
  635. static void set_has_miny(HasBits* has_bits) {
  636. (*has_bits)[0] |= 4u;
  637. }
  638. static void set_has_maxy(HasBits* has_bits) {
  639. (*has_bits)[0] |= 8u;
  640. }
  641. static void set_has_minz(HasBits* has_bits) {
  642. (*has_bits)[0] |= 16u;
  643. }
  644. static void set_has_maxz(HasBits* has_bits) {
  645. (*has_bits)[0] |= 32u;
  646. }
  647. };
  648. box_param::box_param(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  649. : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
  650. SharedCtor();
  651. RegisterArenaDtor(arena);
  652. // @@protoc_insertion_point(arena_constructor:shutter.box_param)
  653. }
  654. box_param::box_param(const box_param& from)
  655. : ::PROTOBUF_NAMESPACE_ID::Message(),
  656. _has_bits_(from._has_bits_) {
  657. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  658. ::memcpy(&minx_, &from.minx_,
  659. static_cast<size_t>(reinterpret_cast<char*>(&maxz_) -
  660. reinterpret_cast<char*>(&minx_)) + sizeof(maxz_));
  661. // @@protoc_insertion_point(copy_constructor:shutter.box_param)
  662. }
  663. void box_param::SharedCtor() {
  664. ::memset(&minx_, 0, static_cast<size_t>(
  665. reinterpret_cast<char*>(&maxz_) -
  666. reinterpret_cast<char*>(&minx_)) + sizeof(maxz_));
  667. }
  668. box_param::~box_param() {
  669. // @@protoc_insertion_point(destructor:shutter.box_param)
  670. SharedDtor();
  671. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  672. }
  673. void box_param::SharedDtor() {
  674. GOOGLE_DCHECK(GetArena() == nullptr);
  675. }
  676. void box_param::ArenaDtor(void* object) {
  677. box_param* _this = reinterpret_cast< box_param* >(object);
  678. (void)_this;
  679. }
  680. void box_param::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  681. }
  682. void box_param::SetCachedSize(int size) const {
  683. _cached_size_.Set(size);
  684. }
  685. const box_param& box_param::default_instance() {
  686. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_box_param_setting_2eproto.base);
  687. return *internal_default_instance();
  688. }
  689. void box_param::Clear() {
  690. // @@protoc_insertion_point(message_clear_start:shutter.box_param)
  691. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  692. // Prevent compiler warnings about cached_has_bits being unused
  693. (void) cached_has_bits;
  694. cached_has_bits = _has_bits_[0];
  695. if (cached_has_bits & 0x0000003fu) {
  696. ::memset(&minx_, 0, static_cast<size_t>(
  697. reinterpret_cast<char*>(&maxz_) -
  698. reinterpret_cast<char*>(&minx_)) + sizeof(maxz_));
  699. }
  700. _has_bits_.Clear();
  701. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  702. }
  703. const char* box_param::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  704. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  705. _Internal::HasBits has_bits{};
  706. ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena;
  707. while (!ctx->Done(&ptr)) {
  708. ::PROTOBUF_NAMESPACE_ID::uint32 tag;
  709. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  710. CHK_(ptr);
  711. switch (tag >> 3) {
  712. // optional double minx = 1;
  713. case 1:
  714. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 9)) {
  715. _Internal::set_has_minx(&has_bits);
  716. minx_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  717. ptr += sizeof(double);
  718. } else goto handle_unusual;
  719. continue;
  720. // optional double maxx = 2;
  721. case 2:
  722. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 17)) {
  723. _Internal::set_has_maxx(&has_bits);
  724. maxx_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  725. ptr += sizeof(double);
  726. } else goto handle_unusual;
  727. continue;
  728. // optional double miny = 3;
  729. case 3:
  730. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 25)) {
  731. _Internal::set_has_miny(&has_bits);
  732. miny_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  733. ptr += sizeof(double);
  734. } else goto handle_unusual;
  735. continue;
  736. // optional double maxy = 4;
  737. case 4:
  738. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 33)) {
  739. _Internal::set_has_maxy(&has_bits);
  740. maxy_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  741. ptr += sizeof(double);
  742. } else goto handle_unusual;
  743. continue;
  744. // optional double minz = 5;
  745. case 5:
  746. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 41)) {
  747. _Internal::set_has_minz(&has_bits);
  748. minz_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  749. ptr += sizeof(double);
  750. } else goto handle_unusual;
  751. continue;
  752. // optional double maxz = 6;
  753. case 6:
  754. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 49)) {
  755. _Internal::set_has_maxz(&has_bits);
  756. maxz_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  757. ptr += sizeof(double);
  758. } else goto handle_unusual;
  759. continue;
  760. default: {
  761. handle_unusual:
  762. if ((tag & 7) == 4 || tag == 0) {
  763. ctx->SetLastTag(tag);
  764. goto success;
  765. }
  766. ptr = UnknownFieldParse(tag,
  767. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  768. ptr, ctx);
  769. CHK_(ptr != nullptr);
  770. continue;
  771. }
  772. } // switch
  773. } // while
  774. success:
  775. _has_bits_.Or(has_bits);
  776. return ptr;
  777. failure:
  778. ptr = nullptr;
  779. goto success;
  780. #undef CHK_
  781. }
  782. ::PROTOBUF_NAMESPACE_ID::uint8* box_param::_InternalSerialize(
  783. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  784. // @@protoc_insertion_point(serialize_to_array_start:shutter.box_param)
  785. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  786. (void) cached_has_bits;
  787. cached_has_bits = _has_bits_[0];
  788. // optional double minx = 1;
  789. if (cached_has_bits & 0x00000001u) {
  790. target = stream->EnsureSpace(target);
  791. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(1, this->_internal_minx(), target);
  792. }
  793. // optional double maxx = 2;
  794. if (cached_has_bits & 0x00000002u) {
  795. target = stream->EnsureSpace(target);
  796. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(2, this->_internal_maxx(), target);
  797. }
  798. // optional double miny = 3;
  799. if (cached_has_bits & 0x00000004u) {
  800. target = stream->EnsureSpace(target);
  801. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(3, this->_internal_miny(), target);
  802. }
  803. // optional double maxy = 4;
  804. if (cached_has_bits & 0x00000008u) {
  805. target = stream->EnsureSpace(target);
  806. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(4, this->_internal_maxy(), target);
  807. }
  808. // optional double minz = 5;
  809. if (cached_has_bits & 0x00000010u) {
  810. target = stream->EnsureSpace(target);
  811. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(5, this->_internal_minz(), target);
  812. }
  813. // optional double maxz = 6;
  814. if (cached_has_bits & 0x00000020u) {
  815. target = stream->EnsureSpace(target);
  816. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(6, this->_internal_maxz(), target);
  817. }
  818. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  819. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  820. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  821. }
  822. // @@protoc_insertion_point(serialize_to_array_end:shutter.box_param)
  823. return target;
  824. }
  825. size_t box_param::ByteSizeLong() const {
  826. // @@protoc_insertion_point(message_byte_size_start:shutter.box_param)
  827. size_t total_size = 0;
  828. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  829. // Prevent compiler warnings about cached_has_bits being unused
  830. (void) cached_has_bits;
  831. cached_has_bits = _has_bits_[0];
  832. if (cached_has_bits & 0x0000003fu) {
  833. // optional double minx = 1;
  834. if (cached_has_bits & 0x00000001u) {
  835. total_size += 1 + 8;
  836. }
  837. // optional double maxx = 2;
  838. if (cached_has_bits & 0x00000002u) {
  839. total_size += 1 + 8;
  840. }
  841. // optional double miny = 3;
  842. if (cached_has_bits & 0x00000004u) {
  843. total_size += 1 + 8;
  844. }
  845. // optional double maxy = 4;
  846. if (cached_has_bits & 0x00000008u) {
  847. total_size += 1 + 8;
  848. }
  849. // optional double minz = 5;
  850. if (cached_has_bits & 0x00000010u) {
  851. total_size += 1 + 8;
  852. }
  853. // optional double maxz = 6;
  854. if (cached_has_bits & 0x00000020u) {
  855. total_size += 1 + 8;
  856. }
  857. }
  858. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  859. return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
  860. _internal_metadata_, total_size, &_cached_size_);
  861. }
  862. int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
  863. SetCachedSize(cached_size);
  864. return total_size;
  865. }
  866. void box_param::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  867. // @@protoc_insertion_point(generalized_merge_from_start:shutter.box_param)
  868. GOOGLE_DCHECK_NE(&from, this);
  869. const box_param* source =
  870. ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<box_param>(
  871. &from);
  872. if (source == nullptr) {
  873. // @@protoc_insertion_point(generalized_merge_from_cast_fail:shutter.box_param)
  874. ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
  875. } else {
  876. // @@protoc_insertion_point(generalized_merge_from_cast_success:shutter.box_param)
  877. MergeFrom(*source);
  878. }
  879. }
  880. void box_param::MergeFrom(const box_param& from) {
  881. // @@protoc_insertion_point(class_specific_merge_from_start:shutter.box_param)
  882. GOOGLE_DCHECK_NE(&from, this);
  883. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  884. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  885. (void) cached_has_bits;
  886. cached_has_bits = from._has_bits_[0];
  887. if (cached_has_bits & 0x0000003fu) {
  888. if (cached_has_bits & 0x00000001u) {
  889. minx_ = from.minx_;
  890. }
  891. if (cached_has_bits & 0x00000002u) {
  892. maxx_ = from.maxx_;
  893. }
  894. if (cached_has_bits & 0x00000004u) {
  895. miny_ = from.miny_;
  896. }
  897. if (cached_has_bits & 0x00000008u) {
  898. maxy_ = from.maxy_;
  899. }
  900. if (cached_has_bits & 0x00000010u) {
  901. minz_ = from.minz_;
  902. }
  903. if (cached_has_bits & 0x00000020u) {
  904. maxz_ = from.maxz_;
  905. }
  906. _has_bits_[0] |= cached_has_bits;
  907. }
  908. }
  909. void box_param::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  910. // @@protoc_insertion_point(generalized_copy_from_start:shutter.box_param)
  911. if (&from == this) return;
  912. Clear();
  913. MergeFrom(from);
  914. }
  915. void box_param::CopyFrom(const box_param& from) {
  916. // @@protoc_insertion_point(class_specific_copy_from_start:shutter.box_param)
  917. if (&from == this) return;
  918. Clear();
  919. MergeFrom(from);
  920. }
  921. bool box_param::IsInitialized() const {
  922. return true;
  923. }
  924. void box_param::InternalSwap(box_param* other) {
  925. using std::swap;
  926. _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
  927. swap(_has_bits_[0], other->_has_bits_[0]);
  928. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  929. PROTOBUF_FIELD_OFFSET(box_param, maxz_)
  930. + sizeof(box_param::maxz_)
  931. - PROTOBUF_FIELD_OFFSET(box_param, minx_)>(
  932. reinterpret_cast<char*>(&minx_),
  933. reinterpret_cast<char*>(&other->minx_));
  934. }
  935. ::PROTOBUF_NAMESPACE_ID::Metadata box_param::GetMetadata() const {
  936. return GetMetadataStatic();
  937. }
  938. // ===================================================================
  939. void plc_param::InitAsDefaultInstance() {
  940. }
  941. class plc_param::_Internal {
  942. public:
  943. using HasBits = decltype(std::declval<plc_param>()._has_bits_);
  944. static void set_has_ip(HasBits* has_bits) {
  945. (*has_bits)[0] |= 1u;
  946. }
  947. static void set_has_dbnumber(HasBits* has_bits) {
  948. (*has_bits)[0] |= 2u;
  949. }
  950. static void set_has_start_id(HasBits* has_bits) {
  951. (*has_bits)[0] |= 4u;
  952. }
  953. static bool MissingRequiredFields(const HasBits& has_bits) {
  954. return ((has_bits[0] & 0x00000003) ^ 0x00000003) != 0;
  955. }
  956. };
  957. plc_param::plc_param(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  958. : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
  959. SharedCtor();
  960. RegisterArenaDtor(arena);
  961. // @@protoc_insertion_point(arena_constructor:shutter.plc_param)
  962. }
  963. plc_param::plc_param(const plc_param& from)
  964. : ::PROTOBUF_NAMESPACE_ID::Message(),
  965. _has_bits_(from._has_bits_) {
  966. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  967. ip_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  968. if (from._internal_has_ip()) {
  969. ip_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_ip(),
  970. GetArena());
  971. }
  972. ::memcpy(&dbnumber_, &from.dbnumber_,
  973. static_cast<size_t>(reinterpret_cast<char*>(&start_id_) -
  974. reinterpret_cast<char*>(&dbnumber_)) + sizeof(start_id_));
  975. // @@protoc_insertion_point(copy_constructor:shutter.plc_param)
  976. }
  977. void plc_param::SharedCtor() {
  978. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_plc_param_setting_2eproto.base);
  979. ip_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  980. ::memset(&dbnumber_, 0, static_cast<size_t>(
  981. reinterpret_cast<char*>(&start_id_) -
  982. reinterpret_cast<char*>(&dbnumber_)) + sizeof(start_id_));
  983. }
  984. plc_param::~plc_param() {
  985. // @@protoc_insertion_point(destructor:shutter.plc_param)
  986. SharedDtor();
  987. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  988. }
  989. void plc_param::SharedDtor() {
  990. GOOGLE_DCHECK(GetArena() == nullptr);
  991. ip_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  992. }
  993. void plc_param::ArenaDtor(void* object) {
  994. plc_param* _this = reinterpret_cast< plc_param* >(object);
  995. (void)_this;
  996. }
  997. void plc_param::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  998. }
  999. void plc_param::SetCachedSize(int size) const {
  1000. _cached_size_.Set(size);
  1001. }
  1002. const plc_param& plc_param::default_instance() {
  1003. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_plc_param_setting_2eproto.base);
  1004. return *internal_default_instance();
  1005. }
  1006. void plc_param::Clear() {
  1007. // @@protoc_insertion_point(message_clear_start:shutter.plc_param)
  1008. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  1009. // Prevent compiler warnings about cached_has_bits being unused
  1010. (void) cached_has_bits;
  1011. cached_has_bits = _has_bits_[0];
  1012. if (cached_has_bits & 0x00000001u) {
  1013. ip_.ClearNonDefaultToEmpty();
  1014. }
  1015. if (cached_has_bits & 0x00000006u) {
  1016. ::memset(&dbnumber_, 0, static_cast<size_t>(
  1017. reinterpret_cast<char*>(&start_id_) -
  1018. reinterpret_cast<char*>(&dbnumber_)) + sizeof(start_id_));
  1019. }
  1020. _has_bits_.Clear();
  1021. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1022. }
  1023. const char* plc_param::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  1024. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  1025. _Internal::HasBits has_bits{};
  1026. ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena;
  1027. while (!ctx->Done(&ptr)) {
  1028. ::PROTOBUF_NAMESPACE_ID::uint32 tag;
  1029. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  1030. CHK_(ptr);
  1031. switch (tag >> 3) {
  1032. // required string ip = 1;
  1033. case 1:
  1034. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
  1035. auto str = _internal_mutable_ip();
  1036. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  1037. #ifndef NDEBUG
  1038. ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "shutter.plc_param.ip");
  1039. #endif // !NDEBUG
  1040. CHK_(ptr);
  1041. } else goto handle_unusual;
  1042. continue;
  1043. // required int32 dbnumber = 2;
  1044. case 2:
  1045. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
  1046. _Internal::set_has_dbnumber(&has_bits);
  1047. dbnumber_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  1048. CHK_(ptr);
  1049. } else goto handle_unusual;
  1050. continue;
  1051. // optional int32 start_id = 3 [default = 0];
  1052. case 3:
  1053. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
  1054. _Internal::set_has_start_id(&has_bits);
  1055. start_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  1056. CHK_(ptr);
  1057. } else goto handle_unusual;
  1058. continue;
  1059. default: {
  1060. handle_unusual:
  1061. if ((tag & 7) == 4 || tag == 0) {
  1062. ctx->SetLastTag(tag);
  1063. goto success;
  1064. }
  1065. ptr = UnknownFieldParse(tag,
  1066. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  1067. ptr, ctx);
  1068. CHK_(ptr != nullptr);
  1069. continue;
  1070. }
  1071. } // switch
  1072. } // while
  1073. success:
  1074. _has_bits_.Or(has_bits);
  1075. return ptr;
  1076. failure:
  1077. ptr = nullptr;
  1078. goto success;
  1079. #undef CHK_
  1080. }
  1081. ::PROTOBUF_NAMESPACE_ID::uint8* plc_param::_InternalSerialize(
  1082. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  1083. // @@protoc_insertion_point(serialize_to_array_start:shutter.plc_param)
  1084. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  1085. (void) cached_has_bits;
  1086. cached_has_bits = _has_bits_[0];
  1087. // required string ip = 1;
  1088. if (cached_has_bits & 0x00000001u) {
  1089. ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
  1090. this->_internal_ip().data(), static_cast<int>(this->_internal_ip().length()),
  1091. ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
  1092. "shutter.plc_param.ip");
  1093. target = stream->WriteStringMaybeAliased(
  1094. 1, this->_internal_ip(), target);
  1095. }
  1096. // required int32 dbnumber = 2;
  1097. if (cached_has_bits & 0x00000002u) {
  1098. target = stream->EnsureSpace(target);
  1099. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_dbnumber(), target);
  1100. }
  1101. // optional int32 start_id = 3 [default = 0];
  1102. if (cached_has_bits & 0x00000004u) {
  1103. target = stream->EnsureSpace(target);
  1104. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_start_id(), target);
  1105. }
  1106. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1107. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  1108. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  1109. }
  1110. // @@protoc_insertion_point(serialize_to_array_end:shutter.plc_param)
  1111. return target;
  1112. }
  1113. size_t plc_param::RequiredFieldsByteSizeFallback() const {
  1114. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:shutter.plc_param)
  1115. size_t total_size = 0;
  1116. if (_internal_has_ip()) {
  1117. // required string ip = 1;
  1118. total_size += 1 +
  1119. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  1120. this->_internal_ip());
  1121. }
  1122. if (_internal_has_dbnumber()) {
  1123. // required int32 dbnumber = 2;
  1124. total_size += 1 +
  1125. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  1126. this->_internal_dbnumber());
  1127. }
  1128. return total_size;
  1129. }
  1130. size_t plc_param::ByteSizeLong() const {
  1131. // @@protoc_insertion_point(message_byte_size_start:shutter.plc_param)
  1132. size_t total_size = 0;
  1133. if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present.
  1134. // required string ip = 1;
  1135. total_size += 1 +
  1136. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  1137. this->_internal_ip());
  1138. // required int32 dbnumber = 2;
  1139. total_size += 1 +
  1140. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  1141. this->_internal_dbnumber());
  1142. } else {
  1143. total_size += RequiredFieldsByteSizeFallback();
  1144. }
  1145. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  1146. // Prevent compiler warnings about cached_has_bits being unused
  1147. (void) cached_has_bits;
  1148. // optional int32 start_id = 3 [default = 0];
  1149. cached_has_bits = _has_bits_[0];
  1150. if (cached_has_bits & 0x00000004u) {
  1151. total_size += 1 +
  1152. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  1153. this->_internal_start_id());
  1154. }
  1155. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1156. return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
  1157. _internal_metadata_, total_size, &_cached_size_);
  1158. }
  1159. int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
  1160. SetCachedSize(cached_size);
  1161. return total_size;
  1162. }
  1163. void plc_param::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  1164. // @@protoc_insertion_point(generalized_merge_from_start:shutter.plc_param)
  1165. GOOGLE_DCHECK_NE(&from, this);
  1166. const plc_param* source =
  1167. ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<plc_param>(
  1168. &from);
  1169. if (source == nullptr) {
  1170. // @@protoc_insertion_point(generalized_merge_from_cast_fail:shutter.plc_param)
  1171. ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
  1172. } else {
  1173. // @@protoc_insertion_point(generalized_merge_from_cast_success:shutter.plc_param)
  1174. MergeFrom(*source);
  1175. }
  1176. }
  1177. void plc_param::MergeFrom(const plc_param& from) {
  1178. // @@protoc_insertion_point(class_specific_merge_from_start:shutter.plc_param)
  1179. GOOGLE_DCHECK_NE(&from, this);
  1180. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1181. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  1182. (void) cached_has_bits;
  1183. cached_has_bits = from._has_bits_[0];
  1184. if (cached_has_bits & 0x00000007u) {
  1185. if (cached_has_bits & 0x00000001u) {
  1186. _internal_set_ip(from._internal_ip());
  1187. }
  1188. if (cached_has_bits & 0x00000002u) {
  1189. dbnumber_ = from.dbnumber_;
  1190. }
  1191. if (cached_has_bits & 0x00000004u) {
  1192. start_id_ = from.start_id_;
  1193. }
  1194. _has_bits_[0] |= cached_has_bits;
  1195. }
  1196. }
  1197. void plc_param::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  1198. // @@protoc_insertion_point(generalized_copy_from_start:shutter.plc_param)
  1199. if (&from == this) return;
  1200. Clear();
  1201. MergeFrom(from);
  1202. }
  1203. void plc_param::CopyFrom(const plc_param& from) {
  1204. // @@protoc_insertion_point(class_specific_copy_from_start:shutter.plc_param)
  1205. if (&from == this) return;
  1206. Clear();
  1207. MergeFrom(from);
  1208. }
  1209. bool plc_param::IsInitialized() const {
  1210. if (_Internal::MissingRequiredFields(_has_bits_)) return false;
  1211. return true;
  1212. }
  1213. void plc_param::InternalSwap(plc_param* other) {
  1214. using std::swap;
  1215. _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
  1216. swap(_has_bits_[0], other->_has_bits_[0]);
  1217. ip_.Swap(&other->ip_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
  1218. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  1219. PROTOBUF_FIELD_OFFSET(plc_param, start_id_)
  1220. + sizeof(plc_param::start_id_)
  1221. - PROTOBUF_FIELD_OFFSET(plc_param, dbnumber_)>(
  1222. reinterpret_cast<char*>(&dbnumber_),
  1223. reinterpret_cast<char*>(&other->dbnumber_));
  1224. }
  1225. ::PROTOBUF_NAMESPACE_ID::Metadata plc_param::GetMetadata() const {
  1226. return GetMetadataStatic();
  1227. }
  1228. // ===================================================================
  1229. void shutter_param::InitAsDefaultInstance() {
  1230. ::shutter::_shutter_param_default_instance_._instance.get_mutable()->box_ = const_cast< ::shutter::box_param*>(
  1231. ::shutter::box_param::internal_default_instance());
  1232. ::shutter::_shutter_param_default_instance_._instance.get_mutable()->verify_box1_ = const_cast< ::shutter::box_param*>(
  1233. ::shutter::box_param::internal_default_instance());
  1234. ::shutter::_shutter_param_default_instance_._instance.get_mutable()->verify_box2_ = const_cast< ::shutter::box_param*>(
  1235. ::shutter::box_param::internal_default_instance());
  1236. }
  1237. class shutter_param::_Internal {
  1238. public:
  1239. using HasBits = decltype(std::declval<shutter_param>()._has_bits_);
  1240. static const ::shutter::box_param& box(const shutter_param* msg);
  1241. static void set_has_box(HasBits* has_bits) {
  1242. (*has_bits)[0] |= 1u;
  1243. }
  1244. static const ::shutter::box_param& verify_box1(const shutter_param* msg);
  1245. static void set_has_verify_box1(HasBits* has_bits) {
  1246. (*has_bits)[0] |= 2u;
  1247. }
  1248. static const ::shutter::box_param& verify_box2(const shutter_param* msg);
  1249. static void set_has_verify_box2(HasBits* has_bits) {
  1250. (*has_bits)[0] |= 4u;
  1251. }
  1252. };
  1253. const ::shutter::box_param&
  1254. shutter_param::_Internal::box(const shutter_param* msg) {
  1255. return *msg->box_;
  1256. }
  1257. const ::shutter::box_param&
  1258. shutter_param::_Internal::verify_box1(const shutter_param* msg) {
  1259. return *msg->verify_box1_;
  1260. }
  1261. const ::shutter::box_param&
  1262. shutter_param::_Internal::verify_box2(const shutter_param* msg) {
  1263. return *msg->verify_box2_;
  1264. }
  1265. shutter_param::shutter_param(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  1266. : ::PROTOBUF_NAMESPACE_ID::Message(arena),
  1267. lidars_(arena) {
  1268. SharedCtor();
  1269. RegisterArenaDtor(arena);
  1270. // @@protoc_insertion_point(arena_constructor:shutter.shutter_param)
  1271. }
  1272. shutter_param::shutter_param(const shutter_param& from)
  1273. : ::PROTOBUF_NAMESPACE_ID::Message(),
  1274. _has_bits_(from._has_bits_),
  1275. lidars_(from.lidars_) {
  1276. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1277. if (from._internal_has_box()) {
  1278. box_ = new ::shutter::box_param(*from.box_);
  1279. } else {
  1280. box_ = nullptr;
  1281. }
  1282. if (from._internal_has_verify_box1()) {
  1283. verify_box1_ = new ::shutter::box_param(*from.verify_box1_);
  1284. } else {
  1285. verify_box1_ = nullptr;
  1286. }
  1287. if (from._internal_has_verify_box2()) {
  1288. verify_box2_ = new ::shutter::box_param(*from.verify_box2_);
  1289. } else {
  1290. verify_box2_ = nullptr;
  1291. }
  1292. // @@protoc_insertion_point(copy_constructor:shutter.shutter_param)
  1293. }
  1294. void shutter_param::SharedCtor() {
  1295. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_shutter_param_setting_2eproto.base);
  1296. ::memset(&box_, 0, static_cast<size_t>(
  1297. reinterpret_cast<char*>(&verify_box2_) -
  1298. reinterpret_cast<char*>(&box_)) + sizeof(verify_box2_));
  1299. }
  1300. shutter_param::~shutter_param() {
  1301. // @@protoc_insertion_point(destructor:shutter.shutter_param)
  1302. SharedDtor();
  1303. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1304. }
  1305. void shutter_param::SharedDtor() {
  1306. GOOGLE_DCHECK(GetArena() == nullptr);
  1307. if (this != internal_default_instance()) delete box_;
  1308. if (this != internal_default_instance()) delete verify_box1_;
  1309. if (this != internal_default_instance()) delete verify_box2_;
  1310. }
  1311. void shutter_param::ArenaDtor(void* object) {
  1312. shutter_param* _this = reinterpret_cast< shutter_param* >(object);
  1313. (void)_this;
  1314. }
  1315. void shutter_param::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  1316. }
  1317. void shutter_param::SetCachedSize(int size) const {
  1318. _cached_size_.Set(size);
  1319. }
  1320. const shutter_param& shutter_param::default_instance() {
  1321. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_shutter_param_setting_2eproto.base);
  1322. return *internal_default_instance();
  1323. }
  1324. void shutter_param::Clear() {
  1325. // @@protoc_insertion_point(message_clear_start:shutter.shutter_param)
  1326. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  1327. // Prevent compiler warnings about cached_has_bits being unused
  1328. (void) cached_has_bits;
  1329. lidars_.Clear();
  1330. cached_has_bits = _has_bits_[0];
  1331. if (cached_has_bits & 0x00000007u) {
  1332. if (cached_has_bits & 0x00000001u) {
  1333. GOOGLE_DCHECK(box_ != nullptr);
  1334. box_->Clear();
  1335. }
  1336. if (cached_has_bits & 0x00000002u) {
  1337. GOOGLE_DCHECK(verify_box1_ != nullptr);
  1338. verify_box1_->Clear();
  1339. }
  1340. if (cached_has_bits & 0x00000004u) {
  1341. GOOGLE_DCHECK(verify_box2_ != nullptr);
  1342. verify_box2_->Clear();
  1343. }
  1344. }
  1345. _has_bits_.Clear();
  1346. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1347. }
  1348. const char* shutter_param::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  1349. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  1350. _Internal::HasBits has_bits{};
  1351. ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena;
  1352. while (!ctx->Done(&ptr)) {
  1353. ::PROTOBUF_NAMESPACE_ID::uint32 tag;
  1354. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  1355. CHK_(ptr);
  1356. switch (tag >> 3) {
  1357. // repeated .shutter.lidar_parameter lidars = 1;
  1358. case 1:
  1359. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
  1360. ptr -= 1;
  1361. do {
  1362. ptr += 1;
  1363. ptr = ctx->ParseMessage(_internal_add_lidars(), ptr);
  1364. CHK_(ptr);
  1365. if (!ctx->DataAvailable(ptr)) break;
  1366. } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
  1367. } else goto handle_unusual;
  1368. continue;
  1369. // optional .shutter.box_param box = 2;
  1370. case 2:
  1371. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
  1372. ptr = ctx->ParseMessage(_internal_mutable_box(), ptr);
  1373. CHK_(ptr);
  1374. } else goto handle_unusual;
  1375. continue;
  1376. // optional .shutter.box_param verify_box1 = 3;
  1377. case 3:
  1378. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
  1379. ptr = ctx->ParseMessage(_internal_mutable_verify_box1(), ptr);
  1380. CHK_(ptr);
  1381. } else goto handle_unusual;
  1382. continue;
  1383. // optional .shutter.box_param verify_box2 = 4;
  1384. case 4:
  1385. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
  1386. ptr = ctx->ParseMessage(_internal_mutable_verify_box2(), ptr);
  1387. CHK_(ptr);
  1388. } else goto handle_unusual;
  1389. continue;
  1390. default: {
  1391. handle_unusual:
  1392. if ((tag & 7) == 4 || tag == 0) {
  1393. ctx->SetLastTag(tag);
  1394. goto success;
  1395. }
  1396. ptr = UnknownFieldParse(tag,
  1397. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  1398. ptr, ctx);
  1399. CHK_(ptr != nullptr);
  1400. continue;
  1401. }
  1402. } // switch
  1403. } // while
  1404. success:
  1405. _has_bits_.Or(has_bits);
  1406. return ptr;
  1407. failure:
  1408. ptr = nullptr;
  1409. goto success;
  1410. #undef CHK_
  1411. }
  1412. ::PROTOBUF_NAMESPACE_ID::uint8* shutter_param::_InternalSerialize(
  1413. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  1414. // @@protoc_insertion_point(serialize_to_array_start:shutter.shutter_param)
  1415. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  1416. (void) cached_has_bits;
  1417. // repeated .shutter.lidar_parameter lidars = 1;
  1418. for (unsigned int i = 0,
  1419. n = static_cast<unsigned int>(this->_internal_lidars_size()); i < n; i++) {
  1420. target = stream->EnsureSpace(target);
  1421. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  1422. InternalWriteMessage(1, this->_internal_lidars(i), target, stream);
  1423. }
  1424. cached_has_bits = _has_bits_[0];
  1425. // optional .shutter.box_param box = 2;
  1426. if (cached_has_bits & 0x00000001u) {
  1427. target = stream->EnsureSpace(target);
  1428. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  1429. InternalWriteMessage(
  1430. 2, _Internal::box(this), target, stream);
  1431. }
  1432. // optional .shutter.box_param verify_box1 = 3;
  1433. if (cached_has_bits & 0x00000002u) {
  1434. target = stream->EnsureSpace(target);
  1435. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  1436. InternalWriteMessage(
  1437. 3, _Internal::verify_box1(this), target, stream);
  1438. }
  1439. // optional .shutter.box_param verify_box2 = 4;
  1440. if (cached_has_bits & 0x00000004u) {
  1441. target = stream->EnsureSpace(target);
  1442. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  1443. InternalWriteMessage(
  1444. 4, _Internal::verify_box2(this), target, stream);
  1445. }
  1446. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1447. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  1448. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  1449. }
  1450. // @@protoc_insertion_point(serialize_to_array_end:shutter.shutter_param)
  1451. return target;
  1452. }
  1453. size_t shutter_param::ByteSizeLong() const {
  1454. // @@protoc_insertion_point(message_byte_size_start:shutter.shutter_param)
  1455. size_t total_size = 0;
  1456. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  1457. // Prevent compiler warnings about cached_has_bits being unused
  1458. (void) cached_has_bits;
  1459. // repeated .shutter.lidar_parameter lidars = 1;
  1460. total_size += 1UL * this->_internal_lidars_size();
  1461. for (const auto& msg : this->lidars_) {
  1462. total_size +=
  1463. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  1464. }
  1465. cached_has_bits = _has_bits_[0];
  1466. if (cached_has_bits & 0x00000007u) {
  1467. // optional .shutter.box_param box = 2;
  1468. if (cached_has_bits & 0x00000001u) {
  1469. total_size += 1 +
  1470. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  1471. *box_);
  1472. }
  1473. // optional .shutter.box_param verify_box1 = 3;
  1474. if (cached_has_bits & 0x00000002u) {
  1475. total_size += 1 +
  1476. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  1477. *verify_box1_);
  1478. }
  1479. // optional .shutter.box_param verify_box2 = 4;
  1480. if (cached_has_bits & 0x00000004u) {
  1481. total_size += 1 +
  1482. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  1483. *verify_box2_);
  1484. }
  1485. }
  1486. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1487. return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
  1488. _internal_metadata_, total_size, &_cached_size_);
  1489. }
  1490. int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
  1491. SetCachedSize(cached_size);
  1492. return total_size;
  1493. }
  1494. void shutter_param::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  1495. // @@protoc_insertion_point(generalized_merge_from_start:shutter.shutter_param)
  1496. GOOGLE_DCHECK_NE(&from, this);
  1497. const shutter_param* source =
  1498. ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<shutter_param>(
  1499. &from);
  1500. if (source == nullptr) {
  1501. // @@protoc_insertion_point(generalized_merge_from_cast_fail:shutter.shutter_param)
  1502. ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
  1503. } else {
  1504. // @@protoc_insertion_point(generalized_merge_from_cast_success:shutter.shutter_param)
  1505. MergeFrom(*source);
  1506. }
  1507. }
  1508. void shutter_param::MergeFrom(const shutter_param& from) {
  1509. // @@protoc_insertion_point(class_specific_merge_from_start:shutter.shutter_param)
  1510. GOOGLE_DCHECK_NE(&from, this);
  1511. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1512. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  1513. (void) cached_has_bits;
  1514. lidars_.MergeFrom(from.lidars_);
  1515. cached_has_bits = from._has_bits_[0];
  1516. if (cached_has_bits & 0x00000007u) {
  1517. if (cached_has_bits & 0x00000001u) {
  1518. _internal_mutable_box()->::shutter::box_param::MergeFrom(from._internal_box());
  1519. }
  1520. if (cached_has_bits & 0x00000002u) {
  1521. _internal_mutable_verify_box1()->::shutter::box_param::MergeFrom(from._internal_verify_box1());
  1522. }
  1523. if (cached_has_bits & 0x00000004u) {
  1524. _internal_mutable_verify_box2()->::shutter::box_param::MergeFrom(from._internal_verify_box2());
  1525. }
  1526. }
  1527. }
  1528. void shutter_param::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  1529. // @@protoc_insertion_point(generalized_copy_from_start:shutter.shutter_param)
  1530. if (&from == this) return;
  1531. Clear();
  1532. MergeFrom(from);
  1533. }
  1534. void shutter_param::CopyFrom(const shutter_param& from) {
  1535. // @@protoc_insertion_point(class_specific_copy_from_start:shutter.shutter_param)
  1536. if (&from == this) return;
  1537. Clear();
  1538. MergeFrom(from);
  1539. }
  1540. bool shutter_param::IsInitialized() const {
  1541. return true;
  1542. }
  1543. void shutter_param::InternalSwap(shutter_param* other) {
  1544. using std::swap;
  1545. _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
  1546. swap(_has_bits_[0], other->_has_bits_[0]);
  1547. lidars_.InternalSwap(&other->lidars_);
  1548. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  1549. PROTOBUF_FIELD_OFFSET(shutter_param, verify_box2_)
  1550. + sizeof(shutter_param::verify_box2_)
  1551. - PROTOBUF_FIELD_OFFSET(shutter_param, box_)>(
  1552. reinterpret_cast<char*>(&box_),
  1553. reinterpret_cast<char*>(&other->box_));
  1554. }
  1555. ::PROTOBUF_NAMESPACE_ID::Metadata shutter_param::GetMetadata() const {
  1556. return GetMetadataStatic();
  1557. }
  1558. // ===================================================================
  1559. void setting_parameter::InitAsDefaultInstance() {
  1560. ::shutter::_setting_parameter_default_instance_._instance.get_mutable()->entrance_parameter_ = const_cast< ::shutter::shutter_param*>(
  1561. ::shutter::shutter_param::internal_default_instance());
  1562. ::shutter::_setting_parameter_default_instance_._instance.get_mutable()->export_parameter_ = const_cast< ::shutter::shutter_param*>(
  1563. ::shutter::shutter_param::internal_default_instance());
  1564. ::shutter::_setting_parameter_default_instance_._instance.get_mutable()->plc_setting_ = const_cast< ::shutter::plc_param*>(
  1565. ::shutter::plc_param::internal_default_instance());
  1566. }
  1567. class setting_parameter::_Internal {
  1568. public:
  1569. using HasBits = decltype(std::declval<setting_parameter>()._has_bits_);
  1570. static const ::shutter::shutter_param& entrance_parameter(const setting_parameter* msg);
  1571. static void set_has_entrance_parameter(HasBits* has_bits) {
  1572. (*has_bits)[0] |= 1u;
  1573. }
  1574. static const ::shutter::shutter_param& export_parameter(const setting_parameter* msg);
  1575. static void set_has_export_parameter(HasBits* has_bits) {
  1576. (*has_bits)[0] |= 2u;
  1577. }
  1578. static const ::shutter::plc_param& plc_setting(const setting_parameter* msg);
  1579. static void set_has_plc_setting(HasBits* has_bits) {
  1580. (*has_bits)[0] |= 4u;
  1581. }
  1582. static bool MissingRequiredFields(const HasBits& has_bits) {
  1583. return ((has_bits[0] & 0x00000004) ^ 0x00000004) != 0;
  1584. }
  1585. };
  1586. const ::shutter::shutter_param&
  1587. setting_parameter::_Internal::entrance_parameter(const setting_parameter* msg) {
  1588. return *msg->entrance_parameter_;
  1589. }
  1590. const ::shutter::shutter_param&
  1591. setting_parameter::_Internal::export_parameter(const setting_parameter* msg) {
  1592. return *msg->export_parameter_;
  1593. }
  1594. const ::shutter::plc_param&
  1595. setting_parameter::_Internal::plc_setting(const setting_parameter* msg) {
  1596. return *msg->plc_setting_;
  1597. }
  1598. setting_parameter::setting_parameter(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  1599. : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
  1600. SharedCtor();
  1601. RegisterArenaDtor(arena);
  1602. // @@protoc_insertion_point(arena_constructor:shutter.setting_parameter)
  1603. }
  1604. setting_parameter::setting_parameter(const setting_parameter& from)
  1605. : ::PROTOBUF_NAMESPACE_ID::Message(),
  1606. _has_bits_(from._has_bits_) {
  1607. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1608. if (from._internal_has_entrance_parameter()) {
  1609. entrance_parameter_ = new ::shutter::shutter_param(*from.entrance_parameter_);
  1610. } else {
  1611. entrance_parameter_ = nullptr;
  1612. }
  1613. if (from._internal_has_export_parameter()) {
  1614. export_parameter_ = new ::shutter::shutter_param(*from.export_parameter_);
  1615. } else {
  1616. export_parameter_ = nullptr;
  1617. }
  1618. if (from._internal_has_plc_setting()) {
  1619. plc_setting_ = new ::shutter::plc_param(*from.plc_setting_);
  1620. } else {
  1621. plc_setting_ = nullptr;
  1622. }
  1623. // @@protoc_insertion_point(copy_constructor:shutter.setting_parameter)
  1624. }
  1625. void setting_parameter::SharedCtor() {
  1626. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_setting_parameter_setting_2eproto.base);
  1627. ::memset(&entrance_parameter_, 0, static_cast<size_t>(
  1628. reinterpret_cast<char*>(&plc_setting_) -
  1629. reinterpret_cast<char*>(&entrance_parameter_)) + sizeof(plc_setting_));
  1630. }
  1631. setting_parameter::~setting_parameter() {
  1632. // @@protoc_insertion_point(destructor:shutter.setting_parameter)
  1633. SharedDtor();
  1634. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1635. }
  1636. void setting_parameter::SharedDtor() {
  1637. GOOGLE_DCHECK(GetArena() == nullptr);
  1638. if (this != internal_default_instance()) delete entrance_parameter_;
  1639. if (this != internal_default_instance()) delete export_parameter_;
  1640. if (this != internal_default_instance()) delete plc_setting_;
  1641. }
  1642. void setting_parameter::ArenaDtor(void* object) {
  1643. setting_parameter* _this = reinterpret_cast< setting_parameter* >(object);
  1644. (void)_this;
  1645. }
  1646. void setting_parameter::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  1647. }
  1648. void setting_parameter::SetCachedSize(int size) const {
  1649. _cached_size_.Set(size);
  1650. }
  1651. const setting_parameter& setting_parameter::default_instance() {
  1652. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_setting_parameter_setting_2eproto.base);
  1653. return *internal_default_instance();
  1654. }
  1655. void setting_parameter::Clear() {
  1656. // @@protoc_insertion_point(message_clear_start:shutter.setting_parameter)
  1657. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  1658. // Prevent compiler warnings about cached_has_bits being unused
  1659. (void) cached_has_bits;
  1660. cached_has_bits = _has_bits_[0];
  1661. if (cached_has_bits & 0x00000007u) {
  1662. if (cached_has_bits & 0x00000001u) {
  1663. GOOGLE_DCHECK(entrance_parameter_ != nullptr);
  1664. entrance_parameter_->Clear();
  1665. }
  1666. if (cached_has_bits & 0x00000002u) {
  1667. GOOGLE_DCHECK(export_parameter_ != nullptr);
  1668. export_parameter_->Clear();
  1669. }
  1670. if (cached_has_bits & 0x00000004u) {
  1671. GOOGLE_DCHECK(plc_setting_ != nullptr);
  1672. plc_setting_->Clear();
  1673. }
  1674. }
  1675. _has_bits_.Clear();
  1676. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1677. }
  1678. const char* setting_parameter::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  1679. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  1680. _Internal::HasBits has_bits{};
  1681. ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena;
  1682. while (!ctx->Done(&ptr)) {
  1683. ::PROTOBUF_NAMESPACE_ID::uint32 tag;
  1684. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  1685. CHK_(ptr);
  1686. switch (tag >> 3) {
  1687. // optional .shutter.shutter_param entrance_parameter = 1;
  1688. case 1:
  1689. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
  1690. ptr = ctx->ParseMessage(_internal_mutable_entrance_parameter(), ptr);
  1691. CHK_(ptr);
  1692. } else goto handle_unusual;
  1693. continue;
  1694. // optional .shutter.shutter_param export_parameter = 2;
  1695. case 2:
  1696. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
  1697. ptr = ctx->ParseMessage(_internal_mutable_export_parameter(), ptr);
  1698. CHK_(ptr);
  1699. } else goto handle_unusual;
  1700. continue;
  1701. // required .shutter.plc_param plc_setting = 3;
  1702. case 3:
  1703. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
  1704. ptr = ctx->ParseMessage(_internal_mutable_plc_setting(), ptr);
  1705. CHK_(ptr);
  1706. } else goto handle_unusual;
  1707. continue;
  1708. default: {
  1709. handle_unusual:
  1710. if ((tag & 7) == 4 || tag == 0) {
  1711. ctx->SetLastTag(tag);
  1712. goto success;
  1713. }
  1714. ptr = UnknownFieldParse(tag,
  1715. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  1716. ptr, ctx);
  1717. CHK_(ptr != nullptr);
  1718. continue;
  1719. }
  1720. } // switch
  1721. } // while
  1722. success:
  1723. _has_bits_.Or(has_bits);
  1724. return ptr;
  1725. failure:
  1726. ptr = nullptr;
  1727. goto success;
  1728. #undef CHK_
  1729. }
  1730. ::PROTOBUF_NAMESPACE_ID::uint8* setting_parameter::_InternalSerialize(
  1731. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  1732. // @@protoc_insertion_point(serialize_to_array_start:shutter.setting_parameter)
  1733. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  1734. (void) cached_has_bits;
  1735. cached_has_bits = _has_bits_[0];
  1736. // optional .shutter.shutter_param entrance_parameter = 1;
  1737. if (cached_has_bits & 0x00000001u) {
  1738. target = stream->EnsureSpace(target);
  1739. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  1740. InternalWriteMessage(
  1741. 1, _Internal::entrance_parameter(this), target, stream);
  1742. }
  1743. // optional .shutter.shutter_param export_parameter = 2;
  1744. if (cached_has_bits & 0x00000002u) {
  1745. target = stream->EnsureSpace(target);
  1746. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  1747. InternalWriteMessage(
  1748. 2, _Internal::export_parameter(this), target, stream);
  1749. }
  1750. // required .shutter.plc_param plc_setting = 3;
  1751. if (cached_has_bits & 0x00000004u) {
  1752. target = stream->EnsureSpace(target);
  1753. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  1754. InternalWriteMessage(
  1755. 3, _Internal::plc_setting(this), target, stream);
  1756. }
  1757. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1758. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  1759. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  1760. }
  1761. // @@protoc_insertion_point(serialize_to_array_end:shutter.setting_parameter)
  1762. return target;
  1763. }
  1764. size_t setting_parameter::ByteSizeLong() const {
  1765. // @@protoc_insertion_point(message_byte_size_start:shutter.setting_parameter)
  1766. size_t total_size = 0;
  1767. // required .shutter.plc_param plc_setting = 3;
  1768. if (_internal_has_plc_setting()) {
  1769. total_size += 1 +
  1770. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  1771. *plc_setting_);
  1772. }
  1773. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  1774. // Prevent compiler warnings about cached_has_bits being unused
  1775. (void) cached_has_bits;
  1776. cached_has_bits = _has_bits_[0];
  1777. if (cached_has_bits & 0x00000003u) {
  1778. // optional .shutter.shutter_param entrance_parameter = 1;
  1779. if (cached_has_bits & 0x00000001u) {
  1780. total_size += 1 +
  1781. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  1782. *entrance_parameter_);
  1783. }
  1784. // optional .shutter.shutter_param export_parameter = 2;
  1785. if (cached_has_bits & 0x00000002u) {
  1786. total_size += 1 +
  1787. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  1788. *export_parameter_);
  1789. }
  1790. }
  1791. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1792. return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
  1793. _internal_metadata_, total_size, &_cached_size_);
  1794. }
  1795. int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
  1796. SetCachedSize(cached_size);
  1797. return total_size;
  1798. }
  1799. void setting_parameter::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  1800. // @@protoc_insertion_point(generalized_merge_from_start:shutter.setting_parameter)
  1801. GOOGLE_DCHECK_NE(&from, this);
  1802. const setting_parameter* source =
  1803. ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<setting_parameter>(
  1804. &from);
  1805. if (source == nullptr) {
  1806. // @@protoc_insertion_point(generalized_merge_from_cast_fail:shutter.setting_parameter)
  1807. ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
  1808. } else {
  1809. // @@protoc_insertion_point(generalized_merge_from_cast_success:shutter.setting_parameter)
  1810. MergeFrom(*source);
  1811. }
  1812. }
  1813. void setting_parameter::MergeFrom(const setting_parameter& from) {
  1814. // @@protoc_insertion_point(class_specific_merge_from_start:shutter.setting_parameter)
  1815. GOOGLE_DCHECK_NE(&from, this);
  1816. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1817. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  1818. (void) cached_has_bits;
  1819. cached_has_bits = from._has_bits_[0];
  1820. if (cached_has_bits & 0x00000007u) {
  1821. if (cached_has_bits & 0x00000001u) {
  1822. _internal_mutable_entrance_parameter()->::shutter::shutter_param::MergeFrom(from._internal_entrance_parameter());
  1823. }
  1824. if (cached_has_bits & 0x00000002u) {
  1825. _internal_mutable_export_parameter()->::shutter::shutter_param::MergeFrom(from._internal_export_parameter());
  1826. }
  1827. if (cached_has_bits & 0x00000004u) {
  1828. _internal_mutable_plc_setting()->::shutter::plc_param::MergeFrom(from._internal_plc_setting());
  1829. }
  1830. }
  1831. }
  1832. void setting_parameter::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  1833. // @@protoc_insertion_point(generalized_copy_from_start:shutter.setting_parameter)
  1834. if (&from == this) return;
  1835. Clear();
  1836. MergeFrom(from);
  1837. }
  1838. void setting_parameter::CopyFrom(const setting_parameter& from) {
  1839. // @@protoc_insertion_point(class_specific_copy_from_start:shutter.setting_parameter)
  1840. if (&from == this) return;
  1841. Clear();
  1842. MergeFrom(from);
  1843. }
  1844. bool setting_parameter::IsInitialized() const {
  1845. if (_Internal::MissingRequiredFields(_has_bits_)) return false;
  1846. if (_internal_has_plc_setting()) {
  1847. if (!plc_setting_->IsInitialized()) return false;
  1848. }
  1849. return true;
  1850. }
  1851. void setting_parameter::InternalSwap(setting_parameter* other) {
  1852. using std::swap;
  1853. _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
  1854. swap(_has_bits_[0], other->_has_bits_[0]);
  1855. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  1856. PROTOBUF_FIELD_OFFSET(setting_parameter, plc_setting_)
  1857. + sizeof(setting_parameter::plc_setting_)
  1858. - PROTOBUF_FIELD_OFFSET(setting_parameter, entrance_parameter_)>(
  1859. reinterpret_cast<char*>(&entrance_parameter_),
  1860. reinterpret_cast<char*>(&other->entrance_parameter_));
  1861. }
  1862. ::PROTOBUF_NAMESPACE_ID::Metadata setting_parameter::GetMetadata() const {
  1863. return GetMetadataStatic();
  1864. }
  1865. // @@protoc_insertion_point(namespace_scope)
  1866. } // namespace shutter
  1867. PROTOBUF_NAMESPACE_OPEN
  1868. template<> PROTOBUF_NOINLINE ::shutter::lidar_parameter* Arena::CreateMaybeMessage< ::shutter::lidar_parameter >(Arena* arena) {
  1869. return Arena::CreateMessageInternal< ::shutter::lidar_parameter >(arena);
  1870. }
  1871. template<> PROTOBUF_NOINLINE ::shutter::box_param* Arena::CreateMaybeMessage< ::shutter::box_param >(Arena* arena) {
  1872. return Arena::CreateMessageInternal< ::shutter::box_param >(arena);
  1873. }
  1874. template<> PROTOBUF_NOINLINE ::shutter::plc_param* Arena::CreateMaybeMessage< ::shutter::plc_param >(Arena* arena) {
  1875. return Arena::CreateMessageInternal< ::shutter::plc_param >(arena);
  1876. }
  1877. template<> PROTOBUF_NOINLINE ::shutter::shutter_param* Arena::CreateMaybeMessage< ::shutter::shutter_param >(Arena* arena) {
  1878. return Arena::CreateMessageInternal< ::shutter::shutter_param >(arena);
  1879. }
  1880. template<> PROTOBUF_NOINLINE ::shutter::setting_parameter* Arena::CreateMaybeMessage< ::shutter::setting_parameter >(Arena* arena) {
  1881. return Arena::CreateMessageInternal< ::shutter::setting_parameter >(arena);
  1882. }
  1883. PROTOBUF_NAMESPACE_CLOSE
  1884. // @@protoc_insertion_point(global_scope)
  1885. #include <google/protobuf/port_undef.inc>