Terminor_parameter.pb.cc 58 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: Terminor_parameter.proto
  3. #include "Terminor_parameter.pb.h"
  4. #include <algorithm>
  5. #include <google/protobuf/stubs/common.h>
  6. #include <google/protobuf/stubs/port.h>
  7. #include <google/protobuf/stubs/once.h>
  8. #include <google/protobuf/io/coded_stream.h>
  9. #include <google/protobuf/wire_format_lite_inl.h>
  10. #include <google/protobuf/descriptor.h>
  11. #include <google/protobuf/generated_message_reflection.h>
  12. #include <google/protobuf/reflection_ops.h>
  13. #include <google/protobuf/wire_format.h>
  14. // This is a temporary google only hack
  15. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  16. #include "third_party/protobuf/version.h"
  17. #endif
  18. // @@protoc_insertion_point(includes)
  19. namespace Terminal {
  20. class Area3dDefaultTypeInternal {
  21. public:
  22. ::google::protobuf::internal::ExplicitlyConstructed<Area3d>
  23. _instance;
  24. } _Area3d_default_instance_;
  25. class Laser_parameterDefaultTypeInternal {
  26. public:
  27. ::google::protobuf::internal::ExplicitlyConstructed<Laser_parameter>
  28. _instance;
  29. } _Laser_parameter_default_instance_;
  30. class Terminor_parameterDefaultTypeInternal {
  31. public:
  32. ::google::protobuf::internal::ExplicitlyConstructed<Terminor_parameter>
  33. _instance;
  34. } _Terminor_parameter_default_instance_;
  35. class Terminor_parameter_allDefaultTypeInternal {
  36. public:
  37. ::google::protobuf::internal::ExplicitlyConstructed<Terminor_parameter_all>
  38. _instance;
  39. } _Terminor_parameter_all_default_instance_;
  40. } // namespace Terminal
  41. namespace protobuf_Terminor_5fparameter_2eproto {
  42. void InitDefaultsArea3dImpl() {
  43. GOOGLE_PROTOBUF_VERIFY_VERSION;
  44. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  45. ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
  46. #else
  47. ::google::protobuf::internal::InitProtobufDefaults();
  48. #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  49. {
  50. void* ptr = &::Terminal::_Area3d_default_instance_;
  51. new (ptr) ::Terminal::Area3d();
  52. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  53. }
  54. ::Terminal::Area3d::InitAsDefaultInstance();
  55. }
  56. void InitDefaultsArea3d() {
  57. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  58. ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsArea3dImpl);
  59. }
  60. void InitDefaultsLaser_parameterImpl() {
  61. GOOGLE_PROTOBUF_VERIFY_VERSION;
  62. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  63. ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
  64. #else
  65. ::google::protobuf::internal::InitProtobufDefaults();
  66. #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  67. {
  68. void* ptr = &::Terminal::_Laser_parameter_default_instance_;
  69. new (ptr) ::Terminal::Laser_parameter();
  70. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  71. }
  72. ::Terminal::Laser_parameter::InitAsDefaultInstance();
  73. }
  74. void InitDefaultsLaser_parameter() {
  75. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  76. ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsLaser_parameterImpl);
  77. }
  78. void InitDefaultsTerminor_parameterImpl() {
  79. GOOGLE_PROTOBUF_VERIFY_VERSION;
  80. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  81. ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
  82. #else
  83. ::google::protobuf::internal::InitProtobufDefaults();
  84. #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  85. protobuf_Terminor_5fparameter_2eproto::InitDefaultsArea3d();
  86. protobuf_Terminor_5fparameter_2eproto::InitDefaultsLaser_parameter();
  87. {
  88. void* ptr = &::Terminal::_Terminor_parameter_default_instance_;
  89. new (ptr) ::Terminal::Terminor_parameter();
  90. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  91. }
  92. ::Terminal::Terminor_parameter::InitAsDefaultInstance();
  93. }
  94. void InitDefaultsTerminor_parameter() {
  95. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  96. ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTerminor_parameterImpl);
  97. }
  98. void InitDefaultsTerminor_parameter_allImpl() {
  99. GOOGLE_PROTOBUF_VERIFY_VERSION;
  100. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  101. ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
  102. #else
  103. ::google::protobuf::internal::InitProtobufDefaults();
  104. #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  105. protobuf_Terminor_5fparameter_2eproto::InitDefaultsTerminor_parameter();
  106. {
  107. void* ptr = &::Terminal::_Terminor_parameter_all_default_instance_;
  108. new (ptr) ::Terminal::Terminor_parameter_all();
  109. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  110. }
  111. ::Terminal::Terminor_parameter_all::InitAsDefaultInstance();
  112. }
  113. void InitDefaultsTerminor_parameter_all() {
  114. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  115. ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTerminor_parameter_allImpl);
  116. }
  117. ::google::protobuf::Metadata file_level_metadata[4];
  118. const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  119. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Terminal::Area3d, _has_bits_),
  120. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Terminal::Area3d, _internal_metadata_),
  121. ~0u, // no _extensions_
  122. ~0u, // no _oneof_case_
  123. ~0u, // no _weak_field_map_
  124. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Terminal::Area3d, min_x_),
  125. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Terminal::Area3d, max_x_),
  126. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Terminal::Area3d, min_y_),
  127. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Terminal::Area3d, max_y_),
  128. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Terminal::Area3d, min_z_),
  129. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Terminal::Area3d, max_z_),
  130. 0,
  131. 1,
  132. 2,
  133. 3,
  134. 4,
  135. 5,
  136. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Terminal::Laser_parameter, _has_bits_),
  137. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Terminal::Laser_parameter, _internal_metadata_),
  138. ~0u, // no _extensions_
  139. ~0u, // no _oneof_case_
  140. ~0u, // no _weak_field_map_
  141. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Terminal::Laser_parameter, id_),
  142. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Terminal::Laser_parameter, frame_count_),
  143. 0,
  144. 1,
  145. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Terminal::Terminor_parameter, _has_bits_),
  146. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Terminal::Terminor_parameter, _internal_metadata_),
  147. ~0u, // no _extensions_
  148. ~0u, // no _oneof_case_
  149. ~0u, // no _weak_field_map_
  150. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Terminal::Terminor_parameter, area_3d_),
  151. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Terminal::Terminor_parameter, id_),
  152. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Terminal::Terminor_parameter, laser_parameter_),
  153. 0,
  154. 1,
  155. ~0u,
  156. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Terminal::Terminor_parameter_all, _has_bits_),
  157. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Terminal::Terminor_parameter_all, _internal_metadata_),
  158. ~0u, // no _extensions_
  159. ~0u, // no _oneof_case_
  160. ~0u, // no _weak_field_map_
  161. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Terminal::Terminor_parameter_all, terminor_parameters_),
  162. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Terminal::Terminor_parameter_all, save_root_path_),
  163. ~0u,
  164. 0,
  165. };
  166. static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  167. { 0, 11, sizeof(::Terminal::Area3d)},
  168. { 17, 24, sizeof(::Terminal::Laser_parameter)},
  169. { 26, 34, sizeof(::Terminal::Terminor_parameter)},
  170. { 37, 44, sizeof(::Terminal::Terminor_parameter_all)},
  171. };
  172. static ::google::protobuf::Message const * const file_default_instances[] = {
  173. reinterpret_cast<const ::google::protobuf::Message*>(&::Terminal::_Area3d_default_instance_),
  174. reinterpret_cast<const ::google::protobuf::Message*>(&::Terminal::_Laser_parameter_default_instance_),
  175. reinterpret_cast<const ::google::protobuf::Message*>(&::Terminal::_Terminor_parameter_default_instance_),
  176. reinterpret_cast<const ::google::protobuf::Message*>(&::Terminal::_Terminor_parameter_all_default_instance_),
  177. };
  178. void protobuf_AssignDescriptors() {
  179. AddDescriptors();
  180. ::google::protobuf::MessageFactory* factory = NULL;
  181. AssignDescriptors(
  182. "Terminor_parameter.proto", schemas, file_default_instances, TableStruct::offsets, factory,
  183. file_level_metadata, NULL, NULL);
  184. }
  185. void protobuf_AssignDescriptorsOnce() {
  186. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  187. ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
  188. }
  189. void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
  190. void protobuf_RegisterTypes(const ::std::string&) {
  191. protobuf_AssignDescriptorsOnce();
  192. ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 4);
  193. }
  194. void AddDescriptorsImpl() {
  195. InitDefaults();
  196. static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  197. "\n\030Terminor_parameter.proto\022\010Terminal\"b\n\006"
  198. "Area3d\022\r\n\005min_x\030\001 \002(\002\022\r\n\005max_x\030\002 \002(\002\022\r\n\005"
  199. "min_y\030\003 \002(\002\022\r\n\005max_y\030\004 \002(\002\022\r\n\005min_z\030\005 \002("
  200. "\002\022\r\n\005max_z\030\006 \002(\002\"2\n\017Laser_parameter\022\n\n\002i"
  201. "d\030\001 \002(\003\022\023\n\013frame_count\030\002 \001(\003\"w\n\022Terminor"
  202. "_parameter\022!\n\007area_3d\030\001 \002(\0132\020.Terminal.A"
  203. "rea3d\022\n\n\002id\030\002 \002(\003\0222\n\017laser_parameter\030\003 \003"
  204. "(\0132\031.Terminal.Laser_parameter\"k\n\026Termino"
  205. "r_parameter_all\0229\n\023terminor_parameters\030\001"
  206. " \003(\0132\034.Terminal.Terminor_parameter\022\026\n\016sa"
  207. "ve_root_path\030\002 \002(\t"
  208. };
  209. ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
  210. descriptor, 418);
  211. ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
  212. "Terminor_parameter.proto", &protobuf_RegisterTypes);
  213. }
  214. void AddDescriptors() {
  215. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  216. ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
  217. }
  218. // Force AddDescriptors() to be called at dynamic initialization time.
  219. struct StaticDescriptorInitializer {
  220. StaticDescriptorInitializer() {
  221. AddDescriptors();
  222. }
  223. } static_descriptor_initializer;
  224. } // namespace protobuf_Terminor_5fparameter_2eproto
  225. namespace Terminal {
  226. // ===================================================================
  227. void Area3d::InitAsDefaultInstance() {
  228. }
  229. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  230. const int Area3d::kMinXFieldNumber;
  231. const int Area3d::kMaxXFieldNumber;
  232. const int Area3d::kMinYFieldNumber;
  233. const int Area3d::kMaxYFieldNumber;
  234. const int Area3d::kMinZFieldNumber;
  235. const int Area3d::kMaxZFieldNumber;
  236. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  237. Area3d::Area3d()
  238. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  239. if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
  240. ::protobuf_Terminor_5fparameter_2eproto::InitDefaultsArea3d();
  241. }
  242. SharedCtor();
  243. // @@protoc_insertion_point(constructor:Terminal.Area3d)
  244. }
  245. Area3d::Area3d(const Area3d& from)
  246. : ::google::protobuf::Message(),
  247. _internal_metadata_(NULL),
  248. _has_bits_(from._has_bits_),
  249. _cached_size_(0) {
  250. _internal_metadata_.MergeFrom(from._internal_metadata_);
  251. ::memcpy(&min_x_, &from.min_x_,
  252. static_cast<size_t>(reinterpret_cast<char*>(&max_z_) -
  253. reinterpret_cast<char*>(&min_x_)) + sizeof(max_z_));
  254. // @@protoc_insertion_point(copy_constructor:Terminal.Area3d)
  255. }
  256. void Area3d::SharedCtor() {
  257. _cached_size_ = 0;
  258. ::memset(&min_x_, 0, static_cast<size_t>(
  259. reinterpret_cast<char*>(&max_z_) -
  260. reinterpret_cast<char*>(&min_x_)) + sizeof(max_z_));
  261. }
  262. Area3d::~Area3d() {
  263. // @@protoc_insertion_point(destructor:Terminal.Area3d)
  264. SharedDtor();
  265. }
  266. void Area3d::SharedDtor() {
  267. }
  268. void Area3d::SetCachedSize(int size) const {
  269. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  270. _cached_size_ = size;
  271. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  272. }
  273. const ::google::protobuf::Descriptor* Area3d::descriptor() {
  274. ::protobuf_Terminor_5fparameter_2eproto::protobuf_AssignDescriptorsOnce();
  275. return ::protobuf_Terminor_5fparameter_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  276. }
  277. const Area3d& Area3d::default_instance() {
  278. ::protobuf_Terminor_5fparameter_2eproto::InitDefaultsArea3d();
  279. return *internal_default_instance();
  280. }
  281. Area3d* Area3d::New(::google::protobuf::Arena* arena) const {
  282. Area3d* n = new Area3d;
  283. if (arena != NULL) {
  284. arena->Own(n);
  285. }
  286. return n;
  287. }
  288. void Area3d::Clear() {
  289. // @@protoc_insertion_point(message_clear_start:Terminal.Area3d)
  290. ::google::protobuf::uint32 cached_has_bits = 0;
  291. // Prevent compiler warnings about cached_has_bits being unused
  292. (void) cached_has_bits;
  293. cached_has_bits = _has_bits_[0];
  294. if (cached_has_bits & 63u) {
  295. ::memset(&min_x_, 0, static_cast<size_t>(
  296. reinterpret_cast<char*>(&max_z_) -
  297. reinterpret_cast<char*>(&min_x_)) + sizeof(max_z_));
  298. }
  299. _has_bits_.Clear();
  300. _internal_metadata_.Clear();
  301. }
  302. bool Area3d::MergePartialFromCodedStream(
  303. ::google::protobuf::io::CodedInputStream* input) {
  304. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  305. ::google::protobuf::uint32 tag;
  306. // @@protoc_insertion_point(parse_start:Terminal.Area3d)
  307. for (;;) {
  308. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  309. tag = p.first;
  310. if (!p.second) goto handle_unusual;
  311. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  312. // required float min_x = 1;
  313. case 1: {
  314. if (static_cast< ::google::protobuf::uint8>(tag) ==
  315. static_cast< ::google::protobuf::uint8>(13u /* 13 & 0xFF */)) {
  316. set_has_min_x();
  317. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  318. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  319. input, &min_x_)));
  320. } else {
  321. goto handle_unusual;
  322. }
  323. break;
  324. }
  325. // required float max_x = 2;
  326. case 2: {
  327. if (static_cast< ::google::protobuf::uint8>(tag) ==
  328. static_cast< ::google::protobuf::uint8>(21u /* 21 & 0xFF */)) {
  329. set_has_max_x();
  330. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  331. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  332. input, &max_x_)));
  333. } else {
  334. goto handle_unusual;
  335. }
  336. break;
  337. }
  338. // required float min_y = 3;
  339. case 3: {
  340. if (static_cast< ::google::protobuf::uint8>(tag) ==
  341. static_cast< ::google::protobuf::uint8>(29u /* 29 & 0xFF */)) {
  342. set_has_min_y();
  343. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  344. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  345. input, &min_y_)));
  346. } else {
  347. goto handle_unusual;
  348. }
  349. break;
  350. }
  351. // required float max_y = 4;
  352. case 4: {
  353. if (static_cast< ::google::protobuf::uint8>(tag) ==
  354. static_cast< ::google::protobuf::uint8>(37u /* 37 & 0xFF */)) {
  355. set_has_max_y();
  356. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  357. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  358. input, &max_y_)));
  359. } else {
  360. goto handle_unusual;
  361. }
  362. break;
  363. }
  364. // required float min_z = 5;
  365. case 5: {
  366. if (static_cast< ::google::protobuf::uint8>(tag) ==
  367. static_cast< ::google::protobuf::uint8>(45u /* 45 & 0xFF */)) {
  368. set_has_min_z();
  369. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  370. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  371. input, &min_z_)));
  372. } else {
  373. goto handle_unusual;
  374. }
  375. break;
  376. }
  377. // required float max_z = 6;
  378. case 6: {
  379. if (static_cast< ::google::protobuf::uint8>(tag) ==
  380. static_cast< ::google::protobuf::uint8>(53u /* 53 & 0xFF */)) {
  381. set_has_max_z();
  382. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  383. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  384. input, &max_z_)));
  385. } else {
  386. goto handle_unusual;
  387. }
  388. break;
  389. }
  390. default: {
  391. handle_unusual:
  392. if (tag == 0) {
  393. goto success;
  394. }
  395. DO_(::google::protobuf::internal::WireFormat::SkipField(
  396. input, tag, _internal_metadata_.mutable_unknown_fields()));
  397. break;
  398. }
  399. }
  400. }
  401. success:
  402. // @@protoc_insertion_point(parse_success:Terminal.Area3d)
  403. return true;
  404. failure:
  405. // @@protoc_insertion_point(parse_failure:Terminal.Area3d)
  406. return false;
  407. #undef DO_
  408. }
  409. void Area3d::SerializeWithCachedSizes(
  410. ::google::protobuf::io::CodedOutputStream* output) const {
  411. // @@protoc_insertion_point(serialize_start:Terminal.Area3d)
  412. ::google::protobuf::uint32 cached_has_bits = 0;
  413. (void) cached_has_bits;
  414. cached_has_bits = _has_bits_[0];
  415. // required float min_x = 1;
  416. if (cached_has_bits & 0x00000001u) {
  417. ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->min_x(), output);
  418. }
  419. // required float max_x = 2;
  420. if (cached_has_bits & 0x00000002u) {
  421. ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->max_x(), output);
  422. }
  423. // required float min_y = 3;
  424. if (cached_has_bits & 0x00000004u) {
  425. ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->min_y(), output);
  426. }
  427. // required float max_y = 4;
  428. if (cached_has_bits & 0x00000008u) {
  429. ::google::protobuf::internal::WireFormatLite::WriteFloat(4, this->max_y(), output);
  430. }
  431. // required float min_z = 5;
  432. if (cached_has_bits & 0x00000010u) {
  433. ::google::protobuf::internal::WireFormatLite::WriteFloat(5, this->min_z(), output);
  434. }
  435. // required float max_z = 6;
  436. if (cached_has_bits & 0x00000020u) {
  437. ::google::protobuf::internal::WireFormatLite::WriteFloat(6, this->max_z(), output);
  438. }
  439. if (_internal_metadata_.have_unknown_fields()) {
  440. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  441. _internal_metadata_.unknown_fields(), output);
  442. }
  443. // @@protoc_insertion_point(serialize_end:Terminal.Area3d)
  444. }
  445. ::google::protobuf::uint8* Area3d::InternalSerializeWithCachedSizesToArray(
  446. bool deterministic, ::google::protobuf::uint8* target) const {
  447. (void)deterministic; // Unused
  448. // @@protoc_insertion_point(serialize_to_array_start:Terminal.Area3d)
  449. ::google::protobuf::uint32 cached_has_bits = 0;
  450. (void) cached_has_bits;
  451. cached_has_bits = _has_bits_[0];
  452. // required float min_x = 1;
  453. if (cached_has_bits & 0x00000001u) {
  454. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->min_x(), target);
  455. }
  456. // required float max_x = 2;
  457. if (cached_has_bits & 0x00000002u) {
  458. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->max_x(), target);
  459. }
  460. // required float min_y = 3;
  461. if (cached_has_bits & 0x00000004u) {
  462. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->min_y(), target);
  463. }
  464. // required float max_y = 4;
  465. if (cached_has_bits & 0x00000008u) {
  466. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(4, this->max_y(), target);
  467. }
  468. // required float min_z = 5;
  469. if (cached_has_bits & 0x00000010u) {
  470. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(5, this->min_z(), target);
  471. }
  472. // required float max_z = 6;
  473. if (cached_has_bits & 0x00000020u) {
  474. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(6, this->max_z(), target);
  475. }
  476. if (_internal_metadata_.have_unknown_fields()) {
  477. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  478. _internal_metadata_.unknown_fields(), target);
  479. }
  480. // @@protoc_insertion_point(serialize_to_array_end:Terminal.Area3d)
  481. return target;
  482. }
  483. size_t Area3d::RequiredFieldsByteSizeFallback() const {
  484. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:Terminal.Area3d)
  485. size_t total_size = 0;
  486. if (has_min_x()) {
  487. // required float min_x = 1;
  488. total_size += 1 + 4;
  489. }
  490. if (has_max_x()) {
  491. // required float max_x = 2;
  492. total_size += 1 + 4;
  493. }
  494. if (has_min_y()) {
  495. // required float min_y = 3;
  496. total_size += 1 + 4;
  497. }
  498. if (has_max_y()) {
  499. // required float max_y = 4;
  500. total_size += 1 + 4;
  501. }
  502. if (has_min_z()) {
  503. // required float min_z = 5;
  504. total_size += 1 + 4;
  505. }
  506. if (has_max_z()) {
  507. // required float max_z = 6;
  508. total_size += 1 + 4;
  509. }
  510. return total_size;
  511. }
  512. size_t Area3d::ByteSizeLong() const {
  513. // @@protoc_insertion_point(message_byte_size_start:Terminal.Area3d)
  514. size_t total_size = 0;
  515. if (_internal_metadata_.have_unknown_fields()) {
  516. total_size +=
  517. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  518. _internal_metadata_.unknown_fields());
  519. }
  520. if (((_has_bits_[0] & 0x0000003f) ^ 0x0000003f) == 0) { // All required fields are present.
  521. // required float min_x = 1;
  522. total_size += 1 + 4;
  523. // required float max_x = 2;
  524. total_size += 1 + 4;
  525. // required float min_y = 3;
  526. total_size += 1 + 4;
  527. // required float max_y = 4;
  528. total_size += 1 + 4;
  529. // required float min_z = 5;
  530. total_size += 1 + 4;
  531. // required float max_z = 6;
  532. total_size += 1 + 4;
  533. } else {
  534. total_size += RequiredFieldsByteSizeFallback();
  535. }
  536. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  537. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  538. _cached_size_ = cached_size;
  539. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  540. return total_size;
  541. }
  542. void Area3d::MergeFrom(const ::google::protobuf::Message& from) {
  543. // @@protoc_insertion_point(generalized_merge_from_start:Terminal.Area3d)
  544. GOOGLE_DCHECK_NE(&from, this);
  545. const Area3d* source =
  546. ::google::protobuf::internal::DynamicCastToGenerated<const Area3d>(
  547. &from);
  548. if (source == NULL) {
  549. // @@protoc_insertion_point(generalized_merge_from_cast_fail:Terminal.Area3d)
  550. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  551. } else {
  552. // @@protoc_insertion_point(generalized_merge_from_cast_success:Terminal.Area3d)
  553. MergeFrom(*source);
  554. }
  555. }
  556. void Area3d::MergeFrom(const Area3d& from) {
  557. // @@protoc_insertion_point(class_specific_merge_from_start:Terminal.Area3d)
  558. GOOGLE_DCHECK_NE(&from, this);
  559. _internal_metadata_.MergeFrom(from._internal_metadata_);
  560. ::google::protobuf::uint32 cached_has_bits = 0;
  561. (void) cached_has_bits;
  562. cached_has_bits = from._has_bits_[0];
  563. if (cached_has_bits & 63u) {
  564. if (cached_has_bits & 0x00000001u) {
  565. min_x_ = from.min_x_;
  566. }
  567. if (cached_has_bits & 0x00000002u) {
  568. max_x_ = from.max_x_;
  569. }
  570. if (cached_has_bits & 0x00000004u) {
  571. min_y_ = from.min_y_;
  572. }
  573. if (cached_has_bits & 0x00000008u) {
  574. max_y_ = from.max_y_;
  575. }
  576. if (cached_has_bits & 0x00000010u) {
  577. min_z_ = from.min_z_;
  578. }
  579. if (cached_has_bits & 0x00000020u) {
  580. max_z_ = from.max_z_;
  581. }
  582. _has_bits_[0] |= cached_has_bits;
  583. }
  584. }
  585. void Area3d::CopyFrom(const ::google::protobuf::Message& from) {
  586. // @@protoc_insertion_point(generalized_copy_from_start:Terminal.Area3d)
  587. if (&from == this) return;
  588. Clear();
  589. MergeFrom(from);
  590. }
  591. void Area3d::CopyFrom(const Area3d& from) {
  592. // @@protoc_insertion_point(class_specific_copy_from_start:Terminal.Area3d)
  593. if (&from == this) return;
  594. Clear();
  595. MergeFrom(from);
  596. }
  597. bool Area3d::IsInitialized() const {
  598. if ((_has_bits_[0] & 0x0000003f) != 0x0000003f) return false;
  599. return true;
  600. }
  601. void Area3d::Swap(Area3d* other) {
  602. if (other == this) return;
  603. InternalSwap(other);
  604. }
  605. void Area3d::InternalSwap(Area3d* other) {
  606. using std::swap;
  607. swap(min_x_, other->min_x_);
  608. swap(max_x_, other->max_x_);
  609. swap(min_y_, other->min_y_);
  610. swap(max_y_, other->max_y_);
  611. swap(min_z_, other->min_z_);
  612. swap(max_z_, other->max_z_);
  613. swap(_has_bits_[0], other->_has_bits_[0]);
  614. _internal_metadata_.Swap(&other->_internal_metadata_);
  615. swap(_cached_size_, other->_cached_size_);
  616. }
  617. ::google::protobuf::Metadata Area3d::GetMetadata() const {
  618. protobuf_Terminor_5fparameter_2eproto::protobuf_AssignDescriptorsOnce();
  619. return ::protobuf_Terminor_5fparameter_2eproto::file_level_metadata[kIndexInFileMessages];
  620. }
  621. // ===================================================================
  622. void Laser_parameter::InitAsDefaultInstance() {
  623. }
  624. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  625. const int Laser_parameter::kIdFieldNumber;
  626. const int Laser_parameter::kFrameCountFieldNumber;
  627. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  628. Laser_parameter::Laser_parameter()
  629. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  630. if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
  631. ::protobuf_Terminor_5fparameter_2eproto::InitDefaultsLaser_parameter();
  632. }
  633. SharedCtor();
  634. // @@protoc_insertion_point(constructor:Terminal.Laser_parameter)
  635. }
  636. Laser_parameter::Laser_parameter(const Laser_parameter& from)
  637. : ::google::protobuf::Message(),
  638. _internal_metadata_(NULL),
  639. _has_bits_(from._has_bits_),
  640. _cached_size_(0) {
  641. _internal_metadata_.MergeFrom(from._internal_metadata_);
  642. ::memcpy(&id_, &from.id_,
  643. static_cast<size_t>(reinterpret_cast<char*>(&frame_count_) -
  644. reinterpret_cast<char*>(&id_)) + sizeof(frame_count_));
  645. // @@protoc_insertion_point(copy_constructor:Terminal.Laser_parameter)
  646. }
  647. void Laser_parameter::SharedCtor() {
  648. _cached_size_ = 0;
  649. ::memset(&id_, 0, static_cast<size_t>(
  650. reinterpret_cast<char*>(&frame_count_) -
  651. reinterpret_cast<char*>(&id_)) + sizeof(frame_count_));
  652. }
  653. Laser_parameter::~Laser_parameter() {
  654. // @@protoc_insertion_point(destructor:Terminal.Laser_parameter)
  655. SharedDtor();
  656. }
  657. void Laser_parameter::SharedDtor() {
  658. }
  659. void Laser_parameter::SetCachedSize(int size) const {
  660. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  661. _cached_size_ = size;
  662. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  663. }
  664. const ::google::protobuf::Descriptor* Laser_parameter::descriptor() {
  665. ::protobuf_Terminor_5fparameter_2eproto::protobuf_AssignDescriptorsOnce();
  666. return ::protobuf_Terminor_5fparameter_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  667. }
  668. const Laser_parameter& Laser_parameter::default_instance() {
  669. ::protobuf_Terminor_5fparameter_2eproto::InitDefaultsLaser_parameter();
  670. return *internal_default_instance();
  671. }
  672. Laser_parameter* Laser_parameter::New(::google::protobuf::Arena* arena) const {
  673. Laser_parameter* n = new Laser_parameter;
  674. if (arena != NULL) {
  675. arena->Own(n);
  676. }
  677. return n;
  678. }
  679. void Laser_parameter::Clear() {
  680. // @@protoc_insertion_point(message_clear_start:Terminal.Laser_parameter)
  681. ::google::protobuf::uint32 cached_has_bits = 0;
  682. // Prevent compiler warnings about cached_has_bits being unused
  683. (void) cached_has_bits;
  684. cached_has_bits = _has_bits_[0];
  685. if (cached_has_bits & 3u) {
  686. ::memset(&id_, 0, static_cast<size_t>(
  687. reinterpret_cast<char*>(&frame_count_) -
  688. reinterpret_cast<char*>(&id_)) + sizeof(frame_count_));
  689. }
  690. _has_bits_.Clear();
  691. _internal_metadata_.Clear();
  692. }
  693. bool Laser_parameter::MergePartialFromCodedStream(
  694. ::google::protobuf::io::CodedInputStream* input) {
  695. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  696. ::google::protobuf::uint32 tag;
  697. // @@protoc_insertion_point(parse_start:Terminal.Laser_parameter)
  698. for (;;) {
  699. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  700. tag = p.first;
  701. if (!p.second) goto handle_unusual;
  702. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  703. // required int64 id = 1;
  704. case 1: {
  705. if (static_cast< ::google::protobuf::uint8>(tag) ==
  706. static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
  707. set_has_id();
  708. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  709. ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
  710. input, &id_)));
  711. } else {
  712. goto handle_unusual;
  713. }
  714. break;
  715. }
  716. // optional int64 frame_count = 2;
  717. case 2: {
  718. if (static_cast< ::google::protobuf::uint8>(tag) ==
  719. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  720. set_has_frame_count();
  721. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  722. ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
  723. input, &frame_count_)));
  724. } else {
  725. goto handle_unusual;
  726. }
  727. break;
  728. }
  729. default: {
  730. handle_unusual:
  731. if (tag == 0) {
  732. goto success;
  733. }
  734. DO_(::google::protobuf::internal::WireFormat::SkipField(
  735. input, tag, _internal_metadata_.mutable_unknown_fields()));
  736. break;
  737. }
  738. }
  739. }
  740. success:
  741. // @@protoc_insertion_point(parse_success:Terminal.Laser_parameter)
  742. return true;
  743. failure:
  744. // @@protoc_insertion_point(parse_failure:Terminal.Laser_parameter)
  745. return false;
  746. #undef DO_
  747. }
  748. void Laser_parameter::SerializeWithCachedSizes(
  749. ::google::protobuf::io::CodedOutputStream* output) const {
  750. // @@protoc_insertion_point(serialize_start:Terminal.Laser_parameter)
  751. ::google::protobuf::uint32 cached_has_bits = 0;
  752. (void) cached_has_bits;
  753. cached_has_bits = _has_bits_[0];
  754. // required int64 id = 1;
  755. if (cached_has_bits & 0x00000001u) {
  756. ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->id(), output);
  757. }
  758. // optional int64 frame_count = 2;
  759. if (cached_has_bits & 0x00000002u) {
  760. ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->frame_count(), output);
  761. }
  762. if (_internal_metadata_.have_unknown_fields()) {
  763. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  764. _internal_metadata_.unknown_fields(), output);
  765. }
  766. // @@protoc_insertion_point(serialize_end:Terminal.Laser_parameter)
  767. }
  768. ::google::protobuf::uint8* Laser_parameter::InternalSerializeWithCachedSizesToArray(
  769. bool deterministic, ::google::protobuf::uint8* target) const {
  770. (void)deterministic; // Unused
  771. // @@protoc_insertion_point(serialize_to_array_start:Terminal.Laser_parameter)
  772. ::google::protobuf::uint32 cached_has_bits = 0;
  773. (void) cached_has_bits;
  774. cached_has_bits = _has_bits_[0];
  775. // required int64 id = 1;
  776. if (cached_has_bits & 0x00000001u) {
  777. target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->id(), target);
  778. }
  779. // optional int64 frame_count = 2;
  780. if (cached_has_bits & 0x00000002u) {
  781. target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->frame_count(), target);
  782. }
  783. if (_internal_metadata_.have_unknown_fields()) {
  784. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  785. _internal_metadata_.unknown_fields(), target);
  786. }
  787. // @@protoc_insertion_point(serialize_to_array_end:Terminal.Laser_parameter)
  788. return target;
  789. }
  790. size_t Laser_parameter::ByteSizeLong() const {
  791. // @@protoc_insertion_point(message_byte_size_start:Terminal.Laser_parameter)
  792. size_t total_size = 0;
  793. if (_internal_metadata_.have_unknown_fields()) {
  794. total_size +=
  795. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  796. _internal_metadata_.unknown_fields());
  797. }
  798. // required int64 id = 1;
  799. if (has_id()) {
  800. total_size += 1 +
  801. ::google::protobuf::internal::WireFormatLite::Int64Size(
  802. this->id());
  803. }
  804. // optional int64 frame_count = 2;
  805. if (has_frame_count()) {
  806. total_size += 1 +
  807. ::google::protobuf::internal::WireFormatLite::Int64Size(
  808. this->frame_count());
  809. }
  810. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  811. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  812. _cached_size_ = cached_size;
  813. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  814. return total_size;
  815. }
  816. void Laser_parameter::MergeFrom(const ::google::protobuf::Message& from) {
  817. // @@protoc_insertion_point(generalized_merge_from_start:Terminal.Laser_parameter)
  818. GOOGLE_DCHECK_NE(&from, this);
  819. const Laser_parameter* source =
  820. ::google::protobuf::internal::DynamicCastToGenerated<const Laser_parameter>(
  821. &from);
  822. if (source == NULL) {
  823. // @@protoc_insertion_point(generalized_merge_from_cast_fail:Terminal.Laser_parameter)
  824. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  825. } else {
  826. // @@protoc_insertion_point(generalized_merge_from_cast_success:Terminal.Laser_parameter)
  827. MergeFrom(*source);
  828. }
  829. }
  830. void Laser_parameter::MergeFrom(const Laser_parameter& from) {
  831. // @@protoc_insertion_point(class_specific_merge_from_start:Terminal.Laser_parameter)
  832. GOOGLE_DCHECK_NE(&from, this);
  833. _internal_metadata_.MergeFrom(from._internal_metadata_);
  834. ::google::protobuf::uint32 cached_has_bits = 0;
  835. (void) cached_has_bits;
  836. cached_has_bits = from._has_bits_[0];
  837. if (cached_has_bits & 3u) {
  838. if (cached_has_bits & 0x00000001u) {
  839. id_ = from.id_;
  840. }
  841. if (cached_has_bits & 0x00000002u) {
  842. frame_count_ = from.frame_count_;
  843. }
  844. _has_bits_[0] |= cached_has_bits;
  845. }
  846. }
  847. void Laser_parameter::CopyFrom(const ::google::protobuf::Message& from) {
  848. // @@protoc_insertion_point(generalized_copy_from_start:Terminal.Laser_parameter)
  849. if (&from == this) return;
  850. Clear();
  851. MergeFrom(from);
  852. }
  853. void Laser_parameter::CopyFrom(const Laser_parameter& from) {
  854. // @@protoc_insertion_point(class_specific_copy_from_start:Terminal.Laser_parameter)
  855. if (&from == this) return;
  856. Clear();
  857. MergeFrom(from);
  858. }
  859. bool Laser_parameter::IsInitialized() const {
  860. if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
  861. return true;
  862. }
  863. void Laser_parameter::Swap(Laser_parameter* other) {
  864. if (other == this) return;
  865. InternalSwap(other);
  866. }
  867. void Laser_parameter::InternalSwap(Laser_parameter* other) {
  868. using std::swap;
  869. swap(id_, other->id_);
  870. swap(frame_count_, other->frame_count_);
  871. swap(_has_bits_[0], other->_has_bits_[0]);
  872. _internal_metadata_.Swap(&other->_internal_metadata_);
  873. swap(_cached_size_, other->_cached_size_);
  874. }
  875. ::google::protobuf::Metadata Laser_parameter::GetMetadata() const {
  876. protobuf_Terminor_5fparameter_2eproto::protobuf_AssignDescriptorsOnce();
  877. return ::protobuf_Terminor_5fparameter_2eproto::file_level_metadata[kIndexInFileMessages];
  878. }
  879. // ===================================================================
  880. void Terminor_parameter::InitAsDefaultInstance() {
  881. ::Terminal::_Terminor_parameter_default_instance_._instance.get_mutable()->area_3d_ = const_cast< ::Terminal::Area3d*>(
  882. ::Terminal::Area3d::internal_default_instance());
  883. }
  884. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  885. const int Terminor_parameter::kArea3DFieldNumber;
  886. const int Terminor_parameter::kIdFieldNumber;
  887. const int Terminor_parameter::kLaserParameterFieldNumber;
  888. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  889. Terminor_parameter::Terminor_parameter()
  890. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  891. if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
  892. ::protobuf_Terminor_5fparameter_2eproto::InitDefaultsTerminor_parameter();
  893. }
  894. SharedCtor();
  895. // @@protoc_insertion_point(constructor:Terminal.Terminor_parameter)
  896. }
  897. Terminor_parameter::Terminor_parameter(const Terminor_parameter& from)
  898. : ::google::protobuf::Message(),
  899. _internal_metadata_(NULL),
  900. _has_bits_(from._has_bits_),
  901. _cached_size_(0),
  902. laser_parameter_(from.laser_parameter_) {
  903. _internal_metadata_.MergeFrom(from._internal_metadata_);
  904. if (from.has_area_3d()) {
  905. area_3d_ = new ::Terminal::Area3d(*from.area_3d_);
  906. } else {
  907. area_3d_ = NULL;
  908. }
  909. id_ = from.id_;
  910. // @@protoc_insertion_point(copy_constructor:Terminal.Terminor_parameter)
  911. }
  912. void Terminor_parameter::SharedCtor() {
  913. _cached_size_ = 0;
  914. ::memset(&area_3d_, 0, static_cast<size_t>(
  915. reinterpret_cast<char*>(&id_) -
  916. reinterpret_cast<char*>(&area_3d_)) + sizeof(id_));
  917. }
  918. Terminor_parameter::~Terminor_parameter() {
  919. // @@protoc_insertion_point(destructor:Terminal.Terminor_parameter)
  920. SharedDtor();
  921. }
  922. void Terminor_parameter::SharedDtor() {
  923. if (this != internal_default_instance()) delete area_3d_;
  924. }
  925. void Terminor_parameter::SetCachedSize(int size) const {
  926. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  927. _cached_size_ = size;
  928. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  929. }
  930. const ::google::protobuf::Descriptor* Terminor_parameter::descriptor() {
  931. ::protobuf_Terminor_5fparameter_2eproto::protobuf_AssignDescriptorsOnce();
  932. return ::protobuf_Terminor_5fparameter_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  933. }
  934. const Terminor_parameter& Terminor_parameter::default_instance() {
  935. ::protobuf_Terminor_5fparameter_2eproto::InitDefaultsTerminor_parameter();
  936. return *internal_default_instance();
  937. }
  938. Terminor_parameter* Terminor_parameter::New(::google::protobuf::Arena* arena) const {
  939. Terminor_parameter* n = new Terminor_parameter;
  940. if (arena != NULL) {
  941. arena->Own(n);
  942. }
  943. return n;
  944. }
  945. void Terminor_parameter::Clear() {
  946. // @@protoc_insertion_point(message_clear_start:Terminal.Terminor_parameter)
  947. ::google::protobuf::uint32 cached_has_bits = 0;
  948. // Prevent compiler warnings about cached_has_bits being unused
  949. (void) cached_has_bits;
  950. laser_parameter_.Clear();
  951. cached_has_bits = _has_bits_[0];
  952. if (cached_has_bits & 0x00000001u) {
  953. GOOGLE_DCHECK(area_3d_ != NULL);
  954. area_3d_->Clear();
  955. }
  956. id_ = GOOGLE_LONGLONG(0);
  957. _has_bits_.Clear();
  958. _internal_metadata_.Clear();
  959. }
  960. bool Terminor_parameter::MergePartialFromCodedStream(
  961. ::google::protobuf::io::CodedInputStream* input) {
  962. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  963. ::google::protobuf::uint32 tag;
  964. // @@protoc_insertion_point(parse_start:Terminal.Terminor_parameter)
  965. for (;;) {
  966. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  967. tag = p.first;
  968. if (!p.second) goto handle_unusual;
  969. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  970. // required .Terminal.Area3d area_3d = 1;
  971. case 1: {
  972. if (static_cast< ::google::protobuf::uint8>(tag) ==
  973. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  974. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  975. input, mutable_area_3d()));
  976. } else {
  977. goto handle_unusual;
  978. }
  979. break;
  980. }
  981. // required int64 id = 2;
  982. case 2: {
  983. if (static_cast< ::google::protobuf::uint8>(tag) ==
  984. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  985. set_has_id();
  986. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  987. ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
  988. input, &id_)));
  989. } else {
  990. goto handle_unusual;
  991. }
  992. break;
  993. }
  994. // repeated .Terminal.Laser_parameter laser_parameter = 3;
  995. case 3: {
  996. if (static_cast< ::google::protobuf::uint8>(tag) ==
  997. static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
  998. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_laser_parameter()));
  999. } else {
  1000. goto handle_unusual;
  1001. }
  1002. break;
  1003. }
  1004. default: {
  1005. handle_unusual:
  1006. if (tag == 0) {
  1007. goto success;
  1008. }
  1009. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1010. input, tag, _internal_metadata_.mutable_unknown_fields()));
  1011. break;
  1012. }
  1013. }
  1014. }
  1015. success:
  1016. // @@protoc_insertion_point(parse_success:Terminal.Terminor_parameter)
  1017. return true;
  1018. failure:
  1019. // @@protoc_insertion_point(parse_failure:Terminal.Terminor_parameter)
  1020. return false;
  1021. #undef DO_
  1022. }
  1023. void Terminor_parameter::SerializeWithCachedSizes(
  1024. ::google::protobuf::io::CodedOutputStream* output) const {
  1025. // @@protoc_insertion_point(serialize_start:Terminal.Terminor_parameter)
  1026. ::google::protobuf::uint32 cached_has_bits = 0;
  1027. (void) cached_has_bits;
  1028. cached_has_bits = _has_bits_[0];
  1029. // required .Terminal.Area3d area_3d = 1;
  1030. if (cached_has_bits & 0x00000001u) {
  1031. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1032. 1, *this->area_3d_, output);
  1033. }
  1034. // required int64 id = 2;
  1035. if (cached_has_bits & 0x00000002u) {
  1036. ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->id(), output);
  1037. }
  1038. // repeated .Terminal.Laser_parameter laser_parameter = 3;
  1039. for (unsigned int i = 0,
  1040. n = static_cast<unsigned int>(this->laser_parameter_size()); i < n; i++) {
  1041. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1042. 3, this->laser_parameter(static_cast<int>(i)), output);
  1043. }
  1044. if (_internal_metadata_.have_unknown_fields()) {
  1045. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1046. _internal_metadata_.unknown_fields(), output);
  1047. }
  1048. // @@protoc_insertion_point(serialize_end:Terminal.Terminor_parameter)
  1049. }
  1050. ::google::protobuf::uint8* Terminor_parameter::InternalSerializeWithCachedSizesToArray(
  1051. bool deterministic, ::google::protobuf::uint8* target) const {
  1052. (void)deterministic; // Unused
  1053. // @@protoc_insertion_point(serialize_to_array_start:Terminal.Terminor_parameter)
  1054. ::google::protobuf::uint32 cached_has_bits = 0;
  1055. (void) cached_has_bits;
  1056. cached_has_bits = _has_bits_[0];
  1057. // required .Terminal.Area3d area_3d = 1;
  1058. if (cached_has_bits & 0x00000001u) {
  1059. target = ::google::protobuf::internal::WireFormatLite::
  1060. InternalWriteMessageToArray(
  1061. 1, *this->area_3d_, deterministic, target);
  1062. }
  1063. // required int64 id = 2;
  1064. if (cached_has_bits & 0x00000002u) {
  1065. target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->id(), target);
  1066. }
  1067. // repeated .Terminal.Laser_parameter laser_parameter = 3;
  1068. for (unsigned int i = 0,
  1069. n = static_cast<unsigned int>(this->laser_parameter_size()); i < n; i++) {
  1070. target = ::google::protobuf::internal::WireFormatLite::
  1071. InternalWriteMessageToArray(
  1072. 3, this->laser_parameter(static_cast<int>(i)), deterministic, target);
  1073. }
  1074. if (_internal_metadata_.have_unknown_fields()) {
  1075. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1076. _internal_metadata_.unknown_fields(), target);
  1077. }
  1078. // @@protoc_insertion_point(serialize_to_array_end:Terminal.Terminor_parameter)
  1079. return target;
  1080. }
  1081. size_t Terminor_parameter::RequiredFieldsByteSizeFallback() const {
  1082. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:Terminal.Terminor_parameter)
  1083. size_t total_size = 0;
  1084. if (has_area_3d()) {
  1085. // required .Terminal.Area3d area_3d = 1;
  1086. total_size += 1 +
  1087. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1088. *this->area_3d_);
  1089. }
  1090. if (has_id()) {
  1091. // required int64 id = 2;
  1092. total_size += 1 +
  1093. ::google::protobuf::internal::WireFormatLite::Int64Size(
  1094. this->id());
  1095. }
  1096. return total_size;
  1097. }
  1098. size_t Terminor_parameter::ByteSizeLong() const {
  1099. // @@protoc_insertion_point(message_byte_size_start:Terminal.Terminor_parameter)
  1100. size_t total_size = 0;
  1101. if (_internal_metadata_.have_unknown_fields()) {
  1102. total_size +=
  1103. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1104. _internal_metadata_.unknown_fields());
  1105. }
  1106. if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present.
  1107. // required .Terminal.Area3d area_3d = 1;
  1108. total_size += 1 +
  1109. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1110. *this->area_3d_);
  1111. // required int64 id = 2;
  1112. total_size += 1 +
  1113. ::google::protobuf::internal::WireFormatLite::Int64Size(
  1114. this->id());
  1115. } else {
  1116. total_size += RequiredFieldsByteSizeFallback();
  1117. }
  1118. // repeated .Terminal.Laser_parameter laser_parameter = 3;
  1119. {
  1120. unsigned int count = static_cast<unsigned int>(this->laser_parameter_size());
  1121. total_size += 1UL * count;
  1122. for (unsigned int i = 0; i < count; i++) {
  1123. total_size +=
  1124. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1125. this->laser_parameter(static_cast<int>(i)));
  1126. }
  1127. }
  1128. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  1129. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1130. _cached_size_ = cached_size;
  1131. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1132. return total_size;
  1133. }
  1134. void Terminor_parameter::MergeFrom(const ::google::protobuf::Message& from) {
  1135. // @@protoc_insertion_point(generalized_merge_from_start:Terminal.Terminor_parameter)
  1136. GOOGLE_DCHECK_NE(&from, this);
  1137. const Terminor_parameter* source =
  1138. ::google::protobuf::internal::DynamicCastToGenerated<const Terminor_parameter>(
  1139. &from);
  1140. if (source == NULL) {
  1141. // @@protoc_insertion_point(generalized_merge_from_cast_fail:Terminal.Terminor_parameter)
  1142. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1143. } else {
  1144. // @@protoc_insertion_point(generalized_merge_from_cast_success:Terminal.Terminor_parameter)
  1145. MergeFrom(*source);
  1146. }
  1147. }
  1148. void Terminor_parameter::MergeFrom(const Terminor_parameter& from) {
  1149. // @@protoc_insertion_point(class_specific_merge_from_start:Terminal.Terminor_parameter)
  1150. GOOGLE_DCHECK_NE(&from, this);
  1151. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1152. ::google::protobuf::uint32 cached_has_bits = 0;
  1153. (void) cached_has_bits;
  1154. laser_parameter_.MergeFrom(from.laser_parameter_);
  1155. cached_has_bits = from._has_bits_[0];
  1156. if (cached_has_bits & 3u) {
  1157. if (cached_has_bits & 0x00000001u) {
  1158. mutable_area_3d()->::Terminal::Area3d::MergeFrom(from.area_3d());
  1159. }
  1160. if (cached_has_bits & 0x00000002u) {
  1161. id_ = from.id_;
  1162. }
  1163. _has_bits_[0] |= cached_has_bits;
  1164. }
  1165. }
  1166. void Terminor_parameter::CopyFrom(const ::google::protobuf::Message& from) {
  1167. // @@protoc_insertion_point(generalized_copy_from_start:Terminal.Terminor_parameter)
  1168. if (&from == this) return;
  1169. Clear();
  1170. MergeFrom(from);
  1171. }
  1172. void Terminor_parameter::CopyFrom(const Terminor_parameter& from) {
  1173. // @@protoc_insertion_point(class_specific_copy_from_start:Terminal.Terminor_parameter)
  1174. if (&from == this) return;
  1175. Clear();
  1176. MergeFrom(from);
  1177. }
  1178. bool Terminor_parameter::IsInitialized() const {
  1179. if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
  1180. if (!::google::protobuf::internal::AllAreInitialized(this->laser_parameter())) return false;
  1181. if (has_area_3d()) {
  1182. if (!this->area_3d_->IsInitialized()) return false;
  1183. }
  1184. return true;
  1185. }
  1186. void Terminor_parameter::Swap(Terminor_parameter* other) {
  1187. if (other == this) return;
  1188. InternalSwap(other);
  1189. }
  1190. void Terminor_parameter::InternalSwap(Terminor_parameter* other) {
  1191. using std::swap;
  1192. laser_parameter_.InternalSwap(&other->laser_parameter_);
  1193. swap(area_3d_, other->area_3d_);
  1194. swap(id_, other->id_);
  1195. swap(_has_bits_[0], other->_has_bits_[0]);
  1196. _internal_metadata_.Swap(&other->_internal_metadata_);
  1197. swap(_cached_size_, other->_cached_size_);
  1198. }
  1199. ::google::protobuf::Metadata Terminor_parameter::GetMetadata() const {
  1200. protobuf_Terminor_5fparameter_2eproto::protobuf_AssignDescriptorsOnce();
  1201. return ::protobuf_Terminor_5fparameter_2eproto::file_level_metadata[kIndexInFileMessages];
  1202. }
  1203. // ===================================================================
  1204. void Terminor_parameter_all::InitAsDefaultInstance() {
  1205. }
  1206. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  1207. const int Terminor_parameter_all::kTerminorParametersFieldNumber;
  1208. const int Terminor_parameter_all::kSaveRootPathFieldNumber;
  1209. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  1210. Terminor_parameter_all::Terminor_parameter_all()
  1211. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  1212. if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
  1213. ::protobuf_Terminor_5fparameter_2eproto::InitDefaultsTerminor_parameter_all();
  1214. }
  1215. SharedCtor();
  1216. // @@protoc_insertion_point(constructor:Terminal.Terminor_parameter_all)
  1217. }
  1218. Terminor_parameter_all::Terminor_parameter_all(const Terminor_parameter_all& from)
  1219. : ::google::protobuf::Message(),
  1220. _internal_metadata_(NULL),
  1221. _has_bits_(from._has_bits_),
  1222. _cached_size_(0),
  1223. terminor_parameters_(from.terminor_parameters_) {
  1224. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1225. save_root_path_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1226. if (from.has_save_root_path()) {
  1227. save_root_path_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.save_root_path_);
  1228. }
  1229. // @@protoc_insertion_point(copy_constructor:Terminal.Terminor_parameter_all)
  1230. }
  1231. void Terminor_parameter_all::SharedCtor() {
  1232. _cached_size_ = 0;
  1233. save_root_path_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1234. }
  1235. Terminor_parameter_all::~Terminor_parameter_all() {
  1236. // @@protoc_insertion_point(destructor:Terminal.Terminor_parameter_all)
  1237. SharedDtor();
  1238. }
  1239. void Terminor_parameter_all::SharedDtor() {
  1240. save_root_path_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1241. }
  1242. void Terminor_parameter_all::SetCachedSize(int size) const {
  1243. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1244. _cached_size_ = size;
  1245. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1246. }
  1247. const ::google::protobuf::Descriptor* Terminor_parameter_all::descriptor() {
  1248. ::protobuf_Terminor_5fparameter_2eproto::protobuf_AssignDescriptorsOnce();
  1249. return ::protobuf_Terminor_5fparameter_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  1250. }
  1251. const Terminor_parameter_all& Terminor_parameter_all::default_instance() {
  1252. ::protobuf_Terminor_5fparameter_2eproto::InitDefaultsTerminor_parameter_all();
  1253. return *internal_default_instance();
  1254. }
  1255. Terminor_parameter_all* Terminor_parameter_all::New(::google::protobuf::Arena* arena) const {
  1256. Terminor_parameter_all* n = new Terminor_parameter_all;
  1257. if (arena != NULL) {
  1258. arena->Own(n);
  1259. }
  1260. return n;
  1261. }
  1262. void Terminor_parameter_all::Clear() {
  1263. // @@protoc_insertion_point(message_clear_start:Terminal.Terminor_parameter_all)
  1264. ::google::protobuf::uint32 cached_has_bits = 0;
  1265. // Prevent compiler warnings about cached_has_bits being unused
  1266. (void) cached_has_bits;
  1267. terminor_parameters_.Clear();
  1268. cached_has_bits = _has_bits_[0];
  1269. if (cached_has_bits & 0x00000001u) {
  1270. GOOGLE_DCHECK(!save_root_path_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
  1271. (*save_root_path_.UnsafeRawStringPointer())->clear();
  1272. }
  1273. _has_bits_.Clear();
  1274. _internal_metadata_.Clear();
  1275. }
  1276. bool Terminor_parameter_all::MergePartialFromCodedStream(
  1277. ::google::protobuf::io::CodedInputStream* input) {
  1278. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  1279. ::google::protobuf::uint32 tag;
  1280. // @@protoc_insertion_point(parse_start:Terminal.Terminor_parameter_all)
  1281. for (;;) {
  1282. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  1283. tag = p.first;
  1284. if (!p.second) goto handle_unusual;
  1285. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1286. // repeated .Terminal.Terminor_parameter terminor_parameters = 1;
  1287. case 1: {
  1288. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1289. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  1290. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_terminor_parameters()));
  1291. } else {
  1292. goto handle_unusual;
  1293. }
  1294. break;
  1295. }
  1296. // required string save_root_path = 2;
  1297. case 2: {
  1298. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1299. static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
  1300. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  1301. input, this->mutable_save_root_path()));
  1302. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1303. this->save_root_path().data(), static_cast<int>(this->save_root_path().length()),
  1304. ::google::protobuf::internal::WireFormat::PARSE,
  1305. "Terminal.Terminor_parameter_all.save_root_path");
  1306. } else {
  1307. goto handle_unusual;
  1308. }
  1309. break;
  1310. }
  1311. default: {
  1312. handle_unusual:
  1313. if (tag == 0) {
  1314. goto success;
  1315. }
  1316. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1317. input, tag, _internal_metadata_.mutable_unknown_fields()));
  1318. break;
  1319. }
  1320. }
  1321. }
  1322. success:
  1323. // @@protoc_insertion_point(parse_success:Terminal.Terminor_parameter_all)
  1324. return true;
  1325. failure:
  1326. // @@protoc_insertion_point(parse_failure:Terminal.Terminor_parameter_all)
  1327. return false;
  1328. #undef DO_
  1329. }
  1330. void Terminor_parameter_all::SerializeWithCachedSizes(
  1331. ::google::protobuf::io::CodedOutputStream* output) const {
  1332. // @@protoc_insertion_point(serialize_start:Terminal.Terminor_parameter_all)
  1333. ::google::protobuf::uint32 cached_has_bits = 0;
  1334. (void) cached_has_bits;
  1335. // repeated .Terminal.Terminor_parameter terminor_parameters = 1;
  1336. for (unsigned int i = 0,
  1337. n = static_cast<unsigned int>(this->terminor_parameters_size()); i < n; i++) {
  1338. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1339. 1, this->terminor_parameters(static_cast<int>(i)), output);
  1340. }
  1341. cached_has_bits = _has_bits_[0];
  1342. // required string save_root_path = 2;
  1343. if (cached_has_bits & 0x00000001u) {
  1344. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1345. this->save_root_path().data(), static_cast<int>(this->save_root_path().length()),
  1346. ::google::protobuf::internal::WireFormat::SERIALIZE,
  1347. "Terminal.Terminor_parameter_all.save_root_path");
  1348. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  1349. 2, this->save_root_path(), output);
  1350. }
  1351. if (_internal_metadata_.have_unknown_fields()) {
  1352. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1353. _internal_metadata_.unknown_fields(), output);
  1354. }
  1355. // @@protoc_insertion_point(serialize_end:Terminal.Terminor_parameter_all)
  1356. }
  1357. ::google::protobuf::uint8* Terminor_parameter_all::InternalSerializeWithCachedSizesToArray(
  1358. bool deterministic, ::google::protobuf::uint8* target) const {
  1359. (void)deterministic; // Unused
  1360. // @@protoc_insertion_point(serialize_to_array_start:Terminal.Terminor_parameter_all)
  1361. ::google::protobuf::uint32 cached_has_bits = 0;
  1362. (void) cached_has_bits;
  1363. // repeated .Terminal.Terminor_parameter terminor_parameters = 1;
  1364. for (unsigned int i = 0,
  1365. n = static_cast<unsigned int>(this->terminor_parameters_size()); i < n; i++) {
  1366. target = ::google::protobuf::internal::WireFormatLite::
  1367. InternalWriteMessageToArray(
  1368. 1, this->terminor_parameters(static_cast<int>(i)), deterministic, target);
  1369. }
  1370. cached_has_bits = _has_bits_[0];
  1371. // required string save_root_path = 2;
  1372. if (cached_has_bits & 0x00000001u) {
  1373. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1374. this->save_root_path().data(), static_cast<int>(this->save_root_path().length()),
  1375. ::google::protobuf::internal::WireFormat::SERIALIZE,
  1376. "Terminal.Terminor_parameter_all.save_root_path");
  1377. target =
  1378. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  1379. 2, this->save_root_path(), target);
  1380. }
  1381. if (_internal_metadata_.have_unknown_fields()) {
  1382. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1383. _internal_metadata_.unknown_fields(), target);
  1384. }
  1385. // @@protoc_insertion_point(serialize_to_array_end:Terminal.Terminor_parameter_all)
  1386. return target;
  1387. }
  1388. size_t Terminor_parameter_all::ByteSizeLong() const {
  1389. // @@protoc_insertion_point(message_byte_size_start:Terminal.Terminor_parameter_all)
  1390. size_t total_size = 0;
  1391. if (_internal_metadata_.have_unknown_fields()) {
  1392. total_size +=
  1393. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1394. _internal_metadata_.unknown_fields());
  1395. }
  1396. // required string save_root_path = 2;
  1397. if (has_save_root_path()) {
  1398. total_size += 1 +
  1399. ::google::protobuf::internal::WireFormatLite::StringSize(
  1400. this->save_root_path());
  1401. }
  1402. // repeated .Terminal.Terminor_parameter terminor_parameters = 1;
  1403. {
  1404. unsigned int count = static_cast<unsigned int>(this->terminor_parameters_size());
  1405. total_size += 1UL * count;
  1406. for (unsigned int i = 0; i < count; i++) {
  1407. total_size +=
  1408. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1409. this->terminor_parameters(static_cast<int>(i)));
  1410. }
  1411. }
  1412. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  1413. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1414. _cached_size_ = cached_size;
  1415. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1416. return total_size;
  1417. }
  1418. void Terminor_parameter_all::MergeFrom(const ::google::protobuf::Message& from) {
  1419. // @@protoc_insertion_point(generalized_merge_from_start:Terminal.Terminor_parameter_all)
  1420. GOOGLE_DCHECK_NE(&from, this);
  1421. const Terminor_parameter_all* source =
  1422. ::google::protobuf::internal::DynamicCastToGenerated<const Terminor_parameter_all>(
  1423. &from);
  1424. if (source == NULL) {
  1425. // @@protoc_insertion_point(generalized_merge_from_cast_fail:Terminal.Terminor_parameter_all)
  1426. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1427. } else {
  1428. // @@protoc_insertion_point(generalized_merge_from_cast_success:Terminal.Terminor_parameter_all)
  1429. MergeFrom(*source);
  1430. }
  1431. }
  1432. void Terminor_parameter_all::MergeFrom(const Terminor_parameter_all& from) {
  1433. // @@protoc_insertion_point(class_specific_merge_from_start:Terminal.Terminor_parameter_all)
  1434. GOOGLE_DCHECK_NE(&from, this);
  1435. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1436. ::google::protobuf::uint32 cached_has_bits = 0;
  1437. (void) cached_has_bits;
  1438. terminor_parameters_.MergeFrom(from.terminor_parameters_);
  1439. if (from.has_save_root_path()) {
  1440. set_has_save_root_path();
  1441. save_root_path_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.save_root_path_);
  1442. }
  1443. }
  1444. void Terminor_parameter_all::CopyFrom(const ::google::protobuf::Message& from) {
  1445. // @@protoc_insertion_point(generalized_copy_from_start:Terminal.Terminor_parameter_all)
  1446. if (&from == this) return;
  1447. Clear();
  1448. MergeFrom(from);
  1449. }
  1450. void Terminor_parameter_all::CopyFrom(const Terminor_parameter_all& from) {
  1451. // @@protoc_insertion_point(class_specific_copy_from_start:Terminal.Terminor_parameter_all)
  1452. if (&from == this) return;
  1453. Clear();
  1454. MergeFrom(from);
  1455. }
  1456. bool Terminor_parameter_all::IsInitialized() const {
  1457. if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
  1458. if (!::google::protobuf::internal::AllAreInitialized(this->terminor_parameters())) return false;
  1459. return true;
  1460. }
  1461. void Terminor_parameter_all::Swap(Terminor_parameter_all* other) {
  1462. if (other == this) return;
  1463. InternalSwap(other);
  1464. }
  1465. void Terminor_parameter_all::InternalSwap(Terminor_parameter_all* other) {
  1466. using std::swap;
  1467. terminor_parameters_.InternalSwap(&other->terminor_parameters_);
  1468. save_root_path_.Swap(&other->save_root_path_);
  1469. swap(_has_bits_[0], other->_has_bits_[0]);
  1470. _internal_metadata_.Swap(&other->_internal_metadata_);
  1471. swap(_cached_size_, other->_cached_size_);
  1472. }
  1473. ::google::protobuf::Metadata Terminor_parameter_all::GetMetadata() const {
  1474. protobuf_Terminor_5fparameter_2eproto::protobuf_AssignDescriptorsOnce();
  1475. return ::protobuf_Terminor_5fparameter_2eproto::file_level_metadata[kIndexInFileMessages];
  1476. }
  1477. // @@protoc_insertion_point(namespace_scope)
  1478. } // namespace Terminal
  1479. // @@protoc_insertion_point(global_scope)