singlechip_msg.pb.cc 124 KB

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