singlechip_msg.pb.cc 123 KB

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