singlechip_msg.pb.cc 123 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: singlechip_msg.proto
  3. #include "singlechip_msg.pb.h"
  4. #include <algorithm>
  5. #include <google/protobuf/stubs/common.h>
  6. #include <google/protobuf/stubs/port.h>
  7. #include <google/protobuf/io/coded_stream.h>
  8. #include <google/protobuf/wire_format_lite_inl.h>
  9. #include <google/protobuf/descriptor.h>
  10. #include <google/protobuf/generated_message_reflection.h>
  11. #include <google/protobuf/reflection_ops.h>
  12. #include <google/protobuf/wire_format.h>
  13. // This is a temporary google only hack
  14. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  15. #include "third_party/protobuf/version.h"
  16. #endif
  17. // @@protoc_insertion_point(includes)
  18. namespace protobuf_message_5fbase_2eproto {
  19. extern PROTOBUF_INTERNAL_EXPORT_protobuf_message_5fbase_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Base_info;
  20. extern PROTOBUF_INTERNAL_EXPORT_protobuf_message_5fbase_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Id_struct;
  21. } // namespace protobuf_message_5fbase_2eproto
  22. namespace protobuf_singlechip_5fmsg_2eproto {
  23. extern PROTOBUF_INTERNAL_EXPORT_protobuf_singlechip_5fmsg_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_InputDi;
  24. extern PROTOBUF_INTERNAL_EXPORT_protobuf_singlechip_5fmsg_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_OutputDo;
  25. extern PROTOBUF_INTERNAL_EXPORT_protobuf_singlechip_5fmsg_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Singlechip_data;
  26. } // namespace protobuf_singlechip_5fmsg_2eproto
  27. namespace message {
  28. class InputDiDefaultTypeInternal {
  29. public:
  30. ::google::protobuf::internal::ExplicitlyConstructed<InputDi>
  31. _instance;
  32. } _InputDi_default_instance_;
  33. class OutputDoDefaultTypeInternal {
  34. public:
  35. ::google::protobuf::internal::ExplicitlyConstructed<OutputDo>
  36. _instance;
  37. } _OutputDo_default_instance_;
  38. class terminal_msgDefaultTypeInternal {
  39. public:
  40. ::google::protobuf::internal::ExplicitlyConstructed<terminal_msg>
  41. _instance;
  42. } _terminal_msg_default_instance_;
  43. class Singlechip_dataDefaultTypeInternal {
  44. public:
  45. ::google::protobuf::internal::ExplicitlyConstructed<Singlechip_data>
  46. _instance;
  47. } _Singlechip_data_default_instance_;
  48. class Terminal_status_msgDefaultTypeInternal {
  49. public:
  50. ::google::protobuf::internal::ExplicitlyConstructed<Terminal_status_msg>
  51. _instance;
  52. } _Terminal_status_msg_default_instance_;
  53. } // namespace message
  54. namespace protobuf_singlechip_5fmsg_2eproto {
  55. static void InitDefaultsInputDi() {
  56. GOOGLE_PROTOBUF_VERIFY_VERSION;
  57. {
  58. void* ptr = &::message::_InputDi_default_instance_;
  59. new (ptr) ::message::InputDi();
  60. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  61. }
  62. ::message::InputDi::InitAsDefaultInstance();
  63. }
  64. ::google::protobuf::internal::SCCInfo<0> scc_info_InputDi =
  65. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsInputDi}, {}};
  66. static void InitDefaultsOutputDo() {
  67. GOOGLE_PROTOBUF_VERIFY_VERSION;
  68. {
  69. void* ptr = &::message::_OutputDo_default_instance_;
  70. new (ptr) ::message::OutputDo();
  71. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  72. }
  73. ::message::OutputDo::InitAsDefaultInstance();
  74. }
  75. ::google::protobuf::internal::SCCInfo<0> scc_info_OutputDo =
  76. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsOutputDo}, {}};
  77. static void InitDefaultsterminal_msg() {
  78. GOOGLE_PROTOBUF_VERIFY_VERSION;
  79. {
  80. void* ptr = &::message::_terminal_msg_default_instance_;
  81. new (ptr) ::message::terminal_msg();
  82. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  83. }
  84. ::message::terminal_msg::InitAsDefaultInstance();
  85. }
  86. ::google::protobuf::internal::SCCInfo<1> scc_info_terminal_msg =
  87. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsterminal_msg}, {
  88. &protobuf_singlechip_5fmsg_2eproto::scc_info_OutputDo.base,}};
  89. static void InitDefaultsSinglechip_data() {
  90. GOOGLE_PROTOBUF_VERIFY_VERSION;
  91. {
  92. void* ptr = &::message::_Singlechip_data_default_instance_;
  93. new (ptr) ::message::Singlechip_data();
  94. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  95. }
  96. ::message::Singlechip_data::InitAsDefaultInstance();
  97. }
  98. ::google::protobuf::internal::SCCInfo<1> scc_info_Singlechip_data =
  99. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsSinglechip_data}, {
  100. &protobuf_singlechip_5fmsg_2eproto::scc_info_InputDi.base,}};
  101. static void InitDefaultsTerminal_status_msg() {
  102. GOOGLE_PROTOBUF_VERIFY_VERSION;
  103. {
  104. void* ptr = &::message::_Terminal_status_msg_default_instance_;
  105. new (ptr) ::message::Terminal_status_msg();
  106. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  107. }
  108. ::message::Terminal_status_msg::InitAsDefaultInstance();
  109. }
  110. ::google::protobuf::internal::SCCInfo<3> scc_info_Terminal_status_msg =
  111. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsTerminal_status_msg}, {
  112. &protobuf_message_5fbase_2eproto::scc_info_Base_info.base,
  113. &protobuf_message_5fbase_2eproto::scc_info_Id_struct.base,
  114. &protobuf_singlechip_5fmsg_2eproto::scc_info_Singlechip_data.base,}};
  115. void InitDefaults() {
  116. ::google::protobuf::internal::InitSCC(&scc_info_InputDi.base);
  117. ::google::protobuf::internal::InitSCC(&scc_info_OutputDo.base);
  118. ::google::protobuf::internal::InitSCC(&scc_info_terminal_msg.base);
  119. ::google::protobuf::internal::InitSCC(&scc_info_Singlechip_data.base);
  120. ::google::protobuf::internal::InitSCC(&scc_info_Terminal_status_msg.base);
  121. }
  122. ::google::protobuf::Metadata file_level_metadata[5];
  123. const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[6];
  124. const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  125. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::InputDi, _has_bits_),
  126. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::InputDi, _internal_metadata_),
  127. ~0u, // no _extensions_
  128. ~0u, // no _oneof_case_
  129. ~0u, // no _weak_field_map_
  130. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::InputDi, di0_),
  131. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::InputDi, di1_),
  132. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::InputDi, di2_),
  133. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::InputDi, di3_),
  134. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::InputDi, di4_),
  135. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::InputDi, di5_),
  136. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::InputDi, di6_),
  137. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::InputDi, di7_),
  138. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::InputDi, di8_),
  139. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::InputDi, di9_),
  140. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::InputDi, di10_),
  141. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::InputDi, di11_),
  142. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::InputDi, di12_),
  143. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::InputDi, di13_),
  144. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::InputDi, di14_),
  145. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::InputDi, di15_),
  146. 0,
  147. 1,
  148. 2,
  149. 3,
  150. 4,
  151. 5,
  152. 6,
  153. 7,
  154. 8,
  155. 9,
  156. 10,
  157. 11,
  158. 12,
  159. 13,
  160. 14,
  161. 15,
  162. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::OutputDo, _has_bits_),
  163. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::OutputDo, _internal_metadata_),
  164. ~0u, // no _extensions_
  165. ~0u, // no _oneof_case_
  166. ~0u, // no _weak_field_map_
  167. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::OutputDo, do0_),
  168. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::OutputDo, do1_),
  169. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::OutputDo, do2_),
  170. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::OutputDo, do3_),
  171. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::OutputDo, do4_),
  172. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::OutputDo, do5_),
  173. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::OutputDo, do6_),
  174. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::OutputDo, do7_),
  175. 0,
  176. 1,
  177. 2,
  178. 3,
  179. 4,
  180. 5,
  181. 6,
  182. 7,
  183. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::terminal_msg, _has_bits_),
  184. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::terminal_msg, _internal_metadata_),
  185. ~0u, // no _extensions_
  186. ~0u, // no _oneof_case_
  187. ~0u, // no _weak_field_map_
  188. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::terminal_msg, terminalid_),
  189. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::terminal_msg, dispatchdirection_),
  190. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::terminal_msg, processcontrol_),
  191. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::terminal_msg, outputdo_),
  192. 1,
  193. 2,
  194. 3,
  195. 0,
  196. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Singlechip_data, _has_bits_),
  197. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Singlechip_data, _internal_metadata_),
  198. ~0u, // no _extensions_
  199. ~0u, // no _oneof_case_
  200. ~0u, // no _weak_field_map_
  201. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Singlechip_data, terminalid_),
  202. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Singlechip_data, dispatchdirection_),
  203. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Singlechip_data, processstatus_),
  204. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Singlechip_data, inputdi_),
  205. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Singlechip_data, resetflag_),
  206. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Singlechip_data, processcontrol_),
  207. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Singlechip_data, insideexistenceflag_),
  208. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Singlechip_data, overborderstatus_),
  209. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Singlechip_data, carheightstatuscurrent_),
  210. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Singlechip_data, carheightstatuspassing_),
  211. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Singlechip_data, stopflag_),
  212. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Singlechip_data, outsidedoorstatus_),
  213. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Singlechip_data, outsidedoorcontrol_),
  214. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Singlechip_data, dispatchfinishflag_),
  215. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Singlechip_data, outsideexistenceflag_),
  216. 1,
  217. 2,
  218. 3,
  219. 0,
  220. 4,
  221. 5,
  222. 6,
  223. 7,
  224. 8,
  225. 9,
  226. 10,
  227. 11,
  228. 12,
  229. 13,
  230. 14,
  231. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Terminal_status_msg, _has_bits_),
  232. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Terminal_status_msg, _internal_metadata_),
  233. ~0u, // no _extensions_
  234. ~0u, // no _oneof_case_
  235. ~0u, // no _weak_field_map_
  236. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Terminal_status_msg, base_info_),
  237. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Terminal_status_msg, id_struct_),
  238. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Terminal_status_msg, singlechipdata_),
  239. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Terminal_status_msg, singlechip_validity_),
  240. 0,
  241. 1,
  242. 2,
  243. 3,
  244. };
  245. static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  246. { 0, 21, sizeof(::message::InputDi)},
  247. { 37, 50, sizeof(::message::OutputDo)},
  248. { 58, 67, sizeof(::message::terminal_msg)},
  249. { 71, 91, sizeof(::message::Singlechip_data)},
  250. { 106, 115, sizeof(::message::Terminal_status_msg)},
  251. };
  252. static ::google::protobuf::Message const * const file_default_instances[] = {
  253. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_InputDi_default_instance_),
  254. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_OutputDo_default_instance_),
  255. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_terminal_msg_default_instance_),
  256. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Singlechip_data_default_instance_),
  257. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Terminal_status_msg_default_instance_),
  258. };
  259. void protobuf_AssignDescriptors() {
  260. AddDescriptors();
  261. AssignDescriptors(
  262. "singlechip_msg.proto", schemas, file_default_instances, TableStruct::offsets,
  263. file_level_metadata, file_level_enum_descriptors, NULL);
  264. }
  265. void protobuf_AssignDescriptorsOnce() {
  266. static ::google::protobuf::internal::once_flag once;
  267. ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors);
  268. }
  269. void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
  270. void protobuf_RegisterTypes(const ::std::string&) {
  271. protobuf_AssignDescriptorsOnce();
  272. ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 5);
  273. }
  274. void AddDescriptorsImpl() {
  275. InitDefaults();
  276. static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  277. "\n\024singlechip_msg.proto\022\007message\032\022message"
  278. "_base.proto\"\337\001\n\007InputDi\022\013\n\003Di0\030\001 \001(\005\022\013\n\003"
  279. "Di1\030\002 \001(\005\022\013\n\003Di2\030\003 \001(\005\022\013\n\003Di3\030\004 \001(\005\022\013\n\003D"
  280. "i4\030\005 \001(\005\022\013\n\003Di5\030\006 \001(\005\022\013\n\003Di6\030\007 \001(\005\022\013\n\003Di"
  281. "7\030\010 \001(\005\022\013\n\003Di8\030\t \001(\005\022\013\n\003Di9\030\n \001(\005\022\014\n\004Di1"
  282. "0\030\013 \001(\005\022\014\n\004Di11\030\014 \001(\005\022\014\n\004Di12\030\r \001(\005\022\014\n\004D"
  283. "i13\030\016 \001(\005\022\014\n\004Di14\030\017 \001(\005\022\014\n\004Di15\030\020 \001(\005\"r\n"
  284. "\010OutputDo\022\013\n\003Do0\030\001 \001(\005\022\013\n\003Do1\030\002 \001(\005\022\013\n\003D"
  285. "o2\030\003 \001(\005\022\013\n\003Do3\030\004 \001(\005\022\013\n\003Do4\030\005 \001(\005\022\013\n\003Do"
  286. "5\030\006 \001(\005\022\013\n\003Do6\030\007 \001(\005\022\013\n\003Do7\030\010 \001(\005\"z\n\014ter"
  287. "minal_msg\022\022\n\nTerminalID\030\001 \001(\005\022\031\n\021Dispatc"
  288. "hDirection\030\002 \001(\005\022\026\n\016ProcessControl\030\003 \001(\005"
  289. "\022#\n\010OutPutDo\030\004 \001(\0132\021.message.OutputDo\"\344\004"
  290. "\n\017Singlechip_data\022\022\n\nTerminalID\030\001 \001(\005\022\031\n"
  291. "\021DispatchDirection\030\002 \001(\005\022.\n\rProcessStatu"
  292. "s\030\003 \001(\0162\027.message.Process_status\022!\n\007InPu"
  293. "tDi\030\004 \001(\0132\020.message.InputDi\022\021\n\tResetFlag"
  294. "\030\005 \001(\005\0220\n\016ProcessControl\030\006 \001(\0162\030.message"
  295. ".Process_control\022\033\n\023InsideExistenceFlag\030"
  296. "\007 \001(\005\0225\n\020OverBorderStatus\030\010 \001(\0162\033.messag"
  297. "e.Over_border_status\022:\n\026CarHeightStatusC"
  298. "urrent\030\t \001(\0162\032.message.Car_height_status"
  299. "\022:\n\026CarHeightStatusPassing\030\n \001(\0162\032.messa"
  300. "ge.Car_height_status\022\020\n\010StopFlag\030\013 \001(\005\0227"
  301. "\n\021OutsideDoorStatus\030\014 \001(\0162\034.message.Outs"
  302. "ide_door_status\0229\n\022OutsideDoorControl\030\r "
  303. "\001(\0162\035.message.Outside_door_control\022\032\n\022Di"
  304. "spatchFinishFlag\030\016 \001(\005\022\034\n\024OutsideExisten"
  305. "ceFlag\030\017 \001(\005\"\262\001\n\023Terminal_status_msg\022%\n\t"
  306. "base_info\030\001 \002(\0132\022.message.Base_info\022%\n\ti"
  307. "d_struct\030\002 \001(\0132\022.message.Id_struct\0220\n\016si"
  308. "nglechipData\030\003 \001(\0132\030.message.Singlechip_"
  309. "data\022\033\n\023singlechip_validity\030\004 \001(\010*\344\006\n\017Pr"
  310. "ocess_control\022\033\n\027PROCESS_CONTROL_UNKNOWN"
  311. "\020\000\022\035\n\031PROCESS_CONTROL_FULL_AUTO\020\001\022\032\n\026PRO"
  312. "CESS_CONTROL_MANUAL\020\002\022\036\n\032PROCESS_CONTROL"
  313. "_AUTO_CLOSE\020\003\022\035\n\031PROCESS_CONTROL_AUTO_OP"
  314. "EN\020\004\022\034\n\030PROCESS_CONTROL_TO_READY\020\005\022\031\n\025PR"
  315. "OCESS_CONTROL_RESET\020\007\022\030\n\024PROCESS_CONTROL"
  316. "_STOP\020\010\022\031\n\025PROCESS_CONTROL_FAULT\020\t\022\033\n\027PR"
  317. "OCESS_CONTROL_INLET_0\020\n\022\033\n\027PROCESS_CONTR"
  318. "OL_INLET_1\020\013\022\033\n\027PROCESS_CONTROL_INLET_2\020"
  319. "\014\022\033\n\027PROCESS_CONTROL_INLET_3\020\r\022\033\n\027PROCES"
  320. "S_CONTROL_INLET_4\020\016\022\033\n\027PROCESS_CONTROL_I"
  321. "NLET_5\020\017\022\033\n\027PROCESS_CONTROL_INLET_6\020\020\022\033\n"
  322. "\027PROCESS_CONTROL_INLET_7\020\021\022\033\n\027PROCESS_CO"
  323. "NTROL_INLET_8\020\022\022\033\n\027PROCESS_CONTROL_INLET"
  324. "_9\020\023\022\034\n\030PROCESS_CONTROL_OUTLET_0\020\036\022\034\n\030PR"
  325. "OCESS_CONTROL_OUTLET_1\020\037\022\034\n\030PROCESS_CONT"
  326. "ROL_OUTLET_2\020 \022\034\n\030PROCESS_CONTROL_OUTLET"
  327. "_3\020!\022\034\n\030PROCESS_CONTROL_OUTLET_4\020\"\022\034\n\030PR"
  328. "OCESS_CONTROL_OUTLET_5\020#\022\034\n\030PROCESS_CONT"
  329. "ROL_OUTLET_6\020$\022\034\n\030PROCESS_CONTROL_OUTLET"
  330. "_7\020%\022\034\n\030PROCESS_CONTROL_OUTLET_8\020&\022\034\n\030PR"
  331. "OCESS_CONTROL_OUTLET_9\020\'*\311\001\n\022Over_border"
  332. "_status\022\036\n\032OVER_BORDER_STATUS_UNKNOWN\020\000\022"
  333. "\035\n\031OVER_BORDER_STATUS_NORMAL\020\001\022\034\n\030OVER_B"
  334. "ORDER_STATUS_FRONT\020\002\022\033\n\027OVER_BORDER_STAT"
  335. "US_BACK\020\003\022\033\n\027OVER_BORDER_STATUS_LEFT\020\004\022\034"
  336. "\n\030OVER_BORDER_STATUS_RIGHT\020\005*\303\001\n\021Car_hei"
  337. "ght_status\022\035\n\031CAR_HEIGHT_STATUS_UNKNOWN\020"
  338. "\000\022\033\n\027CAR_HEIGHT_STATUS_SMALL\020\001\022\034\n\030CAR_HE"
  339. "IGHT_STATUS_MEDIUM\020\002\022\033\n\027CAR_HEIGHT_STATU"
  340. "S_LARGE\020\003\022\032\n\026CAR_HEIGHT_STATUS_HUGE\020\004\022\033\n"
  341. "\027CAR_HEIGHT_STATUS_FAULT\020\005*\257\001\n\023Outside_d"
  342. "oor_status\022\037\n\033OUTSIDE_DOOR_STATUS_UNKNOW"
  343. "N\020\000\022\034\n\030OUTSIDE_DOOR_STATUS_OPEN\020\001\022\035\n\031OUT"
  344. "SIDE_DOOR_STATUS_CLOSE\020\002\022\033\n\027OUTSIDE_DOOR"
  345. "_STATUS_RUN\020\003\022\035\n\031OUTSIDE_DOOR_STATUS_FAU"
  346. "LT\020\004*w\n\024Outside_door_control\022 \n\034OUTSIDE_"
  347. "DOOR_CONTROL_UNKNOWN\020\000\022\035\n\031OUTSIDE_DOOR_C"
  348. "ONTROL_OPEN\020\001\022\036\n\032OUTSIDE_DOOR_CONTROL_CL"
  349. "OSE\020\002*\224\013\n\016Process_status\022\032\n\026PROCESS_STAT"
  350. "US_UNKNOWN\020\000\022\034\n\030PROCESS_STATUS_FULL_AUTO"
  351. "\020\001\022\031\n\025PROCESS_STATUS_MANUAL\020\002\022\035\n\031PROCESS"
  352. "_STATUS_AUTO_CLOSE\020\003\022\034\n\030PROCESS_STATUS_A"
  353. "UTO_OPEN\020\004\022\033\n\027PROCESS_STATUS_TO_READY\020\005\022"
  354. "\030\n\024PROCESS_STATUS_RESET\020\007\022\027\n\023PROCESS_STA"
  355. "TUS_STOP\020\010\022\030\n\024PROCESS_STATUS_FAULT\020\t\022\032\n\026"
  356. "PROCESS_STATUS_INLET_0\020\n\022\032\n\026PROCESS_STAT"
  357. "US_INLET_1\020\013\022\032\n\026PROCESS_STATUS_INLET_2\020\014"
  358. "\022\032\n\026PROCESS_STATUS_INLET_3\020\r\022\032\n\026PROCESS_"
  359. "STATUS_INLET_4\020\016\022\032\n\026PROCESS_STATUS_INLET"
  360. "_5\020\017\022\032\n\026PROCESS_STATUS_INLET_6\020\020\022\032\n\026PROC"
  361. "ESS_STATUS_INLET_7\020\021\022\032\n\026PROCESS_STATUS_I"
  362. "NLET_8\020\022\022\032\n\026PROCESS_STATUS_INLET_9\020\023\022\033\n\027"
  363. "PROCESS_STATUS_INLET_10\020\024\022\033\n\027PROCESS_STA"
  364. "TUS_INLET_11\020\025\022\033\n\027PROCESS_STATUS_INLET_1"
  365. "2\020\026\022\033\n\027PROCESS_STATUS_INLET_13\020\027\022\033\n\027PROC"
  366. "ESS_STATUS_INLET_14\020\030\022\033\n\027PROCESS_STATUS_"
  367. "INLET_15\020\031\022\033\n\027PROCESS_STATUS_INLET_16\020\032\022"
  368. "\033\n\027PROCESS_STATUS_INLET_17\020\033\022\033\n\027PROCESS_"
  369. "STATUS_INLET_18\020\034\022\033\n\027PROCESS_STATUS_INLE"
  370. "T_19\020\035\022\033\n\027PROCESS_STATUS_OUTLET_0\020\036\022\033\n\027P"
  371. "ROCESS_STATUS_OUTLET_1\020\037\022\033\n\027PROCESS_STAT"
  372. "US_OUTLET_2\020 \022\033\n\027PROCESS_STATUS_OUTLET_3"
  373. "\020!\022\033\n\027PROCESS_STATUS_OUTLET_4\020\"\022\033\n\027PROCE"
  374. "SS_STATUS_OUTLET_5\020#\022\033\n\027PROCESS_STATUS_O"
  375. "UTLET_6\020$\022\033\n\027PROCESS_STATUS_OUTLET_7\020%\022\033"
  376. "\n\027PROCESS_STATUS_OUTLET_8\020&\022\033\n\027PROCESS_S"
  377. "TATUS_OUTLET_9\020\'\022\034\n\030PROCESS_STATUS_OUTLE"
  378. "T_10\020(\022\034\n\030PROCESS_STATUS_OUTLET_11\020)\022\034\n\030"
  379. "PROCESS_STATUS_OUTLET_12\020*\022\034\n\030PROCESS_ST"
  380. "ATUS_OUTLET_13\020+\022\034\n\030PROCESS_STATUS_OUTLE"
  381. "T_14\020,\022\034\n\030PROCESS_STATUS_OUTLET_15\020-\022\034\n\030"
  382. "PROCESS_STATUS_OUTLET_16\020.\022\034\n\030PROCESS_ST"
  383. "ATUS_OUTLET_17\020/\022\034\n\030PROCESS_STATUS_OUTLE"
  384. "T_18\0200\022\034\n\030PROCESS_STATUS_OUTLET_19\0201"
  385. };
  386. ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
  387. descriptor, 4316);
  388. ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
  389. "singlechip_msg.proto", &protobuf_RegisterTypes);
  390. ::protobuf_message_5fbase_2eproto::AddDescriptors();
  391. }
  392. void AddDescriptors() {
  393. static ::google::protobuf::internal::once_flag once;
  394. ::google::protobuf::internal::call_once(once, AddDescriptorsImpl);
  395. }
  396. // Force AddDescriptors() to be called at dynamic initialization time.
  397. struct StaticDescriptorInitializer {
  398. StaticDescriptorInitializer() {
  399. AddDescriptors();
  400. }
  401. } static_descriptor_initializer;
  402. } // namespace protobuf_singlechip_5fmsg_2eproto
  403. namespace message {
  404. const ::google::protobuf::EnumDescriptor* Process_control_descriptor() {
  405. protobuf_singlechip_5fmsg_2eproto::protobuf_AssignDescriptorsOnce();
  406. return protobuf_singlechip_5fmsg_2eproto::file_level_enum_descriptors[0];
  407. }
  408. bool Process_control_IsValid(int value) {
  409. switch (value) {
  410. case 0:
  411. case 1:
  412. case 2:
  413. case 3:
  414. case 4:
  415. case 5:
  416. case 7:
  417. case 8:
  418. case 9:
  419. case 10:
  420. case 11:
  421. case 12:
  422. case 13:
  423. case 14:
  424. case 15:
  425. case 16:
  426. case 17:
  427. case 18:
  428. case 19:
  429. case 30:
  430. case 31:
  431. case 32:
  432. case 33:
  433. case 34:
  434. case 35:
  435. case 36:
  436. case 37:
  437. case 38:
  438. case 39:
  439. return true;
  440. default:
  441. return false;
  442. }
  443. }
  444. const ::google::protobuf::EnumDescriptor* Over_border_status_descriptor() {
  445. protobuf_singlechip_5fmsg_2eproto::protobuf_AssignDescriptorsOnce();
  446. return protobuf_singlechip_5fmsg_2eproto::file_level_enum_descriptors[1];
  447. }
  448. bool Over_border_status_IsValid(int value) {
  449. switch (value) {
  450. case 0:
  451. case 1:
  452. case 2:
  453. case 3:
  454. case 4:
  455. case 5:
  456. return true;
  457. default:
  458. return false;
  459. }
  460. }
  461. const ::google::protobuf::EnumDescriptor* Car_height_status_descriptor() {
  462. protobuf_singlechip_5fmsg_2eproto::protobuf_AssignDescriptorsOnce();
  463. return protobuf_singlechip_5fmsg_2eproto::file_level_enum_descriptors[2];
  464. }
  465. bool Car_height_status_IsValid(int value) {
  466. switch (value) {
  467. case 0:
  468. case 1:
  469. case 2:
  470. case 3:
  471. case 4:
  472. case 5:
  473. return true;
  474. default:
  475. return false;
  476. }
  477. }
  478. const ::google::protobuf::EnumDescriptor* Outside_door_status_descriptor() {
  479. protobuf_singlechip_5fmsg_2eproto::protobuf_AssignDescriptorsOnce();
  480. return protobuf_singlechip_5fmsg_2eproto::file_level_enum_descriptors[3];
  481. }
  482. bool Outside_door_status_IsValid(int value) {
  483. switch (value) {
  484. case 0:
  485. case 1:
  486. case 2:
  487. case 3:
  488. case 4:
  489. return true;
  490. default:
  491. return false;
  492. }
  493. }
  494. const ::google::protobuf::EnumDescriptor* Outside_door_control_descriptor() {
  495. protobuf_singlechip_5fmsg_2eproto::protobuf_AssignDescriptorsOnce();
  496. return protobuf_singlechip_5fmsg_2eproto::file_level_enum_descriptors[4];
  497. }
  498. bool Outside_door_control_IsValid(int value) {
  499. switch (value) {
  500. case 0:
  501. case 1:
  502. case 2:
  503. return true;
  504. default:
  505. return false;
  506. }
  507. }
  508. const ::google::protobuf::EnumDescriptor* Process_status_descriptor() {
  509. protobuf_singlechip_5fmsg_2eproto::protobuf_AssignDescriptorsOnce();
  510. return protobuf_singlechip_5fmsg_2eproto::file_level_enum_descriptors[5];
  511. }
  512. bool Process_status_IsValid(int value) {
  513. switch (value) {
  514. case 0:
  515. case 1:
  516. case 2:
  517. case 3:
  518. case 4:
  519. case 5:
  520. case 7:
  521. case 8:
  522. case 9:
  523. case 10:
  524. case 11:
  525. case 12:
  526. case 13:
  527. case 14:
  528. case 15:
  529. case 16:
  530. case 17:
  531. case 18:
  532. case 19:
  533. case 20:
  534. case 21:
  535. case 22:
  536. case 23:
  537. case 24:
  538. case 25:
  539. case 26:
  540. case 27:
  541. case 28:
  542. case 29:
  543. case 30:
  544. case 31:
  545. case 32:
  546. case 33:
  547. case 34:
  548. case 35:
  549. case 36:
  550. case 37:
  551. case 38:
  552. case 39:
  553. case 40:
  554. case 41:
  555. case 42:
  556. case 43:
  557. case 44:
  558. case 45:
  559. case 46:
  560. case 47:
  561. case 48:
  562. case 49:
  563. return true;
  564. default:
  565. return false;
  566. }
  567. }
  568. // ===================================================================
  569. void InputDi::InitAsDefaultInstance() {
  570. }
  571. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  572. const int InputDi::kDi0FieldNumber;
  573. const int InputDi::kDi1FieldNumber;
  574. const int InputDi::kDi2FieldNumber;
  575. const int InputDi::kDi3FieldNumber;
  576. const int InputDi::kDi4FieldNumber;
  577. const int InputDi::kDi5FieldNumber;
  578. const int InputDi::kDi6FieldNumber;
  579. const int InputDi::kDi7FieldNumber;
  580. const int InputDi::kDi8FieldNumber;
  581. const int InputDi::kDi9FieldNumber;
  582. const int InputDi::kDi10FieldNumber;
  583. const int InputDi::kDi11FieldNumber;
  584. const int InputDi::kDi12FieldNumber;
  585. const int InputDi::kDi13FieldNumber;
  586. const int InputDi::kDi14FieldNumber;
  587. const int InputDi::kDi15FieldNumber;
  588. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  589. InputDi::InputDi()
  590. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  591. ::google::protobuf::internal::InitSCC(
  592. &protobuf_singlechip_5fmsg_2eproto::scc_info_InputDi.base);
  593. SharedCtor();
  594. // @@protoc_insertion_point(constructor:message.InputDi)
  595. }
  596. InputDi::InputDi(const InputDi& from)
  597. : ::google::protobuf::Message(),
  598. _internal_metadata_(NULL),
  599. _has_bits_(from._has_bits_) {
  600. _internal_metadata_.MergeFrom(from._internal_metadata_);
  601. ::memcpy(&di0_, &from.di0_,
  602. static_cast<size_t>(reinterpret_cast<char*>(&di15_) -
  603. reinterpret_cast<char*>(&di0_)) + sizeof(di15_));
  604. // @@protoc_insertion_point(copy_constructor:message.InputDi)
  605. }
  606. void InputDi::SharedCtor() {
  607. ::memset(&di0_, 0, static_cast<size_t>(
  608. reinterpret_cast<char*>(&di15_) -
  609. reinterpret_cast<char*>(&di0_)) + sizeof(di15_));
  610. }
  611. InputDi::~InputDi() {
  612. // @@protoc_insertion_point(destructor:message.InputDi)
  613. SharedDtor();
  614. }
  615. void InputDi::SharedDtor() {
  616. }
  617. void InputDi::SetCachedSize(int size) const {
  618. _cached_size_.Set(size);
  619. }
  620. const ::google::protobuf::Descriptor* InputDi::descriptor() {
  621. ::protobuf_singlechip_5fmsg_2eproto::protobuf_AssignDescriptorsOnce();
  622. return ::protobuf_singlechip_5fmsg_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  623. }
  624. const InputDi& InputDi::default_instance() {
  625. ::google::protobuf::internal::InitSCC(&protobuf_singlechip_5fmsg_2eproto::scc_info_InputDi.base);
  626. return *internal_default_instance();
  627. }
  628. void InputDi::Clear() {
  629. // @@protoc_insertion_point(message_clear_start:message.InputDi)
  630. ::google::protobuf::uint32 cached_has_bits = 0;
  631. // Prevent compiler warnings about cached_has_bits being unused
  632. (void) cached_has_bits;
  633. cached_has_bits = _has_bits_[0];
  634. if (cached_has_bits & 255u) {
  635. ::memset(&di0_, 0, static_cast<size_t>(
  636. reinterpret_cast<char*>(&di7_) -
  637. reinterpret_cast<char*>(&di0_)) + sizeof(di7_));
  638. }
  639. if (cached_has_bits & 65280u) {
  640. ::memset(&di8_, 0, static_cast<size_t>(
  641. reinterpret_cast<char*>(&di15_) -
  642. reinterpret_cast<char*>(&di8_)) + sizeof(di15_));
  643. }
  644. _has_bits_.Clear();
  645. _internal_metadata_.Clear();
  646. }
  647. bool InputDi::MergePartialFromCodedStream(
  648. ::google::protobuf::io::CodedInputStream* input) {
  649. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  650. ::google::protobuf::uint32 tag;
  651. // @@protoc_insertion_point(parse_start:message.InputDi)
  652. for (;;) {
  653. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
  654. tag = p.first;
  655. if (!p.second) goto handle_unusual;
  656. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  657. // optional int32 Di0 = 1;
  658. case 1: {
  659. if (static_cast< ::google::protobuf::uint8>(tag) ==
  660. static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
  661. set_has_di0();
  662. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  663. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  664. input, &di0_)));
  665. } else {
  666. goto handle_unusual;
  667. }
  668. break;
  669. }
  670. // optional int32 Di1 = 2;
  671. case 2: {
  672. if (static_cast< ::google::protobuf::uint8>(tag) ==
  673. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  674. set_has_di1();
  675. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  676. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  677. input, &di1_)));
  678. } else {
  679. goto handle_unusual;
  680. }
  681. break;
  682. }
  683. // optional int32 Di2 = 3;
  684. case 3: {
  685. if (static_cast< ::google::protobuf::uint8>(tag) ==
  686. static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
  687. set_has_di2();
  688. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  689. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  690. input, &di2_)));
  691. } else {
  692. goto handle_unusual;
  693. }
  694. break;
  695. }
  696. // optional int32 Di3 = 4;
  697. case 4: {
  698. if (static_cast< ::google::protobuf::uint8>(tag) ==
  699. static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
  700. set_has_di3();
  701. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  702. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  703. input, &di3_)));
  704. } else {
  705. goto handle_unusual;
  706. }
  707. break;
  708. }
  709. // optional int32 Di4 = 5;
  710. case 5: {
  711. if (static_cast< ::google::protobuf::uint8>(tag) ==
  712. static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
  713. set_has_di4();
  714. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  715. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  716. input, &di4_)));
  717. } else {
  718. goto handle_unusual;
  719. }
  720. break;
  721. }
  722. // optional int32 Di5 = 6;
  723. case 6: {
  724. if (static_cast< ::google::protobuf::uint8>(tag) ==
  725. static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
  726. set_has_di5();
  727. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  728. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  729. input, &di5_)));
  730. } else {
  731. goto handle_unusual;
  732. }
  733. break;
  734. }
  735. // optional int32 Di6 = 7;
  736. case 7: {
  737. if (static_cast< ::google::protobuf::uint8>(tag) ==
  738. static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
  739. set_has_di6();
  740. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  741. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  742. input, &di6_)));
  743. } else {
  744. goto handle_unusual;
  745. }
  746. break;
  747. }
  748. // optional int32 Di7 = 8;
  749. case 8: {
  750. if (static_cast< ::google::protobuf::uint8>(tag) ==
  751. static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) {
  752. set_has_di7();
  753. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  754. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  755. input, &di7_)));
  756. } else {
  757. goto handle_unusual;
  758. }
  759. break;
  760. }
  761. // optional int32 Di8 = 9;
  762. case 9: {
  763. if (static_cast< ::google::protobuf::uint8>(tag) ==
  764. static_cast< ::google::protobuf::uint8>(72u /* 72 & 0xFF */)) {
  765. set_has_di8();
  766. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  767. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  768. input, &di8_)));
  769. } else {
  770. goto handle_unusual;
  771. }
  772. break;
  773. }
  774. // optional int32 Di9 = 10;
  775. case 10: {
  776. if (static_cast< ::google::protobuf::uint8>(tag) ==
  777. static_cast< ::google::protobuf::uint8>(80u /* 80 & 0xFF */)) {
  778. set_has_di9();
  779. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  780. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  781. input, &di9_)));
  782. } else {
  783. goto handle_unusual;
  784. }
  785. break;
  786. }
  787. // optional int32 Di10 = 11;
  788. case 11: {
  789. if (static_cast< ::google::protobuf::uint8>(tag) ==
  790. static_cast< ::google::protobuf::uint8>(88u /* 88 & 0xFF */)) {
  791. set_has_di10();
  792. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  793. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  794. input, &di10_)));
  795. } else {
  796. goto handle_unusual;
  797. }
  798. break;
  799. }
  800. // optional int32 Di11 = 12;
  801. case 12: {
  802. if (static_cast< ::google::protobuf::uint8>(tag) ==
  803. static_cast< ::google::protobuf::uint8>(96u /* 96 & 0xFF */)) {
  804. set_has_di11();
  805. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  806. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  807. input, &di11_)));
  808. } else {
  809. goto handle_unusual;
  810. }
  811. break;
  812. }
  813. // optional int32 Di12 = 13;
  814. case 13: {
  815. if (static_cast< ::google::protobuf::uint8>(tag) ==
  816. static_cast< ::google::protobuf::uint8>(104u /* 104 & 0xFF */)) {
  817. set_has_di12();
  818. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  819. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  820. input, &di12_)));
  821. } else {
  822. goto handle_unusual;
  823. }
  824. break;
  825. }
  826. // optional int32 Di13 = 14;
  827. case 14: {
  828. if (static_cast< ::google::protobuf::uint8>(tag) ==
  829. static_cast< ::google::protobuf::uint8>(112u /* 112 & 0xFF */)) {
  830. set_has_di13();
  831. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  832. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  833. input, &di13_)));
  834. } else {
  835. goto handle_unusual;
  836. }
  837. break;
  838. }
  839. // optional int32 Di14 = 15;
  840. case 15: {
  841. if (static_cast< ::google::protobuf::uint8>(tag) ==
  842. static_cast< ::google::protobuf::uint8>(120u /* 120 & 0xFF */)) {
  843. set_has_di14();
  844. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  845. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  846. input, &di14_)));
  847. } else {
  848. goto handle_unusual;
  849. }
  850. break;
  851. }
  852. // optional int32 Di15 = 16;
  853. case 16: {
  854. if (static_cast< ::google::protobuf::uint8>(tag) ==
  855. static_cast< ::google::protobuf::uint8>(128u /* 128 & 0xFF */)) {
  856. set_has_di15();
  857. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  858. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  859. input, &di15_)));
  860. } else {
  861. goto handle_unusual;
  862. }
  863. break;
  864. }
  865. default: {
  866. handle_unusual:
  867. if (tag == 0) {
  868. goto success;
  869. }
  870. DO_(::google::protobuf::internal::WireFormat::SkipField(
  871. input, tag, _internal_metadata_.mutable_unknown_fields()));
  872. break;
  873. }
  874. }
  875. }
  876. success:
  877. // @@protoc_insertion_point(parse_success:message.InputDi)
  878. return true;
  879. failure:
  880. // @@protoc_insertion_point(parse_failure:message.InputDi)
  881. return false;
  882. #undef DO_
  883. }
  884. void InputDi::SerializeWithCachedSizes(
  885. ::google::protobuf::io::CodedOutputStream* output) const {
  886. // @@protoc_insertion_point(serialize_start:message.InputDi)
  887. ::google::protobuf::uint32 cached_has_bits = 0;
  888. (void) cached_has_bits;
  889. cached_has_bits = _has_bits_[0];
  890. // optional int32 Di0 = 1;
  891. if (cached_has_bits & 0x00000001u) {
  892. ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->di0(), output);
  893. }
  894. // optional int32 Di1 = 2;
  895. if (cached_has_bits & 0x00000002u) {
  896. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->di1(), output);
  897. }
  898. // optional int32 Di2 = 3;
  899. if (cached_has_bits & 0x00000004u) {
  900. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->di2(), output);
  901. }
  902. // optional int32 Di3 = 4;
  903. if (cached_has_bits & 0x00000008u) {
  904. ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->di3(), output);
  905. }
  906. // optional int32 Di4 = 5;
  907. if (cached_has_bits & 0x00000010u) {
  908. ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->di4(), output);
  909. }
  910. // optional int32 Di5 = 6;
  911. if (cached_has_bits & 0x00000020u) {
  912. ::google::protobuf::internal::WireFormatLite::WriteInt32(6, this->di5(), output);
  913. }
  914. // optional int32 Di6 = 7;
  915. if (cached_has_bits & 0x00000040u) {
  916. ::google::protobuf::internal::WireFormatLite::WriteInt32(7, this->di6(), output);
  917. }
  918. // optional int32 Di7 = 8;
  919. if (cached_has_bits & 0x00000080u) {
  920. ::google::protobuf::internal::WireFormatLite::WriteInt32(8, this->di7(), output);
  921. }
  922. // optional int32 Di8 = 9;
  923. if (cached_has_bits & 0x00000100u) {
  924. ::google::protobuf::internal::WireFormatLite::WriteInt32(9, this->di8(), output);
  925. }
  926. // optional int32 Di9 = 10;
  927. if (cached_has_bits & 0x00000200u) {
  928. ::google::protobuf::internal::WireFormatLite::WriteInt32(10, this->di9(), output);
  929. }
  930. // optional int32 Di10 = 11;
  931. if (cached_has_bits & 0x00000400u) {
  932. ::google::protobuf::internal::WireFormatLite::WriteInt32(11, this->di10(), output);
  933. }
  934. // optional int32 Di11 = 12;
  935. if (cached_has_bits & 0x00000800u) {
  936. ::google::protobuf::internal::WireFormatLite::WriteInt32(12, this->di11(), output);
  937. }
  938. // optional int32 Di12 = 13;
  939. if (cached_has_bits & 0x00001000u) {
  940. ::google::protobuf::internal::WireFormatLite::WriteInt32(13, this->di12(), output);
  941. }
  942. // optional int32 Di13 = 14;
  943. if (cached_has_bits & 0x00002000u) {
  944. ::google::protobuf::internal::WireFormatLite::WriteInt32(14, this->di13(), output);
  945. }
  946. // optional int32 Di14 = 15;
  947. if (cached_has_bits & 0x00004000u) {
  948. ::google::protobuf::internal::WireFormatLite::WriteInt32(15, this->di14(), output);
  949. }
  950. // optional int32 Di15 = 16;
  951. if (cached_has_bits & 0x00008000u) {
  952. ::google::protobuf::internal::WireFormatLite::WriteInt32(16, this->di15(), output);
  953. }
  954. if (_internal_metadata_.have_unknown_fields()) {
  955. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  956. _internal_metadata_.unknown_fields(), output);
  957. }
  958. // @@protoc_insertion_point(serialize_end:message.InputDi)
  959. }
  960. ::google::protobuf::uint8* InputDi::InternalSerializeWithCachedSizesToArray(
  961. bool deterministic, ::google::protobuf::uint8* target) const {
  962. (void)deterministic; // Unused
  963. // @@protoc_insertion_point(serialize_to_array_start:message.InputDi)
  964. ::google::protobuf::uint32 cached_has_bits = 0;
  965. (void) cached_has_bits;
  966. cached_has_bits = _has_bits_[0];
  967. // optional int32 Di0 = 1;
  968. if (cached_has_bits & 0x00000001u) {
  969. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->di0(), target);
  970. }
  971. // optional int32 Di1 = 2;
  972. if (cached_has_bits & 0x00000002u) {
  973. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->di1(), target);
  974. }
  975. // optional int32 Di2 = 3;
  976. if (cached_has_bits & 0x00000004u) {
  977. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->di2(), target);
  978. }
  979. // optional int32 Di3 = 4;
  980. if (cached_has_bits & 0x00000008u) {
  981. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->di3(), target);
  982. }
  983. // optional int32 Di4 = 5;
  984. if (cached_has_bits & 0x00000010u) {
  985. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->di4(), target);
  986. }
  987. // optional int32 Di5 = 6;
  988. if (cached_has_bits & 0x00000020u) {
  989. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(6, this->di5(), target);
  990. }
  991. // optional int32 Di6 = 7;
  992. if (cached_has_bits & 0x00000040u) {
  993. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(7, this->di6(), target);
  994. }
  995. // optional int32 Di7 = 8;
  996. if (cached_has_bits & 0x00000080u) {
  997. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(8, this->di7(), target);
  998. }
  999. // optional int32 Di8 = 9;
  1000. if (cached_has_bits & 0x00000100u) {
  1001. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(9, this->di8(), target);
  1002. }
  1003. // optional int32 Di9 = 10;
  1004. if (cached_has_bits & 0x00000200u) {
  1005. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(10, this->di9(), target);
  1006. }
  1007. // optional int32 Di10 = 11;
  1008. if (cached_has_bits & 0x00000400u) {
  1009. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(11, this->di10(), target);
  1010. }
  1011. // optional int32 Di11 = 12;
  1012. if (cached_has_bits & 0x00000800u) {
  1013. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(12, this->di11(), target);
  1014. }
  1015. // optional int32 Di12 = 13;
  1016. if (cached_has_bits & 0x00001000u) {
  1017. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(13, this->di12(), target);
  1018. }
  1019. // optional int32 Di13 = 14;
  1020. if (cached_has_bits & 0x00002000u) {
  1021. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(14, this->di13(), target);
  1022. }
  1023. // optional int32 Di14 = 15;
  1024. if (cached_has_bits & 0x00004000u) {
  1025. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(15, this->di14(), target);
  1026. }
  1027. // optional int32 Di15 = 16;
  1028. if (cached_has_bits & 0x00008000u) {
  1029. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(16, this->di15(), target);
  1030. }
  1031. if (_internal_metadata_.have_unknown_fields()) {
  1032. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1033. _internal_metadata_.unknown_fields(), target);
  1034. }
  1035. // @@protoc_insertion_point(serialize_to_array_end:message.InputDi)
  1036. return target;
  1037. }
  1038. size_t InputDi::ByteSizeLong() const {
  1039. // @@protoc_insertion_point(message_byte_size_start:message.InputDi)
  1040. size_t total_size = 0;
  1041. if (_internal_metadata_.have_unknown_fields()) {
  1042. total_size +=
  1043. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1044. _internal_metadata_.unknown_fields());
  1045. }
  1046. if (_has_bits_[0 / 32] & 255u) {
  1047. // optional int32 Di0 = 1;
  1048. if (has_di0()) {
  1049. total_size += 1 +
  1050. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1051. this->di0());
  1052. }
  1053. // optional int32 Di1 = 2;
  1054. if (has_di1()) {
  1055. total_size += 1 +
  1056. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1057. this->di1());
  1058. }
  1059. // optional int32 Di2 = 3;
  1060. if (has_di2()) {
  1061. total_size += 1 +
  1062. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1063. this->di2());
  1064. }
  1065. // optional int32 Di3 = 4;
  1066. if (has_di3()) {
  1067. total_size += 1 +
  1068. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1069. this->di3());
  1070. }
  1071. // optional int32 Di4 = 5;
  1072. if (has_di4()) {
  1073. total_size += 1 +
  1074. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1075. this->di4());
  1076. }
  1077. // optional int32 Di5 = 6;
  1078. if (has_di5()) {
  1079. total_size += 1 +
  1080. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1081. this->di5());
  1082. }
  1083. // optional int32 Di6 = 7;
  1084. if (has_di6()) {
  1085. total_size += 1 +
  1086. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1087. this->di6());
  1088. }
  1089. // optional int32 Di7 = 8;
  1090. if (has_di7()) {
  1091. total_size += 1 +
  1092. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1093. this->di7());
  1094. }
  1095. }
  1096. if (_has_bits_[8 / 32] & 65280u) {
  1097. // optional int32 Di8 = 9;
  1098. if (has_di8()) {
  1099. total_size += 1 +
  1100. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1101. this->di8());
  1102. }
  1103. // optional int32 Di9 = 10;
  1104. if (has_di9()) {
  1105. total_size += 1 +
  1106. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1107. this->di9());
  1108. }
  1109. // optional int32 Di10 = 11;
  1110. if (has_di10()) {
  1111. total_size += 1 +
  1112. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1113. this->di10());
  1114. }
  1115. // optional int32 Di11 = 12;
  1116. if (has_di11()) {
  1117. total_size += 1 +
  1118. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1119. this->di11());
  1120. }
  1121. // optional int32 Di12 = 13;
  1122. if (has_di12()) {
  1123. total_size += 1 +
  1124. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1125. this->di12());
  1126. }
  1127. // optional int32 Di13 = 14;
  1128. if (has_di13()) {
  1129. total_size += 1 +
  1130. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1131. this->di13());
  1132. }
  1133. // optional int32 Di14 = 15;
  1134. if (has_di14()) {
  1135. total_size += 1 +
  1136. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1137. this->di14());
  1138. }
  1139. // optional int32 Di15 = 16;
  1140. if (has_di15()) {
  1141. total_size += 2 +
  1142. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1143. this->di15());
  1144. }
  1145. }
  1146. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  1147. SetCachedSize(cached_size);
  1148. return total_size;
  1149. }
  1150. void InputDi::MergeFrom(const ::google::protobuf::Message& from) {
  1151. // @@protoc_insertion_point(generalized_merge_from_start:message.InputDi)
  1152. GOOGLE_DCHECK_NE(&from, this);
  1153. const InputDi* source =
  1154. ::google::protobuf::internal::DynamicCastToGenerated<const InputDi>(
  1155. &from);
  1156. if (source == NULL) {
  1157. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.InputDi)
  1158. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1159. } else {
  1160. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.InputDi)
  1161. MergeFrom(*source);
  1162. }
  1163. }
  1164. void InputDi::MergeFrom(const InputDi& from) {
  1165. // @@protoc_insertion_point(class_specific_merge_from_start:message.InputDi)
  1166. GOOGLE_DCHECK_NE(&from, this);
  1167. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1168. ::google::protobuf::uint32 cached_has_bits = 0;
  1169. (void) cached_has_bits;
  1170. cached_has_bits = from._has_bits_[0];
  1171. if (cached_has_bits & 255u) {
  1172. if (cached_has_bits & 0x00000001u) {
  1173. di0_ = from.di0_;
  1174. }
  1175. if (cached_has_bits & 0x00000002u) {
  1176. di1_ = from.di1_;
  1177. }
  1178. if (cached_has_bits & 0x00000004u) {
  1179. di2_ = from.di2_;
  1180. }
  1181. if (cached_has_bits & 0x00000008u) {
  1182. di3_ = from.di3_;
  1183. }
  1184. if (cached_has_bits & 0x00000010u) {
  1185. di4_ = from.di4_;
  1186. }
  1187. if (cached_has_bits & 0x00000020u) {
  1188. di5_ = from.di5_;
  1189. }
  1190. if (cached_has_bits & 0x00000040u) {
  1191. di6_ = from.di6_;
  1192. }
  1193. if (cached_has_bits & 0x00000080u) {
  1194. di7_ = from.di7_;
  1195. }
  1196. _has_bits_[0] |= cached_has_bits;
  1197. }
  1198. if (cached_has_bits & 65280u) {
  1199. if (cached_has_bits & 0x00000100u) {
  1200. di8_ = from.di8_;
  1201. }
  1202. if (cached_has_bits & 0x00000200u) {
  1203. di9_ = from.di9_;
  1204. }
  1205. if (cached_has_bits & 0x00000400u) {
  1206. di10_ = from.di10_;
  1207. }
  1208. if (cached_has_bits & 0x00000800u) {
  1209. di11_ = from.di11_;
  1210. }
  1211. if (cached_has_bits & 0x00001000u) {
  1212. di12_ = from.di12_;
  1213. }
  1214. if (cached_has_bits & 0x00002000u) {
  1215. di13_ = from.di13_;
  1216. }
  1217. if (cached_has_bits & 0x00004000u) {
  1218. di14_ = from.di14_;
  1219. }
  1220. if (cached_has_bits & 0x00008000u) {
  1221. di15_ = from.di15_;
  1222. }
  1223. _has_bits_[0] |= cached_has_bits;
  1224. }
  1225. }
  1226. void InputDi::CopyFrom(const ::google::protobuf::Message& from) {
  1227. // @@protoc_insertion_point(generalized_copy_from_start:message.InputDi)
  1228. if (&from == this) return;
  1229. Clear();
  1230. MergeFrom(from);
  1231. }
  1232. void InputDi::CopyFrom(const InputDi& from) {
  1233. // @@protoc_insertion_point(class_specific_copy_from_start:message.InputDi)
  1234. if (&from == this) return;
  1235. Clear();
  1236. MergeFrom(from);
  1237. }
  1238. bool InputDi::IsInitialized() const {
  1239. return true;
  1240. }
  1241. void InputDi::Swap(InputDi* other) {
  1242. if (other == this) return;
  1243. InternalSwap(other);
  1244. }
  1245. void InputDi::InternalSwap(InputDi* other) {
  1246. using std::swap;
  1247. swap(di0_, other->di0_);
  1248. swap(di1_, other->di1_);
  1249. swap(di2_, other->di2_);
  1250. swap(di3_, other->di3_);
  1251. swap(di4_, other->di4_);
  1252. swap(di5_, other->di5_);
  1253. swap(di6_, other->di6_);
  1254. swap(di7_, other->di7_);
  1255. swap(di8_, other->di8_);
  1256. swap(di9_, other->di9_);
  1257. swap(di10_, other->di10_);
  1258. swap(di11_, other->di11_);
  1259. swap(di12_, other->di12_);
  1260. swap(di13_, other->di13_);
  1261. swap(di14_, other->di14_);
  1262. swap(di15_, other->di15_);
  1263. swap(_has_bits_[0], other->_has_bits_[0]);
  1264. _internal_metadata_.Swap(&other->_internal_metadata_);
  1265. }
  1266. ::google::protobuf::Metadata InputDi::GetMetadata() const {
  1267. protobuf_singlechip_5fmsg_2eproto::protobuf_AssignDescriptorsOnce();
  1268. return ::protobuf_singlechip_5fmsg_2eproto::file_level_metadata[kIndexInFileMessages];
  1269. }
  1270. // ===================================================================
  1271. void OutputDo::InitAsDefaultInstance() {
  1272. }
  1273. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  1274. const int OutputDo::kDo0FieldNumber;
  1275. const int OutputDo::kDo1FieldNumber;
  1276. const int OutputDo::kDo2FieldNumber;
  1277. const int OutputDo::kDo3FieldNumber;
  1278. const int OutputDo::kDo4FieldNumber;
  1279. const int OutputDo::kDo5FieldNumber;
  1280. const int OutputDo::kDo6FieldNumber;
  1281. const int OutputDo::kDo7FieldNumber;
  1282. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  1283. OutputDo::OutputDo()
  1284. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  1285. ::google::protobuf::internal::InitSCC(
  1286. &protobuf_singlechip_5fmsg_2eproto::scc_info_OutputDo.base);
  1287. SharedCtor();
  1288. // @@protoc_insertion_point(constructor:message.OutputDo)
  1289. }
  1290. OutputDo::OutputDo(const OutputDo& from)
  1291. : ::google::protobuf::Message(),
  1292. _internal_metadata_(NULL),
  1293. _has_bits_(from._has_bits_) {
  1294. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1295. ::memcpy(&do0_, &from.do0_,
  1296. static_cast<size_t>(reinterpret_cast<char*>(&do7_) -
  1297. reinterpret_cast<char*>(&do0_)) + sizeof(do7_));
  1298. // @@protoc_insertion_point(copy_constructor:message.OutputDo)
  1299. }
  1300. void OutputDo::SharedCtor() {
  1301. ::memset(&do0_, 0, static_cast<size_t>(
  1302. reinterpret_cast<char*>(&do7_) -
  1303. reinterpret_cast<char*>(&do0_)) + sizeof(do7_));
  1304. }
  1305. OutputDo::~OutputDo() {
  1306. // @@protoc_insertion_point(destructor:message.OutputDo)
  1307. SharedDtor();
  1308. }
  1309. void OutputDo::SharedDtor() {
  1310. }
  1311. void OutputDo::SetCachedSize(int size) const {
  1312. _cached_size_.Set(size);
  1313. }
  1314. const ::google::protobuf::Descriptor* OutputDo::descriptor() {
  1315. ::protobuf_singlechip_5fmsg_2eproto::protobuf_AssignDescriptorsOnce();
  1316. return ::protobuf_singlechip_5fmsg_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  1317. }
  1318. const OutputDo& OutputDo::default_instance() {
  1319. ::google::protobuf::internal::InitSCC(&protobuf_singlechip_5fmsg_2eproto::scc_info_OutputDo.base);
  1320. return *internal_default_instance();
  1321. }
  1322. void OutputDo::Clear() {
  1323. // @@protoc_insertion_point(message_clear_start:message.OutputDo)
  1324. ::google::protobuf::uint32 cached_has_bits = 0;
  1325. // Prevent compiler warnings about cached_has_bits being unused
  1326. (void) cached_has_bits;
  1327. cached_has_bits = _has_bits_[0];
  1328. if (cached_has_bits & 255u) {
  1329. ::memset(&do0_, 0, static_cast<size_t>(
  1330. reinterpret_cast<char*>(&do7_) -
  1331. reinterpret_cast<char*>(&do0_)) + sizeof(do7_));
  1332. }
  1333. _has_bits_.Clear();
  1334. _internal_metadata_.Clear();
  1335. }
  1336. bool OutputDo::MergePartialFromCodedStream(
  1337. ::google::protobuf::io::CodedInputStream* input) {
  1338. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  1339. ::google::protobuf::uint32 tag;
  1340. // @@protoc_insertion_point(parse_start:message.OutputDo)
  1341. for (;;) {
  1342. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  1343. tag = p.first;
  1344. if (!p.second) goto handle_unusual;
  1345. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1346. // optional int32 Do0 = 1;
  1347. case 1: {
  1348. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1349. static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
  1350. set_has_do0();
  1351. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1352. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1353. input, &do0_)));
  1354. } else {
  1355. goto handle_unusual;
  1356. }
  1357. break;
  1358. }
  1359. // optional int32 Do1 = 2;
  1360. case 2: {
  1361. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1362. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  1363. set_has_do1();
  1364. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1365. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1366. input, &do1_)));
  1367. } else {
  1368. goto handle_unusual;
  1369. }
  1370. break;
  1371. }
  1372. // optional int32 Do2 = 3;
  1373. case 3: {
  1374. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1375. static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
  1376. set_has_do2();
  1377. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1378. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1379. input, &do2_)));
  1380. } else {
  1381. goto handle_unusual;
  1382. }
  1383. break;
  1384. }
  1385. // optional int32 Do3 = 4;
  1386. case 4: {
  1387. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1388. static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
  1389. set_has_do3();
  1390. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1391. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1392. input, &do3_)));
  1393. } else {
  1394. goto handle_unusual;
  1395. }
  1396. break;
  1397. }
  1398. // optional int32 Do4 = 5;
  1399. case 5: {
  1400. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1401. static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
  1402. set_has_do4();
  1403. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1404. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1405. input, &do4_)));
  1406. } else {
  1407. goto handle_unusual;
  1408. }
  1409. break;
  1410. }
  1411. // optional int32 Do5 = 6;
  1412. case 6: {
  1413. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1414. static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
  1415. set_has_do5();
  1416. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1417. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1418. input, &do5_)));
  1419. } else {
  1420. goto handle_unusual;
  1421. }
  1422. break;
  1423. }
  1424. // optional int32 Do6 = 7;
  1425. case 7: {
  1426. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1427. static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
  1428. set_has_do6();
  1429. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1430. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1431. input, &do6_)));
  1432. } else {
  1433. goto handle_unusual;
  1434. }
  1435. break;
  1436. }
  1437. // optional int32 Do7 = 8;
  1438. case 8: {
  1439. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1440. static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) {
  1441. set_has_do7();
  1442. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1443. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1444. input, &do7_)));
  1445. } else {
  1446. goto handle_unusual;
  1447. }
  1448. break;
  1449. }
  1450. default: {
  1451. handle_unusual:
  1452. if (tag == 0) {
  1453. goto success;
  1454. }
  1455. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1456. input, tag, _internal_metadata_.mutable_unknown_fields()));
  1457. break;
  1458. }
  1459. }
  1460. }
  1461. success:
  1462. // @@protoc_insertion_point(parse_success:message.OutputDo)
  1463. return true;
  1464. failure:
  1465. // @@protoc_insertion_point(parse_failure:message.OutputDo)
  1466. return false;
  1467. #undef DO_
  1468. }
  1469. void OutputDo::SerializeWithCachedSizes(
  1470. ::google::protobuf::io::CodedOutputStream* output) const {
  1471. // @@protoc_insertion_point(serialize_start:message.OutputDo)
  1472. ::google::protobuf::uint32 cached_has_bits = 0;
  1473. (void) cached_has_bits;
  1474. cached_has_bits = _has_bits_[0];
  1475. // optional int32 Do0 = 1;
  1476. if (cached_has_bits & 0x00000001u) {
  1477. ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->do0(), output);
  1478. }
  1479. // optional int32 Do1 = 2;
  1480. if (cached_has_bits & 0x00000002u) {
  1481. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->do1(), output);
  1482. }
  1483. // optional int32 Do2 = 3;
  1484. if (cached_has_bits & 0x00000004u) {
  1485. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->do2(), output);
  1486. }
  1487. // optional int32 Do3 = 4;
  1488. if (cached_has_bits & 0x00000008u) {
  1489. ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->do3(), output);
  1490. }
  1491. // optional int32 Do4 = 5;
  1492. if (cached_has_bits & 0x00000010u) {
  1493. ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->do4(), output);
  1494. }
  1495. // optional int32 Do5 = 6;
  1496. if (cached_has_bits & 0x00000020u) {
  1497. ::google::protobuf::internal::WireFormatLite::WriteInt32(6, this->do5(), output);
  1498. }
  1499. // optional int32 Do6 = 7;
  1500. if (cached_has_bits & 0x00000040u) {
  1501. ::google::protobuf::internal::WireFormatLite::WriteInt32(7, this->do6(), output);
  1502. }
  1503. // optional int32 Do7 = 8;
  1504. if (cached_has_bits & 0x00000080u) {
  1505. ::google::protobuf::internal::WireFormatLite::WriteInt32(8, this->do7(), output);
  1506. }
  1507. if (_internal_metadata_.have_unknown_fields()) {
  1508. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1509. _internal_metadata_.unknown_fields(), output);
  1510. }
  1511. // @@protoc_insertion_point(serialize_end:message.OutputDo)
  1512. }
  1513. ::google::protobuf::uint8* OutputDo::InternalSerializeWithCachedSizesToArray(
  1514. bool deterministic, ::google::protobuf::uint8* target) const {
  1515. (void)deterministic; // Unused
  1516. // @@protoc_insertion_point(serialize_to_array_start:message.OutputDo)
  1517. ::google::protobuf::uint32 cached_has_bits = 0;
  1518. (void) cached_has_bits;
  1519. cached_has_bits = _has_bits_[0];
  1520. // optional int32 Do0 = 1;
  1521. if (cached_has_bits & 0x00000001u) {
  1522. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->do0(), target);
  1523. }
  1524. // optional int32 Do1 = 2;
  1525. if (cached_has_bits & 0x00000002u) {
  1526. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->do1(), target);
  1527. }
  1528. // optional int32 Do2 = 3;
  1529. if (cached_has_bits & 0x00000004u) {
  1530. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->do2(), target);
  1531. }
  1532. // optional int32 Do3 = 4;
  1533. if (cached_has_bits & 0x00000008u) {
  1534. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->do3(), target);
  1535. }
  1536. // optional int32 Do4 = 5;
  1537. if (cached_has_bits & 0x00000010u) {
  1538. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->do4(), target);
  1539. }
  1540. // optional int32 Do5 = 6;
  1541. if (cached_has_bits & 0x00000020u) {
  1542. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(6, this->do5(), target);
  1543. }
  1544. // optional int32 Do6 = 7;
  1545. if (cached_has_bits & 0x00000040u) {
  1546. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(7, this->do6(), target);
  1547. }
  1548. // optional int32 Do7 = 8;
  1549. if (cached_has_bits & 0x00000080u) {
  1550. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(8, this->do7(), target);
  1551. }
  1552. if (_internal_metadata_.have_unknown_fields()) {
  1553. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1554. _internal_metadata_.unknown_fields(), target);
  1555. }
  1556. // @@protoc_insertion_point(serialize_to_array_end:message.OutputDo)
  1557. return target;
  1558. }
  1559. size_t OutputDo::ByteSizeLong() const {
  1560. // @@protoc_insertion_point(message_byte_size_start:message.OutputDo)
  1561. size_t total_size = 0;
  1562. if (_internal_metadata_.have_unknown_fields()) {
  1563. total_size +=
  1564. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1565. _internal_metadata_.unknown_fields());
  1566. }
  1567. if (_has_bits_[0 / 32] & 255u) {
  1568. // optional int32 Do0 = 1;
  1569. if (has_do0()) {
  1570. total_size += 1 +
  1571. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1572. this->do0());
  1573. }
  1574. // optional int32 Do1 = 2;
  1575. if (has_do1()) {
  1576. total_size += 1 +
  1577. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1578. this->do1());
  1579. }
  1580. // optional int32 Do2 = 3;
  1581. if (has_do2()) {
  1582. total_size += 1 +
  1583. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1584. this->do2());
  1585. }
  1586. // optional int32 Do3 = 4;
  1587. if (has_do3()) {
  1588. total_size += 1 +
  1589. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1590. this->do3());
  1591. }
  1592. // optional int32 Do4 = 5;
  1593. if (has_do4()) {
  1594. total_size += 1 +
  1595. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1596. this->do4());
  1597. }
  1598. // optional int32 Do5 = 6;
  1599. if (has_do5()) {
  1600. total_size += 1 +
  1601. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1602. this->do5());
  1603. }
  1604. // optional int32 Do6 = 7;
  1605. if (has_do6()) {
  1606. total_size += 1 +
  1607. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1608. this->do6());
  1609. }
  1610. // optional int32 Do7 = 8;
  1611. if (has_do7()) {
  1612. total_size += 1 +
  1613. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1614. this->do7());
  1615. }
  1616. }
  1617. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  1618. SetCachedSize(cached_size);
  1619. return total_size;
  1620. }
  1621. void OutputDo::MergeFrom(const ::google::protobuf::Message& from) {
  1622. // @@protoc_insertion_point(generalized_merge_from_start:message.OutputDo)
  1623. GOOGLE_DCHECK_NE(&from, this);
  1624. const OutputDo* source =
  1625. ::google::protobuf::internal::DynamicCastToGenerated<const OutputDo>(
  1626. &from);
  1627. if (source == NULL) {
  1628. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.OutputDo)
  1629. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1630. } else {
  1631. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.OutputDo)
  1632. MergeFrom(*source);
  1633. }
  1634. }
  1635. void OutputDo::MergeFrom(const OutputDo& from) {
  1636. // @@protoc_insertion_point(class_specific_merge_from_start:message.OutputDo)
  1637. GOOGLE_DCHECK_NE(&from, this);
  1638. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1639. ::google::protobuf::uint32 cached_has_bits = 0;
  1640. (void) cached_has_bits;
  1641. cached_has_bits = from._has_bits_[0];
  1642. if (cached_has_bits & 255u) {
  1643. if (cached_has_bits & 0x00000001u) {
  1644. do0_ = from.do0_;
  1645. }
  1646. if (cached_has_bits & 0x00000002u) {
  1647. do1_ = from.do1_;
  1648. }
  1649. if (cached_has_bits & 0x00000004u) {
  1650. do2_ = from.do2_;
  1651. }
  1652. if (cached_has_bits & 0x00000008u) {
  1653. do3_ = from.do3_;
  1654. }
  1655. if (cached_has_bits & 0x00000010u) {
  1656. do4_ = from.do4_;
  1657. }
  1658. if (cached_has_bits & 0x00000020u) {
  1659. do5_ = from.do5_;
  1660. }
  1661. if (cached_has_bits & 0x00000040u) {
  1662. do6_ = from.do6_;
  1663. }
  1664. if (cached_has_bits & 0x00000080u) {
  1665. do7_ = from.do7_;
  1666. }
  1667. _has_bits_[0] |= cached_has_bits;
  1668. }
  1669. }
  1670. void OutputDo::CopyFrom(const ::google::protobuf::Message& from) {
  1671. // @@protoc_insertion_point(generalized_copy_from_start:message.OutputDo)
  1672. if (&from == this) return;
  1673. Clear();
  1674. MergeFrom(from);
  1675. }
  1676. void OutputDo::CopyFrom(const OutputDo& from) {
  1677. // @@protoc_insertion_point(class_specific_copy_from_start:message.OutputDo)
  1678. if (&from == this) return;
  1679. Clear();
  1680. MergeFrom(from);
  1681. }
  1682. bool OutputDo::IsInitialized() const {
  1683. return true;
  1684. }
  1685. void OutputDo::Swap(OutputDo* other) {
  1686. if (other == this) return;
  1687. InternalSwap(other);
  1688. }
  1689. void OutputDo::InternalSwap(OutputDo* other) {
  1690. using std::swap;
  1691. swap(do0_, other->do0_);
  1692. swap(do1_, other->do1_);
  1693. swap(do2_, other->do2_);
  1694. swap(do3_, other->do3_);
  1695. swap(do4_, other->do4_);
  1696. swap(do5_, other->do5_);
  1697. swap(do6_, other->do6_);
  1698. swap(do7_, other->do7_);
  1699. swap(_has_bits_[0], other->_has_bits_[0]);
  1700. _internal_metadata_.Swap(&other->_internal_metadata_);
  1701. }
  1702. ::google::protobuf::Metadata OutputDo::GetMetadata() const {
  1703. protobuf_singlechip_5fmsg_2eproto::protobuf_AssignDescriptorsOnce();
  1704. return ::protobuf_singlechip_5fmsg_2eproto::file_level_metadata[kIndexInFileMessages];
  1705. }
  1706. // ===================================================================
  1707. void terminal_msg::InitAsDefaultInstance() {
  1708. ::message::_terminal_msg_default_instance_._instance.get_mutable()->outputdo_ = const_cast< ::message::OutputDo*>(
  1709. ::message::OutputDo::internal_default_instance());
  1710. }
  1711. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  1712. const int terminal_msg::kTerminalIDFieldNumber;
  1713. const int terminal_msg::kDispatchDirectionFieldNumber;
  1714. const int terminal_msg::kProcessControlFieldNumber;
  1715. const int terminal_msg::kOutPutDoFieldNumber;
  1716. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  1717. terminal_msg::terminal_msg()
  1718. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  1719. ::google::protobuf::internal::InitSCC(
  1720. &protobuf_singlechip_5fmsg_2eproto::scc_info_terminal_msg.base);
  1721. SharedCtor();
  1722. // @@protoc_insertion_point(constructor:message.terminal_msg)
  1723. }
  1724. terminal_msg::terminal_msg(const terminal_msg& from)
  1725. : ::google::protobuf::Message(),
  1726. _internal_metadata_(NULL),
  1727. _has_bits_(from._has_bits_) {
  1728. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1729. if (from.has_outputdo()) {
  1730. outputdo_ = new ::message::OutputDo(*from.outputdo_);
  1731. } else {
  1732. outputdo_ = NULL;
  1733. }
  1734. ::memcpy(&terminalid_, &from.terminalid_,
  1735. static_cast<size_t>(reinterpret_cast<char*>(&processcontrol_) -
  1736. reinterpret_cast<char*>(&terminalid_)) + sizeof(processcontrol_));
  1737. // @@protoc_insertion_point(copy_constructor:message.terminal_msg)
  1738. }
  1739. void terminal_msg::SharedCtor() {
  1740. ::memset(&outputdo_, 0, static_cast<size_t>(
  1741. reinterpret_cast<char*>(&processcontrol_) -
  1742. reinterpret_cast<char*>(&outputdo_)) + sizeof(processcontrol_));
  1743. }
  1744. terminal_msg::~terminal_msg() {
  1745. // @@protoc_insertion_point(destructor:message.terminal_msg)
  1746. SharedDtor();
  1747. }
  1748. void terminal_msg::SharedDtor() {
  1749. if (this != internal_default_instance()) delete outputdo_;
  1750. }
  1751. void terminal_msg::SetCachedSize(int size) const {
  1752. _cached_size_.Set(size);
  1753. }
  1754. const ::google::protobuf::Descriptor* terminal_msg::descriptor() {
  1755. ::protobuf_singlechip_5fmsg_2eproto::protobuf_AssignDescriptorsOnce();
  1756. return ::protobuf_singlechip_5fmsg_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  1757. }
  1758. const terminal_msg& terminal_msg::default_instance() {
  1759. ::google::protobuf::internal::InitSCC(&protobuf_singlechip_5fmsg_2eproto::scc_info_terminal_msg.base);
  1760. return *internal_default_instance();
  1761. }
  1762. void terminal_msg::Clear() {
  1763. // @@protoc_insertion_point(message_clear_start:message.terminal_msg)
  1764. ::google::protobuf::uint32 cached_has_bits = 0;
  1765. // Prevent compiler warnings about cached_has_bits being unused
  1766. (void) cached_has_bits;
  1767. cached_has_bits = _has_bits_[0];
  1768. if (cached_has_bits & 0x00000001u) {
  1769. GOOGLE_DCHECK(outputdo_ != NULL);
  1770. outputdo_->Clear();
  1771. }
  1772. if (cached_has_bits & 14u) {
  1773. ::memset(&terminalid_, 0, static_cast<size_t>(
  1774. reinterpret_cast<char*>(&processcontrol_) -
  1775. reinterpret_cast<char*>(&terminalid_)) + sizeof(processcontrol_));
  1776. }
  1777. _has_bits_.Clear();
  1778. _internal_metadata_.Clear();
  1779. }
  1780. bool terminal_msg::MergePartialFromCodedStream(
  1781. ::google::protobuf::io::CodedInputStream* input) {
  1782. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  1783. ::google::protobuf::uint32 tag;
  1784. // @@protoc_insertion_point(parse_start:message.terminal_msg)
  1785. for (;;) {
  1786. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  1787. tag = p.first;
  1788. if (!p.second) goto handle_unusual;
  1789. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1790. // optional int32 TerminalID = 1;
  1791. case 1: {
  1792. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1793. static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
  1794. set_has_terminalid();
  1795. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1796. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1797. input, &terminalid_)));
  1798. } else {
  1799. goto handle_unusual;
  1800. }
  1801. break;
  1802. }
  1803. // optional int32 DispatchDirection = 2;
  1804. case 2: {
  1805. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1806. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  1807. set_has_dispatchdirection();
  1808. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1809. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1810. input, &dispatchdirection_)));
  1811. } else {
  1812. goto handle_unusual;
  1813. }
  1814. break;
  1815. }
  1816. // optional int32 ProcessControl = 3;
  1817. case 3: {
  1818. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1819. static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
  1820. set_has_processcontrol();
  1821. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1822. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1823. input, &processcontrol_)));
  1824. } else {
  1825. goto handle_unusual;
  1826. }
  1827. break;
  1828. }
  1829. // optional .message.OutputDo OutPutDo = 4;
  1830. case 4: {
  1831. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1832. static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
  1833. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1834. input, mutable_outputdo()));
  1835. } else {
  1836. goto handle_unusual;
  1837. }
  1838. break;
  1839. }
  1840. default: {
  1841. handle_unusual:
  1842. if (tag == 0) {
  1843. goto success;
  1844. }
  1845. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1846. input, tag, _internal_metadata_.mutable_unknown_fields()));
  1847. break;
  1848. }
  1849. }
  1850. }
  1851. success:
  1852. // @@protoc_insertion_point(parse_success:message.terminal_msg)
  1853. return true;
  1854. failure:
  1855. // @@protoc_insertion_point(parse_failure:message.terminal_msg)
  1856. return false;
  1857. #undef DO_
  1858. }
  1859. void terminal_msg::SerializeWithCachedSizes(
  1860. ::google::protobuf::io::CodedOutputStream* output) const {
  1861. // @@protoc_insertion_point(serialize_start:message.terminal_msg)
  1862. ::google::protobuf::uint32 cached_has_bits = 0;
  1863. (void) cached_has_bits;
  1864. cached_has_bits = _has_bits_[0];
  1865. // optional int32 TerminalID = 1;
  1866. if (cached_has_bits & 0x00000002u) {
  1867. ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->terminalid(), output);
  1868. }
  1869. // optional int32 DispatchDirection = 2;
  1870. if (cached_has_bits & 0x00000004u) {
  1871. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->dispatchdirection(), output);
  1872. }
  1873. // optional int32 ProcessControl = 3;
  1874. if (cached_has_bits & 0x00000008u) {
  1875. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->processcontrol(), output);
  1876. }
  1877. // optional .message.OutputDo OutPutDo = 4;
  1878. if (cached_has_bits & 0x00000001u) {
  1879. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1880. 4, this->_internal_outputdo(), output);
  1881. }
  1882. if (_internal_metadata_.have_unknown_fields()) {
  1883. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1884. _internal_metadata_.unknown_fields(), output);
  1885. }
  1886. // @@protoc_insertion_point(serialize_end:message.terminal_msg)
  1887. }
  1888. ::google::protobuf::uint8* terminal_msg::InternalSerializeWithCachedSizesToArray(
  1889. bool deterministic, ::google::protobuf::uint8* target) const {
  1890. (void)deterministic; // Unused
  1891. // @@protoc_insertion_point(serialize_to_array_start:message.terminal_msg)
  1892. ::google::protobuf::uint32 cached_has_bits = 0;
  1893. (void) cached_has_bits;
  1894. cached_has_bits = _has_bits_[0];
  1895. // optional int32 TerminalID = 1;
  1896. if (cached_has_bits & 0x00000002u) {
  1897. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->terminalid(), target);
  1898. }
  1899. // optional int32 DispatchDirection = 2;
  1900. if (cached_has_bits & 0x00000004u) {
  1901. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->dispatchdirection(), target);
  1902. }
  1903. // optional int32 ProcessControl = 3;
  1904. if (cached_has_bits & 0x00000008u) {
  1905. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->processcontrol(), target);
  1906. }
  1907. // optional .message.OutputDo OutPutDo = 4;
  1908. if (cached_has_bits & 0x00000001u) {
  1909. target = ::google::protobuf::internal::WireFormatLite::
  1910. InternalWriteMessageToArray(
  1911. 4, this->_internal_outputdo(), deterministic, target);
  1912. }
  1913. if (_internal_metadata_.have_unknown_fields()) {
  1914. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1915. _internal_metadata_.unknown_fields(), target);
  1916. }
  1917. // @@protoc_insertion_point(serialize_to_array_end:message.terminal_msg)
  1918. return target;
  1919. }
  1920. size_t terminal_msg::ByteSizeLong() const {
  1921. // @@protoc_insertion_point(message_byte_size_start:message.terminal_msg)
  1922. size_t total_size = 0;
  1923. if (_internal_metadata_.have_unknown_fields()) {
  1924. total_size +=
  1925. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1926. _internal_metadata_.unknown_fields());
  1927. }
  1928. if (_has_bits_[0 / 32] & 15u) {
  1929. // optional .message.OutputDo OutPutDo = 4;
  1930. if (has_outputdo()) {
  1931. total_size += 1 +
  1932. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1933. *outputdo_);
  1934. }
  1935. // optional int32 TerminalID = 1;
  1936. if (has_terminalid()) {
  1937. total_size += 1 +
  1938. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1939. this->terminalid());
  1940. }
  1941. // optional int32 DispatchDirection = 2;
  1942. if (has_dispatchdirection()) {
  1943. total_size += 1 +
  1944. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1945. this->dispatchdirection());
  1946. }
  1947. // optional int32 ProcessControl = 3;
  1948. if (has_processcontrol()) {
  1949. total_size += 1 +
  1950. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1951. this->processcontrol());
  1952. }
  1953. }
  1954. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  1955. SetCachedSize(cached_size);
  1956. return total_size;
  1957. }
  1958. void terminal_msg::MergeFrom(const ::google::protobuf::Message& from) {
  1959. // @@protoc_insertion_point(generalized_merge_from_start:message.terminal_msg)
  1960. GOOGLE_DCHECK_NE(&from, this);
  1961. const terminal_msg* source =
  1962. ::google::protobuf::internal::DynamicCastToGenerated<const terminal_msg>(
  1963. &from);
  1964. if (source == NULL) {
  1965. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.terminal_msg)
  1966. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1967. } else {
  1968. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.terminal_msg)
  1969. MergeFrom(*source);
  1970. }
  1971. }
  1972. void terminal_msg::MergeFrom(const terminal_msg& from) {
  1973. // @@protoc_insertion_point(class_specific_merge_from_start:message.terminal_msg)
  1974. GOOGLE_DCHECK_NE(&from, this);
  1975. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1976. ::google::protobuf::uint32 cached_has_bits = 0;
  1977. (void) cached_has_bits;
  1978. cached_has_bits = from._has_bits_[0];
  1979. if (cached_has_bits & 15u) {
  1980. if (cached_has_bits & 0x00000001u) {
  1981. mutable_outputdo()->::message::OutputDo::MergeFrom(from.outputdo());
  1982. }
  1983. if (cached_has_bits & 0x00000002u) {
  1984. terminalid_ = from.terminalid_;
  1985. }
  1986. if (cached_has_bits & 0x00000004u) {
  1987. dispatchdirection_ = from.dispatchdirection_;
  1988. }
  1989. if (cached_has_bits & 0x00000008u) {
  1990. processcontrol_ = from.processcontrol_;
  1991. }
  1992. _has_bits_[0] |= cached_has_bits;
  1993. }
  1994. }
  1995. void terminal_msg::CopyFrom(const ::google::protobuf::Message& from) {
  1996. // @@protoc_insertion_point(generalized_copy_from_start:message.terminal_msg)
  1997. if (&from == this) return;
  1998. Clear();
  1999. MergeFrom(from);
  2000. }
  2001. void terminal_msg::CopyFrom(const terminal_msg& from) {
  2002. // @@protoc_insertion_point(class_specific_copy_from_start:message.terminal_msg)
  2003. if (&from == this) return;
  2004. Clear();
  2005. MergeFrom(from);
  2006. }
  2007. bool terminal_msg::IsInitialized() const {
  2008. return true;
  2009. }
  2010. void terminal_msg::Swap(terminal_msg* other) {
  2011. if (other == this) return;
  2012. InternalSwap(other);
  2013. }
  2014. void terminal_msg::InternalSwap(terminal_msg* other) {
  2015. using std::swap;
  2016. swap(outputdo_, other->outputdo_);
  2017. swap(terminalid_, other->terminalid_);
  2018. swap(dispatchdirection_, other->dispatchdirection_);
  2019. swap(processcontrol_, other->processcontrol_);
  2020. swap(_has_bits_[0], other->_has_bits_[0]);
  2021. _internal_metadata_.Swap(&other->_internal_metadata_);
  2022. }
  2023. ::google::protobuf::Metadata terminal_msg::GetMetadata() const {
  2024. protobuf_singlechip_5fmsg_2eproto::protobuf_AssignDescriptorsOnce();
  2025. return ::protobuf_singlechip_5fmsg_2eproto::file_level_metadata[kIndexInFileMessages];
  2026. }
  2027. // ===================================================================
  2028. void Singlechip_data::InitAsDefaultInstance() {
  2029. ::message::_Singlechip_data_default_instance_._instance.get_mutable()->inputdi_ = const_cast< ::message::InputDi*>(
  2030. ::message::InputDi::internal_default_instance());
  2031. }
  2032. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  2033. const int Singlechip_data::kTerminalIDFieldNumber;
  2034. const int Singlechip_data::kDispatchDirectionFieldNumber;
  2035. const int Singlechip_data::kProcessStatusFieldNumber;
  2036. const int Singlechip_data::kInPutDiFieldNumber;
  2037. const int Singlechip_data::kResetFlagFieldNumber;
  2038. const int Singlechip_data::kProcessControlFieldNumber;
  2039. const int Singlechip_data::kInsideExistenceFlagFieldNumber;
  2040. const int Singlechip_data::kOverBorderStatusFieldNumber;
  2041. const int Singlechip_data::kCarHeightStatusCurrentFieldNumber;
  2042. const int Singlechip_data::kCarHeightStatusPassingFieldNumber;
  2043. const int Singlechip_data::kStopFlagFieldNumber;
  2044. const int Singlechip_data::kOutsideDoorStatusFieldNumber;
  2045. const int Singlechip_data::kOutsideDoorControlFieldNumber;
  2046. const int Singlechip_data::kDispatchFinishFlagFieldNumber;
  2047. const int Singlechip_data::kOutsideExistenceFlagFieldNumber;
  2048. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  2049. Singlechip_data::Singlechip_data()
  2050. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  2051. ::google::protobuf::internal::InitSCC(
  2052. &protobuf_singlechip_5fmsg_2eproto::scc_info_Singlechip_data.base);
  2053. SharedCtor();
  2054. // @@protoc_insertion_point(constructor:message.Singlechip_data)
  2055. }
  2056. Singlechip_data::Singlechip_data(const Singlechip_data& from)
  2057. : ::google::protobuf::Message(),
  2058. _internal_metadata_(NULL),
  2059. _has_bits_(from._has_bits_) {
  2060. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2061. if (from.has_inputdi()) {
  2062. inputdi_ = new ::message::InputDi(*from.inputdi_);
  2063. } else {
  2064. inputdi_ = NULL;
  2065. }
  2066. ::memcpy(&terminalid_, &from.terminalid_,
  2067. static_cast<size_t>(reinterpret_cast<char*>(&outsideexistenceflag_) -
  2068. reinterpret_cast<char*>(&terminalid_)) + sizeof(outsideexistenceflag_));
  2069. // @@protoc_insertion_point(copy_constructor:message.Singlechip_data)
  2070. }
  2071. void Singlechip_data::SharedCtor() {
  2072. ::memset(&inputdi_, 0, static_cast<size_t>(
  2073. reinterpret_cast<char*>(&outsideexistenceflag_) -
  2074. reinterpret_cast<char*>(&inputdi_)) + sizeof(outsideexistenceflag_));
  2075. }
  2076. Singlechip_data::~Singlechip_data() {
  2077. // @@protoc_insertion_point(destructor:message.Singlechip_data)
  2078. SharedDtor();
  2079. }
  2080. void Singlechip_data::SharedDtor() {
  2081. if (this != internal_default_instance()) delete inputdi_;
  2082. }
  2083. void Singlechip_data::SetCachedSize(int size) const {
  2084. _cached_size_.Set(size);
  2085. }
  2086. const ::google::protobuf::Descriptor* Singlechip_data::descriptor() {
  2087. ::protobuf_singlechip_5fmsg_2eproto::protobuf_AssignDescriptorsOnce();
  2088. return ::protobuf_singlechip_5fmsg_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  2089. }
  2090. const Singlechip_data& Singlechip_data::default_instance() {
  2091. ::google::protobuf::internal::InitSCC(&protobuf_singlechip_5fmsg_2eproto::scc_info_Singlechip_data.base);
  2092. return *internal_default_instance();
  2093. }
  2094. void Singlechip_data::Clear() {
  2095. // @@protoc_insertion_point(message_clear_start:message.Singlechip_data)
  2096. ::google::protobuf::uint32 cached_has_bits = 0;
  2097. // Prevent compiler warnings about cached_has_bits being unused
  2098. (void) cached_has_bits;
  2099. cached_has_bits = _has_bits_[0];
  2100. if (cached_has_bits & 0x00000001u) {
  2101. GOOGLE_DCHECK(inputdi_ != NULL);
  2102. inputdi_->Clear();
  2103. }
  2104. if (cached_has_bits & 254u) {
  2105. ::memset(&terminalid_, 0, static_cast<size_t>(
  2106. reinterpret_cast<char*>(&overborderstatus_) -
  2107. reinterpret_cast<char*>(&terminalid_)) + sizeof(overborderstatus_));
  2108. }
  2109. if (cached_has_bits & 32512u) {
  2110. ::memset(&carheightstatuscurrent_, 0, static_cast<size_t>(
  2111. reinterpret_cast<char*>(&outsideexistenceflag_) -
  2112. reinterpret_cast<char*>(&carheightstatuscurrent_)) + sizeof(outsideexistenceflag_));
  2113. }
  2114. _has_bits_.Clear();
  2115. _internal_metadata_.Clear();
  2116. }
  2117. bool Singlechip_data::MergePartialFromCodedStream(
  2118. ::google::protobuf::io::CodedInputStream* input) {
  2119. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  2120. ::google::protobuf::uint32 tag;
  2121. // @@protoc_insertion_point(parse_start:message.Singlechip_data)
  2122. for (;;) {
  2123. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  2124. tag = p.first;
  2125. if (!p.second) goto handle_unusual;
  2126. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  2127. // optional int32 TerminalID = 1;
  2128. case 1: {
  2129. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2130. static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
  2131. set_has_terminalid();
  2132. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2133. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2134. input, &terminalid_)));
  2135. } else {
  2136. goto handle_unusual;
  2137. }
  2138. break;
  2139. }
  2140. // optional int32 DispatchDirection = 2;
  2141. case 2: {
  2142. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2143. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  2144. set_has_dispatchdirection();
  2145. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2146. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2147. input, &dispatchdirection_)));
  2148. } else {
  2149. goto handle_unusual;
  2150. }
  2151. break;
  2152. }
  2153. // optional .message.Process_status ProcessStatus = 3;
  2154. case 3: {
  2155. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2156. static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
  2157. int value;
  2158. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2159. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  2160. input, &value)));
  2161. if (::message::Process_status_IsValid(value)) {
  2162. set_processstatus(static_cast< ::message::Process_status >(value));
  2163. } else {
  2164. mutable_unknown_fields()->AddVarint(
  2165. 3, static_cast< ::google::protobuf::uint64>(value));
  2166. }
  2167. } else {
  2168. goto handle_unusual;
  2169. }
  2170. break;
  2171. }
  2172. // optional .message.InputDi InPutDi = 4;
  2173. case 4: {
  2174. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2175. static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
  2176. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  2177. input, mutable_inputdi()));
  2178. } else {
  2179. goto handle_unusual;
  2180. }
  2181. break;
  2182. }
  2183. // optional int32 ResetFlag = 5;
  2184. case 5: {
  2185. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2186. static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
  2187. set_has_resetflag();
  2188. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2189. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2190. input, &resetflag_)));
  2191. } else {
  2192. goto handle_unusual;
  2193. }
  2194. break;
  2195. }
  2196. // optional .message.Process_control ProcessControl = 6;
  2197. case 6: {
  2198. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2199. static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
  2200. int value;
  2201. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2202. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  2203. input, &value)));
  2204. if (::message::Process_control_IsValid(value)) {
  2205. set_processcontrol(static_cast< ::message::Process_control >(value));
  2206. } else {
  2207. mutable_unknown_fields()->AddVarint(
  2208. 6, static_cast< ::google::protobuf::uint64>(value));
  2209. }
  2210. } else {
  2211. goto handle_unusual;
  2212. }
  2213. break;
  2214. }
  2215. // optional int32 InsideExistenceFlag = 7;
  2216. case 7: {
  2217. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2218. static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
  2219. set_has_insideexistenceflag();
  2220. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2221. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2222. input, &insideexistenceflag_)));
  2223. } else {
  2224. goto handle_unusual;
  2225. }
  2226. break;
  2227. }
  2228. // optional .message.Over_border_status OverBorderStatus = 8;
  2229. case 8: {
  2230. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2231. static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) {
  2232. int value;
  2233. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2234. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  2235. input, &value)));
  2236. if (::message::Over_border_status_IsValid(value)) {
  2237. set_overborderstatus(static_cast< ::message::Over_border_status >(value));
  2238. } else {
  2239. mutable_unknown_fields()->AddVarint(
  2240. 8, static_cast< ::google::protobuf::uint64>(value));
  2241. }
  2242. } else {
  2243. goto handle_unusual;
  2244. }
  2245. break;
  2246. }
  2247. // optional .message.Car_height_status CarHeightStatusCurrent = 9;
  2248. case 9: {
  2249. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2250. static_cast< ::google::protobuf::uint8>(72u /* 72 & 0xFF */)) {
  2251. int value;
  2252. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2253. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  2254. input, &value)));
  2255. if (::message::Car_height_status_IsValid(value)) {
  2256. set_carheightstatuscurrent(static_cast< ::message::Car_height_status >(value));
  2257. } else {
  2258. mutable_unknown_fields()->AddVarint(
  2259. 9, static_cast< ::google::protobuf::uint64>(value));
  2260. }
  2261. } else {
  2262. goto handle_unusual;
  2263. }
  2264. break;
  2265. }
  2266. // optional .message.Car_height_status CarHeightStatusPassing = 10;
  2267. case 10: {
  2268. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2269. static_cast< ::google::protobuf::uint8>(80u /* 80 & 0xFF */)) {
  2270. int value;
  2271. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2272. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  2273. input, &value)));
  2274. if (::message::Car_height_status_IsValid(value)) {
  2275. set_carheightstatuspassing(static_cast< ::message::Car_height_status >(value));
  2276. } else {
  2277. mutable_unknown_fields()->AddVarint(
  2278. 10, static_cast< ::google::protobuf::uint64>(value));
  2279. }
  2280. } else {
  2281. goto handle_unusual;
  2282. }
  2283. break;
  2284. }
  2285. // optional int32 StopFlag = 11;
  2286. case 11: {
  2287. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2288. static_cast< ::google::protobuf::uint8>(88u /* 88 & 0xFF */)) {
  2289. set_has_stopflag();
  2290. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2291. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2292. input, &stopflag_)));
  2293. } else {
  2294. goto handle_unusual;
  2295. }
  2296. break;
  2297. }
  2298. // optional .message.Outside_door_status OutsideDoorStatus = 12;
  2299. case 12: {
  2300. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2301. static_cast< ::google::protobuf::uint8>(96u /* 96 & 0xFF */)) {
  2302. int value;
  2303. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2304. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  2305. input, &value)));
  2306. if (::message::Outside_door_status_IsValid(value)) {
  2307. set_outsidedoorstatus(static_cast< ::message::Outside_door_status >(value));
  2308. } else {
  2309. mutable_unknown_fields()->AddVarint(
  2310. 12, static_cast< ::google::protobuf::uint64>(value));
  2311. }
  2312. } else {
  2313. goto handle_unusual;
  2314. }
  2315. break;
  2316. }
  2317. // optional .message.Outside_door_control OutsideDoorControl = 13;
  2318. case 13: {
  2319. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2320. static_cast< ::google::protobuf::uint8>(104u /* 104 & 0xFF */)) {
  2321. int value;
  2322. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2323. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  2324. input, &value)));
  2325. if (::message::Outside_door_control_IsValid(value)) {
  2326. set_outsidedoorcontrol(static_cast< ::message::Outside_door_control >(value));
  2327. } else {
  2328. mutable_unknown_fields()->AddVarint(
  2329. 13, static_cast< ::google::protobuf::uint64>(value));
  2330. }
  2331. } else {
  2332. goto handle_unusual;
  2333. }
  2334. break;
  2335. }
  2336. // optional int32 DispatchFinishFlag = 14;
  2337. case 14: {
  2338. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2339. static_cast< ::google::protobuf::uint8>(112u /* 112 & 0xFF */)) {
  2340. set_has_dispatchfinishflag();
  2341. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2342. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2343. input, &dispatchfinishflag_)));
  2344. } else {
  2345. goto handle_unusual;
  2346. }
  2347. break;
  2348. }
  2349. // optional int32 OutsideExistenceFlag = 15;
  2350. case 15: {
  2351. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2352. static_cast< ::google::protobuf::uint8>(120u /* 120 & 0xFF */)) {
  2353. set_has_outsideexistenceflag();
  2354. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2355. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2356. input, &outsideexistenceflag_)));
  2357. } else {
  2358. goto handle_unusual;
  2359. }
  2360. break;
  2361. }
  2362. default: {
  2363. handle_unusual:
  2364. if (tag == 0) {
  2365. goto success;
  2366. }
  2367. DO_(::google::protobuf::internal::WireFormat::SkipField(
  2368. input, tag, _internal_metadata_.mutable_unknown_fields()));
  2369. break;
  2370. }
  2371. }
  2372. }
  2373. success:
  2374. // @@protoc_insertion_point(parse_success:message.Singlechip_data)
  2375. return true;
  2376. failure:
  2377. // @@protoc_insertion_point(parse_failure:message.Singlechip_data)
  2378. return false;
  2379. #undef DO_
  2380. }
  2381. void Singlechip_data::SerializeWithCachedSizes(
  2382. ::google::protobuf::io::CodedOutputStream* output) const {
  2383. // @@protoc_insertion_point(serialize_start:message.Singlechip_data)
  2384. ::google::protobuf::uint32 cached_has_bits = 0;
  2385. (void) cached_has_bits;
  2386. cached_has_bits = _has_bits_[0];
  2387. // optional int32 TerminalID = 1;
  2388. if (cached_has_bits & 0x00000002u) {
  2389. ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->terminalid(), output);
  2390. }
  2391. // optional int32 DispatchDirection = 2;
  2392. if (cached_has_bits & 0x00000004u) {
  2393. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->dispatchdirection(), output);
  2394. }
  2395. // optional .message.Process_status ProcessStatus = 3;
  2396. if (cached_has_bits & 0x00000008u) {
  2397. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  2398. 3, this->processstatus(), output);
  2399. }
  2400. // optional .message.InputDi InPutDi = 4;
  2401. if (cached_has_bits & 0x00000001u) {
  2402. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2403. 4, this->_internal_inputdi(), output);
  2404. }
  2405. // optional int32 ResetFlag = 5;
  2406. if (cached_has_bits & 0x00000010u) {
  2407. ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->resetflag(), output);
  2408. }
  2409. // optional .message.Process_control ProcessControl = 6;
  2410. if (cached_has_bits & 0x00000020u) {
  2411. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  2412. 6, this->processcontrol(), output);
  2413. }
  2414. // optional int32 InsideExistenceFlag = 7;
  2415. if (cached_has_bits & 0x00000040u) {
  2416. ::google::protobuf::internal::WireFormatLite::WriteInt32(7, this->insideexistenceflag(), output);
  2417. }
  2418. // optional .message.Over_border_status OverBorderStatus = 8;
  2419. if (cached_has_bits & 0x00000080u) {
  2420. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  2421. 8, this->overborderstatus(), output);
  2422. }
  2423. // optional .message.Car_height_status CarHeightStatusCurrent = 9;
  2424. if (cached_has_bits & 0x00000100u) {
  2425. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  2426. 9, this->carheightstatuscurrent(), output);
  2427. }
  2428. // optional .message.Car_height_status CarHeightStatusPassing = 10;
  2429. if (cached_has_bits & 0x00000200u) {
  2430. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  2431. 10, this->carheightstatuspassing(), output);
  2432. }
  2433. // optional int32 StopFlag = 11;
  2434. if (cached_has_bits & 0x00000400u) {
  2435. ::google::protobuf::internal::WireFormatLite::WriteInt32(11, this->stopflag(), output);
  2436. }
  2437. // optional .message.Outside_door_status OutsideDoorStatus = 12;
  2438. if (cached_has_bits & 0x00000800u) {
  2439. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  2440. 12, this->outsidedoorstatus(), output);
  2441. }
  2442. // optional .message.Outside_door_control OutsideDoorControl = 13;
  2443. if (cached_has_bits & 0x00001000u) {
  2444. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  2445. 13, this->outsidedoorcontrol(), output);
  2446. }
  2447. // optional int32 DispatchFinishFlag = 14;
  2448. if (cached_has_bits & 0x00002000u) {
  2449. ::google::protobuf::internal::WireFormatLite::WriteInt32(14, this->dispatchfinishflag(), output);
  2450. }
  2451. // optional int32 OutsideExistenceFlag = 15;
  2452. if (cached_has_bits & 0x00004000u) {
  2453. ::google::protobuf::internal::WireFormatLite::WriteInt32(15, this->outsideexistenceflag(), output);
  2454. }
  2455. if (_internal_metadata_.have_unknown_fields()) {
  2456. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  2457. _internal_metadata_.unknown_fields(), output);
  2458. }
  2459. // @@protoc_insertion_point(serialize_end:message.Singlechip_data)
  2460. }
  2461. ::google::protobuf::uint8* Singlechip_data::InternalSerializeWithCachedSizesToArray(
  2462. bool deterministic, ::google::protobuf::uint8* target) const {
  2463. (void)deterministic; // Unused
  2464. // @@protoc_insertion_point(serialize_to_array_start:message.Singlechip_data)
  2465. ::google::protobuf::uint32 cached_has_bits = 0;
  2466. (void) cached_has_bits;
  2467. cached_has_bits = _has_bits_[0];
  2468. // optional int32 TerminalID = 1;
  2469. if (cached_has_bits & 0x00000002u) {
  2470. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->terminalid(), target);
  2471. }
  2472. // optional int32 DispatchDirection = 2;
  2473. if (cached_has_bits & 0x00000004u) {
  2474. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->dispatchdirection(), target);
  2475. }
  2476. // optional .message.Process_status ProcessStatus = 3;
  2477. if (cached_has_bits & 0x00000008u) {
  2478. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  2479. 3, this->processstatus(), target);
  2480. }
  2481. // optional .message.InputDi InPutDi = 4;
  2482. if (cached_has_bits & 0x00000001u) {
  2483. target = ::google::protobuf::internal::WireFormatLite::
  2484. InternalWriteMessageToArray(
  2485. 4, this->_internal_inputdi(), deterministic, target);
  2486. }
  2487. // optional int32 ResetFlag = 5;
  2488. if (cached_has_bits & 0x00000010u) {
  2489. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->resetflag(), target);
  2490. }
  2491. // optional .message.Process_control ProcessControl = 6;
  2492. if (cached_has_bits & 0x00000020u) {
  2493. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  2494. 6, this->processcontrol(), target);
  2495. }
  2496. // optional int32 InsideExistenceFlag = 7;
  2497. if (cached_has_bits & 0x00000040u) {
  2498. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(7, this->insideexistenceflag(), target);
  2499. }
  2500. // optional .message.Over_border_status OverBorderStatus = 8;
  2501. if (cached_has_bits & 0x00000080u) {
  2502. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  2503. 8, this->overborderstatus(), target);
  2504. }
  2505. // optional .message.Car_height_status CarHeightStatusCurrent = 9;
  2506. if (cached_has_bits & 0x00000100u) {
  2507. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  2508. 9, this->carheightstatuscurrent(), target);
  2509. }
  2510. // optional .message.Car_height_status CarHeightStatusPassing = 10;
  2511. if (cached_has_bits & 0x00000200u) {
  2512. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  2513. 10, this->carheightstatuspassing(), target);
  2514. }
  2515. // optional int32 StopFlag = 11;
  2516. if (cached_has_bits & 0x00000400u) {
  2517. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(11, this->stopflag(), target);
  2518. }
  2519. // optional .message.Outside_door_status OutsideDoorStatus = 12;
  2520. if (cached_has_bits & 0x00000800u) {
  2521. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  2522. 12, this->outsidedoorstatus(), target);
  2523. }
  2524. // optional .message.Outside_door_control OutsideDoorControl = 13;
  2525. if (cached_has_bits & 0x00001000u) {
  2526. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  2527. 13, this->outsidedoorcontrol(), target);
  2528. }
  2529. // optional int32 DispatchFinishFlag = 14;
  2530. if (cached_has_bits & 0x00002000u) {
  2531. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(14, this->dispatchfinishflag(), target);
  2532. }
  2533. // optional int32 OutsideExistenceFlag = 15;
  2534. if (cached_has_bits & 0x00004000u) {
  2535. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(15, this->outsideexistenceflag(), target);
  2536. }
  2537. if (_internal_metadata_.have_unknown_fields()) {
  2538. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  2539. _internal_metadata_.unknown_fields(), target);
  2540. }
  2541. // @@protoc_insertion_point(serialize_to_array_end:message.Singlechip_data)
  2542. return target;
  2543. }
  2544. size_t Singlechip_data::ByteSizeLong() const {
  2545. // @@protoc_insertion_point(message_byte_size_start:message.Singlechip_data)
  2546. size_t total_size = 0;
  2547. if (_internal_metadata_.have_unknown_fields()) {
  2548. total_size +=
  2549. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  2550. _internal_metadata_.unknown_fields());
  2551. }
  2552. if (_has_bits_[0 / 32] & 255u) {
  2553. // optional .message.InputDi InPutDi = 4;
  2554. if (has_inputdi()) {
  2555. total_size += 1 +
  2556. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2557. *inputdi_);
  2558. }
  2559. // optional int32 TerminalID = 1;
  2560. if (has_terminalid()) {
  2561. total_size += 1 +
  2562. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2563. this->terminalid());
  2564. }
  2565. // optional int32 DispatchDirection = 2;
  2566. if (has_dispatchdirection()) {
  2567. total_size += 1 +
  2568. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2569. this->dispatchdirection());
  2570. }
  2571. // optional .message.Process_status ProcessStatus = 3;
  2572. if (has_processstatus()) {
  2573. total_size += 1 +
  2574. ::google::protobuf::internal::WireFormatLite::EnumSize(this->processstatus());
  2575. }
  2576. // optional int32 ResetFlag = 5;
  2577. if (has_resetflag()) {
  2578. total_size += 1 +
  2579. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2580. this->resetflag());
  2581. }
  2582. // optional .message.Process_control ProcessControl = 6;
  2583. if (has_processcontrol()) {
  2584. total_size += 1 +
  2585. ::google::protobuf::internal::WireFormatLite::EnumSize(this->processcontrol());
  2586. }
  2587. // optional int32 InsideExistenceFlag = 7;
  2588. if (has_insideexistenceflag()) {
  2589. total_size += 1 +
  2590. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2591. this->insideexistenceflag());
  2592. }
  2593. // optional .message.Over_border_status OverBorderStatus = 8;
  2594. if (has_overborderstatus()) {
  2595. total_size += 1 +
  2596. ::google::protobuf::internal::WireFormatLite::EnumSize(this->overborderstatus());
  2597. }
  2598. }
  2599. if (_has_bits_[8 / 32] & 32512u) {
  2600. // optional .message.Car_height_status CarHeightStatusCurrent = 9;
  2601. if (has_carheightstatuscurrent()) {
  2602. total_size += 1 +
  2603. ::google::protobuf::internal::WireFormatLite::EnumSize(this->carheightstatuscurrent());
  2604. }
  2605. // optional .message.Car_height_status CarHeightStatusPassing = 10;
  2606. if (has_carheightstatuspassing()) {
  2607. total_size += 1 +
  2608. ::google::protobuf::internal::WireFormatLite::EnumSize(this->carheightstatuspassing());
  2609. }
  2610. // optional int32 StopFlag = 11;
  2611. if (has_stopflag()) {
  2612. total_size += 1 +
  2613. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2614. this->stopflag());
  2615. }
  2616. // optional .message.Outside_door_status OutsideDoorStatus = 12;
  2617. if (has_outsidedoorstatus()) {
  2618. total_size += 1 +
  2619. ::google::protobuf::internal::WireFormatLite::EnumSize(this->outsidedoorstatus());
  2620. }
  2621. // optional .message.Outside_door_control OutsideDoorControl = 13;
  2622. if (has_outsidedoorcontrol()) {
  2623. total_size += 1 +
  2624. ::google::protobuf::internal::WireFormatLite::EnumSize(this->outsidedoorcontrol());
  2625. }
  2626. // optional int32 DispatchFinishFlag = 14;
  2627. if (has_dispatchfinishflag()) {
  2628. total_size += 1 +
  2629. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2630. this->dispatchfinishflag());
  2631. }
  2632. // optional int32 OutsideExistenceFlag = 15;
  2633. if (has_outsideexistenceflag()) {
  2634. total_size += 1 +
  2635. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2636. this->outsideexistenceflag());
  2637. }
  2638. }
  2639. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  2640. SetCachedSize(cached_size);
  2641. return total_size;
  2642. }
  2643. void Singlechip_data::MergeFrom(const ::google::protobuf::Message& from) {
  2644. // @@protoc_insertion_point(generalized_merge_from_start:message.Singlechip_data)
  2645. GOOGLE_DCHECK_NE(&from, this);
  2646. const Singlechip_data* source =
  2647. ::google::protobuf::internal::DynamicCastToGenerated<const Singlechip_data>(
  2648. &from);
  2649. if (source == NULL) {
  2650. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Singlechip_data)
  2651. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  2652. } else {
  2653. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Singlechip_data)
  2654. MergeFrom(*source);
  2655. }
  2656. }
  2657. void Singlechip_data::MergeFrom(const Singlechip_data& from) {
  2658. // @@protoc_insertion_point(class_specific_merge_from_start:message.Singlechip_data)
  2659. GOOGLE_DCHECK_NE(&from, this);
  2660. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2661. ::google::protobuf::uint32 cached_has_bits = 0;
  2662. (void) cached_has_bits;
  2663. cached_has_bits = from._has_bits_[0];
  2664. if (cached_has_bits & 255u) {
  2665. if (cached_has_bits & 0x00000001u) {
  2666. mutable_inputdi()->::message::InputDi::MergeFrom(from.inputdi());
  2667. }
  2668. if (cached_has_bits & 0x00000002u) {
  2669. terminalid_ = from.terminalid_;
  2670. }
  2671. if (cached_has_bits & 0x00000004u) {
  2672. dispatchdirection_ = from.dispatchdirection_;
  2673. }
  2674. if (cached_has_bits & 0x00000008u) {
  2675. processstatus_ = from.processstatus_;
  2676. }
  2677. if (cached_has_bits & 0x00000010u) {
  2678. resetflag_ = from.resetflag_;
  2679. }
  2680. if (cached_has_bits & 0x00000020u) {
  2681. processcontrol_ = from.processcontrol_;
  2682. }
  2683. if (cached_has_bits & 0x00000040u) {
  2684. insideexistenceflag_ = from.insideexistenceflag_;
  2685. }
  2686. if (cached_has_bits & 0x00000080u) {
  2687. overborderstatus_ = from.overborderstatus_;
  2688. }
  2689. _has_bits_[0] |= cached_has_bits;
  2690. }
  2691. if (cached_has_bits & 32512u) {
  2692. if (cached_has_bits & 0x00000100u) {
  2693. carheightstatuscurrent_ = from.carheightstatuscurrent_;
  2694. }
  2695. if (cached_has_bits & 0x00000200u) {
  2696. carheightstatuspassing_ = from.carheightstatuspassing_;
  2697. }
  2698. if (cached_has_bits & 0x00000400u) {
  2699. stopflag_ = from.stopflag_;
  2700. }
  2701. if (cached_has_bits & 0x00000800u) {
  2702. outsidedoorstatus_ = from.outsidedoorstatus_;
  2703. }
  2704. if (cached_has_bits & 0x00001000u) {
  2705. outsidedoorcontrol_ = from.outsidedoorcontrol_;
  2706. }
  2707. if (cached_has_bits & 0x00002000u) {
  2708. dispatchfinishflag_ = from.dispatchfinishflag_;
  2709. }
  2710. if (cached_has_bits & 0x00004000u) {
  2711. outsideexistenceflag_ = from.outsideexistenceflag_;
  2712. }
  2713. _has_bits_[0] |= cached_has_bits;
  2714. }
  2715. }
  2716. void Singlechip_data::CopyFrom(const ::google::protobuf::Message& from) {
  2717. // @@protoc_insertion_point(generalized_copy_from_start:message.Singlechip_data)
  2718. if (&from == this) return;
  2719. Clear();
  2720. MergeFrom(from);
  2721. }
  2722. void Singlechip_data::CopyFrom(const Singlechip_data& from) {
  2723. // @@protoc_insertion_point(class_specific_copy_from_start:message.Singlechip_data)
  2724. if (&from == this) return;
  2725. Clear();
  2726. MergeFrom(from);
  2727. }
  2728. bool Singlechip_data::IsInitialized() const {
  2729. return true;
  2730. }
  2731. void Singlechip_data::Swap(Singlechip_data* other) {
  2732. if (other == this) return;
  2733. InternalSwap(other);
  2734. }
  2735. void Singlechip_data::InternalSwap(Singlechip_data* other) {
  2736. using std::swap;
  2737. swap(inputdi_, other->inputdi_);
  2738. swap(terminalid_, other->terminalid_);
  2739. swap(dispatchdirection_, other->dispatchdirection_);
  2740. swap(processstatus_, other->processstatus_);
  2741. swap(resetflag_, other->resetflag_);
  2742. swap(processcontrol_, other->processcontrol_);
  2743. swap(insideexistenceflag_, other->insideexistenceflag_);
  2744. swap(overborderstatus_, other->overborderstatus_);
  2745. swap(carheightstatuscurrent_, other->carheightstatuscurrent_);
  2746. swap(carheightstatuspassing_, other->carheightstatuspassing_);
  2747. swap(stopflag_, other->stopflag_);
  2748. swap(outsidedoorstatus_, other->outsidedoorstatus_);
  2749. swap(outsidedoorcontrol_, other->outsidedoorcontrol_);
  2750. swap(dispatchfinishflag_, other->dispatchfinishflag_);
  2751. swap(outsideexistenceflag_, other->outsideexistenceflag_);
  2752. swap(_has_bits_[0], other->_has_bits_[0]);
  2753. _internal_metadata_.Swap(&other->_internal_metadata_);
  2754. }
  2755. ::google::protobuf::Metadata Singlechip_data::GetMetadata() const {
  2756. protobuf_singlechip_5fmsg_2eproto::protobuf_AssignDescriptorsOnce();
  2757. return ::protobuf_singlechip_5fmsg_2eproto::file_level_metadata[kIndexInFileMessages];
  2758. }
  2759. // ===================================================================
  2760. void Terminal_status_msg::InitAsDefaultInstance() {
  2761. ::message::_Terminal_status_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>(
  2762. ::message::Base_info::internal_default_instance());
  2763. ::message::_Terminal_status_msg_default_instance_._instance.get_mutable()->id_struct_ = const_cast< ::message::Id_struct*>(
  2764. ::message::Id_struct::internal_default_instance());
  2765. ::message::_Terminal_status_msg_default_instance_._instance.get_mutable()->singlechipdata_ = const_cast< ::message::Singlechip_data*>(
  2766. ::message::Singlechip_data::internal_default_instance());
  2767. }
  2768. void Terminal_status_msg::clear_base_info() {
  2769. if (base_info_ != NULL) base_info_->Clear();
  2770. clear_has_base_info();
  2771. }
  2772. void Terminal_status_msg::clear_id_struct() {
  2773. if (id_struct_ != NULL) id_struct_->Clear();
  2774. clear_has_id_struct();
  2775. }
  2776. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  2777. const int Terminal_status_msg::kBaseInfoFieldNumber;
  2778. const int Terminal_status_msg::kIdStructFieldNumber;
  2779. const int Terminal_status_msg::kSinglechipDataFieldNumber;
  2780. const int Terminal_status_msg::kSinglechipValidityFieldNumber;
  2781. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  2782. Terminal_status_msg::Terminal_status_msg()
  2783. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  2784. ::google::protobuf::internal::InitSCC(
  2785. &protobuf_singlechip_5fmsg_2eproto::scc_info_Terminal_status_msg.base);
  2786. SharedCtor();
  2787. // @@protoc_insertion_point(constructor:message.Terminal_status_msg)
  2788. }
  2789. Terminal_status_msg::Terminal_status_msg(const Terminal_status_msg& from)
  2790. : ::google::protobuf::Message(),
  2791. _internal_metadata_(NULL),
  2792. _has_bits_(from._has_bits_) {
  2793. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2794. if (from.has_base_info()) {
  2795. base_info_ = new ::message::Base_info(*from.base_info_);
  2796. } else {
  2797. base_info_ = NULL;
  2798. }
  2799. if (from.has_id_struct()) {
  2800. id_struct_ = new ::message::Id_struct(*from.id_struct_);
  2801. } else {
  2802. id_struct_ = NULL;
  2803. }
  2804. if (from.has_singlechipdata()) {
  2805. singlechipdata_ = new ::message::Singlechip_data(*from.singlechipdata_);
  2806. } else {
  2807. singlechipdata_ = NULL;
  2808. }
  2809. singlechip_validity_ = from.singlechip_validity_;
  2810. // @@protoc_insertion_point(copy_constructor:message.Terminal_status_msg)
  2811. }
  2812. void Terminal_status_msg::SharedCtor() {
  2813. ::memset(&base_info_, 0, static_cast<size_t>(
  2814. reinterpret_cast<char*>(&singlechip_validity_) -
  2815. reinterpret_cast<char*>(&base_info_)) + sizeof(singlechip_validity_));
  2816. }
  2817. Terminal_status_msg::~Terminal_status_msg() {
  2818. // @@protoc_insertion_point(destructor:message.Terminal_status_msg)
  2819. SharedDtor();
  2820. }
  2821. void Terminal_status_msg::SharedDtor() {
  2822. if (this != internal_default_instance()) delete base_info_;
  2823. if (this != internal_default_instance()) delete id_struct_;
  2824. if (this != internal_default_instance()) delete singlechipdata_;
  2825. }
  2826. void Terminal_status_msg::SetCachedSize(int size) const {
  2827. _cached_size_.Set(size);
  2828. }
  2829. const ::google::protobuf::Descriptor* Terminal_status_msg::descriptor() {
  2830. ::protobuf_singlechip_5fmsg_2eproto::protobuf_AssignDescriptorsOnce();
  2831. return ::protobuf_singlechip_5fmsg_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  2832. }
  2833. const Terminal_status_msg& Terminal_status_msg::default_instance() {
  2834. ::google::protobuf::internal::InitSCC(&protobuf_singlechip_5fmsg_2eproto::scc_info_Terminal_status_msg.base);
  2835. return *internal_default_instance();
  2836. }
  2837. void Terminal_status_msg::Clear() {
  2838. // @@protoc_insertion_point(message_clear_start:message.Terminal_status_msg)
  2839. ::google::protobuf::uint32 cached_has_bits = 0;
  2840. // Prevent compiler warnings about cached_has_bits being unused
  2841. (void) cached_has_bits;
  2842. cached_has_bits = _has_bits_[0];
  2843. if (cached_has_bits & 7u) {
  2844. if (cached_has_bits & 0x00000001u) {
  2845. GOOGLE_DCHECK(base_info_ != NULL);
  2846. base_info_->Clear();
  2847. }
  2848. if (cached_has_bits & 0x00000002u) {
  2849. GOOGLE_DCHECK(id_struct_ != NULL);
  2850. id_struct_->Clear();
  2851. }
  2852. if (cached_has_bits & 0x00000004u) {
  2853. GOOGLE_DCHECK(singlechipdata_ != NULL);
  2854. singlechipdata_->Clear();
  2855. }
  2856. }
  2857. singlechip_validity_ = false;
  2858. _has_bits_.Clear();
  2859. _internal_metadata_.Clear();
  2860. }
  2861. bool Terminal_status_msg::MergePartialFromCodedStream(
  2862. ::google::protobuf::io::CodedInputStream* input) {
  2863. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  2864. ::google::protobuf::uint32 tag;
  2865. // @@protoc_insertion_point(parse_start:message.Terminal_status_msg)
  2866. for (;;) {
  2867. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  2868. tag = p.first;
  2869. if (!p.second) goto handle_unusual;
  2870. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  2871. // required .message.Base_info base_info = 1;
  2872. case 1: {
  2873. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2874. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  2875. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  2876. input, mutable_base_info()));
  2877. } else {
  2878. goto handle_unusual;
  2879. }
  2880. break;
  2881. }
  2882. // optional .message.Id_struct id_struct = 2;
  2883. case 2: {
  2884. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2885. static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
  2886. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  2887. input, mutable_id_struct()));
  2888. } else {
  2889. goto handle_unusual;
  2890. }
  2891. break;
  2892. }
  2893. // optional .message.Singlechip_data singlechipData = 3;
  2894. case 3: {
  2895. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2896. static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
  2897. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  2898. input, mutable_singlechipdata()));
  2899. } else {
  2900. goto handle_unusual;
  2901. }
  2902. break;
  2903. }
  2904. // optional bool singlechip_validity = 4;
  2905. case 4: {
  2906. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2907. static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
  2908. set_has_singlechip_validity();
  2909. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2910. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  2911. input, &singlechip_validity_)));
  2912. } else {
  2913. goto handle_unusual;
  2914. }
  2915. break;
  2916. }
  2917. default: {
  2918. handle_unusual:
  2919. if (tag == 0) {
  2920. goto success;
  2921. }
  2922. DO_(::google::protobuf::internal::WireFormat::SkipField(
  2923. input, tag, _internal_metadata_.mutable_unknown_fields()));
  2924. break;
  2925. }
  2926. }
  2927. }
  2928. success:
  2929. // @@protoc_insertion_point(parse_success:message.Terminal_status_msg)
  2930. return true;
  2931. failure:
  2932. // @@protoc_insertion_point(parse_failure:message.Terminal_status_msg)
  2933. return false;
  2934. #undef DO_
  2935. }
  2936. void Terminal_status_msg::SerializeWithCachedSizes(
  2937. ::google::protobuf::io::CodedOutputStream* output) const {
  2938. // @@protoc_insertion_point(serialize_start:message.Terminal_status_msg)
  2939. ::google::protobuf::uint32 cached_has_bits = 0;
  2940. (void) cached_has_bits;
  2941. cached_has_bits = _has_bits_[0];
  2942. // required .message.Base_info base_info = 1;
  2943. if (cached_has_bits & 0x00000001u) {
  2944. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2945. 1, this->_internal_base_info(), output);
  2946. }
  2947. // optional .message.Id_struct id_struct = 2;
  2948. if (cached_has_bits & 0x00000002u) {
  2949. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2950. 2, this->_internal_id_struct(), output);
  2951. }
  2952. // optional .message.Singlechip_data singlechipData = 3;
  2953. if (cached_has_bits & 0x00000004u) {
  2954. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2955. 3, this->_internal_singlechipdata(), output);
  2956. }
  2957. // optional bool singlechip_validity = 4;
  2958. if (cached_has_bits & 0x00000008u) {
  2959. ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->singlechip_validity(), output);
  2960. }
  2961. if (_internal_metadata_.have_unknown_fields()) {
  2962. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  2963. _internal_metadata_.unknown_fields(), output);
  2964. }
  2965. // @@protoc_insertion_point(serialize_end:message.Terminal_status_msg)
  2966. }
  2967. ::google::protobuf::uint8* Terminal_status_msg::InternalSerializeWithCachedSizesToArray(
  2968. bool deterministic, ::google::protobuf::uint8* target) const {
  2969. (void)deterministic; // Unused
  2970. // @@protoc_insertion_point(serialize_to_array_start:message.Terminal_status_msg)
  2971. ::google::protobuf::uint32 cached_has_bits = 0;
  2972. (void) cached_has_bits;
  2973. cached_has_bits = _has_bits_[0];
  2974. // required .message.Base_info base_info = 1;
  2975. if (cached_has_bits & 0x00000001u) {
  2976. target = ::google::protobuf::internal::WireFormatLite::
  2977. InternalWriteMessageToArray(
  2978. 1, this->_internal_base_info(), deterministic, target);
  2979. }
  2980. // optional .message.Id_struct id_struct = 2;
  2981. if (cached_has_bits & 0x00000002u) {
  2982. target = ::google::protobuf::internal::WireFormatLite::
  2983. InternalWriteMessageToArray(
  2984. 2, this->_internal_id_struct(), deterministic, target);
  2985. }
  2986. // optional .message.Singlechip_data singlechipData = 3;
  2987. if (cached_has_bits & 0x00000004u) {
  2988. target = ::google::protobuf::internal::WireFormatLite::
  2989. InternalWriteMessageToArray(
  2990. 3, this->_internal_singlechipdata(), deterministic, target);
  2991. }
  2992. // optional bool singlechip_validity = 4;
  2993. if (cached_has_bits & 0x00000008u) {
  2994. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->singlechip_validity(), target);
  2995. }
  2996. if (_internal_metadata_.have_unknown_fields()) {
  2997. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  2998. _internal_metadata_.unknown_fields(), target);
  2999. }
  3000. // @@protoc_insertion_point(serialize_to_array_end:message.Terminal_status_msg)
  3001. return target;
  3002. }
  3003. size_t Terminal_status_msg::ByteSizeLong() const {
  3004. // @@protoc_insertion_point(message_byte_size_start:message.Terminal_status_msg)
  3005. size_t total_size = 0;
  3006. if (_internal_metadata_.have_unknown_fields()) {
  3007. total_size +=
  3008. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  3009. _internal_metadata_.unknown_fields());
  3010. }
  3011. // required .message.Base_info base_info = 1;
  3012. if (has_base_info()) {
  3013. total_size += 1 +
  3014. ::google::protobuf::internal::WireFormatLite::MessageSize(
  3015. *base_info_);
  3016. }
  3017. if (_has_bits_[0 / 32] & 14u) {
  3018. // optional .message.Id_struct id_struct = 2;
  3019. if (has_id_struct()) {
  3020. total_size += 1 +
  3021. ::google::protobuf::internal::WireFormatLite::MessageSize(
  3022. *id_struct_);
  3023. }
  3024. // optional .message.Singlechip_data singlechipData = 3;
  3025. if (has_singlechipdata()) {
  3026. total_size += 1 +
  3027. ::google::protobuf::internal::WireFormatLite::MessageSize(
  3028. *singlechipdata_);
  3029. }
  3030. // optional bool singlechip_validity = 4;
  3031. if (has_singlechip_validity()) {
  3032. total_size += 1 + 1;
  3033. }
  3034. }
  3035. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  3036. SetCachedSize(cached_size);
  3037. return total_size;
  3038. }
  3039. void Terminal_status_msg::MergeFrom(const ::google::protobuf::Message& from) {
  3040. // @@protoc_insertion_point(generalized_merge_from_start:message.Terminal_status_msg)
  3041. GOOGLE_DCHECK_NE(&from, this);
  3042. const Terminal_status_msg* source =
  3043. ::google::protobuf::internal::DynamicCastToGenerated<const Terminal_status_msg>(
  3044. &from);
  3045. if (source == NULL) {
  3046. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Terminal_status_msg)
  3047. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  3048. } else {
  3049. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Terminal_status_msg)
  3050. MergeFrom(*source);
  3051. }
  3052. }
  3053. void Terminal_status_msg::MergeFrom(const Terminal_status_msg& from) {
  3054. // @@protoc_insertion_point(class_specific_merge_from_start:message.Terminal_status_msg)
  3055. GOOGLE_DCHECK_NE(&from, this);
  3056. _internal_metadata_.MergeFrom(from._internal_metadata_);
  3057. ::google::protobuf::uint32 cached_has_bits = 0;
  3058. (void) cached_has_bits;
  3059. cached_has_bits = from._has_bits_[0];
  3060. if (cached_has_bits & 15u) {
  3061. if (cached_has_bits & 0x00000001u) {
  3062. mutable_base_info()->::message::Base_info::MergeFrom(from.base_info());
  3063. }
  3064. if (cached_has_bits & 0x00000002u) {
  3065. mutable_id_struct()->::message::Id_struct::MergeFrom(from.id_struct());
  3066. }
  3067. if (cached_has_bits & 0x00000004u) {
  3068. mutable_singlechipdata()->::message::Singlechip_data::MergeFrom(from.singlechipdata());
  3069. }
  3070. if (cached_has_bits & 0x00000008u) {
  3071. singlechip_validity_ = from.singlechip_validity_;
  3072. }
  3073. _has_bits_[0] |= cached_has_bits;
  3074. }
  3075. }
  3076. void Terminal_status_msg::CopyFrom(const ::google::protobuf::Message& from) {
  3077. // @@protoc_insertion_point(generalized_copy_from_start:message.Terminal_status_msg)
  3078. if (&from == this) return;
  3079. Clear();
  3080. MergeFrom(from);
  3081. }
  3082. void Terminal_status_msg::CopyFrom(const Terminal_status_msg& from) {
  3083. // @@protoc_insertion_point(class_specific_copy_from_start:message.Terminal_status_msg)
  3084. if (&from == this) return;
  3085. Clear();
  3086. MergeFrom(from);
  3087. }
  3088. bool Terminal_status_msg::IsInitialized() const {
  3089. if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
  3090. if (has_base_info()) {
  3091. if (!this->base_info_->IsInitialized()) return false;
  3092. }
  3093. return true;
  3094. }
  3095. void Terminal_status_msg::Swap(Terminal_status_msg* other) {
  3096. if (other == this) return;
  3097. InternalSwap(other);
  3098. }
  3099. void Terminal_status_msg::InternalSwap(Terminal_status_msg* other) {
  3100. using std::swap;
  3101. swap(base_info_, other->base_info_);
  3102. swap(id_struct_, other->id_struct_);
  3103. swap(singlechipdata_, other->singlechipdata_);
  3104. swap(singlechip_validity_, other->singlechip_validity_);
  3105. swap(_has_bits_[0], other->_has_bits_[0]);
  3106. _internal_metadata_.Swap(&other->_internal_metadata_);
  3107. }
  3108. ::google::protobuf::Metadata Terminal_status_msg::GetMetadata() const {
  3109. protobuf_singlechip_5fmsg_2eproto::protobuf_AssignDescriptorsOnce();
  3110. return ::protobuf_singlechip_5fmsg_2eproto::file_level_metadata[kIndexInFileMessages];
  3111. }
  3112. // @@protoc_insertion_point(namespace_scope)
  3113. } // namespace message
  3114. namespace google {
  3115. namespace protobuf {
  3116. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::message::InputDi* Arena::CreateMaybeMessage< ::message::InputDi >(Arena* arena) {
  3117. return Arena::CreateInternal< ::message::InputDi >(arena);
  3118. }
  3119. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::message::OutputDo* Arena::CreateMaybeMessage< ::message::OutputDo >(Arena* arena) {
  3120. return Arena::CreateInternal< ::message::OutputDo >(arena);
  3121. }
  3122. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::message::terminal_msg* Arena::CreateMaybeMessage< ::message::terminal_msg >(Arena* arena) {
  3123. return Arena::CreateInternal< ::message::terminal_msg >(arena);
  3124. }
  3125. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::message::Singlechip_data* Arena::CreateMaybeMessage< ::message::Singlechip_data >(Arena* arena) {
  3126. return Arena::CreateInternal< ::message::Singlechip_data >(arena);
  3127. }
  3128. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::message::Terminal_status_msg* Arena::CreateMaybeMessage< ::message::Terminal_status_msg >(Arena* arena) {
  3129. return Arena::CreateInternal< ::message::Terminal_status_msg >(arena);
  3130. }
  3131. } // namespace protobuf
  3132. } // namespace google
  3133. // @@protoc_insertion_point(global_scope)