singlechip_msg.pb.cc 123 KB

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