dispatch_message.pb.cc 191 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: dispatch_message.proto
  3. #include "dispatch_message.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 Dispatch_terminal_status_msgDefaultTypeInternal {
  21. public:
  22. ::google::protobuf::internal::ExplicitlyConstructed<Dispatch_terminal_status_msg>
  23. _instance;
  24. } _Dispatch_terminal_status_msg_default_instance_;
  25. class Dispatch_request_msgDefaultTypeInternal {
  26. public:
  27. ::google::protobuf::internal::ExplicitlyConstructed<Dispatch_request_msg>
  28. _instance;
  29. } _Dispatch_request_msg_default_instance_;
  30. class Dispatch_response_msgDefaultTypeInternal {
  31. public:
  32. ::google::protobuf::internal::ExplicitlyConstructed<Dispatch_response_msg>
  33. _instance;
  34. } _Dispatch_response_msg_default_instance_;
  35. class Catcher_dataDefaultTypeInternal {
  36. public:
  37. ::google::protobuf::internal::ExplicitlyConstructed<Catcher_data>
  38. _instance;
  39. } _Catcher_data_default_instance_;
  40. class Carrier_dataDefaultTypeInternal {
  41. public:
  42. ::google::protobuf::internal::ExplicitlyConstructed<Carrier_data>
  43. _instance;
  44. } _Carrier_data_default_instance_;
  45. class Dispatch_manager_status_msgDefaultTypeInternal {
  46. public:
  47. ::google::protobuf::internal::ExplicitlyConstructed<Dispatch_manager_status_msg>
  48. _instance;
  49. } _Dispatch_manager_status_msg_default_instance_;
  50. class Dispatch_manager_data_msgDefaultTypeInternal {
  51. public:
  52. ::google::protobuf::internal::ExplicitlyConstructed<Dispatch_manager_data_msg>
  53. _instance;
  54. } _Dispatch_manager_data_msg_default_instance_;
  55. } // namespace message
  56. namespace protobuf_dispatch_5fmessage_2eproto {
  57. void InitDefaultsDispatch_terminal_status_msgImpl() {
  58. GOOGLE_PROTOBUF_VERIFY_VERSION;
  59. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  60. ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
  61. #else
  62. ::google::protobuf::internal::InitProtobufDefaults();
  63. #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  64. protobuf_message_5fbase_2eproto::InitDefaultsBase_info();
  65. {
  66. void* ptr = &::message::_Dispatch_terminal_status_msg_default_instance_;
  67. new (ptr) ::message::Dispatch_terminal_status_msg();
  68. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  69. }
  70. ::message::Dispatch_terminal_status_msg::InitAsDefaultInstance();
  71. }
  72. void InitDefaultsDispatch_terminal_status_msg() {
  73. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  74. ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsDispatch_terminal_status_msgImpl);
  75. }
  76. void InitDefaultsDispatch_request_msgImpl() {
  77. GOOGLE_PROTOBUF_VERIFY_VERSION;
  78. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  79. ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
  80. #else
  81. ::google::protobuf::internal::InitProtobufDefaults();
  82. #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  83. protobuf_message_5fbase_2eproto::InitDefaultsBase_info();
  84. protobuf_message_5fbase_2eproto::InitDefaultsParkspace_info();
  85. protobuf_message_5fbase_2eproto::InitDefaultsLocate_information();
  86. {
  87. void* ptr = &::message::_Dispatch_request_msg_default_instance_;
  88. new (ptr) ::message::Dispatch_request_msg();
  89. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  90. }
  91. ::message::Dispatch_request_msg::InitAsDefaultInstance();
  92. }
  93. void InitDefaultsDispatch_request_msg() {
  94. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  95. ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsDispatch_request_msgImpl);
  96. }
  97. void InitDefaultsDispatch_response_msgImpl() {
  98. GOOGLE_PROTOBUF_VERIFY_VERSION;
  99. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  100. ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
  101. #else
  102. ::google::protobuf::internal::InitProtobufDefaults();
  103. #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  104. protobuf_message_5fbase_2eproto::InitDefaultsBase_info();
  105. protobuf_message_5fbase_2eproto::InitDefaultsError_manager();
  106. {
  107. void* ptr = &::message::_Dispatch_response_msg_default_instance_;
  108. new (ptr) ::message::Dispatch_response_msg();
  109. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  110. }
  111. ::message::Dispatch_response_msg::InitAsDefaultInstance();
  112. }
  113. void InitDefaultsDispatch_response_msg() {
  114. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  115. ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsDispatch_response_msgImpl);
  116. }
  117. void InitDefaultsCatcher_dataImpl() {
  118. GOOGLE_PROTOBUF_VERIFY_VERSION;
  119. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  120. ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
  121. #else
  122. ::google::protobuf::internal::InitProtobufDefaults();
  123. #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  124. {
  125. void* ptr = &::message::_Catcher_data_default_instance_;
  126. new (ptr) ::message::Catcher_data();
  127. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  128. }
  129. ::message::Catcher_data::InitAsDefaultInstance();
  130. }
  131. void InitDefaultsCatcher_data() {
  132. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  133. ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsCatcher_dataImpl);
  134. }
  135. void InitDefaultsCarrier_dataImpl() {
  136. GOOGLE_PROTOBUF_VERIFY_VERSION;
  137. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  138. ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
  139. #else
  140. ::google::protobuf::internal::InitProtobufDefaults();
  141. #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  142. {
  143. void* ptr = &::message::_Carrier_data_default_instance_;
  144. new (ptr) ::message::Carrier_data();
  145. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  146. }
  147. ::message::Carrier_data::InitAsDefaultInstance();
  148. }
  149. void InitDefaultsCarrier_data() {
  150. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  151. ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsCarrier_dataImpl);
  152. }
  153. void InitDefaultsDispatch_manager_status_msgImpl() {
  154. GOOGLE_PROTOBUF_VERIFY_VERSION;
  155. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  156. ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
  157. #else
  158. ::google::protobuf::internal::InitProtobufDefaults();
  159. #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  160. protobuf_message_5fbase_2eproto::InitDefaultsBase_info();
  161. protobuf_dispatch_5fmessage_2eproto::InitDefaultsCatcher_data();
  162. protobuf_dispatch_5fmessage_2eproto::InitDefaultsCarrier_data();
  163. {
  164. void* ptr = &::message::_Dispatch_manager_status_msg_default_instance_;
  165. new (ptr) ::message::Dispatch_manager_status_msg();
  166. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  167. }
  168. ::message::Dispatch_manager_status_msg::InitAsDefaultInstance();
  169. }
  170. void InitDefaultsDispatch_manager_status_msg() {
  171. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  172. ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsDispatch_manager_status_msgImpl);
  173. }
  174. void InitDefaultsDispatch_manager_data_msgImpl() {
  175. GOOGLE_PROTOBUF_VERIFY_VERSION;
  176. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  177. ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
  178. #else
  179. ::google::protobuf::internal::InitProtobufDefaults();
  180. #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  181. {
  182. void* ptr = &::message::_Dispatch_manager_data_msg_default_instance_;
  183. new (ptr) ::message::Dispatch_manager_data_msg();
  184. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  185. }
  186. ::message::Dispatch_manager_data_msg::InitAsDefaultInstance();
  187. }
  188. void InitDefaultsDispatch_manager_data_msg() {
  189. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  190. ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsDispatch_manager_data_msgImpl);
  191. }
  192. ::google::protobuf::Metadata file_level_metadata[7];
  193. const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[15];
  194. const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  195. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_terminal_status_msg, _has_bits_),
  196. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_terminal_status_msg, _internal_metadata_),
  197. ~0u, // no _extensions_
  198. ~0u, // no _oneof_case_
  199. ~0u, // no _weak_field_map_
  200. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_terminal_status_msg, base_info_),
  201. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_terminal_status_msg, terminal_id_),
  202. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_terminal_status_msg, terminal_status_),
  203. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_terminal_status_msg, passageway_direction_),
  204. 0,
  205. 1,
  206. 2,
  207. 3,
  208. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_request_msg, _has_bits_),
  209. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_request_msg, _internal_metadata_),
  210. ~0u, // no _extensions_
  211. ~0u, // no _oneof_case_
  212. ~0u, // no _weak_field_map_
  213. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_request_msg, base_info_),
  214. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_request_msg, command_key_),
  215. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_request_msg, dispatch_motion_direction_),
  216. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_request_msg, terminal_id_),
  217. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_request_msg, parkspace_info_),
  218. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_request_msg, locate_information_),
  219. 1,
  220. 0,
  221. 4,
  222. 5,
  223. 2,
  224. 3,
  225. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_response_msg, _has_bits_),
  226. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_response_msg, _internal_metadata_),
  227. ~0u, // no _extensions_
  228. ~0u, // no _oneof_case_
  229. ~0u, // no _weak_field_map_
  230. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_response_msg, base_info_),
  231. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_response_msg, command_key_),
  232. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_response_msg, error_manager_),
  233. 1,
  234. 0,
  235. 2,
  236. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Catcher_data, _has_bits_),
  237. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Catcher_data, _internal_metadata_),
  238. ~0u, // no _extensions_
  239. ~0u, // no _oneof_case_
  240. ~0u, // no _weak_field_map_
  241. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Catcher_data, dispatch_device_type_),
  242. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Catcher_data, dispatch_device_status_),
  243. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Catcher_data, device_id_),
  244. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Catcher_data, actual_device_status_),
  245. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Catcher_data, actual_load_status_),
  246. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Catcher_data, actual_coordinates_id_),
  247. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Catcher_data, actual_x_),
  248. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Catcher_data, actual_y_),
  249. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Catcher_data, actual_b_),
  250. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Catcher_data, actual_z_),
  251. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Catcher_data, actual_d1_),
  252. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Catcher_data, actual_d2_),
  253. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Catcher_data, actual_clamp_motion1_),
  254. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Catcher_data, actual_clamp_motion2_),
  255. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Catcher_data, actual_clamp_motion3_),
  256. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Catcher_data, actual_clamp_motion4_),
  257. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Catcher_data, actual_error_code_),
  258. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Catcher_data, actual_warning_code_),
  259. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Catcher_data, actual_error_description_),
  260. 18,
  261. 3,
  262. 4,
  263. 5,
  264. 6,
  265. 7,
  266. 8,
  267. 9,
  268. 10,
  269. 11,
  270. 12,
  271. 13,
  272. 14,
  273. 15,
  274. 16,
  275. 17,
  276. 0,
  277. 1,
  278. 2,
  279. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Carrier_data, _has_bits_),
  280. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Carrier_data, _internal_metadata_),
  281. ~0u, // no _extensions_
  282. ~0u, // no _oneof_case_
  283. ~0u, // no _weak_field_map_
  284. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Carrier_data, dispatch_device_type_),
  285. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Carrier_data, dispatch_device_status_),
  286. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Carrier_data, device_id_),
  287. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Carrier_data, actual_device_status_),
  288. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Carrier_data, actual_load_status_),
  289. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Carrier_data, actual_coordinates_id_),
  290. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Carrier_data, actual_x_),
  291. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Carrier_data, actual_y_),
  292. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Carrier_data, actual_z_),
  293. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Carrier_data, actual_y1_),
  294. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Carrier_data, actual_y2_),
  295. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Carrier_data, actual_clamp_motion1_),
  296. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Carrier_data, actual_clamp_motion2_),
  297. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Carrier_data, actual_small_sports_car_motion_),
  298. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Carrier_data, actual_joint_motion_x1_),
  299. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Carrier_data, actual_joint_motion_x2_),
  300. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Carrier_data, actual_error_code_),
  301. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Carrier_data, actual_warning_code_),
  302. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Carrier_data, actual_error_description_),
  303. 18,
  304. 3,
  305. 4,
  306. 5,
  307. 6,
  308. 7,
  309. 8,
  310. 9,
  311. 10,
  312. 11,
  313. 12,
  314. 13,
  315. 14,
  316. 15,
  317. 16,
  318. 17,
  319. 0,
  320. 1,
  321. 2,
  322. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_manager_status_msg, _has_bits_),
  323. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_manager_status_msg, _internal_metadata_),
  324. ~0u, // no _extensions_
  325. ~0u, // no _oneof_case_
  326. ~0u, // no _weak_field_map_
  327. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_manager_status_msg, base_info_),
  328. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_manager_status_msg, dispatch_id_),
  329. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_manager_status_msg, dispatch_manager_status_),
  330. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_manager_status_msg, catcher_data_map_),
  331. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_manager_status_msg, carrier_data_map_),
  332. 0,
  333. 1,
  334. 2,
  335. ~0u,
  336. ~0u,
  337. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_manager_data_msg, _has_bits_),
  338. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_manager_data_msg, _internal_metadata_),
  339. ~0u, // no _extensions_
  340. ~0u, // no _oneof_case_
  341. ~0u, // no _weak_field_map_
  342. };
  343. static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  344. { 0, 9, sizeof(::message::Dispatch_terminal_status_msg)},
  345. { 13, 24, sizeof(::message::Dispatch_request_msg)},
  346. { 30, 38, sizeof(::message::Dispatch_response_msg)},
  347. { 41, 65, sizeof(::message::Catcher_data)},
  348. { 84, 108, sizeof(::message::Carrier_data)},
  349. { 127, 137, sizeof(::message::Dispatch_manager_status_msg)},
  350. { 142, 147, sizeof(::message::Dispatch_manager_data_msg)},
  351. };
  352. static ::google::protobuf::Message const * const file_default_instances[] = {
  353. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Dispatch_terminal_status_msg_default_instance_),
  354. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Dispatch_request_msg_default_instance_),
  355. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Dispatch_response_msg_default_instance_),
  356. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Catcher_data_default_instance_),
  357. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Carrier_data_default_instance_),
  358. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Dispatch_manager_status_msg_default_instance_),
  359. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Dispatch_manager_data_msg_default_instance_),
  360. };
  361. void protobuf_AssignDescriptors() {
  362. AddDescriptors();
  363. ::google::protobuf::MessageFactory* factory = NULL;
  364. AssignDescriptors(
  365. "dispatch_message.proto", schemas, file_default_instances, TableStruct::offsets, factory,
  366. file_level_metadata, file_level_enum_descriptors, NULL);
  367. }
  368. void protobuf_AssignDescriptorsOnce() {
  369. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  370. ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
  371. }
  372. void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
  373. void protobuf_RegisterTypes(const ::std::string&) {
  374. protobuf_AssignDescriptorsOnce();
  375. ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 7);
  376. }
  377. void AddDescriptorsImpl() {
  378. InitDefaults();
  379. static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  380. "\n\026dispatch_message.proto\022\007message\032\022messa"
  381. "ge_base.proto\032\026dispatch_control.proto\"\312\001"
  382. "\n\034Dispatch_terminal_status_msg\022%\n\tbase_i"
  383. "nfo\030\001 \002(\0132\022.message.Base_info\022\023\n\013termina"
  384. "l_id\030\002 \002(\005\0221\n\017terminal_status\030\003 \002(\0162\030.me"
  385. "ssage.Terminal_status\022;\n\024passageway_dire"
  386. "ction\030\004 \002(\0162\035.message.Passageway_directi"
  387. "on\"\230\002\n\024Dispatch_request_msg\022%\n\tbase_info"
  388. "\030\001 \002(\0132\022.message.Base_info\022\023\n\013command_ke"
  389. "y\030\002 \002(\t\022E\n\031dispatch_motion_direction\030\003 \002"
  390. "(\0162\".message.Dispatch_motion_direction\022\023"
  391. "\n\013terminal_id\030\004 \002(\005\022/\n\016parkspace_info\030\005 "
  392. "\002(\0132\027.message.Parkspace_info\0227\n\022locate_i"
  393. "nformation\030\006 \001(\0132\033.message.Locate_inform"
  394. "ation\"\202\001\n\025Dispatch_response_msg\022%\n\tbase_"
  395. "info\030\001 \002(\0132\022.message.Base_info\022\023\n\013comman"
  396. "d_key\030\002 \002(\t\022-\n\rerror_manager\030\003 \002(\0132\026.mes"
  397. "sage.Error_manager\"\313\005\n\014Catcher_data\022;\n\024d"
  398. "ispatch_device_type\030\001 \002(\0162\035.message.Disp"
  399. "atch_device_type\022\?\n\026dispatch_device_stat"
  400. "us\030\002 \002(\0162\037.message.Dispatch_device_statu"
  401. "s\022\021\n\tdevice_id\030\003 \002(\005\022=\n\024actual_device_st"
  402. "atus\030\004 \001(\0162\037.message.Hardware_device_sta"
  403. "tus\0220\n\022actual_load_status\030\005 \001(\0162\024.messag"
  404. "e.Load_status\022\035\n\025actual_coordinates_id\030\006"
  405. " \001(\005\022\020\n\010actual_x\030\007 \001(\002\022\020\n\010actual_y\030\010 \001(\002"
  406. "\022\020\n\010actual_b\030\t \001(\002\022\020\n\010actual_z\030\n \001(\002\022\021\n\t"
  407. "actual_d1\030\013 \001(\002\022\021\n\tactual_d2\030\014 \001(\002\0223\n\024ac"
  408. "tual_clamp_motion1\030\r \001(\0162\025.message.Clamp"
  409. "_motion\0223\n\024actual_clamp_motion2\030\016 \001(\0162\025."
  410. "message.Clamp_motion\0223\n\024actual_clamp_mot"
  411. "ion3\030\017 \001(\0162\025.message.Clamp_motion\0223\n\024act"
  412. "ual_clamp_motion4\030\020 \001(\0162\025.message.Clamp_"
  413. "motion\022\031\n\021actual_error_code\030\021 \001(\t\022\033\n\023act"
  414. "ual_warning_code\030\022 \001(\t\022 \n\030actual_error_d"
  415. "escription\030\023 \001(\t\"\207\006\n\014Carrier_data\022;\n\024dis"
  416. "patch_device_type\030\001 \002(\0162\035.message.Dispat"
  417. "ch_device_type\022\?\n\026dispatch_device_status"
  418. "\030\002 \002(\0162\037.message.Dispatch_device_status\022"
  419. "\021\n\tdevice_id\030\003 \002(\005\022=\n\024actual_device_stat"
  420. "us\030\004 \001(\0162\037.message.Hardware_device_statu"
  421. "s\0220\n\022actual_load_status\030\005 \001(\0162\024.message."
  422. "Load_status\022\035\n\025actual_coordinates_id\030\006 \001"
  423. "(\005\022\020\n\010actual_x\030\007 \001(\002\022\020\n\010actual_y\030\010 \001(\002\022\020"
  424. "\n\010actual_z\030\t \001(\002\022\021\n\tactual_y1\030\n \001(\002\022\021\n\ta"
  425. "ctual_y2\030\013 \001(\002\0223\n\024actual_clamp_motion1\030\014"
  426. " \001(\0162\025.message.Clamp_motion\0223\n\024actual_cl"
  427. "amp_motion2\030\r \001(\0162\025.message.Clamp_motion"
  428. "\022H\n\036actual_small_sports_car_motion\030\016 \001(\016"
  429. "2 .message.Small_sports_car_motion\0225\n\026ac"
  430. "tual_joint_motion_x1\030\017 \001(\0162\025.message.Joi"
  431. "nt_motion\0225\n\026actual_joint_motion_x2\030\020 \001("
  432. "\0162\025.message.Joint_motion\022\031\n\021actual_error"
  433. "_code\030\021 \001(\t\022\033\n\023actual_warning_code\030\022 \001(\t"
  434. "\022 \n\030actual_error_description\030\023 \001(\t\"\376\001\n\033D"
  435. "ispatch_manager_status_msg\022%\n\tbase_info\030"
  436. "\001 \002(\0132\022.message.Base_info\022\023\n\013dispatch_id"
  437. "\030\002 \002(\005\022A\n\027dispatch_manager_status\030\003 \002(\0162"
  438. " .message.Dispatch_manager_status\022/\n\020cat"
  439. "cher_data_map\030\004 \003(\0132\025.message.Catcher_da"
  440. "ta\022/\n\020carrier_data_map\030\005 \003(\0132\025.message.C"
  441. "arrier_data\"\033\n\031Dispatch_manager_data_msg"
  442. "*\201\001\n\017Terminal_status\022\025\n\021E_TERMINAL_UNKNO"
  443. "W\020\000\022\024\n\020E_TERMINAL_READY\020\001\022\024\n\020E_TERMINAL_"
  444. "STORE\020\002\022\025\n\021E_TERMINAL_PICKUP\020\003\022\024\n\020E_TERM"
  445. "INAL_FAULT\020\n*B\n\024Passageway_direction\022\013\n\007"
  446. "E_INLET\020\000\022\014\n\010E_OUTLET\020\001\022\017\n\013E_BILATERAL\020\002"
  447. "*>\n\031Dispatch_motion_direction\022\017\n\013E_STORE"
  448. "_CAR\020\000\022\020\n\014E_PICKUP_CAR\020\001*\261\001\n\027Dispatch_ma"
  449. "nager_status\022\035\n\031E_DISPATCH_MANAGER_UNKNO"
  450. "W\020\000\022\034\n\030E_DISPATCH_MANAGER_READY\020\001\022\034\n\030E_D"
  451. "ISPATCH_MANAGER_STORE\020\002\022\035\n\031E_DISPATCH_MA"
  452. "NAGER_PICKUP\020\003\022\034\n\030E_DISPATCH_MANAGER_FAU"
  453. "LT\020d*\200\003\n\026Dispatch_device_status\022\032\n\026DISPA"
  454. "TCH_DEVICE_UNKNOW\020\000\022\031\n\025DISPATCH_DEVICE_R"
  455. "EADY\020\001\022\030\n\024DISPATCH_DEVICE_BUSY\020\002\022\"\n\036DISP"
  456. "ATCH_DEVICE_ONE_LEVEL_OVER\020\003\022\"\n\036DISPATCH"
  457. "_DEVICE_ONE_LEVEL_WORK\020\004\022\"\n\036DISPATCH_DEV"
  458. "ICE_TWO_LEVEL_OVER\020\005\022\"\n\036DISPATCH_DEVICE_"
  459. "TWO_LEVEL_WORK\020\006\022$\n DISPATCH_DEVICE_THRE"
  460. "E_LEVEL_OVER\020\007\022$\n DISPATCH_DEVICE_THREE_"
  461. "LEVEL_WORK\020\010\022\031\n\025DISPATCH_DEVICE_FAULT\020d\022"
  462. "\036\n\032DISPATCH_DEVICE_DISCONNECT\020e*n\n\023Dispa"
  463. "tch_task_level\022\033\n\027DISPATCH_TASK_ONE_LEVE"
  464. "L\020\001\022\033\n\027DISPATCH_TASK_TWO_LEVEL\020\002\022\035\n\031DISP"
  465. "ATCH_TASK_THREE_LEVEL\020\003*K\n\014Clamp_motion\022"
  466. "\025\n\021E_CLAMP_NO_ACTION\020\000\022\021\n\rE_CLAMP_TIGHT\020"
  467. "\001\022\021\n\rE_CLAMP_LOOSE\020\002*R\n\014Joint_motion\022\025\n\021"
  468. "E_JOINT_NO_ACTION\020\000\022\024\n\020E_JOINT_HOLD_OUT\020"
  469. "\001\022\025\n\021E_JOINT_TAKE_BACK\020\002*y\n\027Small_sports"
  470. "_car_motion\022\034\n\030E_SMALL_SPORTS_NO_ACTION\020"
  471. "\000\022\037\n\033E_SMALL_SPORTS_CAR_GET_AWAY\020\001\022\037\n\033E_"
  472. "SMALL_SPORTS_CAR_GET_BACK\020\002*l\n\016Respons_s"
  473. "tatus\022\023\n\017RESPONS_WORKING\020\000\022\020\n\014RESPONS_OV"
  474. "ER\020\001\022\027\n\023RESPONS_MINOR_ERROR\020d\022\032\n\026RESPONS"
  475. "_CRITICAL_ERROR\020e*\252\001\n\026Hardware_device_st"
  476. "atus\022\022\n\016DEVICE_UNKNOWN\020\000\022\020\n\014DEVICE_READY"
  477. "\020\001\022\022\n\016DEVICE_WORKING\020\002\022\031\n\025DEVICE_EMERGEN"
  478. "CY_STOP\020\003\022\023\n\017DEVICE_UNSAFETY\020\004\022\024\n\020DEVICE"
  479. "_COLLISION\020\005\022\020\n\014DEVICE_FAULT\020\006*9\n\013Load_s"
  480. "tatus\022\020\n\014LOAD_UNKNOWN\020\000\022\014\n\010HAVE_CAR\020\001\022\n\n"
  481. "\006NO_CAR\020\002*w\n\023Turntable_direction\022\037\n\033TURN"
  482. "TABLE_DIRECTION_UNKNOWN\020\000\022\036\n\032TURNTABLE_D"
  483. "IRECTION_INSIDE\020\001\022\037\n\033TURNTABLE_DIRECTION"
  484. "_OUTSIDE\020\002*N\n\013Door_motion\022\020\n\014DOOR_UNKNOW"
  485. "N\020\000\022\r\n\tDOOR_OPEN\020\001\022\016\n\nDOOR_CLOSE\020\002\022\016\n\nDO"
  486. "OR_ERROR\020\003*C\n\025Overstep_the_boundary\022\023\n\017B"
  487. "OUNDARY_NORMAL\020\000\022\025\n\021BOUNDARY_OVERSTEP\020\001"
  488. };
  489. ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
  490. descriptor, 4319);
  491. ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
  492. "dispatch_message.proto", &protobuf_RegisterTypes);
  493. ::protobuf_message_5fbase_2eproto::AddDescriptors();
  494. ::protobuf_dispatch_5fcontrol_2eproto::AddDescriptors();
  495. }
  496. void AddDescriptors() {
  497. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  498. ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
  499. }
  500. // Force AddDescriptors() to be called at dynamic initialization time.
  501. struct StaticDescriptorInitializer {
  502. StaticDescriptorInitializer() {
  503. AddDescriptors();
  504. }
  505. } static_descriptor_initializer;
  506. } // namespace protobuf_dispatch_5fmessage_2eproto
  507. namespace message {
  508. const ::google::protobuf::EnumDescriptor* Terminal_status_descriptor() {
  509. protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  510. return protobuf_dispatch_5fmessage_2eproto::file_level_enum_descriptors[0];
  511. }
  512. bool Terminal_status_IsValid(int value) {
  513. switch (value) {
  514. case 0:
  515. case 1:
  516. case 2:
  517. case 3:
  518. case 10:
  519. return true;
  520. default:
  521. return false;
  522. }
  523. }
  524. const ::google::protobuf::EnumDescriptor* Passageway_direction_descriptor() {
  525. protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  526. return protobuf_dispatch_5fmessage_2eproto::file_level_enum_descriptors[1];
  527. }
  528. bool Passageway_direction_IsValid(int value) {
  529. switch (value) {
  530. case 0:
  531. case 1:
  532. case 2:
  533. return true;
  534. default:
  535. return false;
  536. }
  537. }
  538. const ::google::protobuf::EnumDescriptor* Dispatch_motion_direction_descriptor() {
  539. protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  540. return protobuf_dispatch_5fmessage_2eproto::file_level_enum_descriptors[2];
  541. }
  542. bool Dispatch_motion_direction_IsValid(int value) {
  543. switch (value) {
  544. case 0:
  545. case 1:
  546. return true;
  547. default:
  548. return false;
  549. }
  550. }
  551. const ::google::protobuf::EnumDescriptor* Dispatch_manager_status_descriptor() {
  552. protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  553. return protobuf_dispatch_5fmessage_2eproto::file_level_enum_descriptors[3];
  554. }
  555. bool Dispatch_manager_status_IsValid(int value) {
  556. switch (value) {
  557. case 0:
  558. case 1:
  559. case 2:
  560. case 3:
  561. case 100:
  562. return true;
  563. default:
  564. return false;
  565. }
  566. }
  567. const ::google::protobuf::EnumDescriptor* Dispatch_device_status_descriptor() {
  568. protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  569. return protobuf_dispatch_5fmessage_2eproto::file_level_enum_descriptors[4];
  570. }
  571. bool Dispatch_device_status_IsValid(int value) {
  572. switch (value) {
  573. case 0:
  574. case 1:
  575. case 2:
  576. case 3:
  577. case 4:
  578. case 5:
  579. case 6:
  580. case 7:
  581. case 8:
  582. case 100:
  583. case 101:
  584. return true;
  585. default:
  586. return false;
  587. }
  588. }
  589. const ::google::protobuf::EnumDescriptor* Dispatch_task_level_descriptor() {
  590. protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  591. return protobuf_dispatch_5fmessage_2eproto::file_level_enum_descriptors[5];
  592. }
  593. bool Dispatch_task_level_IsValid(int value) {
  594. switch (value) {
  595. case 1:
  596. case 2:
  597. case 3:
  598. return true;
  599. default:
  600. return false;
  601. }
  602. }
  603. const ::google::protobuf::EnumDescriptor* Clamp_motion_descriptor() {
  604. protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  605. return protobuf_dispatch_5fmessage_2eproto::file_level_enum_descriptors[6];
  606. }
  607. bool Clamp_motion_IsValid(int value) {
  608. switch (value) {
  609. case 0:
  610. case 1:
  611. case 2:
  612. return true;
  613. default:
  614. return false;
  615. }
  616. }
  617. const ::google::protobuf::EnumDescriptor* Joint_motion_descriptor() {
  618. protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  619. return protobuf_dispatch_5fmessage_2eproto::file_level_enum_descriptors[7];
  620. }
  621. bool Joint_motion_IsValid(int value) {
  622. switch (value) {
  623. case 0:
  624. case 1:
  625. case 2:
  626. return true;
  627. default:
  628. return false;
  629. }
  630. }
  631. const ::google::protobuf::EnumDescriptor* Small_sports_car_motion_descriptor() {
  632. protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  633. return protobuf_dispatch_5fmessage_2eproto::file_level_enum_descriptors[8];
  634. }
  635. bool Small_sports_car_motion_IsValid(int value) {
  636. switch (value) {
  637. case 0:
  638. case 1:
  639. case 2:
  640. return true;
  641. default:
  642. return false;
  643. }
  644. }
  645. const ::google::protobuf::EnumDescriptor* Respons_status_descriptor() {
  646. protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  647. return protobuf_dispatch_5fmessage_2eproto::file_level_enum_descriptors[9];
  648. }
  649. bool Respons_status_IsValid(int value) {
  650. switch (value) {
  651. case 0:
  652. case 1:
  653. case 100:
  654. case 101:
  655. return true;
  656. default:
  657. return false;
  658. }
  659. }
  660. const ::google::protobuf::EnumDescriptor* Hardware_device_status_descriptor() {
  661. protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  662. return protobuf_dispatch_5fmessage_2eproto::file_level_enum_descriptors[10];
  663. }
  664. bool Hardware_device_status_IsValid(int value) {
  665. switch (value) {
  666. case 0:
  667. case 1:
  668. case 2:
  669. case 3:
  670. case 4:
  671. case 5:
  672. case 6:
  673. return true;
  674. default:
  675. return false;
  676. }
  677. }
  678. const ::google::protobuf::EnumDescriptor* Load_status_descriptor() {
  679. protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  680. return protobuf_dispatch_5fmessage_2eproto::file_level_enum_descriptors[11];
  681. }
  682. bool Load_status_IsValid(int value) {
  683. switch (value) {
  684. case 0:
  685. case 1:
  686. case 2:
  687. return true;
  688. default:
  689. return false;
  690. }
  691. }
  692. const ::google::protobuf::EnumDescriptor* Turntable_direction_descriptor() {
  693. protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  694. return protobuf_dispatch_5fmessage_2eproto::file_level_enum_descriptors[12];
  695. }
  696. bool Turntable_direction_IsValid(int value) {
  697. switch (value) {
  698. case 0:
  699. case 1:
  700. case 2:
  701. return true;
  702. default:
  703. return false;
  704. }
  705. }
  706. const ::google::protobuf::EnumDescriptor* Door_motion_descriptor() {
  707. protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  708. return protobuf_dispatch_5fmessage_2eproto::file_level_enum_descriptors[13];
  709. }
  710. bool Door_motion_IsValid(int value) {
  711. switch (value) {
  712. case 0:
  713. case 1:
  714. case 2:
  715. case 3:
  716. return true;
  717. default:
  718. return false;
  719. }
  720. }
  721. const ::google::protobuf::EnumDescriptor* Overstep_the_boundary_descriptor() {
  722. protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  723. return protobuf_dispatch_5fmessage_2eproto::file_level_enum_descriptors[14];
  724. }
  725. bool Overstep_the_boundary_IsValid(int value) {
  726. switch (value) {
  727. case 0:
  728. case 1:
  729. return true;
  730. default:
  731. return false;
  732. }
  733. }
  734. // ===================================================================
  735. void Dispatch_terminal_status_msg::InitAsDefaultInstance() {
  736. ::message::_Dispatch_terminal_status_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>(
  737. ::message::Base_info::internal_default_instance());
  738. }
  739. void Dispatch_terminal_status_msg::clear_base_info() {
  740. if (base_info_ != NULL) base_info_->Clear();
  741. clear_has_base_info();
  742. }
  743. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  744. const int Dispatch_terminal_status_msg::kBaseInfoFieldNumber;
  745. const int Dispatch_terminal_status_msg::kTerminalIdFieldNumber;
  746. const int Dispatch_terminal_status_msg::kTerminalStatusFieldNumber;
  747. const int Dispatch_terminal_status_msg::kPassagewayDirectionFieldNumber;
  748. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  749. Dispatch_terminal_status_msg::Dispatch_terminal_status_msg()
  750. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  751. if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
  752. ::protobuf_dispatch_5fmessage_2eproto::InitDefaultsDispatch_terminal_status_msg();
  753. }
  754. SharedCtor();
  755. // @@protoc_insertion_point(constructor:message.Dispatch_terminal_status_msg)
  756. }
  757. Dispatch_terminal_status_msg::Dispatch_terminal_status_msg(const Dispatch_terminal_status_msg& from)
  758. : ::google::protobuf::Message(),
  759. _internal_metadata_(NULL),
  760. _has_bits_(from._has_bits_),
  761. _cached_size_(0) {
  762. _internal_metadata_.MergeFrom(from._internal_metadata_);
  763. if (from.has_base_info()) {
  764. base_info_ = new ::message::Base_info(*from.base_info_);
  765. } else {
  766. base_info_ = NULL;
  767. }
  768. ::memcpy(&terminal_id_, &from.terminal_id_,
  769. static_cast<size_t>(reinterpret_cast<char*>(&passageway_direction_) -
  770. reinterpret_cast<char*>(&terminal_id_)) + sizeof(passageway_direction_));
  771. // @@protoc_insertion_point(copy_constructor:message.Dispatch_terminal_status_msg)
  772. }
  773. void Dispatch_terminal_status_msg::SharedCtor() {
  774. _cached_size_ = 0;
  775. ::memset(&base_info_, 0, static_cast<size_t>(
  776. reinterpret_cast<char*>(&passageway_direction_) -
  777. reinterpret_cast<char*>(&base_info_)) + sizeof(passageway_direction_));
  778. }
  779. Dispatch_terminal_status_msg::~Dispatch_terminal_status_msg() {
  780. // @@protoc_insertion_point(destructor:message.Dispatch_terminal_status_msg)
  781. SharedDtor();
  782. }
  783. void Dispatch_terminal_status_msg::SharedDtor() {
  784. if (this != internal_default_instance()) delete base_info_;
  785. }
  786. void Dispatch_terminal_status_msg::SetCachedSize(int size) const {
  787. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  788. _cached_size_ = size;
  789. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  790. }
  791. const ::google::protobuf::Descriptor* Dispatch_terminal_status_msg::descriptor() {
  792. ::protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  793. return ::protobuf_dispatch_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  794. }
  795. const Dispatch_terminal_status_msg& Dispatch_terminal_status_msg::default_instance() {
  796. ::protobuf_dispatch_5fmessage_2eproto::InitDefaultsDispatch_terminal_status_msg();
  797. return *internal_default_instance();
  798. }
  799. Dispatch_terminal_status_msg* Dispatch_terminal_status_msg::New(::google::protobuf::Arena* arena) const {
  800. Dispatch_terminal_status_msg* n = new Dispatch_terminal_status_msg;
  801. if (arena != NULL) {
  802. arena->Own(n);
  803. }
  804. return n;
  805. }
  806. void Dispatch_terminal_status_msg::Clear() {
  807. // @@protoc_insertion_point(message_clear_start:message.Dispatch_terminal_status_msg)
  808. ::google::protobuf::uint32 cached_has_bits = 0;
  809. // Prevent compiler warnings about cached_has_bits being unused
  810. (void) cached_has_bits;
  811. cached_has_bits = _has_bits_[0];
  812. if (cached_has_bits & 0x00000001u) {
  813. GOOGLE_DCHECK(base_info_ != NULL);
  814. base_info_->Clear();
  815. }
  816. if (cached_has_bits & 14u) {
  817. ::memset(&terminal_id_, 0, static_cast<size_t>(
  818. reinterpret_cast<char*>(&passageway_direction_) -
  819. reinterpret_cast<char*>(&terminal_id_)) + sizeof(passageway_direction_));
  820. }
  821. _has_bits_.Clear();
  822. _internal_metadata_.Clear();
  823. }
  824. bool Dispatch_terminal_status_msg::MergePartialFromCodedStream(
  825. ::google::protobuf::io::CodedInputStream* input) {
  826. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  827. ::google::protobuf::uint32 tag;
  828. // @@protoc_insertion_point(parse_start:message.Dispatch_terminal_status_msg)
  829. for (;;) {
  830. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  831. tag = p.first;
  832. if (!p.second) goto handle_unusual;
  833. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  834. // required .message.Base_info base_info = 1;
  835. case 1: {
  836. if (static_cast< ::google::protobuf::uint8>(tag) ==
  837. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  838. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  839. input, mutable_base_info()));
  840. } else {
  841. goto handle_unusual;
  842. }
  843. break;
  844. }
  845. // required int32 terminal_id = 2;
  846. case 2: {
  847. if (static_cast< ::google::protobuf::uint8>(tag) ==
  848. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  849. set_has_terminal_id();
  850. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  851. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  852. input, &terminal_id_)));
  853. } else {
  854. goto handle_unusual;
  855. }
  856. break;
  857. }
  858. // required .message.Terminal_status terminal_status = 3;
  859. case 3: {
  860. if (static_cast< ::google::protobuf::uint8>(tag) ==
  861. static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
  862. int value;
  863. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  864. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  865. input, &value)));
  866. if (::message::Terminal_status_IsValid(value)) {
  867. set_terminal_status(static_cast< ::message::Terminal_status >(value));
  868. } else {
  869. mutable_unknown_fields()->AddVarint(
  870. 3, static_cast< ::google::protobuf::uint64>(value));
  871. }
  872. } else {
  873. goto handle_unusual;
  874. }
  875. break;
  876. }
  877. // required .message.Passageway_direction passageway_direction = 4;
  878. case 4: {
  879. if (static_cast< ::google::protobuf::uint8>(tag) ==
  880. static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
  881. int value;
  882. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  883. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  884. input, &value)));
  885. if (::message::Passageway_direction_IsValid(value)) {
  886. set_passageway_direction(static_cast< ::message::Passageway_direction >(value));
  887. } else {
  888. mutable_unknown_fields()->AddVarint(
  889. 4, static_cast< ::google::protobuf::uint64>(value));
  890. }
  891. } else {
  892. goto handle_unusual;
  893. }
  894. break;
  895. }
  896. default: {
  897. handle_unusual:
  898. if (tag == 0) {
  899. goto success;
  900. }
  901. DO_(::google::protobuf::internal::WireFormat::SkipField(
  902. input, tag, _internal_metadata_.mutable_unknown_fields()));
  903. break;
  904. }
  905. }
  906. }
  907. success:
  908. // @@protoc_insertion_point(parse_success:message.Dispatch_terminal_status_msg)
  909. return true;
  910. failure:
  911. // @@protoc_insertion_point(parse_failure:message.Dispatch_terminal_status_msg)
  912. return false;
  913. #undef DO_
  914. }
  915. void Dispatch_terminal_status_msg::SerializeWithCachedSizes(
  916. ::google::protobuf::io::CodedOutputStream* output) const {
  917. // @@protoc_insertion_point(serialize_start:message.Dispatch_terminal_status_msg)
  918. ::google::protobuf::uint32 cached_has_bits = 0;
  919. (void) cached_has_bits;
  920. cached_has_bits = _has_bits_[0];
  921. // required .message.Base_info base_info = 1;
  922. if (cached_has_bits & 0x00000001u) {
  923. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  924. 1, *this->base_info_, output);
  925. }
  926. // required int32 terminal_id = 2;
  927. if (cached_has_bits & 0x00000002u) {
  928. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->terminal_id(), output);
  929. }
  930. // required .message.Terminal_status terminal_status = 3;
  931. if (cached_has_bits & 0x00000004u) {
  932. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  933. 3, this->terminal_status(), output);
  934. }
  935. // required .message.Passageway_direction passageway_direction = 4;
  936. if (cached_has_bits & 0x00000008u) {
  937. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  938. 4, this->passageway_direction(), output);
  939. }
  940. if (_internal_metadata_.have_unknown_fields()) {
  941. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  942. _internal_metadata_.unknown_fields(), output);
  943. }
  944. // @@protoc_insertion_point(serialize_end:message.Dispatch_terminal_status_msg)
  945. }
  946. ::google::protobuf::uint8* Dispatch_terminal_status_msg::InternalSerializeWithCachedSizesToArray(
  947. bool deterministic, ::google::protobuf::uint8* target) const {
  948. (void)deterministic; // Unused
  949. // @@protoc_insertion_point(serialize_to_array_start:message.Dispatch_terminal_status_msg)
  950. ::google::protobuf::uint32 cached_has_bits = 0;
  951. (void) cached_has_bits;
  952. cached_has_bits = _has_bits_[0];
  953. // required .message.Base_info base_info = 1;
  954. if (cached_has_bits & 0x00000001u) {
  955. target = ::google::protobuf::internal::WireFormatLite::
  956. InternalWriteMessageToArray(
  957. 1, *this->base_info_, deterministic, target);
  958. }
  959. // required int32 terminal_id = 2;
  960. if (cached_has_bits & 0x00000002u) {
  961. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->terminal_id(), target);
  962. }
  963. // required .message.Terminal_status terminal_status = 3;
  964. if (cached_has_bits & 0x00000004u) {
  965. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  966. 3, this->terminal_status(), target);
  967. }
  968. // required .message.Passageway_direction passageway_direction = 4;
  969. if (cached_has_bits & 0x00000008u) {
  970. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  971. 4, this->passageway_direction(), target);
  972. }
  973. if (_internal_metadata_.have_unknown_fields()) {
  974. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  975. _internal_metadata_.unknown_fields(), target);
  976. }
  977. // @@protoc_insertion_point(serialize_to_array_end:message.Dispatch_terminal_status_msg)
  978. return target;
  979. }
  980. size_t Dispatch_terminal_status_msg::RequiredFieldsByteSizeFallback() const {
  981. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Dispatch_terminal_status_msg)
  982. size_t total_size = 0;
  983. if (has_base_info()) {
  984. // required .message.Base_info base_info = 1;
  985. total_size += 1 +
  986. ::google::protobuf::internal::WireFormatLite::MessageSize(
  987. *this->base_info_);
  988. }
  989. if (has_terminal_id()) {
  990. // required int32 terminal_id = 2;
  991. total_size += 1 +
  992. ::google::protobuf::internal::WireFormatLite::Int32Size(
  993. this->terminal_id());
  994. }
  995. if (has_terminal_status()) {
  996. // required .message.Terminal_status terminal_status = 3;
  997. total_size += 1 +
  998. ::google::protobuf::internal::WireFormatLite::EnumSize(this->terminal_status());
  999. }
  1000. if (has_passageway_direction()) {
  1001. // required .message.Passageway_direction passageway_direction = 4;
  1002. total_size += 1 +
  1003. ::google::protobuf::internal::WireFormatLite::EnumSize(this->passageway_direction());
  1004. }
  1005. return total_size;
  1006. }
  1007. size_t Dispatch_terminal_status_msg::ByteSizeLong() const {
  1008. // @@protoc_insertion_point(message_byte_size_start:message.Dispatch_terminal_status_msg)
  1009. size_t total_size = 0;
  1010. if (_internal_metadata_.have_unknown_fields()) {
  1011. total_size +=
  1012. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1013. _internal_metadata_.unknown_fields());
  1014. }
  1015. if (((_has_bits_[0] & 0x0000000f) ^ 0x0000000f) == 0) { // All required fields are present.
  1016. // required .message.Base_info base_info = 1;
  1017. total_size += 1 +
  1018. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1019. *this->base_info_);
  1020. // required int32 terminal_id = 2;
  1021. total_size += 1 +
  1022. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1023. this->terminal_id());
  1024. // required .message.Terminal_status terminal_status = 3;
  1025. total_size += 1 +
  1026. ::google::protobuf::internal::WireFormatLite::EnumSize(this->terminal_status());
  1027. // required .message.Passageway_direction passageway_direction = 4;
  1028. total_size += 1 +
  1029. ::google::protobuf::internal::WireFormatLite::EnumSize(this->passageway_direction());
  1030. } else {
  1031. total_size += RequiredFieldsByteSizeFallback();
  1032. }
  1033. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  1034. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1035. _cached_size_ = cached_size;
  1036. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1037. return total_size;
  1038. }
  1039. void Dispatch_terminal_status_msg::MergeFrom(const ::google::protobuf::Message& from) {
  1040. // @@protoc_insertion_point(generalized_merge_from_start:message.Dispatch_terminal_status_msg)
  1041. GOOGLE_DCHECK_NE(&from, this);
  1042. const Dispatch_terminal_status_msg* source =
  1043. ::google::protobuf::internal::DynamicCastToGenerated<const Dispatch_terminal_status_msg>(
  1044. &from);
  1045. if (source == NULL) {
  1046. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Dispatch_terminal_status_msg)
  1047. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1048. } else {
  1049. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Dispatch_terminal_status_msg)
  1050. MergeFrom(*source);
  1051. }
  1052. }
  1053. void Dispatch_terminal_status_msg::MergeFrom(const Dispatch_terminal_status_msg& from) {
  1054. // @@protoc_insertion_point(class_specific_merge_from_start:message.Dispatch_terminal_status_msg)
  1055. GOOGLE_DCHECK_NE(&from, this);
  1056. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1057. ::google::protobuf::uint32 cached_has_bits = 0;
  1058. (void) cached_has_bits;
  1059. cached_has_bits = from._has_bits_[0];
  1060. if (cached_has_bits & 15u) {
  1061. if (cached_has_bits & 0x00000001u) {
  1062. mutable_base_info()->::message::Base_info::MergeFrom(from.base_info());
  1063. }
  1064. if (cached_has_bits & 0x00000002u) {
  1065. terminal_id_ = from.terminal_id_;
  1066. }
  1067. if (cached_has_bits & 0x00000004u) {
  1068. terminal_status_ = from.terminal_status_;
  1069. }
  1070. if (cached_has_bits & 0x00000008u) {
  1071. passageway_direction_ = from.passageway_direction_;
  1072. }
  1073. _has_bits_[0] |= cached_has_bits;
  1074. }
  1075. }
  1076. void Dispatch_terminal_status_msg::CopyFrom(const ::google::protobuf::Message& from) {
  1077. // @@protoc_insertion_point(generalized_copy_from_start:message.Dispatch_terminal_status_msg)
  1078. if (&from == this) return;
  1079. Clear();
  1080. MergeFrom(from);
  1081. }
  1082. void Dispatch_terminal_status_msg::CopyFrom(const Dispatch_terminal_status_msg& from) {
  1083. // @@protoc_insertion_point(class_specific_copy_from_start:message.Dispatch_terminal_status_msg)
  1084. if (&from == this) return;
  1085. Clear();
  1086. MergeFrom(from);
  1087. }
  1088. bool Dispatch_terminal_status_msg::IsInitialized() const {
  1089. if ((_has_bits_[0] & 0x0000000f) != 0x0000000f) return false;
  1090. if (has_base_info()) {
  1091. if (!this->base_info_->IsInitialized()) return false;
  1092. }
  1093. return true;
  1094. }
  1095. void Dispatch_terminal_status_msg::Swap(Dispatch_terminal_status_msg* other) {
  1096. if (other == this) return;
  1097. InternalSwap(other);
  1098. }
  1099. void Dispatch_terminal_status_msg::InternalSwap(Dispatch_terminal_status_msg* other) {
  1100. using std::swap;
  1101. swap(base_info_, other->base_info_);
  1102. swap(terminal_id_, other->terminal_id_);
  1103. swap(terminal_status_, other->terminal_status_);
  1104. swap(passageway_direction_, other->passageway_direction_);
  1105. swap(_has_bits_[0], other->_has_bits_[0]);
  1106. _internal_metadata_.Swap(&other->_internal_metadata_);
  1107. swap(_cached_size_, other->_cached_size_);
  1108. }
  1109. ::google::protobuf::Metadata Dispatch_terminal_status_msg::GetMetadata() const {
  1110. protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  1111. return ::protobuf_dispatch_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages];
  1112. }
  1113. // ===================================================================
  1114. void Dispatch_request_msg::InitAsDefaultInstance() {
  1115. ::message::_Dispatch_request_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>(
  1116. ::message::Base_info::internal_default_instance());
  1117. ::message::_Dispatch_request_msg_default_instance_._instance.get_mutable()->parkspace_info_ = const_cast< ::message::Parkspace_info*>(
  1118. ::message::Parkspace_info::internal_default_instance());
  1119. ::message::_Dispatch_request_msg_default_instance_._instance.get_mutable()->locate_information_ = const_cast< ::message::Locate_information*>(
  1120. ::message::Locate_information::internal_default_instance());
  1121. }
  1122. void Dispatch_request_msg::clear_base_info() {
  1123. if (base_info_ != NULL) base_info_->Clear();
  1124. clear_has_base_info();
  1125. }
  1126. void Dispatch_request_msg::clear_parkspace_info() {
  1127. if (parkspace_info_ != NULL) parkspace_info_->Clear();
  1128. clear_has_parkspace_info();
  1129. }
  1130. void Dispatch_request_msg::clear_locate_information() {
  1131. if (locate_information_ != NULL) locate_information_->Clear();
  1132. clear_has_locate_information();
  1133. }
  1134. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  1135. const int Dispatch_request_msg::kBaseInfoFieldNumber;
  1136. const int Dispatch_request_msg::kCommandKeyFieldNumber;
  1137. const int Dispatch_request_msg::kDispatchMotionDirectionFieldNumber;
  1138. const int Dispatch_request_msg::kTerminalIdFieldNumber;
  1139. const int Dispatch_request_msg::kParkspaceInfoFieldNumber;
  1140. const int Dispatch_request_msg::kLocateInformationFieldNumber;
  1141. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  1142. Dispatch_request_msg::Dispatch_request_msg()
  1143. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  1144. if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
  1145. ::protobuf_dispatch_5fmessage_2eproto::InitDefaultsDispatch_request_msg();
  1146. }
  1147. SharedCtor();
  1148. // @@protoc_insertion_point(constructor:message.Dispatch_request_msg)
  1149. }
  1150. Dispatch_request_msg::Dispatch_request_msg(const Dispatch_request_msg& from)
  1151. : ::google::protobuf::Message(),
  1152. _internal_metadata_(NULL),
  1153. _has_bits_(from._has_bits_),
  1154. _cached_size_(0) {
  1155. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1156. command_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1157. if (from.has_command_key()) {
  1158. command_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.command_key_);
  1159. }
  1160. if (from.has_base_info()) {
  1161. base_info_ = new ::message::Base_info(*from.base_info_);
  1162. } else {
  1163. base_info_ = NULL;
  1164. }
  1165. if (from.has_parkspace_info()) {
  1166. parkspace_info_ = new ::message::Parkspace_info(*from.parkspace_info_);
  1167. } else {
  1168. parkspace_info_ = NULL;
  1169. }
  1170. if (from.has_locate_information()) {
  1171. locate_information_ = new ::message::Locate_information(*from.locate_information_);
  1172. } else {
  1173. locate_information_ = NULL;
  1174. }
  1175. ::memcpy(&dispatch_motion_direction_, &from.dispatch_motion_direction_,
  1176. static_cast<size_t>(reinterpret_cast<char*>(&terminal_id_) -
  1177. reinterpret_cast<char*>(&dispatch_motion_direction_)) + sizeof(terminal_id_));
  1178. // @@protoc_insertion_point(copy_constructor:message.Dispatch_request_msg)
  1179. }
  1180. void Dispatch_request_msg::SharedCtor() {
  1181. _cached_size_ = 0;
  1182. command_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1183. ::memset(&base_info_, 0, static_cast<size_t>(
  1184. reinterpret_cast<char*>(&terminal_id_) -
  1185. reinterpret_cast<char*>(&base_info_)) + sizeof(terminal_id_));
  1186. }
  1187. Dispatch_request_msg::~Dispatch_request_msg() {
  1188. // @@protoc_insertion_point(destructor:message.Dispatch_request_msg)
  1189. SharedDtor();
  1190. }
  1191. void Dispatch_request_msg::SharedDtor() {
  1192. command_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1193. if (this != internal_default_instance()) delete base_info_;
  1194. if (this != internal_default_instance()) delete parkspace_info_;
  1195. if (this != internal_default_instance()) delete locate_information_;
  1196. }
  1197. void Dispatch_request_msg::SetCachedSize(int size) const {
  1198. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1199. _cached_size_ = size;
  1200. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1201. }
  1202. const ::google::protobuf::Descriptor* Dispatch_request_msg::descriptor() {
  1203. ::protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  1204. return ::protobuf_dispatch_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  1205. }
  1206. const Dispatch_request_msg& Dispatch_request_msg::default_instance() {
  1207. ::protobuf_dispatch_5fmessage_2eproto::InitDefaultsDispatch_request_msg();
  1208. return *internal_default_instance();
  1209. }
  1210. Dispatch_request_msg* Dispatch_request_msg::New(::google::protobuf::Arena* arena) const {
  1211. Dispatch_request_msg* n = new Dispatch_request_msg;
  1212. if (arena != NULL) {
  1213. arena->Own(n);
  1214. }
  1215. return n;
  1216. }
  1217. void Dispatch_request_msg::Clear() {
  1218. // @@protoc_insertion_point(message_clear_start:message.Dispatch_request_msg)
  1219. ::google::protobuf::uint32 cached_has_bits = 0;
  1220. // Prevent compiler warnings about cached_has_bits being unused
  1221. (void) cached_has_bits;
  1222. cached_has_bits = _has_bits_[0];
  1223. if (cached_has_bits & 15u) {
  1224. if (cached_has_bits & 0x00000001u) {
  1225. GOOGLE_DCHECK(!command_key_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
  1226. (*command_key_.UnsafeRawStringPointer())->clear();
  1227. }
  1228. if (cached_has_bits & 0x00000002u) {
  1229. GOOGLE_DCHECK(base_info_ != NULL);
  1230. base_info_->Clear();
  1231. }
  1232. if (cached_has_bits & 0x00000004u) {
  1233. GOOGLE_DCHECK(parkspace_info_ != NULL);
  1234. parkspace_info_->Clear();
  1235. }
  1236. if (cached_has_bits & 0x00000008u) {
  1237. GOOGLE_DCHECK(locate_information_ != NULL);
  1238. locate_information_->Clear();
  1239. }
  1240. }
  1241. if (cached_has_bits & 48u) {
  1242. ::memset(&dispatch_motion_direction_, 0, static_cast<size_t>(
  1243. reinterpret_cast<char*>(&terminal_id_) -
  1244. reinterpret_cast<char*>(&dispatch_motion_direction_)) + sizeof(terminal_id_));
  1245. }
  1246. _has_bits_.Clear();
  1247. _internal_metadata_.Clear();
  1248. }
  1249. bool Dispatch_request_msg::MergePartialFromCodedStream(
  1250. ::google::protobuf::io::CodedInputStream* input) {
  1251. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  1252. ::google::protobuf::uint32 tag;
  1253. // @@protoc_insertion_point(parse_start:message.Dispatch_request_msg)
  1254. for (;;) {
  1255. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  1256. tag = p.first;
  1257. if (!p.second) goto handle_unusual;
  1258. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1259. // required .message.Base_info base_info = 1;
  1260. case 1: {
  1261. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1262. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  1263. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1264. input, mutable_base_info()));
  1265. } else {
  1266. goto handle_unusual;
  1267. }
  1268. break;
  1269. }
  1270. // required string command_key = 2;
  1271. case 2: {
  1272. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1273. static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
  1274. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  1275. input, this->mutable_command_key()));
  1276. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1277. this->command_key().data(), static_cast<int>(this->command_key().length()),
  1278. ::google::protobuf::internal::WireFormat::PARSE,
  1279. "message.Dispatch_request_msg.command_key");
  1280. } else {
  1281. goto handle_unusual;
  1282. }
  1283. break;
  1284. }
  1285. // required .message.Dispatch_motion_direction dispatch_motion_direction = 3;
  1286. case 3: {
  1287. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1288. static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
  1289. int value;
  1290. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1291. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  1292. input, &value)));
  1293. if (::message::Dispatch_motion_direction_IsValid(value)) {
  1294. set_dispatch_motion_direction(static_cast< ::message::Dispatch_motion_direction >(value));
  1295. } else {
  1296. mutable_unknown_fields()->AddVarint(
  1297. 3, static_cast< ::google::protobuf::uint64>(value));
  1298. }
  1299. } else {
  1300. goto handle_unusual;
  1301. }
  1302. break;
  1303. }
  1304. // required int32 terminal_id = 4;
  1305. case 4: {
  1306. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1307. static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
  1308. set_has_terminal_id();
  1309. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1310. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1311. input, &terminal_id_)));
  1312. } else {
  1313. goto handle_unusual;
  1314. }
  1315. break;
  1316. }
  1317. // required .message.Parkspace_info parkspace_info = 5;
  1318. case 5: {
  1319. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1320. static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
  1321. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1322. input, mutable_parkspace_info()));
  1323. } else {
  1324. goto handle_unusual;
  1325. }
  1326. break;
  1327. }
  1328. // optional .message.Locate_information locate_information = 6;
  1329. case 6: {
  1330. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1331. static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
  1332. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1333. input, mutable_locate_information()));
  1334. } else {
  1335. goto handle_unusual;
  1336. }
  1337. break;
  1338. }
  1339. default: {
  1340. handle_unusual:
  1341. if (tag == 0) {
  1342. goto success;
  1343. }
  1344. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1345. input, tag, _internal_metadata_.mutable_unknown_fields()));
  1346. break;
  1347. }
  1348. }
  1349. }
  1350. success:
  1351. // @@protoc_insertion_point(parse_success:message.Dispatch_request_msg)
  1352. return true;
  1353. failure:
  1354. // @@protoc_insertion_point(parse_failure:message.Dispatch_request_msg)
  1355. return false;
  1356. #undef DO_
  1357. }
  1358. void Dispatch_request_msg::SerializeWithCachedSizes(
  1359. ::google::protobuf::io::CodedOutputStream* output) const {
  1360. // @@protoc_insertion_point(serialize_start:message.Dispatch_request_msg)
  1361. ::google::protobuf::uint32 cached_has_bits = 0;
  1362. (void) cached_has_bits;
  1363. cached_has_bits = _has_bits_[0];
  1364. // required .message.Base_info base_info = 1;
  1365. if (cached_has_bits & 0x00000002u) {
  1366. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1367. 1, *this->base_info_, output);
  1368. }
  1369. // required string command_key = 2;
  1370. if (cached_has_bits & 0x00000001u) {
  1371. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1372. this->command_key().data(), static_cast<int>(this->command_key().length()),
  1373. ::google::protobuf::internal::WireFormat::SERIALIZE,
  1374. "message.Dispatch_request_msg.command_key");
  1375. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  1376. 2, this->command_key(), output);
  1377. }
  1378. // required .message.Dispatch_motion_direction dispatch_motion_direction = 3;
  1379. if (cached_has_bits & 0x00000010u) {
  1380. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  1381. 3, this->dispatch_motion_direction(), output);
  1382. }
  1383. // required int32 terminal_id = 4;
  1384. if (cached_has_bits & 0x00000020u) {
  1385. ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->terminal_id(), output);
  1386. }
  1387. // required .message.Parkspace_info parkspace_info = 5;
  1388. if (cached_has_bits & 0x00000004u) {
  1389. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1390. 5, *this->parkspace_info_, output);
  1391. }
  1392. // optional .message.Locate_information locate_information = 6;
  1393. if (cached_has_bits & 0x00000008u) {
  1394. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1395. 6, *this->locate_information_, output);
  1396. }
  1397. if (_internal_metadata_.have_unknown_fields()) {
  1398. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1399. _internal_metadata_.unknown_fields(), output);
  1400. }
  1401. // @@protoc_insertion_point(serialize_end:message.Dispatch_request_msg)
  1402. }
  1403. ::google::protobuf::uint8* Dispatch_request_msg::InternalSerializeWithCachedSizesToArray(
  1404. bool deterministic, ::google::protobuf::uint8* target) const {
  1405. (void)deterministic; // Unused
  1406. // @@protoc_insertion_point(serialize_to_array_start:message.Dispatch_request_msg)
  1407. ::google::protobuf::uint32 cached_has_bits = 0;
  1408. (void) cached_has_bits;
  1409. cached_has_bits = _has_bits_[0];
  1410. // required .message.Base_info base_info = 1;
  1411. if (cached_has_bits & 0x00000002u) {
  1412. target = ::google::protobuf::internal::WireFormatLite::
  1413. InternalWriteMessageToArray(
  1414. 1, *this->base_info_, deterministic, target);
  1415. }
  1416. // required string command_key = 2;
  1417. if (cached_has_bits & 0x00000001u) {
  1418. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1419. this->command_key().data(), static_cast<int>(this->command_key().length()),
  1420. ::google::protobuf::internal::WireFormat::SERIALIZE,
  1421. "message.Dispatch_request_msg.command_key");
  1422. target =
  1423. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  1424. 2, this->command_key(), target);
  1425. }
  1426. // required .message.Dispatch_motion_direction dispatch_motion_direction = 3;
  1427. if (cached_has_bits & 0x00000010u) {
  1428. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  1429. 3, this->dispatch_motion_direction(), target);
  1430. }
  1431. // required int32 terminal_id = 4;
  1432. if (cached_has_bits & 0x00000020u) {
  1433. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->terminal_id(), target);
  1434. }
  1435. // required .message.Parkspace_info parkspace_info = 5;
  1436. if (cached_has_bits & 0x00000004u) {
  1437. target = ::google::protobuf::internal::WireFormatLite::
  1438. InternalWriteMessageToArray(
  1439. 5, *this->parkspace_info_, deterministic, target);
  1440. }
  1441. // optional .message.Locate_information locate_information = 6;
  1442. if (cached_has_bits & 0x00000008u) {
  1443. target = ::google::protobuf::internal::WireFormatLite::
  1444. InternalWriteMessageToArray(
  1445. 6, *this->locate_information_, deterministic, target);
  1446. }
  1447. if (_internal_metadata_.have_unknown_fields()) {
  1448. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1449. _internal_metadata_.unknown_fields(), target);
  1450. }
  1451. // @@protoc_insertion_point(serialize_to_array_end:message.Dispatch_request_msg)
  1452. return target;
  1453. }
  1454. size_t Dispatch_request_msg::RequiredFieldsByteSizeFallback() const {
  1455. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Dispatch_request_msg)
  1456. size_t total_size = 0;
  1457. if (has_command_key()) {
  1458. // required string command_key = 2;
  1459. total_size += 1 +
  1460. ::google::protobuf::internal::WireFormatLite::StringSize(
  1461. this->command_key());
  1462. }
  1463. if (has_base_info()) {
  1464. // required .message.Base_info base_info = 1;
  1465. total_size += 1 +
  1466. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1467. *this->base_info_);
  1468. }
  1469. if (has_parkspace_info()) {
  1470. // required .message.Parkspace_info parkspace_info = 5;
  1471. total_size += 1 +
  1472. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1473. *this->parkspace_info_);
  1474. }
  1475. if (has_dispatch_motion_direction()) {
  1476. // required .message.Dispatch_motion_direction dispatch_motion_direction = 3;
  1477. total_size += 1 +
  1478. ::google::protobuf::internal::WireFormatLite::EnumSize(this->dispatch_motion_direction());
  1479. }
  1480. if (has_terminal_id()) {
  1481. // required int32 terminal_id = 4;
  1482. total_size += 1 +
  1483. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1484. this->terminal_id());
  1485. }
  1486. return total_size;
  1487. }
  1488. size_t Dispatch_request_msg::ByteSizeLong() const {
  1489. // @@protoc_insertion_point(message_byte_size_start:message.Dispatch_request_msg)
  1490. size_t total_size = 0;
  1491. if (_internal_metadata_.have_unknown_fields()) {
  1492. total_size +=
  1493. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1494. _internal_metadata_.unknown_fields());
  1495. }
  1496. if (((_has_bits_[0] & 0x00000037) ^ 0x00000037) == 0) { // All required fields are present.
  1497. // required string command_key = 2;
  1498. total_size += 1 +
  1499. ::google::protobuf::internal::WireFormatLite::StringSize(
  1500. this->command_key());
  1501. // required .message.Base_info base_info = 1;
  1502. total_size += 1 +
  1503. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1504. *this->base_info_);
  1505. // required .message.Parkspace_info parkspace_info = 5;
  1506. total_size += 1 +
  1507. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1508. *this->parkspace_info_);
  1509. // required .message.Dispatch_motion_direction dispatch_motion_direction = 3;
  1510. total_size += 1 +
  1511. ::google::protobuf::internal::WireFormatLite::EnumSize(this->dispatch_motion_direction());
  1512. // required int32 terminal_id = 4;
  1513. total_size += 1 +
  1514. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1515. this->terminal_id());
  1516. } else {
  1517. total_size += RequiredFieldsByteSizeFallback();
  1518. }
  1519. // optional .message.Locate_information locate_information = 6;
  1520. if (has_locate_information()) {
  1521. total_size += 1 +
  1522. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1523. *this->locate_information_);
  1524. }
  1525. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  1526. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1527. _cached_size_ = cached_size;
  1528. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1529. return total_size;
  1530. }
  1531. void Dispatch_request_msg::MergeFrom(const ::google::protobuf::Message& from) {
  1532. // @@protoc_insertion_point(generalized_merge_from_start:message.Dispatch_request_msg)
  1533. GOOGLE_DCHECK_NE(&from, this);
  1534. const Dispatch_request_msg* source =
  1535. ::google::protobuf::internal::DynamicCastToGenerated<const Dispatch_request_msg>(
  1536. &from);
  1537. if (source == NULL) {
  1538. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Dispatch_request_msg)
  1539. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1540. } else {
  1541. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Dispatch_request_msg)
  1542. MergeFrom(*source);
  1543. }
  1544. }
  1545. void Dispatch_request_msg::MergeFrom(const Dispatch_request_msg& from) {
  1546. // @@protoc_insertion_point(class_specific_merge_from_start:message.Dispatch_request_msg)
  1547. GOOGLE_DCHECK_NE(&from, this);
  1548. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1549. ::google::protobuf::uint32 cached_has_bits = 0;
  1550. (void) cached_has_bits;
  1551. cached_has_bits = from._has_bits_[0];
  1552. if (cached_has_bits & 63u) {
  1553. if (cached_has_bits & 0x00000001u) {
  1554. set_has_command_key();
  1555. command_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.command_key_);
  1556. }
  1557. if (cached_has_bits & 0x00000002u) {
  1558. mutable_base_info()->::message::Base_info::MergeFrom(from.base_info());
  1559. }
  1560. if (cached_has_bits & 0x00000004u) {
  1561. mutable_parkspace_info()->::message::Parkspace_info::MergeFrom(from.parkspace_info());
  1562. }
  1563. if (cached_has_bits & 0x00000008u) {
  1564. mutable_locate_information()->::message::Locate_information::MergeFrom(from.locate_information());
  1565. }
  1566. if (cached_has_bits & 0x00000010u) {
  1567. dispatch_motion_direction_ = from.dispatch_motion_direction_;
  1568. }
  1569. if (cached_has_bits & 0x00000020u) {
  1570. terminal_id_ = from.terminal_id_;
  1571. }
  1572. _has_bits_[0] |= cached_has_bits;
  1573. }
  1574. }
  1575. void Dispatch_request_msg::CopyFrom(const ::google::protobuf::Message& from) {
  1576. // @@protoc_insertion_point(generalized_copy_from_start:message.Dispatch_request_msg)
  1577. if (&from == this) return;
  1578. Clear();
  1579. MergeFrom(from);
  1580. }
  1581. void Dispatch_request_msg::CopyFrom(const Dispatch_request_msg& from) {
  1582. // @@protoc_insertion_point(class_specific_copy_from_start:message.Dispatch_request_msg)
  1583. if (&from == this) return;
  1584. Clear();
  1585. MergeFrom(from);
  1586. }
  1587. bool Dispatch_request_msg::IsInitialized() const {
  1588. if ((_has_bits_[0] & 0x00000037) != 0x00000037) return false;
  1589. if (has_base_info()) {
  1590. if (!this->base_info_->IsInitialized()) return false;
  1591. }
  1592. return true;
  1593. }
  1594. void Dispatch_request_msg::Swap(Dispatch_request_msg* other) {
  1595. if (other == this) return;
  1596. InternalSwap(other);
  1597. }
  1598. void Dispatch_request_msg::InternalSwap(Dispatch_request_msg* other) {
  1599. using std::swap;
  1600. command_key_.Swap(&other->command_key_);
  1601. swap(base_info_, other->base_info_);
  1602. swap(parkspace_info_, other->parkspace_info_);
  1603. swap(locate_information_, other->locate_information_);
  1604. swap(dispatch_motion_direction_, other->dispatch_motion_direction_);
  1605. swap(terminal_id_, other->terminal_id_);
  1606. swap(_has_bits_[0], other->_has_bits_[0]);
  1607. _internal_metadata_.Swap(&other->_internal_metadata_);
  1608. swap(_cached_size_, other->_cached_size_);
  1609. }
  1610. ::google::protobuf::Metadata Dispatch_request_msg::GetMetadata() const {
  1611. protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  1612. return ::protobuf_dispatch_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages];
  1613. }
  1614. // ===================================================================
  1615. void Dispatch_response_msg::InitAsDefaultInstance() {
  1616. ::message::_Dispatch_response_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>(
  1617. ::message::Base_info::internal_default_instance());
  1618. ::message::_Dispatch_response_msg_default_instance_._instance.get_mutable()->error_manager_ = const_cast< ::message::Error_manager*>(
  1619. ::message::Error_manager::internal_default_instance());
  1620. }
  1621. void Dispatch_response_msg::clear_base_info() {
  1622. if (base_info_ != NULL) base_info_->Clear();
  1623. clear_has_base_info();
  1624. }
  1625. void Dispatch_response_msg::clear_error_manager() {
  1626. if (error_manager_ != NULL) error_manager_->Clear();
  1627. clear_has_error_manager();
  1628. }
  1629. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  1630. const int Dispatch_response_msg::kBaseInfoFieldNumber;
  1631. const int Dispatch_response_msg::kCommandKeyFieldNumber;
  1632. const int Dispatch_response_msg::kErrorManagerFieldNumber;
  1633. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  1634. Dispatch_response_msg::Dispatch_response_msg()
  1635. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  1636. if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
  1637. ::protobuf_dispatch_5fmessage_2eproto::InitDefaultsDispatch_response_msg();
  1638. }
  1639. SharedCtor();
  1640. // @@protoc_insertion_point(constructor:message.Dispatch_response_msg)
  1641. }
  1642. Dispatch_response_msg::Dispatch_response_msg(const Dispatch_response_msg& from)
  1643. : ::google::protobuf::Message(),
  1644. _internal_metadata_(NULL),
  1645. _has_bits_(from._has_bits_),
  1646. _cached_size_(0) {
  1647. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1648. command_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1649. if (from.has_command_key()) {
  1650. command_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.command_key_);
  1651. }
  1652. if (from.has_base_info()) {
  1653. base_info_ = new ::message::Base_info(*from.base_info_);
  1654. } else {
  1655. base_info_ = NULL;
  1656. }
  1657. if (from.has_error_manager()) {
  1658. error_manager_ = new ::message::Error_manager(*from.error_manager_);
  1659. } else {
  1660. error_manager_ = NULL;
  1661. }
  1662. // @@protoc_insertion_point(copy_constructor:message.Dispatch_response_msg)
  1663. }
  1664. void Dispatch_response_msg::SharedCtor() {
  1665. _cached_size_ = 0;
  1666. command_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1667. ::memset(&base_info_, 0, static_cast<size_t>(
  1668. reinterpret_cast<char*>(&error_manager_) -
  1669. reinterpret_cast<char*>(&base_info_)) + sizeof(error_manager_));
  1670. }
  1671. Dispatch_response_msg::~Dispatch_response_msg() {
  1672. // @@protoc_insertion_point(destructor:message.Dispatch_response_msg)
  1673. SharedDtor();
  1674. }
  1675. void Dispatch_response_msg::SharedDtor() {
  1676. command_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1677. if (this != internal_default_instance()) delete base_info_;
  1678. if (this != internal_default_instance()) delete error_manager_;
  1679. }
  1680. void Dispatch_response_msg::SetCachedSize(int size) const {
  1681. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1682. _cached_size_ = size;
  1683. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1684. }
  1685. const ::google::protobuf::Descriptor* Dispatch_response_msg::descriptor() {
  1686. ::protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  1687. return ::protobuf_dispatch_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  1688. }
  1689. const Dispatch_response_msg& Dispatch_response_msg::default_instance() {
  1690. ::protobuf_dispatch_5fmessage_2eproto::InitDefaultsDispatch_response_msg();
  1691. return *internal_default_instance();
  1692. }
  1693. Dispatch_response_msg* Dispatch_response_msg::New(::google::protobuf::Arena* arena) const {
  1694. Dispatch_response_msg* n = new Dispatch_response_msg;
  1695. if (arena != NULL) {
  1696. arena->Own(n);
  1697. }
  1698. return n;
  1699. }
  1700. void Dispatch_response_msg::Clear() {
  1701. // @@protoc_insertion_point(message_clear_start:message.Dispatch_response_msg)
  1702. ::google::protobuf::uint32 cached_has_bits = 0;
  1703. // Prevent compiler warnings about cached_has_bits being unused
  1704. (void) cached_has_bits;
  1705. cached_has_bits = _has_bits_[0];
  1706. if (cached_has_bits & 7u) {
  1707. if (cached_has_bits & 0x00000001u) {
  1708. GOOGLE_DCHECK(!command_key_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
  1709. (*command_key_.UnsafeRawStringPointer())->clear();
  1710. }
  1711. if (cached_has_bits & 0x00000002u) {
  1712. GOOGLE_DCHECK(base_info_ != NULL);
  1713. base_info_->Clear();
  1714. }
  1715. if (cached_has_bits & 0x00000004u) {
  1716. GOOGLE_DCHECK(error_manager_ != NULL);
  1717. error_manager_->Clear();
  1718. }
  1719. }
  1720. _has_bits_.Clear();
  1721. _internal_metadata_.Clear();
  1722. }
  1723. bool Dispatch_response_msg::MergePartialFromCodedStream(
  1724. ::google::protobuf::io::CodedInputStream* input) {
  1725. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  1726. ::google::protobuf::uint32 tag;
  1727. // @@protoc_insertion_point(parse_start:message.Dispatch_response_msg)
  1728. for (;;) {
  1729. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  1730. tag = p.first;
  1731. if (!p.second) goto handle_unusual;
  1732. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1733. // required .message.Base_info base_info = 1;
  1734. case 1: {
  1735. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1736. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  1737. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1738. input, mutable_base_info()));
  1739. } else {
  1740. goto handle_unusual;
  1741. }
  1742. break;
  1743. }
  1744. // required string command_key = 2;
  1745. case 2: {
  1746. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1747. static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
  1748. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  1749. input, this->mutable_command_key()));
  1750. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1751. this->command_key().data(), static_cast<int>(this->command_key().length()),
  1752. ::google::protobuf::internal::WireFormat::PARSE,
  1753. "message.Dispatch_response_msg.command_key");
  1754. } else {
  1755. goto handle_unusual;
  1756. }
  1757. break;
  1758. }
  1759. // required .message.Error_manager error_manager = 3;
  1760. case 3: {
  1761. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1762. static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
  1763. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1764. input, mutable_error_manager()));
  1765. } else {
  1766. goto handle_unusual;
  1767. }
  1768. break;
  1769. }
  1770. default: {
  1771. handle_unusual:
  1772. if (tag == 0) {
  1773. goto success;
  1774. }
  1775. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1776. input, tag, _internal_metadata_.mutable_unknown_fields()));
  1777. break;
  1778. }
  1779. }
  1780. }
  1781. success:
  1782. // @@protoc_insertion_point(parse_success:message.Dispatch_response_msg)
  1783. return true;
  1784. failure:
  1785. // @@protoc_insertion_point(parse_failure:message.Dispatch_response_msg)
  1786. return false;
  1787. #undef DO_
  1788. }
  1789. void Dispatch_response_msg::SerializeWithCachedSizes(
  1790. ::google::protobuf::io::CodedOutputStream* output) const {
  1791. // @@protoc_insertion_point(serialize_start:message.Dispatch_response_msg)
  1792. ::google::protobuf::uint32 cached_has_bits = 0;
  1793. (void) cached_has_bits;
  1794. cached_has_bits = _has_bits_[0];
  1795. // required .message.Base_info base_info = 1;
  1796. if (cached_has_bits & 0x00000002u) {
  1797. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1798. 1, *this->base_info_, output);
  1799. }
  1800. // required string command_key = 2;
  1801. if (cached_has_bits & 0x00000001u) {
  1802. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1803. this->command_key().data(), static_cast<int>(this->command_key().length()),
  1804. ::google::protobuf::internal::WireFormat::SERIALIZE,
  1805. "message.Dispatch_response_msg.command_key");
  1806. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  1807. 2, this->command_key(), output);
  1808. }
  1809. // required .message.Error_manager error_manager = 3;
  1810. if (cached_has_bits & 0x00000004u) {
  1811. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1812. 3, *this->error_manager_, output);
  1813. }
  1814. if (_internal_metadata_.have_unknown_fields()) {
  1815. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1816. _internal_metadata_.unknown_fields(), output);
  1817. }
  1818. // @@protoc_insertion_point(serialize_end:message.Dispatch_response_msg)
  1819. }
  1820. ::google::protobuf::uint8* Dispatch_response_msg::InternalSerializeWithCachedSizesToArray(
  1821. bool deterministic, ::google::protobuf::uint8* target) const {
  1822. (void)deterministic; // Unused
  1823. // @@protoc_insertion_point(serialize_to_array_start:message.Dispatch_response_msg)
  1824. ::google::protobuf::uint32 cached_has_bits = 0;
  1825. (void) cached_has_bits;
  1826. cached_has_bits = _has_bits_[0];
  1827. // required .message.Base_info base_info = 1;
  1828. if (cached_has_bits & 0x00000002u) {
  1829. target = ::google::protobuf::internal::WireFormatLite::
  1830. InternalWriteMessageToArray(
  1831. 1, *this->base_info_, deterministic, target);
  1832. }
  1833. // required string command_key = 2;
  1834. if (cached_has_bits & 0x00000001u) {
  1835. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1836. this->command_key().data(), static_cast<int>(this->command_key().length()),
  1837. ::google::protobuf::internal::WireFormat::SERIALIZE,
  1838. "message.Dispatch_response_msg.command_key");
  1839. target =
  1840. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  1841. 2, this->command_key(), target);
  1842. }
  1843. // required .message.Error_manager error_manager = 3;
  1844. if (cached_has_bits & 0x00000004u) {
  1845. target = ::google::protobuf::internal::WireFormatLite::
  1846. InternalWriteMessageToArray(
  1847. 3, *this->error_manager_, deterministic, target);
  1848. }
  1849. if (_internal_metadata_.have_unknown_fields()) {
  1850. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1851. _internal_metadata_.unknown_fields(), target);
  1852. }
  1853. // @@protoc_insertion_point(serialize_to_array_end:message.Dispatch_response_msg)
  1854. return target;
  1855. }
  1856. size_t Dispatch_response_msg::RequiredFieldsByteSizeFallback() const {
  1857. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Dispatch_response_msg)
  1858. size_t total_size = 0;
  1859. if (has_command_key()) {
  1860. // required string command_key = 2;
  1861. total_size += 1 +
  1862. ::google::protobuf::internal::WireFormatLite::StringSize(
  1863. this->command_key());
  1864. }
  1865. if (has_base_info()) {
  1866. // required .message.Base_info base_info = 1;
  1867. total_size += 1 +
  1868. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1869. *this->base_info_);
  1870. }
  1871. if (has_error_manager()) {
  1872. // required .message.Error_manager error_manager = 3;
  1873. total_size += 1 +
  1874. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1875. *this->error_manager_);
  1876. }
  1877. return total_size;
  1878. }
  1879. size_t Dispatch_response_msg::ByteSizeLong() const {
  1880. // @@protoc_insertion_point(message_byte_size_start:message.Dispatch_response_msg)
  1881. size_t total_size = 0;
  1882. if (_internal_metadata_.have_unknown_fields()) {
  1883. total_size +=
  1884. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1885. _internal_metadata_.unknown_fields());
  1886. }
  1887. if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present.
  1888. // required string command_key = 2;
  1889. total_size += 1 +
  1890. ::google::protobuf::internal::WireFormatLite::StringSize(
  1891. this->command_key());
  1892. // required .message.Base_info base_info = 1;
  1893. total_size += 1 +
  1894. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1895. *this->base_info_);
  1896. // required .message.Error_manager error_manager = 3;
  1897. total_size += 1 +
  1898. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1899. *this->error_manager_);
  1900. } else {
  1901. total_size += RequiredFieldsByteSizeFallback();
  1902. }
  1903. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  1904. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1905. _cached_size_ = cached_size;
  1906. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1907. return total_size;
  1908. }
  1909. void Dispatch_response_msg::MergeFrom(const ::google::protobuf::Message& from) {
  1910. // @@protoc_insertion_point(generalized_merge_from_start:message.Dispatch_response_msg)
  1911. GOOGLE_DCHECK_NE(&from, this);
  1912. const Dispatch_response_msg* source =
  1913. ::google::protobuf::internal::DynamicCastToGenerated<const Dispatch_response_msg>(
  1914. &from);
  1915. if (source == NULL) {
  1916. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Dispatch_response_msg)
  1917. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1918. } else {
  1919. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Dispatch_response_msg)
  1920. MergeFrom(*source);
  1921. }
  1922. }
  1923. void Dispatch_response_msg::MergeFrom(const Dispatch_response_msg& from) {
  1924. // @@protoc_insertion_point(class_specific_merge_from_start:message.Dispatch_response_msg)
  1925. GOOGLE_DCHECK_NE(&from, this);
  1926. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1927. ::google::protobuf::uint32 cached_has_bits = 0;
  1928. (void) cached_has_bits;
  1929. cached_has_bits = from._has_bits_[0];
  1930. if (cached_has_bits & 7u) {
  1931. if (cached_has_bits & 0x00000001u) {
  1932. set_has_command_key();
  1933. command_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.command_key_);
  1934. }
  1935. if (cached_has_bits & 0x00000002u) {
  1936. mutable_base_info()->::message::Base_info::MergeFrom(from.base_info());
  1937. }
  1938. if (cached_has_bits & 0x00000004u) {
  1939. mutable_error_manager()->::message::Error_manager::MergeFrom(from.error_manager());
  1940. }
  1941. }
  1942. }
  1943. void Dispatch_response_msg::CopyFrom(const ::google::protobuf::Message& from) {
  1944. // @@protoc_insertion_point(generalized_copy_from_start:message.Dispatch_response_msg)
  1945. if (&from == this) return;
  1946. Clear();
  1947. MergeFrom(from);
  1948. }
  1949. void Dispatch_response_msg::CopyFrom(const Dispatch_response_msg& from) {
  1950. // @@protoc_insertion_point(class_specific_copy_from_start:message.Dispatch_response_msg)
  1951. if (&from == this) return;
  1952. Clear();
  1953. MergeFrom(from);
  1954. }
  1955. bool Dispatch_response_msg::IsInitialized() const {
  1956. if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false;
  1957. if (has_base_info()) {
  1958. if (!this->base_info_->IsInitialized()) return false;
  1959. }
  1960. if (has_error_manager()) {
  1961. if (!this->error_manager_->IsInitialized()) return false;
  1962. }
  1963. return true;
  1964. }
  1965. void Dispatch_response_msg::Swap(Dispatch_response_msg* other) {
  1966. if (other == this) return;
  1967. InternalSwap(other);
  1968. }
  1969. void Dispatch_response_msg::InternalSwap(Dispatch_response_msg* other) {
  1970. using std::swap;
  1971. command_key_.Swap(&other->command_key_);
  1972. swap(base_info_, other->base_info_);
  1973. swap(error_manager_, other->error_manager_);
  1974. swap(_has_bits_[0], other->_has_bits_[0]);
  1975. _internal_metadata_.Swap(&other->_internal_metadata_);
  1976. swap(_cached_size_, other->_cached_size_);
  1977. }
  1978. ::google::protobuf::Metadata Dispatch_response_msg::GetMetadata() const {
  1979. protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  1980. return ::protobuf_dispatch_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages];
  1981. }
  1982. // ===================================================================
  1983. void Catcher_data::InitAsDefaultInstance() {
  1984. }
  1985. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  1986. const int Catcher_data::kDispatchDeviceTypeFieldNumber;
  1987. const int Catcher_data::kDispatchDeviceStatusFieldNumber;
  1988. const int Catcher_data::kDeviceIdFieldNumber;
  1989. const int Catcher_data::kActualDeviceStatusFieldNumber;
  1990. const int Catcher_data::kActualLoadStatusFieldNumber;
  1991. const int Catcher_data::kActualCoordinatesIdFieldNumber;
  1992. const int Catcher_data::kActualXFieldNumber;
  1993. const int Catcher_data::kActualYFieldNumber;
  1994. const int Catcher_data::kActualBFieldNumber;
  1995. const int Catcher_data::kActualZFieldNumber;
  1996. const int Catcher_data::kActualD1FieldNumber;
  1997. const int Catcher_data::kActualD2FieldNumber;
  1998. const int Catcher_data::kActualClampMotion1FieldNumber;
  1999. const int Catcher_data::kActualClampMotion2FieldNumber;
  2000. const int Catcher_data::kActualClampMotion3FieldNumber;
  2001. const int Catcher_data::kActualClampMotion4FieldNumber;
  2002. const int Catcher_data::kActualErrorCodeFieldNumber;
  2003. const int Catcher_data::kActualWarningCodeFieldNumber;
  2004. const int Catcher_data::kActualErrorDescriptionFieldNumber;
  2005. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  2006. Catcher_data::Catcher_data()
  2007. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  2008. if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
  2009. ::protobuf_dispatch_5fmessage_2eproto::InitDefaultsCatcher_data();
  2010. }
  2011. SharedCtor();
  2012. // @@protoc_insertion_point(constructor:message.Catcher_data)
  2013. }
  2014. Catcher_data::Catcher_data(const Catcher_data& from)
  2015. : ::google::protobuf::Message(),
  2016. _internal_metadata_(NULL),
  2017. _has_bits_(from._has_bits_),
  2018. _cached_size_(0) {
  2019. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2020. actual_error_code_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2021. if (from.has_actual_error_code()) {
  2022. actual_error_code_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.actual_error_code_);
  2023. }
  2024. actual_warning_code_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2025. if (from.has_actual_warning_code()) {
  2026. actual_warning_code_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.actual_warning_code_);
  2027. }
  2028. actual_error_description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2029. if (from.has_actual_error_description()) {
  2030. actual_error_description_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.actual_error_description_);
  2031. }
  2032. ::memcpy(&dispatch_device_status_, &from.dispatch_device_status_,
  2033. static_cast<size_t>(reinterpret_cast<char*>(&dispatch_device_type_) -
  2034. reinterpret_cast<char*>(&dispatch_device_status_)) + sizeof(dispatch_device_type_));
  2035. // @@protoc_insertion_point(copy_constructor:message.Catcher_data)
  2036. }
  2037. void Catcher_data::SharedCtor() {
  2038. _cached_size_ = 0;
  2039. actual_error_code_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2040. actual_warning_code_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2041. actual_error_description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2042. ::memset(&dispatch_device_status_, 0, static_cast<size_t>(
  2043. reinterpret_cast<char*>(&actual_clamp_motion4_) -
  2044. reinterpret_cast<char*>(&dispatch_device_status_)) + sizeof(actual_clamp_motion4_));
  2045. dispatch_device_type_ = 101;
  2046. }
  2047. Catcher_data::~Catcher_data() {
  2048. // @@protoc_insertion_point(destructor:message.Catcher_data)
  2049. SharedDtor();
  2050. }
  2051. void Catcher_data::SharedDtor() {
  2052. actual_error_code_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2053. actual_warning_code_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2054. actual_error_description_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2055. }
  2056. void Catcher_data::SetCachedSize(int size) const {
  2057. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2058. _cached_size_ = size;
  2059. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2060. }
  2061. const ::google::protobuf::Descriptor* Catcher_data::descriptor() {
  2062. ::protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  2063. return ::protobuf_dispatch_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  2064. }
  2065. const Catcher_data& Catcher_data::default_instance() {
  2066. ::protobuf_dispatch_5fmessage_2eproto::InitDefaultsCatcher_data();
  2067. return *internal_default_instance();
  2068. }
  2069. Catcher_data* Catcher_data::New(::google::protobuf::Arena* arena) const {
  2070. Catcher_data* n = new Catcher_data;
  2071. if (arena != NULL) {
  2072. arena->Own(n);
  2073. }
  2074. return n;
  2075. }
  2076. void Catcher_data::Clear() {
  2077. // @@protoc_insertion_point(message_clear_start:message.Catcher_data)
  2078. ::google::protobuf::uint32 cached_has_bits = 0;
  2079. // Prevent compiler warnings about cached_has_bits being unused
  2080. (void) cached_has_bits;
  2081. cached_has_bits = _has_bits_[0];
  2082. if (cached_has_bits & 7u) {
  2083. if (cached_has_bits & 0x00000001u) {
  2084. GOOGLE_DCHECK(!actual_error_code_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
  2085. (*actual_error_code_.UnsafeRawStringPointer())->clear();
  2086. }
  2087. if (cached_has_bits & 0x00000002u) {
  2088. GOOGLE_DCHECK(!actual_warning_code_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
  2089. (*actual_warning_code_.UnsafeRawStringPointer())->clear();
  2090. }
  2091. if (cached_has_bits & 0x00000004u) {
  2092. GOOGLE_DCHECK(!actual_error_description_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
  2093. (*actual_error_description_.UnsafeRawStringPointer())->clear();
  2094. }
  2095. }
  2096. if (cached_has_bits & 248u) {
  2097. ::memset(&dispatch_device_status_, 0, static_cast<size_t>(
  2098. reinterpret_cast<char*>(&actual_coordinates_id_) -
  2099. reinterpret_cast<char*>(&dispatch_device_status_)) + sizeof(actual_coordinates_id_));
  2100. }
  2101. if (cached_has_bits & 65280u) {
  2102. ::memset(&actual_x_, 0, static_cast<size_t>(
  2103. reinterpret_cast<char*>(&actual_clamp_motion2_) -
  2104. reinterpret_cast<char*>(&actual_x_)) + sizeof(actual_clamp_motion2_));
  2105. }
  2106. if (cached_has_bits & 458752u) {
  2107. ::memset(&actual_clamp_motion3_, 0, static_cast<size_t>(
  2108. reinterpret_cast<char*>(&actual_clamp_motion4_) -
  2109. reinterpret_cast<char*>(&actual_clamp_motion3_)) + sizeof(actual_clamp_motion4_));
  2110. dispatch_device_type_ = 101;
  2111. }
  2112. _has_bits_.Clear();
  2113. _internal_metadata_.Clear();
  2114. }
  2115. bool Catcher_data::MergePartialFromCodedStream(
  2116. ::google::protobuf::io::CodedInputStream* input) {
  2117. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  2118. ::google::protobuf::uint32 tag;
  2119. // @@protoc_insertion_point(parse_start:message.Catcher_data)
  2120. for (;;) {
  2121. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
  2122. tag = p.first;
  2123. if (!p.second) goto handle_unusual;
  2124. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  2125. // required .message.Dispatch_device_type dispatch_device_type = 1;
  2126. case 1: {
  2127. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2128. static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
  2129. int value;
  2130. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2131. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  2132. input, &value)));
  2133. if (::message::Dispatch_device_type_IsValid(value)) {
  2134. set_dispatch_device_type(static_cast< ::message::Dispatch_device_type >(value));
  2135. } else {
  2136. mutable_unknown_fields()->AddVarint(
  2137. 1, static_cast< ::google::protobuf::uint64>(value));
  2138. }
  2139. } else {
  2140. goto handle_unusual;
  2141. }
  2142. break;
  2143. }
  2144. // required .message.Dispatch_device_status dispatch_device_status = 2;
  2145. case 2: {
  2146. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2147. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  2148. int value;
  2149. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2150. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  2151. input, &value)));
  2152. if (::message::Dispatch_device_status_IsValid(value)) {
  2153. set_dispatch_device_status(static_cast< ::message::Dispatch_device_status >(value));
  2154. } else {
  2155. mutable_unknown_fields()->AddVarint(
  2156. 2, static_cast< ::google::protobuf::uint64>(value));
  2157. }
  2158. } else {
  2159. goto handle_unusual;
  2160. }
  2161. break;
  2162. }
  2163. // required int32 device_id = 3;
  2164. case 3: {
  2165. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2166. static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
  2167. set_has_device_id();
  2168. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2169. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2170. input, &device_id_)));
  2171. } else {
  2172. goto handle_unusual;
  2173. }
  2174. break;
  2175. }
  2176. // optional .message.Hardware_device_status actual_device_status = 4;
  2177. case 4: {
  2178. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2179. static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
  2180. int value;
  2181. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2182. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  2183. input, &value)));
  2184. if (::message::Hardware_device_status_IsValid(value)) {
  2185. set_actual_device_status(static_cast< ::message::Hardware_device_status >(value));
  2186. } else {
  2187. mutable_unknown_fields()->AddVarint(
  2188. 4, static_cast< ::google::protobuf::uint64>(value));
  2189. }
  2190. } else {
  2191. goto handle_unusual;
  2192. }
  2193. break;
  2194. }
  2195. // optional .message.Load_status actual_load_status = 5;
  2196. case 5: {
  2197. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2198. static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
  2199. int value;
  2200. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2201. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  2202. input, &value)));
  2203. if (::message::Load_status_IsValid(value)) {
  2204. set_actual_load_status(static_cast< ::message::Load_status >(value));
  2205. } else {
  2206. mutable_unknown_fields()->AddVarint(
  2207. 5, static_cast< ::google::protobuf::uint64>(value));
  2208. }
  2209. } else {
  2210. goto handle_unusual;
  2211. }
  2212. break;
  2213. }
  2214. // optional int32 actual_coordinates_id = 6;
  2215. case 6: {
  2216. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2217. static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
  2218. set_has_actual_coordinates_id();
  2219. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2220. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2221. input, &actual_coordinates_id_)));
  2222. } else {
  2223. goto handle_unusual;
  2224. }
  2225. break;
  2226. }
  2227. // optional float actual_x = 7;
  2228. case 7: {
  2229. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2230. static_cast< ::google::protobuf::uint8>(61u /* 61 & 0xFF */)) {
  2231. set_has_actual_x();
  2232. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2233. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  2234. input, &actual_x_)));
  2235. } else {
  2236. goto handle_unusual;
  2237. }
  2238. break;
  2239. }
  2240. // optional float actual_y = 8;
  2241. case 8: {
  2242. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2243. static_cast< ::google::protobuf::uint8>(69u /* 69 & 0xFF */)) {
  2244. set_has_actual_y();
  2245. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2246. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  2247. input, &actual_y_)));
  2248. } else {
  2249. goto handle_unusual;
  2250. }
  2251. break;
  2252. }
  2253. // optional float actual_b = 9;
  2254. case 9: {
  2255. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2256. static_cast< ::google::protobuf::uint8>(77u /* 77 & 0xFF */)) {
  2257. set_has_actual_b();
  2258. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2259. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  2260. input, &actual_b_)));
  2261. } else {
  2262. goto handle_unusual;
  2263. }
  2264. break;
  2265. }
  2266. // optional float actual_z = 10;
  2267. case 10: {
  2268. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2269. static_cast< ::google::protobuf::uint8>(85u /* 85 & 0xFF */)) {
  2270. set_has_actual_z();
  2271. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2272. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  2273. input, &actual_z_)));
  2274. } else {
  2275. goto handle_unusual;
  2276. }
  2277. break;
  2278. }
  2279. // optional float actual_d1 = 11;
  2280. case 11: {
  2281. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2282. static_cast< ::google::protobuf::uint8>(93u /* 93 & 0xFF */)) {
  2283. set_has_actual_d1();
  2284. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2285. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  2286. input, &actual_d1_)));
  2287. } else {
  2288. goto handle_unusual;
  2289. }
  2290. break;
  2291. }
  2292. // optional float actual_d2 = 12;
  2293. case 12: {
  2294. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2295. static_cast< ::google::protobuf::uint8>(101u /* 101 & 0xFF */)) {
  2296. set_has_actual_d2();
  2297. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2298. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  2299. input, &actual_d2_)));
  2300. } else {
  2301. goto handle_unusual;
  2302. }
  2303. break;
  2304. }
  2305. // optional .message.Clamp_motion actual_clamp_motion1 = 13;
  2306. case 13: {
  2307. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2308. static_cast< ::google::protobuf::uint8>(104u /* 104 & 0xFF */)) {
  2309. int value;
  2310. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2311. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  2312. input, &value)));
  2313. if (::message::Clamp_motion_IsValid(value)) {
  2314. set_actual_clamp_motion1(static_cast< ::message::Clamp_motion >(value));
  2315. } else {
  2316. mutable_unknown_fields()->AddVarint(
  2317. 13, static_cast< ::google::protobuf::uint64>(value));
  2318. }
  2319. } else {
  2320. goto handle_unusual;
  2321. }
  2322. break;
  2323. }
  2324. // optional .message.Clamp_motion actual_clamp_motion2 = 14;
  2325. case 14: {
  2326. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2327. static_cast< ::google::protobuf::uint8>(112u /* 112 & 0xFF */)) {
  2328. int value;
  2329. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2330. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  2331. input, &value)));
  2332. if (::message::Clamp_motion_IsValid(value)) {
  2333. set_actual_clamp_motion2(static_cast< ::message::Clamp_motion >(value));
  2334. } else {
  2335. mutable_unknown_fields()->AddVarint(
  2336. 14, static_cast< ::google::protobuf::uint64>(value));
  2337. }
  2338. } else {
  2339. goto handle_unusual;
  2340. }
  2341. break;
  2342. }
  2343. // optional .message.Clamp_motion actual_clamp_motion3 = 15;
  2344. case 15: {
  2345. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2346. static_cast< ::google::protobuf::uint8>(120u /* 120 & 0xFF */)) {
  2347. int value;
  2348. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2349. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  2350. input, &value)));
  2351. if (::message::Clamp_motion_IsValid(value)) {
  2352. set_actual_clamp_motion3(static_cast< ::message::Clamp_motion >(value));
  2353. } else {
  2354. mutable_unknown_fields()->AddVarint(
  2355. 15, static_cast< ::google::protobuf::uint64>(value));
  2356. }
  2357. } else {
  2358. goto handle_unusual;
  2359. }
  2360. break;
  2361. }
  2362. // optional .message.Clamp_motion actual_clamp_motion4 = 16;
  2363. case 16: {
  2364. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2365. static_cast< ::google::protobuf::uint8>(128u /* 128 & 0xFF */)) {
  2366. int value;
  2367. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2368. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  2369. input, &value)));
  2370. if (::message::Clamp_motion_IsValid(value)) {
  2371. set_actual_clamp_motion4(static_cast< ::message::Clamp_motion >(value));
  2372. } else {
  2373. mutable_unknown_fields()->AddVarint(
  2374. 16, static_cast< ::google::protobuf::uint64>(value));
  2375. }
  2376. } else {
  2377. goto handle_unusual;
  2378. }
  2379. break;
  2380. }
  2381. // optional string actual_error_code = 17;
  2382. case 17: {
  2383. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2384. static_cast< ::google::protobuf::uint8>(138u /* 138 & 0xFF */)) {
  2385. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  2386. input, this->mutable_actual_error_code()));
  2387. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  2388. this->actual_error_code().data(), static_cast<int>(this->actual_error_code().length()),
  2389. ::google::protobuf::internal::WireFormat::PARSE,
  2390. "message.Catcher_data.actual_error_code");
  2391. } else {
  2392. goto handle_unusual;
  2393. }
  2394. break;
  2395. }
  2396. // optional string actual_warning_code = 18;
  2397. case 18: {
  2398. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2399. static_cast< ::google::protobuf::uint8>(146u /* 146 & 0xFF */)) {
  2400. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  2401. input, this->mutable_actual_warning_code()));
  2402. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  2403. this->actual_warning_code().data(), static_cast<int>(this->actual_warning_code().length()),
  2404. ::google::protobuf::internal::WireFormat::PARSE,
  2405. "message.Catcher_data.actual_warning_code");
  2406. } else {
  2407. goto handle_unusual;
  2408. }
  2409. break;
  2410. }
  2411. // optional string actual_error_description = 19;
  2412. case 19: {
  2413. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2414. static_cast< ::google::protobuf::uint8>(154u /* 154 & 0xFF */)) {
  2415. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  2416. input, this->mutable_actual_error_description()));
  2417. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  2418. this->actual_error_description().data(), static_cast<int>(this->actual_error_description().length()),
  2419. ::google::protobuf::internal::WireFormat::PARSE,
  2420. "message.Catcher_data.actual_error_description");
  2421. } else {
  2422. goto handle_unusual;
  2423. }
  2424. break;
  2425. }
  2426. default: {
  2427. handle_unusual:
  2428. if (tag == 0) {
  2429. goto success;
  2430. }
  2431. DO_(::google::protobuf::internal::WireFormat::SkipField(
  2432. input, tag, _internal_metadata_.mutable_unknown_fields()));
  2433. break;
  2434. }
  2435. }
  2436. }
  2437. success:
  2438. // @@protoc_insertion_point(parse_success:message.Catcher_data)
  2439. return true;
  2440. failure:
  2441. // @@protoc_insertion_point(parse_failure:message.Catcher_data)
  2442. return false;
  2443. #undef DO_
  2444. }
  2445. void Catcher_data::SerializeWithCachedSizes(
  2446. ::google::protobuf::io::CodedOutputStream* output) const {
  2447. // @@protoc_insertion_point(serialize_start:message.Catcher_data)
  2448. ::google::protobuf::uint32 cached_has_bits = 0;
  2449. (void) cached_has_bits;
  2450. cached_has_bits = _has_bits_[0];
  2451. // required .message.Dispatch_device_type dispatch_device_type = 1;
  2452. if (cached_has_bits & 0x00040000u) {
  2453. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  2454. 1, this->dispatch_device_type(), output);
  2455. }
  2456. // required .message.Dispatch_device_status dispatch_device_status = 2;
  2457. if (cached_has_bits & 0x00000008u) {
  2458. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  2459. 2, this->dispatch_device_status(), output);
  2460. }
  2461. // required int32 device_id = 3;
  2462. if (cached_has_bits & 0x00000010u) {
  2463. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->device_id(), output);
  2464. }
  2465. // optional .message.Hardware_device_status actual_device_status = 4;
  2466. if (cached_has_bits & 0x00000020u) {
  2467. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  2468. 4, this->actual_device_status(), output);
  2469. }
  2470. // optional .message.Load_status actual_load_status = 5;
  2471. if (cached_has_bits & 0x00000040u) {
  2472. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  2473. 5, this->actual_load_status(), output);
  2474. }
  2475. // optional int32 actual_coordinates_id = 6;
  2476. if (cached_has_bits & 0x00000080u) {
  2477. ::google::protobuf::internal::WireFormatLite::WriteInt32(6, this->actual_coordinates_id(), output);
  2478. }
  2479. // optional float actual_x = 7;
  2480. if (cached_has_bits & 0x00000100u) {
  2481. ::google::protobuf::internal::WireFormatLite::WriteFloat(7, this->actual_x(), output);
  2482. }
  2483. // optional float actual_y = 8;
  2484. if (cached_has_bits & 0x00000200u) {
  2485. ::google::protobuf::internal::WireFormatLite::WriteFloat(8, this->actual_y(), output);
  2486. }
  2487. // optional float actual_b = 9;
  2488. if (cached_has_bits & 0x00000400u) {
  2489. ::google::protobuf::internal::WireFormatLite::WriteFloat(9, this->actual_b(), output);
  2490. }
  2491. // optional float actual_z = 10;
  2492. if (cached_has_bits & 0x00000800u) {
  2493. ::google::protobuf::internal::WireFormatLite::WriteFloat(10, this->actual_z(), output);
  2494. }
  2495. // optional float actual_d1 = 11;
  2496. if (cached_has_bits & 0x00001000u) {
  2497. ::google::protobuf::internal::WireFormatLite::WriteFloat(11, this->actual_d1(), output);
  2498. }
  2499. // optional float actual_d2 = 12;
  2500. if (cached_has_bits & 0x00002000u) {
  2501. ::google::protobuf::internal::WireFormatLite::WriteFloat(12, this->actual_d2(), output);
  2502. }
  2503. // optional .message.Clamp_motion actual_clamp_motion1 = 13;
  2504. if (cached_has_bits & 0x00004000u) {
  2505. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  2506. 13, this->actual_clamp_motion1(), output);
  2507. }
  2508. // optional .message.Clamp_motion actual_clamp_motion2 = 14;
  2509. if (cached_has_bits & 0x00008000u) {
  2510. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  2511. 14, this->actual_clamp_motion2(), output);
  2512. }
  2513. // optional .message.Clamp_motion actual_clamp_motion3 = 15;
  2514. if (cached_has_bits & 0x00010000u) {
  2515. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  2516. 15, this->actual_clamp_motion3(), output);
  2517. }
  2518. // optional .message.Clamp_motion actual_clamp_motion4 = 16;
  2519. if (cached_has_bits & 0x00020000u) {
  2520. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  2521. 16, this->actual_clamp_motion4(), output);
  2522. }
  2523. // optional string actual_error_code = 17;
  2524. if (cached_has_bits & 0x00000001u) {
  2525. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  2526. this->actual_error_code().data(), static_cast<int>(this->actual_error_code().length()),
  2527. ::google::protobuf::internal::WireFormat::SERIALIZE,
  2528. "message.Catcher_data.actual_error_code");
  2529. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  2530. 17, this->actual_error_code(), output);
  2531. }
  2532. // optional string actual_warning_code = 18;
  2533. if (cached_has_bits & 0x00000002u) {
  2534. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  2535. this->actual_warning_code().data(), static_cast<int>(this->actual_warning_code().length()),
  2536. ::google::protobuf::internal::WireFormat::SERIALIZE,
  2537. "message.Catcher_data.actual_warning_code");
  2538. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  2539. 18, this->actual_warning_code(), output);
  2540. }
  2541. // optional string actual_error_description = 19;
  2542. if (cached_has_bits & 0x00000004u) {
  2543. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  2544. this->actual_error_description().data(), static_cast<int>(this->actual_error_description().length()),
  2545. ::google::protobuf::internal::WireFormat::SERIALIZE,
  2546. "message.Catcher_data.actual_error_description");
  2547. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  2548. 19, this->actual_error_description(), output);
  2549. }
  2550. if (_internal_metadata_.have_unknown_fields()) {
  2551. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  2552. _internal_metadata_.unknown_fields(), output);
  2553. }
  2554. // @@protoc_insertion_point(serialize_end:message.Catcher_data)
  2555. }
  2556. ::google::protobuf::uint8* Catcher_data::InternalSerializeWithCachedSizesToArray(
  2557. bool deterministic, ::google::protobuf::uint8* target) const {
  2558. (void)deterministic; // Unused
  2559. // @@protoc_insertion_point(serialize_to_array_start:message.Catcher_data)
  2560. ::google::protobuf::uint32 cached_has_bits = 0;
  2561. (void) cached_has_bits;
  2562. cached_has_bits = _has_bits_[0];
  2563. // required .message.Dispatch_device_type dispatch_device_type = 1;
  2564. if (cached_has_bits & 0x00040000u) {
  2565. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  2566. 1, this->dispatch_device_type(), target);
  2567. }
  2568. // required .message.Dispatch_device_status dispatch_device_status = 2;
  2569. if (cached_has_bits & 0x00000008u) {
  2570. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  2571. 2, this->dispatch_device_status(), target);
  2572. }
  2573. // required int32 device_id = 3;
  2574. if (cached_has_bits & 0x00000010u) {
  2575. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->device_id(), target);
  2576. }
  2577. // optional .message.Hardware_device_status actual_device_status = 4;
  2578. if (cached_has_bits & 0x00000020u) {
  2579. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  2580. 4, this->actual_device_status(), target);
  2581. }
  2582. // optional .message.Load_status actual_load_status = 5;
  2583. if (cached_has_bits & 0x00000040u) {
  2584. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  2585. 5, this->actual_load_status(), target);
  2586. }
  2587. // optional int32 actual_coordinates_id = 6;
  2588. if (cached_has_bits & 0x00000080u) {
  2589. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(6, this->actual_coordinates_id(), target);
  2590. }
  2591. // optional float actual_x = 7;
  2592. if (cached_has_bits & 0x00000100u) {
  2593. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(7, this->actual_x(), target);
  2594. }
  2595. // optional float actual_y = 8;
  2596. if (cached_has_bits & 0x00000200u) {
  2597. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(8, this->actual_y(), target);
  2598. }
  2599. // optional float actual_b = 9;
  2600. if (cached_has_bits & 0x00000400u) {
  2601. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(9, this->actual_b(), target);
  2602. }
  2603. // optional float actual_z = 10;
  2604. if (cached_has_bits & 0x00000800u) {
  2605. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(10, this->actual_z(), target);
  2606. }
  2607. // optional float actual_d1 = 11;
  2608. if (cached_has_bits & 0x00001000u) {
  2609. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(11, this->actual_d1(), target);
  2610. }
  2611. // optional float actual_d2 = 12;
  2612. if (cached_has_bits & 0x00002000u) {
  2613. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(12, this->actual_d2(), target);
  2614. }
  2615. // optional .message.Clamp_motion actual_clamp_motion1 = 13;
  2616. if (cached_has_bits & 0x00004000u) {
  2617. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  2618. 13, this->actual_clamp_motion1(), target);
  2619. }
  2620. // optional .message.Clamp_motion actual_clamp_motion2 = 14;
  2621. if (cached_has_bits & 0x00008000u) {
  2622. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  2623. 14, this->actual_clamp_motion2(), target);
  2624. }
  2625. // optional .message.Clamp_motion actual_clamp_motion3 = 15;
  2626. if (cached_has_bits & 0x00010000u) {
  2627. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  2628. 15, this->actual_clamp_motion3(), target);
  2629. }
  2630. // optional .message.Clamp_motion actual_clamp_motion4 = 16;
  2631. if (cached_has_bits & 0x00020000u) {
  2632. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  2633. 16, this->actual_clamp_motion4(), target);
  2634. }
  2635. // optional string actual_error_code = 17;
  2636. if (cached_has_bits & 0x00000001u) {
  2637. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  2638. this->actual_error_code().data(), static_cast<int>(this->actual_error_code().length()),
  2639. ::google::protobuf::internal::WireFormat::SERIALIZE,
  2640. "message.Catcher_data.actual_error_code");
  2641. target =
  2642. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  2643. 17, this->actual_error_code(), target);
  2644. }
  2645. // optional string actual_warning_code = 18;
  2646. if (cached_has_bits & 0x00000002u) {
  2647. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  2648. this->actual_warning_code().data(), static_cast<int>(this->actual_warning_code().length()),
  2649. ::google::protobuf::internal::WireFormat::SERIALIZE,
  2650. "message.Catcher_data.actual_warning_code");
  2651. target =
  2652. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  2653. 18, this->actual_warning_code(), target);
  2654. }
  2655. // optional string actual_error_description = 19;
  2656. if (cached_has_bits & 0x00000004u) {
  2657. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  2658. this->actual_error_description().data(), static_cast<int>(this->actual_error_description().length()),
  2659. ::google::protobuf::internal::WireFormat::SERIALIZE,
  2660. "message.Catcher_data.actual_error_description");
  2661. target =
  2662. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  2663. 19, this->actual_error_description(), target);
  2664. }
  2665. if (_internal_metadata_.have_unknown_fields()) {
  2666. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  2667. _internal_metadata_.unknown_fields(), target);
  2668. }
  2669. // @@protoc_insertion_point(serialize_to_array_end:message.Catcher_data)
  2670. return target;
  2671. }
  2672. size_t Catcher_data::RequiredFieldsByteSizeFallback() const {
  2673. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Catcher_data)
  2674. size_t total_size = 0;
  2675. if (has_dispatch_device_status()) {
  2676. // required .message.Dispatch_device_status dispatch_device_status = 2;
  2677. total_size += 1 +
  2678. ::google::protobuf::internal::WireFormatLite::EnumSize(this->dispatch_device_status());
  2679. }
  2680. if (has_device_id()) {
  2681. // required int32 device_id = 3;
  2682. total_size += 1 +
  2683. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2684. this->device_id());
  2685. }
  2686. if (has_dispatch_device_type()) {
  2687. // required .message.Dispatch_device_type dispatch_device_type = 1;
  2688. total_size += 1 +
  2689. ::google::protobuf::internal::WireFormatLite::EnumSize(this->dispatch_device_type());
  2690. }
  2691. return total_size;
  2692. }
  2693. size_t Catcher_data::ByteSizeLong() const {
  2694. // @@protoc_insertion_point(message_byte_size_start:message.Catcher_data)
  2695. size_t total_size = 0;
  2696. if (_internal_metadata_.have_unknown_fields()) {
  2697. total_size +=
  2698. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  2699. _internal_metadata_.unknown_fields());
  2700. }
  2701. if (((_has_bits_[0] & 0x00040018) ^ 0x00040018) == 0) { // All required fields are present.
  2702. // required .message.Dispatch_device_status dispatch_device_status = 2;
  2703. total_size += 1 +
  2704. ::google::protobuf::internal::WireFormatLite::EnumSize(this->dispatch_device_status());
  2705. // required int32 device_id = 3;
  2706. total_size += 1 +
  2707. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2708. this->device_id());
  2709. // required .message.Dispatch_device_type dispatch_device_type = 1;
  2710. total_size += 1 +
  2711. ::google::protobuf::internal::WireFormatLite::EnumSize(this->dispatch_device_type());
  2712. } else {
  2713. total_size += RequiredFieldsByteSizeFallback();
  2714. }
  2715. if (_has_bits_[0 / 32] & 7u) {
  2716. // optional string actual_error_code = 17;
  2717. if (has_actual_error_code()) {
  2718. total_size += 2 +
  2719. ::google::protobuf::internal::WireFormatLite::StringSize(
  2720. this->actual_error_code());
  2721. }
  2722. // optional string actual_warning_code = 18;
  2723. if (has_actual_warning_code()) {
  2724. total_size += 2 +
  2725. ::google::protobuf::internal::WireFormatLite::StringSize(
  2726. this->actual_warning_code());
  2727. }
  2728. // optional string actual_error_description = 19;
  2729. if (has_actual_error_description()) {
  2730. total_size += 2 +
  2731. ::google::protobuf::internal::WireFormatLite::StringSize(
  2732. this->actual_error_description());
  2733. }
  2734. }
  2735. if (_has_bits_[0 / 32] & 224u) {
  2736. // optional .message.Hardware_device_status actual_device_status = 4;
  2737. if (has_actual_device_status()) {
  2738. total_size += 1 +
  2739. ::google::protobuf::internal::WireFormatLite::EnumSize(this->actual_device_status());
  2740. }
  2741. // optional .message.Load_status actual_load_status = 5;
  2742. if (has_actual_load_status()) {
  2743. total_size += 1 +
  2744. ::google::protobuf::internal::WireFormatLite::EnumSize(this->actual_load_status());
  2745. }
  2746. // optional int32 actual_coordinates_id = 6;
  2747. if (has_actual_coordinates_id()) {
  2748. total_size += 1 +
  2749. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2750. this->actual_coordinates_id());
  2751. }
  2752. }
  2753. if (_has_bits_[8 / 32] & 65280u) {
  2754. // optional float actual_x = 7;
  2755. if (has_actual_x()) {
  2756. total_size += 1 + 4;
  2757. }
  2758. // optional float actual_y = 8;
  2759. if (has_actual_y()) {
  2760. total_size += 1 + 4;
  2761. }
  2762. // optional float actual_b = 9;
  2763. if (has_actual_b()) {
  2764. total_size += 1 + 4;
  2765. }
  2766. // optional float actual_z = 10;
  2767. if (has_actual_z()) {
  2768. total_size += 1 + 4;
  2769. }
  2770. // optional float actual_d1 = 11;
  2771. if (has_actual_d1()) {
  2772. total_size += 1 + 4;
  2773. }
  2774. // optional float actual_d2 = 12;
  2775. if (has_actual_d2()) {
  2776. total_size += 1 + 4;
  2777. }
  2778. // optional .message.Clamp_motion actual_clamp_motion1 = 13;
  2779. if (has_actual_clamp_motion1()) {
  2780. total_size += 1 +
  2781. ::google::protobuf::internal::WireFormatLite::EnumSize(this->actual_clamp_motion1());
  2782. }
  2783. // optional .message.Clamp_motion actual_clamp_motion2 = 14;
  2784. if (has_actual_clamp_motion2()) {
  2785. total_size += 1 +
  2786. ::google::protobuf::internal::WireFormatLite::EnumSize(this->actual_clamp_motion2());
  2787. }
  2788. }
  2789. if (_has_bits_[16 / 32] & 196608u) {
  2790. // optional .message.Clamp_motion actual_clamp_motion3 = 15;
  2791. if (has_actual_clamp_motion3()) {
  2792. total_size += 1 +
  2793. ::google::protobuf::internal::WireFormatLite::EnumSize(this->actual_clamp_motion3());
  2794. }
  2795. // optional .message.Clamp_motion actual_clamp_motion4 = 16;
  2796. if (has_actual_clamp_motion4()) {
  2797. total_size += 2 +
  2798. ::google::protobuf::internal::WireFormatLite::EnumSize(this->actual_clamp_motion4());
  2799. }
  2800. }
  2801. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  2802. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2803. _cached_size_ = cached_size;
  2804. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2805. return total_size;
  2806. }
  2807. void Catcher_data::MergeFrom(const ::google::protobuf::Message& from) {
  2808. // @@protoc_insertion_point(generalized_merge_from_start:message.Catcher_data)
  2809. GOOGLE_DCHECK_NE(&from, this);
  2810. const Catcher_data* source =
  2811. ::google::protobuf::internal::DynamicCastToGenerated<const Catcher_data>(
  2812. &from);
  2813. if (source == NULL) {
  2814. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Catcher_data)
  2815. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  2816. } else {
  2817. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Catcher_data)
  2818. MergeFrom(*source);
  2819. }
  2820. }
  2821. void Catcher_data::MergeFrom(const Catcher_data& from) {
  2822. // @@protoc_insertion_point(class_specific_merge_from_start:message.Catcher_data)
  2823. GOOGLE_DCHECK_NE(&from, this);
  2824. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2825. ::google::protobuf::uint32 cached_has_bits = 0;
  2826. (void) cached_has_bits;
  2827. cached_has_bits = from._has_bits_[0];
  2828. if (cached_has_bits & 255u) {
  2829. if (cached_has_bits & 0x00000001u) {
  2830. set_has_actual_error_code();
  2831. actual_error_code_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.actual_error_code_);
  2832. }
  2833. if (cached_has_bits & 0x00000002u) {
  2834. set_has_actual_warning_code();
  2835. actual_warning_code_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.actual_warning_code_);
  2836. }
  2837. if (cached_has_bits & 0x00000004u) {
  2838. set_has_actual_error_description();
  2839. actual_error_description_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.actual_error_description_);
  2840. }
  2841. if (cached_has_bits & 0x00000008u) {
  2842. dispatch_device_status_ = from.dispatch_device_status_;
  2843. }
  2844. if (cached_has_bits & 0x00000010u) {
  2845. device_id_ = from.device_id_;
  2846. }
  2847. if (cached_has_bits & 0x00000020u) {
  2848. actual_device_status_ = from.actual_device_status_;
  2849. }
  2850. if (cached_has_bits & 0x00000040u) {
  2851. actual_load_status_ = from.actual_load_status_;
  2852. }
  2853. if (cached_has_bits & 0x00000080u) {
  2854. actual_coordinates_id_ = from.actual_coordinates_id_;
  2855. }
  2856. _has_bits_[0] |= cached_has_bits;
  2857. }
  2858. if (cached_has_bits & 65280u) {
  2859. if (cached_has_bits & 0x00000100u) {
  2860. actual_x_ = from.actual_x_;
  2861. }
  2862. if (cached_has_bits & 0x00000200u) {
  2863. actual_y_ = from.actual_y_;
  2864. }
  2865. if (cached_has_bits & 0x00000400u) {
  2866. actual_b_ = from.actual_b_;
  2867. }
  2868. if (cached_has_bits & 0x00000800u) {
  2869. actual_z_ = from.actual_z_;
  2870. }
  2871. if (cached_has_bits & 0x00001000u) {
  2872. actual_d1_ = from.actual_d1_;
  2873. }
  2874. if (cached_has_bits & 0x00002000u) {
  2875. actual_d2_ = from.actual_d2_;
  2876. }
  2877. if (cached_has_bits & 0x00004000u) {
  2878. actual_clamp_motion1_ = from.actual_clamp_motion1_;
  2879. }
  2880. if (cached_has_bits & 0x00008000u) {
  2881. actual_clamp_motion2_ = from.actual_clamp_motion2_;
  2882. }
  2883. _has_bits_[0] |= cached_has_bits;
  2884. }
  2885. if (cached_has_bits & 458752u) {
  2886. if (cached_has_bits & 0x00010000u) {
  2887. actual_clamp_motion3_ = from.actual_clamp_motion3_;
  2888. }
  2889. if (cached_has_bits & 0x00020000u) {
  2890. actual_clamp_motion4_ = from.actual_clamp_motion4_;
  2891. }
  2892. if (cached_has_bits & 0x00040000u) {
  2893. dispatch_device_type_ = from.dispatch_device_type_;
  2894. }
  2895. _has_bits_[0] |= cached_has_bits;
  2896. }
  2897. }
  2898. void Catcher_data::CopyFrom(const ::google::protobuf::Message& from) {
  2899. // @@protoc_insertion_point(generalized_copy_from_start:message.Catcher_data)
  2900. if (&from == this) return;
  2901. Clear();
  2902. MergeFrom(from);
  2903. }
  2904. void Catcher_data::CopyFrom(const Catcher_data& from) {
  2905. // @@protoc_insertion_point(class_specific_copy_from_start:message.Catcher_data)
  2906. if (&from == this) return;
  2907. Clear();
  2908. MergeFrom(from);
  2909. }
  2910. bool Catcher_data::IsInitialized() const {
  2911. if ((_has_bits_[0] & 0x00040018) != 0x00040018) return false;
  2912. return true;
  2913. }
  2914. void Catcher_data::Swap(Catcher_data* other) {
  2915. if (other == this) return;
  2916. InternalSwap(other);
  2917. }
  2918. void Catcher_data::InternalSwap(Catcher_data* other) {
  2919. using std::swap;
  2920. actual_error_code_.Swap(&other->actual_error_code_);
  2921. actual_warning_code_.Swap(&other->actual_warning_code_);
  2922. actual_error_description_.Swap(&other->actual_error_description_);
  2923. swap(dispatch_device_status_, other->dispatch_device_status_);
  2924. swap(device_id_, other->device_id_);
  2925. swap(actual_device_status_, other->actual_device_status_);
  2926. swap(actual_load_status_, other->actual_load_status_);
  2927. swap(actual_coordinates_id_, other->actual_coordinates_id_);
  2928. swap(actual_x_, other->actual_x_);
  2929. swap(actual_y_, other->actual_y_);
  2930. swap(actual_b_, other->actual_b_);
  2931. swap(actual_z_, other->actual_z_);
  2932. swap(actual_d1_, other->actual_d1_);
  2933. swap(actual_d2_, other->actual_d2_);
  2934. swap(actual_clamp_motion1_, other->actual_clamp_motion1_);
  2935. swap(actual_clamp_motion2_, other->actual_clamp_motion2_);
  2936. swap(actual_clamp_motion3_, other->actual_clamp_motion3_);
  2937. swap(actual_clamp_motion4_, other->actual_clamp_motion4_);
  2938. swap(dispatch_device_type_, other->dispatch_device_type_);
  2939. swap(_has_bits_[0], other->_has_bits_[0]);
  2940. _internal_metadata_.Swap(&other->_internal_metadata_);
  2941. swap(_cached_size_, other->_cached_size_);
  2942. }
  2943. ::google::protobuf::Metadata Catcher_data::GetMetadata() const {
  2944. protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  2945. return ::protobuf_dispatch_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages];
  2946. }
  2947. // ===================================================================
  2948. void Carrier_data::InitAsDefaultInstance() {
  2949. }
  2950. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  2951. const int Carrier_data::kDispatchDeviceTypeFieldNumber;
  2952. const int Carrier_data::kDispatchDeviceStatusFieldNumber;
  2953. const int Carrier_data::kDeviceIdFieldNumber;
  2954. const int Carrier_data::kActualDeviceStatusFieldNumber;
  2955. const int Carrier_data::kActualLoadStatusFieldNumber;
  2956. const int Carrier_data::kActualCoordinatesIdFieldNumber;
  2957. const int Carrier_data::kActualXFieldNumber;
  2958. const int Carrier_data::kActualYFieldNumber;
  2959. const int Carrier_data::kActualZFieldNumber;
  2960. const int Carrier_data::kActualY1FieldNumber;
  2961. const int Carrier_data::kActualY2FieldNumber;
  2962. const int Carrier_data::kActualClampMotion1FieldNumber;
  2963. const int Carrier_data::kActualClampMotion2FieldNumber;
  2964. const int Carrier_data::kActualSmallSportsCarMotionFieldNumber;
  2965. const int Carrier_data::kActualJointMotionX1FieldNumber;
  2966. const int Carrier_data::kActualJointMotionX2FieldNumber;
  2967. const int Carrier_data::kActualErrorCodeFieldNumber;
  2968. const int Carrier_data::kActualWarningCodeFieldNumber;
  2969. const int Carrier_data::kActualErrorDescriptionFieldNumber;
  2970. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  2971. Carrier_data::Carrier_data()
  2972. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  2973. if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
  2974. ::protobuf_dispatch_5fmessage_2eproto::InitDefaultsCarrier_data();
  2975. }
  2976. SharedCtor();
  2977. // @@protoc_insertion_point(constructor:message.Carrier_data)
  2978. }
  2979. Carrier_data::Carrier_data(const Carrier_data& from)
  2980. : ::google::protobuf::Message(),
  2981. _internal_metadata_(NULL),
  2982. _has_bits_(from._has_bits_),
  2983. _cached_size_(0) {
  2984. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2985. actual_error_code_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2986. if (from.has_actual_error_code()) {
  2987. actual_error_code_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.actual_error_code_);
  2988. }
  2989. actual_warning_code_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2990. if (from.has_actual_warning_code()) {
  2991. actual_warning_code_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.actual_warning_code_);
  2992. }
  2993. actual_error_description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2994. if (from.has_actual_error_description()) {
  2995. actual_error_description_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.actual_error_description_);
  2996. }
  2997. ::memcpy(&dispatch_device_status_, &from.dispatch_device_status_,
  2998. static_cast<size_t>(reinterpret_cast<char*>(&dispatch_device_type_) -
  2999. reinterpret_cast<char*>(&dispatch_device_status_)) + sizeof(dispatch_device_type_));
  3000. // @@protoc_insertion_point(copy_constructor:message.Carrier_data)
  3001. }
  3002. void Carrier_data::SharedCtor() {
  3003. _cached_size_ = 0;
  3004. actual_error_code_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3005. actual_warning_code_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3006. actual_error_description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3007. ::memset(&dispatch_device_status_, 0, static_cast<size_t>(
  3008. reinterpret_cast<char*>(&actual_joint_motion_x2_) -
  3009. reinterpret_cast<char*>(&dispatch_device_status_)) + sizeof(actual_joint_motion_x2_));
  3010. dispatch_device_type_ = 101;
  3011. }
  3012. Carrier_data::~Carrier_data() {
  3013. // @@protoc_insertion_point(destructor:message.Carrier_data)
  3014. SharedDtor();
  3015. }
  3016. void Carrier_data::SharedDtor() {
  3017. actual_error_code_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3018. actual_warning_code_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3019. actual_error_description_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3020. }
  3021. void Carrier_data::SetCachedSize(int size) const {
  3022. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  3023. _cached_size_ = size;
  3024. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  3025. }
  3026. const ::google::protobuf::Descriptor* Carrier_data::descriptor() {
  3027. ::protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  3028. return ::protobuf_dispatch_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  3029. }
  3030. const Carrier_data& Carrier_data::default_instance() {
  3031. ::protobuf_dispatch_5fmessage_2eproto::InitDefaultsCarrier_data();
  3032. return *internal_default_instance();
  3033. }
  3034. Carrier_data* Carrier_data::New(::google::protobuf::Arena* arena) const {
  3035. Carrier_data* n = new Carrier_data;
  3036. if (arena != NULL) {
  3037. arena->Own(n);
  3038. }
  3039. return n;
  3040. }
  3041. void Carrier_data::Clear() {
  3042. // @@protoc_insertion_point(message_clear_start:message.Carrier_data)
  3043. ::google::protobuf::uint32 cached_has_bits = 0;
  3044. // Prevent compiler warnings about cached_has_bits being unused
  3045. (void) cached_has_bits;
  3046. cached_has_bits = _has_bits_[0];
  3047. if (cached_has_bits & 7u) {
  3048. if (cached_has_bits & 0x00000001u) {
  3049. GOOGLE_DCHECK(!actual_error_code_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
  3050. (*actual_error_code_.UnsafeRawStringPointer())->clear();
  3051. }
  3052. if (cached_has_bits & 0x00000002u) {
  3053. GOOGLE_DCHECK(!actual_warning_code_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
  3054. (*actual_warning_code_.UnsafeRawStringPointer())->clear();
  3055. }
  3056. if (cached_has_bits & 0x00000004u) {
  3057. GOOGLE_DCHECK(!actual_error_description_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
  3058. (*actual_error_description_.UnsafeRawStringPointer())->clear();
  3059. }
  3060. }
  3061. if (cached_has_bits & 248u) {
  3062. ::memset(&dispatch_device_status_, 0, static_cast<size_t>(
  3063. reinterpret_cast<char*>(&actual_coordinates_id_) -
  3064. reinterpret_cast<char*>(&dispatch_device_status_)) + sizeof(actual_coordinates_id_));
  3065. }
  3066. if (cached_has_bits & 65280u) {
  3067. ::memset(&actual_x_, 0, static_cast<size_t>(
  3068. reinterpret_cast<char*>(&actual_small_sports_car_motion_) -
  3069. reinterpret_cast<char*>(&actual_x_)) + sizeof(actual_small_sports_car_motion_));
  3070. }
  3071. if (cached_has_bits & 458752u) {
  3072. ::memset(&actual_joint_motion_x1_, 0, static_cast<size_t>(
  3073. reinterpret_cast<char*>(&actual_joint_motion_x2_) -
  3074. reinterpret_cast<char*>(&actual_joint_motion_x1_)) + sizeof(actual_joint_motion_x2_));
  3075. dispatch_device_type_ = 101;
  3076. }
  3077. _has_bits_.Clear();
  3078. _internal_metadata_.Clear();
  3079. }
  3080. bool Carrier_data::MergePartialFromCodedStream(
  3081. ::google::protobuf::io::CodedInputStream* input) {
  3082. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  3083. ::google::protobuf::uint32 tag;
  3084. // @@protoc_insertion_point(parse_start:message.Carrier_data)
  3085. for (;;) {
  3086. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
  3087. tag = p.first;
  3088. if (!p.second) goto handle_unusual;
  3089. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  3090. // required .message.Dispatch_device_type dispatch_device_type = 1;
  3091. case 1: {
  3092. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3093. static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
  3094. int value;
  3095. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3096. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  3097. input, &value)));
  3098. if (::message::Dispatch_device_type_IsValid(value)) {
  3099. set_dispatch_device_type(static_cast< ::message::Dispatch_device_type >(value));
  3100. } else {
  3101. mutable_unknown_fields()->AddVarint(
  3102. 1, static_cast< ::google::protobuf::uint64>(value));
  3103. }
  3104. } else {
  3105. goto handle_unusual;
  3106. }
  3107. break;
  3108. }
  3109. // required .message.Dispatch_device_status dispatch_device_status = 2;
  3110. case 2: {
  3111. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3112. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  3113. int value;
  3114. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3115. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  3116. input, &value)));
  3117. if (::message::Dispatch_device_status_IsValid(value)) {
  3118. set_dispatch_device_status(static_cast< ::message::Dispatch_device_status >(value));
  3119. } else {
  3120. mutable_unknown_fields()->AddVarint(
  3121. 2, static_cast< ::google::protobuf::uint64>(value));
  3122. }
  3123. } else {
  3124. goto handle_unusual;
  3125. }
  3126. break;
  3127. }
  3128. // required int32 device_id = 3;
  3129. case 3: {
  3130. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3131. static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
  3132. set_has_device_id();
  3133. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3134. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  3135. input, &device_id_)));
  3136. } else {
  3137. goto handle_unusual;
  3138. }
  3139. break;
  3140. }
  3141. // optional .message.Hardware_device_status actual_device_status = 4;
  3142. case 4: {
  3143. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3144. static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
  3145. int value;
  3146. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3147. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  3148. input, &value)));
  3149. if (::message::Hardware_device_status_IsValid(value)) {
  3150. set_actual_device_status(static_cast< ::message::Hardware_device_status >(value));
  3151. } else {
  3152. mutable_unknown_fields()->AddVarint(
  3153. 4, static_cast< ::google::protobuf::uint64>(value));
  3154. }
  3155. } else {
  3156. goto handle_unusual;
  3157. }
  3158. break;
  3159. }
  3160. // optional .message.Load_status actual_load_status = 5;
  3161. case 5: {
  3162. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3163. static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
  3164. int value;
  3165. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3166. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  3167. input, &value)));
  3168. if (::message::Load_status_IsValid(value)) {
  3169. set_actual_load_status(static_cast< ::message::Load_status >(value));
  3170. } else {
  3171. mutable_unknown_fields()->AddVarint(
  3172. 5, static_cast< ::google::protobuf::uint64>(value));
  3173. }
  3174. } else {
  3175. goto handle_unusual;
  3176. }
  3177. break;
  3178. }
  3179. // optional int32 actual_coordinates_id = 6;
  3180. case 6: {
  3181. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3182. static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
  3183. set_has_actual_coordinates_id();
  3184. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3185. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  3186. input, &actual_coordinates_id_)));
  3187. } else {
  3188. goto handle_unusual;
  3189. }
  3190. break;
  3191. }
  3192. // optional float actual_x = 7;
  3193. case 7: {
  3194. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3195. static_cast< ::google::protobuf::uint8>(61u /* 61 & 0xFF */)) {
  3196. set_has_actual_x();
  3197. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3198. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  3199. input, &actual_x_)));
  3200. } else {
  3201. goto handle_unusual;
  3202. }
  3203. break;
  3204. }
  3205. // optional float actual_y = 8;
  3206. case 8: {
  3207. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3208. static_cast< ::google::protobuf::uint8>(69u /* 69 & 0xFF */)) {
  3209. set_has_actual_y();
  3210. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3211. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  3212. input, &actual_y_)));
  3213. } else {
  3214. goto handle_unusual;
  3215. }
  3216. break;
  3217. }
  3218. // optional float actual_z = 9;
  3219. case 9: {
  3220. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3221. static_cast< ::google::protobuf::uint8>(77u /* 77 & 0xFF */)) {
  3222. set_has_actual_z();
  3223. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3224. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  3225. input, &actual_z_)));
  3226. } else {
  3227. goto handle_unusual;
  3228. }
  3229. break;
  3230. }
  3231. // optional float actual_y1 = 10;
  3232. case 10: {
  3233. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3234. static_cast< ::google::protobuf::uint8>(85u /* 85 & 0xFF */)) {
  3235. set_has_actual_y1();
  3236. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3237. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  3238. input, &actual_y1_)));
  3239. } else {
  3240. goto handle_unusual;
  3241. }
  3242. break;
  3243. }
  3244. // optional float actual_y2 = 11;
  3245. case 11: {
  3246. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3247. static_cast< ::google::protobuf::uint8>(93u /* 93 & 0xFF */)) {
  3248. set_has_actual_y2();
  3249. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3250. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  3251. input, &actual_y2_)));
  3252. } else {
  3253. goto handle_unusual;
  3254. }
  3255. break;
  3256. }
  3257. // optional .message.Clamp_motion actual_clamp_motion1 = 12;
  3258. case 12: {
  3259. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3260. static_cast< ::google::protobuf::uint8>(96u /* 96 & 0xFF */)) {
  3261. int value;
  3262. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3263. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  3264. input, &value)));
  3265. if (::message::Clamp_motion_IsValid(value)) {
  3266. set_actual_clamp_motion1(static_cast< ::message::Clamp_motion >(value));
  3267. } else {
  3268. mutable_unknown_fields()->AddVarint(
  3269. 12, static_cast< ::google::protobuf::uint64>(value));
  3270. }
  3271. } else {
  3272. goto handle_unusual;
  3273. }
  3274. break;
  3275. }
  3276. // optional .message.Clamp_motion actual_clamp_motion2 = 13;
  3277. case 13: {
  3278. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3279. static_cast< ::google::protobuf::uint8>(104u /* 104 & 0xFF */)) {
  3280. int value;
  3281. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3282. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  3283. input, &value)));
  3284. if (::message::Clamp_motion_IsValid(value)) {
  3285. set_actual_clamp_motion2(static_cast< ::message::Clamp_motion >(value));
  3286. } else {
  3287. mutable_unknown_fields()->AddVarint(
  3288. 13, static_cast< ::google::protobuf::uint64>(value));
  3289. }
  3290. } else {
  3291. goto handle_unusual;
  3292. }
  3293. break;
  3294. }
  3295. // optional .message.Small_sports_car_motion actual_small_sports_car_motion = 14;
  3296. case 14: {
  3297. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3298. static_cast< ::google::protobuf::uint8>(112u /* 112 & 0xFF */)) {
  3299. int value;
  3300. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3301. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  3302. input, &value)));
  3303. if (::message::Small_sports_car_motion_IsValid(value)) {
  3304. set_actual_small_sports_car_motion(static_cast< ::message::Small_sports_car_motion >(value));
  3305. } else {
  3306. mutable_unknown_fields()->AddVarint(
  3307. 14, static_cast< ::google::protobuf::uint64>(value));
  3308. }
  3309. } else {
  3310. goto handle_unusual;
  3311. }
  3312. break;
  3313. }
  3314. // optional .message.Joint_motion actual_joint_motion_x1 = 15;
  3315. case 15: {
  3316. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3317. static_cast< ::google::protobuf::uint8>(120u /* 120 & 0xFF */)) {
  3318. int value;
  3319. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3320. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  3321. input, &value)));
  3322. if (::message::Joint_motion_IsValid(value)) {
  3323. set_actual_joint_motion_x1(static_cast< ::message::Joint_motion >(value));
  3324. } else {
  3325. mutable_unknown_fields()->AddVarint(
  3326. 15, static_cast< ::google::protobuf::uint64>(value));
  3327. }
  3328. } else {
  3329. goto handle_unusual;
  3330. }
  3331. break;
  3332. }
  3333. // optional .message.Joint_motion actual_joint_motion_x2 = 16;
  3334. case 16: {
  3335. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3336. static_cast< ::google::protobuf::uint8>(128u /* 128 & 0xFF */)) {
  3337. int value;
  3338. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3339. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  3340. input, &value)));
  3341. if (::message::Joint_motion_IsValid(value)) {
  3342. set_actual_joint_motion_x2(static_cast< ::message::Joint_motion >(value));
  3343. } else {
  3344. mutable_unknown_fields()->AddVarint(
  3345. 16, static_cast< ::google::protobuf::uint64>(value));
  3346. }
  3347. } else {
  3348. goto handle_unusual;
  3349. }
  3350. break;
  3351. }
  3352. // optional string actual_error_code = 17;
  3353. case 17: {
  3354. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3355. static_cast< ::google::protobuf::uint8>(138u /* 138 & 0xFF */)) {
  3356. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  3357. input, this->mutable_actual_error_code()));
  3358. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  3359. this->actual_error_code().data(), static_cast<int>(this->actual_error_code().length()),
  3360. ::google::protobuf::internal::WireFormat::PARSE,
  3361. "message.Carrier_data.actual_error_code");
  3362. } else {
  3363. goto handle_unusual;
  3364. }
  3365. break;
  3366. }
  3367. // optional string actual_warning_code = 18;
  3368. case 18: {
  3369. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3370. static_cast< ::google::protobuf::uint8>(146u /* 146 & 0xFF */)) {
  3371. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  3372. input, this->mutable_actual_warning_code()));
  3373. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  3374. this->actual_warning_code().data(), static_cast<int>(this->actual_warning_code().length()),
  3375. ::google::protobuf::internal::WireFormat::PARSE,
  3376. "message.Carrier_data.actual_warning_code");
  3377. } else {
  3378. goto handle_unusual;
  3379. }
  3380. break;
  3381. }
  3382. // optional string actual_error_description = 19;
  3383. case 19: {
  3384. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3385. static_cast< ::google::protobuf::uint8>(154u /* 154 & 0xFF */)) {
  3386. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  3387. input, this->mutable_actual_error_description()));
  3388. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  3389. this->actual_error_description().data(), static_cast<int>(this->actual_error_description().length()),
  3390. ::google::protobuf::internal::WireFormat::PARSE,
  3391. "message.Carrier_data.actual_error_description");
  3392. } else {
  3393. goto handle_unusual;
  3394. }
  3395. break;
  3396. }
  3397. default: {
  3398. handle_unusual:
  3399. if (tag == 0) {
  3400. goto success;
  3401. }
  3402. DO_(::google::protobuf::internal::WireFormat::SkipField(
  3403. input, tag, _internal_metadata_.mutable_unknown_fields()));
  3404. break;
  3405. }
  3406. }
  3407. }
  3408. success:
  3409. // @@protoc_insertion_point(parse_success:message.Carrier_data)
  3410. return true;
  3411. failure:
  3412. // @@protoc_insertion_point(parse_failure:message.Carrier_data)
  3413. return false;
  3414. #undef DO_
  3415. }
  3416. void Carrier_data::SerializeWithCachedSizes(
  3417. ::google::protobuf::io::CodedOutputStream* output) const {
  3418. // @@protoc_insertion_point(serialize_start:message.Carrier_data)
  3419. ::google::protobuf::uint32 cached_has_bits = 0;
  3420. (void) cached_has_bits;
  3421. cached_has_bits = _has_bits_[0];
  3422. // required .message.Dispatch_device_type dispatch_device_type = 1;
  3423. if (cached_has_bits & 0x00040000u) {
  3424. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  3425. 1, this->dispatch_device_type(), output);
  3426. }
  3427. // required .message.Dispatch_device_status dispatch_device_status = 2;
  3428. if (cached_has_bits & 0x00000008u) {
  3429. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  3430. 2, this->dispatch_device_status(), output);
  3431. }
  3432. // required int32 device_id = 3;
  3433. if (cached_has_bits & 0x00000010u) {
  3434. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->device_id(), output);
  3435. }
  3436. // optional .message.Hardware_device_status actual_device_status = 4;
  3437. if (cached_has_bits & 0x00000020u) {
  3438. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  3439. 4, this->actual_device_status(), output);
  3440. }
  3441. // optional .message.Load_status actual_load_status = 5;
  3442. if (cached_has_bits & 0x00000040u) {
  3443. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  3444. 5, this->actual_load_status(), output);
  3445. }
  3446. // optional int32 actual_coordinates_id = 6;
  3447. if (cached_has_bits & 0x00000080u) {
  3448. ::google::protobuf::internal::WireFormatLite::WriteInt32(6, this->actual_coordinates_id(), output);
  3449. }
  3450. // optional float actual_x = 7;
  3451. if (cached_has_bits & 0x00000100u) {
  3452. ::google::protobuf::internal::WireFormatLite::WriteFloat(7, this->actual_x(), output);
  3453. }
  3454. // optional float actual_y = 8;
  3455. if (cached_has_bits & 0x00000200u) {
  3456. ::google::protobuf::internal::WireFormatLite::WriteFloat(8, this->actual_y(), output);
  3457. }
  3458. // optional float actual_z = 9;
  3459. if (cached_has_bits & 0x00000400u) {
  3460. ::google::protobuf::internal::WireFormatLite::WriteFloat(9, this->actual_z(), output);
  3461. }
  3462. // optional float actual_y1 = 10;
  3463. if (cached_has_bits & 0x00000800u) {
  3464. ::google::protobuf::internal::WireFormatLite::WriteFloat(10, this->actual_y1(), output);
  3465. }
  3466. // optional float actual_y2 = 11;
  3467. if (cached_has_bits & 0x00001000u) {
  3468. ::google::protobuf::internal::WireFormatLite::WriteFloat(11, this->actual_y2(), output);
  3469. }
  3470. // optional .message.Clamp_motion actual_clamp_motion1 = 12;
  3471. if (cached_has_bits & 0x00002000u) {
  3472. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  3473. 12, this->actual_clamp_motion1(), output);
  3474. }
  3475. // optional .message.Clamp_motion actual_clamp_motion2 = 13;
  3476. if (cached_has_bits & 0x00004000u) {
  3477. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  3478. 13, this->actual_clamp_motion2(), output);
  3479. }
  3480. // optional .message.Small_sports_car_motion actual_small_sports_car_motion = 14;
  3481. if (cached_has_bits & 0x00008000u) {
  3482. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  3483. 14, this->actual_small_sports_car_motion(), output);
  3484. }
  3485. // optional .message.Joint_motion actual_joint_motion_x1 = 15;
  3486. if (cached_has_bits & 0x00010000u) {
  3487. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  3488. 15, this->actual_joint_motion_x1(), output);
  3489. }
  3490. // optional .message.Joint_motion actual_joint_motion_x2 = 16;
  3491. if (cached_has_bits & 0x00020000u) {
  3492. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  3493. 16, this->actual_joint_motion_x2(), output);
  3494. }
  3495. // optional string actual_error_code = 17;
  3496. if (cached_has_bits & 0x00000001u) {
  3497. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  3498. this->actual_error_code().data(), static_cast<int>(this->actual_error_code().length()),
  3499. ::google::protobuf::internal::WireFormat::SERIALIZE,
  3500. "message.Carrier_data.actual_error_code");
  3501. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  3502. 17, this->actual_error_code(), output);
  3503. }
  3504. // optional string actual_warning_code = 18;
  3505. if (cached_has_bits & 0x00000002u) {
  3506. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  3507. this->actual_warning_code().data(), static_cast<int>(this->actual_warning_code().length()),
  3508. ::google::protobuf::internal::WireFormat::SERIALIZE,
  3509. "message.Carrier_data.actual_warning_code");
  3510. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  3511. 18, this->actual_warning_code(), output);
  3512. }
  3513. // optional string actual_error_description = 19;
  3514. if (cached_has_bits & 0x00000004u) {
  3515. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  3516. this->actual_error_description().data(), static_cast<int>(this->actual_error_description().length()),
  3517. ::google::protobuf::internal::WireFormat::SERIALIZE,
  3518. "message.Carrier_data.actual_error_description");
  3519. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  3520. 19, this->actual_error_description(), output);
  3521. }
  3522. if (_internal_metadata_.have_unknown_fields()) {
  3523. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  3524. _internal_metadata_.unknown_fields(), output);
  3525. }
  3526. // @@protoc_insertion_point(serialize_end:message.Carrier_data)
  3527. }
  3528. ::google::protobuf::uint8* Carrier_data::InternalSerializeWithCachedSizesToArray(
  3529. bool deterministic, ::google::protobuf::uint8* target) const {
  3530. (void)deterministic; // Unused
  3531. // @@protoc_insertion_point(serialize_to_array_start:message.Carrier_data)
  3532. ::google::protobuf::uint32 cached_has_bits = 0;
  3533. (void) cached_has_bits;
  3534. cached_has_bits = _has_bits_[0];
  3535. // required .message.Dispatch_device_type dispatch_device_type = 1;
  3536. if (cached_has_bits & 0x00040000u) {
  3537. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  3538. 1, this->dispatch_device_type(), target);
  3539. }
  3540. // required .message.Dispatch_device_status dispatch_device_status = 2;
  3541. if (cached_has_bits & 0x00000008u) {
  3542. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  3543. 2, this->dispatch_device_status(), target);
  3544. }
  3545. // required int32 device_id = 3;
  3546. if (cached_has_bits & 0x00000010u) {
  3547. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->device_id(), target);
  3548. }
  3549. // optional .message.Hardware_device_status actual_device_status = 4;
  3550. if (cached_has_bits & 0x00000020u) {
  3551. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  3552. 4, this->actual_device_status(), target);
  3553. }
  3554. // optional .message.Load_status actual_load_status = 5;
  3555. if (cached_has_bits & 0x00000040u) {
  3556. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  3557. 5, this->actual_load_status(), target);
  3558. }
  3559. // optional int32 actual_coordinates_id = 6;
  3560. if (cached_has_bits & 0x00000080u) {
  3561. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(6, this->actual_coordinates_id(), target);
  3562. }
  3563. // optional float actual_x = 7;
  3564. if (cached_has_bits & 0x00000100u) {
  3565. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(7, this->actual_x(), target);
  3566. }
  3567. // optional float actual_y = 8;
  3568. if (cached_has_bits & 0x00000200u) {
  3569. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(8, this->actual_y(), target);
  3570. }
  3571. // optional float actual_z = 9;
  3572. if (cached_has_bits & 0x00000400u) {
  3573. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(9, this->actual_z(), target);
  3574. }
  3575. // optional float actual_y1 = 10;
  3576. if (cached_has_bits & 0x00000800u) {
  3577. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(10, this->actual_y1(), target);
  3578. }
  3579. // optional float actual_y2 = 11;
  3580. if (cached_has_bits & 0x00001000u) {
  3581. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(11, this->actual_y2(), target);
  3582. }
  3583. // optional .message.Clamp_motion actual_clamp_motion1 = 12;
  3584. if (cached_has_bits & 0x00002000u) {
  3585. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  3586. 12, this->actual_clamp_motion1(), target);
  3587. }
  3588. // optional .message.Clamp_motion actual_clamp_motion2 = 13;
  3589. if (cached_has_bits & 0x00004000u) {
  3590. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  3591. 13, this->actual_clamp_motion2(), target);
  3592. }
  3593. // optional .message.Small_sports_car_motion actual_small_sports_car_motion = 14;
  3594. if (cached_has_bits & 0x00008000u) {
  3595. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  3596. 14, this->actual_small_sports_car_motion(), target);
  3597. }
  3598. // optional .message.Joint_motion actual_joint_motion_x1 = 15;
  3599. if (cached_has_bits & 0x00010000u) {
  3600. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  3601. 15, this->actual_joint_motion_x1(), target);
  3602. }
  3603. // optional .message.Joint_motion actual_joint_motion_x2 = 16;
  3604. if (cached_has_bits & 0x00020000u) {
  3605. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  3606. 16, this->actual_joint_motion_x2(), target);
  3607. }
  3608. // optional string actual_error_code = 17;
  3609. if (cached_has_bits & 0x00000001u) {
  3610. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  3611. this->actual_error_code().data(), static_cast<int>(this->actual_error_code().length()),
  3612. ::google::protobuf::internal::WireFormat::SERIALIZE,
  3613. "message.Carrier_data.actual_error_code");
  3614. target =
  3615. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  3616. 17, this->actual_error_code(), target);
  3617. }
  3618. // optional string actual_warning_code = 18;
  3619. if (cached_has_bits & 0x00000002u) {
  3620. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  3621. this->actual_warning_code().data(), static_cast<int>(this->actual_warning_code().length()),
  3622. ::google::protobuf::internal::WireFormat::SERIALIZE,
  3623. "message.Carrier_data.actual_warning_code");
  3624. target =
  3625. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  3626. 18, this->actual_warning_code(), target);
  3627. }
  3628. // optional string actual_error_description = 19;
  3629. if (cached_has_bits & 0x00000004u) {
  3630. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  3631. this->actual_error_description().data(), static_cast<int>(this->actual_error_description().length()),
  3632. ::google::protobuf::internal::WireFormat::SERIALIZE,
  3633. "message.Carrier_data.actual_error_description");
  3634. target =
  3635. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  3636. 19, this->actual_error_description(), target);
  3637. }
  3638. if (_internal_metadata_.have_unknown_fields()) {
  3639. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  3640. _internal_metadata_.unknown_fields(), target);
  3641. }
  3642. // @@protoc_insertion_point(serialize_to_array_end:message.Carrier_data)
  3643. return target;
  3644. }
  3645. size_t Carrier_data::RequiredFieldsByteSizeFallback() const {
  3646. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Carrier_data)
  3647. size_t total_size = 0;
  3648. if (has_dispatch_device_status()) {
  3649. // required .message.Dispatch_device_status dispatch_device_status = 2;
  3650. total_size += 1 +
  3651. ::google::protobuf::internal::WireFormatLite::EnumSize(this->dispatch_device_status());
  3652. }
  3653. if (has_device_id()) {
  3654. // required int32 device_id = 3;
  3655. total_size += 1 +
  3656. ::google::protobuf::internal::WireFormatLite::Int32Size(
  3657. this->device_id());
  3658. }
  3659. if (has_dispatch_device_type()) {
  3660. // required .message.Dispatch_device_type dispatch_device_type = 1;
  3661. total_size += 1 +
  3662. ::google::protobuf::internal::WireFormatLite::EnumSize(this->dispatch_device_type());
  3663. }
  3664. return total_size;
  3665. }
  3666. size_t Carrier_data::ByteSizeLong() const {
  3667. // @@protoc_insertion_point(message_byte_size_start:message.Carrier_data)
  3668. size_t total_size = 0;
  3669. if (_internal_metadata_.have_unknown_fields()) {
  3670. total_size +=
  3671. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  3672. _internal_metadata_.unknown_fields());
  3673. }
  3674. if (((_has_bits_[0] & 0x00040018) ^ 0x00040018) == 0) { // All required fields are present.
  3675. // required .message.Dispatch_device_status dispatch_device_status = 2;
  3676. total_size += 1 +
  3677. ::google::protobuf::internal::WireFormatLite::EnumSize(this->dispatch_device_status());
  3678. // required int32 device_id = 3;
  3679. total_size += 1 +
  3680. ::google::protobuf::internal::WireFormatLite::Int32Size(
  3681. this->device_id());
  3682. // required .message.Dispatch_device_type dispatch_device_type = 1;
  3683. total_size += 1 +
  3684. ::google::protobuf::internal::WireFormatLite::EnumSize(this->dispatch_device_type());
  3685. } else {
  3686. total_size += RequiredFieldsByteSizeFallback();
  3687. }
  3688. if (_has_bits_[0 / 32] & 7u) {
  3689. // optional string actual_error_code = 17;
  3690. if (has_actual_error_code()) {
  3691. total_size += 2 +
  3692. ::google::protobuf::internal::WireFormatLite::StringSize(
  3693. this->actual_error_code());
  3694. }
  3695. // optional string actual_warning_code = 18;
  3696. if (has_actual_warning_code()) {
  3697. total_size += 2 +
  3698. ::google::protobuf::internal::WireFormatLite::StringSize(
  3699. this->actual_warning_code());
  3700. }
  3701. // optional string actual_error_description = 19;
  3702. if (has_actual_error_description()) {
  3703. total_size += 2 +
  3704. ::google::protobuf::internal::WireFormatLite::StringSize(
  3705. this->actual_error_description());
  3706. }
  3707. }
  3708. if (_has_bits_[0 / 32] & 224u) {
  3709. // optional .message.Hardware_device_status actual_device_status = 4;
  3710. if (has_actual_device_status()) {
  3711. total_size += 1 +
  3712. ::google::protobuf::internal::WireFormatLite::EnumSize(this->actual_device_status());
  3713. }
  3714. // optional .message.Load_status actual_load_status = 5;
  3715. if (has_actual_load_status()) {
  3716. total_size += 1 +
  3717. ::google::protobuf::internal::WireFormatLite::EnumSize(this->actual_load_status());
  3718. }
  3719. // optional int32 actual_coordinates_id = 6;
  3720. if (has_actual_coordinates_id()) {
  3721. total_size += 1 +
  3722. ::google::protobuf::internal::WireFormatLite::Int32Size(
  3723. this->actual_coordinates_id());
  3724. }
  3725. }
  3726. if (_has_bits_[8 / 32] & 65280u) {
  3727. // optional float actual_x = 7;
  3728. if (has_actual_x()) {
  3729. total_size += 1 + 4;
  3730. }
  3731. // optional float actual_y = 8;
  3732. if (has_actual_y()) {
  3733. total_size += 1 + 4;
  3734. }
  3735. // optional float actual_z = 9;
  3736. if (has_actual_z()) {
  3737. total_size += 1 + 4;
  3738. }
  3739. // optional float actual_y1 = 10;
  3740. if (has_actual_y1()) {
  3741. total_size += 1 + 4;
  3742. }
  3743. // optional float actual_y2 = 11;
  3744. if (has_actual_y2()) {
  3745. total_size += 1 + 4;
  3746. }
  3747. // optional .message.Clamp_motion actual_clamp_motion1 = 12;
  3748. if (has_actual_clamp_motion1()) {
  3749. total_size += 1 +
  3750. ::google::protobuf::internal::WireFormatLite::EnumSize(this->actual_clamp_motion1());
  3751. }
  3752. // optional .message.Clamp_motion actual_clamp_motion2 = 13;
  3753. if (has_actual_clamp_motion2()) {
  3754. total_size += 1 +
  3755. ::google::protobuf::internal::WireFormatLite::EnumSize(this->actual_clamp_motion2());
  3756. }
  3757. // optional .message.Small_sports_car_motion actual_small_sports_car_motion = 14;
  3758. if (has_actual_small_sports_car_motion()) {
  3759. total_size += 1 +
  3760. ::google::protobuf::internal::WireFormatLite::EnumSize(this->actual_small_sports_car_motion());
  3761. }
  3762. }
  3763. if (_has_bits_[16 / 32] & 196608u) {
  3764. // optional .message.Joint_motion actual_joint_motion_x1 = 15;
  3765. if (has_actual_joint_motion_x1()) {
  3766. total_size += 1 +
  3767. ::google::protobuf::internal::WireFormatLite::EnumSize(this->actual_joint_motion_x1());
  3768. }
  3769. // optional .message.Joint_motion actual_joint_motion_x2 = 16;
  3770. if (has_actual_joint_motion_x2()) {
  3771. total_size += 2 +
  3772. ::google::protobuf::internal::WireFormatLite::EnumSize(this->actual_joint_motion_x2());
  3773. }
  3774. }
  3775. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  3776. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  3777. _cached_size_ = cached_size;
  3778. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  3779. return total_size;
  3780. }
  3781. void Carrier_data::MergeFrom(const ::google::protobuf::Message& from) {
  3782. // @@protoc_insertion_point(generalized_merge_from_start:message.Carrier_data)
  3783. GOOGLE_DCHECK_NE(&from, this);
  3784. const Carrier_data* source =
  3785. ::google::protobuf::internal::DynamicCastToGenerated<const Carrier_data>(
  3786. &from);
  3787. if (source == NULL) {
  3788. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Carrier_data)
  3789. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  3790. } else {
  3791. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Carrier_data)
  3792. MergeFrom(*source);
  3793. }
  3794. }
  3795. void Carrier_data::MergeFrom(const Carrier_data& from) {
  3796. // @@protoc_insertion_point(class_specific_merge_from_start:message.Carrier_data)
  3797. GOOGLE_DCHECK_NE(&from, this);
  3798. _internal_metadata_.MergeFrom(from._internal_metadata_);
  3799. ::google::protobuf::uint32 cached_has_bits = 0;
  3800. (void) cached_has_bits;
  3801. cached_has_bits = from._has_bits_[0];
  3802. if (cached_has_bits & 255u) {
  3803. if (cached_has_bits & 0x00000001u) {
  3804. set_has_actual_error_code();
  3805. actual_error_code_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.actual_error_code_);
  3806. }
  3807. if (cached_has_bits & 0x00000002u) {
  3808. set_has_actual_warning_code();
  3809. actual_warning_code_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.actual_warning_code_);
  3810. }
  3811. if (cached_has_bits & 0x00000004u) {
  3812. set_has_actual_error_description();
  3813. actual_error_description_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.actual_error_description_);
  3814. }
  3815. if (cached_has_bits & 0x00000008u) {
  3816. dispatch_device_status_ = from.dispatch_device_status_;
  3817. }
  3818. if (cached_has_bits & 0x00000010u) {
  3819. device_id_ = from.device_id_;
  3820. }
  3821. if (cached_has_bits & 0x00000020u) {
  3822. actual_device_status_ = from.actual_device_status_;
  3823. }
  3824. if (cached_has_bits & 0x00000040u) {
  3825. actual_load_status_ = from.actual_load_status_;
  3826. }
  3827. if (cached_has_bits & 0x00000080u) {
  3828. actual_coordinates_id_ = from.actual_coordinates_id_;
  3829. }
  3830. _has_bits_[0] |= cached_has_bits;
  3831. }
  3832. if (cached_has_bits & 65280u) {
  3833. if (cached_has_bits & 0x00000100u) {
  3834. actual_x_ = from.actual_x_;
  3835. }
  3836. if (cached_has_bits & 0x00000200u) {
  3837. actual_y_ = from.actual_y_;
  3838. }
  3839. if (cached_has_bits & 0x00000400u) {
  3840. actual_z_ = from.actual_z_;
  3841. }
  3842. if (cached_has_bits & 0x00000800u) {
  3843. actual_y1_ = from.actual_y1_;
  3844. }
  3845. if (cached_has_bits & 0x00001000u) {
  3846. actual_y2_ = from.actual_y2_;
  3847. }
  3848. if (cached_has_bits & 0x00002000u) {
  3849. actual_clamp_motion1_ = from.actual_clamp_motion1_;
  3850. }
  3851. if (cached_has_bits & 0x00004000u) {
  3852. actual_clamp_motion2_ = from.actual_clamp_motion2_;
  3853. }
  3854. if (cached_has_bits & 0x00008000u) {
  3855. actual_small_sports_car_motion_ = from.actual_small_sports_car_motion_;
  3856. }
  3857. _has_bits_[0] |= cached_has_bits;
  3858. }
  3859. if (cached_has_bits & 458752u) {
  3860. if (cached_has_bits & 0x00010000u) {
  3861. actual_joint_motion_x1_ = from.actual_joint_motion_x1_;
  3862. }
  3863. if (cached_has_bits & 0x00020000u) {
  3864. actual_joint_motion_x2_ = from.actual_joint_motion_x2_;
  3865. }
  3866. if (cached_has_bits & 0x00040000u) {
  3867. dispatch_device_type_ = from.dispatch_device_type_;
  3868. }
  3869. _has_bits_[0] |= cached_has_bits;
  3870. }
  3871. }
  3872. void Carrier_data::CopyFrom(const ::google::protobuf::Message& from) {
  3873. // @@protoc_insertion_point(generalized_copy_from_start:message.Carrier_data)
  3874. if (&from == this) return;
  3875. Clear();
  3876. MergeFrom(from);
  3877. }
  3878. void Carrier_data::CopyFrom(const Carrier_data& from) {
  3879. // @@protoc_insertion_point(class_specific_copy_from_start:message.Carrier_data)
  3880. if (&from == this) return;
  3881. Clear();
  3882. MergeFrom(from);
  3883. }
  3884. bool Carrier_data::IsInitialized() const {
  3885. if ((_has_bits_[0] & 0x00040018) != 0x00040018) return false;
  3886. return true;
  3887. }
  3888. void Carrier_data::Swap(Carrier_data* other) {
  3889. if (other == this) return;
  3890. InternalSwap(other);
  3891. }
  3892. void Carrier_data::InternalSwap(Carrier_data* other) {
  3893. using std::swap;
  3894. actual_error_code_.Swap(&other->actual_error_code_);
  3895. actual_warning_code_.Swap(&other->actual_warning_code_);
  3896. actual_error_description_.Swap(&other->actual_error_description_);
  3897. swap(dispatch_device_status_, other->dispatch_device_status_);
  3898. swap(device_id_, other->device_id_);
  3899. swap(actual_device_status_, other->actual_device_status_);
  3900. swap(actual_load_status_, other->actual_load_status_);
  3901. swap(actual_coordinates_id_, other->actual_coordinates_id_);
  3902. swap(actual_x_, other->actual_x_);
  3903. swap(actual_y_, other->actual_y_);
  3904. swap(actual_z_, other->actual_z_);
  3905. swap(actual_y1_, other->actual_y1_);
  3906. swap(actual_y2_, other->actual_y2_);
  3907. swap(actual_clamp_motion1_, other->actual_clamp_motion1_);
  3908. swap(actual_clamp_motion2_, other->actual_clamp_motion2_);
  3909. swap(actual_small_sports_car_motion_, other->actual_small_sports_car_motion_);
  3910. swap(actual_joint_motion_x1_, other->actual_joint_motion_x1_);
  3911. swap(actual_joint_motion_x2_, other->actual_joint_motion_x2_);
  3912. swap(dispatch_device_type_, other->dispatch_device_type_);
  3913. swap(_has_bits_[0], other->_has_bits_[0]);
  3914. _internal_metadata_.Swap(&other->_internal_metadata_);
  3915. swap(_cached_size_, other->_cached_size_);
  3916. }
  3917. ::google::protobuf::Metadata Carrier_data::GetMetadata() const {
  3918. protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  3919. return ::protobuf_dispatch_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages];
  3920. }
  3921. // ===================================================================
  3922. void Dispatch_manager_status_msg::InitAsDefaultInstance() {
  3923. ::message::_Dispatch_manager_status_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>(
  3924. ::message::Base_info::internal_default_instance());
  3925. }
  3926. void Dispatch_manager_status_msg::clear_base_info() {
  3927. if (base_info_ != NULL) base_info_->Clear();
  3928. clear_has_base_info();
  3929. }
  3930. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  3931. const int Dispatch_manager_status_msg::kBaseInfoFieldNumber;
  3932. const int Dispatch_manager_status_msg::kDispatchIdFieldNumber;
  3933. const int Dispatch_manager_status_msg::kDispatchManagerStatusFieldNumber;
  3934. const int Dispatch_manager_status_msg::kCatcherDataMapFieldNumber;
  3935. const int Dispatch_manager_status_msg::kCarrierDataMapFieldNumber;
  3936. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  3937. Dispatch_manager_status_msg::Dispatch_manager_status_msg()
  3938. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  3939. if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
  3940. ::protobuf_dispatch_5fmessage_2eproto::InitDefaultsDispatch_manager_status_msg();
  3941. }
  3942. SharedCtor();
  3943. // @@protoc_insertion_point(constructor:message.Dispatch_manager_status_msg)
  3944. }
  3945. Dispatch_manager_status_msg::Dispatch_manager_status_msg(const Dispatch_manager_status_msg& from)
  3946. : ::google::protobuf::Message(),
  3947. _internal_metadata_(NULL),
  3948. _has_bits_(from._has_bits_),
  3949. _cached_size_(0),
  3950. catcher_data_map_(from.catcher_data_map_),
  3951. carrier_data_map_(from.carrier_data_map_) {
  3952. _internal_metadata_.MergeFrom(from._internal_metadata_);
  3953. if (from.has_base_info()) {
  3954. base_info_ = new ::message::Base_info(*from.base_info_);
  3955. } else {
  3956. base_info_ = NULL;
  3957. }
  3958. ::memcpy(&dispatch_id_, &from.dispatch_id_,
  3959. static_cast<size_t>(reinterpret_cast<char*>(&dispatch_manager_status_) -
  3960. reinterpret_cast<char*>(&dispatch_id_)) + sizeof(dispatch_manager_status_));
  3961. // @@protoc_insertion_point(copy_constructor:message.Dispatch_manager_status_msg)
  3962. }
  3963. void Dispatch_manager_status_msg::SharedCtor() {
  3964. _cached_size_ = 0;
  3965. ::memset(&base_info_, 0, static_cast<size_t>(
  3966. reinterpret_cast<char*>(&dispatch_manager_status_) -
  3967. reinterpret_cast<char*>(&base_info_)) + sizeof(dispatch_manager_status_));
  3968. }
  3969. Dispatch_manager_status_msg::~Dispatch_manager_status_msg() {
  3970. // @@protoc_insertion_point(destructor:message.Dispatch_manager_status_msg)
  3971. SharedDtor();
  3972. }
  3973. void Dispatch_manager_status_msg::SharedDtor() {
  3974. if (this != internal_default_instance()) delete base_info_;
  3975. }
  3976. void Dispatch_manager_status_msg::SetCachedSize(int size) const {
  3977. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  3978. _cached_size_ = size;
  3979. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  3980. }
  3981. const ::google::protobuf::Descriptor* Dispatch_manager_status_msg::descriptor() {
  3982. ::protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  3983. return ::protobuf_dispatch_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  3984. }
  3985. const Dispatch_manager_status_msg& Dispatch_manager_status_msg::default_instance() {
  3986. ::protobuf_dispatch_5fmessage_2eproto::InitDefaultsDispatch_manager_status_msg();
  3987. return *internal_default_instance();
  3988. }
  3989. Dispatch_manager_status_msg* Dispatch_manager_status_msg::New(::google::protobuf::Arena* arena) const {
  3990. Dispatch_manager_status_msg* n = new Dispatch_manager_status_msg;
  3991. if (arena != NULL) {
  3992. arena->Own(n);
  3993. }
  3994. return n;
  3995. }
  3996. void Dispatch_manager_status_msg::Clear() {
  3997. // @@protoc_insertion_point(message_clear_start:message.Dispatch_manager_status_msg)
  3998. ::google::protobuf::uint32 cached_has_bits = 0;
  3999. // Prevent compiler warnings about cached_has_bits being unused
  4000. (void) cached_has_bits;
  4001. catcher_data_map_.Clear();
  4002. carrier_data_map_.Clear();
  4003. cached_has_bits = _has_bits_[0];
  4004. if (cached_has_bits & 0x00000001u) {
  4005. GOOGLE_DCHECK(base_info_ != NULL);
  4006. base_info_->Clear();
  4007. }
  4008. if (cached_has_bits & 6u) {
  4009. ::memset(&dispatch_id_, 0, static_cast<size_t>(
  4010. reinterpret_cast<char*>(&dispatch_manager_status_) -
  4011. reinterpret_cast<char*>(&dispatch_id_)) + sizeof(dispatch_manager_status_));
  4012. }
  4013. _has_bits_.Clear();
  4014. _internal_metadata_.Clear();
  4015. }
  4016. bool Dispatch_manager_status_msg::MergePartialFromCodedStream(
  4017. ::google::protobuf::io::CodedInputStream* input) {
  4018. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  4019. ::google::protobuf::uint32 tag;
  4020. // @@protoc_insertion_point(parse_start:message.Dispatch_manager_status_msg)
  4021. for (;;) {
  4022. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  4023. tag = p.first;
  4024. if (!p.second) goto handle_unusual;
  4025. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  4026. // required .message.Base_info base_info = 1;
  4027. case 1: {
  4028. if (static_cast< ::google::protobuf::uint8>(tag) ==
  4029. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  4030. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  4031. input, mutable_base_info()));
  4032. } else {
  4033. goto handle_unusual;
  4034. }
  4035. break;
  4036. }
  4037. // required int32 dispatch_id = 2;
  4038. case 2: {
  4039. if (static_cast< ::google::protobuf::uint8>(tag) ==
  4040. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  4041. set_has_dispatch_id();
  4042. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  4043. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  4044. input, &dispatch_id_)));
  4045. } else {
  4046. goto handle_unusual;
  4047. }
  4048. break;
  4049. }
  4050. // required .message.Dispatch_manager_status dispatch_manager_status = 3;
  4051. case 3: {
  4052. if (static_cast< ::google::protobuf::uint8>(tag) ==
  4053. static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
  4054. int value;
  4055. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  4056. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  4057. input, &value)));
  4058. if (::message::Dispatch_manager_status_IsValid(value)) {
  4059. set_dispatch_manager_status(static_cast< ::message::Dispatch_manager_status >(value));
  4060. } else {
  4061. mutable_unknown_fields()->AddVarint(
  4062. 3, static_cast< ::google::protobuf::uint64>(value));
  4063. }
  4064. } else {
  4065. goto handle_unusual;
  4066. }
  4067. break;
  4068. }
  4069. // repeated .message.Catcher_data catcher_data_map = 4;
  4070. case 4: {
  4071. if (static_cast< ::google::protobuf::uint8>(tag) ==
  4072. static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
  4073. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_catcher_data_map()));
  4074. } else {
  4075. goto handle_unusual;
  4076. }
  4077. break;
  4078. }
  4079. // repeated .message.Carrier_data carrier_data_map = 5;
  4080. case 5: {
  4081. if (static_cast< ::google::protobuf::uint8>(tag) ==
  4082. static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
  4083. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_carrier_data_map()));
  4084. } else {
  4085. goto handle_unusual;
  4086. }
  4087. break;
  4088. }
  4089. default: {
  4090. handle_unusual:
  4091. if (tag == 0) {
  4092. goto success;
  4093. }
  4094. DO_(::google::protobuf::internal::WireFormat::SkipField(
  4095. input, tag, _internal_metadata_.mutable_unknown_fields()));
  4096. break;
  4097. }
  4098. }
  4099. }
  4100. success:
  4101. // @@protoc_insertion_point(parse_success:message.Dispatch_manager_status_msg)
  4102. return true;
  4103. failure:
  4104. // @@protoc_insertion_point(parse_failure:message.Dispatch_manager_status_msg)
  4105. return false;
  4106. #undef DO_
  4107. }
  4108. void Dispatch_manager_status_msg::SerializeWithCachedSizes(
  4109. ::google::protobuf::io::CodedOutputStream* output) const {
  4110. // @@protoc_insertion_point(serialize_start:message.Dispatch_manager_status_msg)
  4111. ::google::protobuf::uint32 cached_has_bits = 0;
  4112. (void) cached_has_bits;
  4113. cached_has_bits = _has_bits_[0];
  4114. // required .message.Base_info base_info = 1;
  4115. if (cached_has_bits & 0x00000001u) {
  4116. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  4117. 1, *this->base_info_, output);
  4118. }
  4119. // required int32 dispatch_id = 2;
  4120. if (cached_has_bits & 0x00000002u) {
  4121. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->dispatch_id(), output);
  4122. }
  4123. // required .message.Dispatch_manager_status dispatch_manager_status = 3;
  4124. if (cached_has_bits & 0x00000004u) {
  4125. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  4126. 3, this->dispatch_manager_status(), output);
  4127. }
  4128. // repeated .message.Catcher_data catcher_data_map = 4;
  4129. for (unsigned int i = 0,
  4130. n = static_cast<unsigned int>(this->catcher_data_map_size()); i < n; i++) {
  4131. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  4132. 4, this->catcher_data_map(static_cast<int>(i)), output);
  4133. }
  4134. // repeated .message.Carrier_data carrier_data_map = 5;
  4135. for (unsigned int i = 0,
  4136. n = static_cast<unsigned int>(this->carrier_data_map_size()); i < n; i++) {
  4137. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  4138. 5, this->carrier_data_map(static_cast<int>(i)), output);
  4139. }
  4140. if (_internal_metadata_.have_unknown_fields()) {
  4141. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  4142. _internal_metadata_.unknown_fields(), output);
  4143. }
  4144. // @@protoc_insertion_point(serialize_end:message.Dispatch_manager_status_msg)
  4145. }
  4146. ::google::protobuf::uint8* Dispatch_manager_status_msg::InternalSerializeWithCachedSizesToArray(
  4147. bool deterministic, ::google::protobuf::uint8* target) const {
  4148. (void)deterministic; // Unused
  4149. // @@protoc_insertion_point(serialize_to_array_start:message.Dispatch_manager_status_msg)
  4150. ::google::protobuf::uint32 cached_has_bits = 0;
  4151. (void) cached_has_bits;
  4152. cached_has_bits = _has_bits_[0];
  4153. // required .message.Base_info base_info = 1;
  4154. if (cached_has_bits & 0x00000001u) {
  4155. target = ::google::protobuf::internal::WireFormatLite::
  4156. InternalWriteMessageToArray(
  4157. 1, *this->base_info_, deterministic, target);
  4158. }
  4159. // required int32 dispatch_id = 2;
  4160. if (cached_has_bits & 0x00000002u) {
  4161. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->dispatch_id(), target);
  4162. }
  4163. // required .message.Dispatch_manager_status dispatch_manager_status = 3;
  4164. if (cached_has_bits & 0x00000004u) {
  4165. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  4166. 3, this->dispatch_manager_status(), target);
  4167. }
  4168. // repeated .message.Catcher_data catcher_data_map = 4;
  4169. for (unsigned int i = 0,
  4170. n = static_cast<unsigned int>(this->catcher_data_map_size()); i < n; i++) {
  4171. target = ::google::protobuf::internal::WireFormatLite::
  4172. InternalWriteMessageToArray(
  4173. 4, this->catcher_data_map(static_cast<int>(i)), deterministic, target);
  4174. }
  4175. // repeated .message.Carrier_data carrier_data_map = 5;
  4176. for (unsigned int i = 0,
  4177. n = static_cast<unsigned int>(this->carrier_data_map_size()); i < n; i++) {
  4178. target = ::google::protobuf::internal::WireFormatLite::
  4179. InternalWriteMessageToArray(
  4180. 5, this->carrier_data_map(static_cast<int>(i)), deterministic, target);
  4181. }
  4182. if (_internal_metadata_.have_unknown_fields()) {
  4183. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  4184. _internal_metadata_.unknown_fields(), target);
  4185. }
  4186. // @@protoc_insertion_point(serialize_to_array_end:message.Dispatch_manager_status_msg)
  4187. return target;
  4188. }
  4189. size_t Dispatch_manager_status_msg::RequiredFieldsByteSizeFallback() const {
  4190. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Dispatch_manager_status_msg)
  4191. size_t total_size = 0;
  4192. if (has_base_info()) {
  4193. // required .message.Base_info base_info = 1;
  4194. total_size += 1 +
  4195. ::google::protobuf::internal::WireFormatLite::MessageSize(
  4196. *this->base_info_);
  4197. }
  4198. if (has_dispatch_id()) {
  4199. // required int32 dispatch_id = 2;
  4200. total_size += 1 +
  4201. ::google::protobuf::internal::WireFormatLite::Int32Size(
  4202. this->dispatch_id());
  4203. }
  4204. if (has_dispatch_manager_status()) {
  4205. // required .message.Dispatch_manager_status dispatch_manager_status = 3;
  4206. total_size += 1 +
  4207. ::google::protobuf::internal::WireFormatLite::EnumSize(this->dispatch_manager_status());
  4208. }
  4209. return total_size;
  4210. }
  4211. size_t Dispatch_manager_status_msg::ByteSizeLong() const {
  4212. // @@protoc_insertion_point(message_byte_size_start:message.Dispatch_manager_status_msg)
  4213. size_t total_size = 0;
  4214. if (_internal_metadata_.have_unknown_fields()) {
  4215. total_size +=
  4216. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  4217. _internal_metadata_.unknown_fields());
  4218. }
  4219. if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present.
  4220. // required .message.Base_info base_info = 1;
  4221. total_size += 1 +
  4222. ::google::protobuf::internal::WireFormatLite::MessageSize(
  4223. *this->base_info_);
  4224. // required int32 dispatch_id = 2;
  4225. total_size += 1 +
  4226. ::google::protobuf::internal::WireFormatLite::Int32Size(
  4227. this->dispatch_id());
  4228. // required .message.Dispatch_manager_status dispatch_manager_status = 3;
  4229. total_size += 1 +
  4230. ::google::protobuf::internal::WireFormatLite::EnumSize(this->dispatch_manager_status());
  4231. } else {
  4232. total_size += RequiredFieldsByteSizeFallback();
  4233. }
  4234. // repeated .message.Catcher_data catcher_data_map = 4;
  4235. {
  4236. unsigned int count = static_cast<unsigned int>(this->catcher_data_map_size());
  4237. total_size += 1UL * count;
  4238. for (unsigned int i = 0; i < count; i++) {
  4239. total_size +=
  4240. ::google::protobuf::internal::WireFormatLite::MessageSize(
  4241. this->catcher_data_map(static_cast<int>(i)));
  4242. }
  4243. }
  4244. // repeated .message.Carrier_data carrier_data_map = 5;
  4245. {
  4246. unsigned int count = static_cast<unsigned int>(this->carrier_data_map_size());
  4247. total_size += 1UL * count;
  4248. for (unsigned int i = 0; i < count; i++) {
  4249. total_size +=
  4250. ::google::protobuf::internal::WireFormatLite::MessageSize(
  4251. this->carrier_data_map(static_cast<int>(i)));
  4252. }
  4253. }
  4254. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  4255. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  4256. _cached_size_ = cached_size;
  4257. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  4258. return total_size;
  4259. }
  4260. void Dispatch_manager_status_msg::MergeFrom(const ::google::protobuf::Message& from) {
  4261. // @@protoc_insertion_point(generalized_merge_from_start:message.Dispatch_manager_status_msg)
  4262. GOOGLE_DCHECK_NE(&from, this);
  4263. const Dispatch_manager_status_msg* source =
  4264. ::google::protobuf::internal::DynamicCastToGenerated<const Dispatch_manager_status_msg>(
  4265. &from);
  4266. if (source == NULL) {
  4267. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Dispatch_manager_status_msg)
  4268. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  4269. } else {
  4270. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Dispatch_manager_status_msg)
  4271. MergeFrom(*source);
  4272. }
  4273. }
  4274. void Dispatch_manager_status_msg::MergeFrom(const Dispatch_manager_status_msg& from) {
  4275. // @@protoc_insertion_point(class_specific_merge_from_start:message.Dispatch_manager_status_msg)
  4276. GOOGLE_DCHECK_NE(&from, this);
  4277. _internal_metadata_.MergeFrom(from._internal_metadata_);
  4278. ::google::protobuf::uint32 cached_has_bits = 0;
  4279. (void) cached_has_bits;
  4280. catcher_data_map_.MergeFrom(from.catcher_data_map_);
  4281. carrier_data_map_.MergeFrom(from.carrier_data_map_);
  4282. cached_has_bits = from._has_bits_[0];
  4283. if (cached_has_bits & 7u) {
  4284. if (cached_has_bits & 0x00000001u) {
  4285. mutable_base_info()->::message::Base_info::MergeFrom(from.base_info());
  4286. }
  4287. if (cached_has_bits & 0x00000002u) {
  4288. dispatch_id_ = from.dispatch_id_;
  4289. }
  4290. if (cached_has_bits & 0x00000004u) {
  4291. dispatch_manager_status_ = from.dispatch_manager_status_;
  4292. }
  4293. _has_bits_[0] |= cached_has_bits;
  4294. }
  4295. }
  4296. void Dispatch_manager_status_msg::CopyFrom(const ::google::protobuf::Message& from) {
  4297. // @@protoc_insertion_point(generalized_copy_from_start:message.Dispatch_manager_status_msg)
  4298. if (&from == this) return;
  4299. Clear();
  4300. MergeFrom(from);
  4301. }
  4302. void Dispatch_manager_status_msg::CopyFrom(const Dispatch_manager_status_msg& from) {
  4303. // @@protoc_insertion_point(class_specific_copy_from_start:message.Dispatch_manager_status_msg)
  4304. if (&from == this) return;
  4305. Clear();
  4306. MergeFrom(from);
  4307. }
  4308. bool Dispatch_manager_status_msg::IsInitialized() const {
  4309. if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false;
  4310. if (!::google::protobuf::internal::AllAreInitialized(this->catcher_data_map())) return false;
  4311. if (!::google::protobuf::internal::AllAreInitialized(this->carrier_data_map())) return false;
  4312. if (has_base_info()) {
  4313. if (!this->base_info_->IsInitialized()) return false;
  4314. }
  4315. return true;
  4316. }
  4317. void Dispatch_manager_status_msg::Swap(Dispatch_manager_status_msg* other) {
  4318. if (other == this) return;
  4319. InternalSwap(other);
  4320. }
  4321. void Dispatch_manager_status_msg::InternalSwap(Dispatch_manager_status_msg* other) {
  4322. using std::swap;
  4323. catcher_data_map_.InternalSwap(&other->catcher_data_map_);
  4324. carrier_data_map_.InternalSwap(&other->carrier_data_map_);
  4325. swap(base_info_, other->base_info_);
  4326. swap(dispatch_id_, other->dispatch_id_);
  4327. swap(dispatch_manager_status_, other->dispatch_manager_status_);
  4328. swap(_has_bits_[0], other->_has_bits_[0]);
  4329. _internal_metadata_.Swap(&other->_internal_metadata_);
  4330. swap(_cached_size_, other->_cached_size_);
  4331. }
  4332. ::google::protobuf::Metadata Dispatch_manager_status_msg::GetMetadata() const {
  4333. protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  4334. return ::protobuf_dispatch_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages];
  4335. }
  4336. // ===================================================================
  4337. void Dispatch_manager_data_msg::InitAsDefaultInstance() {
  4338. }
  4339. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  4340. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  4341. Dispatch_manager_data_msg::Dispatch_manager_data_msg()
  4342. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  4343. if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
  4344. ::protobuf_dispatch_5fmessage_2eproto::InitDefaultsDispatch_manager_data_msg();
  4345. }
  4346. SharedCtor();
  4347. // @@protoc_insertion_point(constructor:message.Dispatch_manager_data_msg)
  4348. }
  4349. Dispatch_manager_data_msg::Dispatch_manager_data_msg(const Dispatch_manager_data_msg& from)
  4350. : ::google::protobuf::Message(),
  4351. _internal_metadata_(NULL),
  4352. _has_bits_(from._has_bits_),
  4353. _cached_size_(0) {
  4354. _internal_metadata_.MergeFrom(from._internal_metadata_);
  4355. // @@protoc_insertion_point(copy_constructor:message.Dispatch_manager_data_msg)
  4356. }
  4357. void Dispatch_manager_data_msg::SharedCtor() {
  4358. _cached_size_ = 0;
  4359. }
  4360. Dispatch_manager_data_msg::~Dispatch_manager_data_msg() {
  4361. // @@protoc_insertion_point(destructor:message.Dispatch_manager_data_msg)
  4362. SharedDtor();
  4363. }
  4364. void Dispatch_manager_data_msg::SharedDtor() {
  4365. }
  4366. void Dispatch_manager_data_msg::SetCachedSize(int size) const {
  4367. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  4368. _cached_size_ = size;
  4369. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  4370. }
  4371. const ::google::protobuf::Descriptor* Dispatch_manager_data_msg::descriptor() {
  4372. ::protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  4373. return ::protobuf_dispatch_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  4374. }
  4375. const Dispatch_manager_data_msg& Dispatch_manager_data_msg::default_instance() {
  4376. ::protobuf_dispatch_5fmessage_2eproto::InitDefaultsDispatch_manager_data_msg();
  4377. return *internal_default_instance();
  4378. }
  4379. Dispatch_manager_data_msg* Dispatch_manager_data_msg::New(::google::protobuf::Arena* arena) const {
  4380. Dispatch_manager_data_msg* n = new Dispatch_manager_data_msg;
  4381. if (arena != NULL) {
  4382. arena->Own(n);
  4383. }
  4384. return n;
  4385. }
  4386. void Dispatch_manager_data_msg::Clear() {
  4387. // @@protoc_insertion_point(message_clear_start:message.Dispatch_manager_data_msg)
  4388. ::google::protobuf::uint32 cached_has_bits = 0;
  4389. // Prevent compiler warnings about cached_has_bits being unused
  4390. (void) cached_has_bits;
  4391. _has_bits_.Clear();
  4392. _internal_metadata_.Clear();
  4393. }
  4394. bool Dispatch_manager_data_msg::MergePartialFromCodedStream(
  4395. ::google::protobuf::io::CodedInputStream* input) {
  4396. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  4397. ::google::protobuf::uint32 tag;
  4398. // @@protoc_insertion_point(parse_start:message.Dispatch_manager_data_msg)
  4399. for (;;) {
  4400. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  4401. tag = p.first;
  4402. if (!p.second) goto handle_unusual;
  4403. handle_unusual:
  4404. if (tag == 0) {
  4405. goto success;
  4406. }
  4407. DO_(::google::protobuf::internal::WireFormat::SkipField(
  4408. input, tag, _internal_metadata_.mutable_unknown_fields()));
  4409. }
  4410. success:
  4411. // @@protoc_insertion_point(parse_success:message.Dispatch_manager_data_msg)
  4412. return true;
  4413. failure:
  4414. // @@protoc_insertion_point(parse_failure:message.Dispatch_manager_data_msg)
  4415. return false;
  4416. #undef DO_
  4417. }
  4418. void Dispatch_manager_data_msg::SerializeWithCachedSizes(
  4419. ::google::protobuf::io::CodedOutputStream* output) const {
  4420. // @@protoc_insertion_point(serialize_start:message.Dispatch_manager_data_msg)
  4421. ::google::protobuf::uint32 cached_has_bits = 0;
  4422. (void) cached_has_bits;
  4423. if (_internal_metadata_.have_unknown_fields()) {
  4424. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  4425. _internal_metadata_.unknown_fields(), output);
  4426. }
  4427. // @@protoc_insertion_point(serialize_end:message.Dispatch_manager_data_msg)
  4428. }
  4429. ::google::protobuf::uint8* Dispatch_manager_data_msg::InternalSerializeWithCachedSizesToArray(
  4430. bool deterministic, ::google::protobuf::uint8* target) const {
  4431. (void)deterministic; // Unused
  4432. // @@protoc_insertion_point(serialize_to_array_start:message.Dispatch_manager_data_msg)
  4433. ::google::protobuf::uint32 cached_has_bits = 0;
  4434. (void) cached_has_bits;
  4435. if (_internal_metadata_.have_unknown_fields()) {
  4436. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  4437. _internal_metadata_.unknown_fields(), target);
  4438. }
  4439. // @@protoc_insertion_point(serialize_to_array_end:message.Dispatch_manager_data_msg)
  4440. return target;
  4441. }
  4442. size_t Dispatch_manager_data_msg::ByteSizeLong() const {
  4443. // @@protoc_insertion_point(message_byte_size_start:message.Dispatch_manager_data_msg)
  4444. size_t total_size = 0;
  4445. if (_internal_metadata_.have_unknown_fields()) {
  4446. total_size +=
  4447. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  4448. _internal_metadata_.unknown_fields());
  4449. }
  4450. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  4451. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  4452. _cached_size_ = cached_size;
  4453. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  4454. return total_size;
  4455. }
  4456. void Dispatch_manager_data_msg::MergeFrom(const ::google::protobuf::Message& from) {
  4457. // @@protoc_insertion_point(generalized_merge_from_start:message.Dispatch_manager_data_msg)
  4458. GOOGLE_DCHECK_NE(&from, this);
  4459. const Dispatch_manager_data_msg* source =
  4460. ::google::protobuf::internal::DynamicCastToGenerated<const Dispatch_manager_data_msg>(
  4461. &from);
  4462. if (source == NULL) {
  4463. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Dispatch_manager_data_msg)
  4464. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  4465. } else {
  4466. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Dispatch_manager_data_msg)
  4467. MergeFrom(*source);
  4468. }
  4469. }
  4470. void Dispatch_manager_data_msg::MergeFrom(const Dispatch_manager_data_msg& from) {
  4471. // @@protoc_insertion_point(class_specific_merge_from_start:message.Dispatch_manager_data_msg)
  4472. GOOGLE_DCHECK_NE(&from, this);
  4473. _internal_metadata_.MergeFrom(from._internal_metadata_);
  4474. ::google::protobuf::uint32 cached_has_bits = 0;
  4475. (void) cached_has_bits;
  4476. }
  4477. void Dispatch_manager_data_msg::CopyFrom(const ::google::protobuf::Message& from) {
  4478. // @@protoc_insertion_point(generalized_copy_from_start:message.Dispatch_manager_data_msg)
  4479. if (&from == this) return;
  4480. Clear();
  4481. MergeFrom(from);
  4482. }
  4483. void Dispatch_manager_data_msg::CopyFrom(const Dispatch_manager_data_msg& from) {
  4484. // @@protoc_insertion_point(class_specific_copy_from_start:message.Dispatch_manager_data_msg)
  4485. if (&from == this) return;
  4486. Clear();
  4487. MergeFrom(from);
  4488. }
  4489. bool Dispatch_manager_data_msg::IsInitialized() const {
  4490. return true;
  4491. }
  4492. void Dispatch_manager_data_msg::Swap(Dispatch_manager_data_msg* other) {
  4493. if (other == this) return;
  4494. InternalSwap(other);
  4495. }
  4496. void Dispatch_manager_data_msg::InternalSwap(Dispatch_manager_data_msg* other) {
  4497. using std::swap;
  4498. swap(_has_bits_[0], other->_has_bits_[0]);
  4499. _internal_metadata_.Swap(&other->_internal_metadata_);
  4500. swap(_cached_size_, other->_cached_size_);
  4501. }
  4502. ::google::protobuf::Metadata Dispatch_manager_data_msg::GetMetadata() const {
  4503. protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  4504. return ::protobuf_dispatch_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages];
  4505. }
  4506. // @@protoc_insertion_point(namespace_scope)
  4507. } // namespace message
  4508. // @@protoc_insertion_point(global_scope)