protocol.pb.cc 417 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: protocol.proto
  3. #include "protocol.pb.h"
  4. #include <algorithm>
  5. #include <google/protobuf/io/coded_stream.h>
  6. #include <google/protobuf/extension_set.h>
  7. #include <google/protobuf/wire_format_lite.h>
  8. #include <google/protobuf/descriptor.h>
  9. #include <google/protobuf/generated_message_reflection.h>
  10. #include <google/protobuf/reflection_ops.h>
  11. #include <google/protobuf/wire_format.h>
  12. // @@protoc_insertion_point(includes)
  13. #include <google/protobuf/port_def.inc>
  14. PROTOBUF_PRAGMA_INIT_SEG
  15. namespace RemoNet {
  16. constexpr CSAdd::CSAdd(
  17. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  18. : serial_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  19. , name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  20. , type_(0){}
  21. struct CSAddDefaultTypeInternal {
  22. constexpr CSAddDefaultTypeInternal()
  23. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  24. ~CSAddDefaultTypeInternal() {}
  25. union {
  26. CSAdd _instance;
  27. };
  28. };
  29. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CSAddDefaultTypeInternal _CSAdd_default_instance_;
  30. constexpr SCAdd::SCAdd(
  31. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  32. : name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  33. , ret_(false)
  34. , uid_(0)
  35. , cid_(0){}
  36. struct SCAddDefaultTypeInternal {
  37. constexpr SCAddDefaultTypeInternal()
  38. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  39. ~SCAddDefaultTypeInternal() {}
  40. union {
  41. SCAdd _instance;
  42. };
  43. };
  44. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SCAddDefaultTypeInternal _SCAdd_default_instance_;
  45. constexpr SCKickOff::SCKickOff(
  46. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){}
  47. struct SCKickOffDefaultTypeInternal {
  48. constexpr SCKickOffDefaultTypeInternal()
  49. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  50. ~SCKickOffDefaultTypeInternal() {}
  51. union {
  52. SCKickOff _instance;
  53. };
  54. };
  55. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SCKickOffDefaultTypeInternal _SCKickOff_default_instance_;
  56. constexpr Robot::Robot(
  57. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  58. : name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  59. , rid_(0)
  60. , type_(0)
  61. , state_(0)
  62. {}
  63. struct RobotDefaultTypeInternal {
  64. constexpr RobotDefaultTypeInternal()
  65. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  66. ~RobotDefaultTypeInternal() {}
  67. union {
  68. Robot _instance;
  69. };
  70. };
  71. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT RobotDefaultTypeInternal _Robot_default_instance_;
  72. constexpr CSRobot::CSRobot(
  73. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){}
  74. struct CSRobotDefaultTypeInternal {
  75. constexpr CSRobotDefaultTypeInternal()
  76. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  77. ~CSRobotDefaultTypeInternal() {}
  78. union {
  79. CSRobot _instance;
  80. };
  81. };
  82. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CSRobotDefaultTypeInternal _CSRobot_default_instance_;
  83. constexpr SCRobot::SCRobot(
  84. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  85. : robot_(){}
  86. struct SCRobotDefaultTypeInternal {
  87. constexpr SCRobotDefaultTypeInternal()
  88. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  89. ~SCRobotDefaultTypeInternal() {}
  90. union {
  91. SCRobot _instance;
  92. };
  93. };
  94. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SCRobotDefaultTypeInternal _SCRobot_default_instance_;
  95. constexpr CSSign::CSSign(
  96. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  97. : account_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  98. , password_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){}
  99. struct CSSignDefaultTypeInternal {
  100. constexpr CSSignDefaultTypeInternal()
  101. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  102. ~CSSignDefaultTypeInternal() {}
  103. union {
  104. CSSign _instance;
  105. };
  106. };
  107. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CSSignDefaultTypeInternal _CSSign_default_instance_;
  108. constexpr SCSign::SCSign(
  109. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  110. : name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  111. , ret_(false)
  112. , uid_(0)
  113. , cid_(0){}
  114. struct SCSignDefaultTypeInternal {
  115. constexpr SCSignDefaultTypeInternal()
  116. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  117. ~SCSignDefaultTypeInternal() {}
  118. union {
  119. SCSign _instance;
  120. };
  121. };
  122. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SCSignDefaultTypeInternal _SCSign_default_instance_;
  123. constexpr CSReq::CSReq(
  124. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  125. : peer_(0)
  126. , index_(0)
  127. , egotype_(0){}
  128. struct CSReqDefaultTypeInternal {
  129. constexpr CSReqDefaultTypeInternal()
  130. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  131. ~CSReqDefaultTypeInternal() {}
  132. union {
  133. CSReq _instance;
  134. };
  135. };
  136. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CSReqDefaultTypeInternal _CSReq_default_instance_;
  137. constexpr SCReq::SCReq(
  138. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  139. : desc_(0)
  140. , peer_(0)
  141. , egotype_(0){}
  142. struct SCReqDefaultTypeInternal {
  143. constexpr SCReqDefaultTypeInternal()
  144. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  145. ~SCReqDefaultTypeInternal() {}
  146. union {
  147. SCReq _instance;
  148. };
  149. };
  150. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SCReqDefaultTypeInternal _SCReq_default_instance_;
  151. constexpr CSRep::CSRep(
  152. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  153. : desc_(0)
  154. , peer_(0)
  155. , index_(0)
  156. , egotype_(0){}
  157. struct CSRepDefaultTypeInternal {
  158. constexpr CSRepDefaultTypeInternal()
  159. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  160. ~CSRepDefaultTypeInternal() {}
  161. union {
  162. CSRep _instance;
  163. };
  164. };
  165. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CSRepDefaultTypeInternal _CSRep_default_instance_;
  166. constexpr SCRep::SCRep(
  167. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  168. : desc_(0)
  169. , index_(0)
  170. , egotype_(0)
  171. , peer_(0){}
  172. struct SCRepDefaultTypeInternal {
  173. constexpr SCRepDefaultTypeInternal()
  174. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  175. ~SCRepDefaultTypeInternal() {}
  176. union {
  177. SCRep _instance;
  178. };
  179. };
  180. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SCRepDefaultTypeInternal _SCRep_default_instance_;
  181. constexpr Offer::Offer(
  182. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  183. : type_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  184. , sdp_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  185. , index_(0)
  186. , peer_(0){}
  187. struct OfferDefaultTypeInternal {
  188. constexpr OfferDefaultTypeInternal()
  189. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  190. ~OfferDefaultTypeInternal() {}
  191. union {
  192. Offer _instance;
  193. };
  194. };
  195. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OfferDefaultTypeInternal _Offer_default_instance_;
  196. constexpr Answer::Answer(
  197. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  198. : type_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  199. , sdp_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  200. , index_(0)
  201. , peer_(0){}
  202. struct AnswerDefaultTypeInternal {
  203. constexpr AnswerDefaultTypeInternal()
  204. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  205. ~AnswerDefaultTypeInternal() {}
  206. union {
  207. Answer _instance;
  208. };
  209. };
  210. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AnswerDefaultTypeInternal _Answer_default_instance_;
  211. constexpr Candidate::Candidate(
  212. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  213. : type_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  214. , candidate_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  215. , sdpmid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  216. , index_(0)
  217. , peer_(0)
  218. , sdpmlineindex_(0)
  219. , egotype_(0){}
  220. struct CandidateDefaultTypeInternal {
  221. constexpr CandidateDefaultTypeInternal()
  222. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  223. ~CandidateDefaultTypeInternal() {}
  224. union {
  225. Candidate _instance;
  226. };
  227. };
  228. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CandidateDefaultTypeInternal _Candidate_default_instance_;
  229. constexpr Leave::Leave(
  230. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  231. : peer_(0)
  232. , egotype_(0){}
  233. struct LeaveDefaultTypeInternal {
  234. constexpr LeaveDefaultTypeInternal()
  235. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  236. ~LeaveDefaultTypeInternal() {}
  237. union {
  238. Leave _instance;
  239. };
  240. };
  241. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT LeaveDefaultTypeInternal _Leave_default_instance_;
  242. constexpr Close::Close(
  243. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  244. : peer_(0)
  245. , egotype_(0)
  246. , index_(0){}
  247. struct CloseDefaultTypeInternal {
  248. constexpr CloseDefaultTypeInternal()
  249. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  250. ~CloseDefaultTypeInternal() {}
  251. union {
  252. Close _instance;
  253. };
  254. };
  255. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CloseDefaultTypeInternal _Close_default_instance_;
  256. constexpr TestTextReq::TestTextReq(
  257. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  258. : text_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){}
  259. struct TestTextReqDefaultTypeInternal {
  260. constexpr TestTextReqDefaultTypeInternal()
  261. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  262. ~TestTextReqDefaultTypeInternal() {}
  263. union {
  264. TestTextReq _instance;
  265. };
  266. };
  267. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT TestTextReqDefaultTypeInternal _TestTextReq_default_instance_;
  268. constexpr CanMessage::CanMessage(
  269. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  270. : data_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  271. , head_(0)
  272. , canid_(0){}
  273. struct CanMessageDefaultTypeInternal {
  274. constexpr CanMessageDefaultTypeInternal()
  275. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  276. ~CanMessageDefaultTypeInternal() {}
  277. union {
  278. CanMessage _instance;
  279. };
  280. };
  281. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CanMessageDefaultTypeInternal _CanMessage_default_instance_;
  282. constexpr CCCanMesage::CCCanMesage(
  283. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  284. : message_()
  285. , islidar_(false){}
  286. struct CCCanMesageDefaultTypeInternal {
  287. constexpr CCCanMesageDefaultTypeInternal()
  288. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  289. ~CCCanMesageDefaultTypeInternal() {}
  290. union {
  291. CCCanMesage _instance;
  292. };
  293. };
  294. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CCCanMesageDefaultTypeInternal _CCCanMesage_default_instance_;
  295. constexpr Wiper::Wiper(
  296. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  297. : ret_(false){}
  298. struct WiperDefaultTypeInternal {
  299. constexpr WiperDefaultTypeInternal()
  300. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  301. ~WiperDefaultTypeInternal() {}
  302. union {
  303. Wiper _instance;
  304. };
  305. };
  306. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT WiperDefaultTypeInternal _Wiper_default_instance_;
  307. constexpr FrontLight::FrontLight(
  308. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  309. : ret_(false){}
  310. struct FrontLightDefaultTypeInternal {
  311. constexpr FrontLightDefaultTypeInternal()
  312. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  313. ~FrontLightDefaultTypeInternal() {}
  314. union {
  315. FrontLight _instance;
  316. };
  317. };
  318. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT FrontLightDefaultTypeInternal _FrontLight_default_instance_;
  319. constexpr BackLight::BackLight(
  320. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  321. : ret_(false){}
  322. struct BackLightDefaultTypeInternal {
  323. constexpr BackLightDefaultTypeInternal()
  324. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  325. ~BackLightDefaultTypeInternal() {}
  326. union {
  327. BackLight _instance;
  328. };
  329. };
  330. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT BackLightDefaultTypeInternal _BackLight_default_instance_;
  331. constexpr CCAskDataChannel::CCAskDataChannel(
  332. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){}
  333. struct CCAskDataChannelDefaultTypeInternal {
  334. constexpr CCAskDataChannelDefaultTypeInternal()
  335. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  336. ~CCAskDataChannelDefaultTypeInternal() {}
  337. union {
  338. CCAskDataChannel _instance;
  339. };
  340. };
  341. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CCAskDataChannelDefaultTypeInternal _CCAskDataChannel_default_instance_;
  342. constexpr IMuMessage::IMuMessage(
  343. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  344. : rx_(0)
  345. , ry_(0){}
  346. struct IMuMessageDefaultTypeInternal {
  347. constexpr IMuMessageDefaultTypeInternal()
  348. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  349. ~IMuMessageDefaultTypeInternal() {}
  350. union {
  351. IMuMessage _instance;
  352. };
  353. };
  354. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT IMuMessageDefaultTypeInternal _IMuMessage_default_instance_;
  355. constexpr CCPing::CCPing(
  356. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  357. : tick_(int64_t{0}){}
  358. struct CCPingDefaultTypeInternal {
  359. constexpr CCPingDefaultTypeInternal()
  360. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  361. ~CCPingDefaultTypeInternal() {}
  362. union {
  363. CCPing _instance;
  364. };
  365. };
  366. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CCPingDefaultTypeInternal _CCPing_default_instance_;
  367. constexpr CCRadarMessage::CCRadarMessage(
  368. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  369. : radar0_(0)
  370. , radar1_(0)
  371. , radar2_(0)
  372. , radar3_(0)
  373. , radar4_(0)
  374. , radar5_(0)
  375. , radar6_(0)
  376. , radar7_(0){}
  377. struct CCRadarMessageDefaultTypeInternal {
  378. constexpr CCRadarMessageDefaultTypeInternal()
  379. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  380. ~CCRadarMessageDefaultTypeInternal() {}
  381. union {
  382. CCRadarMessage _instance;
  383. };
  384. };
  385. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CCRadarMessageDefaultTypeInternal _CCRadarMessage_default_instance_;
  386. constexpr CCRobotAnalog::CCRobotAnalog(
  387. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  388. : steer_(0)
  389. , arm_(0)
  390. , bucket_(0)
  391. , throttle_(0)
  392. , brake_(0)
  393. , gears_(0)
  394. , emergency_(false)
  395. , resume_(false)
  396. , frontlight_(false)
  397. , backlight_(false)
  398. , directionlight_(0)
  399. , wipe_(false)
  400. , buzzer_(false)
  401. , gears_d_(0)
  402. {}
  403. struct CCRobotAnalogDefaultTypeInternal {
  404. constexpr CCRobotAnalogDefaultTypeInternal()
  405. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  406. ~CCRobotAnalogDefaultTypeInternal() {}
  407. union {
  408. CCRobotAnalog _instance;
  409. };
  410. };
  411. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CCRobotAnalogDefaultTypeInternal _CCRobotAnalog_default_instance_;
  412. constexpr CCBootStrapReq::CCBootStrapReq(
  413. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){}
  414. struct CCBootStrapReqDefaultTypeInternal {
  415. constexpr CCBootStrapReqDefaultTypeInternal()
  416. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  417. ~CCBootStrapReqDefaultTypeInternal() {}
  418. union {
  419. CCBootStrapReq _instance;
  420. };
  421. };
  422. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CCBootStrapReqDefaultTypeInternal _CCBootStrapReq_default_instance_;
  423. constexpr CCBooStrapRep::CCBooStrapRep(
  424. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  425. : ret_(false){}
  426. struct CCBooStrapRepDefaultTypeInternal {
  427. constexpr CCBooStrapRepDefaultTypeInternal()
  428. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  429. ~CCBooStrapRepDefaultTypeInternal() {}
  430. union {
  431. CCBooStrapRep _instance;
  432. };
  433. };
  434. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CCBooStrapRepDefaultTypeInternal _CCBooStrapRep_default_instance_;
  435. constexpr CCStartupReq::CCStartupReq(
  436. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){}
  437. struct CCStartupReqDefaultTypeInternal {
  438. constexpr CCStartupReqDefaultTypeInternal()
  439. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  440. ~CCStartupReqDefaultTypeInternal() {}
  441. union {
  442. CCStartupReq _instance;
  443. };
  444. };
  445. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CCStartupReqDefaultTypeInternal _CCStartupReq_default_instance_;
  446. constexpr CCStartupRep::CCStartupRep(
  447. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  448. : ret_(false){}
  449. struct CCStartupRepDefaultTypeInternal {
  450. constexpr CCStartupRepDefaultTypeInternal()
  451. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  452. ~CCStartupRepDefaultTypeInternal() {}
  453. union {
  454. CCStartupRep _instance;
  455. };
  456. };
  457. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CCStartupRepDefaultTypeInternal _CCStartupRep_default_instance_;
  458. constexpr CCSwitch::CCSwitch(
  459. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  460. : front_(false){}
  461. struct CCSwitchDefaultTypeInternal {
  462. constexpr CCSwitchDefaultTypeInternal()
  463. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  464. ~CCSwitchDefaultTypeInternal() {}
  465. union {
  466. CCSwitch _instance;
  467. };
  468. };
  469. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CCSwitchDefaultTypeInternal _CCSwitch_default_instance_;
  470. constexpr LidarPoint::LidarPoint(
  471. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  472. : data_()
  473. , frame_id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  474. , timestamp_(0)
  475. , seq_(0u)
  476. , height_(0u)
  477. , width_(0u)
  478. , is_dense_(false)
  479. , is_left_(false){}
  480. struct LidarPointDefaultTypeInternal {
  481. constexpr LidarPointDefaultTypeInternal()
  482. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  483. ~LidarPointDefaultTypeInternal() {}
  484. union {
  485. LidarPoint _instance;
  486. };
  487. };
  488. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT LidarPointDefaultTypeInternal _LidarPoint_default_instance_;
  489. constexpr SensorStop::SensorStop(
  490. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){}
  491. struct SensorStopDefaultTypeInternal {
  492. constexpr SensorStopDefaultTypeInternal()
  493. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  494. ~SensorStopDefaultTypeInternal() {}
  495. union {
  496. SensorStop _instance;
  497. };
  498. };
  499. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SensorStopDefaultTypeInternal _SensorStop_default_instance_;
  500. constexpr StopAck::StopAck(
  501. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){}
  502. struct StopAckDefaultTypeInternal {
  503. constexpr StopAckDefaultTypeInternal()
  504. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  505. ~StopAckDefaultTypeInternal() {}
  506. union {
  507. StopAck _instance;
  508. };
  509. };
  510. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT StopAckDefaultTypeInternal _StopAck_default_instance_;
  511. constexpr CCManipulation::CCManipulation(
  512. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  513. : sensor_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  514. , car_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){}
  515. struct CCManipulationDefaultTypeInternal {
  516. constexpr CCManipulationDefaultTypeInternal()
  517. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  518. ~CCManipulationDefaultTypeInternal() {}
  519. union {
  520. CCManipulation _instance;
  521. };
  522. };
  523. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CCManipulationDefaultTypeInternal _CCManipulation_default_instance_;
  524. constexpr SCAddRobot::SCAddRobot(
  525. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  526. : robot_(nullptr){}
  527. struct SCAddRobotDefaultTypeInternal {
  528. constexpr SCAddRobotDefaultTypeInternal()
  529. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  530. ~SCAddRobotDefaultTypeInternal() {}
  531. union {
  532. SCAddRobot _instance;
  533. };
  534. };
  535. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SCAddRobotDefaultTypeInternal _SCAddRobot_default_instance_;
  536. constexpr SCDelRobot::SCDelRobot(
  537. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  538. : peer_(0)
  539. , egotype_(0){}
  540. struct SCDelRobotDefaultTypeInternal {
  541. constexpr SCDelRobotDefaultTypeInternal()
  542. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  543. ~SCDelRobotDefaultTypeInternal() {}
  544. union {
  545. SCDelRobot _instance;
  546. };
  547. };
  548. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SCDelRobotDefaultTypeInternal _SCDelRobot_default_instance_;
  549. constexpr State::State(
  550. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  551. : error_buff_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  552. , work_pressure_(0)
  553. , brake_pressure_(0)
  554. , gearbox_oil_temp_(0)
  555. , gearbox_oil_pressure_(0)
  556. , engine_rpm_(0)
  557. , speed_(0)
  558. , gear_(0)
  559. , engine_pressure_(0)
  560. , cold_water_(0)
  561. , steer_angle_(0)
  562. , left_lock_(0)
  563. , right_lock_(0)
  564. , engine_time_(0)
  565. , wire_sensor_l_(0)
  566. , wire_sensor_r_(0)
  567. , fuel_level_(0)
  568. , lock_switch_l_(0)
  569. , lock_switch_r_(0)
  570. , tip_limit_(0)
  571. , turn_left_(0)
  572. , turn_right_(0)
  573. , hight_beam_(0)
  574. , low_beam_(0)
  575. , parking_(0)
  576. , brake_(0)
  577. , back_car_(0)
  578. , front_work_lamp_(0)
  579. , rear_work_lamp_(0)
  580. , cargo_weight_(0)
  581. , system_vol_(0)
  582. , f_gear_(0)
  583. , gear_1_(0)
  584. , outgrigger_l_(0)
  585. , outgrigger_r_(0)
  586. , tip_pressure_(0){}
  587. struct StateDefaultTypeInternal {
  588. constexpr StateDefaultTypeInternal()
  589. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  590. ~StateDefaultTypeInternal() {}
  591. union {
  592. State _instance;
  593. };
  594. };
  595. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT StateDefaultTypeInternal _State_default_instance_;
  596. constexpr can_net_frame::can_net_frame(
  597. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  598. : data_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  599. , dlc_(0)
  600. , canid_(0){}
  601. struct can_net_frameDefaultTypeInternal {
  602. constexpr can_net_frameDefaultTypeInternal()
  603. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  604. ~can_net_frameDefaultTypeInternal() {}
  605. union {
  606. can_net_frame _instance;
  607. };
  608. };
  609. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT can_net_frameDefaultTypeInternal _can_net_frame_default_instance_;
  610. constexpr CCCanMsg::CCCanMsg(
  611. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  612. : frams_(){}
  613. struct CCCanMsgDefaultTypeInternal {
  614. constexpr CCCanMsgDefaultTypeInternal()
  615. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  616. ~CCCanMsgDefaultTypeInternal() {}
  617. union {
  618. CCCanMsg _instance;
  619. };
  620. };
  621. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CCCanMsgDefaultTypeInternal _CCCanMsg_default_instance_;
  622. constexpr vehicle_data::vehicle_data(
  623. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  624. : dlc_(0){}
  625. struct vehicle_dataDefaultTypeInternal {
  626. constexpr vehicle_dataDefaultTypeInternal()
  627. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  628. ~vehicle_dataDefaultTypeInternal() {}
  629. union {
  630. vehicle_data _instance;
  631. };
  632. };
  633. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT vehicle_dataDefaultTypeInternal _vehicle_data_default_instance_;
  634. constexpr vehicle_QT::vehicle_QT(
  635. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  636. : _vehicle_data_(){}
  637. struct vehicle_QTDefaultTypeInternal {
  638. constexpr vehicle_QTDefaultTypeInternal()
  639. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  640. ~vehicle_QTDefaultTypeInternal() {}
  641. union {
  642. vehicle_QT _instance;
  643. };
  644. };
  645. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT vehicle_QTDefaultTypeInternal _vehicle_QT_default_instance_;
  646. } // namespace RemoNet
  647. static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_protocol_2eproto[44];
  648. static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_protocol_2eproto[8];
  649. static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_protocol_2eproto = nullptr;
  650. const uint32_t TableStruct_protocol_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  651. ~0u, // no _has_bits_
  652. PROTOBUF_FIELD_OFFSET(::RemoNet::CSAdd, _internal_metadata_),
  653. ~0u, // no _extensions_
  654. ~0u, // no _oneof_case_
  655. ~0u, // no _weak_field_map_
  656. ~0u, // no _inlined_string_donated_
  657. PROTOBUF_FIELD_OFFSET(::RemoNet::CSAdd, serial_),
  658. PROTOBUF_FIELD_OFFSET(::RemoNet::CSAdd, type_),
  659. PROTOBUF_FIELD_OFFSET(::RemoNet::CSAdd, name_),
  660. ~0u, // no _has_bits_
  661. PROTOBUF_FIELD_OFFSET(::RemoNet::SCAdd, _internal_metadata_),
  662. ~0u, // no _extensions_
  663. ~0u, // no _oneof_case_
  664. ~0u, // no _weak_field_map_
  665. ~0u, // no _inlined_string_donated_
  666. PROTOBUF_FIELD_OFFSET(::RemoNet::SCAdd, ret_),
  667. PROTOBUF_FIELD_OFFSET(::RemoNet::SCAdd, uid_),
  668. PROTOBUF_FIELD_OFFSET(::RemoNet::SCAdd, cid_),
  669. PROTOBUF_FIELD_OFFSET(::RemoNet::SCAdd, name_),
  670. ~0u, // no _has_bits_
  671. PROTOBUF_FIELD_OFFSET(::RemoNet::SCKickOff, _internal_metadata_),
  672. ~0u, // no _extensions_
  673. ~0u, // no _oneof_case_
  674. ~0u, // no _weak_field_map_
  675. ~0u, // no _inlined_string_donated_
  676. ~0u, // no _has_bits_
  677. PROTOBUF_FIELD_OFFSET(::RemoNet::Robot, _internal_metadata_),
  678. ~0u, // no _extensions_
  679. ~0u, // no _oneof_case_
  680. ~0u, // no _weak_field_map_
  681. ~0u, // no _inlined_string_donated_
  682. PROTOBUF_FIELD_OFFSET(::RemoNet::Robot, rid_),
  683. PROTOBUF_FIELD_OFFSET(::RemoNet::Robot, name_),
  684. PROTOBUF_FIELD_OFFSET(::RemoNet::Robot, type_),
  685. PROTOBUF_FIELD_OFFSET(::RemoNet::Robot, state_),
  686. ~0u, // no _has_bits_
  687. PROTOBUF_FIELD_OFFSET(::RemoNet::CSRobot, _internal_metadata_),
  688. ~0u, // no _extensions_
  689. ~0u, // no _oneof_case_
  690. ~0u, // no _weak_field_map_
  691. ~0u, // no _inlined_string_donated_
  692. ~0u, // no _has_bits_
  693. PROTOBUF_FIELD_OFFSET(::RemoNet::SCRobot, _internal_metadata_),
  694. ~0u, // no _extensions_
  695. ~0u, // no _oneof_case_
  696. ~0u, // no _weak_field_map_
  697. ~0u, // no _inlined_string_donated_
  698. PROTOBUF_FIELD_OFFSET(::RemoNet::SCRobot, robot_),
  699. ~0u, // no _has_bits_
  700. PROTOBUF_FIELD_OFFSET(::RemoNet::CSSign, _internal_metadata_),
  701. ~0u, // no _extensions_
  702. ~0u, // no _oneof_case_
  703. ~0u, // no _weak_field_map_
  704. ~0u, // no _inlined_string_donated_
  705. PROTOBUF_FIELD_OFFSET(::RemoNet::CSSign, account_),
  706. PROTOBUF_FIELD_OFFSET(::RemoNet::CSSign, password_),
  707. ~0u, // no _has_bits_
  708. PROTOBUF_FIELD_OFFSET(::RemoNet::SCSign, _internal_metadata_),
  709. ~0u, // no _extensions_
  710. ~0u, // no _oneof_case_
  711. ~0u, // no _weak_field_map_
  712. ~0u, // no _inlined_string_donated_
  713. PROTOBUF_FIELD_OFFSET(::RemoNet::SCSign, ret_),
  714. PROTOBUF_FIELD_OFFSET(::RemoNet::SCSign, uid_),
  715. PROTOBUF_FIELD_OFFSET(::RemoNet::SCSign, cid_),
  716. PROTOBUF_FIELD_OFFSET(::RemoNet::SCSign, name_),
  717. ~0u, // no _has_bits_
  718. PROTOBUF_FIELD_OFFSET(::RemoNet::CSReq, _internal_metadata_),
  719. ~0u, // no _extensions_
  720. ~0u, // no _oneof_case_
  721. ~0u, // no _weak_field_map_
  722. ~0u, // no _inlined_string_donated_
  723. PROTOBUF_FIELD_OFFSET(::RemoNet::CSReq, peer_),
  724. PROTOBUF_FIELD_OFFSET(::RemoNet::CSReq, index_),
  725. PROTOBUF_FIELD_OFFSET(::RemoNet::CSReq, egotype_),
  726. ~0u, // no _has_bits_
  727. PROTOBUF_FIELD_OFFSET(::RemoNet::SCReq, _internal_metadata_),
  728. ~0u, // no _extensions_
  729. ~0u, // no _oneof_case_
  730. ~0u, // no _weak_field_map_
  731. ~0u, // no _inlined_string_donated_
  732. PROTOBUF_FIELD_OFFSET(::RemoNet::SCReq, desc_),
  733. PROTOBUF_FIELD_OFFSET(::RemoNet::SCReq, peer_),
  734. PROTOBUF_FIELD_OFFSET(::RemoNet::SCReq, egotype_),
  735. ~0u, // no _has_bits_
  736. PROTOBUF_FIELD_OFFSET(::RemoNet::CSRep, _internal_metadata_),
  737. ~0u, // no _extensions_
  738. ~0u, // no _oneof_case_
  739. ~0u, // no _weak_field_map_
  740. ~0u, // no _inlined_string_donated_
  741. PROTOBUF_FIELD_OFFSET(::RemoNet::CSRep, desc_),
  742. PROTOBUF_FIELD_OFFSET(::RemoNet::CSRep, peer_),
  743. PROTOBUF_FIELD_OFFSET(::RemoNet::CSRep, index_),
  744. PROTOBUF_FIELD_OFFSET(::RemoNet::CSRep, egotype_),
  745. ~0u, // no _has_bits_
  746. PROTOBUF_FIELD_OFFSET(::RemoNet::SCRep, _internal_metadata_),
  747. ~0u, // no _extensions_
  748. ~0u, // no _oneof_case_
  749. ~0u, // no _weak_field_map_
  750. ~0u, // no _inlined_string_donated_
  751. PROTOBUF_FIELD_OFFSET(::RemoNet::SCRep, desc_),
  752. PROTOBUF_FIELD_OFFSET(::RemoNet::SCRep, index_),
  753. PROTOBUF_FIELD_OFFSET(::RemoNet::SCRep, egotype_),
  754. PROTOBUF_FIELD_OFFSET(::RemoNet::SCRep, peer_),
  755. ~0u, // no _has_bits_
  756. PROTOBUF_FIELD_OFFSET(::RemoNet::Offer, _internal_metadata_),
  757. ~0u, // no _extensions_
  758. ~0u, // no _oneof_case_
  759. ~0u, // no _weak_field_map_
  760. ~0u, // no _inlined_string_donated_
  761. PROTOBUF_FIELD_OFFSET(::RemoNet::Offer, index_),
  762. PROTOBUF_FIELD_OFFSET(::RemoNet::Offer, peer_),
  763. PROTOBUF_FIELD_OFFSET(::RemoNet::Offer, type_),
  764. PROTOBUF_FIELD_OFFSET(::RemoNet::Offer, sdp_),
  765. ~0u, // no _has_bits_
  766. PROTOBUF_FIELD_OFFSET(::RemoNet::Answer, _internal_metadata_),
  767. ~0u, // no _extensions_
  768. ~0u, // no _oneof_case_
  769. ~0u, // no _weak_field_map_
  770. ~0u, // no _inlined_string_donated_
  771. PROTOBUF_FIELD_OFFSET(::RemoNet::Answer, index_),
  772. PROTOBUF_FIELD_OFFSET(::RemoNet::Answer, peer_),
  773. PROTOBUF_FIELD_OFFSET(::RemoNet::Answer, type_),
  774. PROTOBUF_FIELD_OFFSET(::RemoNet::Answer, sdp_),
  775. ~0u, // no _has_bits_
  776. PROTOBUF_FIELD_OFFSET(::RemoNet::Candidate, _internal_metadata_),
  777. ~0u, // no _extensions_
  778. ~0u, // no _oneof_case_
  779. ~0u, // no _weak_field_map_
  780. ~0u, // no _inlined_string_donated_
  781. PROTOBUF_FIELD_OFFSET(::RemoNet::Candidate, index_),
  782. PROTOBUF_FIELD_OFFSET(::RemoNet::Candidate, peer_),
  783. PROTOBUF_FIELD_OFFSET(::RemoNet::Candidate, type_),
  784. PROTOBUF_FIELD_OFFSET(::RemoNet::Candidate, candidate_),
  785. PROTOBUF_FIELD_OFFSET(::RemoNet::Candidate, sdpmlineindex_),
  786. PROTOBUF_FIELD_OFFSET(::RemoNet::Candidate, sdpmid_),
  787. PROTOBUF_FIELD_OFFSET(::RemoNet::Candidate, egotype_),
  788. ~0u, // no _has_bits_
  789. PROTOBUF_FIELD_OFFSET(::RemoNet::Leave, _internal_metadata_),
  790. ~0u, // no _extensions_
  791. ~0u, // no _oneof_case_
  792. ~0u, // no _weak_field_map_
  793. ~0u, // no _inlined_string_donated_
  794. PROTOBUF_FIELD_OFFSET(::RemoNet::Leave, peer_),
  795. PROTOBUF_FIELD_OFFSET(::RemoNet::Leave, egotype_),
  796. ~0u, // no _has_bits_
  797. PROTOBUF_FIELD_OFFSET(::RemoNet::Close, _internal_metadata_),
  798. ~0u, // no _extensions_
  799. ~0u, // no _oneof_case_
  800. ~0u, // no _weak_field_map_
  801. ~0u, // no _inlined_string_donated_
  802. PROTOBUF_FIELD_OFFSET(::RemoNet::Close, peer_),
  803. PROTOBUF_FIELD_OFFSET(::RemoNet::Close, egotype_),
  804. PROTOBUF_FIELD_OFFSET(::RemoNet::Close, index_),
  805. ~0u, // no _has_bits_
  806. PROTOBUF_FIELD_OFFSET(::RemoNet::TestTextReq, _internal_metadata_),
  807. ~0u, // no _extensions_
  808. ~0u, // no _oneof_case_
  809. ~0u, // no _weak_field_map_
  810. ~0u, // no _inlined_string_donated_
  811. PROTOBUF_FIELD_OFFSET(::RemoNet::TestTextReq, text_),
  812. ~0u, // no _has_bits_
  813. PROTOBUF_FIELD_OFFSET(::RemoNet::CanMessage, _internal_metadata_),
  814. ~0u, // no _extensions_
  815. ~0u, // no _oneof_case_
  816. ~0u, // no _weak_field_map_
  817. ~0u, // no _inlined_string_donated_
  818. PROTOBUF_FIELD_OFFSET(::RemoNet::CanMessage, head_),
  819. PROTOBUF_FIELD_OFFSET(::RemoNet::CanMessage, canid_),
  820. PROTOBUF_FIELD_OFFSET(::RemoNet::CanMessage, data_),
  821. ~0u, // no _has_bits_
  822. PROTOBUF_FIELD_OFFSET(::RemoNet::CCCanMesage, _internal_metadata_),
  823. ~0u, // no _extensions_
  824. ~0u, // no _oneof_case_
  825. ~0u, // no _weak_field_map_
  826. ~0u, // no _inlined_string_donated_
  827. PROTOBUF_FIELD_OFFSET(::RemoNet::CCCanMesage, islidar_),
  828. PROTOBUF_FIELD_OFFSET(::RemoNet::CCCanMesage, message_),
  829. ~0u, // no _has_bits_
  830. PROTOBUF_FIELD_OFFSET(::RemoNet::Wiper, _internal_metadata_),
  831. ~0u, // no _extensions_
  832. ~0u, // no _oneof_case_
  833. ~0u, // no _weak_field_map_
  834. ~0u, // no _inlined_string_donated_
  835. PROTOBUF_FIELD_OFFSET(::RemoNet::Wiper, ret_),
  836. ~0u, // no _has_bits_
  837. PROTOBUF_FIELD_OFFSET(::RemoNet::FrontLight, _internal_metadata_),
  838. ~0u, // no _extensions_
  839. ~0u, // no _oneof_case_
  840. ~0u, // no _weak_field_map_
  841. ~0u, // no _inlined_string_donated_
  842. PROTOBUF_FIELD_OFFSET(::RemoNet::FrontLight, ret_),
  843. ~0u, // no _has_bits_
  844. PROTOBUF_FIELD_OFFSET(::RemoNet::BackLight, _internal_metadata_),
  845. ~0u, // no _extensions_
  846. ~0u, // no _oneof_case_
  847. ~0u, // no _weak_field_map_
  848. ~0u, // no _inlined_string_donated_
  849. PROTOBUF_FIELD_OFFSET(::RemoNet::BackLight, ret_),
  850. ~0u, // no _has_bits_
  851. PROTOBUF_FIELD_OFFSET(::RemoNet::CCAskDataChannel, _internal_metadata_),
  852. ~0u, // no _extensions_
  853. ~0u, // no _oneof_case_
  854. ~0u, // no _weak_field_map_
  855. ~0u, // no _inlined_string_donated_
  856. ~0u, // no _has_bits_
  857. PROTOBUF_FIELD_OFFSET(::RemoNet::IMuMessage, _internal_metadata_),
  858. ~0u, // no _extensions_
  859. ~0u, // no _oneof_case_
  860. ~0u, // no _weak_field_map_
  861. ~0u, // no _inlined_string_donated_
  862. PROTOBUF_FIELD_OFFSET(::RemoNet::IMuMessage, rx_),
  863. PROTOBUF_FIELD_OFFSET(::RemoNet::IMuMessage, ry_),
  864. ~0u, // no _has_bits_
  865. PROTOBUF_FIELD_OFFSET(::RemoNet::CCPing, _internal_metadata_),
  866. ~0u, // no _extensions_
  867. ~0u, // no _oneof_case_
  868. ~0u, // no _weak_field_map_
  869. ~0u, // no _inlined_string_donated_
  870. PROTOBUF_FIELD_OFFSET(::RemoNet::CCPing, tick_),
  871. ~0u, // no _has_bits_
  872. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRadarMessage, _internal_metadata_),
  873. ~0u, // no _extensions_
  874. ~0u, // no _oneof_case_
  875. ~0u, // no _weak_field_map_
  876. ~0u, // no _inlined_string_donated_
  877. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRadarMessage, radar0_),
  878. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRadarMessage, radar1_),
  879. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRadarMessage, radar2_),
  880. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRadarMessage, radar3_),
  881. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRadarMessage, radar4_),
  882. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRadarMessage, radar5_),
  883. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRadarMessage, radar6_),
  884. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRadarMessage, radar7_),
  885. ~0u, // no _has_bits_
  886. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRobotAnalog, _internal_metadata_),
  887. ~0u, // no _extensions_
  888. ~0u, // no _oneof_case_
  889. ~0u, // no _weak_field_map_
  890. ~0u, // no _inlined_string_donated_
  891. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRobotAnalog, steer_),
  892. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRobotAnalog, arm_),
  893. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRobotAnalog, bucket_),
  894. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRobotAnalog, throttle_),
  895. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRobotAnalog, brake_),
  896. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRobotAnalog, emergency_),
  897. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRobotAnalog, resume_),
  898. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRobotAnalog, gears_),
  899. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRobotAnalog, frontlight_),
  900. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRobotAnalog, backlight_),
  901. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRobotAnalog, wipe_),
  902. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRobotAnalog, directionlight_),
  903. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRobotAnalog, buzzer_),
  904. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRobotAnalog, gears_d_),
  905. ~0u, // no _has_bits_
  906. PROTOBUF_FIELD_OFFSET(::RemoNet::CCBootStrapReq, _internal_metadata_),
  907. ~0u, // no _extensions_
  908. ~0u, // no _oneof_case_
  909. ~0u, // no _weak_field_map_
  910. ~0u, // no _inlined_string_donated_
  911. ~0u, // no _has_bits_
  912. PROTOBUF_FIELD_OFFSET(::RemoNet::CCBooStrapRep, _internal_metadata_),
  913. ~0u, // no _extensions_
  914. ~0u, // no _oneof_case_
  915. ~0u, // no _weak_field_map_
  916. ~0u, // no _inlined_string_donated_
  917. PROTOBUF_FIELD_OFFSET(::RemoNet::CCBooStrapRep, ret_),
  918. ~0u, // no _has_bits_
  919. PROTOBUF_FIELD_OFFSET(::RemoNet::CCStartupReq, _internal_metadata_),
  920. ~0u, // no _extensions_
  921. ~0u, // no _oneof_case_
  922. ~0u, // no _weak_field_map_
  923. ~0u, // no _inlined_string_donated_
  924. ~0u, // no _has_bits_
  925. PROTOBUF_FIELD_OFFSET(::RemoNet::CCStartupRep, _internal_metadata_),
  926. ~0u, // no _extensions_
  927. ~0u, // no _oneof_case_
  928. ~0u, // no _weak_field_map_
  929. ~0u, // no _inlined_string_donated_
  930. PROTOBUF_FIELD_OFFSET(::RemoNet::CCStartupRep, ret_),
  931. ~0u, // no _has_bits_
  932. PROTOBUF_FIELD_OFFSET(::RemoNet::CCSwitch, _internal_metadata_),
  933. ~0u, // no _extensions_
  934. ~0u, // no _oneof_case_
  935. ~0u, // no _weak_field_map_
  936. ~0u, // no _inlined_string_donated_
  937. PROTOBUF_FIELD_OFFSET(::RemoNet::CCSwitch, front_),
  938. PROTOBUF_FIELD_OFFSET(::RemoNet::LidarPoint, _has_bits_),
  939. PROTOBUF_FIELD_OFFSET(::RemoNet::LidarPoint, _internal_metadata_),
  940. ~0u, // no _extensions_
  941. ~0u, // no _oneof_case_
  942. ~0u, // no _weak_field_map_
  943. ~0u, // no _inlined_string_donated_
  944. PROTOBUF_FIELD_OFFSET(::RemoNet::LidarPoint, timestamp_),
  945. PROTOBUF_FIELD_OFFSET(::RemoNet::LidarPoint, seq_),
  946. PROTOBUF_FIELD_OFFSET(::RemoNet::LidarPoint, frame_id_),
  947. PROTOBUF_FIELD_OFFSET(::RemoNet::LidarPoint, height_),
  948. PROTOBUF_FIELD_OFFSET(::RemoNet::LidarPoint, width_),
  949. PROTOBUF_FIELD_OFFSET(::RemoNet::LidarPoint, is_dense_),
  950. PROTOBUF_FIELD_OFFSET(::RemoNet::LidarPoint, is_left_),
  951. PROTOBUF_FIELD_OFFSET(::RemoNet::LidarPoint, data_),
  952. 1,
  953. 2,
  954. 0,
  955. 3,
  956. 4,
  957. 5,
  958. 6,
  959. ~0u,
  960. ~0u, // no _has_bits_
  961. PROTOBUF_FIELD_OFFSET(::RemoNet::SensorStop, _internal_metadata_),
  962. ~0u, // no _extensions_
  963. ~0u, // no _oneof_case_
  964. ~0u, // no _weak_field_map_
  965. ~0u, // no _inlined_string_donated_
  966. ~0u, // no _has_bits_
  967. PROTOBUF_FIELD_OFFSET(::RemoNet::StopAck, _internal_metadata_),
  968. ~0u, // no _extensions_
  969. ~0u, // no _oneof_case_
  970. ~0u, // no _weak_field_map_
  971. ~0u, // no _inlined_string_donated_
  972. ~0u, // no _has_bits_
  973. PROTOBUF_FIELD_OFFSET(::RemoNet::CCManipulation, _internal_metadata_),
  974. ~0u, // no _extensions_
  975. ~0u, // no _oneof_case_
  976. ~0u, // no _weak_field_map_
  977. ~0u, // no _inlined_string_donated_
  978. PROTOBUF_FIELD_OFFSET(::RemoNet::CCManipulation, sensor_),
  979. PROTOBUF_FIELD_OFFSET(::RemoNet::CCManipulation, car_),
  980. ~0u, // no _has_bits_
  981. PROTOBUF_FIELD_OFFSET(::RemoNet::SCAddRobot, _internal_metadata_),
  982. ~0u, // no _extensions_
  983. ~0u, // no _oneof_case_
  984. ~0u, // no _weak_field_map_
  985. ~0u, // no _inlined_string_donated_
  986. PROTOBUF_FIELD_OFFSET(::RemoNet::SCAddRobot, robot_),
  987. ~0u, // no _has_bits_
  988. PROTOBUF_FIELD_OFFSET(::RemoNet::SCDelRobot, _internal_metadata_),
  989. ~0u, // no _extensions_
  990. ~0u, // no _oneof_case_
  991. ~0u, // no _weak_field_map_
  992. ~0u, // no _inlined_string_donated_
  993. PROTOBUF_FIELD_OFFSET(::RemoNet::SCDelRobot, peer_),
  994. PROTOBUF_FIELD_OFFSET(::RemoNet::SCDelRobot, egotype_),
  995. ~0u, // no _has_bits_
  996. PROTOBUF_FIELD_OFFSET(::RemoNet::State, _internal_metadata_),
  997. ~0u, // no _extensions_
  998. ~0u, // no _oneof_case_
  999. ~0u, // no _weak_field_map_
  1000. ~0u, // no _inlined_string_donated_
  1001. PROTOBUF_FIELD_OFFSET(::RemoNet::State, work_pressure_),
  1002. PROTOBUF_FIELD_OFFSET(::RemoNet::State, brake_pressure_),
  1003. PROTOBUF_FIELD_OFFSET(::RemoNet::State, gearbox_oil_temp_),
  1004. PROTOBUF_FIELD_OFFSET(::RemoNet::State, gearbox_oil_pressure_),
  1005. PROTOBUF_FIELD_OFFSET(::RemoNet::State, engine_rpm_),
  1006. PROTOBUF_FIELD_OFFSET(::RemoNet::State, speed_),
  1007. PROTOBUF_FIELD_OFFSET(::RemoNet::State, gear_),
  1008. PROTOBUF_FIELD_OFFSET(::RemoNet::State, engine_pressure_),
  1009. PROTOBUF_FIELD_OFFSET(::RemoNet::State, cold_water_),
  1010. PROTOBUF_FIELD_OFFSET(::RemoNet::State, steer_angle_),
  1011. PROTOBUF_FIELD_OFFSET(::RemoNet::State, left_lock_),
  1012. PROTOBUF_FIELD_OFFSET(::RemoNet::State, right_lock_),
  1013. PROTOBUF_FIELD_OFFSET(::RemoNet::State, engine_time_),
  1014. PROTOBUF_FIELD_OFFSET(::RemoNet::State, wire_sensor_l_),
  1015. PROTOBUF_FIELD_OFFSET(::RemoNet::State, wire_sensor_r_),
  1016. PROTOBUF_FIELD_OFFSET(::RemoNet::State, fuel_level_),
  1017. PROTOBUF_FIELD_OFFSET(::RemoNet::State, lock_switch_l_),
  1018. PROTOBUF_FIELD_OFFSET(::RemoNet::State, lock_switch_r_),
  1019. PROTOBUF_FIELD_OFFSET(::RemoNet::State, tip_limit_),
  1020. PROTOBUF_FIELD_OFFSET(::RemoNet::State, turn_left_),
  1021. PROTOBUF_FIELD_OFFSET(::RemoNet::State, turn_right_),
  1022. PROTOBUF_FIELD_OFFSET(::RemoNet::State, hight_beam_),
  1023. PROTOBUF_FIELD_OFFSET(::RemoNet::State, low_beam_),
  1024. PROTOBUF_FIELD_OFFSET(::RemoNet::State, parking_),
  1025. PROTOBUF_FIELD_OFFSET(::RemoNet::State, brake_),
  1026. PROTOBUF_FIELD_OFFSET(::RemoNet::State, back_car_),
  1027. PROTOBUF_FIELD_OFFSET(::RemoNet::State, front_work_lamp_),
  1028. PROTOBUF_FIELD_OFFSET(::RemoNet::State, rear_work_lamp_),
  1029. PROTOBUF_FIELD_OFFSET(::RemoNet::State, cargo_weight_),
  1030. PROTOBUF_FIELD_OFFSET(::RemoNet::State, system_vol_),
  1031. PROTOBUF_FIELD_OFFSET(::RemoNet::State, error_buff_),
  1032. PROTOBUF_FIELD_OFFSET(::RemoNet::State, f_gear_),
  1033. PROTOBUF_FIELD_OFFSET(::RemoNet::State, gear_1_),
  1034. PROTOBUF_FIELD_OFFSET(::RemoNet::State, outgrigger_l_),
  1035. PROTOBUF_FIELD_OFFSET(::RemoNet::State, outgrigger_r_),
  1036. PROTOBUF_FIELD_OFFSET(::RemoNet::State, tip_pressure_),
  1037. ~0u, // no _has_bits_
  1038. PROTOBUF_FIELD_OFFSET(::RemoNet::can_net_frame, _internal_metadata_),
  1039. ~0u, // no _extensions_
  1040. ~0u, // no _oneof_case_
  1041. ~0u, // no _weak_field_map_
  1042. ~0u, // no _inlined_string_donated_
  1043. PROTOBUF_FIELD_OFFSET(::RemoNet::can_net_frame, dlc_),
  1044. PROTOBUF_FIELD_OFFSET(::RemoNet::can_net_frame, canid_),
  1045. PROTOBUF_FIELD_OFFSET(::RemoNet::can_net_frame, data_),
  1046. ~0u, // no _has_bits_
  1047. PROTOBUF_FIELD_OFFSET(::RemoNet::CCCanMsg, _internal_metadata_),
  1048. ~0u, // no _extensions_
  1049. ~0u, // no _oneof_case_
  1050. ~0u, // no _weak_field_map_
  1051. ~0u, // no _inlined_string_donated_
  1052. PROTOBUF_FIELD_OFFSET(::RemoNet::CCCanMsg, frams_),
  1053. ~0u, // no _has_bits_
  1054. PROTOBUF_FIELD_OFFSET(::RemoNet::vehicle_data, _internal_metadata_),
  1055. ~0u, // no _extensions_
  1056. ~0u, // no _oneof_case_
  1057. ~0u, // no _weak_field_map_
  1058. ~0u, // no _inlined_string_donated_
  1059. PROTOBUF_FIELD_OFFSET(::RemoNet::vehicle_data, dlc_),
  1060. ~0u, // no _has_bits_
  1061. PROTOBUF_FIELD_OFFSET(::RemoNet::vehicle_QT, _internal_metadata_),
  1062. ~0u, // no _extensions_
  1063. ~0u, // no _oneof_case_
  1064. ~0u, // no _weak_field_map_
  1065. ~0u, // no _inlined_string_donated_
  1066. PROTOBUF_FIELD_OFFSET(::RemoNet::vehicle_QT, _vehicle_data_),
  1067. };
  1068. static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  1069. { 0, -1, -1, sizeof(::RemoNet::CSAdd)},
  1070. { 9, -1, -1, sizeof(::RemoNet::SCAdd)},
  1071. { 19, -1, -1, sizeof(::RemoNet::SCKickOff)},
  1072. { 25, -1, -1, sizeof(::RemoNet::Robot)},
  1073. { 35, -1, -1, sizeof(::RemoNet::CSRobot)},
  1074. { 41, -1, -1, sizeof(::RemoNet::SCRobot)},
  1075. { 48, -1, -1, sizeof(::RemoNet::CSSign)},
  1076. { 56, -1, -1, sizeof(::RemoNet::SCSign)},
  1077. { 66, -1, -1, sizeof(::RemoNet::CSReq)},
  1078. { 75, -1, -1, sizeof(::RemoNet::SCReq)},
  1079. { 84, -1, -1, sizeof(::RemoNet::CSRep)},
  1080. { 94, -1, -1, sizeof(::RemoNet::SCRep)},
  1081. { 104, -1, -1, sizeof(::RemoNet::Offer)},
  1082. { 114, -1, -1, sizeof(::RemoNet::Answer)},
  1083. { 124, -1, -1, sizeof(::RemoNet::Candidate)},
  1084. { 137, -1, -1, sizeof(::RemoNet::Leave)},
  1085. { 145, -1, -1, sizeof(::RemoNet::Close)},
  1086. { 154, -1, -1, sizeof(::RemoNet::TestTextReq)},
  1087. { 161, -1, -1, sizeof(::RemoNet::CanMessage)},
  1088. { 170, -1, -1, sizeof(::RemoNet::CCCanMesage)},
  1089. { 178, -1, -1, sizeof(::RemoNet::Wiper)},
  1090. { 185, -1, -1, sizeof(::RemoNet::FrontLight)},
  1091. { 192, -1, -1, sizeof(::RemoNet::BackLight)},
  1092. { 199, -1, -1, sizeof(::RemoNet::CCAskDataChannel)},
  1093. { 205, -1, -1, sizeof(::RemoNet::IMuMessage)},
  1094. { 213, -1, -1, sizeof(::RemoNet::CCPing)},
  1095. { 220, -1, -1, sizeof(::RemoNet::CCRadarMessage)},
  1096. { 234, -1, -1, sizeof(::RemoNet::CCRobotAnalog)},
  1097. { 254, -1, -1, sizeof(::RemoNet::CCBootStrapReq)},
  1098. { 260, -1, -1, sizeof(::RemoNet::CCBooStrapRep)},
  1099. { 267, -1, -1, sizeof(::RemoNet::CCStartupReq)},
  1100. { 273, -1, -1, sizeof(::RemoNet::CCStartupRep)},
  1101. { 280, -1, -1, sizeof(::RemoNet::CCSwitch)},
  1102. { 287, 301, -1, sizeof(::RemoNet::LidarPoint)},
  1103. { 309, -1, -1, sizeof(::RemoNet::SensorStop)},
  1104. { 315, -1, -1, sizeof(::RemoNet::StopAck)},
  1105. { 321, -1, -1, sizeof(::RemoNet::CCManipulation)},
  1106. { 329, -1, -1, sizeof(::RemoNet::SCAddRobot)},
  1107. { 336, -1, -1, sizeof(::RemoNet::SCDelRobot)},
  1108. { 344, -1, -1, sizeof(::RemoNet::State)},
  1109. { 386, -1, -1, sizeof(::RemoNet::can_net_frame)},
  1110. { 395, -1, -1, sizeof(::RemoNet::CCCanMsg)},
  1111. { 402, -1, -1, sizeof(::RemoNet::vehicle_data)},
  1112. { 409, -1, -1, sizeof(::RemoNet::vehicle_QT)},
  1113. };
  1114. static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
  1115. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CSAdd_default_instance_),
  1116. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SCAdd_default_instance_),
  1117. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SCKickOff_default_instance_),
  1118. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_Robot_default_instance_),
  1119. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CSRobot_default_instance_),
  1120. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SCRobot_default_instance_),
  1121. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CSSign_default_instance_),
  1122. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SCSign_default_instance_),
  1123. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CSReq_default_instance_),
  1124. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SCReq_default_instance_),
  1125. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CSRep_default_instance_),
  1126. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SCRep_default_instance_),
  1127. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_Offer_default_instance_),
  1128. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_Answer_default_instance_),
  1129. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_Candidate_default_instance_),
  1130. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_Leave_default_instance_),
  1131. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_Close_default_instance_),
  1132. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_TestTextReq_default_instance_),
  1133. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CanMessage_default_instance_),
  1134. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CCCanMesage_default_instance_),
  1135. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_Wiper_default_instance_),
  1136. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_FrontLight_default_instance_),
  1137. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_BackLight_default_instance_),
  1138. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CCAskDataChannel_default_instance_),
  1139. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_IMuMessage_default_instance_),
  1140. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CCPing_default_instance_),
  1141. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CCRadarMessage_default_instance_),
  1142. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CCRobotAnalog_default_instance_),
  1143. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CCBootStrapReq_default_instance_),
  1144. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CCBooStrapRep_default_instance_),
  1145. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CCStartupReq_default_instance_),
  1146. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CCStartupRep_default_instance_),
  1147. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CCSwitch_default_instance_),
  1148. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_LidarPoint_default_instance_),
  1149. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SensorStop_default_instance_),
  1150. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_StopAck_default_instance_),
  1151. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CCManipulation_default_instance_),
  1152. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SCAddRobot_default_instance_),
  1153. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SCDelRobot_default_instance_),
  1154. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_State_default_instance_),
  1155. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_can_net_frame_default_instance_),
  1156. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CCCanMsg_default_instance_),
  1157. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_vehicle_data_default_instance_),
  1158. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_vehicle_QT_default_instance_),
  1159. };
  1160. const char descriptor_table_protodef_protocol_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
  1161. "\n\016protocol.proto\022\007RemoNet\"3\n\005CSAdd\022\016\n\006se"
  1162. "rial\030\001 \001(\t\022\014\n\004type\030\002 \001(\005\022\014\n\004name\030\003 \001(\t\"<"
  1163. "\n\005SCAdd\022\013\n\003ret\030\001 \001(\010\022\013\n\003uid\030\002 \001(\005\022\013\n\003cid"
  1164. "\030\003 \001(\005\022\014\n\004name\030\004 \001(\t\"\013\n\tSCKickOff\"\213\001\n\005Ro"
  1165. "bot\022\013\n\003rid\030\001 \001(\005\022\014\n\004name\030\002 \001(\t\022\014\n\004type\030\003"
  1166. " \001(\005\022(\n\005state\030\004 \001(\0162\031.RemoNet.Robot.Robo"
  1167. "tState\"/\n\nRobotState\022\013\n\007Offline\020\000\022\n\n\006Onl"
  1168. "ine\020\001\022\010\n\004Busy\020\002\"\t\n\007CSRobot\"(\n\007SCRobot\022\035\n"
  1169. "\005robot\030\001 \003(\0132\016.RemoNet.Robot\"+\n\006CSSign\022\017"
  1170. "\n\007account\030\001 \001(\t\022\020\n\010password\030\002 \001(\t\"=\n\006SCS"
  1171. "ign\022\013\n\003ret\030\001 \001(\010\022\013\n\003uid\030\002 \001(\005\022\013\n\003cid\030\003 \001"
  1172. "(\005\022\014\n\004name\030\004 \001(\t\"5\n\005CSReq\022\014\n\004peer\030\001 \001(\005\022"
  1173. "\r\n\005index\030\002 \001(\005\022\017\n\007egotype\030\003 \001(\005\"H\n\005SCReq"
  1174. "\022 \n\004desc\030\001 \001(\0162\022.RemoNet.VideoDesc\022\014\n\004pe"
  1175. "er\030\002 \001(\005\022\017\n\007egotype\030\003 \001(\005\"W\n\005CSRep\022 \n\004de"
  1176. "sc\030\001 \001(\0162\022.RemoNet.VideoDesc\022\014\n\004peer\030\002 \001"
  1177. "(\005\022\r\n\005index\030\003 \001(\005\022\017\n\007egotype\030\004 \001(\005\"W\n\005SC"
  1178. "Rep\022 \n\004desc\030\001 \001(\0162\022.RemoNet.VideoDesc\022\r\n"
  1179. "\005index\030\002 \001(\005\022\017\n\007egotype\030\003 \001(\005\022\014\n\004peer\030\004 "
  1180. "\001(\005\"\?\n\005Offer\022\r\n\005index\030\001 \001(\005\022\014\n\004peer\030\002 \001("
  1181. "\005\022\014\n\004type\030\003 \001(\t\022\013\n\003sdp\030\004 \001(\t\"@\n\006Answer\022\r"
  1182. "\n\005index\030\001 \001(\005\022\014\n\004peer\030\002 \001(\005\022\014\n\004type\030\003 \001("
  1183. "\t\022\013\n\003sdp\030\004 \001(\t\"\201\001\n\tCandidate\022\r\n\005index\030\001 "
  1184. "\001(\005\022\014\n\004peer\030\002 \001(\005\022\014\n\004type\030\003 \001(\t\022\021\n\tcandi"
  1185. "date\030\004 \001(\t\022\025\n\rsdpMLineIndex\030\005 \001(\005\022\016\n\006sdp"
  1186. "Mid\030\006 \001(\t\022\017\n\007egotype\030\007 \001(\005\"&\n\005Leave\022\014\n\004p"
  1187. "eer\030\001 \001(\005\022\017\n\007egotype\030\002 \001(\005\"5\n\005Close\022\014\n\004p"
  1188. "eer\030\001 \001(\005\022\017\n\007egotype\030\002 \001(\005\022\r\n\005index\030\003 \001("
  1189. "\005\"\033\n\013TestTextReq\022\014\n\004text\030\001 \001(\t\"7\n\nCanMes"
  1190. "sage\022\014\n\004head\030\001 \001(\005\022\r\n\005canid\030\002 \001(\005\022\014\n\004dat"
  1191. "a\030\003 \001(\014\"D\n\013CCCanMesage\022\017\n\007islidar\030\001 \001(\010\022"
  1192. "$\n\007message\030\002 \003(\0132\023.RemoNet.CanMessage\"\024\n"
  1193. "\005Wiper\022\013\n\003ret\030\001 \001(\010\"\031\n\nFrontLight\022\013\n\003ret"
  1194. "\030\001 \001(\010\"\030\n\tBackLight\022\013\n\003ret\030\001 \001(\010\"\022\n\020CCAs"
  1195. "kDataChannel\"$\n\nIMuMessage\022\n\n\002rx\030\001 \001(\002\022\n"
  1196. "\n\002ry\030\002 \001(\002\"\026\n\006CCPing\022\014\n\004tick\030\001 \001(\003\"\220\001\n\016C"
  1197. "CRadarMessage\022\016\n\006radar0\030\001 \001(\005\022\016\n\006radar1\030"
  1198. "\002 \001(\005\022\016\n\006radar2\030\003 \001(\005\022\016\n\006radar3\030\004 \001(\005\022\016\n"
  1199. "\006radar4\030\005 \001(\005\022\016\n\006radar5\030\006 \001(\005\022\016\n\006radar6\030"
  1200. "\007 \001(\005\022\016\n\006radar7\030\010 \001(\005\"\267\002\n\rCCRobotAnalog\022"
  1201. "\r\n\005steer\030\001 \001(\005\022\013\n\003arm\030\002 \001(\005\022\016\n\006bucket\030\003 "
  1202. "\001(\005\022\020\n\010throttle\030\004 \001(\005\022\r\n\005brake\030\005 \001(\005\022\021\n\t"
  1203. "emergency\030\010 \001(\010\022\016\n\006resume\030\t \001(\010\022\035\n\005gears"
  1204. "\030\n \001(\0162\016.RemoNet.Gears\022\022\n\nfrontlight\030\013 \001"
  1205. "(\010\022\021\n\tbacklight\030\014 \001(\010\022\014\n\004wipe\030\r \001(\010\022/\n\016d"
  1206. "irectionlight\030\016 \001(\0162\027.RemoNet.DirectionL"
  1207. "ight\022\016\n\006buzzer\030\017 \001(\010\022!\n\007gears_d\030\020 \001(\0162\020."
  1208. "RemoNet.Gears_D\"\020\n\016CCBootStrapReq\"\034\n\rCCB"
  1209. "ooStrapRep\022\013\n\003ret\030\001 \001(\010\"\016\n\014CCStartupReq\""
  1210. "\033\n\014CCStartupRep\022\013\n\003ret\030\001 \001(\010\"\031\n\010CCSwitch"
  1211. "\022\r\n\005front\030\001 \001(\010\"\202\002\n\nLidarPoint\022\026\n\ttimest"
  1212. "amp\030\001 \001(\001H\000\210\001\001\022\020\n\003seq\030\002 \001(\rH\001\210\001\001\022\025\n\010fram"
  1213. "e_id\030\003 \001(\tH\002\210\001\001\022\023\n\006height\030\004 \001(\rH\003\210\001\001\022\022\n\005"
  1214. "width\030\005 \001(\rH\004\210\001\001\022\025\n\010is_dense\030\006 \001(\010H\005\210\001\001\022"
  1215. "\024\n\007is_left\030\007 \001(\010H\006\210\001\001\022\014\n\004data\030\010 \003(\002B\014\n\n_"
  1216. "timestampB\006\n\004_seqB\013\n\t_frame_idB\t\n\007_heigh"
  1217. "tB\010\n\006_widthB\013\n\t_is_denseB\n\n\010_is_left\"\014\n\n"
  1218. "SensorStop\"\t\n\007StopAck\"-\n\016CCManipulation\022"
  1219. "\016\n\006sensor\030\001 \001(\014\022\013\n\003car\030\002 \001(\014\"+\n\nSCAddRob"
  1220. "ot\022\035\n\005robot\030\001 \001(\0132\016.RemoNet.Robot\"+\n\nSCD"
  1221. "elRobot\022\014\n\004peer\030\001 \001(\005\022\017\n\007egotype\030\002 \001(\005\"\360"
  1222. "\005\n\005State\022\025\n\rwork_pressure\030\001 \001(\005\022\026\n\016brake"
  1223. "_pressure\030\002 \001(\005\022\030\n\020gearbox_oil_temp\030\003 \001("
  1224. "\005\022\034\n\024gearbox_oil_pressure\030\004 \001(\005\022\022\n\nengin"
  1225. "e_rpm\030\005 \001(\005\022\r\n\005speed\030\006 \001(\005\022\014\n\004gear\030\007 \001(\005"
  1226. "\022\027\n\017engine_pressure\030\010 \001(\005\022\022\n\ncold_water\030"
  1227. "\t \001(\005\022\023\n\013steer_angle\030\n \001(\002\022\021\n\tleft_lock\030"
  1228. "\013 \001(\005\022\022\n\nright_lock\030\014 \001(\005\022\023\n\013engine_time"
  1229. "\030\r \001(\005\022\025\n\rwire_sensor_l\030\016 \001(\005\022\025\n\rwire_se"
  1230. "nsor_r\030\017 \001(\005\022\022\n\nfuel_level\030\020 \001(\005\022\025\n\rlock"
  1231. "_switch_l\030\021 \001(\005\022\025\n\rlock_switch_r\030\022 \001(\005\022\021"
  1232. "\n\ttip_limit\030\023 \001(\005\022\021\n\tturn_left\030\024 \001(\005\022\022\n\n"
  1233. "turn_right\030\025 \001(\005\022\022\n\nhight_beam\030\026 \001(\005\022\020\n\010"
  1234. "low_beam\030\027 \001(\005\022\017\n\007parking\030\030 \001(\005\022\r\n\005brake"
  1235. "\030\031 \001(\005\022\020\n\010back_car\030\032 \001(\005\022\027\n\017front_work_l"
  1236. "amp\030\033 \001(\005\022\026\n\016rear_work_lamp\030\034 \001(\005\022\024\n\014car"
  1237. "go_weight\030\035 \001(\005\022\022\n\nsystem_vol\030\036 \001(\005\022\022\n\ne"
  1238. "rror_Buff\030\037 \001(\014\022\016\n\006f_gear\030 \001(\005\022\016\n\006gear_"
  1239. "1\030! \001(\005\022\024\n\014outgrigger_l\030\" \001(\005\022\024\n\014outgrig"
  1240. "ger_r\030# \001(\005\022\024\n\014tip_pressure\030$ \001(\005\"9\n\rcan"
  1241. "_net_frame\022\013\n\003dlc\030\001 \001(\021\022\r\n\005canid\030\002 \001(\005\022\014"
  1242. "\n\004data\030\003 \001(\014\"1\n\010CCCanMsg\022%\n\005frams\030\001 \003(\0132"
  1243. "\026.RemoNet.can_net_frame\"\033\n\014vehicle_data\022"
  1244. "\013\n\003dlc\030\001 \001(\021\":\n\nvehicle_QT\022,\n\r_vehicle_d"
  1245. "ata\030\001 \003(\0132\025.RemoNet.vehicle_data*\346\001\n\tCSM"
  1246. "essage\022\013\n\007CS_NONE\020\000\022\014\n\007CS_Sign\020\320\017\022\013\n\006CS_"
  1247. "Req\020\321\017\022\013\n\006CS_Rep\020\322\017\022\021\n\014CS_CancelReq\020\323\017\022\r"
  1248. "\n\010CS_Offer\020\324\017\022\016\n\tCS_Answer\020\325\017\022\021\n\014CS_Cand"
  1249. "idate\020\326\017\022\r\n\010CS_Leave\020\327\017\022\021\n\014CS_KeepAlive\020"
  1250. "\330\017\022\013\n\006CS_Add\020\331\017\022\r\n\010CS_Robot\020\332\017\022\022\n\rCS_Clo"
  1251. "seVideo\020\333\017\022\r\n\010CS_State\020\336\017*\223\003\n\tSCMessage\022"
  1252. "\013\n\007SC_NONE\020\000\022\014\n\007SC_Sign\020\240\037\022\013\n\006SC_Req\020\241\037\022"
  1253. "\013\n\006SC_Rep\020\242\037\022\016\n\tSC_Cancel\020\243\037\022\r\n\010SC_Offer"
  1254. "\020\244\037\022\016\n\tSC_Answer\020\245\037\022\021\n\014SC_Candidate\020\246\037\022\013"
  1255. "\n\006SC_Add\020\247\037\022\r\n\010SC_Robot\020\250\037\022\021\n\014SC_NotifyR"
  1256. "eq\020\251\037\022\021\n\014SC_NotifyRep\020\252\037\022\024\n\017SC_NotifyAns"
  1257. "wer\020\253\037\022\023\n\016SC_NotifyOffer\020\254\037\022\027\n\022SC_Notify"
  1258. "Candidate\020\255\037\022\023\n\016SC_NotifyLeave\020\256\037\022\024\n\017SC_"
  1259. "NotifyCancel\020\257\037\022\021\n\014SC_NotifyAdd\020\260\037\022\021\n\014SC"
  1260. "_NotifyDel\020\261\037\022\030\n\023SC_NotifyCloseVideo\020\262\037\022"
  1261. "\017\n\nSC_KickOff\020\263\037\022\r\n\010SC_State\020\266\037*\321\002\n\tCCMe"
  1262. "ssage\022\013\n\007CC_None\020\000\022\014\n\007CC_Text\020\300>\022\013\n\006CC_C"
  1263. "AN\020\301>\022\013\n\006CC_IMU\020\302>\022\026\n\021CC_ASKDATACHANNEL\020"
  1264. "\303>\022\024\n\017CC_Manipulation\020\304>\022\r\n\010CC_Radar\020\305>\022"
  1265. "\016\n\tCC_Switch\020\306>\022\014\n\007CC_Ping\020\307>\022\022\n\rCC_Sens"
  1266. "orStop\020\310>\022\017\n\nCC_StopACK\020\311>\022\021\n\014CC_LIDARDA"
  1267. "TA\020\312>\022\016\n\tCC_CANMSG\020\313>\022\r\n\010CC_STATE\020\314>\022\023\n\016"
  1268. "CC_RobotAnalog\020\321>\022\017\n\nCC_BootReq\020\315>\022\022\n\rCC"
  1269. "_StartupReq\020\316>\022\017\n\nCC_BootRep\020\317>\022\022\n\rCC_St"
  1270. "artupRep\020\320>*F\n\tVideoDesc\022\006\n\002OK\020\000\022\010\n\004Busy"
  1271. "\020\001\022\n\n\006Reject\020\002\022\013\n\007NoFound\020\003\022\016\n\nIsVideoin"
  1272. "g\020\004*&\n\005Gears\022\010\n\004None\020\000\022\005\n\001N\020\001\022\005\n\001D\020\002\022\005\n\001"
  1273. "R\020\003*9\n\007Gears_D\022\n\n\006None_d\020\000\022\007\n\003D_1\020\001\022\007\n\003D"
  1274. "_2\020\002\022\007\n\003D_3\020\003\022\007\n\003D_4\020\004*=\n\016DirectionLight"
  1275. "\022\016\n\nRightLight\020\000\022\r\n\tLeftLight\020\001\022\014\n\010OffLi"
  1276. "ght\020\002b\006proto3"
  1277. ;
  1278. static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_protocol_2eproto_once;
  1279. const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_protocol_2eproto = {
  1280. false, false, 4613, descriptor_table_protodef_protocol_2eproto, "protocol.proto",
  1281. &descriptor_table_protocol_2eproto_once, nullptr, 0, 44,
  1282. schemas, file_default_instances, TableStruct_protocol_2eproto::offsets,
  1283. file_level_metadata_protocol_2eproto, file_level_enum_descriptors_protocol_2eproto, file_level_service_descriptors_protocol_2eproto,
  1284. };
  1285. PROTOBUF_ATTRIBUTE_WEAK const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable* descriptor_table_protocol_2eproto_getter() {
  1286. return &descriptor_table_protocol_2eproto;
  1287. }
  1288. // Force running AddDescriptors() at dynamic initialization time.
  1289. PROTOBUF_ATTRIBUTE_INIT_PRIORITY static ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptorsRunner dynamic_init_dummy_protocol_2eproto(&descriptor_table_protocol_2eproto);
  1290. namespace RemoNet {
  1291. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Robot_RobotState_descriptor() {
  1292. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_protocol_2eproto);
  1293. return file_level_enum_descriptors_protocol_2eproto[0];
  1294. }
  1295. bool Robot_RobotState_IsValid(int value) {
  1296. switch (value) {
  1297. case 0:
  1298. case 1:
  1299. case 2:
  1300. return true;
  1301. default:
  1302. return false;
  1303. }
  1304. }
  1305. #if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
  1306. constexpr Robot_RobotState Robot::Offline;
  1307. constexpr Robot_RobotState Robot::Online;
  1308. constexpr Robot_RobotState Robot::Busy;
  1309. constexpr Robot_RobotState Robot::RobotState_MIN;
  1310. constexpr Robot_RobotState Robot::RobotState_MAX;
  1311. constexpr int Robot::RobotState_ARRAYSIZE;
  1312. #endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
  1313. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* CSMessage_descriptor() {
  1314. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_protocol_2eproto);
  1315. return file_level_enum_descriptors_protocol_2eproto[1];
  1316. }
  1317. bool CSMessage_IsValid(int value) {
  1318. switch (value) {
  1319. case 0:
  1320. case 2000:
  1321. case 2001:
  1322. case 2002:
  1323. case 2003:
  1324. case 2004:
  1325. case 2005:
  1326. case 2006:
  1327. case 2007:
  1328. case 2008:
  1329. case 2009:
  1330. case 2010:
  1331. case 2011:
  1332. case 2014:
  1333. return true;
  1334. default:
  1335. return false;
  1336. }
  1337. }
  1338. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* SCMessage_descriptor() {
  1339. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_protocol_2eproto);
  1340. return file_level_enum_descriptors_protocol_2eproto[2];
  1341. }
  1342. bool SCMessage_IsValid(int value) {
  1343. switch (value) {
  1344. case 0:
  1345. case 4000:
  1346. case 4001:
  1347. case 4002:
  1348. case 4003:
  1349. case 4004:
  1350. case 4005:
  1351. case 4006:
  1352. case 4007:
  1353. case 4008:
  1354. case 4009:
  1355. case 4010:
  1356. case 4011:
  1357. case 4012:
  1358. case 4013:
  1359. case 4014:
  1360. case 4015:
  1361. case 4016:
  1362. case 4017:
  1363. case 4018:
  1364. case 4019:
  1365. case 4022:
  1366. return true;
  1367. default:
  1368. return false;
  1369. }
  1370. }
  1371. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* CCMessage_descriptor() {
  1372. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_protocol_2eproto);
  1373. return file_level_enum_descriptors_protocol_2eproto[3];
  1374. }
  1375. bool CCMessage_IsValid(int value) {
  1376. switch (value) {
  1377. case 0:
  1378. case 8000:
  1379. case 8001:
  1380. case 8002:
  1381. case 8003:
  1382. case 8004:
  1383. case 8005:
  1384. case 8006:
  1385. case 8007:
  1386. case 8008:
  1387. case 8009:
  1388. case 8010:
  1389. case 8011:
  1390. case 8012:
  1391. case 8013:
  1392. case 8014:
  1393. case 8015:
  1394. case 8016:
  1395. case 8017:
  1396. return true;
  1397. default:
  1398. return false;
  1399. }
  1400. }
  1401. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* VideoDesc_descriptor() {
  1402. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_protocol_2eproto);
  1403. return file_level_enum_descriptors_protocol_2eproto[4];
  1404. }
  1405. bool VideoDesc_IsValid(int value) {
  1406. switch (value) {
  1407. case 0:
  1408. case 1:
  1409. case 2:
  1410. case 3:
  1411. case 4:
  1412. return true;
  1413. default:
  1414. return false;
  1415. }
  1416. }
  1417. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Gears_descriptor() {
  1418. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_protocol_2eproto);
  1419. return file_level_enum_descriptors_protocol_2eproto[5];
  1420. }
  1421. bool Gears_IsValid(int value) {
  1422. switch (value) {
  1423. case 0:
  1424. case 1:
  1425. case 2:
  1426. case 3:
  1427. return true;
  1428. default:
  1429. return false;
  1430. }
  1431. }
  1432. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Gears_D_descriptor() {
  1433. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_protocol_2eproto);
  1434. return file_level_enum_descriptors_protocol_2eproto[6];
  1435. }
  1436. bool Gears_D_IsValid(int value) {
  1437. switch (value) {
  1438. case 0:
  1439. case 1:
  1440. case 2:
  1441. case 3:
  1442. case 4:
  1443. return true;
  1444. default:
  1445. return false;
  1446. }
  1447. }
  1448. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* DirectionLight_descriptor() {
  1449. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_protocol_2eproto);
  1450. return file_level_enum_descriptors_protocol_2eproto[7];
  1451. }
  1452. bool DirectionLight_IsValid(int value) {
  1453. switch (value) {
  1454. case 0:
  1455. case 1:
  1456. case 2:
  1457. return true;
  1458. default:
  1459. return false;
  1460. }
  1461. }
  1462. // ===================================================================
  1463. class CSAdd::_Internal {
  1464. public:
  1465. };
  1466. CSAdd::CSAdd(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  1467. bool is_message_owned)
  1468. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  1469. SharedCtor();
  1470. if (!is_message_owned) {
  1471. RegisterArenaDtor(arena);
  1472. }
  1473. // @@protoc_insertion_point(arena_constructor:RemoNet.CSAdd)
  1474. }
  1475. CSAdd::CSAdd(const CSAdd& from)
  1476. : ::PROTOBUF_NAMESPACE_ID::Message() {
  1477. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1478. serial_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1479. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1480. serial_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  1481. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1482. if (!from._internal_serial().empty()) {
  1483. serial_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_serial(),
  1484. GetArenaForAllocation());
  1485. }
  1486. name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1487. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1488. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  1489. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1490. if (!from._internal_name().empty()) {
  1491. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(),
  1492. GetArenaForAllocation());
  1493. }
  1494. type_ = from.type_;
  1495. // @@protoc_insertion_point(copy_constructor:RemoNet.CSAdd)
  1496. }
  1497. inline void CSAdd::SharedCtor() {
  1498. serial_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1499. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1500. serial_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  1501. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1502. name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1503. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1504. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  1505. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1506. type_ = 0;
  1507. }
  1508. CSAdd::~CSAdd() {
  1509. // @@protoc_insertion_point(destructor:RemoNet.CSAdd)
  1510. if (GetArenaForAllocation() != nullptr) return;
  1511. SharedDtor();
  1512. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1513. }
  1514. inline void CSAdd::SharedDtor() {
  1515. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  1516. serial_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1517. name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1518. }
  1519. void CSAdd::ArenaDtor(void* object) {
  1520. CSAdd* _this = reinterpret_cast< CSAdd* >(object);
  1521. (void)_this;
  1522. }
  1523. void CSAdd::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  1524. }
  1525. void CSAdd::SetCachedSize(int size) const {
  1526. _cached_size_.Set(size);
  1527. }
  1528. void CSAdd::Clear() {
  1529. // @@protoc_insertion_point(message_clear_start:RemoNet.CSAdd)
  1530. uint32_t cached_has_bits = 0;
  1531. // Prevent compiler warnings about cached_has_bits being unused
  1532. (void) cached_has_bits;
  1533. serial_.ClearToEmpty();
  1534. name_.ClearToEmpty();
  1535. type_ = 0;
  1536. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1537. }
  1538. const char* CSAdd::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  1539. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  1540. while (!ctx->Done(&ptr)) {
  1541. uint32_t tag;
  1542. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  1543. switch (tag >> 3) {
  1544. // string serial = 1;
  1545. case 1:
  1546. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
  1547. auto str = _internal_mutable_serial();
  1548. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  1549. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.CSAdd.serial"));
  1550. CHK_(ptr);
  1551. } else
  1552. goto handle_unusual;
  1553. continue;
  1554. // int32 type = 2;
  1555. case 2:
  1556. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  1557. type_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  1558. CHK_(ptr);
  1559. } else
  1560. goto handle_unusual;
  1561. continue;
  1562. // string name = 3;
  1563. case 3:
  1564. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
  1565. auto str = _internal_mutable_name();
  1566. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  1567. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.CSAdd.name"));
  1568. CHK_(ptr);
  1569. } else
  1570. goto handle_unusual;
  1571. continue;
  1572. default:
  1573. goto handle_unusual;
  1574. } // switch
  1575. handle_unusual:
  1576. if ((tag == 0) || ((tag & 7) == 4)) {
  1577. CHK_(ptr);
  1578. ctx->SetLastTag(tag);
  1579. goto message_done;
  1580. }
  1581. ptr = UnknownFieldParse(
  1582. tag,
  1583. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  1584. ptr, ctx);
  1585. CHK_(ptr != nullptr);
  1586. } // while
  1587. message_done:
  1588. return ptr;
  1589. failure:
  1590. ptr = nullptr;
  1591. goto message_done;
  1592. #undef CHK_
  1593. }
  1594. uint8_t* CSAdd::_InternalSerialize(
  1595. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  1596. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CSAdd)
  1597. uint32_t cached_has_bits = 0;
  1598. (void) cached_has_bits;
  1599. // string serial = 1;
  1600. if (!this->_internal_serial().empty()) {
  1601. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  1602. this->_internal_serial().data(), static_cast<int>(this->_internal_serial().length()),
  1603. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  1604. "RemoNet.CSAdd.serial");
  1605. target = stream->WriteStringMaybeAliased(
  1606. 1, this->_internal_serial(), target);
  1607. }
  1608. // int32 type = 2;
  1609. if (this->_internal_type() != 0) {
  1610. target = stream->EnsureSpace(target);
  1611. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_type(), target);
  1612. }
  1613. // string name = 3;
  1614. if (!this->_internal_name().empty()) {
  1615. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  1616. this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
  1617. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  1618. "RemoNet.CSAdd.name");
  1619. target = stream->WriteStringMaybeAliased(
  1620. 3, this->_internal_name(), target);
  1621. }
  1622. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1623. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  1624. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  1625. }
  1626. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CSAdd)
  1627. return target;
  1628. }
  1629. size_t CSAdd::ByteSizeLong() const {
  1630. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CSAdd)
  1631. size_t total_size = 0;
  1632. uint32_t cached_has_bits = 0;
  1633. // Prevent compiler warnings about cached_has_bits being unused
  1634. (void) cached_has_bits;
  1635. // string serial = 1;
  1636. if (!this->_internal_serial().empty()) {
  1637. total_size += 1 +
  1638. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  1639. this->_internal_serial());
  1640. }
  1641. // string name = 3;
  1642. if (!this->_internal_name().empty()) {
  1643. total_size += 1 +
  1644. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  1645. this->_internal_name());
  1646. }
  1647. // int32 type = 2;
  1648. if (this->_internal_type() != 0) {
  1649. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_type());
  1650. }
  1651. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  1652. }
  1653. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CSAdd::_class_data_ = {
  1654. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  1655. CSAdd::MergeImpl
  1656. };
  1657. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CSAdd::GetClassData() const { return &_class_data_; }
  1658. void CSAdd::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  1659. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  1660. static_cast<CSAdd *>(to)->MergeFrom(
  1661. static_cast<const CSAdd &>(from));
  1662. }
  1663. void CSAdd::MergeFrom(const CSAdd& from) {
  1664. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CSAdd)
  1665. GOOGLE_DCHECK_NE(&from, this);
  1666. uint32_t cached_has_bits = 0;
  1667. (void) cached_has_bits;
  1668. if (!from._internal_serial().empty()) {
  1669. _internal_set_serial(from._internal_serial());
  1670. }
  1671. if (!from._internal_name().empty()) {
  1672. _internal_set_name(from._internal_name());
  1673. }
  1674. if (from._internal_type() != 0) {
  1675. _internal_set_type(from._internal_type());
  1676. }
  1677. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1678. }
  1679. void CSAdd::CopyFrom(const CSAdd& from) {
  1680. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CSAdd)
  1681. if (&from == this) return;
  1682. Clear();
  1683. MergeFrom(from);
  1684. }
  1685. bool CSAdd::IsInitialized() const {
  1686. return true;
  1687. }
  1688. void CSAdd::InternalSwap(CSAdd* other) {
  1689. using std::swap;
  1690. auto* lhs_arena = GetArenaForAllocation();
  1691. auto* rhs_arena = other->GetArenaForAllocation();
  1692. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  1693. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  1694. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  1695. &serial_, lhs_arena,
  1696. &other->serial_, rhs_arena
  1697. );
  1698. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  1699. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  1700. &name_, lhs_arena,
  1701. &other->name_, rhs_arena
  1702. );
  1703. swap(type_, other->type_);
  1704. }
  1705. ::PROTOBUF_NAMESPACE_ID::Metadata CSAdd::GetMetadata() const {
  1706. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  1707. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  1708. file_level_metadata_protocol_2eproto[0]);
  1709. }
  1710. // ===================================================================
  1711. class SCAdd::_Internal {
  1712. public:
  1713. };
  1714. SCAdd::SCAdd(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  1715. bool is_message_owned)
  1716. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  1717. SharedCtor();
  1718. if (!is_message_owned) {
  1719. RegisterArenaDtor(arena);
  1720. }
  1721. // @@protoc_insertion_point(arena_constructor:RemoNet.SCAdd)
  1722. }
  1723. SCAdd::SCAdd(const SCAdd& from)
  1724. : ::PROTOBUF_NAMESPACE_ID::Message() {
  1725. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1726. name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1727. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1728. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  1729. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1730. if (!from._internal_name().empty()) {
  1731. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(),
  1732. GetArenaForAllocation());
  1733. }
  1734. ::memcpy(&ret_, &from.ret_,
  1735. static_cast<size_t>(reinterpret_cast<char*>(&cid_) -
  1736. reinterpret_cast<char*>(&ret_)) + sizeof(cid_));
  1737. // @@protoc_insertion_point(copy_constructor:RemoNet.SCAdd)
  1738. }
  1739. inline void SCAdd::SharedCtor() {
  1740. name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1741. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1742. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  1743. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1744. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  1745. reinterpret_cast<char*>(&ret_) - reinterpret_cast<char*>(this)),
  1746. 0, static_cast<size_t>(reinterpret_cast<char*>(&cid_) -
  1747. reinterpret_cast<char*>(&ret_)) + sizeof(cid_));
  1748. }
  1749. SCAdd::~SCAdd() {
  1750. // @@protoc_insertion_point(destructor:RemoNet.SCAdd)
  1751. if (GetArenaForAllocation() != nullptr) return;
  1752. SharedDtor();
  1753. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1754. }
  1755. inline void SCAdd::SharedDtor() {
  1756. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  1757. name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1758. }
  1759. void SCAdd::ArenaDtor(void* object) {
  1760. SCAdd* _this = reinterpret_cast< SCAdd* >(object);
  1761. (void)_this;
  1762. }
  1763. void SCAdd::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  1764. }
  1765. void SCAdd::SetCachedSize(int size) const {
  1766. _cached_size_.Set(size);
  1767. }
  1768. void SCAdd::Clear() {
  1769. // @@protoc_insertion_point(message_clear_start:RemoNet.SCAdd)
  1770. uint32_t cached_has_bits = 0;
  1771. // Prevent compiler warnings about cached_has_bits being unused
  1772. (void) cached_has_bits;
  1773. name_.ClearToEmpty();
  1774. ::memset(&ret_, 0, static_cast<size_t>(
  1775. reinterpret_cast<char*>(&cid_) -
  1776. reinterpret_cast<char*>(&ret_)) + sizeof(cid_));
  1777. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1778. }
  1779. const char* SCAdd::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  1780. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  1781. while (!ctx->Done(&ptr)) {
  1782. uint32_t tag;
  1783. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  1784. switch (tag >> 3) {
  1785. // bool ret = 1;
  1786. case 1:
  1787. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  1788. ret_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  1789. CHK_(ptr);
  1790. } else
  1791. goto handle_unusual;
  1792. continue;
  1793. // int32 uid = 2;
  1794. case 2:
  1795. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  1796. uid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  1797. CHK_(ptr);
  1798. } else
  1799. goto handle_unusual;
  1800. continue;
  1801. // int32 cid = 3;
  1802. case 3:
  1803. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  1804. cid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  1805. CHK_(ptr);
  1806. } else
  1807. goto handle_unusual;
  1808. continue;
  1809. // string name = 4;
  1810. case 4:
  1811. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
  1812. auto str = _internal_mutable_name();
  1813. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  1814. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.SCAdd.name"));
  1815. CHK_(ptr);
  1816. } else
  1817. goto handle_unusual;
  1818. continue;
  1819. default:
  1820. goto handle_unusual;
  1821. } // switch
  1822. handle_unusual:
  1823. if ((tag == 0) || ((tag & 7) == 4)) {
  1824. CHK_(ptr);
  1825. ctx->SetLastTag(tag);
  1826. goto message_done;
  1827. }
  1828. ptr = UnknownFieldParse(
  1829. tag,
  1830. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  1831. ptr, ctx);
  1832. CHK_(ptr != nullptr);
  1833. } // while
  1834. message_done:
  1835. return ptr;
  1836. failure:
  1837. ptr = nullptr;
  1838. goto message_done;
  1839. #undef CHK_
  1840. }
  1841. uint8_t* SCAdd::_InternalSerialize(
  1842. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  1843. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.SCAdd)
  1844. uint32_t cached_has_bits = 0;
  1845. (void) cached_has_bits;
  1846. // bool ret = 1;
  1847. if (this->_internal_ret() != 0) {
  1848. target = stream->EnsureSpace(target);
  1849. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_ret(), target);
  1850. }
  1851. // int32 uid = 2;
  1852. if (this->_internal_uid() != 0) {
  1853. target = stream->EnsureSpace(target);
  1854. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_uid(), target);
  1855. }
  1856. // int32 cid = 3;
  1857. if (this->_internal_cid() != 0) {
  1858. target = stream->EnsureSpace(target);
  1859. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_cid(), target);
  1860. }
  1861. // string name = 4;
  1862. if (!this->_internal_name().empty()) {
  1863. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  1864. this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
  1865. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  1866. "RemoNet.SCAdd.name");
  1867. target = stream->WriteStringMaybeAliased(
  1868. 4, this->_internal_name(), target);
  1869. }
  1870. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1871. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  1872. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  1873. }
  1874. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.SCAdd)
  1875. return target;
  1876. }
  1877. size_t SCAdd::ByteSizeLong() const {
  1878. // @@protoc_insertion_point(message_byte_size_start:RemoNet.SCAdd)
  1879. size_t total_size = 0;
  1880. uint32_t cached_has_bits = 0;
  1881. // Prevent compiler warnings about cached_has_bits being unused
  1882. (void) cached_has_bits;
  1883. // string name = 4;
  1884. if (!this->_internal_name().empty()) {
  1885. total_size += 1 +
  1886. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  1887. this->_internal_name());
  1888. }
  1889. // bool ret = 1;
  1890. if (this->_internal_ret() != 0) {
  1891. total_size += 1 + 1;
  1892. }
  1893. // int32 uid = 2;
  1894. if (this->_internal_uid() != 0) {
  1895. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_uid());
  1896. }
  1897. // int32 cid = 3;
  1898. if (this->_internal_cid() != 0) {
  1899. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_cid());
  1900. }
  1901. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  1902. }
  1903. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCAdd::_class_data_ = {
  1904. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  1905. SCAdd::MergeImpl
  1906. };
  1907. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCAdd::GetClassData() const { return &_class_data_; }
  1908. void SCAdd::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  1909. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  1910. static_cast<SCAdd *>(to)->MergeFrom(
  1911. static_cast<const SCAdd &>(from));
  1912. }
  1913. void SCAdd::MergeFrom(const SCAdd& from) {
  1914. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.SCAdd)
  1915. GOOGLE_DCHECK_NE(&from, this);
  1916. uint32_t cached_has_bits = 0;
  1917. (void) cached_has_bits;
  1918. if (!from._internal_name().empty()) {
  1919. _internal_set_name(from._internal_name());
  1920. }
  1921. if (from._internal_ret() != 0) {
  1922. _internal_set_ret(from._internal_ret());
  1923. }
  1924. if (from._internal_uid() != 0) {
  1925. _internal_set_uid(from._internal_uid());
  1926. }
  1927. if (from._internal_cid() != 0) {
  1928. _internal_set_cid(from._internal_cid());
  1929. }
  1930. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1931. }
  1932. void SCAdd::CopyFrom(const SCAdd& from) {
  1933. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.SCAdd)
  1934. if (&from == this) return;
  1935. Clear();
  1936. MergeFrom(from);
  1937. }
  1938. bool SCAdd::IsInitialized() const {
  1939. return true;
  1940. }
  1941. void SCAdd::InternalSwap(SCAdd* other) {
  1942. using std::swap;
  1943. auto* lhs_arena = GetArenaForAllocation();
  1944. auto* rhs_arena = other->GetArenaForAllocation();
  1945. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  1946. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  1947. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  1948. &name_, lhs_arena,
  1949. &other->name_, rhs_arena
  1950. );
  1951. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  1952. PROTOBUF_FIELD_OFFSET(SCAdd, cid_)
  1953. + sizeof(SCAdd::cid_)
  1954. - PROTOBUF_FIELD_OFFSET(SCAdd, ret_)>(
  1955. reinterpret_cast<char*>(&ret_),
  1956. reinterpret_cast<char*>(&other->ret_));
  1957. }
  1958. ::PROTOBUF_NAMESPACE_ID::Metadata SCAdd::GetMetadata() const {
  1959. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  1960. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  1961. file_level_metadata_protocol_2eproto[1]);
  1962. }
  1963. // ===================================================================
  1964. class SCKickOff::_Internal {
  1965. public:
  1966. };
  1967. SCKickOff::SCKickOff(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  1968. bool is_message_owned)
  1969. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) {
  1970. // @@protoc_insertion_point(arena_constructor:RemoNet.SCKickOff)
  1971. }
  1972. SCKickOff::SCKickOff(const SCKickOff& from)
  1973. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() {
  1974. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1975. // @@protoc_insertion_point(copy_constructor:RemoNet.SCKickOff)
  1976. }
  1977. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCKickOff::_class_data_ = {
  1978. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl,
  1979. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl,
  1980. };
  1981. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCKickOff::GetClassData() const { return &_class_data_; }
  1982. ::PROTOBUF_NAMESPACE_ID::Metadata SCKickOff::GetMetadata() const {
  1983. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  1984. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  1985. file_level_metadata_protocol_2eproto[2]);
  1986. }
  1987. // ===================================================================
  1988. class Robot::_Internal {
  1989. public:
  1990. };
  1991. Robot::Robot(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  1992. bool is_message_owned)
  1993. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  1994. SharedCtor();
  1995. if (!is_message_owned) {
  1996. RegisterArenaDtor(arena);
  1997. }
  1998. // @@protoc_insertion_point(arena_constructor:RemoNet.Robot)
  1999. }
  2000. Robot::Robot(const Robot& from)
  2001. : ::PROTOBUF_NAMESPACE_ID::Message() {
  2002. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2003. name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  2004. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2005. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  2006. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2007. if (!from._internal_name().empty()) {
  2008. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(),
  2009. GetArenaForAllocation());
  2010. }
  2011. ::memcpy(&rid_, &from.rid_,
  2012. static_cast<size_t>(reinterpret_cast<char*>(&state_) -
  2013. reinterpret_cast<char*>(&rid_)) + sizeof(state_));
  2014. // @@protoc_insertion_point(copy_constructor:RemoNet.Robot)
  2015. }
  2016. inline void Robot::SharedCtor() {
  2017. name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  2018. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2019. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  2020. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2021. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  2022. reinterpret_cast<char*>(&rid_) - reinterpret_cast<char*>(this)),
  2023. 0, static_cast<size_t>(reinterpret_cast<char*>(&state_) -
  2024. reinterpret_cast<char*>(&rid_)) + sizeof(state_));
  2025. }
  2026. Robot::~Robot() {
  2027. // @@protoc_insertion_point(destructor:RemoNet.Robot)
  2028. if (GetArenaForAllocation() != nullptr) return;
  2029. SharedDtor();
  2030. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2031. }
  2032. inline void Robot::SharedDtor() {
  2033. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  2034. name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  2035. }
  2036. void Robot::ArenaDtor(void* object) {
  2037. Robot* _this = reinterpret_cast< Robot* >(object);
  2038. (void)_this;
  2039. }
  2040. void Robot::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  2041. }
  2042. void Robot::SetCachedSize(int size) const {
  2043. _cached_size_.Set(size);
  2044. }
  2045. void Robot::Clear() {
  2046. // @@protoc_insertion_point(message_clear_start:RemoNet.Robot)
  2047. uint32_t cached_has_bits = 0;
  2048. // Prevent compiler warnings about cached_has_bits being unused
  2049. (void) cached_has_bits;
  2050. name_.ClearToEmpty();
  2051. ::memset(&rid_, 0, static_cast<size_t>(
  2052. reinterpret_cast<char*>(&state_) -
  2053. reinterpret_cast<char*>(&rid_)) + sizeof(state_));
  2054. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2055. }
  2056. const char* Robot::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  2057. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  2058. while (!ctx->Done(&ptr)) {
  2059. uint32_t tag;
  2060. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  2061. switch (tag >> 3) {
  2062. // int32 rid = 1;
  2063. case 1:
  2064. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  2065. rid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2066. CHK_(ptr);
  2067. } else
  2068. goto handle_unusual;
  2069. continue;
  2070. // string name = 2;
  2071. case 2:
  2072. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
  2073. auto str = _internal_mutable_name();
  2074. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  2075. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.Robot.name"));
  2076. CHK_(ptr);
  2077. } else
  2078. goto handle_unusual;
  2079. continue;
  2080. // int32 type = 3;
  2081. case 3:
  2082. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  2083. type_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2084. CHK_(ptr);
  2085. } else
  2086. goto handle_unusual;
  2087. continue;
  2088. // .RemoNet.Robot.RobotState state = 4;
  2089. case 4:
  2090. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
  2091. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  2092. CHK_(ptr);
  2093. _internal_set_state(static_cast<::RemoNet::Robot_RobotState>(val));
  2094. } else
  2095. goto handle_unusual;
  2096. continue;
  2097. default:
  2098. goto handle_unusual;
  2099. } // switch
  2100. handle_unusual:
  2101. if ((tag == 0) || ((tag & 7) == 4)) {
  2102. CHK_(ptr);
  2103. ctx->SetLastTag(tag);
  2104. goto message_done;
  2105. }
  2106. ptr = UnknownFieldParse(
  2107. tag,
  2108. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  2109. ptr, ctx);
  2110. CHK_(ptr != nullptr);
  2111. } // while
  2112. message_done:
  2113. return ptr;
  2114. failure:
  2115. ptr = nullptr;
  2116. goto message_done;
  2117. #undef CHK_
  2118. }
  2119. uint8_t* Robot::_InternalSerialize(
  2120. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  2121. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.Robot)
  2122. uint32_t cached_has_bits = 0;
  2123. (void) cached_has_bits;
  2124. // int32 rid = 1;
  2125. if (this->_internal_rid() != 0) {
  2126. target = stream->EnsureSpace(target);
  2127. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_rid(), target);
  2128. }
  2129. // string name = 2;
  2130. if (!this->_internal_name().empty()) {
  2131. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  2132. this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
  2133. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  2134. "RemoNet.Robot.name");
  2135. target = stream->WriteStringMaybeAliased(
  2136. 2, this->_internal_name(), target);
  2137. }
  2138. // int32 type = 3;
  2139. if (this->_internal_type() != 0) {
  2140. target = stream->EnsureSpace(target);
  2141. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_type(), target);
  2142. }
  2143. // .RemoNet.Robot.RobotState state = 4;
  2144. if (this->_internal_state() != 0) {
  2145. target = stream->EnsureSpace(target);
  2146. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
  2147. 4, this->_internal_state(), target);
  2148. }
  2149. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  2150. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  2151. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  2152. }
  2153. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.Robot)
  2154. return target;
  2155. }
  2156. size_t Robot::ByteSizeLong() const {
  2157. // @@protoc_insertion_point(message_byte_size_start:RemoNet.Robot)
  2158. size_t total_size = 0;
  2159. uint32_t cached_has_bits = 0;
  2160. // Prevent compiler warnings about cached_has_bits being unused
  2161. (void) cached_has_bits;
  2162. // string name = 2;
  2163. if (!this->_internal_name().empty()) {
  2164. total_size += 1 +
  2165. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  2166. this->_internal_name());
  2167. }
  2168. // int32 rid = 1;
  2169. if (this->_internal_rid() != 0) {
  2170. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_rid());
  2171. }
  2172. // int32 type = 3;
  2173. if (this->_internal_type() != 0) {
  2174. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_type());
  2175. }
  2176. // .RemoNet.Robot.RobotState state = 4;
  2177. if (this->_internal_state() != 0) {
  2178. total_size += 1 +
  2179. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_state());
  2180. }
  2181. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  2182. }
  2183. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Robot::_class_data_ = {
  2184. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  2185. Robot::MergeImpl
  2186. };
  2187. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Robot::GetClassData() const { return &_class_data_; }
  2188. void Robot::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  2189. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  2190. static_cast<Robot *>(to)->MergeFrom(
  2191. static_cast<const Robot &>(from));
  2192. }
  2193. void Robot::MergeFrom(const Robot& from) {
  2194. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.Robot)
  2195. GOOGLE_DCHECK_NE(&from, this);
  2196. uint32_t cached_has_bits = 0;
  2197. (void) cached_has_bits;
  2198. if (!from._internal_name().empty()) {
  2199. _internal_set_name(from._internal_name());
  2200. }
  2201. if (from._internal_rid() != 0) {
  2202. _internal_set_rid(from._internal_rid());
  2203. }
  2204. if (from._internal_type() != 0) {
  2205. _internal_set_type(from._internal_type());
  2206. }
  2207. if (from._internal_state() != 0) {
  2208. _internal_set_state(from._internal_state());
  2209. }
  2210. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2211. }
  2212. void Robot::CopyFrom(const Robot& from) {
  2213. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.Robot)
  2214. if (&from == this) return;
  2215. Clear();
  2216. MergeFrom(from);
  2217. }
  2218. bool Robot::IsInitialized() const {
  2219. return true;
  2220. }
  2221. void Robot::InternalSwap(Robot* other) {
  2222. using std::swap;
  2223. auto* lhs_arena = GetArenaForAllocation();
  2224. auto* rhs_arena = other->GetArenaForAllocation();
  2225. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  2226. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  2227. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  2228. &name_, lhs_arena,
  2229. &other->name_, rhs_arena
  2230. );
  2231. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  2232. PROTOBUF_FIELD_OFFSET(Robot, state_)
  2233. + sizeof(Robot::state_)
  2234. - PROTOBUF_FIELD_OFFSET(Robot, rid_)>(
  2235. reinterpret_cast<char*>(&rid_),
  2236. reinterpret_cast<char*>(&other->rid_));
  2237. }
  2238. ::PROTOBUF_NAMESPACE_ID::Metadata Robot::GetMetadata() const {
  2239. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  2240. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  2241. file_level_metadata_protocol_2eproto[3]);
  2242. }
  2243. // ===================================================================
  2244. class CSRobot::_Internal {
  2245. public:
  2246. };
  2247. CSRobot::CSRobot(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  2248. bool is_message_owned)
  2249. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) {
  2250. // @@protoc_insertion_point(arena_constructor:RemoNet.CSRobot)
  2251. }
  2252. CSRobot::CSRobot(const CSRobot& from)
  2253. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() {
  2254. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2255. // @@protoc_insertion_point(copy_constructor:RemoNet.CSRobot)
  2256. }
  2257. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CSRobot::_class_data_ = {
  2258. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl,
  2259. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl,
  2260. };
  2261. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CSRobot::GetClassData() const { return &_class_data_; }
  2262. ::PROTOBUF_NAMESPACE_ID::Metadata CSRobot::GetMetadata() const {
  2263. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  2264. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  2265. file_level_metadata_protocol_2eproto[4]);
  2266. }
  2267. // ===================================================================
  2268. class SCRobot::_Internal {
  2269. public:
  2270. };
  2271. SCRobot::SCRobot(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  2272. bool is_message_owned)
  2273. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
  2274. robot_(arena) {
  2275. SharedCtor();
  2276. if (!is_message_owned) {
  2277. RegisterArenaDtor(arena);
  2278. }
  2279. // @@protoc_insertion_point(arena_constructor:RemoNet.SCRobot)
  2280. }
  2281. SCRobot::SCRobot(const SCRobot& from)
  2282. : ::PROTOBUF_NAMESPACE_ID::Message(),
  2283. robot_(from.robot_) {
  2284. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2285. // @@protoc_insertion_point(copy_constructor:RemoNet.SCRobot)
  2286. }
  2287. inline void SCRobot::SharedCtor() {
  2288. }
  2289. SCRobot::~SCRobot() {
  2290. // @@protoc_insertion_point(destructor:RemoNet.SCRobot)
  2291. if (GetArenaForAllocation() != nullptr) return;
  2292. SharedDtor();
  2293. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2294. }
  2295. inline void SCRobot::SharedDtor() {
  2296. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  2297. }
  2298. void SCRobot::ArenaDtor(void* object) {
  2299. SCRobot* _this = reinterpret_cast< SCRobot* >(object);
  2300. (void)_this;
  2301. }
  2302. void SCRobot::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  2303. }
  2304. void SCRobot::SetCachedSize(int size) const {
  2305. _cached_size_.Set(size);
  2306. }
  2307. void SCRobot::Clear() {
  2308. // @@protoc_insertion_point(message_clear_start:RemoNet.SCRobot)
  2309. uint32_t cached_has_bits = 0;
  2310. // Prevent compiler warnings about cached_has_bits being unused
  2311. (void) cached_has_bits;
  2312. robot_.Clear();
  2313. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2314. }
  2315. const char* SCRobot::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  2316. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  2317. while (!ctx->Done(&ptr)) {
  2318. uint32_t tag;
  2319. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  2320. switch (tag >> 3) {
  2321. // repeated .RemoNet.Robot robot = 1;
  2322. case 1:
  2323. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
  2324. ptr -= 1;
  2325. do {
  2326. ptr += 1;
  2327. ptr = ctx->ParseMessage(_internal_add_robot(), ptr);
  2328. CHK_(ptr);
  2329. if (!ctx->DataAvailable(ptr)) break;
  2330. } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
  2331. } else
  2332. goto handle_unusual;
  2333. continue;
  2334. default:
  2335. goto handle_unusual;
  2336. } // switch
  2337. handle_unusual:
  2338. if ((tag == 0) || ((tag & 7) == 4)) {
  2339. CHK_(ptr);
  2340. ctx->SetLastTag(tag);
  2341. goto message_done;
  2342. }
  2343. ptr = UnknownFieldParse(
  2344. tag,
  2345. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  2346. ptr, ctx);
  2347. CHK_(ptr != nullptr);
  2348. } // while
  2349. message_done:
  2350. return ptr;
  2351. failure:
  2352. ptr = nullptr;
  2353. goto message_done;
  2354. #undef CHK_
  2355. }
  2356. uint8_t* SCRobot::_InternalSerialize(
  2357. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  2358. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.SCRobot)
  2359. uint32_t cached_has_bits = 0;
  2360. (void) cached_has_bits;
  2361. // repeated .RemoNet.Robot robot = 1;
  2362. for (unsigned int i = 0,
  2363. n = static_cast<unsigned int>(this->_internal_robot_size()); i < n; i++) {
  2364. target = stream->EnsureSpace(target);
  2365. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  2366. InternalWriteMessage(1, this->_internal_robot(i), target, stream);
  2367. }
  2368. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  2369. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  2370. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  2371. }
  2372. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.SCRobot)
  2373. return target;
  2374. }
  2375. size_t SCRobot::ByteSizeLong() const {
  2376. // @@protoc_insertion_point(message_byte_size_start:RemoNet.SCRobot)
  2377. size_t total_size = 0;
  2378. uint32_t cached_has_bits = 0;
  2379. // Prevent compiler warnings about cached_has_bits being unused
  2380. (void) cached_has_bits;
  2381. // repeated .RemoNet.Robot robot = 1;
  2382. total_size += 1UL * this->_internal_robot_size();
  2383. for (const auto& msg : this->robot_) {
  2384. total_size +=
  2385. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  2386. }
  2387. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  2388. }
  2389. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCRobot::_class_data_ = {
  2390. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  2391. SCRobot::MergeImpl
  2392. };
  2393. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCRobot::GetClassData() const { return &_class_data_; }
  2394. void SCRobot::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  2395. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  2396. static_cast<SCRobot *>(to)->MergeFrom(
  2397. static_cast<const SCRobot &>(from));
  2398. }
  2399. void SCRobot::MergeFrom(const SCRobot& from) {
  2400. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.SCRobot)
  2401. GOOGLE_DCHECK_NE(&from, this);
  2402. uint32_t cached_has_bits = 0;
  2403. (void) cached_has_bits;
  2404. robot_.MergeFrom(from.robot_);
  2405. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2406. }
  2407. void SCRobot::CopyFrom(const SCRobot& from) {
  2408. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.SCRobot)
  2409. if (&from == this) return;
  2410. Clear();
  2411. MergeFrom(from);
  2412. }
  2413. bool SCRobot::IsInitialized() const {
  2414. return true;
  2415. }
  2416. void SCRobot::InternalSwap(SCRobot* other) {
  2417. using std::swap;
  2418. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  2419. robot_.InternalSwap(&other->robot_);
  2420. }
  2421. ::PROTOBUF_NAMESPACE_ID::Metadata SCRobot::GetMetadata() const {
  2422. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  2423. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  2424. file_level_metadata_protocol_2eproto[5]);
  2425. }
  2426. // ===================================================================
  2427. class CSSign::_Internal {
  2428. public:
  2429. };
  2430. CSSign::CSSign(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  2431. bool is_message_owned)
  2432. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  2433. SharedCtor();
  2434. if (!is_message_owned) {
  2435. RegisterArenaDtor(arena);
  2436. }
  2437. // @@protoc_insertion_point(arena_constructor:RemoNet.CSSign)
  2438. }
  2439. CSSign::CSSign(const CSSign& from)
  2440. : ::PROTOBUF_NAMESPACE_ID::Message() {
  2441. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2442. account_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  2443. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2444. account_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  2445. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2446. if (!from._internal_account().empty()) {
  2447. account_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_account(),
  2448. GetArenaForAllocation());
  2449. }
  2450. password_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  2451. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2452. password_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  2453. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2454. if (!from._internal_password().empty()) {
  2455. password_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_password(),
  2456. GetArenaForAllocation());
  2457. }
  2458. // @@protoc_insertion_point(copy_constructor:RemoNet.CSSign)
  2459. }
  2460. inline void CSSign::SharedCtor() {
  2461. account_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  2462. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2463. account_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  2464. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2465. password_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  2466. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2467. password_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  2468. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2469. }
  2470. CSSign::~CSSign() {
  2471. // @@protoc_insertion_point(destructor:RemoNet.CSSign)
  2472. if (GetArenaForAllocation() != nullptr) return;
  2473. SharedDtor();
  2474. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2475. }
  2476. inline void CSSign::SharedDtor() {
  2477. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  2478. account_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  2479. password_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  2480. }
  2481. void CSSign::ArenaDtor(void* object) {
  2482. CSSign* _this = reinterpret_cast< CSSign* >(object);
  2483. (void)_this;
  2484. }
  2485. void CSSign::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  2486. }
  2487. void CSSign::SetCachedSize(int size) const {
  2488. _cached_size_.Set(size);
  2489. }
  2490. void CSSign::Clear() {
  2491. // @@protoc_insertion_point(message_clear_start:RemoNet.CSSign)
  2492. uint32_t cached_has_bits = 0;
  2493. // Prevent compiler warnings about cached_has_bits being unused
  2494. (void) cached_has_bits;
  2495. account_.ClearToEmpty();
  2496. password_.ClearToEmpty();
  2497. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2498. }
  2499. const char* CSSign::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  2500. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  2501. while (!ctx->Done(&ptr)) {
  2502. uint32_t tag;
  2503. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  2504. switch (tag >> 3) {
  2505. // string account = 1;
  2506. case 1:
  2507. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
  2508. auto str = _internal_mutable_account();
  2509. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  2510. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.CSSign.account"));
  2511. CHK_(ptr);
  2512. } else
  2513. goto handle_unusual;
  2514. continue;
  2515. // string password = 2;
  2516. case 2:
  2517. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
  2518. auto str = _internal_mutable_password();
  2519. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  2520. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.CSSign.password"));
  2521. CHK_(ptr);
  2522. } else
  2523. goto handle_unusual;
  2524. continue;
  2525. default:
  2526. goto handle_unusual;
  2527. } // switch
  2528. handle_unusual:
  2529. if ((tag == 0) || ((tag & 7) == 4)) {
  2530. CHK_(ptr);
  2531. ctx->SetLastTag(tag);
  2532. goto message_done;
  2533. }
  2534. ptr = UnknownFieldParse(
  2535. tag,
  2536. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  2537. ptr, ctx);
  2538. CHK_(ptr != nullptr);
  2539. } // while
  2540. message_done:
  2541. return ptr;
  2542. failure:
  2543. ptr = nullptr;
  2544. goto message_done;
  2545. #undef CHK_
  2546. }
  2547. uint8_t* CSSign::_InternalSerialize(
  2548. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  2549. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CSSign)
  2550. uint32_t cached_has_bits = 0;
  2551. (void) cached_has_bits;
  2552. // string account = 1;
  2553. if (!this->_internal_account().empty()) {
  2554. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  2555. this->_internal_account().data(), static_cast<int>(this->_internal_account().length()),
  2556. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  2557. "RemoNet.CSSign.account");
  2558. target = stream->WriteStringMaybeAliased(
  2559. 1, this->_internal_account(), target);
  2560. }
  2561. // string password = 2;
  2562. if (!this->_internal_password().empty()) {
  2563. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  2564. this->_internal_password().data(), static_cast<int>(this->_internal_password().length()),
  2565. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  2566. "RemoNet.CSSign.password");
  2567. target = stream->WriteStringMaybeAliased(
  2568. 2, this->_internal_password(), target);
  2569. }
  2570. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  2571. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  2572. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  2573. }
  2574. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CSSign)
  2575. return target;
  2576. }
  2577. size_t CSSign::ByteSizeLong() const {
  2578. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CSSign)
  2579. size_t total_size = 0;
  2580. uint32_t cached_has_bits = 0;
  2581. // Prevent compiler warnings about cached_has_bits being unused
  2582. (void) cached_has_bits;
  2583. // string account = 1;
  2584. if (!this->_internal_account().empty()) {
  2585. total_size += 1 +
  2586. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  2587. this->_internal_account());
  2588. }
  2589. // string password = 2;
  2590. if (!this->_internal_password().empty()) {
  2591. total_size += 1 +
  2592. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  2593. this->_internal_password());
  2594. }
  2595. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  2596. }
  2597. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CSSign::_class_data_ = {
  2598. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  2599. CSSign::MergeImpl
  2600. };
  2601. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CSSign::GetClassData() const { return &_class_data_; }
  2602. void CSSign::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  2603. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  2604. static_cast<CSSign *>(to)->MergeFrom(
  2605. static_cast<const CSSign &>(from));
  2606. }
  2607. void CSSign::MergeFrom(const CSSign& from) {
  2608. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CSSign)
  2609. GOOGLE_DCHECK_NE(&from, this);
  2610. uint32_t cached_has_bits = 0;
  2611. (void) cached_has_bits;
  2612. if (!from._internal_account().empty()) {
  2613. _internal_set_account(from._internal_account());
  2614. }
  2615. if (!from._internal_password().empty()) {
  2616. _internal_set_password(from._internal_password());
  2617. }
  2618. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2619. }
  2620. void CSSign::CopyFrom(const CSSign& from) {
  2621. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CSSign)
  2622. if (&from == this) return;
  2623. Clear();
  2624. MergeFrom(from);
  2625. }
  2626. bool CSSign::IsInitialized() const {
  2627. return true;
  2628. }
  2629. void CSSign::InternalSwap(CSSign* other) {
  2630. using std::swap;
  2631. auto* lhs_arena = GetArenaForAllocation();
  2632. auto* rhs_arena = other->GetArenaForAllocation();
  2633. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  2634. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  2635. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  2636. &account_, lhs_arena,
  2637. &other->account_, rhs_arena
  2638. );
  2639. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  2640. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  2641. &password_, lhs_arena,
  2642. &other->password_, rhs_arena
  2643. );
  2644. }
  2645. ::PROTOBUF_NAMESPACE_ID::Metadata CSSign::GetMetadata() const {
  2646. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  2647. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  2648. file_level_metadata_protocol_2eproto[6]);
  2649. }
  2650. // ===================================================================
  2651. class SCSign::_Internal {
  2652. public:
  2653. };
  2654. SCSign::SCSign(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  2655. bool is_message_owned)
  2656. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  2657. SharedCtor();
  2658. if (!is_message_owned) {
  2659. RegisterArenaDtor(arena);
  2660. }
  2661. // @@protoc_insertion_point(arena_constructor:RemoNet.SCSign)
  2662. }
  2663. SCSign::SCSign(const SCSign& from)
  2664. : ::PROTOBUF_NAMESPACE_ID::Message() {
  2665. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2666. name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  2667. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2668. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  2669. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2670. if (!from._internal_name().empty()) {
  2671. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(),
  2672. GetArenaForAllocation());
  2673. }
  2674. ::memcpy(&ret_, &from.ret_,
  2675. static_cast<size_t>(reinterpret_cast<char*>(&cid_) -
  2676. reinterpret_cast<char*>(&ret_)) + sizeof(cid_));
  2677. // @@protoc_insertion_point(copy_constructor:RemoNet.SCSign)
  2678. }
  2679. inline void SCSign::SharedCtor() {
  2680. name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  2681. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2682. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  2683. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2684. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  2685. reinterpret_cast<char*>(&ret_) - reinterpret_cast<char*>(this)),
  2686. 0, static_cast<size_t>(reinterpret_cast<char*>(&cid_) -
  2687. reinterpret_cast<char*>(&ret_)) + sizeof(cid_));
  2688. }
  2689. SCSign::~SCSign() {
  2690. // @@protoc_insertion_point(destructor:RemoNet.SCSign)
  2691. if (GetArenaForAllocation() != nullptr) return;
  2692. SharedDtor();
  2693. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2694. }
  2695. inline void SCSign::SharedDtor() {
  2696. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  2697. name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  2698. }
  2699. void SCSign::ArenaDtor(void* object) {
  2700. SCSign* _this = reinterpret_cast< SCSign* >(object);
  2701. (void)_this;
  2702. }
  2703. void SCSign::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  2704. }
  2705. void SCSign::SetCachedSize(int size) const {
  2706. _cached_size_.Set(size);
  2707. }
  2708. void SCSign::Clear() {
  2709. // @@protoc_insertion_point(message_clear_start:RemoNet.SCSign)
  2710. uint32_t cached_has_bits = 0;
  2711. // Prevent compiler warnings about cached_has_bits being unused
  2712. (void) cached_has_bits;
  2713. name_.ClearToEmpty();
  2714. ::memset(&ret_, 0, static_cast<size_t>(
  2715. reinterpret_cast<char*>(&cid_) -
  2716. reinterpret_cast<char*>(&ret_)) + sizeof(cid_));
  2717. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2718. }
  2719. const char* SCSign::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  2720. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  2721. while (!ctx->Done(&ptr)) {
  2722. uint32_t tag;
  2723. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  2724. switch (tag >> 3) {
  2725. // bool ret = 1;
  2726. case 1:
  2727. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  2728. ret_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  2729. CHK_(ptr);
  2730. } else
  2731. goto handle_unusual;
  2732. continue;
  2733. // int32 uid = 2;
  2734. case 2:
  2735. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  2736. uid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2737. CHK_(ptr);
  2738. } else
  2739. goto handle_unusual;
  2740. continue;
  2741. // int32 cid = 3;
  2742. case 3:
  2743. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  2744. cid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2745. CHK_(ptr);
  2746. } else
  2747. goto handle_unusual;
  2748. continue;
  2749. // string name = 4;
  2750. case 4:
  2751. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
  2752. auto str = _internal_mutable_name();
  2753. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  2754. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.SCSign.name"));
  2755. CHK_(ptr);
  2756. } else
  2757. goto handle_unusual;
  2758. continue;
  2759. default:
  2760. goto handle_unusual;
  2761. } // switch
  2762. handle_unusual:
  2763. if ((tag == 0) || ((tag & 7) == 4)) {
  2764. CHK_(ptr);
  2765. ctx->SetLastTag(tag);
  2766. goto message_done;
  2767. }
  2768. ptr = UnknownFieldParse(
  2769. tag,
  2770. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  2771. ptr, ctx);
  2772. CHK_(ptr != nullptr);
  2773. } // while
  2774. message_done:
  2775. return ptr;
  2776. failure:
  2777. ptr = nullptr;
  2778. goto message_done;
  2779. #undef CHK_
  2780. }
  2781. uint8_t* SCSign::_InternalSerialize(
  2782. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  2783. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.SCSign)
  2784. uint32_t cached_has_bits = 0;
  2785. (void) cached_has_bits;
  2786. // bool ret = 1;
  2787. if (this->_internal_ret() != 0) {
  2788. target = stream->EnsureSpace(target);
  2789. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_ret(), target);
  2790. }
  2791. // int32 uid = 2;
  2792. if (this->_internal_uid() != 0) {
  2793. target = stream->EnsureSpace(target);
  2794. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_uid(), target);
  2795. }
  2796. // int32 cid = 3;
  2797. if (this->_internal_cid() != 0) {
  2798. target = stream->EnsureSpace(target);
  2799. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_cid(), target);
  2800. }
  2801. // string name = 4;
  2802. if (!this->_internal_name().empty()) {
  2803. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  2804. this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
  2805. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  2806. "RemoNet.SCSign.name");
  2807. target = stream->WriteStringMaybeAliased(
  2808. 4, this->_internal_name(), target);
  2809. }
  2810. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  2811. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  2812. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  2813. }
  2814. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.SCSign)
  2815. return target;
  2816. }
  2817. size_t SCSign::ByteSizeLong() const {
  2818. // @@protoc_insertion_point(message_byte_size_start:RemoNet.SCSign)
  2819. size_t total_size = 0;
  2820. uint32_t cached_has_bits = 0;
  2821. // Prevent compiler warnings about cached_has_bits being unused
  2822. (void) cached_has_bits;
  2823. // string name = 4;
  2824. if (!this->_internal_name().empty()) {
  2825. total_size += 1 +
  2826. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  2827. this->_internal_name());
  2828. }
  2829. // bool ret = 1;
  2830. if (this->_internal_ret() != 0) {
  2831. total_size += 1 + 1;
  2832. }
  2833. // int32 uid = 2;
  2834. if (this->_internal_uid() != 0) {
  2835. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_uid());
  2836. }
  2837. // int32 cid = 3;
  2838. if (this->_internal_cid() != 0) {
  2839. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_cid());
  2840. }
  2841. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  2842. }
  2843. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCSign::_class_data_ = {
  2844. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  2845. SCSign::MergeImpl
  2846. };
  2847. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCSign::GetClassData() const { return &_class_data_; }
  2848. void SCSign::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  2849. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  2850. static_cast<SCSign *>(to)->MergeFrom(
  2851. static_cast<const SCSign &>(from));
  2852. }
  2853. void SCSign::MergeFrom(const SCSign& from) {
  2854. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.SCSign)
  2855. GOOGLE_DCHECK_NE(&from, this);
  2856. uint32_t cached_has_bits = 0;
  2857. (void) cached_has_bits;
  2858. if (!from._internal_name().empty()) {
  2859. _internal_set_name(from._internal_name());
  2860. }
  2861. if (from._internal_ret() != 0) {
  2862. _internal_set_ret(from._internal_ret());
  2863. }
  2864. if (from._internal_uid() != 0) {
  2865. _internal_set_uid(from._internal_uid());
  2866. }
  2867. if (from._internal_cid() != 0) {
  2868. _internal_set_cid(from._internal_cid());
  2869. }
  2870. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2871. }
  2872. void SCSign::CopyFrom(const SCSign& from) {
  2873. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.SCSign)
  2874. if (&from == this) return;
  2875. Clear();
  2876. MergeFrom(from);
  2877. }
  2878. bool SCSign::IsInitialized() const {
  2879. return true;
  2880. }
  2881. void SCSign::InternalSwap(SCSign* other) {
  2882. using std::swap;
  2883. auto* lhs_arena = GetArenaForAllocation();
  2884. auto* rhs_arena = other->GetArenaForAllocation();
  2885. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  2886. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  2887. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  2888. &name_, lhs_arena,
  2889. &other->name_, rhs_arena
  2890. );
  2891. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  2892. PROTOBUF_FIELD_OFFSET(SCSign, cid_)
  2893. + sizeof(SCSign::cid_)
  2894. - PROTOBUF_FIELD_OFFSET(SCSign, ret_)>(
  2895. reinterpret_cast<char*>(&ret_),
  2896. reinterpret_cast<char*>(&other->ret_));
  2897. }
  2898. ::PROTOBUF_NAMESPACE_ID::Metadata SCSign::GetMetadata() const {
  2899. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  2900. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  2901. file_level_metadata_protocol_2eproto[7]);
  2902. }
  2903. // ===================================================================
  2904. class CSReq::_Internal {
  2905. public:
  2906. };
  2907. CSReq::CSReq(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  2908. bool is_message_owned)
  2909. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  2910. SharedCtor();
  2911. if (!is_message_owned) {
  2912. RegisterArenaDtor(arena);
  2913. }
  2914. // @@protoc_insertion_point(arena_constructor:RemoNet.CSReq)
  2915. }
  2916. CSReq::CSReq(const CSReq& from)
  2917. : ::PROTOBUF_NAMESPACE_ID::Message() {
  2918. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2919. ::memcpy(&peer_, &from.peer_,
  2920. static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  2921. reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
  2922. // @@protoc_insertion_point(copy_constructor:RemoNet.CSReq)
  2923. }
  2924. inline void CSReq::SharedCtor() {
  2925. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  2926. reinterpret_cast<char*>(&peer_) - reinterpret_cast<char*>(this)),
  2927. 0, static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  2928. reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
  2929. }
  2930. CSReq::~CSReq() {
  2931. // @@protoc_insertion_point(destructor:RemoNet.CSReq)
  2932. if (GetArenaForAllocation() != nullptr) return;
  2933. SharedDtor();
  2934. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2935. }
  2936. inline void CSReq::SharedDtor() {
  2937. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  2938. }
  2939. void CSReq::ArenaDtor(void* object) {
  2940. CSReq* _this = reinterpret_cast< CSReq* >(object);
  2941. (void)_this;
  2942. }
  2943. void CSReq::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  2944. }
  2945. void CSReq::SetCachedSize(int size) const {
  2946. _cached_size_.Set(size);
  2947. }
  2948. void CSReq::Clear() {
  2949. // @@protoc_insertion_point(message_clear_start:RemoNet.CSReq)
  2950. uint32_t cached_has_bits = 0;
  2951. // Prevent compiler warnings about cached_has_bits being unused
  2952. (void) cached_has_bits;
  2953. ::memset(&peer_, 0, static_cast<size_t>(
  2954. reinterpret_cast<char*>(&egotype_) -
  2955. reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
  2956. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2957. }
  2958. const char* CSReq::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  2959. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  2960. while (!ctx->Done(&ptr)) {
  2961. uint32_t tag;
  2962. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  2963. switch (tag >> 3) {
  2964. // int32 peer = 1;
  2965. case 1:
  2966. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  2967. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2968. CHK_(ptr);
  2969. } else
  2970. goto handle_unusual;
  2971. continue;
  2972. // int32 index = 2;
  2973. case 2:
  2974. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  2975. index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2976. CHK_(ptr);
  2977. } else
  2978. goto handle_unusual;
  2979. continue;
  2980. // int32 egotype = 3;
  2981. case 3:
  2982. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  2983. egotype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2984. CHK_(ptr);
  2985. } else
  2986. goto handle_unusual;
  2987. continue;
  2988. default:
  2989. goto handle_unusual;
  2990. } // switch
  2991. handle_unusual:
  2992. if ((tag == 0) || ((tag & 7) == 4)) {
  2993. CHK_(ptr);
  2994. ctx->SetLastTag(tag);
  2995. goto message_done;
  2996. }
  2997. ptr = UnknownFieldParse(
  2998. tag,
  2999. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  3000. ptr, ctx);
  3001. CHK_(ptr != nullptr);
  3002. } // while
  3003. message_done:
  3004. return ptr;
  3005. failure:
  3006. ptr = nullptr;
  3007. goto message_done;
  3008. #undef CHK_
  3009. }
  3010. uint8_t* CSReq::_InternalSerialize(
  3011. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  3012. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CSReq)
  3013. uint32_t cached_has_bits = 0;
  3014. (void) cached_has_bits;
  3015. // int32 peer = 1;
  3016. if (this->_internal_peer() != 0) {
  3017. target = stream->EnsureSpace(target);
  3018. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_peer(), target);
  3019. }
  3020. // int32 index = 2;
  3021. if (this->_internal_index() != 0) {
  3022. target = stream->EnsureSpace(target);
  3023. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_index(), target);
  3024. }
  3025. // int32 egotype = 3;
  3026. if (this->_internal_egotype() != 0) {
  3027. target = stream->EnsureSpace(target);
  3028. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_egotype(), target);
  3029. }
  3030. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  3031. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  3032. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  3033. }
  3034. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CSReq)
  3035. return target;
  3036. }
  3037. size_t CSReq::ByteSizeLong() const {
  3038. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CSReq)
  3039. size_t total_size = 0;
  3040. uint32_t cached_has_bits = 0;
  3041. // Prevent compiler warnings about cached_has_bits being unused
  3042. (void) cached_has_bits;
  3043. // int32 peer = 1;
  3044. if (this->_internal_peer() != 0) {
  3045. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  3046. }
  3047. // int32 index = 2;
  3048. if (this->_internal_index() != 0) {
  3049. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_index());
  3050. }
  3051. // int32 egotype = 3;
  3052. if (this->_internal_egotype() != 0) {
  3053. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_egotype());
  3054. }
  3055. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  3056. }
  3057. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CSReq::_class_data_ = {
  3058. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  3059. CSReq::MergeImpl
  3060. };
  3061. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CSReq::GetClassData() const { return &_class_data_; }
  3062. void CSReq::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  3063. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  3064. static_cast<CSReq *>(to)->MergeFrom(
  3065. static_cast<const CSReq &>(from));
  3066. }
  3067. void CSReq::MergeFrom(const CSReq& from) {
  3068. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CSReq)
  3069. GOOGLE_DCHECK_NE(&from, this);
  3070. uint32_t cached_has_bits = 0;
  3071. (void) cached_has_bits;
  3072. if (from._internal_peer() != 0) {
  3073. _internal_set_peer(from._internal_peer());
  3074. }
  3075. if (from._internal_index() != 0) {
  3076. _internal_set_index(from._internal_index());
  3077. }
  3078. if (from._internal_egotype() != 0) {
  3079. _internal_set_egotype(from._internal_egotype());
  3080. }
  3081. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3082. }
  3083. void CSReq::CopyFrom(const CSReq& from) {
  3084. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CSReq)
  3085. if (&from == this) return;
  3086. Clear();
  3087. MergeFrom(from);
  3088. }
  3089. bool CSReq::IsInitialized() const {
  3090. return true;
  3091. }
  3092. void CSReq::InternalSwap(CSReq* other) {
  3093. using std::swap;
  3094. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  3095. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  3096. PROTOBUF_FIELD_OFFSET(CSReq, egotype_)
  3097. + sizeof(CSReq::egotype_)
  3098. - PROTOBUF_FIELD_OFFSET(CSReq, peer_)>(
  3099. reinterpret_cast<char*>(&peer_),
  3100. reinterpret_cast<char*>(&other->peer_));
  3101. }
  3102. ::PROTOBUF_NAMESPACE_ID::Metadata CSReq::GetMetadata() const {
  3103. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  3104. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  3105. file_level_metadata_protocol_2eproto[8]);
  3106. }
  3107. // ===================================================================
  3108. class SCReq::_Internal {
  3109. public:
  3110. };
  3111. SCReq::SCReq(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  3112. bool is_message_owned)
  3113. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  3114. SharedCtor();
  3115. if (!is_message_owned) {
  3116. RegisterArenaDtor(arena);
  3117. }
  3118. // @@protoc_insertion_point(arena_constructor:RemoNet.SCReq)
  3119. }
  3120. SCReq::SCReq(const SCReq& from)
  3121. : ::PROTOBUF_NAMESPACE_ID::Message() {
  3122. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3123. ::memcpy(&desc_, &from.desc_,
  3124. static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  3125. reinterpret_cast<char*>(&desc_)) + sizeof(egotype_));
  3126. // @@protoc_insertion_point(copy_constructor:RemoNet.SCReq)
  3127. }
  3128. inline void SCReq::SharedCtor() {
  3129. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  3130. reinterpret_cast<char*>(&desc_) - reinterpret_cast<char*>(this)),
  3131. 0, static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  3132. reinterpret_cast<char*>(&desc_)) + sizeof(egotype_));
  3133. }
  3134. SCReq::~SCReq() {
  3135. // @@protoc_insertion_point(destructor:RemoNet.SCReq)
  3136. if (GetArenaForAllocation() != nullptr) return;
  3137. SharedDtor();
  3138. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3139. }
  3140. inline void SCReq::SharedDtor() {
  3141. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  3142. }
  3143. void SCReq::ArenaDtor(void* object) {
  3144. SCReq* _this = reinterpret_cast< SCReq* >(object);
  3145. (void)_this;
  3146. }
  3147. void SCReq::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  3148. }
  3149. void SCReq::SetCachedSize(int size) const {
  3150. _cached_size_.Set(size);
  3151. }
  3152. void SCReq::Clear() {
  3153. // @@protoc_insertion_point(message_clear_start:RemoNet.SCReq)
  3154. uint32_t cached_has_bits = 0;
  3155. // Prevent compiler warnings about cached_has_bits being unused
  3156. (void) cached_has_bits;
  3157. ::memset(&desc_, 0, static_cast<size_t>(
  3158. reinterpret_cast<char*>(&egotype_) -
  3159. reinterpret_cast<char*>(&desc_)) + sizeof(egotype_));
  3160. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3161. }
  3162. const char* SCReq::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  3163. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  3164. while (!ctx->Done(&ptr)) {
  3165. uint32_t tag;
  3166. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  3167. switch (tag >> 3) {
  3168. // .RemoNet.VideoDesc desc = 1;
  3169. case 1:
  3170. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  3171. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  3172. CHK_(ptr);
  3173. _internal_set_desc(static_cast<::RemoNet::VideoDesc>(val));
  3174. } else
  3175. goto handle_unusual;
  3176. continue;
  3177. // int32 peer = 2;
  3178. case 2:
  3179. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  3180. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3181. CHK_(ptr);
  3182. } else
  3183. goto handle_unusual;
  3184. continue;
  3185. // int32 egotype = 3;
  3186. case 3:
  3187. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  3188. egotype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3189. CHK_(ptr);
  3190. } else
  3191. goto handle_unusual;
  3192. continue;
  3193. default:
  3194. goto handle_unusual;
  3195. } // switch
  3196. handle_unusual:
  3197. if ((tag == 0) || ((tag & 7) == 4)) {
  3198. CHK_(ptr);
  3199. ctx->SetLastTag(tag);
  3200. goto message_done;
  3201. }
  3202. ptr = UnknownFieldParse(
  3203. tag,
  3204. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  3205. ptr, ctx);
  3206. CHK_(ptr != nullptr);
  3207. } // while
  3208. message_done:
  3209. return ptr;
  3210. failure:
  3211. ptr = nullptr;
  3212. goto message_done;
  3213. #undef CHK_
  3214. }
  3215. uint8_t* SCReq::_InternalSerialize(
  3216. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  3217. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.SCReq)
  3218. uint32_t cached_has_bits = 0;
  3219. (void) cached_has_bits;
  3220. // .RemoNet.VideoDesc desc = 1;
  3221. if (this->_internal_desc() != 0) {
  3222. target = stream->EnsureSpace(target);
  3223. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
  3224. 1, this->_internal_desc(), target);
  3225. }
  3226. // int32 peer = 2;
  3227. if (this->_internal_peer() != 0) {
  3228. target = stream->EnsureSpace(target);
  3229. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_peer(), target);
  3230. }
  3231. // int32 egotype = 3;
  3232. if (this->_internal_egotype() != 0) {
  3233. target = stream->EnsureSpace(target);
  3234. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_egotype(), target);
  3235. }
  3236. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  3237. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  3238. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  3239. }
  3240. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.SCReq)
  3241. return target;
  3242. }
  3243. size_t SCReq::ByteSizeLong() const {
  3244. // @@protoc_insertion_point(message_byte_size_start:RemoNet.SCReq)
  3245. size_t total_size = 0;
  3246. uint32_t cached_has_bits = 0;
  3247. // Prevent compiler warnings about cached_has_bits being unused
  3248. (void) cached_has_bits;
  3249. // .RemoNet.VideoDesc desc = 1;
  3250. if (this->_internal_desc() != 0) {
  3251. total_size += 1 +
  3252. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_desc());
  3253. }
  3254. // int32 peer = 2;
  3255. if (this->_internal_peer() != 0) {
  3256. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  3257. }
  3258. // int32 egotype = 3;
  3259. if (this->_internal_egotype() != 0) {
  3260. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_egotype());
  3261. }
  3262. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  3263. }
  3264. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCReq::_class_data_ = {
  3265. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  3266. SCReq::MergeImpl
  3267. };
  3268. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCReq::GetClassData() const { return &_class_data_; }
  3269. void SCReq::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  3270. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  3271. static_cast<SCReq *>(to)->MergeFrom(
  3272. static_cast<const SCReq &>(from));
  3273. }
  3274. void SCReq::MergeFrom(const SCReq& from) {
  3275. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.SCReq)
  3276. GOOGLE_DCHECK_NE(&from, this);
  3277. uint32_t cached_has_bits = 0;
  3278. (void) cached_has_bits;
  3279. if (from._internal_desc() != 0) {
  3280. _internal_set_desc(from._internal_desc());
  3281. }
  3282. if (from._internal_peer() != 0) {
  3283. _internal_set_peer(from._internal_peer());
  3284. }
  3285. if (from._internal_egotype() != 0) {
  3286. _internal_set_egotype(from._internal_egotype());
  3287. }
  3288. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3289. }
  3290. void SCReq::CopyFrom(const SCReq& from) {
  3291. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.SCReq)
  3292. if (&from == this) return;
  3293. Clear();
  3294. MergeFrom(from);
  3295. }
  3296. bool SCReq::IsInitialized() const {
  3297. return true;
  3298. }
  3299. void SCReq::InternalSwap(SCReq* other) {
  3300. using std::swap;
  3301. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  3302. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  3303. PROTOBUF_FIELD_OFFSET(SCReq, egotype_)
  3304. + sizeof(SCReq::egotype_)
  3305. - PROTOBUF_FIELD_OFFSET(SCReq, desc_)>(
  3306. reinterpret_cast<char*>(&desc_),
  3307. reinterpret_cast<char*>(&other->desc_));
  3308. }
  3309. ::PROTOBUF_NAMESPACE_ID::Metadata SCReq::GetMetadata() const {
  3310. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  3311. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  3312. file_level_metadata_protocol_2eproto[9]);
  3313. }
  3314. // ===================================================================
  3315. class CSRep::_Internal {
  3316. public:
  3317. };
  3318. CSRep::CSRep(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  3319. bool is_message_owned)
  3320. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  3321. SharedCtor();
  3322. if (!is_message_owned) {
  3323. RegisterArenaDtor(arena);
  3324. }
  3325. // @@protoc_insertion_point(arena_constructor:RemoNet.CSRep)
  3326. }
  3327. CSRep::CSRep(const CSRep& from)
  3328. : ::PROTOBUF_NAMESPACE_ID::Message() {
  3329. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3330. ::memcpy(&desc_, &from.desc_,
  3331. static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  3332. reinterpret_cast<char*>(&desc_)) + sizeof(egotype_));
  3333. // @@protoc_insertion_point(copy_constructor:RemoNet.CSRep)
  3334. }
  3335. inline void CSRep::SharedCtor() {
  3336. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  3337. reinterpret_cast<char*>(&desc_) - reinterpret_cast<char*>(this)),
  3338. 0, static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  3339. reinterpret_cast<char*>(&desc_)) + sizeof(egotype_));
  3340. }
  3341. CSRep::~CSRep() {
  3342. // @@protoc_insertion_point(destructor:RemoNet.CSRep)
  3343. if (GetArenaForAllocation() != nullptr) return;
  3344. SharedDtor();
  3345. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3346. }
  3347. inline void CSRep::SharedDtor() {
  3348. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  3349. }
  3350. void CSRep::ArenaDtor(void* object) {
  3351. CSRep* _this = reinterpret_cast< CSRep* >(object);
  3352. (void)_this;
  3353. }
  3354. void CSRep::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  3355. }
  3356. void CSRep::SetCachedSize(int size) const {
  3357. _cached_size_.Set(size);
  3358. }
  3359. void CSRep::Clear() {
  3360. // @@protoc_insertion_point(message_clear_start:RemoNet.CSRep)
  3361. uint32_t cached_has_bits = 0;
  3362. // Prevent compiler warnings about cached_has_bits being unused
  3363. (void) cached_has_bits;
  3364. ::memset(&desc_, 0, static_cast<size_t>(
  3365. reinterpret_cast<char*>(&egotype_) -
  3366. reinterpret_cast<char*>(&desc_)) + sizeof(egotype_));
  3367. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3368. }
  3369. const char* CSRep::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  3370. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  3371. while (!ctx->Done(&ptr)) {
  3372. uint32_t tag;
  3373. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  3374. switch (tag >> 3) {
  3375. // .RemoNet.VideoDesc desc = 1;
  3376. case 1:
  3377. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  3378. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  3379. CHK_(ptr);
  3380. _internal_set_desc(static_cast<::RemoNet::VideoDesc>(val));
  3381. } else
  3382. goto handle_unusual;
  3383. continue;
  3384. // int32 peer = 2;
  3385. case 2:
  3386. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  3387. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3388. CHK_(ptr);
  3389. } else
  3390. goto handle_unusual;
  3391. continue;
  3392. // int32 index = 3;
  3393. case 3:
  3394. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  3395. index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3396. CHK_(ptr);
  3397. } else
  3398. goto handle_unusual;
  3399. continue;
  3400. // int32 egotype = 4;
  3401. case 4:
  3402. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
  3403. egotype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3404. CHK_(ptr);
  3405. } else
  3406. goto handle_unusual;
  3407. continue;
  3408. default:
  3409. goto handle_unusual;
  3410. } // switch
  3411. handle_unusual:
  3412. if ((tag == 0) || ((tag & 7) == 4)) {
  3413. CHK_(ptr);
  3414. ctx->SetLastTag(tag);
  3415. goto message_done;
  3416. }
  3417. ptr = UnknownFieldParse(
  3418. tag,
  3419. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  3420. ptr, ctx);
  3421. CHK_(ptr != nullptr);
  3422. } // while
  3423. message_done:
  3424. return ptr;
  3425. failure:
  3426. ptr = nullptr;
  3427. goto message_done;
  3428. #undef CHK_
  3429. }
  3430. uint8_t* CSRep::_InternalSerialize(
  3431. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  3432. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CSRep)
  3433. uint32_t cached_has_bits = 0;
  3434. (void) cached_has_bits;
  3435. // .RemoNet.VideoDesc desc = 1;
  3436. if (this->_internal_desc() != 0) {
  3437. target = stream->EnsureSpace(target);
  3438. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
  3439. 1, this->_internal_desc(), target);
  3440. }
  3441. // int32 peer = 2;
  3442. if (this->_internal_peer() != 0) {
  3443. target = stream->EnsureSpace(target);
  3444. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_peer(), target);
  3445. }
  3446. // int32 index = 3;
  3447. if (this->_internal_index() != 0) {
  3448. target = stream->EnsureSpace(target);
  3449. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_index(), target);
  3450. }
  3451. // int32 egotype = 4;
  3452. if (this->_internal_egotype() != 0) {
  3453. target = stream->EnsureSpace(target);
  3454. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_egotype(), target);
  3455. }
  3456. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  3457. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  3458. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  3459. }
  3460. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CSRep)
  3461. return target;
  3462. }
  3463. size_t CSRep::ByteSizeLong() const {
  3464. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CSRep)
  3465. size_t total_size = 0;
  3466. uint32_t cached_has_bits = 0;
  3467. // Prevent compiler warnings about cached_has_bits being unused
  3468. (void) cached_has_bits;
  3469. // .RemoNet.VideoDesc desc = 1;
  3470. if (this->_internal_desc() != 0) {
  3471. total_size += 1 +
  3472. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_desc());
  3473. }
  3474. // int32 peer = 2;
  3475. if (this->_internal_peer() != 0) {
  3476. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  3477. }
  3478. // int32 index = 3;
  3479. if (this->_internal_index() != 0) {
  3480. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_index());
  3481. }
  3482. // int32 egotype = 4;
  3483. if (this->_internal_egotype() != 0) {
  3484. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_egotype());
  3485. }
  3486. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  3487. }
  3488. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CSRep::_class_data_ = {
  3489. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  3490. CSRep::MergeImpl
  3491. };
  3492. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CSRep::GetClassData() const { return &_class_data_; }
  3493. void CSRep::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  3494. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  3495. static_cast<CSRep *>(to)->MergeFrom(
  3496. static_cast<const CSRep &>(from));
  3497. }
  3498. void CSRep::MergeFrom(const CSRep& from) {
  3499. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CSRep)
  3500. GOOGLE_DCHECK_NE(&from, this);
  3501. uint32_t cached_has_bits = 0;
  3502. (void) cached_has_bits;
  3503. if (from._internal_desc() != 0) {
  3504. _internal_set_desc(from._internal_desc());
  3505. }
  3506. if (from._internal_peer() != 0) {
  3507. _internal_set_peer(from._internal_peer());
  3508. }
  3509. if (from._internal_index() != 0) {
  3510. _internal_set_index(from._internal_index());
  3511. }
  3512. if (from._internal_egotype() != 0) {
  3513. _internal_set_egotype(from._internal_egotype());
  3514. }
  3515. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3516. }
  3517. void CSRep::CopyFrom(const CSRep& from) {
  3518. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CSRep)
  3519. if (&from == this) return;
  3520. Clear();
  3521. MergeFrom(from);
  3522. }
  3523. bool CSRep::IsInitialized() const {
  3524. return true;
  3525. }
  3526. void CSRep::InternalSwap(CSRep* other) {
  3527. using std::swap;
  3528. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  3529. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  3530. PROTOBUF_FIELD_OFFSET(CSRep, egotype_)
  3531. + sizeof(CSRep::egotype_)
  3532. - PROTOBUF_FIELD_OFFSET(CSRep, desc_)>(
  3533. reinterpret_cast<char*>(&desc_),
  3534. reinterpret_cast<char*>(&other->desc_));
  3535. }
  3536. ::PROTOBUF_NAMESPACE_ID::Metadata CSRep::GetMetadata() const {
  3537. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  3538. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  3539. file_level_metadata_protocol_2eproto[10]);
  3540. }
  3541. // ===================================================================
  3542. class SCRep::_Internal {
  3543. public:
  3544. };
  3545. SCRep::SCRep(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  3546. bool is_message_owned)
  3547. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  3548. SharedCtor();
  3549. if (!is_message_owned) {
  3550. RegisterArenaDtor(arena);
  3551. }
  3552. // @@protoc_insertion_point(arena_constructor:RemoNet.SCRep)
  3553. }
  3554. SCRep::SCRep(const SCRep& from)
  3555. : ::PROTOBUF_NAMESPACE_ID::Message() {
  3556. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3557. ::memcpy(&desc_, &from.desc_,
  3558. static_cast<size_t>(reinterpret_cast<char*>(&peer_) -
  3559. reinterpret_cast<char*>(&desc_)) + sizeof(peer_));
  3560. // @@protoc_insertion_point(copy_constructor:RemoNet.SCRep)
  3561. }
  3562. inline void SCRep::SharedCtor() {
  3563. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  3564. reinterpret_cast<char*>(&desc_) - reinterpret_cast<char*>(this)),
  3565. 0, static_cast<size_t>(reinterpret_cast<char*>(&peer_) -
  3566. reinterpret_cast<char*>(&desc_)) + sizeof(peer_));
  3567. }
  3568. SCRep::~SCRep() {
  3569. // @@protoc_insertion_point(destructor:RemoNet.SCRep)
  3570. if (GetArenaForAllocation() != nullptr) return;
  3571. SharedDtor();
  3572. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3573. }
  3574. inline void SCRep::SharedDtor() {
  3575. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  3576. }
  3577. void SCRep::ArenaDtor(void* object) {
  3578. SCRep* _this = reinterpret_cast< SCRep* >(object);
  3579. (void)_this;
  3580. }
  3581. void SCRep::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  3582. }
  3583. void SCRep::SetCachedSize(int size) const {
  3584. _cached_size_.Set(size);
  3585. }
  3586. void SCRep::Clear() {
  3587. // @@protoc_insertion_point(message_clear_start:RemoNet.SCRep)
  3588. uint32_t cached_has_bits = 0;
  3589. // Prevent compiler warnings about cached_has_bits being unused
  3590. (void) cached_has_bits;
  3591. ::memset(&desc_, 0, static_cast<size_t>(
  3592. reinterpret_cast<char*>(&peer_) -
  3593. reinterpret_cast<char*>(&desc_)) + sizeof(peer_));
  3594. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3595. }
  3596. const char* SCRep::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  3597. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  3598. while (!ctx->Done(&ptr)) {
  3599. uint32_t tag;
  3600. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  3601. switch (tag >> 3) {
  3602. // .RemoNet.VideoDesc desc = 1;
  3603. case 1:
  3604. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  3605. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  3606. CHK_(ptr);
  3607. _internal_set_desc(static_cast<::RemoNet::VideoDesc>(val));
  3608. } else
  3609. goto handle_unusual;
  3610. continue;
  3611. // int32 index = 2;
  3612. case 2:
  3613. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  3614. index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3615. CHK_(ptr);
  3616. } else
  3617. goto handle_unusual;
  3618. continue;
  3619. // int32 egotype = 3;
  3620. case 3:
  3621. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  3622. egotype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3623. CHK_(ptr);
  3624. } else
  3625. goto handle_unusual;
  3626. continue;
  3627. // int32 peer = 4;
  3628. case 4:
  3629. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
  3630. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3631. CHK_(ptr);
  3632. } else
  3633. goto handle_unusual;
  3634. continue;
  3635. default:
  3636. goto handle_unusual;
  3637. } // switch
  3638. handle_unusual:
  3639. if ((tag == 0) || ((tag & 7) == 4)) {
  3640. CHK_(ptr);
  3641. ctx->SetLastTag(tag);
  3642. goto message_done;
  3643. }
  3644. ptr = UnknownFieldParse(
  3645. tag,
  3646. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  3647. ptr, ctx);
  3648. CHK_(ptr != nullptr);
  3649. } // while
  3650. message_done:
  3651. return ptr;
  3652. failure:
  3653. ptr = nullptr;
  3654. goto message_done;
  3655. #undef CHK_
  3656. }
  3657. uint8_t* SCRep::_InternalSerialize(
  3658. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  3659. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.SCRep)
  3660. uint32_t cached_has_bits = 0;
  3661. (void) cached_has_bits;
  3662. // .RemoNet.VideoDesc desc = 1;
  3663. if (this->_internal_desc() != 0) {
  3664. target = stream->EnsureSpace(target);
  3665. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
  3666. 1, this->_internal_desc(), target);
  3667. }
  3668. // int32 index = 2;
  3669. if (this->_internal_index() != 0) {
  3670. target = stream->EnsureSpace(target);
  3671. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_index(), target);
  3672. }
  3673. // int32 egotype = 3;
  3674. if (this->_internal_egotype() != 0) {
  3675. target = stream->EnsureSpace(target);
  3676. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_egotype(), target);
  3677. }
  3678. // int32 peer = 4;
  3679. if (this->_internal_peer() != 0) {
  3680. target = stream->EnsureSpace(target);
  3681. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_peer(), target);
  3682. }
  3683. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  3684. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  3685. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  3686. }
  3687. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.SCRep)
  3688. return target;
  3689. }
  3690. size_t SCRep::ByteSizeLong() const {
  3691. // @@protoc_insertion_point(message_byte_size_start:RemoNet.SCRep)
  3692. size_t total_size = 0;
  3693. uint32_t cached_has_bits = 0;
  3694. // Prevent compiler warnings about cached_has_bits being unused
  3695. (void) cached_has_bits;
  3696. // .RemoNet.VideoDesc desc = 1;
  3697. if (this->_internal_desc() != 0) {
  3698. total_size += 1 +
  3699. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_desc());
  3700. }
  3701. // int32 index = 2;
  3702. if (this->_internal_index() != 0) {
  3703. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_index());
  3704. }
  3705. // int32 egotype = 3;
  3706. if (this->_internal_egotype() != 0) {
  3707. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_egotype());
  3708. }
  3709. // int32 peer = 4;
  3710. if (this->_internal_peer() != 0) {
  3711. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  3712. }
  3713. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  3714. }
  3715. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCRep::_class_data_ = {
  3716. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  3717. SCRep::MergeImpl
  3718. };
  3719. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCRep::GetClassData() const { return &_class_data_; }
  3720. void SCRep::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  3721. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  3722. static_cast<SCRep *>(to)->MergeFrom(
  3723. static_cast<const SCRep &>(from));
  3724. }
  3725. void SCRep::MergeFrom(const SCRep& from) {
  3726. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.SCRep)
  3727. GOOGLE_DCHECK_NE(&from, this);
  3728. uint32_t cached_has_bits = 0;
  3729. (void) cached_has_bits;
  3730. if (from._internal_desc() != 0) {
  3731. _internal_set_desc(from._internal_desc());
  3732. }
  3733. if (from._internal_index() != 0) {
  3734. _internal_set_index(from._internal_index());
  3735. }
  3736. if (from._internal_egotype() != 0) {
  3737. _internal_set_egotype(from._internal_egotype());
  3738. }
  3739. if (from._internal_peer() != 0) {
  3740. _internal_set_peer(from._internal_peer());
  3741. }
  3742. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3743. }
  3744. void SCRep::CopyFrom(const SCRep& from) {
  3745. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.SCRep)
  3746. if (&from == this) return;
  3747. Clear();
  3748. MergeFrom(from);
  3749. }
  3750. bool SCRep::IsInitialized() const {
  3751. return true;
  3752. }
  3753. void SCRep::InternalSwap(SCRep* other) {
  3754. using std::swap;
  3755. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  3756. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  3757. PROTOBUF_FIELD_OFFSET(SCRep, peer_)
  3758. + sizeof(SCRep::peer_)
  3759. - PROTOBUF_FIELD_OFFSET(SCRep, desc_)>(
  3760. reinterpret_cast<char*>(&desc_),
  3761. reinterpret_cast<char*>(&other->desc_));
  3762. }
  3763. ::PROTOBUF_NAMESPACE_ID::Metadata SCRep::GetMetadata() const {
  3764. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  3765. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  3766. file_level_metadata_protocol_2eproto[11]);
  3767. }
  3768. // ===================================================================
  3769. class Offer::_Internal {
  3770. public:
  3771. };
  3772. Offer::Offer(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  3773. bool is_message_owned)
  3774. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  3775. SharedCtor();
  3776. if (!is_message_owned) {
  3777. RegisterArenaDtor(arena);
  3778. }
  3779. // @@protoc_insertion_point(arena_constructor:RemoNet.Offer)
  3780. }
  3781. Offer::Offer(const Offer& from)
  3782. : ::PROTOBUF_NAMESPACE_ID::Message() {
  3783. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3784. type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  3785. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3786. type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  3787. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3788. if (!from._internal_type().empty()) {
  3789. type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_type(),
  3790. GetArenaForAllocation());
  3791. }
  3792. sdp_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  3793. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3794. sdp_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  3795. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3796. if (!from._internal_sdp().empty()) {
  3797. sdp_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_sdp(),
  3798. GetArenaForAllocation());
  3799. }
  3800. ::memcpy(&index_, &from.index_,
  3801. static_cast<size_t>(reinterpret_cast<char*>(&peer_) -
  3802. reinterpret_cast<char*>(&index_)) + sizeof(peer_));
  3803. // @@protoc_insertion_point(copy_constructor:RemoNet.Offer)
  3804. }
  3805. inline void Offer::SharedCtor() {
  3806. type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  3807. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3808. type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  3809. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3810. sdp_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  3811. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3812. sdp_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  3813. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3814. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  3815. reinterpret_cast<char*>(&index_) - reinterpret_cast<char*>(this)),
  3816. 0, static_cast<size_t>(reinterpret_cast<char*>(&peer_) -
  3817. reinterpret_cast<char*>(&index_)) + sizeof(peer_));
  3818. }
  3819. Offer::~Offer() {
  3820. // @@protoc_insertion_point(destructor:RemoNet.Offer)
  3821. if (GetArenaForAllocation() != nullptr) return;
  3822. SharedDtor();
  3823. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3824. }
  3825. inline void Offer::SharedDtor() {
  3826. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  3827. type_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  3828. sdp_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  3829. }
  3830. void Offer::ArenaDtor(void* object) {
  3831. Offer* _this = reinterpret_cast< Offer* >(object);
  3832. (void)_this;
  3833. }
  3834. void Offer::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  3835. }
  3836. void Offer::SetCachedSize(int size) const {
  3837. _cached_size_.Set(size);
  3838. }
  3839. void Offer::Clear() {
  3840. // @@protoc_insertion_point(message_clear_start:RemoNet.Offer)
  3841. uint32_t cached_has_bits = 0;
  3842. // Prevent compiler warnings about cached_has_bits being unused
  3843. (void) cached_has_bits;
  3844. type_.ClearToEmpty();
  3845. sdp_.ClearToEmpty();
  3846. ::memset(&index_, 0, static_cast<size_t>(
  3847. reinterpret_cast<char*>(&peer_) -
  3848. reinterpret_cast<char*>(&index_)) + sizeof(peer_));
  3849. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3850. }
  3851. const char* Offer::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  3852. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  3853. while (!ctx->Done(&ptr)) {
  3854. uint32_t tag;
  3855. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  3856. switch (tag >> 3) {
  3857. // int32 index = 1;
  3858. case 1:
  3859. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  3860. index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3861. CHK_(ptr);
  3862. } else
  3863. goto handle_unusual;
  3864. continue;
  3865. // int32 peer = 2;
  3866. case 2:
  3867. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  3868. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3869. CHK_(ptr);
  3870. } else
  3871. goto handle_unusual;
  3872. continue;
  3873. // string type = 3;
  3874. case 3:
  3875. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
  3876. auto str = _internal_mutable_type();
  3877. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  3878. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.Offer.type"));
  3879. CHK_(ptr);
  3880. } else
  3881. goto handle_unusual;
  3882. continue;
  3883. // string sdp = 4;
  3884. case 4:
  3885. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
  3886. auto str = _internal_mutable_sdp();
  3887. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  3888. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.Offer.sdp"));
  3889. CHK_(ptr);
  3890. } else
  3891. goto handle_unusual;
  3892. continue;
  3893. default:
  3894. goto handle_unusual;
  3895. } // switch
  3896. handle_unusual:
  3897. if ((tag == 0) || ((tag & 7) == 4)) {
  3898. CHK_(ptr);
  3899. ctx->SetLastTag(tag);
  3900. goto message_done;
  3901. }
  3902. ptr = UnknownFieldParse(
  3903. tag,
  3904. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  3905. ptr, ctx);
  3906. CHK_(ptr != nullptr);
  3907. } // while
  3908. message_done:
  3909. return ptr;
  3910. failure:
  3911. ptr = nullptr;
  3912. goto message_done;
  3913. #undef CHK_
  3914. }
  3915. uint8_t* Offer::_InternalSerialize(
  3916. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  3917. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.Offer)
  3918. uint32_t cached_has_bits = 0;
  3919. (void) cached_has_bits;
  3920. // int32 index = 1;
  3921. if (this->_internal_index() != 0) {
  3922. target = stream->EnsureSpace(target);
  3923. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_index(), target);
  3924. }
  3925. // int32 peer = 2;
  3926. if (this->_internal_peer() != 0) {
  3927. target = stream->EnsureSpace(target);
  3928. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_peer(), target);
  3929. }
  3930. // string type = 3;
  3931. if (!this->_internal_type().empty()) {
  3932. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  3933. this->_internal_type().data(), static_cast<int>(this->_internal_type().length()),
  3934. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  3935. "RemoNet.Offer.type");
  3936. target = stream->WriteStringMaybeAliased(
  3937. 3, this->_internal_type(), target);
  3938. }
  3939. // string sdp = 4;
  3940. if (!this->_internal_sdp().empty()) {
  3941. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  3942. this->_internal_sdp().data(), static_cast<int>(this->_internal_sdp().length()),
  3943. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  3944. "RemoNet.Offer.sdp");
  3945. target = stream->WriteStringMaybeAliased(
  3946. 4, this->_internal_sdp(), target);
  3947. }
  3948. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  3949. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  3950. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  3951. }
  3952. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.Offer)
  3953. return target;
  3954. }
  3955. size_t Offer::ByteSizeLong() const {
  3956. // @@protoc_insertion_point(message_byte_size_start:RemoNet.Offer)
  3957. size_t total_size = 0;
  3958. uint32_t cached_has_bits = 0;
  3959. // Prevent compiler warnings about cached_has_bits being unused
  3960. (void) cached_has_bits;
  3961. // string type = 3;
  3962. if (!this->_internal_type().empty()) {
  3963. total_size += 1 +
  3964. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  3965. this->_internal_type());
  3966. }
  3967. // string sdp = 4;
  3968. if (!this->_internal_sdp().empty()) {
  3969. total_size += 1 +
  3970. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  3971. this->_internal_sdp());
  3972. }
  3973. // int32 index = 1;
  3974. if (this->_internal_index() != 0) {
  3975. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_index());
  3976. }
  3977. // int32 peer = 2;
  3978. if (this->_internal_peer() != 0) {
  3979. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  3980. }
  3981. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  3982. }
  3983. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Offer::_class_data_ = {
  3984. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  3985. Offer::MergeImpl
  3986. };
  3987. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Offer::GetClassData() const { return &_class_data_; }
  3988. void Offer::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  3989. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  3990. static_cast<Offer *>(to)->MergeFrom(
  3991. static_cast<const Offer &>(from));
  3992. }
  3993. void Offer::MergeFrom(const Offer& from) {
  3994. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.Offer)
  3995. GOOGLE_DCHECK_NE(&from, this);
  3996. uint32_t cached_has_bits = 0;
  3997. (void) cached_has_bits;
  3998. if (!from._internal_type().empty()) {
  3999. _internal_set_type(from._internal_type());
  4000. }
  4001. if (!from._internal_sdp().empty()) {
  4002. _internal_set_sdp(from._internal_sdp());
  4003. }
  4004. if (from._internal_index() != 0) {
  4005. _internal_set_index(from._internal_index());
  4006. }
  4007. if (from._internal_peer() != 0) {
  4008. _internal_set_peer(from._internal_peer());
  4009. }
  4010. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4011. }
  4012. void Offer::CopyFrom(const Offer& from) {
  4013. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.Offer)
  4014. if (&from == this) return;
  4015. Clear();
  4016. MergeFrom(from);
  4017. }
  4018. bool Offer::IsInitialized() const {
  4019. return true;
  4020. }
  4021. void Offer::InternalSwap(Offer* other) {
  4022. using std::swap;
  4023. auto* lhs_arena = GetArenaForAllocation();
  4024. auto* rhs_arena = other->GetArenaForAllocation();
  4025. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  4026. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  4027. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  4028. &type_, lhs_arena,
  4029. &other->type_, rhs_arena
  4030. );
  4031. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  4032. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  4033. &sdp_, lhs_arena,
  4034. &other->sdp_, rhs_arena
  4035. );
  4036. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  4037. PROTOBUF_FIELD_OFFSET(Offer, peer_)
  4038. + sizeof(Offer::peer_)
  4039. - PROTOBUF_FIELD_OFFSET(Offer, index_)>(
  4040. reinterpret_cast<char*>(&index_),
  4041. reinterpret_cast<char*>(&other->index_));
  4042. }
  4043. ::PROTOBUF_NAMESPACE_ID::Metadata Offer::GetMetadata() const {
  4044. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  4045. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  4046. file_level_metadata_protocol_2eproto[12]);
  4047. }
  4048. // ===================================================================
  4049. class Answer::_Internal {
  4050. public:
  4051. };
  4052. Answer::Answer(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  4053. bool is_message_owned)
  4054. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  4055. SharedCtor();
  4056. if (!is_message_owned) {
  4057. RegisterArenaDtor(arena);
  4058. }
  4059. // @@protoc_insertion_point(arena_constructor:RemoNet.Answer)
  4060. }
  4061. Answer::Answer(const Answer& from)
  4062. : ::PROTOBUF_NAMESPACE_ID::Message() {
  4063. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4064. type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4065. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4066. type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  4067. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4068. if (!from._internal_type().empty()) {
  4069. type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_type(),
  4070. GetArenaForAllocation());
  4071. }
  4072. sdp_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4073. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4074. sdp_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  4075. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4076. if (!from._internal_sdp().empty()) {
  4077. sdp_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_sdp(),
  4078. GetArenaForAllocation());
  4079. }
  4080. ::memcpy(&index_, &from.index_,
  4081. static_cast<size_t>(reinterpret_cast<char*>(&peer_) -
  4082. reinterpret_cast<char*>(&index_)) + sizeof(peer_));
  4083. // @@protoc_insertion_point(copy_constructor:RemoNet.Answer)
  4084. }
  4085. inline void Answer::SharedCtor() {
  4086. type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4087. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4088. type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  4089. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4090. sdp_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4091. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4092. sdp_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  4093. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4094. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  4095. reinterpret_cast<char*>(&index_) - reinterpret_cast<char*>(this)),
  4096. 0, static_cast<size_t>(reinterpret_cast<char*>(&peer_) -
  4097. reinterpret_cast<char*>(&index_)) + sizeof(peer_));
  4098. }
  4099. Answer::~Answer() {
  4100. // @@protoc_insertion_point(destructor:RemoNet.Answer)
  4101. if (GetArenaForAllocation() != nullptr) return;
  4102. SharedDtor();
  4103. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4104. }
  4105. inline void Answer::SharedDtor() {
  4106. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  4107. type_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4108. sdp_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4109. }
  4110. void Answer::ArenaDtor(void* object) {
  4111. Answer* _this = reinterpret_cast< Answer* >(object);
  4112. (void)_this;
  4113. }
  4114. void Answer::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  4115. }
  4116. void Answer::SetCachedSize(int size) const {
  4117. _cached_size_.Set(size);
  4118. }
  4119. void Answer::Clear() {
  4120. // @@protoc_insertion_point(message_clear_start:RemoNet.Answer)
  4121. uint32_t cached_has_bits = 0;
  4122. // Prevent compiler warnings about cached_has_bits being unused
  4123. (void) cached_has_bits;
  4124. type_.ClearToEmpty();
  4125. sdp_.ClearToEmpty();
  4126. ::memset(&index_, 0, static_cast<size_t>(
  4127. reinterpret_cast<char*>(&peer_) -
  4128. reinterpret_cast<char*>(&index_)) + sizeof(peer_));
  4129. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4130. }
  4131. const char* Answer::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  4132. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  4133. while (!ctx->Done(&ptr)) {
  4134. uint32_t tag;
  4135. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  4136. switch (tag >> 3) {
  4137. // int32 index = 1;
  4138. case 1:
  4139. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  4140. index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  4141. CHK_(ptr);
  4142. } else
  4143. goto handle_unusual;
  4144. continue;
  4145. // int32 peer = 2;
  4146. case 2:
  4147. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  4148. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  4149. CHK_(ptr);
  4150. } else
  4151. goto handle_unusual;
  4152. continue;
  4153. // string type = 3;
  4154. case 3:
  4155. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
  4156. auto str = _internal_mutable_type();
  4157. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  4158. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.Answer.type"));
  4159. CHK_(ptr);
  4160. } else
  4161. goto handle_unusual;
  4162. continue;
  4163. // string sdp = 4;
  4164. case 4:
  4165. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
  4166. auto str = _internal_mutable_sdp();
  4167. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  4168. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.Answer.sdp"));
  4169. CHK_(ptr);
  4170. } else
  4171. goto handle_unusual;
  4172. continue;
  4173. default:
  4174. goto handle_unusual;
  4175. } // switch
  4176. handle_unusual:
  4177. if ((tag == 0) || ((tag & 7) == 4)) {
  4178. CHK_(ptr);
  4179. ctx->SetLastTag(tag);
  4180. goto message_done;
  4181. }
  4182. ptr = UnknownFieldParse(
  4183. tag,
  4184. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  4185. ptr, ctx);
  4186. CHK_(ptr != nullptr);
  4187. } // while
  4188. message_done:
  4189. return ptr;
  4190. failure:
  4191. ptr = nullptr;
  4192. goto message_done;
  4193. #undef CHK_
  4194. }
  4195. uint8_t* Answer::_InternalSerialize(
  4196. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  4197. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.Answer)
  4198. uint32_t cached_has_bits = 0;
  4199. (void) cached_has_bits;
  4200. // int32 index = 1;
  4201. if (this->_internal_index() != 0) {
  4202. target = stream->EnsureSpace(target);
  4203. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_index(), target);
  4204. }
  4205. // int32 peer = 2;
  4206. if (this->_internal_peer() != 0) {
  4207. target = stream->EnsureSpace(target);
  4208. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_peer(), target);
  4209. }
  4210. // string type = 3;
  4211. if (!this->_internal_type().empty()) {
  4212. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  4213. this->_internal_type().data(), static_cast<int>(this->_internal_type().length()),
  4214. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  4215. "RemoNet.Answer.type");
  4216. target = stream->WriteStringMaybeAliased(
  4217. 3, this->_internal_type(), target);
  4218. }
  4219. // string sdp = 4;
  4220. if (!this->_internal_sdp().empty()) {
  4221. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  4222. this->_internal_sdp().data(), static_cast<int>(this->_internal_sdp().length()),
  4223. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  4224. "RemoNet.Answer.sdp");
  4225. target = stream->WriteStringMaybeAliased(
  4226. 4, this->_internal_sdp(), target);
  4227. }
  4228. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  4229. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  4230. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  4231. }
  4232. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.Answer)
  4233. return target;
  4234. }
  4235. size_t Answer::ByteSizeLong() const {
  4236. // @@protoc_insertion_point(message_byte_size_start:RemoNet.Answer)
  4237. size_t total_size = 0;
  4238. uint32_t cached_has_bits = 0;
  4239. // Prevent compiler warnings about cached_has_bits being unused
  4240. (void) cached_has_bits;
  4241. // string type = 3;
  4242. if (!this->_internal_type().empty()) {
  4243. total_size += 1 +
  4244. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  4245. this->_internal_type());
  4246. }
  4247. // string sdp = 4;
  4248. if (!this->_internal_sdp().empty()) {
  4249. total_size += 1 +
  4250. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  4251. this->_internal_sdp());
  4252. }
  4253. // int32 index = 1;
  4254. if (this->_internal_index() != 0) {
  4255. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_index());
  4256. }
  4257. // int32 peer = 2;
  4258. if (this->_internal_peer() != 0) {
  4259. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  4260. }
  4261. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  4262. }
  4263. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Answer::_class_data_ = {
  4264. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  4265. Answer::MergeImpl
  4266. };
  4267. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Answer::GetClassData() const { return &_class_data_; }
  4268. void Answer::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  4269. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  4270. static_cast<Answer *>(to)->MergeFrom(
  4271. static_cast<const Answer &>(from));
  4272. }
  4273. void Answer::MergeFrom(const Answer& from) {
  4274. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.Answer)
  4275. GOOGLE_DCHECK_NE(&from, this);
  4276. uint32_t cached_has_bits = 0;
  4277. (void) cached_has_bits;
  4278. if (!from._internal_type().empty()) {
  4279. _internal_set_type(from._internal_type());
  4280. }
  4281. if (!from._internal_sdp().empty()) {
  4282. _internal_set_sdp(from._internal_sdp());
  4283. }
  4284. if (from._internal_index() != 0) {
  4285. _internal_set_index(from._internal_index());
  4286. }
  4287. if (from._internal_peer() != 0) {
  4288. _internal_set_peer(from._internal_peer());
  4289. }
  4290. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4291. }
  4292. void Answer::CopyFrom(const Answer& from) {
  4293. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.Answer)
  4294. if (&from == this) return;
  4295. Clear();
  4296. MergeFrom(from);
  4297. }
  4298. bool Answer::IsInitialized() const {
  4299. return true;
  4300. }
  4301. void Answer::InternalSwap(Answer* other) {
  4302. using std::swap;
  4303. auto* lhs_arena = GetArenaForAllocation();
  4304. auto* rhs_arena = other->GetArenaForAllocation();
  4305. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  4306. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  4307. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  4308. &type_, lhs_arena,
  4309. &other->type_, rhs_arena
  4310. );
  4311. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  4312. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  4313. &sdp_, lhs_arena,
  4314. &other->sdp_, rhs_arena
  4315. );
  4316. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  4317. PROTOBUF_FIELD_OFFSET(Answer, peer_)
  4318. + sizeof(Answer::peer_)
  4319. - PROTOBUF_FIELD_OFFSET(Answer, index_)>(
  4320. reinterpret_cast<char*>(&index_),
  4321. reinterpret_cast<char*>(&other->index_));
  4322. }
  4323. ::PROTOBUF_NAMESPACE_ID::Metadata Answer::GetMetadata() const {
  4324. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  4325. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  4326. file_level_metadata_protocol_2eproto[13]);
  4327. }
  4328. // ===================================================================
  4329. class Candidate::_Internal {
  4330. public:
  4331. };
  4332. Candidate::Candidate(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  4333. bool is_message_owned)
  4334. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  4335. SharedCtor();
  4336. if (!is_message_owned) {
  4337. RegisterArenaDtor(arena);
  4338. }
  4339. // @@protoc_insertion_point(arena_constructor:RemoNet.Candidate)
  4340. }
  4341. Candidate::Candidate(const Candidate& from)
  4342. : ::PROTOBUF_NAMESPACE_ID::Message() {
  4343. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4344. type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4345. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4346. type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  4347. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4348. if (!from._internal_type().empty()) {
  4349. type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_type(),
  4350. GetArenaForAllocation());
  4351. }
  4352. candidate_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4353. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4354. candidate_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  4355. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4356. if (!from._internal_candidate().empty()) {
  4357. candidate_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_candidate(),
  4358. GetArenaForAllocation());
  4359. }
  4360. sdpmid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4361. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4362. sdpmid_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  4363. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4364. if (!from._internal_sdpmid().empty()) {
  4365. sdpmid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_sdpmid(),
  4366. GetArenaForAllocation());
  4367. }
  4368. ::memcpy(&index_, &from.index_,
  4369. static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  4370. reinterpret_cast<char*>(&index_)) + sizeof(egotype_));
  4371. // @@protoc_insertion_point(copy_constructor:RemoNet.Candidate)
  4372. }
  4373. inline void Candidate::SharedCtor() {
  4374. type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4375. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4376. type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  4377. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4378. candidate_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4379. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4380. candidate_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  4381. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4382. sdpmid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4383. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4384. sdpmid_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  4385. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4386. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  4387. reinterpret_cast<char*>(&index_) - reinterpret_cast<char*>(this)),
  4388. 0, static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  4389. reinterpret_cast<char*>(&index_)) + sizeof(egotype_));
  4390. }
  4391. Candidate::~Candidate() {
  4392. // @@protoc_insertion_point(destructor:RemoNet.Candidate)
  4393. if (GetArenaForAllocation() != nullptr) return;
  4394. SharedDtor();
  4395. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4396. }
  4397. inline void Candidate::SharedDtor() {
  4398. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  4399. type_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4400. candidate_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4401. sdpmid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4402. }
  4403. void Candidate::ArenaDtor(void* object) {
  4404. Candidate* _this = reinterpret_cast< Candidate* >(object);
  4405. (void)_this;
  4406. }
  4407. void Candidate::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  4408. }
  4409. void Candidate::SetCachedSize(int size) const {
  4410. _cached_size_.Set(size);
  4411. }
  4412. void Candidate::Clear() {
  4413. // @@protoc_insertion_point(message_clear_start:RemoNet.Candidate)
  4414. uint32_t cached_has_bits = 0;
  4415. // Prevent compiler warnings about cached_has_bits being unused
  4416. (void) cached_has_bits;
  4417. type_.ClearToEmpty();
  4418. candidate_.ClearToEmpty();
  4419. sdpmid_.ClearToEmpty();
  4420. ::memset(&index_, 0, static_cast<size_t>(
  4421. reinterpret_cast<char*>(&egotype_) -
  4422. reinterpret_cast<char*>(&index_)) + sizeof(egotype_));
  4423. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4424. }
  4425. const char* Candidate::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  4426. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  4427. while (!ctx->Done(&ptr)) {
  4428. uint32_t tag;
  4429. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  4430. switch (tag >> 3) {
  4431. // int32 index = 1;
  4432. case 1:
  4433. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  4434. index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  4435. CHK_(ptr);
  4436. } else
  4437. goto handle_unusual;
  4438. continue;
  4439. // int32 peer = 2;
  4440. case 2:
  4441. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  4442. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  4443. CHK_(ptr);
  4444. } else
  4445. goto handle_unusual;
  4446. continue;
  4447. // string type = 3;
  4448. case 3:
  4449. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
  4450. auto str = _internal_mutable_type();
  4451. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  4452. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.Candidate.type"));
  4453. CHK_(ptr);
  4454. } else
  4455. goto handle_unusual;
  4456. continue;
  4457. // string candidate = 4;
  4458. case 4:
  4459. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
  4460. auto str = _internal_mutable_candidate();
  4461. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  4462. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.Candidate.candidate"));
  4463. CHK_(ptr);
  4464. } else
  4465. goto handle_unusual;
  4466. continue;
  4467. // int32 sdpMLineIndex = 5;
  4468. case 5:
  4469. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
  4470. sdpmlineindex_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  4471. CHK_(ptr);
  4472. } else
  4473. goto handle_unusual;
  4474. continue;
  4475. // string sdpMid = 6;
  4476. case 6:
  4477. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 50)) {
  4478. auto str = _internal_mutable_sdpmid();
  4479. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  4480. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.Candidate.sdpMid"));
  4481. CHK_(ptr);
  4482. } else
  4483. goto handle_unusual;
  4484. continue;
  4485. // int32 egotype = 7;
  4486. case 7:
  4487. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56)) {
  4488. egotype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  4489. CHK_(ptr);
  4490. } else
  4491. goto handle_unusual;
  4492. continue;
  4493. default:
  4494. goto handle_unusual;
  4495. } // switch
  4496. handle_unusual:
  4497. if ((tag == 0) || ((tag & 7) == 4)) {
  4498. CHK_(ptr);
  4499. ctx->SetLastTag(tag);
  4500. goto message_done;
  4501. }
  4502. ptr = UnknownFieldParse(
  4503. tag,
  4504. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  4505. ptr, ctx);
  4506. CHK_(ptr != nullptr);
  4507. } // while
  4508. message_done:
  4509. return ptr;
  4510. failure:
  4511. ptr = nullptr;
  4512. goto message_done;
  4513. #undef CHK_
  4514. }
  4515. uint8_t* Candidate::_InternalSerialize(
  4516. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  4517. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.Candidate)
  4518. uint32_t cached_has_bits = 0;
  4519. (void) cached_has_bits;
  4520. // int32 index = 1;
  4521. if (this->_internal_index() != 0) {
  4522. target = stream->EnsureSpace(target);
  4523. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_index(), target);
  4524. }
  4525. // int32 peer = 2;
  4526. if (this->_internal_peer() != 0) {
  4527. target = stream->EnsureSpace(target);
  4528. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_peer(), target);
  4529. }
  4530. // string type = 3;
  4531. if (!this->_internal_type().empty()) {
  4532. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  4533. this->_internal_type().data(), static_cast<int>(this->_internal_type().length()),
  4534. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  4535. "RemoNet.Candidate.type");
  4536. target = stream->WriteStringMaybeAliased(
  4537. 3, this->_internal_type(), target);
  4538. }
  4539. // string candidate = 4;
  4540. if (!this->_internal_candidate().empty()) {
  4541. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  4542. this->_internal_candidate().data(), static_cast<int>(this->_internal_candidate().length()),
  4543. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  4544. "RemoNet.Candidate.candidate");
  4545. target = stream->WriteStringMaybeAliased(
  4546. 4, this->_internal_candidate(), target);
  4547. }
  4548. // int32 sdpMLineIndex = 5;
  4549. if (this->_internal_sdpmlineindex() != 0) {
  4550. target = stream->EnsureSpace(target);
  4551. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(5, this->_internal_sdpmlineindex(), target);
  4552. }
  4553. // string sdpMid = 6;
  4554. if (!this->_internal_sdpmid().empty()) {
  4555. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  4556. this->_internal_sdpmid().data(), static_cast<int>(this->_internal_sdpmid().length()),
  4557. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  4558. "RemoNet.Candidate.sdpMid");
  4559. target = stream->WriteStringMaybeAliased(
  4560. 6, this->_internal_sdpmid(), target);
  4561. }
  4562. // int32 egotype = 7;
  4563. if (this->_internal_egotype() != 0) {
  4564. target = stream->EnsureSpace(target);
  4565. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(7, this->_internal_egotype(), target);
  4566. }
  4567. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  4568. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  4569. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  4570. }
  4571. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.Candidate)
  4572. return target;
  4573. }
  4574. size_t Candidate::ByteSizeLong() const {
  4575. // @@protoc_insertion_point(message_byte_size_start:RemoNet.Candidate)
  4576. size_t total_size = 0;
  4577. uint32_t cached_has_bits = 0;
  4578. // Prevent compiler warnings about cached_has_bits being unused
  4579. (void) cached_has_bits;
  4580. // string type = 3;
  4581. if (!this->_internal_type().empty()) {
  4582. total_size += 1 +
  4583. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  4584. this->_internal_type());
  4585. }
  4586. // string candidate = 4;
  4587. if (!this->_internal_candidate().empty()) {
  4588. total_size += 1 +
  4589. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  4590. this->_internal_candidate());
  4591. }
  4592. // string sdpMid = 6;
  4593. if (!this->_internal_sdpmid().empty()) {
  4594. total_size += 1 +
  4595. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  4596. this->_internal_sdpmid());
  4597. }
  4598. // int32 index = 1;
  4599. if (this->_internal_index() != 0) {
  4600. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_index());
  4601. }
  4602. // int32 peer = 2;
  4603. if (this->_internal_peer() != 0) {
  4604. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  4605. }
  4606. // int32 sdpMLineIndex = 5;
  4607. if (this->_internal_sdpmlineindex() != 0) {
  4608. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_sdpmlineindex());
  4609. }
  4610. // int32 egotype = 7;
  4611. if (this->_internal_egotype() != 0) {
  4612. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_egotype());
  4613. }
  4614. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  4615. }
  4616. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Candidate::_class_data_ = {
  4617. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  4618. Candidate::MergeImpl
  4619. };
  4620. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Candidate::GetClassData() const { return &_class_data_; }
  4621. void Candidate::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  4622. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  4623. static_cast<Candidate *>(to)->MergeFrom(
  4624. static_cast<const Candidate &>(from));
  4625. }
  4626. void Candidate::MergeFrom(const Candidate& from) {
  4627. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.Candidate)
  4628. GOOGLE_DCHECK_NE(&from, this);
  4629. uint32_t cached_has_bits = 0;
  4630. (void) cached_has_bits;
  4631. if (!from._internal_type().empty()) {
  4632. _internal_set_type(from._internal_type());
  4633. }
  4634. if (!from._internal_candidate().empty()) {
  4635. _internal_set_candidate(from._internal_candidate());
  4636. }
  4637. if (!from._internal_sdpmid().empty()) {
  4638. _internal_set_sdpmid(from._internal_sdpmid());
  4639. }
  4640. if (from._internal_index() != 0) {
  4641. _internal_set_index(from._internal_index());
  4642. }
  4643. if (from._internal_peer() != 0) {
  4644. _internal_set_peer(from._internal_peer());
  4645. }
  4646. if (from._internal_sdpmlineindex() != 0) {
  4647. _internal_set_sdpmlineindex(from._internal_sdpmlineindex());
  4648. }
  4649. if (from._internal_egotype() != 0) {
  4650. _internal_set_egotype(from._internal_egotype());
  4651. }
  4652. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4653. }
  4654. void Candidate::CopyFrom(const Candidate& from) {
  4655. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.Candidate)
  4656. if (&from == this) return;
  4657. Clear();
  4658. MergeFrom(from);
  4659. }
  4660. bool Candidate::IsInitialized() const {
  4661. return true;
  4662. }
  4663. void Candidate::InternalSwap(Candidate* other) {
  4664. using std::swap;
  4665. auto* lhs_arena = GetArenaForAllocation();
  4666. auto* rhs_arena = other->GetArenaForAllocation();
  4667. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  4668. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  4669. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  4670. &type_, lhs_arena,
  4671. &other->type_, rhs_arena
  4672. );
  4673. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  4674. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  4675. &candidate_, lhs_arena,
  4676. &other->candidate_, rhs_arena
  4677. );
  4678. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  4679. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  4680. &sdpmid_, lhs_arena,
  4681. &other->sdpmid_, rhs_arena
  4682. );
  4683. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  4684. PROTOBUF_FIELD_OFFSET(Candidate, egotype_)
  4685. + sizeof(Candidate::egotype_)
  4686. - PROTOBUF_FIELD_OFFSET(Candidate, index_)>(
  4687. reinterpret_cast<char*>(&index_),
  4688. reinterpret_cast<char*>(&other->index_));
  4689. }
  4690. ::PROTOBUF_NAMESPACE_ID::Metadata Candidate::GetMetadata() const {
  4691. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  4692. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  4693. file_level_metadata_protocol_2eproto[14]);
  4694. }
  4695. // ===================================================================
  4696. class Leave::_Internal {
  4697. public:
  4698. };
  4699. Leave::Leave(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  4700. bool is_message_owned)
  4701. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  4702. SharedCtor();
  4703. if (!is_message_owned) {
  4704. RegisterArenaDtor(arena);
  4705. }
  4706. // @@protoc_insertion_point(arena_constructor:RemoNet.Leave)
  4707. }
  4708. Leave::Leave(const Leave& from)
  4709. : ::PROTOBUF_NAMESPACE_ID::Message() {
  4710. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4711. ::memcpy(&peer_, &from.peer_,
  4712. static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  4713. reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
  4714. // @@protoc_insertion_point(copy_constructor:RemoNet.Leave)
  4715. }
  4716. inline void Leave::SharedCtor() {
  4717. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  4718. reinterpret_cast<char*>(&peer_) - reinterpret_cast<char*>(this)),
  4719. 0, static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  4720. reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
  4721. }
  4722. Leave::~Leave() {
  4723. // @@protoc_insertion_point(destructor:RemoNet.Leave)
  4724. if (GetArenaForAllocation() != nullptr) return;
  4725. SharedDtor();
  4726. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4727. }
  4728. inline void Leave::SharedDtor() {
  4729. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  4730. }
  4731. void Leave::ArenaDtor(void* object) {
  4732. Leave* _this = reinterpret_cast< Leave* >(object);
  4733. (void)_this;
  4734. }
  4735. void Leave::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  4736. }
  4737. void Leave::SetCachedSize(int size) const {
  4738. _cached_size_.Set(size);
  4739. }
  4740. void Leave::Clear() {
  4741. // @@protoc_insertion_point(message_clear_start:RemoNet.Leave)
  4742. uint32_t cached_has_bits = 0;
  4743. // Prevent compiler warnings about cached_has_bits being unused
  4744. (void) cached_has_bits;
  4745. ::memset(&peer_, 0, static_cast<size_t>(
  4746. reinterpret_cast<char*>(&egotype_) -
  4747. reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
  4748. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4749. }
  4750. const char* Leave::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  4751. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  4752. while (!ctx->Done(&ptr)) {
  4753. uint32_t tag;
  4754. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  4755. switch (tag >> 3) {
  4756. // int32 peer = 1;
  4757. case 1:
  4758. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  4759. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  4760. CHK_(ptr);
  4761. } else
  4762. goto handle_unusual;
  4763. continue;
  4764. // int32 egotype = 2;
  4765. case 2:
  4766. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  4767. egotype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  4768. CHK_(ptr);
  4769. } else
  4770. goto handle_unusual;
  4771. continue;
  4772. default:
  4773. goto handle_unusual;
  4774. } // switch
  4775. handle_unusual:
  4776. if ((tag == 0) || ((tag & 7) == 4)) {
  4777. CHK_(ptr);
  4778. ctx->SetLastTag(tag);
  4779. goto message_done;
  4780. }
  4781. ptr = UnknownFieldParse(
  4782. tag,
  4783. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  4784. ptr, ctx);
  4785. CHK_(ptr != nullptr);
  4786. } // while
  4787. message_done:
  4788. return ptr;
  4789. failure:
  4790. ptr = nullptr;
  4791. goto message_done;
  4792. #undef CHK_
  4793. }
  4794. uint8_t* Leave::_InternalSerialize(
  4795. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  4796. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.Leave)
  4797. uint32_t cached_has_bits = 0;
  4798. (void) cached_has_bits;
  4799. // int32 peer = 1;
  4800. if (this->_internal_peer() != 0) {
  4801. target = stream->EnsureSpace(target);
  4802. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_peer(), target);
  4803. }
  4804. // int32 egotype = 2;
  4805. if (this->_internal_egotype() != 0) {
  4806. target = stream->EnsureSpace(target);
  4807. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_egotype(), target);
  4808. }
  4809. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  4810. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  4811. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  4812. }
  4813. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.Leave)
  4814. return target;
  4815. }
  4816. size_t Leave::ByteSizeLong() const {
  4817. // @@protoc_insertion_point(message_byte_size_start:RemoNet.Leave)
  4818. size_t total_size = 0;
  4819. uint32_t cached_has_bits = 0;
  4820. // Prevent compiler warnings about cached_has_bits being unused
  4821. (void) cached_has_bits;
  4822. // int32 peer = 1;
  4823. if (this->_internal_peer() != 0) {
  4824. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  4825. }
  4826. // int32 egotype = 2;
  4827. if (this->_internal_egotype() != 0) {
  4828. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_egotype());
  4829. }
  4830. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  4831. }
  4832. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Leave::_class_data_ = {
  4833. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  4834. Leave::MergeImpl
  4835. };
  4836. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Leave::GetClassData() const { return &_class_data_; }
  4837. void Leave::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  4838. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  4839. static_cast<Leave *>(to)->MergeFrom(
  4840. static_cast<const Leave &>(from));
  4841. }
  4842. void Leave::MergeFrom(const Leave& from) {
  4843. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.Leave)
  4844. GOOGLE_DCHECK_NE(&from, this);
  4845. uint32_t cached_has_bits = 0;
  4846. (void) cached_has_bits;
  4847. if (from._internal_peer() != 0) {
  4848. _internal_set_peer(from._internal_peer());
  4849. }
  4850. if (from._internal_egotype() != 0) {
  4851. _internal_set_egotype(from._internal_egotype());
  4852. }
  4853. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4854. }
  4855. void Leave::CopyFrom(const Leave& from) {
  4856. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.Leave)
  4857. if (&from == this) return;
  4858. Clear();
  4859. MergeFrom(from);
  4860. }
  4861. bool Leave::IsInitialized() const {
  4862. return true;
  4863. }
  4864. void Leave::InternalSwap(Leave* other) {
  4865. using std::swap;
  4866. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  4867. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  4868. PROTOBUF_FIELD_OFFSET(Leave, egotype_)
  4869. + sizeof(Leave::egotype_)
  4870. - PROTOBUF_FIELD_OFFSET(Leave, peer_)>(
  4871. reinterpret_cast<char*>(&peer_),
  4872. reinterpret_cast<char*>(&other->peer_));
  4873. }
  4874. ::PROTOBUF_NAMESPACE_ID::Metadata Leave::GetMetadata() const {
  4875. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  4876. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  4877. file_level_metadata_protocol_2eproto[15]);
  4878. }
  4879. // ===================================================================
  4880. class Close::_Internal {
  4881. public:
  4882. };
  4883. Close::Close(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  4884. bool is_message_owned)
  4885. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  4886. SharedCtor();
  4887. if (!is_message_owned) {
  4888. RegisterArenaDtor(arena);
  4889. }
  4890. // @@protoc_insertion_point(arena_constructor:RemoNet.Close)
  4891. }
  4892. Close::Close(const Close& from)
  4893. : ::PROTOBUF_NAMESPACE_ID::Message() {
  4894. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4895. ::memcpy(&peer_, &from.peer_,
  4896. static_cast<size_t>(reinterpret_cast<char*>(&index_) -
  4897. reinterpret_cast<char*>(&peer_)) + sizeof(index_));
  4898. // @@protoc_insertion_point(copy_constructor:RemoNet.Close)
  4899. }
  4900. inline void Close::SharedCtor() {
  4901. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  4902. reinterpret_cast<char*>(&peer_) - reinterpret_cast<char*>(this)),
  4903. 0, static_cast<size_t>(reinterpret_cast<char*>(&index_) -
  4904. reinterpret_cast<char*>(&peer_)) + sizeof(index_));
  4905. }
  4906. Close::~Close() {
  4907. // @@protoc_insertion_point(destructor:RemoNet.Close)
  4908. if (GetArenaForAllocation() != nullptr) return;
  4909. SharedDtor();
  4910. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4911. }
  4912. inline void Close::SharedDtor() {
  4913. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  4914. }
  4915. void Close::ArenaDtor(void* object) {
  4916. Close* _this = reinterpret_cast< Close* >(object);
  4917. (void)_this;
  4918. }
  4919. void Close::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  4920. }
  4921. void Close::SetCachedSize(int size) const {
  4922. _cached_size_.Set(size);
  4923. }
  4924. void Close::Clear() {
  4925. // @@protoc_insertion_point(message_clear_start:RemoNet.Close)
  4926. uint32_t cached_has_bits = 0;
  4927. // Prevent compiler warnings about cached_has_bits being unused
  4928. (void) cached_has_bits;
  4929. ::memset(&peer_, 0, static_cast<size_t>(
  4930. reinterpret_cast<char*>(&index_) -
  4931. reinterpret_cast<char*>(&peer_)) + sizeof(index_));
  4932. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4933. }
  4934. const char* Close::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  4935. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  4936. while (!ctx->Done(&ptr)) {
  4937. uint32_t tag;
  4938. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  4939. switch (tag >> 3) {
  4940. // int32 peer = 1;
  4941. case 1:
  4942. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  4943. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  4944. CHK_(ptr);
  4945. } else
  4946. goto handle_unusual;
  4947. continue;
  4948. // int32 egotype = 2;
  4949. case 2:
  4950. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  4951. egotype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  4952. CHK_(ptr);
  4953. } else
  4954. goto handle_unusual;
  4955. continue;
  4956. // int32 index = 3;
  4957. case 3:
  4958. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  4959. index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  4960. CHK_(ptr);
  4961. } else
  4962. goto handle_unusual;
  4963. continue;
  4964. default:
  4965. goto handle_unusual;
  4966. } // switch
  4967. handle_unusual:
  4968. if ((tag == 0) || ((tag & 7) == 4)) {
  4969. CHK_(ptr);
  4970. ctx->SetLastTag(tag);
  4971. goto message_done;
  4972. }
  4973. ptr = UnknownFieldParse(
  4974. tag,
  4975. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  4976. ptr, ctx);
  4977. CHK_(ptr != nullptr);
  4978. } // while
  4979. message_done:
  4980. return ptr;
  4981. failure:
  4982. ptr = nullptr;
  4983. goto message_done;
  4984. #undef CHK_
  4985. }
  4986. uint8_t* Close::_InternalSerialize(
  4987. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  4988. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.Close)
  4989. uint32_t cached_has_bits = 0;
  4990. (void) cached_has_bits;
  4991. // int32 peer = 1;
  4992. if (this->_internal_peer() != 0) {
  4993. target = stream->EnsureSpace(target);
  4994. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_peer(), target);
  4995. }
  4996. // int32 egotype = 2;
  4997. if (this->_internal_egotype() != 0) {
  4998. target = stream->EnsureSpace(target);
  4999. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_egotype(), target);
  5000. }
  5001. // int32 index = 3;
  5002. if (this->_internal_index() != 0) {
  5003. target = stream->EnsureSpace(target);
  5004. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_index(), target);
  5005. }
  5006. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  5007. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  5008. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  5009. }
  5010. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.Close)
  5011. return target;
  5012. }
  5013. size_t Close::ByteSizeLong() const {
  5014. // @@protoc_insertion_point(message_byte_size_start:RemoNet.Close)
  5015. size_t total_size = 0;
  5016. uint32_t cached_has_bits = 0;
  5017. // Prevent compiler warnings about cached_has_bits being unused
  5018. (void) cached_has_bits;
  5019. // int32 peer = 1;
  5020. if (this->_internal_peer() != 0) {
  5021. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  5022. }
  5023. // int32 egotype = 2;
  5024. if (this->_internal_egotype() != 0) {
  5025. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_egotype());
  5026. }
  5027. // int32 index = 3;
  5028. if (this->_internal_index() != 0) {
  5029. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_index());
  5030. }
  5031. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  5032. }
  5033. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Close::_class_data_ = {
  5034. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  5035. Close::MergeImpl
  5036. };
  5037. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Close::GetClassData() const { return &_class_data_; }
  5038. void Close::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  5039. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  5040. static_cast<Close *>(to)->MergeFrom(
  5041. static_cast<const Close &>(from));
  5042. }
  5043. void Close::MergeFrom(const Close& from) {
  5044. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.Close)
  5045. GOOGLE_DCHECK_NE(&from, this);
  5046. uint32_t cached_has_bits = 0;
  5047. (void) cached_has_bits;
  5048. if (from._internal_peer() != 0) {
  5049. _internal_set_peer(from._internal_peer());
  5050. }
  5051. if (from._internal_egotype() != 0) {
  5052. _internal_set_egotype(from._internal_egotype());
  5053. }
  5054. if (from._internal_index() != 0) {
  5055. _internal_set_index(from._internal_index());
  5056. }
  5057. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  5058. }
  5059. void Close::CopyFrom(const Close& from) {
  5060. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.Close)
  5061. if (&from == this) return;
  5062. Clear();
  5063. MergeFrom(from);
  5064. }
  5065. bool Close::IsInitialized() const {
  5066. return true;
  5067. }
  5068. void Close::InternalSwap(Close* other) {
  5069. using std::swap;
  5070. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  5071. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  5072. PROTOBUF_FIELD_OFFSET(Close, index_)
  5073. + sizeof(Close::index_)
  5074. - PROTOBUF_FIELD_OFFSET(Close, peer_)>(
  5075. reinterpret_cast<char*>(&peer_),
  5076. reinterpret_cast<char*>(&other->peer_));
  5077. }
  5078. ::PROTOBUF_NAMESPACE_ID::Metadata Close::GetMetadata() const {
  5079. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  5080. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  5081. file_level_metadata_protocol_2eproto[16]);
  5082. }
  5083. // ===================================================================
  5084. class TestTextReq::_Internal {
  5085. public:
  5086. };
  5087. TestTextReq::TestTextReq(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  5088. bool is_message_owned)
  5089. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  5090. SharedCtor();
  5091. if (!is_message_owned) {
  5092. RegisterArenaDtor(arena);
  5093. }
  5094. // @@protoc_insertion_point(arena_constructor:RemoNet.TestTextReq)
  5095. }
  5096. TestTextReq::TestTextReq(const TestTextReq& from)
  5097. : ::PROTOBUF_NAMESPACE_ID::Message() {
  5098. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  5099. text_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5100. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5101. text_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  5102. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5103. if (!from._internal_text().empty()) {
  5104. text_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_text(),
  5105. GetArenaForAllocation());
  5106. }
  5107. // @@protoc_insertion_point(copy_constructor:RemoNet.TestTextReq)
  5108. }
  5109. inline void TestTextReq::SharedCtor() {
  5110. text_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5111. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5112. text_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  5113. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5114. }
  5115. TestTextReq::~TestTextReq() {
  5116. // @@protoc_insertion_point(destructor:RemoNet.TestTextReq)
  5117. if (GetArenaForAllocation() != nullptr) return;
  5118. SharedDtor();
  5119. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5120. }
  5121. inline void TestTextReq::SharedDtor() {
  5122. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  5123. text_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5124. }
  5125. void TestTextReq::ArenaDtor(void* object) {
  5126. TestTextReq* _this = reinterpret_cast< TestTextReq* >(object);
  5127. (void)_this;
  5128. }
  5129. void TestTextReq::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  5130. }
  5131. void TestTextReq::SetCachedSize(int size) const {
  5132. _cached_size_.Set(size);
  5133. }
  5134. void TestTextReq::Clear() {
  5135. // @@protoc_insertion_point(message_clear_start:RemoNet.TestTextReq)
  5136. uint32_t cached_has_bits = 0;
  5137. // Prevent compiler warnings about cached_has_bits being unused
  5138. (void) cached_has_bits;
  5139. text_.ClearToEmpty();
  5140. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5141. }
  5142. const char* TestTextReq::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  5143. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  5144. while (!ctx->Done(&ptr)) {
  5145. uint32_t tag;
  5146. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  5147. switch (tag >> 3) {
  5148. // string text = 1;
  5149. case 1:
  5150. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
  5151. auto str = _internal_mutable_text();
  5152. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  5153. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.TestTextReq.text"));
  5154. CHK_(ptr);
  5155. } else
  5156. goto handle_unusual;
  5157. continue;
  5158. default:
  5159. goto handle_unusual;
  5160. } // switch
  5161. handle_unusual:
  5162. if ((tag == 0) || ((tag & 7) == 4)) {
  5163. CHK_(ptr);
  5164. ctx->SetLastTag(tag);
  5165. goto message_done;
  5166. }
  5167. ptr = UnknownFieldParse(
  5168. tag,
  5169. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  5170. ptr, ctx);
  5171. CHK_(ptr != nullptr);
  5172. } // while
  5173. message_done:
  5174. return ptr;
  5175. failure:
  5176. ptr = nullptr;
  5177. goto message_done;
  5178. #undef CHK_
  5179. }
  5180. uint8_t* TestTextReq::_InternalSerialize(
  5181. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  5182. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.TestTextReq)
  5183. uint32_t cached_has_bits = 0;
  5184. (void) cached_has_bits;
  5185. // string text = 1;
  5186. if (!this->_internal_text().empty()) {
  5187. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  5188. this->_internal_text().data(), static_cast<int>(this->_internal_text().length()),
  5189. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  5190. "RemoNet.TestTextReq.text");
  5191. target = stream->WriteStringMaybeAliased(
  5192. 1, this->_internal_text(), target);
  5193. }
  5194. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  5195. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  5196. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  5197. }
  5198. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.TestTextReq)
  5199. return target;
  5200. }
  5201. size_t TestTextReq::ByteSizeLong() const {
  5202. // @@protoc_insertion_point(message_byte_size_start:RemoNet.TestTextReq)
  5203. size_t total_size = 0;
  5204. uint32_t cached_has_bits = 0;
  5205. // Prevent compiler warnings about cached_has_bits being unused
  5206. (void) cached_has_bits;
  5207. // string text = 1;
  5208. if (!this->_internal_text().empty()) {
  5209. total_size += 1 +
  5210. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  5211. this->_internal_text());
  5212. }
  5213. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  5214. }
  5215. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData TestTextReq::_class_data_ = {
  5216. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  5217. TestTextReq::MergeImpl
  5218. };
  5219. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*TestTextReq::GetClassData() const { return &_class_data_; }
  5220. void TestTextReq::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  5221. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  5222. static_cast<TestTextReq *>(to)->MergeFrom(
  5223. static_cast<const TestTextReq &>(from));
  5224. }
  5225. void TestTextReq::MergeFrom(const TestTextReq& from) {
  5226. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.TestTextReq)
  5227. GOOGLE_DCHECK_NE(&from, this);
  5228. uint32_t cached_has_bits = 0;
  5229. (void) cached_has_bits;
  5230. if (!from._internal_text().empty()) {
  5231. _internal_set_text(from._internal_text());
  5232. }
  5233. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  5234. }
  5235. void TestTextReq::CopyFrom(const TestTextReq& from) {
  5236. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.TestTextReq)
  5237. if (&from == this) return;
  5238. Clear();
  5239. MergeFrom(from);
  5240. }
  5241. bool TestTextReq::IsInitialized() const {
  5242. return true;
  5243. }
  5244. void TestTextReq::InternalSwap(TestTextReq* other) {
  5245. using std::swap;
  5246. auto* lhs_arena = GetArenaForAllocation();
  5247. auto* rhs_arena = other->GetArenaForAllocation();
  5248. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  5249. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  5250. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  5251. &text_, lhs_arena,
  5252. &other->text_, rhs_arena
  5253. );
  5254. }
  5255. ::PROTOBUF_NAMESPACE_ID::Metadata TestTextReq::GetMetadata() const {
  5256. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  5257. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  5258. file_level_metadata_protocol_2eproto[17]);
  5259. }
  5260. // ===================================================================
  5261. class CanMessage::_Internal {
  5262. public:
  5263. };
  5264. CanMessage::CanMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  5265. bool is_message_owned)
  5266. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  5267. SharedCtor();
  5268. if (!is_message_owned) {
  5269. RegisterArenaDtor(arena);
  5270. }
  5271. // @@protoc_insertion_point(arena_constructor:RemoNet.CanMessage)
  5272. }
  5273. CanMessage::CanMessage(const CanMessage& from)
  5274. : ::PROTOBUF_NAMESPACE_ID::Message() {
  5275. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  5276. data_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5277. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5278. data_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  5279. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5280. if (!from._internal_data().empty()) {
  5281. data_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_data(),
  5282. GetArenaForAllocation());
  5283. }
  5284. ::memcpy(&head_, &from.head_,
  5285. static_cast<size_t>(reinterpret_cast<char*>(&canid_) -
  5286. reinterpret_cast<char*>(&head_)) + sizeof(canid_));
  5287. // @@protoc_insertion_point(copy_constructor:RemoNet.CanMessage)
  5288. }
  5289. inline void CanMessage::SharedCtor() {
  5290. data_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5291. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5292. data_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  5293. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5294. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  5295. reinterpret_cast<char*>(&head_) - reinterpret_cast<char*>(this)),
  5296. 0, static_cast<size_t>(reinterpret_cast<char*>(&canid_) -
  5297. reinterpret_cast<char*>(&head_)) + sizeof(canid_));
  5298. }
  5299. CanMessage::~CanMessage() {
  5300. // @@protoc_insertion_point(destructor:RemoNet.CanMessage)
  5301. if (GetArenaForAllocation() != nullptr) return;
  5302. SharedDtor();
  5303. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5304. }
  5305. inline void CanMessage::SharedDtor() {
  5306. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  5307. data_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5308. }
  5309. void CanMessage::ArenaDtor(void* object) {
  5310. CanMessage* _this = reinterpret_cast< CanMessage* >(object);
  5311. (void)_this;
  5312. }
  5313. void CanMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  5314. }
  5315. void CanMessage::SetCachedSize(int size) const {
  5316. _cached_size_.Set(size);
  5317. }
  5318. void CanMessage::Clear() {
  5319. // @@protoc_insertion_point(message_clear_start:RemoNet.CanMessage)
  5320. uint32_t cached_has_bits = 0;
  5321. // Prevent compiler warnings about cached_has_bits being unused
  5322. (void) cached_has_bits;
  5323. data_.ClearToEmpty();
  5324. ::memset(&head_, 0, static_cast<size_t>(
  5325. reinterpret_cast<char*>(&canid_) -
  5326. reinterpret_cast<char*>(&head_)) + sizeof(canid_));
  5327. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5328. }
  5329. const char* CanMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  5330. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  5331. while (!ctx->Done(&ptr)) {
  5332. uint32_t tag;
  5333. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  5334. switch (tag >> 3) {
  5335. // int32 head = 1;
  5336. case 1:
  5337. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  5338. head_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  5339. CHK_(ptr);
  5340. } else
  5341. goto handle_unusual;
  5342. continue;
  5343. // int32 canid = 2;
  5344. case 2:
  5345. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  5346. canid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  5347. CHK_(ptr);
  5348. } else
  5349. goto handle_unusual;
  5350. continue;
  5351. // bytes data = 3;
  5352. case 3:
  5353. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
  5354. auto str = _internal_mutable_data();
  5355. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  5356. CHK_(ptr);
  5357. } else
  5358. goto handle_unusual;
  5359. continue;
  5360. default:
  5361. goto handle_unusual;
  5362. } // switch
  5363. handle_unusual:
  5364. if ((tag == 0) || ((tag & 7) == 4)) {
  5365. CHK_(ptr);
  5366. ctx->SetLastTag(tag);
  5367. goto message_done;
  5368. }
  5369. ptr = UnknownFieldParse(
  5370. tag,
  5371. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  5372. ptr, ctx);
  5373. CHK_(ptr != nullptr);
  5374. } // while
  5375. message_done:
  5376. return ptr;
  5377. failure:
  5378. ptr = nullptr;
  5379. goto message_done;
  5380. #undef CHK_
  5381. }
  5382. uint8_t* CanMessage::_InternalSerialize(
  5383. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  5384. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CanMessage)
  5385. uint32_t cached_has_bits = 0;
  5386. (void) cached_has_bits;
  5387. // int32 head = 1;
  5388. if (this->_internal_head() != 0) {
  5389. target = stream->EnsureSpace(target);
  5390. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_head(), target);
  5391. }
  5392. // int32 canid = 2;
  5393. if (this->_internal_canid() != 0) {
  5394. target = stream->EnsureSpace(target);
  5395. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_canid(), target);
  5396. }
  5397. // bytes data = 3;
  5398. if (!this->_internal_data().empty()) {
  5399. target = stream->WriteBytesMaybeAliased(
  5400. 3, this->_internal_data(), target);
  5401. }
  5402. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  5403. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  5404. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  5405. }
  5406. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CanMessage)
  5407. return target;
  5408. }
  5409. size_t CanMessage::ByteSizeLong() const {
  5410. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CanMessage)
  5411. size_t total_size = 0;
  5412. uint32_t cached_has_bits = 0;
  5413. // Prevent compiler warnings about cached_has_bits being unused
  5414. (void) cached_has_bits;
  5415. // bytes data = 3;
  5416. if (!this->_internal_data().empty()) {
  5417. total_size += 1 +
  5418. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
  5419. this->_internal_data());
  5420. }
  5421. // int32 head = 1;
  5422. if (this->_internal_head() != 0) {
  5423. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_head());
  5424. }
  5425. // int32 canid = 2;
  5426. if (this->_internal_canid() != 0) {
  5427. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_canid());
  5428. }
  5429. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  5430. }
  5431. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CanMessage::_class_data_ = {
  5432. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  5433. CanMessage::MergeImpl
  5434. };
  5435. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CanMessage::GetClassData() const { return &_class_data_; }
  5436. void CanMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  5437. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  5438. static_cast<CanMessage *>(to)->MergeFrom(
  5439. static_cast<const CanMessage &>(from));
  5440. }
  5441. void CanMessage::MergeFrom(const CanMessage& from) {
  5442. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CanMessage)
  5443. GOOGLE_DCHECK_NE(&from, this);
  5444. uint32_t cached_has_bits = 0;
  5445. (void) cached_has_bits;
  5446. if (!from._internal_data().empty()) {
  5447. _internal_set_data(from._internal_data());
  5448. }
  5449. if (from._internal_head() != 0) {
  5450. _internal_set_head(from._internal_head());
  5451. }
  5452. if (from._internal_canid() != 0) {
  5453. _internal_set_canid(from._internal_canid());
  5454. }
  5455. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  5456. }
  5457. void CanMessage::CopyFrom(const CanMessage& from) {
  5458. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CanMessage)
  5459. if (&from == this) return;
  5460. Clear();
  5461. MergeFrom(from);
  5462. }
  5463. bool CanMessage::IsInitialized() const {
  5464. return true;
  5465. }
  5466. void CanMessage::InternalSwap(CanMessage* other) {
  5467. using std::swap;
  5468. auto* lhs_arena = GetArenaForAllocation();
  5469. auto* rhs_arena = other->GetArenaForAllocation();
  5470. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  5471. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  5472. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  5473. &data_, lhs_arena,
  5474. &other->data_, rhs_arena
  5475. );
  5476. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  5477. PROTOBUF_FIELD_OFFSET(CanMessage, canid_)
  5478. + sizeof(CanMessage::canid_)
  5479. - PROTOBUF_FIELD_OFFSET(CanMessage, head_)>(
  5480. reinterpret_cast<char*>(&head_),
  5481. reinterpret_cast<char*>(&other->head_));
  5482. }
  5483. ::PROTOBUF_NAMESPACE_ID::Metadata CanMessage::GetMetadata() const {
  5484. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  5485. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  5486. file_level_metadata_protocol_2eproto[18]);
  5487. }
  5488. // ===================================================================
  5489. class CCCanMesage::_Internal {
  5490. public:
  5491. };
  5492. CCCanMesage::CCCanMesage(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  5493. bool is_message_owned)
  5494. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
  5495. message_(arena) {
  5496. SharedCtor();
  5497. if (!is_message_owned) {
  5498. RegisterArenaDtor(arena);
  5499. }
  5500. // @@protoc_insertion_point(arena_constructor:RemoNet.CCCanMesage)
  5501. }
  5502. CCCanMesage::CCCanMesage(const CCCanMesage& from)
  5503. : ::PROTOBUF_NAMESPACE_ID::Message(),
  5504. message_(from.message_) {
  5505. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  5506. islidar_ = from.islidar_;
  5507. // @@protoc_insertion_point(copy_constructor:RemoNet.CCCanMesage)
  5508. }
  5509. inline void CCCanMesage::SharedCtor() {
  5510. islidar_ = false;
  5511. }
  5512. CCCanMesage::~CCCanMesage() {
  5513. // @@protoc_insertion_point(destructor:RemoNet.CCCanMesage)
  5514. if (GetArenaForAllocation() != nullptr) return;
  5515. SharedDtor();
  5516. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5517. }
  5518. inline void CCCanMesage::SharedDtor() {
  5519. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  5520. }
  5521. void CCCanMesage::ArenaDtor(void* object) {
  5522. CCCanMesage* _this = reinterpret_cast< CCCanMesage* >(object);
  5523. (void)_this;
  5524. }
  5525. void CCCanMesage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  5526. }
  5527. void CCCanMesage::SetCachedSize(int size) const {
  5528. _cached_size_.Set(size);
  5529. }
  5530. void CCCanMesage::Clear() {
  5531. // @@protoc_insertion_point(message_clear_start:RemoNet.CCCanMesage)
  5532. uint32_t cached_has_bits = 0;
  5533. // Prevent compiler warnings about cached_has_bits being unused
  5534. (void) cached_has_bits;
  5535. message_.Clear();
  5536. islidar_ = false;
  5537. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5538. }
  5539. const char* CCCanMesage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  5540. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  5541. while (!ctx->Done(&ptr)) {
  5542. uint32_t tag;
  5543. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  5544. switch (tag >> 3) {
  5545. // bool islidar = 1;
  5546. case 1:
  5547. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  5548. islidar_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  5549. CHK_(ptr);
  5550. } else
  5551. goto handle_unusual;
  5552. continue;
  5553. // repeated .RemoNet.CanMessage message = 2;
  5554. case 2:
  5555. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
  5556. ptr -= 1;
  5557. do {
  5558. ptr += 1;
  5559. ptr = ctx->ParseMessage(_internal_add_message(), ptr);
  5560. CHK_(ptr);
  5561. if (!ctx->DataAvailable(ptr)) break;
  5562. } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr));
  5563. } else
  5564. goto handle_unusual;
  5565. continue;
  5566. default:
  5567. goto handle_unusual;
  5568. } // switch
  5569. handle_unusual:
  5570. if ((tag == 0) || ((tag & 7) == 4)) {
  5571. CHK_(ptr);
  5572. ctx->SetLastTag(tag);
  5573. goto message_done;
  5574. }
  5575. ptr = UnknownFieldParse(
  5576. tag,
  5577. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  5578. ptr, ctx);
  5579. CHK_(ptr != nullptr);
  5580. } // while
  5581. message_done:
  5582. return ptr;
  5583. failure:
  5584. ptr = nullptr;
  5585. goto message_done;
  5586. #undef CHK_
  5587. }
  5588. uint8_t* CCCanMesage::_InternalSerialize(
  5589. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  5590. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CCCanMesage)
  5591. uint32_t cached_has_bits = 0;
  5592. (void) cached_has_bits;
  5593. // bool islidar = 1;
  5594. if (this->_internal_islidar() != 0) {
  5595. target = stream->EnsureSpace(target);
  5596. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_islidar(), target);
  5597. }
  5598. // repeated .RemoNet.CanMessage message = 2;
  5599. for (unsigned int i = 0,
  5600. n = static_cast<unsigned int>(this->_internal_message_size()); i < n; i++) {
  5601. target = stream->EnsureSpace(target);
  5602. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  5603. InternalWriteMessage(2, this->_internal_message(i), target, stream);
  5604. }
  5605. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  5606. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  5607. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  5608. }
  5609. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CCCanMesage)
  5610. return target;
  5611. }
  5612. size_t CCCanMesage::ByteSizeLong() const {
  5613. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CCCanMesage)
  5614. size_t total_size = 0;
  5615. uint32_t cached_has_bits = 0;
  5616. // Prevent compiler warnings about cached_has_bits being unused
  5617. (void) cached_has_bits;
  5618. // repeated .RemoNet.CanMessage message = 2;
  5619. total_size += 1UL * this->_internal_message_size();
  5620. for (const auto& msg : this->message_) {
  5621. total_size +=
  5622. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  5623. }
  5624. // bool islidar = 1;
  5625. if (this->_internal_islidar() != 0) {
  5626. total_size += 1 + 1;
  5627. }
  5628. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  5629. }
  5630. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CCCanMesage::_class_data_ = {
  5631. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  5632. CCCanMesage::MergeImpl
  5633. };
  5634. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CCCanMesage::GetClassData() const { return &_class_data_; }
  5635. void CCCanMesage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  5636. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  5637. static_cast<CCCanMesage *>(to)->MergeFrom(
  5638. static_cast<const CCCanMesage &>(from));
  5639. }
  5640. void CCCanMesage::MergeFrom(const CCCanMesage& from) {
  5641. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CCCanMesage)
  5642. GOOGLE_DCHECK_NE(&from, this);
  5643. uint32_t cached_has_bits = 0;
  5644. (void) cached_has_bits;
  5645. message_.MergeFrom(from.message_);
  5646. if (from._internal_islidar() != 0) {
  5647. _internal_set_islidar(from._internal_islidar());
  5648. }
  5649. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  5650. }
  5651. void CCCanMesage::CopyFrom(const CCCanMesage& from) {
  5652. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CCCanMesage)
  5653. if (&from == this) return;
  5654. Clear();
  5655. MergeFrom(from);
  5656. }
  5657. bool CCCanMesage::IsInitialized() const {
  5658. return true;
  5659. }
  5660. void CCCanMesage::InternalSwap(CCCanMesage* other) {
  5661. using std::swap;
  5662. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  5663. message_.InternalSwap(&other->message_);
  5664. swap(islidar_, other->islidar_);
  5665. }
  5666. ::PROTOBUF_NAMESPACE_ID::Metadata CCCanMesage::GetMetadata() const {
  5667. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  5668. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  5669. file_level_metadata_protocol_2eproto[19]);
  5670. }
  5671. // ===================================================================
  5672. class Wiper::_Internal {
  5673. public:
  5674. };
  5675. Wiper::Wiper(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  5676. bool is_message_owned)
  5677. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  5678. SharedCtor();
  5679. if (!is_message_owned) {
  5680. RegisterArenaDtor(arena);
  5681. }
  5682. // @@protoc_insertion_point(arena_constructor:RemoNet.Wiper)
  5683. }
  5684. Wiper::Wiper(const Wiper& from)
  5685. : ::PROTOBUF_NAMESPACE_ID::Message() {
  5686. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  5687. ret_ = from.ret_;
  5688. // @@protoc_insertion_point(copy_constructor:RemoNet.Wiper)
  5689. }
  5690. inline void Wiper::SharedCtor() {
  5691. ret_ = false;
  5692. }
  5693. Wiper::~Wiper() {
  5694. // @@protoc_insertion_point(destructor:RemoNet.Wiper)
  5695. if (GetArenaForAllocation() != nullptr) return;
  5696. SharedDtor();
  5697. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5698. }
  5699. inline void Wiper::SharedDtor() {
  5700. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  5701. }
  5702. void Wiper::ArenaDtor(void* object) {
  5703. Wiper* _this = reinterpret_cast< Wiper* >(object);
  5704. (void)_this;
  5705. }
  5706. void Wiper::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  5707. }
  5708. void Wiper::SetCachedSize(int size) const {
  5709. _cached_size_.Set(size);
  5710. }
  5711. void Wiper::Clear() {
  5712. // @@protoc_insertion_point(message_clear_start:RemoNet.Wiper)
  5713. uint32_t cached_has_bits = 0;
  5714. // Prevent compiler warnings about cached_has_bits being unused
  5715. (void) cached_has_bits;
  5716. ret_ = false;
  5717. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5718. }
  5719. const char* Wiper::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  5720. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  5721. while (!ctx->Done(&ptr)) {
  5722. uint32_t tag;
  5723. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  5724. switch (tag >> 3) {
  5725. // bool ret = 1;
  5726. case 1:
  5727. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  5728. ret_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  5729. CHK_(ptr);
  5730. } else
  5731. goto handle_unusual;
  5732. continue;
  5733. default:
  5734. goto handle_unusual;
  5735. } // switch
  5736. handle_unusual:
  5737. if ((tag == 0) || ((tag & 7) == 4)) {
  5738. CHK_(ptr);
  5739. ctx->SetLastTag(tag);
  5740. goto message_done;
  5741. }
  5742. ptr = UnknownFieldParse(
  5743. tag,
  5744. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  5745. ptr, ctx);
  5746. CHK_(ptr != nullptr);
  5747. } // while
  5748. message_done:
  5749. return ptr;
  5750. failure:
  5751. ptr = nullptr;
  5752. goto message_done;
  5753. #undef CHK_
  5754. }
  5755. uint8_t* Wiper::_InternalSerialize(
  5756. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  5757. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.Wiper)
  5758. uint32_t cached_has_bits = 0;
  5759. (void) cached_has_bits;
  5760. // bool ret = 1;
  5761. if (this->_internal_ret() != 0) {
  5762. target = stream->EnsureSpace(target);
  5763. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_ret(), target);
  5764. }
  5765. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  5766. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  5767. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  5768. }
  5769. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.Wiper)
  5770. return target;
  5771. }
  5772. size_t Wiper::ByteSizeLong() const {
  5773. // @@protoc_insertion_point(message_byte_size_start:RemoNet.Wiper)
  5774. size_t total_size = 0;
  5775. uint32_t cached_has_bits = 0;
  5776. // Prevent compiler warnings about cached_has_bits being unused
  5777. (void) cached_has_bits;
  5778. // bool ret = 1;
  5779. if (this->_internal_ret() != 0) {
  5780. total_size += 1 + 1;
  5781. }
  5782. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  5783. }
  5784. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Wiper::_class_data_ = {
  5785. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  5786. Wiper::MergeImpl
  5787. };
  5788. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Wiper::GetClassData() const { return &_class_data_; }
  5789. void Wiper::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  5790. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  5791. static_cast<Wiper *>(to)->MergeFrom(
  5792. static_cast<const Wiper &>(from));
  5793. }
  5794. void Wiper::MergeFrom(const Wiper& from) {
  5795. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.Wiper)
  5796. GOOGLE_DCHECK_NE(&from, this);
  5797. uint32_t cached_has_bits = 0;
  5798. (void) cached_has_bits;
  5799. if (from._internal_ret() != 0) {
  5800. _internal_set_ret(from._internal_ret());
  5801. }
  5802. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  5803. }
  5804. void Wiper::CopyFrom(const Wiper& from) {
  5805. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.Wiper)
  5806. if (&from == this) return;
  5807. Clear();
  5808. MergeFrom(from);
  5809. }
  5810. bool Wiper::IsInitialized() const {
  5811. return true;
  5812. }
  5813. void Wiper::InternalSwap(Wiper* other) {
  5814. using std::swap;
  5815. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  5816. swap(ret_, other->ret_);
  5817. }
  5818. ::PROTOBUF_NAMESPACE_ID::Metadata Wiper::GetMetadata() const {
  5819. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  5820. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  5821. file_level_metadata_protocol_2eproto[20]);
  5822. }
  5823. // ===================================================================
  5824. class FrontLight::_Internal {
  5825. public:
  5826. };
  5827. FrontLight::FrontLight(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  5828. bool is_message_owned)
  5829. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  5830. SharedCtor();
  5831. if (!is_message_owned) {
  5832. RegisterArenaDtor(arena);
  5833. }
  5834. // @@protoc_insertion_point(arena_constructor:RemoNet.FrontLight)
  5835. }
  5836. FrontLight::FrontLight(const FrontLight& from)
  5837. : ::PROTOBUF_NAMESPACE_ID::Message() {
  5838. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  5839. ret_ = from.ret_;
  5840. // @@protoc_insertion_point(copy_constructor:RemoNet.FrontLight)
  5841. }
  5842. inline void FrontLight::SharedCtor() {
  5843. ret_ = false;
  5844. }
  5845. FrontLight::~FrontLight() {
  5846. // @@protoc_insertion_point(destructor:RemoNet.FrontLight)
  5847. if (GetArenaForAllocation() != nullptr) return;
  5848. SharedDtor();
  5849. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5850. }
  5851. inline void FrontLight::SharedDtor() {
  5852. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  5853. }
  5854. void FrontLight::ArenaDtor(void* object) {
  5855. FrontLight* _this = reinterpret_cast< FrontLight* >(object);
  5856. (void)_this;
  5857. }
  5858. void FrontLight::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  5859. }
  5860. void FrontLight::SetCachedSize(int size) const {
  5861. _cached_size_.Set(size);
  5862. }
  5863. void FrontLight::Clear() {
  5864. // @@protoc_insertion_point(message_clear_start:RemoNet.FrontLight)
  5865. uint32_t cached_has_bits = 0;
  5866. // Prevent compiler warnings about cached_has_bits being unused
  5867. (void) cached_has_bits;
  5868. ret_ = false;
  5869. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5870. }
  5871. const char* FrontLight::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  5872. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  5873. while (!ctx->Done(&ptr)) {
  5874. uint32_t tag;
  5875. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  5876. switch (tag >> 3) {
  5877. // bool ret = 1;
  5878. case 1:
  5879. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  5880. ret_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  5881. CHK_(ptr);
  5882. } else
  5883. goto handle_unusual;
  5884. continue;
  5885. default:
  5886. goto handle_unusual;
  5887. } // switch
  5888. handle_unusual:
  5889. if ((tag == 0) || ((tag & 7) == 4)) {
  5890. CHK_(ptr);
  5891. ctx->SetLastTag(tag);
  5892. goto message_done;
  5893. }
  5894. ptr = UnknownFieldParse(
  5895. tag,
  5896. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  5897. ptr, ctx);
  5898. CHK_(ptr != nullptr);
  5899. } // while
  5900. message_done:
  5901. return ptr;
  5902. failure:
  5903. ptr = nullptr;
  5904. goto message_done;
  5905. #undef CHK_
  5906. }
  5907. uint8_t* FrontLight::_InternalSerialize(
  5908. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  5909. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.FrontLight)
  5910. uint32_t cached_has_bits = 0;
  5911. (void) cached_has_bits;
  5912. // bool ret = 1;
  5913. if (this->_internal_ret() != 0) {
  5914. target = stream->EnsureSpace(target);
  5915. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_ret(), target);
  5916. }
  5917. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  5918. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  5919. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  5920. }
  5921. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.FrontLight)
  5922. return target;
  5923. }
  5924. size_t FrontLight::ByteSizeLong() const {
  5925. // @@protoc_insertion_point(message_byte_size_start:RemoNet.FrontLight)
  5926. size_t total_size = 0;
  5927. uint32_t cached_has_bits = 0;
  5928. // Prevent compiler warnings about cached_has_bits being unused
  5929. (void) cached_has_bits;
  5930. // bool ret = 1;
  5931. if (this->_internal_ret() != 0) {
  5932. total_size += 1 + 1;
  5933. }
  5934. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  5935. }
  5936. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FrontLight::_class_data_ = {
  5937. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  5938. FrontLight::MergeImpl
  5939. };
  5940. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FrontLight::GetClassData() const { return &_class_data_; }
  5941. void FrontLight::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  5942. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  5943. static_cast<FrontLight *>(to)->MergeFrom(
  5944. static_cast<const FrontLight &>(from));
  5945. }
  5946. void FrontLight::MergeFrom(const FrontLight& from) {
  5947. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.FrontLight)
  5948. GOOGLE_DCHECK_NE(&from, this);
  5949. uint32_t cached_has_bits = 0;
  5950. (void) cached_has_bits;
  5951. if (from._internal_ret() != 0) {
  5952. _internal_set_ret(from._internal_ret());
  5953. }
  5954. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  5955. }
  5956. void FrontLight::CopyFrom(const FrontLight& from) {
  5957. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.FrontLight)
  5958. if (&from == this) return;
  5959. Clear();
  5960. MergeFrom(from);
  5961. }
  5962. bool FrontLight::IsInitialized() const {
  5963. return true;
  5964. }
  5965. void FrontLight::InternalSwap(FrontLight* other) {
  5966. using std::swap;
  5967. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  5968. swap(ret_, other->ret_);
  5969. }
  5970. ::PROTOBUF_NAMESPACE_ID::Metadata FrontLight::GetMetadata() const {
  5971. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  5972. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  5973. file_level_metadata_protocol_2eproto[21]);
  5974. }
  5975. // ===================================================================
  5976. class BackLight::_Internal {
  5977. public:
  5978. };
  5979. BackLight::BackLight(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  5980. bool is_message_owned)
  5981. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  5982. SharedCtor();
  5983. if (!is_message_owned) {
  5984. RegisterArenaDtor(arena);
  5985. }
  5986. // @@protoc_insertion_point(arena_constructor:RemoNet.BackLight)
  5987. }
  5988. BackLight::BackLight(const BackLight& from)
  5989. : ::PROTOBUF_NAMESPACE_ID::Message() {
  5990. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  5991. ret_ = from.ret_;
  5992. // @@protoc_insertion_point(copy_constructor:RemoNet.BackLight)
  5993. }
  5994. inline void BackLight::SharedCtor() {
  5995. ret_ = false;
  5996. }
  5997. BackLight::~BackLight() {
  5998. // @@protoc_insertion_point(destructor:RemoNet.BackLight)
  5999. if (GetArenaForAllocation() != nullptr) return;
  6000. SharedDtor();
  6001. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  6002. }
  6003. inline void BackLight::SharedDtor() {
  6004. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  6005. }
  6006. void BackLight::ArenaDtor(void* object) {
  6007. BackLight* _this = reinterpret_cast< BackLight* >(object);
  6008. (void)_this;
  6009. }
  6010. void BackLight::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  6011. }
  6012. void BackLight::SetCachedSize(int size) const {
  6013. _cached_size_.Set(size);
  6014. }
  6015. void BackLight::Clear() {
  6016. // @@protoc_insertion_point(message_clear_start:RemoNet.BackLight)
  6017. uint32_t cached_has_bits = 0;
  6018. // Prevent compiler warnings about cached_has_bits being unused
  6019. (void) cached_has_bits;
  6020. ret_ = false;
  6021. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  6022. }
  6023. const char* BackLight::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  6024. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  6025. while (!ctx->Done(&ptr)) {
  6026. uint32_t tag;
  6027. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  6028. switch (tag >> 3) {
  6029. // bool ret = 1;
  6030. case 1:
  6031. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  6032. ret_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  6033. CHK_(ptr);
  6034. } else
  6035. goto handle_unusual;
  6036. continue;
  6037. default:
  6038. goto handle_unusual;
  6039. } // switch
  6040. handle_unusual:
  6041. if ((tag == 0) || ((tag & 7) == 4)) {
  6042. CHK_(ptr);
  6043. ctx->SetLastTag(tag);
  6044. goto message_done;
  6045. }
  6046. ptr = UnknownFieldParse(
  6047. tag,
  6048. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  6049. ptr, ctx);
  6050. CHK_(ptr != nullptr);
  6051. } // while
  6052. message_done:
  6053. return ptr;
  6054. failure:
  6055. ptr = nullptr;
  6056. goto message_done;
  6057. #undef CHK_
  6058. }
  6059. uint8_t* BackLight::_InternalSerialize(
  6060. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  6061. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.BackLight)
  6062. uint32_t cached_has_bits = 0;
  6063. (void) cached_has_bits;
  6064. // bool ret = 1;
  6065. if (this->_internal_ret() != 0) {
  6066. target = stream->EnsureSpace(target);
  6067. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_ret(), target);
  6068. }
  6069. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  6070. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  6071. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  6072. }
  6073. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.BackLight)
  6074. return target;
  6075. }
  6076. size_t BackLight::ByteSizeLong() const {
  6077. // @@protoc_insertion_point(message_byte_size_start:RemoNet.BackLight)
  6078. size_t total_size = 0;
  6079. uint32_t cached_has_bits = 0;
  6080. // Prevent compiler warnings about cached_has_bits being unused
  6081. (void) cached_has_bits;
  6082. // bool ret = 1;
  6083. if (this->_internal_ret() != 0) {
  6084. total_size += 1 + 1;
  6085. }
  6086. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  6087. }
  6088. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData BackLight::_class_data_ = {
  6089. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  6090. BackLight::MergeImpl
  6091. };
  6092. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*BackLight::GetClassData() const { return &_class_data_; }
  6093. void BackLight::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  6094. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  6095. static_cast<BackLight *>(to)->MergeFrom(
  6096. static_cast<const BackLight &>(from));
  6097. }
  6098. void BackLight::MergeFrom(const BackLight& from) {
  6099. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.BackLight)
  6100. GOOGLE_DCHECK_NE(&from, this);
  6101. uint32_t cached_has_bits = 0;
  6102. (void) cached_has_bits;
  6103. if (from._internal_ret() != 0) {
  6104. _internal_set_ret(from._internal_ret());
  6105. }
  6106. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  6107. }
  6108. void BackLight::CopyFrom(const BackLight& from) {
  6109. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.BackLight)
  6110. if (&from == this) return;
  6111. Clear();
  6112. MergeFrom(from);
  6113. }
  6114. bool BackLight::IsInitialized() const {
  6115. return true;
  6116. }
  6117. void BackLight::InternalSwap(BackLight* other) {
  6118. using std::swap;
  6119. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  6120. swap(ret_, other->ret_);
  6121. }
  6122. ::PROTOBUF_NAMESPACE_ID::Metadata BackLight::GetMetadata() const {
  6123. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  6124. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  6125. file_level_metadata_protocol_2eproto[22]);
  6126. }
  6127. // ===================================================================
  6128. class CCAskDataChannel::_Internal {
  6129. public:
  6130. };
  6131. CCAskDataChannel::CCAskDataChannel(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  6132. bool is_message_owned)
  6133. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) {
  6134. // @@protoc_insertion_point(arena_constructor:RemoNet.CCAskDataChannel)
  6135. }
  6136. CCAskDataChannel::CCAskDataChannel(const CCAskDataChannel& from)
  6137. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() {
  6138. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  6139. // @@protoc_insertion_point(copy_constructor:RemoNet.CCAskDataChannel)
  6140. }
  6141. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CCAskDataChannel::_class_data_ = {
  6142. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl,
  6143. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl,
  6144. };
  6145. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CCAskDataChannel::GetClassData() const { return &_class_data_; }
  6146. ::PROTOBUF_NAMESPACE_ID::Metadata CCAskDataChannel::GetMetadata() const {
  6147. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  6148. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  6149. file_level_metadata_protocol_2eproto[23]);
  6150. }
  6151. // ===================================================================
  6152. class IMuMessage::_Internal {
  6153. public:
  6154. };
  6155. IMuMessage::IMuMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  6156. bool is_message_owned)
  6157. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  6158. SharedCtor();
  6159. if (!is_message_owned) {
  6160. RegisterArenaDtor(arena);
  6161. }
  6162. // @@protoc_insertion_point(arena_constructor:RemoNet.IMuMessage)
  6163. }
  6164. IMuMessage::IMuMessage(const IMuMessage& from)
  6165. : ::PROTOBUF_NAMESPACE_ID::Message() {
  6166. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  6167. ::memcpy(&rx_, &from.rx_,
  6168. static_cast<size_t>(reinterpret_cast<char*>(&ry_) -
  6169. reinterpret_cast<char*>(&rx_)) + sizeof(ry_));
  6170. // @@protoc_insertion_point(copy_constructor:RemoNet.IMuMessage)
  6171. }
  6172. inline void IMuMessage::SharedCtor() {
  6173. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  6174. reinterpret_cast<char*>(&rx_) - reinterpret_cast<char*>(this)),
  6175. 0, static_cast<size_t>(reinterpret_cast<char*>(&ry_) -
  6176. reinterpret_cast<char*>(&rx_)) + sizeof(ry_));
  6177. }
  6178. IMuMessage::~IMuMessage() {
  6179. // @@protoc_insertion_point(destructor:RemoNet.IMuMessage)
  6180. if (GetArenaForAllocation() != nullptr) return;
  6181. SharedDtor();
  6182. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  6183. }
  6184. inline void IMuMessage::SharedDtor() {
  6185. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  6186. }
  6187. void IMuMessage::ArenaDtor(void* object) {
  6188. IMuMessage* _this = reinterpret_cast< IMuMessage* >(object);
  6189. (void)_this;
  6190. }
  6191. void IMuMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  6192. }
  6193. void IMuMessage::SetCachedSize(int size) const {
  6194. _cached_size_.Set(size);
  6195. }
  6196. void IMuMessage::Clear() {
  6197. // @@protoc_insertion_point(message_clear_start:RemoNet.IMuMessage)
  6198. uint32_t cached_has_bits = 0;
  6199. // Prevent compiler warnings about cached_has_bits being unused
  6200. (void) cached_has_bits;
  6201. ::memset(&rx_, 0, static_cast<size_t>(
  6202. reinterpret_cast<char*>(&ry_) -
  6203. reinterpret_cast<char*>(&rx_)) + sizeof(ry_));
  6204. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  6205. }
  6206. const char* IMuMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  6207. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  6208. while (!ctx->Done(&ptr)) {
  6209. uint32_t tag;
  6210. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  6211. switch (tag >> 3) {
  6212. // float rx = 1;
  6213. case 1:
  6214. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 13)) {
  6215. rx_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  6216. ptr += sizeof(float);
  6217. } else
  6218. goto handle_unusual;
  6219. continue;
  6220. // float ry = 2;
  6221. case 2:
  6222. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 21)) {
  6223. ry_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  6224. ptr += sizeof(float);
  6225. } else
  6226. goto handle_unusual;
  6227. continue;
  6228. default:
  6229. goto handle_unusual;
  6230. } // switch
  6231. handle_unusual:
  6232. if ((tag == 0) || ((tag & 7) == 4)) {
  6233. CHK_(ptr);
  6234. ctx->SetLastTag(tag);
  6235. goto message_done;
  6236. }
  6237. ptr = UnknownFieldParse(
  6238. tag,
  6239. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  6240. ptr, ctx);
  6241. CHK_(ptr != nullptr);
  6242. } // while
  6243. message_done:
  6244. return ptr;
  6245. failure:
  6246. ptr = nullptr;
  6247. goto message_done;
  6248. #undef CHK_
  6249. }
  6250. uint8_t* IMuMessage::_InternalSerialize(
  6251. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  6252. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.IMuMessage)
  6253. uint32_t cached_has_bits = 0;
  6254. (void) cached_has_bits;
  6255. // float rx = 1;
  6256. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  6257. float tmp_rx = this->_internal_rx();
  6258. uint32_t raw_rx;
  6259. memcpy(&raw_rx, &tmp_rx, sizeof(tmp_rx));
  6260. if (raw_rx != 0) {
  6261. target = stream->EnsureSpace(target);
  6262. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(1, this->_internal_rx(), target);
  6263. }
  6264. // float ry = 2;
  6265. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  6266. float tmp_ry = this->_internal_ry();
  6267. uint32_t raw_ry;
  6268. memcpy(&raw_ry, &tmp_ry, sizeof(tmp_ry));
  6269. if (raw_ry != 0) {
  6270. target = stream->EnsureSpace(target);
  6271. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(2, this->_internal_ry(), target);
  6272. }
  6273. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  6274. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  6275. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  6276. }
  6277. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.IMuMessage)
  6278. return target;
  6279. }
  6280. size_t IMuMessage::ByteSizeLong() const {
  6281. // @@protoc_insertion_point(message_byte_size_start:RemoNet.IMuMessage)
  6282. size_t total_size = 0;
  6283. uint32_t cached_has_bits = 0;
  6284. // Prevent compiler warnings about cached_has_bits being unused
  6285. (void) cached_has_bits;
  6286. // float rx = 1;
  6287. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  6288. float tmp_rx = this->_internal_rx();
  6289. uint32_t raw_rx;
  6290. memcpy(&raw_rx, &tmp_rx, sizeof(tmp_rx));
  6291. if (raw_rx != 0) {
  6292. total_size += 1 + 4;
  6293. }
  6294. // float ry = 2;
  6295. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  6296. float tmp_ry = this->_internal_ry();
  6297. uint32_t raw_ry;
  6298. memcpy(&raw_ry, &tmp_ry, sizeof(tmp_ry));
  6299. if (raw_ry != 0) {
  6300. total_size += 1 + 4;
  6301. }
  6302. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  6303. }
  6304. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData IMuMessage::_class_data_ = {
  6305. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  6306. IMuMessage::MergeImpl
  6307. };
  6308. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*IMuMessage::GetClassData() const { return &_class_data_; }
  6309. void IMuMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  6310. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  6311. static_cast<IMuMessage *>(to)->MergeFrom(
  6312. static_cast<const IMuMessage &>(from));
  6313. }
  6314. void IMuMessage::MergeFrom(const IMuMessage& from) {
  6315. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.IMuMessage)
  6316. GOOGLE_DCHECK_NE(&from, this);
  6317. uint32_t cached_has_bits = 0;
  6318. (void) cached_has_bits;
  6319. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  6320. float tmp_rx = from._internal_rx();
  6321. uint32_t raw_rx;
  6322. memcpy(&raw_rx, &tmp_rx, sizeof(tmp_rx));
  6323. if (raw_rx != 0) {
  6324. _internal_set_rx(from._internal_rx());
  6325. }
  6326. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  6327. float tmp_ry = from._internal_ry();
  6328. uint32_t raw_ry;
  6329. memcpy(&raw_ry, &tmp_ry, sizeof(tmp_ry));
  6330. if (raw_ry != 0) {
  6331. _internal_set_ry(from._internal_ry());
  6332. }
  6333. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  6334. }
  6335. void IMuMessage::CopyFrom(const IMuMessage& from) {
  6336. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.IMuMessage)
  6337. if (&from == this) return;
  6338. Clear();
  6339. MergeFrom(from);
  6340. }
  6341. bool IMuMessage::IsInitialized() const {
  6342. return true;
  6343. }
  6344. void IMuMessage::InternalSwap(IMuMessage* other) {
  6345. using std::swap;
  6346. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  6347. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  6348. PROTOBUF_FIELD_OFFSET(IMuMessage, ry_)
  6349. + sizeof(IMuMessage::ry_)
  6350. - PROTOBUF_FIELD_OFFSET(IMuMessage, rx_)>(
  6351. reinterpret_cast<char*>(&rx_),
  6352. reinterpret_cast<char*>(&other->rx_));
  6353. }
  6354. ::PROTOBUF_NAMESPACE_ID::Metadata IMuMessage::GetMetadata() const {
  6355. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  6356. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  6357. file_level_metadata_protocol_2eproto[24]);
  6358. }
  6359. // ===================================================================
  6360. class CCPing::_Internal {
  6361. public:
  6362. };
  6363. CCPing::CCPing(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  6364. bool is_message_owned)
  6365. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  6366. SharedCtor();
  6367. if (!is_message_owned) {
  6368. RegisterArenaDtor(arena);
  6369. }
  6370. // @@protoc_insertion_point(arena_constructor:RemoNet.CCPing)
  6371. }
  6372. CCPing::CCPing(const CCPing& from)
  6373. : ::PROTOBUF_NAMESPACE_ID::Message() {
  6374. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  6375. tick_ = from.tick_;
  6376. // @@protoc_insertion_point(copy_constructor:RemoNet.CCPing)
  6377. }
  6378. inline void CCPing::SharedCtor() {
  6379. tick_ = int64_t{0};
  6380. }
  6381. CCPing::~CCPing() {
  6382. // @@protoc_insertion_point(destructor:RemoNet.CCPing)
  6383. if (GetArenaForAllocation() != nullptr) return;
  6384. SharedDtor();
  6385. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  6386. }
  6387. inline void CCPing::SharedDtor() {
  6388. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  6389. }
  6390. void CCPing::ArenaDtor(void* object) {
  6391. CCPing* _this = reinterpret_cast< CCPing* >(object);
  6392. (void)_this;
  6393. }
  6394. void CCPing::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  6395. }
  6396. void CCPing::SetCachedSize(int size) const {
  6397. _cached_size_.Set(size);
  6398. }
  6399. void CCPing::Clear() {
  6400. // @@protoc_insertion_point(message_clear_start:RemoNet.CCPing)
  6401. uint32_t cached_has_bits = 0;
  6402. // Prevent compiler warnings about cached_has_bits being unused
  6403. (void) cached_has_bits;
  6404. tick_ = int64_t{0};
  6405. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  6406. }
  6407. const char* CCPing::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  6408. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  6409. while (!ctx->Done(&ptr)) {
  6410. uint32_t tag;
  6411. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  6412. switch (tag >> 3) {
  6413. // int64 tick = 1;
  6414. case 1:
  6415. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  6416. tick_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  6417. CHK_(ptr);
  6418. } else
  6419. goto handle_unusual;
  6420. continue;
  6421. default:
  6422. goto handle_unusual;
  6423. } // switch
  6424. handle_unusual:
  6425. if ((tag == 0) || ((tag & 7) == 4)) {
  6426. CHK_(ptr);
  6427. ctx->SetLastTag(tag);
  6428. goto message_done;
  6429. }
  6430. ptr = UnknownFieldParse(
  6431. tag,
  6432. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  6433. ptr, ctx);
  6434. CHK_(ptr != nullptr);
  6435. } // while
  6436. message_done:
  6437. return ptr;
  6438. failure:
  6439. ptr = nullptr;
  6440. goto message_done;
  6441. #undef CHK_
  6442. }
  6443. uint8_t* CCPing::_InternalSerialize(
  6444. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  6445. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CCPing)
  6446. uint32_t cached_has_bits = 0;
  6447. (void) cached_has_bits;
  6448. // int64 tick = 1;
  6449. if (this->_internal_tick() != 0) {
  6450. target = stream->EnsureSpace(target);
  6451. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_tick(), target);
  6452. }
  6453. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  6454. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  6455. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  6456. }
  6457. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CCPing)
  6458. return target;
  6459. }
  6460. size_t CCPing::ByteSizeLong() const {
  6461. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CCPing)
  6462. size_t total_size = 0;
  6463. uint32_t cached_has_bits = 0;
  6464. // Prevent compiler warnings about cached_has_bits being unused
  6465. (void) cached_has_bits;
  6466. // int64 tick = 1;
  6467. if (this->_internal_tick() != 0) {
  6468. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_tick());
  6469. }
  6470. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  6471. }
  6472. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CCPing::_class_data_ = {
  6473. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  6474. CCPing::MergeImpl
  6475. };
  6476. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CCPing::GetClassData() const { return &_class_data_; }
  6477. void CCPing::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  6478. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  6479. static_cast<CCPing *>(to)->MergeFrom(
  6480. static_cast<const CCPing &>(from));
  6481. }
  6482. void CCPing::MergeFrom(const CCPing& from) {
  6483. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CCPing)
  6484. GOOGLE_DCHECK_NE(&from, this);
  6485. uint32_t cached_has_bits = 0;
  6486. (void) cached_has_bits;
  6487. if (from._internal_tick() != 0) {
  6488. _internal_set_tick(from._internal_tick());
  6489. }
  6490. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  6491. }
  6492. void CCPing::CopyFrom(const CCPing& from) {
  6493. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CCPing)
  6494. if (&from == this) return;
  6495. Clear();
  6496. MergeFrom(from);
  6497. }
  6498. bool CCPing::IsInitialized() const {
  6499. return true;
  6500. }
  6501. void CCPing::InternalSwap(CCPing* other) {
  6502. using std::swap;
  6503. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  6504. swap(tick_, other->tick_);
  6505. }
  6506. ::PROTOBUF_NAMESPACE_ID::Metadata CCPing::GetMetadata() const {
  6507. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  6508. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  6509. file_level_metadata_protocol_2eproto[25]);
  6510. }
  6511. // ===================================================================
  6512. class CCRadarMessage::_Internal {
  6513. public:
  6514. };
  6515. CCRadarMessage::CCRadarMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  6516. bool is_message_owned)
  6517. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  6518. SharedCtor();
  6519. if (!is_message_owned) {
  6520. RegisterArenaDtor(arena);
  6521. }
  6522. // @@protoc_insertion_point(arena_constructor:RemoNet.CCRadarMessage)
  6523. }
  6524. CCRadarMessage::CCRadarMessage(const CCRadarMessage& from)
  6525. : ::PROTOBUF_NAMESPACE_ID::Message() {
  6526. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  6527. ::memcpy(&radar0_, &from.radar0_,
  6528. static_cast<size_t>(reinterpret_cast<char*>(&radar7_) -
  6529. reinterpret_cast<char*>(&radar0_)) + sizeof(radar7_));
  6530. // @@protoc_insertion_point(copy_constructor:RemoNet.CCRadarMessage)
  6531. }
  6532. inline void CCRadarMessage::SharedCtor() {
  6533. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  6534. reinterpret_cast<char*>(&radar0_) - reinterpret_cast<char*>(this)),
  6535. 0, static_cast<size_t>(reinterpret_cast<char*>(&radar7_) -
  6536. reinterpret_cast<char*>(&radar0_)) + sizeof(radar7_));
  6537. }
  6538. CCRadarMessage::~CCRadarMessage() {
  6539. // @@protoc_insertion_point(destructor:RemoNet.CCRadarMessage)
  6540. if (GetArenaForAllocation() != nullptr) return;
  6541. SharedDtor();
  6542. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  6543. }
  6544. inline void CCRadarMessage::SharedDtor() {
  6545. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  6546. }
  6547. void CCRadarMessage::ArenaDtor(void* object) {
  6548. CCRadarMessage* _this = reinterpret_cast< CCRadarMessage* >(object);
  6549. (void)_this;
  6550. }
  6551. void CCRadarMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  6552. }
  6553. void CCRadarMessage::SetCachedSize(int size) const {
  6554. _cached_size_.Set(size);
  6555. }
  6556. void CCRadarMessage::Clear() {
  6557. // @@protoc_insertion_point(message_clear_start:RemoNet.CCRadarMessage)
  6558. uint32_t cached_has_bits = 0;
  6559. // Prevent compiler warnings about cached_has_bits being unused
  6560. (void) cached_has_bits;
  6561. ::memset(&radar0_, 0, static_cast<size_t>(
  6562. reinterpret_cast<char*>(&radar7_) -
  6563. reinterpret_cast<char*>(&radar0_)) + sizeof(radar7_));
  6564. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  6565. }
  6566. const char* CCRadarMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  6567. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  6568. while (!ctx->Done(&ptr)) {
  6569. uint32_t tag;
  6570. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  6571. switch (tag >> 3) {
  6572. // int32 radar0 = 1;
  6573. case 1:
  6574. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  6575. radar0_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6576. CHK_(ptr);
  6577. } else
  6578. goto handle_unusual;
  6579. continue;
  6580. // int32 radar1 = 2;
  6581. case 2:
  6582. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  6583. radar1_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6584. CHK_(ptr);
  6585. } else
  6586. goto handle_unusual;
  6587. continue;
  6588. // int32 radar2 = 3;
  6589. case 3:
  6590. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  6591. radar2_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6592. CHK_(ptr);
  6593. } else
  6594. goto handle_unusual;
  6595. continue;
  6596. // int32 radar3 = 4;
  6597. case 4:
  6598. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
  6599. radar3_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6600. CHK_(ptr);
  6601. } else
  6602. goto handle_unusual;
  6603. continue;
  6604. // int32 radar4 = 5;
  6605. case 5:
  6606. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
  6607. radar4_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6608. CHK_(ptr);
  6609. } else
  6610. goto handle_unusual;
  6611. continue;
  6612. // int32 radar5 = 6;
  6613. case 6:
  6614. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 48)) {
  6615. radar5_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6616. CHK_(ptr);
  6617. } else
  6618. goto handle_unusual;
  6619. continue;
  6620. // int32 radar6 = 7;
  6621. case 7:
  6622. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56)) {
  6623. radar6_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6624. CHK_(ptr);
  6625. } else
  6626. goto handle_unusual;
  6627. continue;
  6628. // int32 radar7 = 8;
  6629. case 8:
  6630. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 64)) {
  6631. radar7_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6632. CHK_(ptr);
  6633. } else
  6634. goto handle_unusual;
  6635. continue;
  6636. default:
  6637. goto handle_unusual;
  6638. } // switch
  6639. handle_unusual:
  6640. if ((tag == 0) || ((tag & 7) == 4)) {
  6641. CHK_(ptr);
  6642. ctx->SetLastTag(tag);
  6643. goto message_done;
  6644. }
  6645. ptr = UnknownFieldParse(
  6646. tag,
  6647. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  6648. ptr, ctx);
  6649. CHK_(ptr != nullptr);
  6650. } // while
  6651. message_done:
  6652. return ptr;
  6653. failure:
  6654. ptr = nullptr;
  6655. goto message_done;
  6656. #undef CHK_
  6657. }
  6658. uint8_t* CCRadarMessage::_InternalSerialize(
  6659. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  6660. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CCRadarMessage)
  6661. uint32_t cached_has_bits = 0;
  6662. (void) cached_has_bits;
  6663. // int32 radar0 = 1;
  6664. if (this->_internal_radar0() != 0) {
  6665. target = stream->EnsureSpace(target);
  6666. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_radar0(), target);
  6667. }
  6668. // int32 radar1 = 2;
  6669. if (this->_internal_radar1() != 0) {
  6670. target = stream->EnsureSpace(target);
  6671. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_radar1(), target);
  6672. }
  6673. // int32 radar2 = 3;
  6674. if (this->_internal_radar2() != 0) {
  6675. target = stream->EnsureSpace(target);
  6676. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_radar2(), target);
  6677. }
  6678. // int32 radar3 = 4;
  6679. if (this->_internal_radar3() != 0) {
  6680. target = stream->EnsureSpace(target);
  6681. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_radar3(), target);
  6682. }
  6683. // int32 radar4 = 5;
  6684. if (this->_internal_radar4() != 0) {
  6685. target = stream->EnsureSpace(target);
  6686. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(5, this->_internal_radar4(), target);
  6687. }
  6688. // int32 radar5 = 6;
  6689. if (this->_internal_radar5() != 0) {
  6690. target = stream->EnsureSpace(target);
  6691. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(6, this->_internal_radar5(), target);
  6692. }
  6693. // int32 radar6 = 7;
  6694. if (this->_internal_radar6() != 0) {
  6695. target = stream->EnsureSpace(target);
  6696. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(7, this->_internal_radar6(), target);
  6697. }
  6698. // int32 radar7 = 8;
  6699. if (this->_internal_radar7() != 0) {
  6700. target = stream->EnsureSpace(target);
  6701. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(8, this->_internal_radar7(), target);
  6702. }
  6703. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  6704. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  6705. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  6706. }
  6707. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CCRadarMessage)
  6708. return target;
  6709. }
  6710. size_t CCRadarMessage::ByteSizeLong() const {
  6711. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CCRadarMessage)
  6712. size_t total_size = 0;
  6713. uint32_t cached_has_bits = 0;
  6714. // Prevent compiler warnings about cached_has_bits being unused
  6715. (void) cached_has_bits;
  6716. // int32 radar0 = 1;
  6717. if (this->_internal_radar0() != 0) {
  6718. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_radar0());
  6719. }
  6720. // int32 radar1 = 2;
  6721. if (this->_internal_radar1() != 0) {
  6722. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_radar1());
  6723. }
  6724. // int32 radar2 = 3;
  6725. if (this->_internal_radar2() != 0) {
  6726. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_radar2());
  6727. }
  6728. // int32 radar3 = 4;
  6729. if (this->_internal_radar3() != 0) {
  6730. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_radar3());
  6731. }
  6732. // int32 radar4 = 5;
  6733. if (this->_internal_radar4() != 0) {
  6734. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_radar4());
  6735. }
  6736. // int32 radar5 = 6;
  6737. if (this->_internal_radar5() != 0) {
  6738. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_radar5());
  6739. }
  6740. // int32 radar6 = 7;
  6741. if (this->_internal_radar6() != 0) {
  6742. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_radar6());
  6743. }
  6744. // int32 radar7 = 8;
  6745. if (this->_internal_radar7() != 0) {
  6746. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_radar7());
  6747. }
  6748. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  6749. }
  6750. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CCRadarMessage::_class_data_ = {
  6751. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  6752. CCRadarMessage::MergeImpl
  6753. };
  6754. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CCRadarMessage::GetClassData() const { return &_class_data_; }
  6755. void CCRadarMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  6756. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  6757. static_cast<CCRadarMessage *>(to)->MergeFrom(
  6758. static_cast<const CCRadarMessage &>(from));
  6759. }
  6760. void CCRadarMessage::MergeFrom(const CCRadarMessage& from) {
  6761. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CCRadarMessage)
  6762. GOOGLE_DCHECK_NE(&from, this);
  6763. uint32_t cached_has_bits = 0;
  6764. (void) cached_has_bits;
  6765. if (from._internal_radar0() != 0) {
  6766. _internal_set_radar0(from._internal_radar0());
  6767. }
  6768. if (from._internal_radar1() != 0) {
  6769. _internal_set_radar1(from._internal_radar1());
  6770. }
  6771. if (from._internal_radar2() != 0) {
  6772. _internal_set_radar2(from._internal_radar2());
  6773. }
  6774. if (from._internal_radar3() != 0) {
  6775. _internal_set_radar3(from._internal_radar3());
  6776. }
  6777. if (from._internal_radar4() != 0) {
  6778. _internal_set_radar4(from._internal_radar4());
  6779. }
  6780. if (from._internal_radar5() != 0) {
  6781. _internal_set_radar5(from._internal_radar5());
  6782. }
  6783. if (from._internal_radar6() != 0) {
  6784. _internal_set_radar6(from._internal_radar6());
  6785. }
  6786. if (from._internal_radar7() != 0) {
  6787. _internal_set_radar7(from._internal_radar7());
  6788. }
  6789. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  6790. }
  6791. void CCRadarMessage::CopyFrom(const CCRadarMessage& from) {
  6792. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CCRadarMessage)
  6793. if (&from == this) return;
  6794. Clear();
  6795. MergeFrom(from);
  6796. }
  6797. bool CCRadarMessage::IsInitialized() const {
  6798. return true;
  6799. }
  6800. void CCRadarMessage::InternalSwap(CCRadarMessage* other) {
  6801. using std::swap;
  6802. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  6803. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  6804. PROTOBUF_FIELD_OFFSET(CCRadarMessage, radar7_)
  6805. + sizeof(CCRadarMessage::radar7_)
  6806. - PROTOBUF_FIELD_OFFSET(CCRadarMessage, radar0_)>(
  6807. reinterpret_cast<char*>(&radar0_),
  6808. reinterpret_cast<char*>(&other->radar0_));
  6809. }
  6810. ::PROTOBUF_NAMESPACE_ID::Metadata CCRadarMessage::GetMetadata() const {
  6811. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  6812. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  6813. file_level_metadata_protocol_2eproto[26]);
  6814. }
  6815. // ===================================================================
  6816. class CCRobotAnalog::_Internal {
  6817. public:
  6818. };
  6819. CCRobotAnalog::CCRobotAnalog(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  6820. bool is_message_owned)
  6821. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  6822. SharedCtor();
  6823. if (!is_message_owned) {
  6824. RegisterArenaDtor(arena);
  6825. }
  6826. // @@protoc_insertion_point(arena_constructor:RemoNet.CCRobotAnalog)
  6827. }
  6828. CCRobotAnalog::CCRobotAnalog(const CCRobotAnalog& from)
  6829. : ::PROTOBUF_NAMESPACE_ID::Message() {
  6830. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  6831. ::memcpy(&steer_, &from.steer_,
  6832. static_cast<size_t>(reinterpret_cast<char*>(&gears_d_) -
  6833. reinterpret_cast<char*>(&steer_)) + sizeof(gears_d_));
  6834. // @@protoc_insertion_point(copy_constructor:RemoNet.CCRobotAnalog)
  6835. }
  6836. inline void CCRobotAnalog::SharedCtor() {
  6837. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  6838. reinterpret_cast<char*>(&steer_) - reinterpret_cast<char*>(this)),
  6839. 0, static_cast<size_t>(reinterpret_cast<char*>(&gears_d_) -
  6840. reinterpret_cast<char*>(&steer_)) + sizeof(gears_d_));
  6841. }
  6842. CCRobotAnalog::~CCRobotAnalog() {
  6843. // @@protoc_insertion_point(destructor:RemoNet.CCRobotAnalog)
  6844. if (GetArenaForAllocation() != nullptr) return;
  6845. SharedDtor();
  6846. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  6847. }
  6848. inline void CCRobotAnalog::SharedDtor() {
  6849. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  6850. }
  6851. void CCRobotAnalog::ArenaDtor(void* object) {
  6852. CCRobotAnalog* _this = reinterpret_cast< CCRobotAnalog* >(object);
  6853. (void)_this;
  6854. }
  6855. void CCRobotAnalog::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  6856. }
  6857. void CCRobotAnalog::SetCachedSize(int size) const {
  6858. _cached_size_.Set(size);
  6859. }
  6860. void CCRobotAnalog::Clear() {
  6861. // @@protoc_insertion_point(message_clear_start:RemoNet.CCRobotAnalog)
  6862. uint32_t cached_has_bits = 0;
  6863. // Prevent compiler warnings about cached_has_bits being unused
  6864. (void) cached_has_bits;
  6865. ::memset(&steer_, 0, static_cast<size_t>(
  6866. reinterpret_cast<char*>(&gears_d_) -
  6867. reinterpret_cast<char*>(&steer_)) + sizeof(gears_d_));
  6868. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  6869. }
  6870. const char* CCRobotAnalog::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  6871. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  6872. while (!ctx->Done(&ptr)) {
  6873. uint32_t tag;
  6874. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  6875. switch (tag >> 3) {
  6876. // int32 steer = 1;
  6877. case 1:
  6878. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  6879. steer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6880. CHK_(ptr);
  6881. } else
  6882. goto handle_unusual;
  6883. continue;
  6884. // int32 arm = 2;
  6885. case 2:
  6886. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  6887. arm_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6888. CHK_(ptr);
  6889. } else
  6890. goto handle_unusual;
  6891. continue;
  6892. // int32 bucket = 3;
  6893. case 3:
  6894. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  6895. bucket_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6896. CHK_(ptr);
  6897. } else
  6898. goto handle_unusual;
  6899. continue;
  6900. // int32 throttle = 4;
  6901. case 4:
  6902. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
  6903. throttle_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6904. CHK_(ptr);
  6905. } else
  6906. goto handle_unusual;
  6907. continue;
  6908. // int32 brake = 5;
  6909. case 5:
  6910. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
  6911. brake_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6912. CHK_(ptr);
  6913. } else
  6914. goto handle_unusual;
  6915. continue;
  6916. // bool emergency = 8;
  6917. case 8:
  6918. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 64)) {
  6919. emergency_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  6920. CHK_(ptr);
  6921. } else
  6922. goto handle_unusual;
  6923. continue;
  6924. // bool resume = 9;
  6925. case 9:
  6926. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 72)) {
  6927. resume_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  6928. CHK_(ptr);
  6929. } else
  6930. goto handle_unusual;
  6931. continue;
  6932. // .RemoNet.Gears gears = 10;
  6933. case 10:
  6934. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 80)) {
  6935. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  6936. CHK_(ptr);
  6937. _internal_set_gears(static_cast<::RemoNet::Gears>(val));
  6938. } else
  6939. goto handle_unusual;
  6940. continue;
  6941. // bool frontlight = 11;
  6942. case 11:
  6943. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 88)) {
  6944. frontlight_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  6945. CHK_(ptr);
  6946. } else
  6947. goto handle_unusual;
  6948. continue;
  6949. // bool backlight = 12;
  6950. case 12:
  6951. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 96)) {
  6952. backlight_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  6953. CHK_(ptr);
  6954. } else
  6955. goto handle_unusual;
  6956. continue;
  6957. // bool wipe = 13;
  6958. case 13:
  6959. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 104)) {
  6960. wipe_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  6961. CHK_(ptr);
  6962. } else
  6963. goto handle_unusual;
  6964. continue;
  6965. // .RemoNet.DirectionLight directionlight = 14;
  6966. case 14:
  6967. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 112)) {
  6968. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  6969. CHK_(ptr);
  6970. _internal_set_directionlight(static_cast<::RemoNet::DirectionLight>(val));
  6971. } else
  6972. goto handle_unusual;
  6973. continue;
  6974. // bool buzzer = 15;
  6975. case 15:
  6976. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 120)) {
  6977. buzzer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  6978. CHK_(ptr);
  6979. } else
  6980. goto handle_unusual;
  6981. continue;
  6982. // .RemoNet.Gears_D gears_d = 16;
  6983. case 16:
  6984. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 128)) {
  6985. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  6986. CHK_(ptr);
  6987. _internal_set_gears_d(static_cast<::RemoNet::Gears_D>(val));
  6988. } else
  6989. goto handle_unusual;
  6990. continue;
  6991. default:
  6992. goto handle_unusual;
  6993. } // switch
  6994. handle_unusual:
  6995. if ((tag == 0) || ((tag & 7) == 4)) {
  6996. CHK_(ptr);
  6997. ctx->SetLastTag(tag);
  6998. goto message_done;
  6999. }
  7000. ptr = UnknownFieldParse(
  7001. tag,
  7002. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  7003. ptr, ctx);
  7004. CHK_(ptr != nullptr);
  7005. } // while
  7006. message_done:
  7007. return ptr;
  7008. failure:
  7009. ptr = nullptr;
  7010. goto message_done;
  7011. #undef CHK_
  7012. }
  7013. uint8_t* CCRobotAnalog::_InternalSerialize(
  7014. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  7015. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CCRobotAnalog)
  7016. uint32_t cached_has_bits = 0;
  7017. (void) cached_has_bits;
  7018. // int32 steer = 1;
  7019. if (this->_internal_steer() != 0) {
  7020. target = stream->EnsureSpace(target);
  7021. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_steer(), target);
  7022. }
  7023. // int32 arm = 2;
  7024. if (this->_internal_arm() != 0) {
  7025. target = stream->EnsureSpace(target);
  7026. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_arm(), target);
  7027. }
  7028. // int32 bucket = 3;
  7029. if (this->_internal_bucket() != 0) {
  7030. target = stream->EnsureSpace(target);
  7031. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_bucket(), target);
  7032. }
  7033. // int32 throttle = 4;
  7034. if (this->_internal_throttle() != 0) {
  7035. target = stream->EnsureSpace(target);
  7036. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_throttle(), target);
  7037. }
  7038. // int32 brake = 5;
  7039. if (this->_internal_brake() != 0) {
  7040. target = stream->EnsureSpace(target);
  7041. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(5, this->_internal_brake(), target);
  7042. }
  7043. // bool emergency = 8;
  7044. if (this->_internal_emergency() != 0) {
  7045. target = stream->EnsureSpace(target);
  7046. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(8, this->_internal_emergency(), target);
  7047. }
  7048. // bool resume = 9;
  7049. if (this->_internal_resume() != 0) {
  7050. target = stream->EnsureSpace(target);
  7051. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(9, this->_internal_resume(), target);
  7052. }
  7053. // .RemoNet.Gears gears = 10;
  7054. if (this->_internal_gears() != 0) {
  7055. target = stream->EnsureSpace(target);
  7056. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
  7057. 10, this->_internal_gears(), target);
  7058. }
  7059. // bool frontlight = 11;
  7060. if (this->_internal_frontlight() != 0) {
  7061. target = stream->EnsureSpace(target);
  7062. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(11, this->_internal_frontlight(), target);
  7063. }
  7064. // bool backlight = 12;
  7065. if (this->_internal_backlight() != 0) {
  7066. target = stream->EnsureSpace(target);
  7067. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(12, this->_internal_backlight(), target);
  7068. }
  7069. // bool wipe = 13;
  7070. if (this->_internal_wipe() != 0) {
  7071. target = stream->EnsureSpace(target);
  7072. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(13, this->_internal_wipe(), target);
  7073. }
  7074. // .RemoNet.DirectionLight directionlight = 14;
  7075. if (this->_internal_directionlight() != 0) {
  7076. target = stream->EnsureSpace(target);
  7077. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
  7078. 14, this->_internal_directionlight(), target);
  7079. }
  7080. // bool buzzer = 15;
  7081. if (this->_internal_buzzer() != 0) {
  7082. target = stream->EnsureSpace(target);
  7083. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(15, this->_internal_buzzer(), target);
  7084. }
  7085. // .RemoNet.Gears_D gears_d = 16;
  7086. if (this->_internal_gears_d() != 0) {
  7087. target = stream->EnsureSpace(target);
  7088. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
  7089. 16, this->_internal_gears_d(), target);
  7090. }
  7091. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  7092. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  7093. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  7094. }
  7095. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CCRobotAnalog)
  7096. return target;
  7097. }
  7098. size_t CCRobotAnalog::ByteSizeLong() const {
  7099. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CCRobotAnalog)
  7100. size_t total_size = 0;
  7101. uint32_t cached_has_bits = 0;
  7102. // Prevent compiler warnings about cached_has_bits being unused
  7103. (void) cached_has_bits;
  7104. // int32 steer = 1;
  7105. if (this->_internal_steer() != 0) {
  7106. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_steer());
  7107. }
  7108. // int32 arm = 2;
  7109. if (this->_internal_arm() != 0) {
  7110. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_arm());
  7111. }
  7112. // int32 bucket = 3;
  7113. if (this->_internal_bucket() != 0) {
  7114. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_bucket());
  7115. }
  7116. // int32 throttle = 4;
  7117. if (this->_internal_throttle() != 0) {
  7118. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_throttle());
  7119. }
  7120. // int32 brake = 5;
  7121. if (this->_internal_brake() != 0) {
  7122. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_brake());
  7123. }
  7124. // .RemoNet.Gears gears = 10;
  7125. if (this->_internal_gears() != 0) {
  7126. total_size += 1 +
  7127. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_gears());
  7128. }
  7129. // bool emergency = 8;
  7130. if (this->_internal_emergency() != 0) {
  7131. total_size += 1 + 1;
  7132. }
  7133. // bool resume = 9;
  7134. if (this->_internal_resume() != 0) {
  7135. total_size += 1 + 1;
  7136. }
  7137. // bool frontlight = 11;
  7138. if (this->_internal_frontlight() != 0) {
  7139. total_size += 1 + 1;
  7140. }
  7141. // bool backlight = 12;
  7142. if (this->_internal_backlight() != 0) {
  7143. total_size += 1 + 1;
  7144. }
  7145. // .RemoNet.DirectionLight directionlight = 14;
  7146. if (this->_internal_directionlight() != 0) {
  7147. total_size += 1 +
  7148. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_directionlight());
  7149. }
  7150. // bool wipe = 13;
  7151. if (this->_internal_wipe() != 0) {
  7152. total_size += 1 + 1;
  7153. }
  7154. // bool buzzer = 15;
  7155. if (this->_internal_buzzer() != 0) {
  7156. total_size += 1 + 1;
  7157. }
  7158. // .RemoNet.Gears_D gears_d = 16;
  7159. if (this->_internal_gears_d() != 0) {
  7160. total_size += 2 +
  7161. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_gears_d());
  7162. }
  7163. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  7164. }
  7165. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CCRobotAnalog::_class_data_ = {
  7166. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  7167. CCRobotAnalog::MergeImpl
  7168. };
  7169. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CCRobotAnalog::GetClassData() const { return &_class_data_; }
  7170. void CCRobotAnalog::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  7171. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  7172. static_cast<CCRobotAnalog *>(to)->MergeFrom(
  7173. static_cast<const CCRobotAnalog &>(from));
  7174. }
  7175. void CCRobotAnalog::MergeFrom(const CCRobotAnalog& from) {
  7176. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CCRobotAnalog)
  7177. GOOGLE_DCHECK_NE(&from, this);
  7178. uint32_t cached_has_bits = 0;
  7179. (void) cached_has_bits;
  7180. if (from._internal_steer() != 0) {
  7181. _internal_set_steer(from._internal_steer());
  7182. }
  7183. if (from._internal_arm() != 0) {
  7184. _internal_set_arm(from._internal_arm());
  7185. }
  7186. if (from._internal_bucket() != 0) {
  7187. _internal_set_bucket(from._internal_bucket());
  7188. }
  7189. if (from._internal_throttle() != 0) {
  7190. _internal_set_throttle(from._internal_throttle());
  7191. }
  7192. if (from._internal_brake() != 0) {
  7193. _internal_set_brake(from._internal_brake());
  7194. }
  7195. if (from._internal_gears() != 0) {
  7196. _internal_set_gears(from._internal_gears());
  7197. }
  7198. if (from._internal_emergency() != 0) {
  7199. _internal_set_emergency(from._internal_emergency());
  7200. }
  7201. if (from._internal_resume() != 0) {
  7202. _internal_set_resume(from._internal_resume());
  7203. }
  7204. if (from._internal_frontlight() != 0) {
  7205. _internal_set_frontlight(from._internal_frontlight());
  7206. }
  7207. if (from._internal_backlight() != 0) {
  7208. _internal_set_backlight(from._internal_backlight());
  7209. }
  7210. if (from._internal_directionlight() != 0) {
  7211. _internal_set_directionlight(from._internal_directionlight());
  7212. }
  7213. if (from._internal_wipe() != 0) {
  7214. _internal_set_wipe(from._internal_wipe());
  7215. }
  7216. if (from._internal_buzzer() != 0) {
  7217. _internal_set_buzzer(from._internal_buzzer());
  7218. }
  7219. if (from._internal_gears_d() != 0) {
  7220. _internal_set_gears_d(from._internal_gears_d());
  7221. }
  7222. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  7223. }
  7224. void CCRobotAnalog::CopyFrom(const CCRobotAnalog& from) {
  7225. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CCRobotAnalog)
  7226. if (&from == this) return;
  7227. Clear();
  7228. MergeFrom(from);
  7229. }
  7230. bool CCRobotAnalog::IsInitialized() const {
  7231. return true;
  7232. }
  7233. void CCRobotAnalog::InternalSwap(CCRobotAnalog* other) {
  7234. using std::swap;
  7235. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  7236. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  7237. PROTOBUF_FIELD_OFFSET(CCRobotAnalog, gears_d_)
  7238. + sizeof(CCRobotAnalog::gears_d_)
  7239. - PROTOBUF_FIELD_OFFSET(CCRobotAnalog, steer_)>(
  7240. reinterpret_cast<char*>(&steer_),
  7241. reinterpret_cast<char*>(&other->steer_));
  7242. }
  7243. ::PROTOBUF_NAMESPACE_ID::Metadata CCRobotAnalog::GetMetadata() const {
  7244. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  7245. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  7246. file_level_metadata_protocol_2eproto[27]);
  7247. }
  7248. // ===================================================================
  7249. class CCBootStrapReq::_Internal {
  7250. public:
  7251. };
  7252. CCBootStrapReq::CCBootStrapReq(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  7253. bool is_message_owned)
  7254. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) {
  7255. // @@protoc_insertion_point(arena_constructor:RemoNet.CCBootStrapReq)
  7256. }
  7257. CCBootStrapReq::CCBootStrapReq(const CCBootStrapReq& from)
  7258. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() {
  7259. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  7260. // @@protoc_insertion_point(copy_constructor:RemoNet.CCBootStrapReq)
  7261. }
  7262. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CCBootStrapReq::_class_data_ = {
  7263. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl,
  7264. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl,
  7265. };
  7266. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CCBootStrapReq::GetClassData() const { return &_class_data_; }
  7267. ::PROTOBUF_NAMESPACE_ID::Metadata CCBootStrapReq::GetMetadata() const {
  7268. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  7269. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  7270. file_level_metadata_protocol_2eproto[28]);
  7271. }
  7272. // ===================================================================
  7273. class CCBooStrapRep::_Internal {
  7274. public:
  7275. };
  7276. CCBooStrapRep::CCBooStrapRep(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  7277. bool is_message_owned)
  7278. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  7279. SharedCtor();
  7280. if (!is_message_owned) {
  7281. RegisterArenaDtor(arena);
  7282. }
  7283. // @@protoc_insertion_point(arena_constructor:RemoNet.CCBooStrapRep)
  7284. }
  7285. CCBooStrapRep::CCBooStrapRep(const CCBooStrapRep& from)
  7286. : ::PROTOBUF_NAMESPACE_ID::Message() {
  7287. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  7288. ret_ = from.ret_;
  7289. // @@protoc_insertion_point(copy_constructor:RemoNet.CCBooStrapRep)
  7290. }
  7291. inline void CCBooStrapRep::SharedCtor() {
  7292. ret_ = false;
  7293. }
  7294. CCBooStrapRep::~CCBooStrapRep() {
  7295. // @@protoc_insertion_point(destructor:RemoNet.CCBooStrapRep)
  7296. if (GetArenaForAllocation() != nullptr) return;
  7297. SharedDtor();
  7298. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  7299. }
  7300. inline void CCBooStrapRep::SharedDtor() {
  7301. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  7302. }
  7303. void CCBooStrapRep::ArenaDtor(void* object) {
  7304. CCBooStrapRep* _this = reinterpret_cast< CCBooStrapRep* >(object);
  7305. (void)_this;
  7306. }
  7307. void CCBooStrapRep::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  7308. }
  7309. void CCBooStrapRep::SetCachedSize(int size) const {
  7310. _cached_size_.Set(size);
  7311. }
  7312. void CCBooStrapRep::Clear() {
  7313. // @@protoc_insertion_point(message_clear_start:RemoNet.CCBooStrapRep)
  7314. uint32_t cached_has_bits = 0;
  7315. // Prevent compiler warnings about cached_has_bits being unused
  7316. (void) cached_has_bits;
  7317. ret_ = false;
  7318. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  7319. }
  7320. const char* CCBooStrapRep::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  7321. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  7322. while (!ctx->Done(&ptr)) {
  7323. uint32_t tag;
  7324. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  7325. switch (tag >> 3) {
  7326. // bool ret = 1;
  7327. case 1:
  7328. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  7329. ret_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  7330. CHK_(ptr);
  7331. } else
  7332. goto handle_unusual;
  7333. continue;
  7334. default:
  7335. goto handle_unusual;
  7336. } // switch
  7337. handle_unusual:
  7338. if ((tag == 0) || ((tag & 7) == 4)) {
  7339. CHK_(ptr);
  7340. ctx->SetLastTag(tag);
  7341. goto message_done;
  7342. }
  7343. ptr = UnknownFieldParse(
  7344. tag,
  7345. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  7346. ptr, ctx);
  7347. CHK_(ptr != nullptr);
  7348. } // while
  7349. message_done:
  7350. return ptr;
  7351. failure:
  7352. ptr = nullptr;
  7353. goto message_done;
  7354. #undef CHK_
  7355. }
  7356. uint8_t* CCBooStrapRep::_InternalSerialize(
  7357. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  7358. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CCBooStrapRep)
  7359. uint32_t cached_has_bits = 0;
  7360. (void) cached_has_bits;
  7361. // bool ret = 1;
  7362. if (this->_internal_ret() != 0) {
  7363. target = stream->EnsureSpace(target);
  7364. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_ret(), target);
  7365. }
  7366. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  7367. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  7368. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  7369. }
  7370. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CCBooStrapRep)
  7371. return target;
  7372. }
  7373. size_t CCBooStrapRep::ByteSizeLong() const {
  7374. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CCBooStrapRep)
  7375. size_t total_size = 0;
  7376. uint32_t cached_has_bits = 0;
  7377. // Prevent compiler warnings about cached_has_bits being unused
  7378. (void) cached_has_bits;
  7379. // bool ret = 1;
  7380. if (this->_internal_ret() != 0) {
  7381. total_size += 1 + 1;
  7382. }
  7383. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  7384. }
  7385. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CCBooStrapRep::_class_data_ = {
  7386. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  7387. CCBooStrapRep::MergeImpl
  7388. };
  7389. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CCBooStrapRep::GetClassData() const { return &_class_data_; }
  7390. void CCBooStrapRep::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  7391. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  7392. static_cast<CCBooStrapRep *>(to)->MergeFrom(
  7393. static_cast<const CCBooStrapRep &>(from));
  7394. }
  7395. void CCBooStrapRep::MergeFrom(const CCBooStrapRep& from) {
  7396. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CCBooStrapRep)
  7397. GOOGLE_DCHECK_NE(&from, this);
  7398. uint32_t cached_has_bits = 0;
  7399. (void) cached_has_bits;
  7400. if (from._internal_ret() != 0) {
  7401. _internal_set_ret(from._internal_ret());
  7402. }
  7403. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  7404. }
  7405. void CCBooStrapRep::CopyFrom(const CCBooStrapRep& from) {
  7406. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CCBooStrapRep)
  7407. if (&from == this) return;
  7408. Clear();
  7409. MergeFrom(from);
  7410. }
  7411. bool CCBooStrapRep::IsInitialized() const {
  7412. return true;
  7413. }
  7414. void CCBooStrapRep::InternalSwap(CCBooStrapRep* other) {
  7415. using std::swap;
  7416. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  7417. swap(ret_, other->ret_);
  7418. }
  7419. ::PROTOBUF_NAMESPACE_ID::Metadata CCBooStrapRep::GetMetadata() const {
  7420. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  7421. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  7422. file_level_metadata_protocol_2eproto[29]);
  7423. }
  7424. // ===================================================================
  7425. class CCStartupReq::_Internal {
  7426. public:
  7427. };
  7428. CCStartupReq::CCStartupReq(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  7429. bool is_message_owned)
  7430. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) {
  7431. // @@protoc_insertion_point(arena_constructor:RemoNet.CCStartupReq)
  7432. }
  7433. CCStartupReq::CCStartupReq(const CCStartupReq& from)
  7434. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() {
  7435. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  7436. // @@protoc_insertion_point(copy_constructor:RemoNet.CCStartupReq)
  7437. }
  7438. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CCStartupReq::_class_data_ = {
  7439. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl,
  7440. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl,
  7441. };
  7442. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CCStartupReq::GetClassData() const { return &_class_data_; }
  7443. ::PROTOBUF_NAMESPACE_ID::Metadata CCStartupReq::GetMetadata() const {
  7444. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  7445. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  7446. file_level_metadata_protocol_2eproto[30]);
  7447. }
  7448. // ===================================================================
  7449. class CCStartupRep::_Internal {
  7450. public:
  7451. };
  7452. CCStartupRep::CCStartupRep(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  7453. bool is_message_owned)
  7454. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  7455. SharedCtor();
  7456. if (!is_message_owned) {
  7457. RegisterArenaDtor(arena);
  7458. }
  7459. // @@protoc_insertion_point(arena_constructor:RemoNet.CCStartupRep)
  7460. }
  7461. CCStartupRep::CCStartupRep(const CCStartupRep& from)
  7462. : ::PROTOBUF_NAMESPACE_ID::Message() {
  7463. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  7464. ret_ = from.ret_;
  7465. // @@protoc_insertion_point(copy_constructor:RemoNet.CCStartupRep)
  7466. }
  7467. inline void CCStartupRep::SharedCtor() {
  7468. ret_ = false;
  7469. }
  7470. CCStartupRep::~CCStartupRep() {
  7471. // @@protoc_insertion_point(destructor:RemoNet.CCStartupRep)
  7472. if (GetArenaForAllocation() != nullptr) return;
  7473. SharedDtor();
  7474. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  7475. }
  7476. inline void CCStartupRep::SharedDtor() {
  7477. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  7478. }
  7479. void CCStartupRep::ArenaDtor(void* object) {
  7480. CCStartupRep* _this = reinterpret_cast< CCStartupRep* >(object);
  7481. (void)_this;
  7482. }
  7483. void CCStartupRep::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  7484. }
  7485. void CCStartupRep::SetCachedSize(int size) const {
  7486. _cached_size_.Set(size);
  7487. }
  7488. void CCStartupRep::Clear() {
  7489. // @@protoc_insertion_point(message_clear_start:RemoNet.CCStartupRep)
  7490. uint32_t cached_has_bits = 0;
  7491. // Prevent compiler warnings about cached_has_bits being unused
  7492. (void) cached_has_bits;
  7493. ret_ = false;
  7494. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  7495. }
  7496. const char* CCStartupRep::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  7497. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  7498. while (!ctx->Done(&ptr)) {
  7499. uint32_t tag;
  7500. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  7501. switch (tag >> 3) {
  7502. // bool ret = 1;
  7503. case 1:
  7504. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  7505. ret_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  7506. CHK_(ptr);
  7507. } else
  7508. goto handle_unusual;
  7509. continue;
  7510. default:
  7511. goto handle_unusual;
  7512. } // switch
  7513. handle_unusual:
  7514. if ((tag == 0) || ((tag & 7) == 4)) {
  7515. CHK_(ptr);
  7516. ctx->SetLastTag(tag);
  7517. goto message_done;
  7518. }
  7519. ptr = UnknownFieldParse(
  7520. tag,
  7521. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  7522. ptr, ctx);
  7523. CHK_(ptr != nullptr);
  7524. } // while
  7525. message_done:
  7526. return ptr;
  7527. failure:
  7528. ptr = nullptr;
  7529. goto message_done;
  7530. #undef CHK_
  7531. }
  7532. uint8_t* CCStartupRep::_InternalSerialize(
  7533. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  7534. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CCStartupRep)
  7535. uint32_t cached_has_bits = 0;
  7536. (void) cached_has_bits;
  7537. // bool ret = 1;
  7538. if (this->_internal_ret() != 0) {
  7539. target = stream->EnsureSpace(target);
  7540. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_ret(), target);
  7541. }
  7542. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  7543. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  7544. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  7545. }
  7546. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CCStartupRep)
  7547. return target;
  7548. }
  7549. size_t CCStartupRep::ByteSizeLong() const {
  7550. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CCStartupRep)
  7551. size_t total_size = 0;
  7552. uint32_t cached_has_bits = 0;
  7553. // Prevent compiler warnings about cached_has_bits being unused
  7554. (void) cached_has_bits;
  7555. // bool ret = 1;
  7556. if (this->_internal_ret() != 0) {
  7557. total_size += 1 + 1;
  7558. }
  7559. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  7560. }
  7561. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CCStartupRep::_class_data_ = {
  7562. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  7563. CCStartupRep::MergeImpl
  7564. };
  7565. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CCStartupRep::GetClassData() const { return &_class_data_; }
  7566. void CCStartupRep::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  7567. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  7568. static_cast<CCStartupRep *>(to)->MergeFrom(
  7569. static_cast<const CCStartupRep &>(from));
  7570. }
  7571. void CCStartupRep::MergeFrom(const CCStartupRep& from) {
  7572. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CCStartupRep)
  7573. GOOGLE_DCHECK_NE(&from, this);
  7574. uint32_t cached_has_bits = 0;
  7575. (void) cached_has_bits;
  7576. if (from._internal_ret() != 0) {
  7577. _internal_set_ret(from._internal_ret());
  7578. }
  7579. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  7580. }
  7581. void CCStartupRep::CopyFrom(const CCStartupRep& from) {
  7582. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CCStartupRep)
  7583. if (&from == this) return;
  7584. Clear();
  7585. MergeFrom(from);
  7586. }
  7587. bool CCStartupRep::IsInitialized() const {
  7588. return true;
  7589. }
  7590. void CCStartupRep::InternalSwap(CCStartupRep* other) {
  7591. using std::swap;
  7592. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  7593. swap(ret_, other->ret_);
  7594. }
  7595. ::PROTOBUF_NAMESPACE_ID::Metadata CCStartupRep::GetMetadata() const {
  7596. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  7597. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  7598. file_level_metadata_protocol_2eproto[31]);
  7599. }
  7600. // ===================================================================
  7601. class CCSwitch::_Internal {
  7602. public:
  7603. };
  7604. CCSwitch::CCSwitch(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  7605. bool is_message_owned)
  7606. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  7607. SharedCtor();
  7608. if (!is_message_owned) {
  7609. RegisterArenaDtor(arena);
  7610. }
  7611. // @@protoc_insertion_point(arena_constructor:RemoNet.CCSwitch)
  7612. }
  7613. CCSwitch::CCSwitch(const CCSwitch& from)
  7614. : ::PROTOBUF_NAMESPACE_ID::Message() {
  7615. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  7616. front_ = from.front_;
  7617. // @@protoc_insertion_point(copy_constructor:RemoNet.CCSwitch)
  7618. }
  7619. inline void CCSwitch::SharedCtor() {
  7620. front_ = false;
  7621. }
  7622. CCSwitch::~CCSwitch() {
  7623. // @@protoc_insertion_point(destructor:RemoNet.CCSwitch)
  7624. if (GetArenaForAllocation() != nullptr) return;
  7625. SharedDtor();
  7626. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  7627. }
  7628. inline void CCSwitch::SharedDtor() {
  7629. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  7630. }
  7631. void CCSwitch::ArenaDtor(void* object) {
  7632. CCSwitch* _this = reinterpret_cast< CCSwitch* >(object);
  7633. (void)_this;
  7634. }
  7635. void CCSwitch::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  7636. }
  7637. void CCSwitch::SetCachedSize(int size) const {
  7638. _cached_size_.Set(size);
  7639. }
  7640. void CCSwitch::Clear() {
  7641. // @@protoc_insertion_point(message_clear_start:RemoNet.CCSwitch)
  7642. uint32_t cached_has_bits = 0;
  7643. // Prevent compiler warnings about cached_has_bits being unused
  7644. (void) cached_has_bits;
  7645. front_ = false;
  7646. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  7647. }
  7648. const char* CCSwitch::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  7649. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  7650. while (!ctx->Done(&ptr)) {
  7651. uint32_t tag;
  7652. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  7653. switch (tag >> 3) {
  7654. // bool front = 1;
  7655. case 1:
  7656. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  7657. front_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  7658. CHK_(ptr);
  7659. } else
  7660. goto handle_unusual;
  7661. continue;
  7662. default:
  7663. goto handle_unusual;
  7664. } // switch
  7665. handle_unusual:
  7666. if ((tag == 0) || ((tag & 7) == 4)) {
  7667. CHK_(ptr);
  7668. ctx->SetLastTag(tag);
  7669. goto message_done;
  7670. }
  7671. ptr = UnknownFieldParse(
  7672. tag,
  7673. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  7674. ptr, ctx);
  7675. CHK_(ptr != nullptr);
  7676. } // while
  7677. message_done:
  7678. return ptr;
  7679. failure:
  7680. ptr = nullptr;
  7681. goto message_done;
  7682. #undef CHK_
  7683. }
  7684. uint8_t* CCSwitch::_InternalSerialize(
  7685. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  7686. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CCSwitch)
  7687. uint32_t cached_has_bits = 0;
  7688. (void) cached_has_bits;
  7689. // bool front = 1;
  7690. if (this->_internal_front() != 0) {
  7691. target = stream->EnsureSpace(target);
  7692. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_front(), target);
  7693. }
  7694. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  7695. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  7696. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  7697. }
  7698. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CCSwitch)
  7699. return target;
  7700. }
  7701. size_t CCSwitch::ByteSizeLong() const {
  7702. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CCSwitch)
  7703. size_t total_size = 0;
  7704. uint32_t cached_has_bits = 0;
  7705. // Prevent compiler warnings about cached_has_bits being unused
  7706. (void) cached_has_bits;
  7707. // bool front = 1;
  7708. if (this->_internal_front() != 0) {
  7709. total_size += 1 + 1;
  7710. }
  7711. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  7712. }
  7713. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CCSwitch::_class_data_ = {
  7714. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  7715. CCSwitch::MergeImpl
  7716. };
  7717. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CCSwitch::GetClassData() const { return &_class_data_; }
  7718. void CCSwitch::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  7719. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  7720. static_cast<CCSwitch *>(to)->MergeFrom(
  7721. static_cast<const CCSwitch &>(from));
  7722. }
  7723. void CCSwitch::MergeFrom(const CCSwitch& from) {
  7724. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CCSwitch)
  7725. GOOGLE_DCHECK_NE(&from, this);
  7726. uint32_t cached_has_bits = 0;
  7727. (void) cached_has_bits;
  7728. if (from._internal_front() != 0) {
  7729. _internal_set_front(from._internal_front());
  7730. }
  7731. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  7732. }
  7733. void CCSwitch::CopyFrom(const CCSwitch& from) {
  7734. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CCSwitch)
  7735. if (&from == this) return;
  7736. Clear();
  7737. MergeFrom(from);
  7738. }
  7739. bool CCSwitch::IsInitialized() const {
  7740. return true;
  7741. }
  7742. void CCSwitch::InternalSwap(CCSwitch* other) {
  7743. using std::swap;
  7744. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  7745. swap(front_, other->front_);
  7746. }
  7747. ::PROTOBUF_NAMESPACE_ID::Metadata CCSwitch::GetMetadata() const {
  7748. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  7749. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  7750. file_level_metadata_protocol_2eproto[32]);
  7751. }
  7752. // ===================================================================
  7753. class LidarPoint::_Internal {
  7754. public:
  7755. using HasBits = decltype(std::declval<LidarPoint>()._has_bits_);
  7756. static void set_has_timestamp(HasBits* has_bits) {
  7757. (*has_bits)[0] |= 2u;
  7758. }
  7759. static void set_has_seq(HasBits* has_bits) {
  7760. (*has_bits)[0] |= 4u;
  7761. }
  7762. static void set_has_frame_id(HasBits* has_bits) {
  7763. (*has_bits)[0] |= 1u;
  7764. }
  7765. static void set_has_height(HasBits* has_bits) {
  7766. (*has_bits)[0] |= 8u;
  7767. }
  7768. static void set_has_width(HasBits* has_bits) {
  7769. (*has_bits)[0] |= 16u;
  7770. }
  7771. static void set_has_is_dense(HasBits* has_bits) {
  7772. (*has_bits)[0] |= 32u;
  7773. }
  7774. static void set_has_is_left(HasBits* has_bits) {
  7775. (*has_bits)[0] |= 64u;
  7776. }
  7777. };
  7778. LidarPoint::LidarPoint(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  7779. bool is_message_owned)
  7780. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
  7781. data_(arena) {
  7782. SharedCtor();
  7783. if (!is_message_owned) {
  7784. RegisterArenaDtor(arena);
  7785. }
  7786. // @@protoc_insertion_point(arena_constructor:RemoNet.LidarPoint)
  7787. }
  7788. LidarPoint::LidarPoint(const LidarPoint& from)
  7789. : ::PROTOBUF_NAMESPACE_ID::Message(),
  7790. _has_bits_(from._has_bits_),
  7791. data_(from.data_) {
  7792. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  7793. frame_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7794. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  7795. frame_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  7796. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  7797. if (from._internal_has_frame_id()) {
  7798. frame_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_frame_id(),
  7799. GetArenaForAllocation());
  7800. }
  7801. ::memcpy(&timestamp_, &from.timestamp_,
  7802. static_cast<size_t>(reinterpret_cast<char*>(&is_left_) -
  7803. reinterpret_cast<char*>(&timestamp_)) + sizeof(is_left_));
  7804. // @@protoc_insertion_point(copy_constructor:RemoNet.LidarPoint)
  7805. }
  7806. inline void LidarPoint::SharedCtor() {
  7807. frame_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7808. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  7809. frame_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  7810. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  7811. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  7812. reinterpret_cast<char*>(&timestamp_) - reinterpret_cast<char*>(this)),
  7813. 0, static_cast<size_t>(reinterpret_cast<char*>(&is_left_) -
  7814. reinterpret_cast<char*>(&timestamp_)) + sizeof(is_left_));
  7815. }
  7816. LidarPoint::~LidarPoint() {
  7817. // @@protoc_insertion_point(destructor:RemoNet.LidarPoint)
  7818. if (GetArenaForAllocation() != nullptr) return;
  7819. SharedDtor();
  7820. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  7821. }
  7822. inline void LidarPoint::SharedDtor() {
  7823. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  7824. frame_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7825. }
  7826. void LidarPoint::ArenaDtor(void* object) {
  7827. LidarPoint* _this = reinterpret_cast< LidarPoint* >(object);
  7828. (void)_this;
  7829. }
  7830. void LidarPoint::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  7831. }
  7832. void LidarPoint::SetCachedSize(int size) const {
  7833. _cached_size_.Set(size);
  7834. }
  7835. void LidarPoint::Clear() {
  7836. // @@protoc_insertion_point(message_clear_start:RemoNet.LidarPoint)
  7837. uint32_t cached_has_bits = 0;
  7838. // Prevent compiler warnings about cached_has_bits being unused
  7839. (void) cached_has_bits;
  7840. data_.Clear();
  7841. cached_has_bits = _has_bits_[0];
  7842. if (cached_has_bits & 0x00000001u) {
  7843. frame_id_.ClearNonDefaultToEmpty();
  7844. }
  7845. if (cached_has_bits & 0x0000007eu) {
  7846. ::memset(&timestamp_, 0, static_cast<size_t>(
  7847. reinterpret_cast<char*>(&is_left_) -
  7848. reinterpret_cast<char*>(&timestamp_)) + sizeof(is_left_));
  7849. }
  7850. _has_bits_.Clear();
  7851. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  7852. }
  7853. const char* LidarPoint::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  7854. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  7855. _Internal::HasBits has_bits{};
  7856. while (!ctx->Done(&ptr)) {
  7857. uint32_t tag;
  7858. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  7859. switch (tag >> 3) {
  7860. // optional double timestamp = 1;
  7861. case 1:
  7862. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 9)) {
  7863. _Internal::set_has_timestamp(&has_bits);
  7864. timestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  7865. ptr += sizeof(double);
  7866. } else
  7867. goto handle_unusual;
  7868. continue;
  7869. // optional uint32 seq = 2;
  7870. case 2:
  7871. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  7872. _Internal::set_has_seq(&has_bits);
  7873. seq_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  7874. CHK_(ptr);
  7875. } else
  7876. goto handle_unusual;
  7877. continue;
  7878. // optional string frame_id = 3;
  7879. case 3:
  7880. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
  7881. auto str = _internal_mutable_frame_id();
  7882. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  7883. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.LidarPoint.frame_id"));
  7884. CHK_(ptr);
  7885. } else
  7886. goto handle_unusual;
  7887. continue;
  7888. // optional uint32 height = 4;
  7889. case 4:
  7890. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
  7891. _Internal::set_has_height(&has_bits);
  7892. height_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  7893. CHK_(ptr);
  7894. } else
  7895. goto handle_unusual;
  7896. continue;
  7897. // optional uint32 width = 5;
  7898. case 5:
  7899. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
  7900. _Internal::set_has_width(&has_bits);
  7901. width_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  7902. CHK_(ptr);
  7903. } else
  7904. goto handle_unusual;
  7905. continue;
  7906. // optional bool is_dense = 6;
  7907. case 6:
  7908. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 48)) {
  7909. _Internal::set_has_is_dense(&has_bits);
  7910. is_dense_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  7911. CHK_(ptr);
  7912. } else
  7913. goto handle_unusual;
  7914. continue;
  7915. // optional bool is_left = 7;
  7916. case 7:
  7917. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56)) {
  7918. _Internal::set_has_is_left(&has_bits);
  7919. is_left_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  7920. CHK_(ptr);
  7921. } else
  7922. goto handle_unusual;
  7923. continue;
  7924. // repeated float data = 8;
  7925. case 8:
  7926. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 66)) {
  7927. ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedFloatParser(_internal_mutable_data(), ptr, ctx);
  7928. CHK_(ptr);
  7929. } else if (static_cast<uint8_t>(tag) == 69) {
  7930. _internal_add_data(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr));
  7931. ptr += sizeof(float);
  7932. } else
  7933. goto handle_unusual;
  7934. continue;
  7935. default:
  7936. goto handle_unusual;
  7937. } // switch
  7938. handle_unusual:
  7939. if ((tag == 0) || ((tag & 7) == 4)) {
  7940. CHK_(ptr);
  7941. ctx->SetLastTag(tag);
  7942. goto message_done;
  7943. }
  7944. ptr = UnknownFieldParse(
  7945. tag,
  7946. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  7947. ptr, ctx);
  7948. CHK_(ptr != nullptr);
  7949. } // while
  7950. message_done:
  7951. _has_bits_.Or(has_bits);
  7952. return ptr;
  7953. failure:
  7954. ptr = nullptr;
  7955. goto message_done;
  7956. #undef CHK_
  7957. }
  7958. uint8_t* LidarPoint::_InternalSerialize(
  7959. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  7960. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.LidarPoint)
  7961. uint32_t cached_has_bits = 0;
  7962. (void) cached_has_bits;
  7963. // optional double timestamp = 1;
  7964. if (_internal_has_timestamp()) {
  7965. target = stream->EnsureSpace(target);
  7966. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(1, this->_internal_timestamp(), target);
  7967. }
  7968. // optional uint32 seq = 2;
  7969. if (_internal_has_seq()) {
  7970. target = stream->EnsureSpace(target);
  7971. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_seq(), target);
  7972. }
  7973. // optional string frame_id = 3;
  7974. if (_internal_has_frame_id()) {
  7975. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  7976. this->_internal_frame_id().data(), static_cast<int>(this->_internal_frame_id().length()),
  7977. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  7978. "RemoNet.LidarPoint.frame_id");
  7979. target = stream->WriteStringMaybeAliased(
  7980. 3, this->_internal_frame_id(), target);
  7981. }
  7982. // optional uint32 height = 4;
  7983. if (_internal_has_height()) {
  7984. target = stream->EnsureSpace(target);
  7985. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(4, this->_internal_height(), target);
  7986. }
  7987. // optional uint32 width = 5;
  7988. if (_internal_has_width()) {
  7989. target = stream->EnsureSpace(target);
  7990. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(5, this->_internal_width(), target);
  7991. }
  7992. // optional bool is_dense = 6;
  7993. if (_internal_has_is_dense()) {
  7994. target = stream->EnsureSpace(target);
  7995. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(6, this->_internal_is_dense(), target);
  7996. }
  7997. // optional bool is_left = 7;
  7998. if (_internal_has_is_left()) {
  7999. target = stream->EnsureSpace(target);
  8000. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(7, this->_internal_is_left(), target);
  8001. }
  8002. // repeated float data = 8;
  8003. if (this->_internal_data_size() > 0) {
  8004. target = stream->WriteFixedPacked(8, _internal_data(), target);
  8005. }
  8006. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  8007. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  8008. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  8009. }
  8010. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.LidarPoint)
  8011. return target;
  8012. }
  8013. size_t LidarPoint::ByteSizeLong() const {
  8014. // @@protoc_insertion_point(message_byte_size_start:RemoNet.LidarPoint)
  8015. size_t total_size = 0;
  8016. uint32_t cached_has_bits = 0;
  8017. // Prevent compiler warnings about cached_has_bits being unused
  8018. (void) cached_has_bits;
  8019. // repeated float data = 8;
  8020. {
  8021. unsigned int count = static_cast<unsigned int>(this->_internal_data_size());
  8022. size_t data_size = 4UL * count;
  8023. if (data_size > 0) {
  8024. total_size += 1 +
  8025. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  8026. static_cast<int32_t>(data_size));
  8027. }
  8028. total_size += data_size;
  8029. }
  8030. cached_has_bits = _has_bits_[0];
  8031. if (cached_has_bits & 0x0000007fu) {
  8032. // optional string frame_id = 3;
  8033. if (cached_has_bits & 0x00000001u) {
  8034. total_size += 1 +
  8035. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  8036. this->_internal_frame_id());
  8037. }
  8038. // optional double timestamp = 1;
  8039. if (cached_has_bits & 0x00000002u) {
  8040. total_size += 1 + 8;
  8041. }
  8042. // optional uint32 seq = 2;
  8043. if (cached_has_bits & 0x00000004u) {
  8044. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_seq());
  8045. }
  8046. // optional uint32 height = 4;
  8047. if (cached_has_bits & 0x00000008u) {
  8048. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_height());
  8049. }
  8050. // optional uint32 width = 5;
  8051. if (cached_has_bits & 0x00000010u) {
  8052. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_width());
  8053. }
  8054. // optional bool is_dense = 6;
  8055. if (cached_has_bits & 0x00000020u) {
  8056. total_size += 1 + 1;
  8057. }
  8058. // optional bool is_left = 7;
  8059. if (cached_has_bits & 0x00000040u) {
  8060. total_size += 1 + 1;
  8061. }
  8062. }
  8063. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  8064. }
  8065. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData LidarPoint::_class_data_ = {
  8066. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  8067. LidarPoint::MergeImpl
  8068. };
  8069. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*LidarPoint::GetClassData() const { return &_class_data_; }
  8070. void LidarPoint::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  8071. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  8072. static_cast<LidarPoint *>(to)->MergeFrom(
  8073. static_cast<const LidarPoint &>(from));
  8074. }
  8075. void LidarPoint::MergeFrom(const LidarPoint& from) {
  8076. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.LidarPoint)
  8077. GOOGLE_DCHECK_NE(&from, this);
  8078. uint32_t cached_has_bits = 0;
  8079. (void) cached_has_bits;
  8080. data_.MergeFrom(from.data_);
  8081. cached_has_bits = from._has_bits_[0];
  8082. if (cached_has_bits & 0x0000007fu) {
  8083. if (cached_has_bits & 0x00000001u) {
  8084. _internal_set_frame_id(from._internal_frame_id());
  8085. }
  8086. if (cached_has_bits & 0x00000002u) {
  8087. timestamp_ = from.timestamp_;
  8088. }
  8089. if (cached_has_bits & 0x00000004u) {
  8090. seq_ = from.seq_;
  8091. }
  8092. if (cached_has_bits & 0x00000008u) {
  8093. height_ = from.height_;
  8094. }
  8095. if (cached_has_bits & 0x00000010u) {
  8096. width_ = from.width_;
  8097. }
  8098. if (cached_has_bits & 0x00000020u) {
  8099. is_dense_ = from.is_dense_;
  8100. }
  8101. if (cached_has_bits & 0x00000040u) {
  8102. is_left_ = from.is_left_;
  8103. }
  8104. _has_bits_[0] |= cached_has_bits;
  8105. }
  8106. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  8107. }
  8108. void LidarPoint::CopyFrom(const LidarPoint& from) {
  8109. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.LidarPoint)
  8110. if (&from == this) return;
  8111. Clear();
  8112. MergeFrom(from);
  8113. }
  8114. bool LidarPoint::IsInitialized() const {
  8115. return true;
  8116. }
  8117. void LidarPoint::InternalSwap(LidarPoint* other) {
  8118. using std::swap;
  8119. auto* lhs_arena = GetArenaForAllocation();
  8120. auto* rhs_arena = other->GetArenaForAllocation();
  8121. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  8122. swap(_has_bits_[0], other->_has_bits_[0]);
  8123. data_.InternalSwap(&other->data_);
  8124. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  8125. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  8126. &frame_id_, lhs_arena,
  8127. &other->frame_id_, rhs_arena
  8128. );
  8129. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  8130. PROTOBUF_FIELD_OFFSET(LidarPoint, is_left_)
  8131. + sizeof(LidarPoint::is_left_)
  8132. - PROTOBUF_FIELD_OFFSET(LidarPoint, timestamp_)>(
  8133. reinterpret_cast<char*>(&timestamp_),
  8134. reinterpret_cast<char*>(&other->timestamp_));
  8135. }
  8136. ::PROTOBUF_NAMESPACE_ID::Metadata LidarPoint::GetMetadata() const {
  8137. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  8138. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  8139. file_level_metadata_protocol_2eproto[33]);
  8140. }
  8141. // ===================================================================
  8142. class SensorStop::_Internal {
  8143. public:
  8144. };
  8145. SensorStop::SensorStop(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  8146. bool is_message_owned)
  8147. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) {
  8148. // @@protoc_insertion_point(arena_constructor:RemoNet.SensorStop)
  8149. }
  8150. SensorStop::SensorStop(const SensorStop& from)
  8151. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() {
  8152. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  8153. // @@protoc_insertion_point(copy_constructor:RemoNet.SensorStop)
  8154. }
  8155. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SensorStop::_class_data_ = {
  8156. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl,
  8157. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl,
  8158. };
  8159. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SensorStop::GetClassData() const { return &_class_data_; }
  8160. ::PROTOBUF_NAMESPACE_ID::Metadata SensorStop::GetMetadata() const {
  8161. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  8162. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  8163. file_level_metadata_protocol_2eproto[34]);
  8164. }
  8165. // ===================================================================
  8166. class StopAck::_Internal {
  8167. public:
  8168. };
  8169. StopAck::StopAck(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  8170. bool is_message_owned)
  8171. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) {
  8172. // @@protoc_insertion_point(arena_constructor:RemoNet.StopAck)
  8173. }
  8174. StopAck::StopAck(const StopAck& from)
  8175. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() {
  8176. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  8177. // @@protoc_insertion_point(copy_constructor:RemoNet.StopAck)
  8178. }
  8179. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StopAck::_class_data_ = {
  8180. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl,
  8181. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl,
  8182. };
  8183. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StopAck::GetClassData() const { return &_class_data_; }
  8184. ::PROTOBUF_NAMESPACE_ID::Metadata StopAck::GetMetadata() const {
  8185. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  8186. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  8187. file_level_metadata_protocol_2eproto[35]);
  8188. }
  8189. // ===================================================================
  8190. class CCManipulation::_Internal {
  8191. public:
  8192. };
  8193. CCManipulation::CCManipulation(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  8194. bool is_message_owned)
  8195. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  8196. SharedCtor();
  8197. if (!is_message_owned) {
  8198. RegisterArenaDtor(arena);
  8199. }
  8200. // @@protoc_insertion_point(arena_constructor:RemoNet.CCManipulation)
  8201. }
  8202. CCManipulation::CCManipulation(const CCManipulation& from)
  8203. : ::PROTOBUF_NAMESPACE_ID::Message() {
  8204. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  8205. sensor_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8206. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  8207. sensor_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  8208. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  8209. if (!from._internal_sensor().empty()) {
  8210. sensor_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_sensor(),
  8211. GetArenaForAllocation());
  8212. }
  8213. car_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8214. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  8215. car_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  8216. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  8217. if (!from._internal_car().empty()) {
  8218. car_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_car(),
  8219. GetArenaForAllocation());
  8220. }
  8221. // @@protoc_insertion_point(copy_constructor:RemoNet.CCManipulation)
  8222. }
  8223. inline void CCManipulation::SharedCtor() {
  8224. sensor_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8225. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  8226. sensor_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  8227. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  8228. car_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8229. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  8230. car_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  8231. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  8232. }
  8233. CCManipulation::~CCManipulation() {
  8234. // @@protoc_insertion_point(destructor:RemoNet.CCManipulation)
  8235. if (GetArenaForAllocation() != nullptr) return;
  8236. SharedDtor();
  8237. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  8238. }
  8239. inline void CCManipulation::SharedDtor() {
  8240. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  8241. sensor_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8242. car_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8243. }
  8244. void CCManipulation::ArenaDtor(void* object) {
  8245. CCManipulation* _this = reinterpret_cast< CCManipulation* >(object);
  8246. (void)_this;
  8247. }
  8248. void CCManipulation::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  8249. }
  8250. void CCManipulation::SetCachedSize(int size) const {
  8251. _cached_size_.Set(size);
  8252. }
  8253. void CCManipulation::Clear() {
  8254. // @@protoc_insertion_point(message_clear_start:RemoNet.CCManipulation)
  8255. uint32_t cached_has_bits = 0;
  8256. // Prevent compiler warnings about cached_has_bits being unused
  8257. (void) cached_has_bits;
  8258. sensor_.ClearToEmpty();
  8259. car_.ClearToEmpty();
  8260. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  8261. }
  8262. const char* CCManipulation::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  8263. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  8264. while (!ctx->Done(&ptr)) {
  8265. uint32_t tag;
  8266. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  8267. switch (tag >> 3) {
  8268. // bytes sensor = 1;
  8269. case 1:
  8270. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
  8271. auto str = _internal_mutable_sensor();
  8272. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  8273. CHK_(ptr);
  8274. } else
  8275. goto handle_unusual;
  8276. continue;
  8277. // bytes car = 2;
  8278. case 2:
  8279. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
  8280. auto str = _internal_mutable_car();
  8281. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  8282. CHK_(ptr);
  8283. } else
  8284. goto handle_unusual;
  8285. continue;
  8286. default:
  8287. goto handle_unusual;
  8288. } // switch
  8289. handle_unusual:
  8290. if ((tag == 0) || ((tag & 7) == 4)) {
  8291. CHK_(ptr);
  8292. ctx->SetLastTag(tag);
  8293. goto message_done;
  8294. }
  8295. ptr = UnknownFieldParse(
  8296. tag,
  8297. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  8298. ptr, ctx);
  8299. CHK_(ptr != nullptr);
  8300. } // while
  8301. message_done:
  8302. return ptr;
  8303. failure:
  8304. ptr = nullptr;
  8305. goto message_done;
  8306. #undef CHK_
  8307. }
  8308. uint8_t* CCManipulation::_InternalSerialize(
  8309. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  8310. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CCManipulation)
  8311. uint32_t cached_has_bits = 0;
  8312. (void) cached_has_bits;
  8313. // bytes sensor = 1;
  8314. if (!this->_internal_sensor().empty()) {
  8315. target = stream->WriteBytesMaybeAliased(
  8316. 1, this->_internal_sensor(), target);
  8317. }
  8318. // bytes car = 2;
  8319. if (!this->_internal_car().empty()) {
  8320. target = stream->WriteBytesMaybeAliased(
  8321. 2, this->_internal_car(), target);
  8322. }
  8323. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  8324. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  8325. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  8326. }
  8327. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CCManipulation)
  8328. return target;
  8329. }
  8330. size_t CCManipulation::ByteSizeLong() const {
  8331. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CCManipulation)
  8332. size_t total_size = 0;
  8333. uint32_t cached_has_bits = 0;
  8334. // Prevent compiler warnings about cached_has_bits being unused
  8335. (void) cached_has_bits;
  8336. // bytes sensor = 1;
  8337. if (!this->_internal_sensor().empty()) {
  8338. total_size += 1 +
  8339. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
  8340. this->_internal_sensor());
  8341. }
  8342. // bytes car = 2;
  8343. if (!this->_internal_car().empty()) {
  8344. total_size += 1 +
  8345. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
  8346. this->_internal_car());
  8347. }
  8348. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  8349. }
  8350. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CCManipulation::_class_data_ = {
  8351. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  8352. CCManipulation::MergeImpl
  8353. };
  8354. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CCManipulation::GetClassData() const { return &_class_data_; }
  8355. void CCManipulation::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  8356. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  8357. static_cast<CCManipulation *>(to)->MergeFrom(
  8358. static_cast<const CCManipulation &>(from));
  8359. }
  8360. void CCManipulation::MergeFrom(const CCManipulation& from) {
  8361. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CCManipulation)
  8362. GOOGLE_DCHECK_NE(&from, this);
  8363. uint32_t cached_has_bits = 0;
  8364. (void) cached_has_bits;
  8365. if (!from._internal_sensor().empty()) {
  8366. _internal_set_sensor(from._internal_sensor());
  8367. }
  8368. if (!from._internal_car().empty()) {
  8369. _internal_set_car(from._internal_car());
  8370. }
  8371. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  8372. }
  8373. void CCManipulation::CopyFrom(const CCManipulation& from) {
  8374. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CCManipulation)
  8375. if (&from == this) return;
  8376. Clear();
  8377. MergeFrom(from);
  8378. }
  8379. bool CCManipulation::IsInitialized() const {
  8380. return true;
  8381. }
  8382. void CCManipulation::InternalSwap(CCManipulation* other) {
  8383. using std::swap;
  8384. auto* lhs_arena = GetArenaForAllocation();
  8385. auto* rhs_arena = other->GetArenaForAllocation();
  8386. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  8387. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  8388. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  8389. &sensor_, lhs_arena,
  8390. &other->sensor_, rhs_arena
  8391. );
  8392. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  8393. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  8394. &car_, lhs_arena,
  8395. &other->car_, rhs_arena
  8396. );
  8397. }
  8398. ::PROTOBUF_NAMESPACE_ID::Metadata CCManipulation::GetMetadata() const {
  8399. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  8400. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  8401. file_level_metadata_protocol_2eproto[36]);
  8402. }
  8403. // ===================================================================
  8404. class SCAddRobot::_Internal {
  8405. public:
  8406. static const ::RemoNet::Robot& robot(const SCAddRobot* msg);
  8407. };
  8408. const ::RemoNet::Robot&
  8409. SCAddRobot::_Internal::robot(const SCAddRobot* msg) {
  8410. return *msg->robot_;
  8411. }
  8412. SCAddRobot::SCAddRobot(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  8413. bool is_message_owned)
  8414. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  8415. SharedCtor();
  8416. if (!is_message_owned) {
  8417. RegisterArenaDtor(arena);
  8418. }
  8419. // @@protoc_insertion_point(arena_constructor:RemoNet.SCAddRobot)
  8420. }
  8421. SCAddRobot::SCAddRobot(const SCAddRobot& from)
  8422. : ::PROTOBUF_NAMESPACE_ID::Message() {
  8423. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  8424. if (from._internal_has_robot()) {
  8425. robot_ = new ::RemoNet::Robot(*from.robot_);
  8426. } else {
  8427. robot_ = nullptr;
  8428. }
  8429. // @@protoc_insertion_point(copy_constructor:RemoNet.SCAddRobot)
  8430. }
  8431. inline void SCAddRobot::SharedCtor() {
  8432. robot_ = nullptr;
  8433. }
  8434. SCAddRobot::~SCAddRobot() {
  8435. // @@protoc_insertion_point(destructor:RemoNet.SCAddRobot)
  8436. if (GetArenaForAllocation() != nullptr) return;
  8437. SharedDtor();
  8438. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  8439. }
  8440. inline void SCAddRobot::SharedDtor() {
  8441. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  8442. if (this != internal_default_instance()) delete robot_;
  8443. }
  8444. void SCAddRobot::ArenaDtor(void* object) {
  8445. SCAddRobot* _this = reinterpret_cast< SCAddRobot* >(object);
  8446. (void)_this;
  8447. }
  8448. void SCAddRobot::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  8449. }
  8450. void SCAddRobot::SetCachedSize(int size) const {
  8451. _cached_size_.Set(size);
  8452. }
  8453. void SCAddRobot::Clear() {
  8454. // @@protoc_insertion_point(message_clear_start:RemoNet.SCAddRobot)
  8455. uint32_t cached_has_bits = 0;
  8456. // Prevent compiler warnings about cached_has_bits being unused
  8457. (void) cached_has_bits;
  8458. if (GetArenaForAllocation() == nullptr && robot_ != nullptr) {
  8459. delete robot_;
  8460. }
  8461. robot_ = nullptr;
  8462. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  8463. }
  8464. const char* SCAddRobot::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  8465. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  8466. while (!ctx->Done(&ptr)) {
  8467. uint32_t tag;
  8468. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  8469. switch (tag >> 3) {
  8470. // .RemoNet.Robot robot = 1;
  8471. case 1:
  8472. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
  8473. ptr = ctx->ParseMessage(_internal_mutable_robot(), ptr);
  8474. CHK_(ptr);
  8475. } else
  8476. goto handle_unusual;
  8477. continue;
  8478. default:
  8479. goto handle_unusual;
  8480. } // switch
  8481. handle_unusual:
  8482. if ((tag == 0) || ((tag & 7) == 4)) {
  8483. CHK_(ptr);
  8484. ctx->SetLastTag(tag);
  8485. goto message_done;
  8486. }
  8487. ptr = UnknownFieldParse(
  8488. tag,
  8489. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  8490. ptr, ctx);
  8491. CHK_(ptr != nullptr);
  8492. } // while
  8493. message_done:
  8494. return ptr;
  8495. failure:
  8496. ptr = nullptr;
  8497. goto message_done;
  8498. #undef CHK_
  8499. }
  8500. uint8_t* SCAddRobot::_InternalSerialize(
  8501. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  8502. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.SCAddRobot)
  8503. uint32_t cached_has_bits = 0;
  8504. (void) cached_has_bits;
  8505. // .RemoNet.Robot robot = 1;
  8506. if (this->_internal_has_robot()) {
  8507. target = stream->EnsureSpace(target);
  8508. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  8509. InternalWriteMessage(
  8510. 1, _Internal::robot(this), target, stream);
  8511. }
  8512. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  8513. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  8514. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  8515. }
  8516. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.SCAddRobot)
  8517. return target;
  8518. }
  8519. size_t SCAddRobot::ByteSizeLong() const {
  8520. // @@protoc_insertion_point(message_byte_size_start:RemoNet.SCAddRobot)
  8521. size_t total_size = 0;
  8522. uint32_t cached_has_bits = 0;
  8523. // Prevent compiler warnings about cached_has_bits being unused
  8524. (void) cached_has_bits;
  8525. // .RemoNet.Robot robot = 1;
  8526. if (this->_internal_has_robot()) {
  8527. total_size += 1 +
  8528. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  8529. *robot_);
  8530. }
  8531. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  8532. }
  8533. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCAddRobot::_class_data_ = {
  8534. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  8535. SCAddRobot::MergeImpl
  8536. };
  8537. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCAddRobot::GetClassData() const { return &_class_data_; }
  8538. void SCAddRobot::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  8539. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  8540. static_cast<SCAddRobot *>(to)->MergeFrom(
  8541. static_cast<const SCAddRobot &>(from));
  8542. }
  8543. void SCAddRobot::MergeFrom(const SCAddRobot& from) {
  8544. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.SCAddRobot)
  8545. GOOGLE_DCHECK_NE(&from, this);
  8546. uint32_t cached_has_bits = 0;
  8547. (void) cached_has_bits;
  8548. if (from._internal_has_robot()) {
  8549. _internal_mutable_robot()->::RemoNet::Robot::MergeFrom(from._internal_robot());
  8550. }
  8551. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  8552. }
  8553. void SCAddRobot::CopyFrom(const SCAddRobot& from) {
  8554. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.SCAddRobot)
  8555. if (&from == this) return;
  8556. Clear();
  8557. MergeFrom(from);
  8558. }
  8559. bool SCAddRobot::IsInitialized() const {
  8560. return true;
  8561. }
  8562. void SCAddRobot::InternalSwap(SCAddRobot* other) {
  8563. using std::swap;
  8564. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  8565. swap(robot_, other->robot_);
  8566. }
  8567. ::PROTOBUF_NAMESPACE_ID::Metadata SCAddRobot::GetMetadata() const {
  8568. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  8569. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  8570. file_level_metadata_protocol_2eproto[37]);
  8571. }
  8572. // ===================================================================
  8573. class SCDelRobot::_Internal {
  8574. public:
  8575. };
  8576. SCDelRobot::SCDelRobot(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  8577. bool is_message_owned)
  8578. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  8579. SharedCtor();
  8580. if (!is_message_owned) {
  8581. RegisterArenaDtor(arena);
  8582. }
  8583. // @@protoc_insertion_point(arena_constructor:RemoNet.SCDelRobot)
  8584. }
  8585. SCDelRobot::SCDelRobot(const SCDelRobot& from)
  8586. : ::PROTOBUF_NAMESPACE_ID::Message() {
  8587. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  8588. ::memcpy(&peer_, &from.peer_,
  8589. static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  8590. reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
  8591. // @@protoc_insertion_point(copy_constructor:RemoNet.SCDelRobot)
  8592. }
  8593. inline void SCDelRobot::SharedCtor() {
  8594. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  8595. reinterpret_cast<char*>(&peer_) - reinterpret_cast<char*>(this)),
  8596. 0, static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  8597. reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
  8598. }
  8599. SCDelRobot::~SCDelRobot() {
  8600. // @@protoc_insertion_point(destructor:RemoNet.SCDelRobot)
  8601. if (GetArenaForAllocation() != nullptr) return;
  8602. SharedDtor();
  8603. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  8604. }
  8605. inline void SCDelRobot::SharedDtor() {
  8606. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  8607. }
  8608. void SCDelRobot::ArenaDtor(void* object) {
  8609. SCDelRobot* _this = reinterpret_cast< SCDelRobot* >(object);
  8610. (void)_this;
  8611. }
  8612. void SCDelRobot::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  8613. }
  8614. void SCDelRobot::SetCachedSize(int size) const {
  8615. _cached_size_.Set(size);
  8616. }
  8617. void SCDelRobot::Clear() {
  8618. // @@protoc_insertion_point(message_clear_start:RemoNet.SCDelRobot)
  8619. uint32_t cached_has_bits = 0;
  8620. // Prevent compiler warnings about cached_has_bits being unused
  8621. (void) cached_has_bits;
  8622. ::memset(&peer_, 0, static_cast<size_t>(
  8623. reinterpret_cast<char*>(&egotype_) -
  8624. reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
  8625. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  8626. }
  8627. const char* SCDelRobot::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  8628. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  8629. while (!ctx->Done(&ptr)) {
  8630. uint32_t tag;
  8631. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  8632. switch (tag >> 3) {
  8633. // int32 peer = 1;
  8634. case 1:
  8635. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  8636. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8637. CHK_(ptr);
  8638. } else
  8639. goto handle_unusual;
  8640. continue;
  8641. // int32 egotype = 2;
  8642. case 2:
  8643. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  8644. egotype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8645. CHK_(ptr);
  8646. } else
  8647. goto handle_unusual;
  8648. continue;
  8649. default:
  8650. goto handle_unusual;
  8651. } // switch
  8652. handle_unusual:
  8653. if ((tag == 0) || ((tag & 7) == 4)) {
  8654. CHK_(ptr);
  8655. ctx->SetLastTag(tag);
  8656. goto message_done;
  8657. }
  8658. ptr = UnknownFieldParse(
  8659. tag,
  8660. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  8661. ptr, ctx);
  8662. CHK_(ptr != nullptr);
  8663. } // while
  8664. message_done:
  8665. return ptr;
  8666. failure:
  8667. ptr = nullptr;
  8668. goto message_done;
  8669. #undef CHK_
  8670. }
  8671. uint8_t* SCDelRobot::_InternalSerialize(
  8672. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  8673. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.SCDelRobot)
  8674. uint32_t cached_has_bits = 0;
  8675. (void) cached_has_bits;
  8676. // int32 peer = 1;
  8677. if (this->_internal_peer() != 0) {
  8678. target = stream->EnsureSpace(target);
  8679. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_peer(), target);
  8680. }
  8681. // int32 egotype = 2;
  8682. if (this->_internal_egotype() != 0) {
  8683. target = stream->EnsureSpace(target);
  8684. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_egotype(), target);
  8685. }
  8686. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  8687. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  8688. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  8689. }
  8690. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.SCDelRobot)
  8691. return target;
  8692. }
  8693. size_t SCDelRobot::ByteSizeLong() const {
  8694. // @@protoc_insertion_point(message_byte_size_start:RemoNet.SCDelRobot)
  8695. size_t total_size = 0;
  8696. uint32_t cached_has_bits = 0;
  8697. // Prevent compiler warnings about cached_has_bits being unused
  8698. (void) cached_has_bits;
  8699. // int32 peer = 1;
  8700. if (this->_internal_peer() != 0) {
  8701. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  8702. }
  8703. // int32 egotype = 2;
  8704. if (this->_internal_egotype() != 0) {
  8705. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_egotype());
  8706. }
  8707. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  8708. }
  8709. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCDelRobot::_class_data_ = {
  8710. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  8711. SCDelRobot::MergeImpl
  8712. };
  8713. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCDelRobot::GetClassData() const { return &_class_data_; }
  8714. void SCDelRobot::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  8715. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  8716. static_cast<SCDelRobot *>(to)->MergeFrom(
  8717. static_cast<const SCDelRobot &>(from));
  8718. }
  8719. void SCDelRobot::MergeFrom(const SCDelRobot& from) {
  8720. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.SCDelRobot)
  8721. GOOGLE_DCHECK_NE(&from, this);
  8722. uint32_t cached_has_bits = 0;
  8723. (void) cached_has_bits;
  8724. if (from._internal_peer() != 0) {
  8725. _internal_set_peer(from._internal_peer());
  8726. }
  8727. if (from._internal_egotype() != 0) {
  8728. _internal_set_egotype(from._internal_egotype());
  8729. }
  8730. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  8731. }
  8732. void SCDelRobot::CopyFrom(const SCDelRobot& from) {
  8733. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.SCDelRobot)
  8734. if (&from == this) return;
  8735. Clear();
  8736. MergeFrom(from);
  8737. }
  8738. bool SCDelRobot::IsInitialized() const {
  8739. return true;
  8740. }
  8741. void SCDelRobot::InternalSwap(SCDelRobot* other) {
  8742. using std::swap;
  8743. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  8744. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  8745. PROTOBUF_FIELD_OFFSET(SCDelRobot, egotype_)
  8746. + sizeof(SCDelRobot::egotype_)
  8747. - PROTOBUF_FIELD_OFFSET(SCDelRobot, peer_)>(
  8748. reinterpret_cast<char*>(&peer_),
  8749. reinterpret_cast<char*>(&other->peer_));
  8750. }
  8751. ::PROTOBUF_NAMESPACE_ID::Metadata SCDelRobot::GetMetadata() const {
  8752. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  8753. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  8754. file_level_metadata_protocol_2eproto[38]);
  8755. }
  8756. // ===================================================================
  8757. class State::_Internal {
  8758. public:
  8759. };
  8760. State::State(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  8761. bool is_message_owned)
  8762. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  8763. SharedCtor();
  8764. if (!is_message_owned) {
  8765. RegisterArenaDtor(arena);
  8766. }
  8767. // @@protoc_insertion_point(arena_constructor:RemoNet.State)
  8768. }
  8769. State::State(const State& from)
  8770. : ::PROTOBUF_NAMESPACE_ID::Message() {
  8771. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  8772. error_buff_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8773. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  8774. error_buff_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  8775. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  8776. if (!from._internal_error_buff().empty()) {
  8777. error_buff_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_error_buff(),
  8778. GetArenaForAllocation());
  8779. }
  8780. ::memcpy(&work_pressure_, &from.work_pressure_,
  8781. static_cast<size_t>(reinterpret_cast<char*>(&tip_pressure_) -
  8782. reinterpret_cast<char*>(&work_pressure_)) + sizeof(tip_pressure_));
  8783. // @@protoc_insertion_point(copy_constructor:RemoNet.State)
  8784. }
  8785. inline void State::SharedCtor() {
  8786. error_buff_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8787. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  8788. error_buff_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  8789. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  8790. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  8791. reinterpret_cast<char*>(&work_pressure_) - reinterpret_cast<char*>(this)),
  8792. 0, static_cast<size_t>(reinterpret_cast<char*>(&tip_pressure_) -
  8793. reinterpret_cast<char*>(&work_pressure_)) + sizeof(tip_pressure_));
  8794. }
  8795. State::~State() {
  8796. // @@protoc_insertion_point(destructor:RemoNet.State)
  8797. if (GetArenaForAllocation() != nullptr) return;
  8798. SharedDtor();
  8799. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  8800. }
  8801. inline void State::SharedDtor() {
  8802. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  8803. error_buff_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8804. }
  8805. void State::ArenaDtor(void* object) {
  8806. State* _this = reinterpret_cast< State* >(object);
  8807. (void)_this;
  8808. }
  8809. void State::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  8810. }
  8811. void State::SetCachedSize(int size) const {
  8812. _cached_size_.Set(size);
  8813. }
  8814. void State::Clear() {
  8815. // @@protoc_insertion_point(message_clear_start:RemoNet.State)
  8816. uint32_t cached_has_bits = 0;
  8817. // Prevent compiler warnings about cached_has_bits being unused
  8818. (void) cached_has_bits;
  8819. error_buff_.ClearToEmpty();
  8820. ::memset(&work_pressure_, 0, static_cast<size_t>(
  8821. reinterpret_cast<char*>(&tip_pressure_) -
  8822. reinterpret_cast<char*>(&work_pressure_)) + sizeof(tip_pressure_));
  8823. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  8824. }
  8825. const char* State::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  8826. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  8827. while (!ctx->Done(&ptr)) {
  8828. uint32_t tag;
  8829. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  8830. switch (tag >> 3) {
  8831. // int32 work_pressure = 1;
  8832. case 1:
  8833. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  8834. work_pressure_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8835. CHK_(ptr);
  8836. } else
  8837. goto handle_unusual;
  8838. continue;
  8839. // int32 brake_pressure = 2;
  8840. case 2:
  8841. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  8842. brake_pressure_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8843. CHK_(ptr);
  8844. } else
  8845. goto handle_unusual;
  8846. continue;
  8847. // int32 gearbox_oil_temp = 3;
  8848. case 3:
  8849. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  8850. gearbox_oil_temp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8851. CHK_(ptr);
  8852. } else
  8853. goto handle_unusual;
  8854. continue;
  8855. // int32 gearbox_oil_pressure = 4;
  8856. case 4:
  8857. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
  8858. gearbox_oil_pressure_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8859. CHK_(ptr);
  8860. } else
  8861. goto handle_unusual;
  8862. continue;
  8863. // int32 engine_rpm = 5;
  8864. case 5:
  8865. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
  8866. engine_rpm_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8867. CHK_(ptr);
  8868. } else
  8869. goto handle_unusual;
  8870. continue;
  8871. // int32 speed = 6;
  8872. case 6:
  8873. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 48)) {
  8874. speed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8875. CHK_(ptr);
  8876. } else
  8877. goto handle_unusual;
  8878. continue;
  8879. // int32 gear = 7;
  8880. case 7:
  8881. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56)) {
  8882. gear_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8883. CHK_(ptr);
  8884. } else
  8885. goto handle_unusual;
  8886. continue;
  8887. // int32 engine_pressure = 8;
  8888. case 8:
  8889. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 64)) {
  8890. engine_pressure_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8891. CHK_(ptr);
  8892. } else
  8893. goto handle_unusual;
  8894. continue;
  8895. // int32 cold_water = 9;
  8896. case 9:
  8897. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 72)) {
  8898. cold_water_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8899. CHK_(ptr);
  8900. } else
  8901. goto handle_unusual;
  8902. continue;
  8903. // float steer_angle = 10;
  8904. case 10:
  8905. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 85)) {
  8906. steer_angle_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  8907. ptr += sizeof(float);
  8908. } else
  8909. goto handle_unusual;
  8910. continue;
  8911. // int32 left_lock = 11;
  8912. case 11:
  8913. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 88)) {
  8914. left_lock_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8915. CHK_(ptr);
  8916. } else
  8917. goto handle_unusual;
  8918. continue;
  8919. // int32 right_lock = 12;
  8920. case 12:
  8921. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 96)) {
  8922. right_lock_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8923. CHK_(ptr);
  8924. } else
  8925. goto handle_unusual;
  8926. continue;
  8927. // int32 engine_time = 13;
  8928. case 13:
  8929. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 104)) {
  8930. engine_time_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8931. CHK_(ptr);
  8932. } else
  8933. goto handle_unusual;
  8934. continue;
  8935. // int32 wire_sensor_l = 14;
  8936. case 14:
  8937. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 112)) {
  8938. wire_sensor_l_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8939. CHK_(ptr);
  8940. } else
  8941. goto handle_unusual;
  8942. continue;
  8943. // int32 wire_sensor_r = 15;
  8944. case 15:
  8945. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 120)) {
  8946. wire_sensor_r_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8947. CHK_(ptr);
  8948. } else
  8949. goto handle_unusual;
  8950. continue;
  8951. // int32 fuel_level = 16;
  8952. case 16:
  8953. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 128)) {
  8954. fuel_level_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8955. CHK_(ptr);
  8956. } else
  8957. goto handle_unusual;
  8958. continue;
  8959. // int32 lock_switch_l = 17;
  8960. case 17:
  8961. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 136)) {
  8962. lock_switch_l_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8963. CHK_(ptr);
  8964. } else
  8965. goto handle_unusual;
  8966. continue;
  8967. // int32 lock_switch_r = 18;
  8968. case 18:
  8969. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 144)) {
  8970. lock_switch_r_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8971. CHK_(ptr);
  8972. } else
  8973. goto handle_unusual;
  8974. continue;
  8975. // int32 tip_limit = 19;
  8976. case 19:
  8977. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 152)) {
  8978. tip_limit_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8979. CHK_(ptr);
  8980. } else
  8981. goto handle_unusual;
  8982. continue;
  8983. // int32 turn_left = 20;
  8984. case 20:
  8985. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 160)) {
  8986. turn_left_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8987. CHK_(ptr);
  8988. } else
  8989. goto handle_unusual;
  8990. continue;
  8991. // int32 turn_right = 21;
  8992. case 21:
  8993. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 168)) {
  8994. turn_right_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8995. CHK_(ptr);
  8996. } else
  8997. goto handle_unusual;
  8998. continue;
  8999. // int32 hight_beam = 22;
  9000. case 22:
  9001. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 176)) {
  9002. hight_beam_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9003. CHK_(ptr);
  9004. } else
  9005. goto handle_unusual;
  9006. continue;
  9007. // int32 low_beam = 23;
  9008. case 23:
  9009. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 184)) {
  9010. low_beam_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9011. CHK_(ptr);
  9012. } else
  9013. goto handle_unusual;
  9014. continue;
  9015. // int32 parking = 24;
  9016. case 24:
  9017. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 192)) {
  9018. parking_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9019. CHK_(ptr);
  9020. } else
  9021. goto handle_unusual;
  9022. continue;
  9023. // int32 brake = 25;
  9024. case 25:
  9025. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 200)) {
  9026. brake_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9027. CHK_(ptr);
  9028. } else
  9029. goto handle_unusual;
  9030. continue;
  9031. // int32 back_car = 26;
  9032. case 26:
  9033. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 208)) {
  9034. back_car_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9035. CHK_(ptr);
  9036. } else
  9037. goto handle_unusual;
  9038. continue;
  9039. // int32 front_work_lamp = 27;
  9040. case 27:
  9041. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 216)) {
  9042. front_work_lamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9043. CHK_(ptr);
  9044. } else
  9045. goto handle_unusual;
  9046. continue;
  9047. // int32 rear_work_lamp = 28;
  9048. case 28:
  9049. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 224)) {
  9050. rear_work_lamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9051. CHK_(ptr);
  9052. } else
  9053. goto handle_unusual;
  9054. continue;
  9055. // int32 cargo_weight = 29;
  9056. case 29:
  9057. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 232)) {
  9058. cargo_weight_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9059. CHK_(ptr);
  9060. } else
  9061. goto handle_unusual;
  9062. continue;
  9063. // int32 system_vol = 30;
  9064. case 30:
  9065. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 240)) {
  9066. system_vol_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9067. CHK_(ptr);
  9068. } else
  9069. goto handle_unusual;
  9070. continue;
  9071. // bytes error_Buff = 31;
  9072. case 31:
  9073. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 250)) {
  9074. auto str = _internal_mutable_error_buff();
  9075. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  9076. CHK_(ptr);
  9077. } else
  9078. goto handle_unusual;
  9079. continue;
  9080. // int32 f_gear = 32;
  9081. case 32:
  9082. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 0)) {
  9083. f_gear_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9084. CHK_(ptr);
  9085. } else
  9086. goto handle_unusual;
  9087. continue;
  9088. // int32 gear_1 = 33;
  9089. case 33:
  9090. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  9091. gear_1_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9092. CHK_(ptr);
  9093. } else
  9094. goto handle_unusual;
  9095. continue;
  9096. // int32 outgrigger_l = 34;
  9097. case 34:
  9098. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  9099. outgrigger_l_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9100. CHK_(ptr);
  9101. } else
  9102. goto handle_unusual;
  9103. continue;
  9104. // int32 outgrigger_r = 35;
  9105. case 35:
  9106. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  9107. outgrigger_r_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9108. CHK_(ptr);
  9109. } else
  9110. goto handle_unusual;
  9111. continue;
  9112. // int32 tip_pressure = 36;
  9113. case 36:
  9114. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
  9115. tip_pressure_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9116. CHK_(ptr);
  9117. } else
  9118. goto handle_unusual;
  9119. continue;
  9120. default:
  9121. goto handle_unusual;
  9122. } // switch
  9123. handle_unusual:
  9124. if ((tag == 0) || ((tag & 7) == 4)) {
  9125. CHK_(ptr);
  9126. ctx->SetLastTag(tag);
  9127. goto message_done;
  9128. }
  9129. ptr = UnknownFieldParse(
  9130. tag,
  9131. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  9132. ptr, ctx);
  9133. CHK_(ptr != nullptr);
  9134. } // while
  9135. message_done:
  9136. return ptr;
  9137. failure:
  9138. ptr = nullptr;
  9139. goto message_done;
  9140. #undef CHK_
  9141. }
  9142. uint8_t* State::_InternalSerialize(
  9143. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  9144. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.State)
  9145. uint32_t cached_has_bits = 0;
  9146. (void) cached_has_bits;
  9147. // int32 work_pressure = 1;
  9148. if (this->_internal_work_pressure() != 0) {
  9149. target = stream->EnsureSpace(target);
  9150. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_work_pressure(), target);
  9151. }
  9152. // int32 brake_pressure = 2;
  9153. if (this->_internal_brake_pressure() != 0) {
  9154. target = stream->EnsureSpace(target);
  9155. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_brake_pressure(), target);
  9156. }
  9157. // int32 gearbox_oil_temp = 3;
  9158. if (this->_internal_gearbox_oil_temp() != 0) {
  9159. target = stream->EnsureSpace(target);
  9160. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_gearbox_oil_temp(), target);
  9161. }
  9162. // int32 gearbox_oil_pressure = 4;
  9163. if (this->_internal_gearbox_oil_pressure() != 0) {
  9164. target = stream->EnsureSpace(target);
  9165. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_gearbox_oil_pressure(), target);
  9166. }
  9167. // int32 engine_rpm = 5;
  9168. if (this->_internal_engine_rpm() != 0) {
  9169. target = stream->EnsureSpace(target);
  9170. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(5, this->_internal_engine_rpm(), target);
  9171. }
  9172. // int32 speed = 6;
  9173. if (this->_internal_speed() != 0) {
  9174. target = stream->EnsureSpace(target);
  9175. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(6, this->_internal_speed(), target);
  9176. }
  9177. // int32 gear = 7;
  9178. if (this->_internal_gear() != 0) {
  9179. target = stream->EnsureSpace(target);
  9180. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(7, this->_internal_gear(), target);
  9181. }
  9182. // int32 engine_pressure = 8;
  9183. if (this->_internal_engine_pressure() != 0) {
  9184. target = stream->EnsureSpace(target);
  9185. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(8, this->_internal_engine_pressure(), target);
  9186. }
  9187. // int32 cold_water = 9;
  9188. if (this->_internal_cold_water() != 0) {
  9189. target = stream->EnsureSpace(target);
  9190. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(9, this->_internal_cold_water(), target);
  9191. }
  9192. // float steer_angle = 10;
  9193. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  9194. float tmp_steer_angle = this->_internal_steer_angle();
  9195. uint32_t raw_steer_angle;
  9196. memcpy(&raw_steer_angle, &tmp_steer_angle, sizeof(tmp_steer_angle));
  9197. if (raw_steer_angle != 0) {
  9198. target = stream->EnsureSpace(target);
  9199. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(10, this->_internal_steer_angle(), target);
  9200. }
  9201. // int32 left_lock = 11;
  9202. if (this->_internal_left_lock() != 0) {
  9203. target = stream->EnsureSpace(target);
  9204. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(11, this->_internal_left_lock(), target);
  9205. }
  9206. // int32 right_lock = 12;
  9207. if (this->_internal_right_lock() != 0) {
  9208. target = stream->EnsureSpace(target);
  9209. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(12, this->_internal_right_lock(), target);
  9210. }
  9211. // int32 engine_time = 13;
  9212. if (this->_internal_engine_time() != 0) {
  9213. target = stream->EnsureSpace(target);
  9214. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(13, this->_internal_engine_time(), target);
  9215. }
  9216. // int32 wire_sensor_l = 14;
  9217. if (this->_internal_wire_sensor_l() != 0) {
  9218. target = stream->EnsureSpace(target);
  9219. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(14, this->_internal_wire_sensor_l(), target);
  9220. }
  9221. // int32 wire_sensor_r = 15;
  9222. if (this->_internal_wire_sensor_r() != 0) {
  9223. target = stream->EnsureSpace(target);
  9224. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(15, this->_internal_wire_sensor_r(), target);
  9225. }
  9226. // int32 fuel_level = 16;
  9227. if (this->_internal_fuel_level() != 0) {
  9228. target = stream->EnsureSpace(target);
  9229. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(16, this->_internal_fuel_level(), target);
  9230. }
  9231. // int32 lock_switch_l = 17;
  9232. if (this->_internal_lock_switch_l() != 0) {
  9233. target = stream->EnsureSpace(target);
  9234. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(17, this->_internal_lock_switch_l(), target);
  9235. }
  9236. // int32 lock_switch_r = 18;
  9237. if (this->_internal_lock_switch_r() != 0) {
  9238. target = stream->EnsureSpace(target);
  9239. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(18, this->_internal_lock_switch_r(), target);
  9240. }
  9241. // int32 tip_limit = 19;
  9242. if (this->_internal_tip_limit() != 0) {
  9243. target = stream->EnsureSpace(target);
  9244. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(19, this->_internal_tip_limit(), target);
  9245. }
  9246. // int32 turn_left = 20;
  9247. if (this->_internal_turn_left() != 0) {
  9248. target = stream->EnsureSpace(target);
  9249. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(20, this->_internal_turn_left(), target);
  9250. }
  9251. // int32 turn_right = 21;
  9252. if (this->_internal_turn_right() != 0) {
  9253. target = stream->EnsureSpace(target);
  9254. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(21, this->_internal_turn_right(), target);
  9255. }
  9256. // int32 hight_beam = 22;
  9257. if (this->_internal_hight_beam() != 0) {
  9258. target = stream->EnsureSpace(target);
  9259. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(22, this->_internal_hight_beam(), target);
  9260. }
  9261. // int32 low_beam = 23;
  9262. if (this->_internal_low_beam() != 0) {
  9263. target = stream->EnsureSpace(target);
  9264. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(23, this->_internal_low_beam(), target);
  9265. }
  9266. // int32 parking = 24;
  9267. if (this->_internal_parking() != 0) {
  9268. target = stream->EnsureSpace(target);
  9269. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(24, this->_internal_parking(), target);
  9270. }
  9271. // int32 brake = 25;
  9272. if (this->_internal_brake() != 0) {
  9273. target = stream->EnsureSpace(target);
  9274. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(25, this->_internal_brake(), target);
  9275. }
  9276. // int32 back_car = 26;
  9277. if (this->_internal_back_car() != 0) {
  9278. target = stream->EnsureSpace(target);
  9279. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(26, this->_internal_back_car(), target);
  9280. }
  9281. // int32 front_work_lamp = 27;
  9282. if (this->_internal_front_work_lamp() != 0) {
  9283. target = stream->EnsureSpace(target);
  9284. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(27, this->_internal_front_work_lamp(), target);
  9285. }
  9286. // int32 rear_work_lamp = 28;
  9287. if (this->_internal_rear_work_lamp() != 0) {
  9288. target = stream->EnsureSpace(target);
  9289. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(28, this->_internal_rear_work_lamp(), target);
  9290. }
  9291. // int32 cargo_weight = 29;
  9292. if (this->_internal_cargo_weight() != 0) {
  9293. target = stream->EnsureSpace(target);
  9294. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(29, this->_internal_cargo_weight(), target);
  9295. }
  9296. // int32 system_vol = 30;
  9297. if (this->_internal_system_vol() != 0) {
  9298. target = stream->EnsureSpace(target);
  9299. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(30, this->_internal_system_vol(), target);
  9300. }
  9301. // bytes error_Buff = 31;
  9302. if (!this->_internal_error_buff().empty()) {
  9303. target = stream->WriteBytesMaybeAliased(
  9304. 31, this->_internal_error_buff(), target);
  9305. }
  9306. // int32 f_gear = 32;
  9307. if (this->_internal_f_gear() != 0) {
  9308. target = stream->EnsureSpace(target);
  9309. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(32, this->_internal_f_gear(), target);
  9310. }
  9311. // int32 gear_1 = 33;
  9312. if (this->_internal_gear_1() != 0) {
  9313. target = stream->EnsureSpace(target);
  9314. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(33, this->_internal_gear_1(), target);
  9315. }
  9316. // int32 outgrigger_l = 34;
  9317. if (this->_internal_outgrigger_l() != 0) {
  9318. target = stream->EnsureSpace(target);
  9319. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(34, this->_internal_outgrigger_l(), target);
  9320. }
  9321. // int32 outgrigger_r = 35;
  9322. if (this->_internal_outgrigger_r() != 0) {
  9323. target = stream->EnsureSpace(target);
  9324. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(35, this->_internal_outgrigger_r(), target);
  9325. }
  9326. // int32 tip_pressure = 36;
  9327. if (this->_internal_tip_pressure() != 0) {
  9328. target = stream->EnsureSpace(target);
  9329. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(36, this->_internal_tip_pressure(), target);
  9330. }
  9331. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  9332. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  9333. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  9334. }
  9335. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.State)
  9336. return target;
  9337. }
  9338. size_t State::ByteSizeLong() const {
  9339. // @@protoc_insertion_point(message_byte_size_start:RemoNet.State)
  9340. size_t total_size = 0;
  9341. uint32_t cached_has_bits = 0;
  9342. // Prevent compiler warnings about cached_has_bits being unused
  9343. (void) cached_has_bits;
  9344. // bytes error_Buff = 31;
  9345. if (!this->_internal_error_buff().empty()) {
  9346. total_size += 2 +
  9347. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
  9348. this->_internal_error_buff());
  9349. }
  9350. // int32 work_pressure = 1;
  9351. if (this->_internal_work_pressure() != 0) {
  9352. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_work_pressure());
  9353. }
  9354. // int32 brake_pressure = 2;
  9355. if (this->_internal_brake_pressure() != 0) {
  9356. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_brake_pressure());
  9357. }
  9358. // int32 gearbox_oil_temp = 3;
  9359. if (this->_internal_gearbox_oil_temp() != 0) {
  9360. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_gearbox_oil_temp());
  9361. }
  9362. // int32 gearbox_oil_pressure = 4;
  9363. if (this->_internal_gearbox_oil_pressure() != 0) {
  9364. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_gearbox_oil_pressure());
  9365. }
  9366. // int32 engine_rpm = 5;
  9367. if (this->_internal_engine_rpm() != 0) {
  9368. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_engine_rpm());
  9369. }
  9370. // int32 speed = 6;
  9371. if (this->_internal_speed() != 0) {
  9372. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_speed());
  9373. }
  9374. // int32 gear = 7;
  9375. if (this->_internal_gear() != 0) {
  9376. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_gear());
  9377. }
  9378. // int32 engine_pressure = 8;
  9379. if (this->_internal_engine_pressure() != 0) {
  9380. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_engine_pressure());
  9381. }
  9382. // int32 cold_water = 9;
  9383. if (this->_internal_cold_water() != 0) {
  9384. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_cold_water());
  9385. }
  9386. // float steer_angle = 10;
  9387. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  9388. float tmp_steer_angle = this->_internal_steer_angle();
  9389. uint32_t raw_steer_angle;
  9390. memcpy(&raw_steer_angle, &tmp_steer_angle, sizeof(tmp_steer_angle));
  9391. if (raw_steer_angle != 0) {
  9392. total_size += 1 + 4;
  9393. }
  9394. // int32 left_lock = 11;
  9395. if (this->_internal_left_lock() != 0) {
  9396. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_left_lock());
  9397. }
  9398. // int32 right_lock = 12;
  9399. if (this->_internal_right_lock() != 0) {
  9400. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_right_lock());
  9401. }
  9402. // int32 engine_time = 13;
  9403. if (this->_internal_engine_time() != 0) {
  9404. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_engine_time());
  9405. }
  9406. // int32 wire_sensor_l = 14;
  9407. if (this->_internal_wire_sensor_l() != 0) {
  9408. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_wire_sensor_l());
  9409. }
  9410. // int32 wire_sensor_r = 15;
  9411. if (this->_internal_wire_sensor_r() != 0) {
  9412. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_wire_sensor_r());
  9413. }
  9414. // int32 fuel_level = 16;
  9415. if (this->_internal_fuel_level() != 0) {
  9416. total_size += 2 +
  9417. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9418. this->_internal_fuel_level());
  9419. }
  9420. // int32 lock_switch_l = 17;
  9421. if (this->_internal_lock_switch_l() != 0) {
  9422. total_size += 2 +
  9423. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9424. this->_internal_lock_switch_l());
  9425. }
  9426. // int32 lock_switch_r = 18;
  9427. if (this->_internal_lock_switch_r() != 0) {
  9428. total_size += 2 +
  9429. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9430. this->_internal_lock_switch_r());
  9431. }
  9432. // int32 tip_limit = 19;
  9433. if (this->_internal_tip_limit() != 0) {
  9434. total_size += 2 +
  9435. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9436. this->_internal_tip_limit());
  9437. }
  9438. // int32 turn_left = 20;
  9439. if (this->_internal_turn_left() != 0) {
  9440. total_size += 2 +
  9441. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9442. this->_internal_turn_left());
  9443. }
  9444. // int32 turn_right = 21;
  9445. if (this->_internal_turn_right() != 0) {
  9446. total_size += 2 +
  9447. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9448. this->_internal_turn_right());
  9449. }
  9450. // int32 hight_beam = 22;
  9451. if (this->_internal_hight_beam() != 0) {
  9452. total_size += 2 +
  9453. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9454. this->_internal_hight_beam());
  9455. }
  9456. // int32 low_beam = 23;
  9457. if (this->_internal_low_beam() != 0) {
  9458. total_size += 2 +
  9459. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9460. this->_internal_low_beam());
  9461. }
  9462. // int32 parking = 24;
  9463. if (this->_internal_parking() != 0) {
  9464. total_size += 2 +
  9465. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9466. this->_internal_parking());
  9467. }
  9468. // int32 brake = 25;
  9469. if (this->_internal_brake() != 0) {
  9470. total_size += 2 +
  9471. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9472. this->_internal_brake());
  9473. }
  9474. // int32 back_car = 26;
  9475. if (this->_internal_back_car() != 0) {
  9476. total_size += 2 +
  9477. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9478. this->_internal_back_car());
  9479. }
  9480. // int32 front_work_lamp = 27;
  9481. if (this->_internal_front_work_lamp() != 0) {
  9482. total_size += 2 +
  9483. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9484. this->_internal_front_work_lamp());
  9485. }
  9486. // int32 rear_work_lamp = 28;
  9487. if (this->_internal_rear_work_lamp() != 0) {
  9488. total_size += 2 +
  9489. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9490. this->_internal_rear_work_lamp());
  9491. }
  9492. // int32 cargo_weight = 29;
  9493. if (this->_internal_cargo_weight() != 0) {
  9494. total_size += 2 +
  9495. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9496. this->_internal_cargo_weight());
  9497. }
  9498. // int32 system_vol = 30;
  9499. if (this->_internal_system_vol() != 0) {
  9500. total_size += 2 +
  9501. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9502. this->_internal_system_vol());
  9503. }
  9504. // int32 f_gear = 32;
  9505. if (this->_internal_f_gear() != 0) {
  9506. total_size += 2 +
  9507. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9508. this->_internal_f_gear());
  9509. }
  9510. // int32 gear_1 = 33;
  9511. if (this->_internal_gear_1() != 0) {
  9512. total_size += 2 +
  9513. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9514. this->_internal_gear_1());
  9515. }
  9516. // int32 outgrigger_l = 34;
  9517. if (this->_internal_outgrigger_l() != 0) {
  9518. total_size += 2 +
  9519. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9520. this->_internal_outgrigger_l());
  9521. }
  9522. // int32 outgrigger_r = 35;
  9523. if (this->_internal_outgrigger_r() != 0) {
  9524. total_size += 2 +
  9525. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9526. this->_internal_outgrigger_r());
  9527. }
  9528. // int32 tip_pressure = 36;
  9529. if (this->_internal_tip_pressure() != 0) {
  9530. total_size += 2 +
  9531. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9532. this->_internal_tip_pressure());
  9533. }
  9534. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  9535. }
  9536. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData State::_class_data_ = {
  9537. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  9538. State::MergeImpl
  9539. };
  9540. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*State::GetClassData() const { return &_class_data_; }
  9541. void State::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  9542. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  9543. static_cast<State *>(to)->MergeFrom(
  9544. static_cast<const State &>(from));
  9545. }
  9546. void State::MergeFrom(const State& from) {
  9547. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.State)
  9548. GOOGLE_DCHECK_NE(&from, this);
  9549. uint32_t cached_has_bits = 0;
  9550. (void) cached_has_bits;
  9551. if (!from._internal_error_buff().empty()) {
  9552. _internal_set_error_buff(from._internal_error_buff());
  9553. }
  9554. if (from._internal_work_pressure() != 0) {
  9555. _internal_set_work_pressure(from._internal_work_pressure());
  9556. }
  9557. if (from._internal_brake_pressure() != 0) {
  9558. _internal_set_brake_pressure(from._internal_brake_pressure());
  9559. }
  9560. if (from._internal_gearbox_oil_temp() != 0) {
  9561. _internal_set_gearbox_oil_temp(from._internal_gearbox_oil_temp());
  9562. }
  9563. if (from._internal_gearbox_oil_pressure() != 0) {
  9564. _internal_set_gearbox_oil_pressure(from._internal_gearbox_oil_pressure());
  9565. }
  9566. if (from._internal_engine_rpm() != 0) {
  9567. _internal_set_engine_rpm(from._internal_engine_rpm());
  9568. }
  9569. if (from._internal_speed() != 0) {
  9570. _internal_set_speed(from._internal_speed());
  9571. }
  9572. if (from._internal_gear() != 0) {
  9573. _internal_set_gear(from._internal_gear());
  9574. }
  9575. if (from._internal_engine_pressure() != 0) {
  9576. _internal_set_engine_pressure(from._internal_engine_pressure());
  9577. }
  9578. if (from._internal_cold_water() != 0) {
  9579. _internal_set_cold_water(from._internal_cold_water());
  9580. }
  9581. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  9582. float tmp_steer_angle = from._internal_steer_angle();
  9583. uint32_t raw_steer_angle;
  9584. memcpy(&raw_steer_angle, &tmp_steer_angle, sizeof(tmp_steer_angle));
  9585. if (raw_steer_angle != 0) {
  9586. _internal_set_steer_angle(from._internal_steer_angle());
  9587. }
  9588. if (from._internal_left_lock() != 0) {
  9589. _internal_set_left_lock(from._internal_left_lock());
  9590. }
  9591. if (from._internal_right_lock() != 0) {
  9592. _internal_set_right_lock(from._internal_right_lock());
  9593. }
  9594. if (from._internal_engine_time() != 0) {
  9595. _internal_set_engine_time(from._internal_engine_time());
  9596. }
  9597. if (from._internal_wire_sensor_l() != 0) {
  9598. _internal_set_wire_sensor_l(from._internal_wire_sensor_l());
  9599. }
  9600. if (from._internal_wire_sensor_r() != 0) {
  9601. _internal_set_wire_sensor_r(from._internal_wire_sensor_r());
  9602. }
  9603. if (from._internal_fuel_level() != 0) {
  9604. _internal_set_fuel_level(from._internal_fuel_level());
  9605. }
  9606. if (from._internal_lock_switch_l() != 0) {
  9607. _internal_set_lock_switch_l(from._internal_lock_switch_l());
  9608. }
  9609. if (from._internal_lock_switch_r() != 0) {
  9610. _internal_set_lock_switch_r(from._internal_lock_switch_r());
  9611. }
  9612. if (from._internal_tip_limit() != 0) {
  9613. _internal_set_tip_limit(from._internal_tip_limit());
  9614. }
  9615. if (from._internal_turn_left() != 0) {
  9616. _internal_set_turn_left(from._internal_turn_left());
  9617. }
  9618. if (from._internal_turn_right() != 0) {
  9619. _internal_set_turn_right(from._internal_turn_right());
  9620. }
  9621. if (from._internal_hight_beam() != 0) {
  9622. _internal_set_hight_beam(from._internal_hight_beam());
  9623. }
  9624. if (from._internal_low_beam() != 0) {
  9625. _internal_set_low_beam(from._internal_low_beam());
  9626. }
  9627. if (from._internal_parking() != 0) {
  9628. _internal_set_parking(from._internal_parking());
  9629. }
  9630. if (from._internal_brake() != 0) {
  9631. _internal_set_brake(from._internal_brake());
  9632. }
  9633. if (from._internal_back_car() != 0) {
  9634. _internal_set_back_car(from._internal_back_car());
  9635. }
  9636. if (from._internal_front_work_lamp() != 0) {
  9637. _internal_set_front_work_lamp(from._internal_front_work_lamp());
  9638. }
  9639. if (from._internal_rear_work_lamp() != 0) {
  9640. _internal_set_rear_work_lamp(from._internal_rear_work_lamp());
  9641. }
  9642. if (from._internal_cargo_weight() != 0) {
  9643. _internal_set_cargo_weight(from._internal_cargo_weight());
  9644. }
  9645. if (from._internal_system_vol() != 0) {
  9646. _internal_set_system_vol(from._internal_system_vol());
  9647. }
  9648. if (from._internal_f_gear() != 0) {
  9649. _internal_set_f_gear(from._internal_f_gear());
  9650. }
  9651. if (from._internal_gear_1() != 0) {
  9652. _internal_set_gear_1(from._internal_gear_1());
  9653. }
  9654. if (from._internal_outgrigger_l() != 0) {
  9655. _internal_set_outgrigger_l(from._internal_outgrigger_l());
  9656. }
  9657. if (from._internal_outgrigger_r() != 0) {
  9658. _internal_set_outgrigger_r(from._internal_outgrigger_r());
  9659. }
  9660. if (from._internal_tip_pressure() != 0) {
  9661. _internal_set_tip_pressure(from._internal_tip_pressure());
  9662. }
  9663. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  9664. }
  9665. void State::CopyFrom(const State& from) {
  9666. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.State)
  9667. if (&from == this) return;
  9668. Clear();
  9669. MergeFrom(from);
  9670. }
  9671. bool State::IsInitialized() const {
  9672. return true;
  9673. }
  9674. void State::InternalSwap(State* other) {
  9675. using std::swap;
  9676. auto* lhs_arena = GetArenaForAllocation();
  9677. auto* rhs_arena = other->GetArenaForAllocation();
  9678. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  9679. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  9680. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  9681. &error_buff_, lhs_arena,
  9682. &other->error_buff_, rhs_arena
  9683. );
  9684. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  9685. PROTOBUF_FIELD_OFFSET(State, tip_pressure_)
  9686. + sizeof(State::tip_pressure_)
  9687. - PROTOBUF_FIELD_OFFSET(State, work_pressure_)>(
  9688. reinterpret_cast<char*>(&work_pressure_),
  9689. reinterpret_cast<char*>(&other->work_pressure_));
  9690. }
  9691. ::PROTOBUF_NAMESPACE_ID::Metadata State::GetMetadata() const {
  9692. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  9693. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  9694. file_level_metadata_protocol_2eproto[39]);
  9695. }
  9696. // ===================================================================
  9697. class can_net_frame::_Internal {
  9698. public:
  9699. };
  9700. can_net_frame::can_net_frame(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  9701. bool is_message_owned)
  9702. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  9703. SharedCtor();
  9704. if (!is_message_owned) {
  9705. RegisterArenaDtor(arena);
  9706. }
  9707. // @@protoc_insertion_point(arena_constructor:RemoNet.can_net_frame)
  9708. }
  9709. can_net_frame::can_net_frame(const can_net_frame& from)
  9710. : ::PROTOBUF_NAMESPACE_ID::Message() {
  9711. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  9712. data_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  9713. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9714. data_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  9715. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9716. if (!from._internal_data().empty()) {
  9717. data_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_data(),
  9718. GetArenaForAllocation());
  9719. }
  9720. ::memcpy(&dlc_, &from.dlc_,
  9721. static_cast<size_t>(reinterpret_cast<char*>(&canid_) -
  9722. reinterpret_cast<char*>(&dlc_)) + sizeof(canid_));
  9723. // @@protoc_insertion_point(copy_constructor:RemoNet.can_net_frame)
  9724. }
  9725. inline void can_net_frame::SharedCtor() {
  9726. data_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  9727. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9728. data_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  9729. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9730. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  9731. reinterpret_cast<char*>(&dlc_) - reinterpret_cast<char*>(this)),
  9732. 0, static_cast<size_t>(reinterpret_cast<char*>(&canid_) -
  9733. reinterpret_cast<char*>(&dlc_)) + sizeof(canid_));
  9734. }
  9735. can_net_frame::~can_net_frame() {
  9736. // @@protoc_insertion_point(destructor:RemoNet.can_net_frame)
  9737. if (GetArenaForAllocation() != nullptr) return;
  9738. SharedDtor();
  9739. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  9740. }
  9741. inline void can_net_frame::SharedDtor() {
  9742. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  9743. data_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  9744. }
  9745. void can_net_frame::ArenaDtor(void* object) {
  9746. can_net_frame* _this = reinterpret_cast< can_net_frame* >(object);
  9747. (void)_this;
  9748. }
  9749. void can_net_frame::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  9750. }
  9751. void can_net_frame::SetCachedSize(int size) const {
  9752. _cached_size_.Set(size);
  9753. }
  9754. void can_net_frame::Clear() {
  9755. // @@protoc_insertion_point(message_clear_start:RemoNet.can_net_frame)
  9756. uint32_t cached_has_bits = 0;
  9757. // Prevent compiler warnings about cached_has_bits being unused
  9758. (void) cached_has_bits;
  9759. data_.ClearToEmpty();
  9760. ::memset(&dlc_, 0, static_cast<size_t>(
  9761. reinterpret_cast<char*>(&canid_) -
  9762. reinterpret_cast<char*>(&dlc_)) + sizeof(canid_));
  9763. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  9764. }
  9765. const char* can_net_frame::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  9766. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  9767. while (!ctx->Done(&ptr)) {
  9768. uint32_t tag;
  9769. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  9770. switch (tag >> 3) {
  9771. // sint32 dlc = 1;
  9772. case 1:
  9773. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  9774. dlc_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarintZigZag32(&ptr);
  9775. CHK_(ptr);
  9776. } else
  9777. goto handle_unusual;
  9778. continue;
  9779. // int32 canid = 2;
  9780. case 2:
  9781. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  9782. canid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9783. CHK_(ptr);
  9784. } else
  9785. goto handle_unusual;
  9786. continue;
  9787. // bytes data = 3;
  9788. case 3:
  9789. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
  9790. auto str = _internal_mutable_data();
  9791. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  9792. CHK_(ptr);
  9793. } else
  9794. goto handle_unusual;
  9795. continue;
  9796. default:
  9797. goto handle_unusual;
  9798. } // switch
  9799. handle_unusual:
  9800. if ((tag == 0) || ((tag & 7) == 4)) {
  9801. CHK_(ptr);
  9802. ctx->SetLastTag(tag);
  9803. goto message_done;
  9804. }
  9805. ptr = UnknownFieldParse(
  9806. tag,
  9807. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  9808. ptr, ctx);
  9809. CHK_(ptr != nullptr);
  9810. } // while
  9811. message_done:
  9812. return ptr;
  9813. failure:
  9814. ptr = nullptr;
  9815. goto message_done;
  9816. #undef CHK_
  9817. }
  9818. uint8_t* can_net_frame::_InternalSerialize(
  9819. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  9820. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.can_net_frame)
  9821. uint32_t cached_has_bits = 0;
  9822. (void) cached_has_bits;
  9823. // sint32 dlc = 1;
  9824. if (this->_internal_dlc() != 0) {
  9825. target = stream->EnsureSpace(target);
  9826. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteSInt32ToArray(1, this->_internal_dlc(), target);
  9827. }
  9828. // int32 canid = 2;
  9829. if (this->_internal_canid() != 0) {
  9830. target = stream->EnsureSpace(target);
  9831. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_canid(), target);
  9832. }
  9833. // bytes data = 3;
  9834. if (!this->_internal_data().empty()) {
  9835. target = stream->WriteBytesMaybeAliased(
  9836. 3, this->_internal_data(), target);
  9837. }
  9838. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  9839. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  9840. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  9841. }
  9842. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.can_net_frame)
  9843. return target;
  9844. }
  9845. size_t can_net_frame::ByteSizeLong() const {
  9846. // @@protoc_insertion_point(message_byte_size_start:RemoNet.can_net_frame)
  9847. size_t total_size = 0;
  9848. uint32_t cached_has_bits = 0;
  9849. // Prevent compiler warnings about cached_has_bits being unused
  9850. (void) cached_has_bits;
  9851. // bytes data = 3;
  9852. if (!this->_internal_data().empty()) {
  9853. total_size += 1 +
  9854. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
  9855. this->_internal_data());
  9856. }
  9857. // sint32 dlc = 1;
  9858. if (this->_internal_dlc() != 0) {
  9859. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SInt32SizePlusOne(this->_internal_dlc());
  9860. }
  9861. // int32 canid = 2;
  9862. if (this->_internal_canid() != 0) {
  9863. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_canid());
  9864. }
  9865. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  9866. }
  9867. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData can_net_frame::_class_data_ = {
  9868. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  9869. can_net_frame::MergeImpl
  9870. };
  9871. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*can_net_frame::GetClassData() const { return &_class_data_; }
  9872. void can_net_frame::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  9873. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  9874. static_cast<can_net_frame *>(to)->MergeFrom(
  9875. static_cast<const can_net_frame &>(from));
  9876. }
  9877. void can_net_frame::MergeFrom(const can_net_frame& from) {
  9878. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.can_net_frame)
  9879. GOOGLE_DCHECK_NE(&from, this);
  9880. uint32_t cached_has_bits = 0;
  9881. (void) cached_has_bits;
  9882. if (!from._internal_data().empty()) {
  9883. _internal_set_data(from._internal_data());
  9884. }
  9885. if (from._internal_dlc() != 0) {
  9886. _internal_set_dlc(from._internal_dlc());
  9887. }
  9888. if (from._internal_canid() != 0) {
  9889. _internal_set_canid(from._internal_canid());
  9890. }
  9891. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  9892. }
  9893. void can_net_frame::CopyFrom(const can_net_frame& from) {
  9894. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.can_net_frame)
  9895. if (&from == this) return;
  9896. Clear();
  9897. MergeFrom(from);
  9898. }
  9899. bool can_net_frame::IsInitialized() const {
  9900. return true;
  9901. }
  9902. void can_net_frame::InternalSwap(can_net_frame* other) {
  9903. using std::swap;
  9904. auto* lhs_arena = GetArenaForAllocation();
  9905. auto* rhs_arena = other->GetArenaForAllocation();
  9906. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  9907. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  9908. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  9909. &data_, lhs_arena,
  9910. &other->data_, rhs_arena
  9911. );
  9912. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  9913. PROTOBUF_FIELD_OFFSET(can_net_frame, canid_)
  9914. + sizeof(can_net_frame::canid_)
  9915. - PROTOBUF_FIELD_OFFSET(can_net_frame, dlc_)>(
  9916. reinterpret_cast<char*>(&dlc_),
  9917. reinterpret_cast<char*>(&other->dlc_));
  9918. }
  9919. ::PROTOBUF_NAMESPACE_ID::Metadata can_net_frame::GetMetadata() const {
  9920. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  9921. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  9922. file_level_metadata_protocol_2eproto[40]);
  9923. }
  9924. // ===================================================================
  9925. class CCCanMsg::_Internal {
  9926. public:
  9927. };
  9928. CCCanMsg::CCCanMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  9929. bool is_message_owned)
  9930. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
  9931. frams_(arena) {
  9932. SharedCtor();
  9933. if (!is_message_owned) {
  9934. RegisterArenaDtor(arena);
  9935. }
  9936. // @@protoc_insertion_point(arena_constructor:RemoNet.CCCanMsg)
  9937. }
  9938. CCCanMsg::CCCanMsg(const CCCanMsg& from)
  9939. : ::PROTOBUF_NAMESPACE_ID::Message(),
  9940. frams_(from.frams_) {
  9941. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  9942. // @@protoc_insertion_point(copy_constructor:RemoNet.CCCanMsg)
  9943. }
  9944. inline void CCCanMsg::SharedCtor() {
  9945. }
  9946. CCCanMsg::~CCCanMsg() {
  9947. // @@protoc_insertion_point(destructor:RemoNet.CCCanMsg)
  9948. if (GetArenaForAllocation() != nullptr) return;
  9949. SharedDtor();
  9950. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  9951. }
  9952. inline void CCCanMsg::SharedDtor() {
  9953. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  9954. }
  9955. void CCCanMsg::ArenaDtor(void* object) {
  9956. CCCanMsg* _this = reinterpret_cast< CCCanMsg* >(object);
  9957. (void)_this;
  9958. }
  9959. void CCCanMsg::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  9960. }
  9961. void CCCanMsg::SetCachedSize(int size) const {
  9962. _cached_size_.Set(size);
  9963. }
  9964. void CCCanMsg::Clear() {
  9965. // @@protoc_insertion_point(message_clear_start:RemoNet.CCCanMsg)
  9966. uint32_t cached_has_bits = 0;
  9967. // Prevent compiler warnings about cached_has_bits being unused
  9968. (void) cached_has_bits;
  9969. frams_.Clear();
  9970. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  9971. }
  9972. const char* CCCanMsg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  9973. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  9974. while (!ctx->Done(&ptr)) {
  9975. uint32_t tag;
  9976. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  9977. switch (tag >> 3) {
  9978. // repeated .RemoNet.can_net_frame frams = 1;
  9979. case 1:
  9980. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
  9981. ptr -= 1;
  9982. do {
  9983. ptr += 1;
  9984. ptr = ctx->ParseMessage(_internal_add_frams(), ptr);
  9985. CHK_(ptr);
  9986. if (!ctx->DataAvailable(ptr)) break;
  9987. } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
  9988. } else
  9989. goto handle_unusual;
  9990. continue;
  9991. default:
  9992. goto handle_unusual;
  9993. } // switch
  9994. handle_unusual:
  9995. if ((tag == 0) || ((tag & 7) == 4)) {
  9996. CHK_(ptr);
  9997. ctx->SetLastTag(tag);
  9998. goto message_done;
  9999. }
  10000. ptr = UnknownFieldParse(
  10001. tag,
  10002. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  10003. ptr, ctx);
  10004. CHK_(ptr != nullptr);
  10005. } // while
  10006. message_done:
  10007. return ptr;
  10008. failure:
  10009. ptr = nullptr;
  10010. goto message_done;
  10011. #undef CHK_
  10012. }
  10013. uint8_t* CCCanMsg::_InternalSerialize(
  10014. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  10015. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CCCanMsg)
  10016. uint32_t cached_has_bits = 0;
  10017. (void) cached_has_bits;
  10018. // repeated .RemoNet.can_net_frame frams = 1;
  10019. for (unsigned int i = 0,
  10020. n = static_cast<unsigned int>(this->_internal_frams_size()); i < n; i++) {
  10021. target = stream->EnsureSpace(target);
  10022. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  10023. InternalWriteMessage(1, this->_internal_frams(i), target, stream);
  10024. }
  10025. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  10026. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  10027. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  10028. }
  10029. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CCCanMsg)
  10030. return target;
  10031. }
  10032. size_t CCCanMsg::ByteSizeLong() const {
  10033. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CCCanMsg)
  10034. size_t total_size = 0;
  10035. uint32_t cached_has_bits = 0;
  10036. // Prevent compiler warnings about cached_has_bits being unused
  10037. (void) cached_has_bits;
  10038. // repeated .RemoNet.can_net_frame frams = 1;
  10039. total_size += 1UL * this->_internal_frams_size();
  10040. for (const auto& msg : this->frams_) {
  10041. total_size +=
  10042. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  10043. }
  10044. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  10045. }
  10046. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CCCanMsg::_class_data_ = {
  10047. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  10048. CCCanMsg::MergeImpl
  10049. };
  10050. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CCCanMsg::GetClassData() const { return &_class_data_; }
  10051. void CCCanMsg::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  10052. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  10053. static_cast<CCCanMsg *>(to)->MergeFrom(
  10054. static_cast<const CCCanMsg &>(from));
  10055. }
  10056. void CCCanMsg::MergeFrom(const CCCanMsg& from) {
  10057. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CCCanMsg)
  10058. GOOGLE_DCHECK_NE(&from, this);
  10059. uint32_t cached_has_bits = 0;
  10060. (void) cached_has_bits;
  10061. frams_.MergeFrom(from.frams_);
  10062. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  10063. }
  10064. void CCCanMsg::CopyFrom(const CCCanMsg& from) {
  10065. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CCCanMsg)
  10066. if (&from == this) return;
  10067. Clear();
  10068. MergeFrom(from);
  10069. }
  10070. bool CCCanMsg::IsInitialized() const {
  10071. return true;
  10072. }
  10073. void CCCanMsg::InternalSwap(CCCanMsg* other) {
  10074. using std::swap;
  10075. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  10076. frams_.InternalSwap(&other->frams_);
  10077. }
  10078. ::PROTOBUF_NAMESPACE_ID::Metadata CCCanMsg::GetMetadata() const {
  10079. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  10080. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  10081. file_level_metadata_protocol_2eproto[41]);
  10082. }
  10083. // ===================================================================
  10084. class vehicle_data::_Internal {
  10085. public:
  10086. };
  10087. vehicle_data::vehicle_data(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  10088. bool is_message_owned)
  10089. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  10090. SharedCtor();
  10091. if (!is_message_owned) {
  10092. RegisterArenaDtor(arena);
  10093. }
  10094. // @@protoc_insertion_point(arena_constructor:RemoNet.vehicle_data)
  10095. }
  10096. vehicle_data::vehicle_data(const vehicle_data& from)
  10097. : ::PROTOBUF_NAMESPACE_ID::Message() {
  10098. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  10099. dlc_ = from.dlc_;
  10100. // @@protoc_insertion_point(copy_constructor:RemoNet.vehicle_data)
  10101. }
  10102. inline void vehicle_data::SharedCtor() {
  10103. dlc_ = 0;
  10104. }
  10105. vehicle_data::~vehicle_data() {
  10106. // @@protoc_insertion_point(destructor:RemoNet.vehicle_data)
  10107. if (GetArenaForAllocation() != nullptr) return;
  10108. SharedDtor();
  10109. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  10110. }
  10111. inline void vehicle_data::SharedDtor() {
  10112. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  10113. }
  10114. void vehicle_data::ArenaDtor(void* object) {
  10115. vehicle_data* _this = reinterpret_cast< vehicle_data* >(object);
  10116. (void)_this;
  10117. }
  10118. void vehicle_data::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  10119. }
  10120. void vehicle_data::SetCachedSize(int size) const {
  10121. _cached_size_.Set(size);
  10122. }
  10123. void vehicle_data::Clear() {
  10124. // @@protoc_insertion_point(message_clear_start:RemoNet.vehicle_data)
  10125. uint32_t cached_has_bits = 0;
  10126. // Prevent compiler warnings about cached_has_bits being unused
  10127. (void) cached_has_bits;
  10128. dlc_ = 0;
  10129. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  10130. }
  10131. const char* vehicle_data::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  10132. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  10133. while (!ctx->Done(&ptr)) {
  10134. uint32_t tag;
  10135. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  10136. switch (tag >> 3) {
  10137. // sint32 dlc = 1;
  10138. case 1:
  10139. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  10140. dlc_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarintZigZag32(&ptr);
  10141. CHK_(ptr);
  10142. } else
  10143. goto handle_unusual;
  10144. continue;
  10145. default:
  10146. goto handle_unusual;
  10147. } // switch
  10148. handle_unusual:
  10149. if ((tag == 0) || ((tag & 7) == 4)) {
  10150. CHK_(ptr);
  10151. ctx->SetLastTag(tag);
  10152. goto message_done;
  10153. }
  10154. ptr = UnknownFieldParse(
  10155. tag,
  10156. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  10157. ptr, ctx);
  10158. CHK_(ptr != nullptr);
  10159. } // while
  10160. message_done:
  10161. return ptr;
  10162. failure:
  10163. ptr = nullptr;
  10164. goto message_done;
  10165. #undef CHK_
  10166. }
  10167. uint8_t* vehicle_data::_InternalSerialize(
  10168. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  10169. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.vehicle_data)
  10170. uint32_t cached_has_bits = 0;
  10171. (void) cached_has_bits;
  10172. // sint32 dlc = 1;
  10173. if (this->_internal_dlc() != 0) {
  10174. target = stream->EnsureSpace(target);
  10175. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteSInt32ToArray(1, this->_internal_dlc(), target);
  10176. }
  10177. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  10178. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  10179. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  10180. }
  10181. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.vehicle_data)
  10182. return target;
  10183. }
  10184. size_t vehicle_data::ByteSizeLong() const {
  10185. // @@protoc_insertion_point(message_byte_size_start:RemoNet.vehicle_data)
  10186. size_t total_size = 0;
  10187. uint32_t cached_has_bits = 0;
  10188. // Prevent compiler warnings about cached_has_bits being unused
  10189. (void) cached_has_bits;
  10190. // sint32 dlc = 1;
  10191. if (this->_internal_dlc() != 0) {
  10192. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SInt32SizePlusOne(this->_internal_dlc());
  10193. }
  10194. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  10195. }
  10196. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData vehicle_data::_class_data_ = {
  10197. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  10198. vehicle_data::MergeImpl
  10199. };
  10200. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*vehicle_data::GetClassData() const { return &_class_data_; }
  10201. void vehicle_data::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  10202. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  10203. static_cast<vehicle_data *>(to)->MergeFrom(
  10204. static_cast<const vehicle_data &>(from));
  10205. }
  10206. void vehicle_data::MergeFrom(const vehicle_data& from) {
  10207. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.vehicle_data)
  10208. GOOGLE_DCHECK_NE(&from, this);
  10209. uint32_t cached_has_bits = 0;
  10210. (void) cached_has_bits;
  10211. if (from._internal_dlc() != 0) {
  10212. _internal_set_dlc(from._internal_dlc());
  10213. }
  10214. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  10215. }
  10216. void vehicle_data::CopyFrom(const vehicle_data& from) {
  10217. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.vehicle_data)
  10218. if (&from == this) return;
  10219. Clear();
  10220. MergeFrom(from);
  10221. }
  10222. bool vehicle_data::IsInitialized() const {
  10223. return true;
  10224. }
  10225. void vehicle_data::InternalSwap(vehicle_data* other) {
  10226. using std::swap;
  10227. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  10228. swap(dlc_, other->dlc_);
  10229. }
  10230. ::PROTOBUF_NAMESPACE_ID::Metadata vehicle_data::GetMetadata() const {
  10231. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  10232. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  10233. file_level_metadata_protocol_2eproto[42]);
  10234. }
  10235. // ===================================================================
  10236. class vehicle_QT::_Internal {
  10237. public:
  10238. };
  10239. vehicle_QT::vehicle_QT(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  10240. bool is_message_owned)
  10241. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
  10242. _vehicle_data_(arena) {
  10243. SharedCtor();
  10244. if (!is_message_owned) {
  10245. RegisterArenaDtor(arena);
  10246. }
  10247. // @@protoc_insertion_point(arena_constructor:RemoNet.vehicle_QT)
  10248. }
  10249. vehicle_QT::vehicle_QT(const vehicle_QT& from)
  10250. : ::PROTOBUF_NAMESPACE_ID::Message(),
  10251. _vehicle_data_(from._vehicle_data_) {
  10252. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  10253. // @@protoc_insertion_point(copy_constructor:RemoNet.vehicle_QT)
  10254. }
  10255. inline void vehicle_QT::SharedCtor() {
  10256. }
  10257. vehicle_QT::~vehicle_QT() {
  10258. // @@protoc_insertion_point(destructor:RemoNet.vehicle_QT)
  10259. if (GetArenaForAllocation() != nullptr) return;
  10260. SharedDtor();
  10261. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  10262. }
  10263. inline void vehicle_QT::SharedDtor() {
  10264. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  10265. }
  10266. void vehicle_QT::ArenaDtor(void* object) {
  10267. vehicle_QT* _this = reinterpret_cast< vehicle_QT* >(object);
  10268. (void)_this;
  10269. }
  10270. void vehicle_QT::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  10271. }
  10272. void vehicle_QT::SetCachedSize(int size) const {
  10273. _cached_size_.Set(size);
  10274. }
  10275. void vehicle_QT::Clear() {
  10276. // @@protoc_insertion_point(message_clear_start:RemoNet.vehicle_QT)
  10277. uint32_t cached_has_bits = 0;
  10278. // Prevent compiler warnings about cached_has_bits being unused
  10279. (void) cached_has_bits;
  10280. _vehicle_data_.Clear();
  10281. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  10282. }
  10283. const char* vehicle_QT::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  10284. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  10285. while (!ctx->Done(&ptr)) {
  10286. uint32_t tag;
  10287. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  10288. switch (tag >> 3) {
  10289. // repeated .RemoNet.vehicle_data _vehicle_data = 1;
  10290. case 1:
  10291. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
  10292. ptr -= 1;
  10293. do {
  10294. ptr += 1;
  10295. ptr = ctx->ParseMessage(_internal_add__vehicle_data(), ptr);
  10296. CHK_(ptr);
  10297. if (!ctx->DataAvailable(ptr)) break;
  10298. } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
  10299. } else
  10300. goto handle_unusual;
  10301. continue;
  10302. default:
  10303. goto handle_unusual;
  10304. } // switch
  10305. handle_unusual:
  10306. if ((tag == 0) || ((tag & 7) == 4)) {
  10307. CHK_(ptr);
  10308. ctx->SetLastTag(tag);
  10309. goto message_done;
  10310. }
  10311. ptr = UnknownFieldParse(
  10312. tag,
  10313. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  10314. ptr, ctx);
  10315. CHK_(ptr != nullptr);
  10316. } // while
  10317. message_done:
  10318. return ptr;
  10319. failure:
  10320. ptr = nullptr;
  10321. goto message_done;
  10322. #undef CHK_
  10323. }
  10324. uint8_t* vehicle_QT::_InternalSerialize(
  10325. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  10326. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.vehicle_QT)
  10327. uint32_t cached_has_bits = 0;
  10328. (void) cached_has_bits;
  10329. // repeated .RemoNet.vehicle_data _vehicle_data = 1;
  10330. for (unsigned int i = 0,
  10331. n = static_cast<unsigned int>(this->_internal__vehicle_data_size()); i < n; i++) {
  10332. target = stream->EnsureSpace(target);
  10333. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  10334. InternalWriteMessage(1, this->_internal__vehicle_data(i), target, stream);
  10335. }
  10336. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  10337. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  10338. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  10339. }
  10340. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.vehicle_QT)
  10341. return target;
  10342. }
  10343. size_t vehicle_QT::ByteSizeLong() const {
  10344. // @@protoc_insertion_point(message_byte_size_start:RemoNet.vehicle_QT)
  10345. size_t total_size = 0;
  10346. uint32_t cached_has_bits = 0;
  10347. // Prevent compiler warnings about cached_has_bits being unused
  10348. (void) cached_has_bits;
  10349. // repeated .RemoNet.vehicle_data _vehicle_data = 1;
  10350. total_size += 1UL * this->_internal__vehicle_data_size();
  10351. for (const auto& msg : this->_vehicle_data_) {
  10352. total_size +=
  10353. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  10354. }
  10355. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  10356. }
  10357. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData vehicle_QT::_class_data_ = {
  10358. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  10359. vehicle_QT::MergeImpl
  10360. };
  10361. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*vehicle_QT::GetClassData() const { return &_class_data_; }
  10362. void vehicle_QT::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  10363. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  10364. static_cast<vehicle_QT *>(to)->MergeFrom(
  10365. static_cast<const vehicle_QT &>(from));
  10366. }
  10367. void vehicle_QT::MergeFrom(const vehicle_QT& from) {
  10368. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.vehicle_QT)
  10369. GOOGLE_DCHECK_NE(&from, this);
  10370. uint32_t cached_has_bits = 0;
  10371. (void) cached_has_bits;
  10372. _vehicle_data_.MergeFrom(from._vehicle_data_);
  10373. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  10374. }
  10375. void vehicle_QT::CopyFrom(const vehicle_QT& from) {
  10376. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.vehicle_QT)
  10377. if (&from == this) return;
  10378. Clear();
  10379. MergeFrom(from);
  10380. }
  10381. bool vehicle_QT::IsInitialized() const {
  10382. return true;
  10383. }
  10384. void vehicle_QT::InternalSwap(vehicle_QT* other) {
  10385. using std::swap;
  10386. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  10387. _vehicle_data_.InternalSwap(&other->_vehicle_data_);
  10388. }
  10389. ::PROTOBUF_NAMESPACE_ID::Metadata vehicle_QT::GetMetadata() const {
  10390. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  10391. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  10392. file_level_metadata_protocol_2eproto[43]);
  10393. }
  10394. // @@protoc_insertion_point(namespace_scope)
  10395. } // namespace RemoNet
  10396. PROTOBUF_NAMESPACE_OPEN
  10397. template<> PROTOBUF_NOINLINE ::RemoNet::CSAdd* Arena::CreateMaybeMessage< ::RemoNet::CSAdd >(Arena* arena) {
  10398. return Arena::CreateMessageInternal< ::RemoNet::CSAdd >(arena);
  10399. }
  10400. template<> PROTOBUF_NOINLINE ::RemoNet::SCAdd* Arena::CreateMaybeMessage< ::RemoNet::SCAdd >(Arena* arena) {
  10401. return Arena::CreateMessageInternal< ::RemoNet::SCAdd >(arena);
  10402. }
  10403. template<> PROTOBUF_NOINLINE ::RemoNet::SCKickOff* Arena::CreateMaybeMessage< ::RemoNet::SCKickOff >(Arena* arena) {
  10404. return Arena::CreateMessageInternal< ::RemoNet::SCKickOff >(arena);
  10405. }
  10406. template<> PROTOBUF_NOINLINE ::RemoNet::Robot* Arena::CreateMaybeMessage< ::RemoNet::Robot >(Arena* arena) {
  10407. return Arena::CreateMessageInternal< ::RemoNet::Robot >(arena);
  10408. }
  10409. template<> PROTOBUF_NOINLINE ::RemoNet::CSRobot* Arena::CreateMaybeMessage< ::RemoNet::CSRobot >(Arena* arena) {
  10410. return Arena::CreateMessageInternal< ::RemoNet::CSRobot >(arena);
  10411. }
  10412. template<> PROTOBUF_NOINLINE ::RemoNet::SCRobot* Arena::CreateMaybeMessage< ::RemoNet::SCRobot >(Arena* arena) {
  10413. return Arena::CreateMessageInternal< ::RemoNet::SCRobot >(arena);
  10414. }
  10415. template<> PROTOBUF_NOINLINE ::RemoNet::CSSign* Arena::CreateMaybeMessage< ::RemoNet::CSSign >(Arena* arena) {
  10416. return Arena::CreateMessageInternal< ::RemoNet::CSSign >(arena);
  10417. }
  10418. template<> PROTOBUF_NOINLINE ::RemoNet::SCSign* Arena::CreateMaybeMessage< ::RemoNet::SCSign >(Arena* arena) {
  10419. return Arena::CreateMessageInternal< ::RemoNet::SCSign >(arena);
  10420. }
  10421. template<> PROTOBUF_NOINLINE ::RemoNet::CSReq* Arena::CreateMaybeMessage< ::RemoNet::CSReq >(Arena* arena) {
  10422. return Arena::CreateMessageInternal< ::RemoNet::CSReq >(arena);
  10423. }
  10424. template<> PROTOBUF_NOINLINE ::RemoNet::SCReq* Arena::CreateMaybeMessage< ::RemoNet::SCReq >(Arena* arena) {
  10425. return Arena::CreateMessageInternal< ::RemoNet::SCReq >(arena);
  10426. }
  10427. template<> PROTOBUF_NOINLINE ::RemoNet::CSRep* Arena::CreateMaybeMessage< ::RemoNet::CSRep >(Arena* arena) {
  10428. return Arena::CreateMessageInternal< ::RemoNet::CSRep >(arena);
  10429. }
  10430. template<> PROTOBUF_NOINLINE ::RemoNet::SCRep* Arena::CreateMaybeMessage< ::RemoNet::SCRep >(Arena* arena) {
  10431. return Arena::CreateMessageInternal< ::RemoNet::SCRep >(arena);
  10432. }
  10433. template<> PROTOBUF_NOINLINE ::RemoNet::Offer* Arena::CreateMaybeMessage< ::RemoNet::Offer >(Arena* arena) {
  10434. return Arena::CreateMessageInternal< ::RemoNet::Offer >(arena);
  10435. }
  10436. template<> PROTOBUF_NOINLINE ::RemoNet::Answer* Arena::CreateMaybeMessage< ::RemoNet::Answer >(Arena* arena) {
  10437. return Arena::CreateMessageInternal< ::RemoNet::Answer >(arena);
  10438. }
  10439. template<> PROTOBUF_NOINLINE ::RemoNet::Candidate* Arena::CreateMaybeMessage< ::RemoNet::Candidate >(Arena* arena) {
  10440. return Arena::CreateMessageInternal< ::RemoNet::Candidate >(arena);
  10441. }
  10442. template<> PROTOBUF_NOINLINE ::RemoNet::Leave* Arena::CreateMaybeMessage< ::RemoNet::Leave >(Arena* arena) {
  10443. return Arena::CreateMessageInternal< ::RemoNet::Leave >(arena);
  10444. }
  10445. template<> PROTOBUF_NOINLINE ::RemoNet::Close* Arena::CreateMaybeMessage< ::RemoNet::Close >(Arena* arena) {
  10446. return Arena::CreateMessageInternal< ::RemoNet::Close >(arena);
  10447. }
  10448. template<> PROTOBUF_NOINLINE ::RemoNet::TestTextReq* Arena::CreateMaybeMessage< ::RemoNet::TestTextReq >(Arena* arena) {
  10449. return Arena::CreateMessageInternal< ::RemoNet::TestTextReq >(arena);
  10450. }
  10451. template<> PROTOBUF_NOINLINE ::RemoNet::CanMessage* Arena::CreateMaybeMessage< ::RemoNet::CanMessage >(Arena* arena) {
  10452. return Arena::CreateMessageInternal< ::RemoNet::CanMessage >(arena);
  10453. }
  10454. template<> PROTOBUF_NOINLINE ::RemoNet::CCCanMesage* Arena::CreateMaybeMessage< ::RemoNet::CCCanMesage >(Arena* arena) {
  10455. return Arena::CreateMessageInternal< ::RemoNet::CCCanMesage >(arena);
  10456. }
  10457. template<> PROTOBUF_NOINLINE ::RemoNet::Wiper* Arena::CreateMaybeMessage< ::RemoNet::Wiper >(Arena* arena) {
  10458. return Arena::CreateMessageInternal< ::RemoNet::Wiper >(arena);
  10459. }
  10460. template<> PROTOBUF_NOINLINE ::RemoNet::FrontLight* Arena::CreateMaybeMessage< ::RemoNet::FrontLight >(Arena* arena) {
  10461. return Arena::CreateMessageInternal< ::RemoNet::FrontLight >(arena);
  10462. }
  10463. template<> PROTOBUF_NOINLINE ::RemoNet::BackLight* Arena::CreateMaybeMessage< ::RemoNet::BackLight >(Arena* arena) {
  10464. return Arena::CreateMessageInternal< ::RemoNet::BackLight >(arena);
  10465. }
  10466. template<> PROTOBUF_NOINLINE ::RemoNet::CCAskDataChannel* Arena::CreateMaybeMessage< ::RemoNet::CCAskDataChannel >(Arena* arena) {
  10467. return Arena::CreateMessageInternal< ::RemoNet::CCAskDataChannel >(arena);
  10468. }
  10469. template<> PROTOBUF_NOINLINE ::RemoNet::IMuMessage* Arena::CreateMaybeMessage< ::RemoNet::IMuMessage >(Arena* arena) {
  10470. return Arena::CreateMessageInternal< ::RemoNet::IMuMessage >(arena);
  10471. }
  10472. template<> PROTOBUF_NOINLINE ::RemoNet::CCPing* Arena::CreateMaybeMessage< ::RemoNet::CCPing >(Arena* arena) {
  10473. return Arena::CreateMessageInternal< ::RemoNet::CCPing >(arena);
  10474. }
  10475. template<> PROTOBUF_NOINLINE ::RemoNet::CCRadarMessage* Arena::CreateMaybeMessage< ::RemoNet::CCRadarMessage >(Arena* arena) {
  10476. return Arena::CreateMessageInternal< ::RemoNet::CCRadarMessage >(arena);
  10477. }
  10478. template<> PROTOBUF_NOINLINE ::RemoNet::CCRobotAnalog* Arena::CreateMaybeMessage< ::RemoNet::CCRobotAnalog >(Arena* arena) {
  10479. return Arena::CreateMessageInternal< ::RemoNet::CCRobotAnalog >(arena);
  10480. }
  10481. template<> PROTOBUF_NOINLINE ::RemoNet::CCBootStrapReq* Arena::CreateMaybeMessage< ::RemoNet::CCBootStrapReq >(Arena* arena) {
  10482. return Arena::CreateMessageInternal< ::RemoNet::CCBootStrapReq >(arena);
  10483. }
  10484. template<> PROTOBUF_NOINLINE ::RemoNet::CCBooStrapRep* Arena::CreateMaybeMessage< ::RemoNet::CCBooStrapRep >(Arena* arena) {
  10485. return Arena::CreateMessageInternal< ::RemoNet::CCBooStrapRep >(arena);
  10486. }
  10487. template<> PROTOBUF_NOINLINE ::RemoNet::CCStartupReq* Arena::CreateMaybeMessage< ::RemoNet::CCStartupReq >(Arena* arena) {
  10488. return Arena::CreateMessageInternal< ::RemoNet::CCStartupReq >(arena);
  10489. }
  10490. template<> PROTOBUF_NOINLINE ::RemoNet::CCStartupRep* Arena::CreateMaybeMessage< ::RemoNet::CCStartupRep >(Arena* arena) {
  10491. return Arena::CreateMessageInternal< ::RemoNet::CCStartupRep >(arena);
  10492. }
  10493. template<> PROTOBUF_NOINLINE ::RemoNet::CCSwitch* Arena::CreateMaybeMessage< ::RemoNet::CCSwitch >(Arena* arena) {
  10494. return Arena::CreateMessageInternal< ::RemoNet::CCSwitch >(arena);
  10495. }
  10496. template<> PROTOBUF_NOINLINE ::RemoNet::LidarPoint* Arena::CreateMaybeMessage< ::RemoNet::LidarPoint >(Arena* arena) {
  10497. return Arena::CreateMessageInternal< ::RemoNet::LidarPoint >(arena);
  10498. }
  10499. template<> PROTOBUF_NOINLINE ::RemoNet::SensorStop* Arena::CreateMaybeMessage< ::RemoNet::SensorStop >(Arena* arena) {
  10500. return Arena::CreateMessageInternal< ::RemoNet::SensorStop >(arena);
  10501. }
  10502. template<> PROTOBUF_NOINLINE ::RemoNet::StopAck* Arena::CreateMaybeMessage< ::RemoNet::StopAck >(Arena* arena) {
  10503. return Arena::CreateMessageInternal< ::RemoNet::StopAck >(arena);
  10504. }
  10505. template<> PROTOBUF_NOINLINE ::RemoNet::CCManipulation* Arena::CreateMaybeMessage< ::RemoNet::CCManipulation >(Arena* arena) {
  10506. return Arena::CreateMessageInternal< ::RemoNet::CCManipulation >(arena);
  10507. }
  10508. template<> PROTOBUF_NOINLINE ::RemoNet::SCAddRobot* Arena::CreateMaybeMessage< ::RemoNet::SCAddRobot >(Arena* arena) {
  10509. return Arena::CreateMessageInternal< ::RemoNet::SCAddRobot >(arena);
  10510. }
  10511. template<> PROTOBUF_NOINLINE ::RemoNet::SCDelRobot* Arena::CreateMaybeMessage< ::RemoNet::SCDelRobot >(Arena* arena) {
  10512. return Arena::CreateMessageInternal< ::RemoNet::SCDelRobot >(arena);
  10513. }
  10514. template<> PROTOBUF_NOINLINE ::RemoNet::State* Arena::CreateMaybeMessage< ::RemoNet::State >(Arena* arena) {
  10515. return Arena::CreateMessageInternal< ::RemoNet::State >(arena);
  10516. }
  10517. template<> PROTOBUF_NOINLINE ::RemoNet::can_net_frame* Arena::CreateMaybeMessage< ::RemoNet::can_net_frame >(Arena* arena) {
  10518. return Arena::CreateMessageInternal< ::RemoNet::can_net_frame >(arena);
  10519. }
  10520. template<> PROTOBUF_NOINLINE ::RemoNet::CCCanMsg* Arena::CreateMaybeMessage< ::RemoNet::CCCanMsg >(Arena* arena) {
  10521. return Arena::CreateMessageInternal< ::RemoNet::CCCanMsg >(arena);
  10522. }
  10523. template<> PROTOBUF_NOINLINE ::RemoNet::vehicle_data* Arena::CreateMaybeMessage< ::RemoNet::vehicle_data >(Arena* arena) {
  10524. return Arena::CreateMessageInternal< ::RemoNet::vehicle_data >(arena);
  10525. }
  10526. template<> PROTOBUF_NOINLINE ::RemoNet::vehicle_QT* Arena::CreateMaybeMessage< ::RemoNet::vehicle_QT >(Arena* arena) {
  10527. return Arena::CreateMessageInternal< ::RemoNet::vehicle_QT >(arena);
  10528. }
  10529. PROTOBUF_NAMESPACE_CLOSE
  10530. // @@protoc_insertion_point(global_scope)
  10531. #include <google/protobuf/port_undef.inc>