protocol.pb.cc 337 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603
  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. struct CCRadarMessageDefaultTypeInternal {
  376. constexpr CCRadarMessageDefaultTypeInternal()
  377. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  378. ~CCRadarMessageDefaultTypeInternal() {}
  379. union {
  380. CCRadarMessage _instance;
  381. };
  382. };
  383. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CCRadarMessageDefaultTypeInternal _CCRadarMessage_default_instance_;
  384. constexpr CCRobotAnalog::CCRobotAnalog(
  385. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  386. : steer_(0)
  387. , arm_(0)
  388. , bucket_(0)
  389. , throttle_(0)
  390. , brake_(0)
  391. , gears_(0)
  392. , emergency_(false)
  393. , resume_(false)
  394. , frontlight_(false)
  395. , backlight_(false)
  396. , wipe_(false){}
  397. struct CCRobotAnalogDefaultTypeInternal {
  398. constexpr CCRobotAnalogDefaultTypeInternal()
  399. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  400. ~CCRobotAnalogDefaultTypeInternal() {}
  401. union {
  402. CCRobotAnalog _instance;
  403. };
  404. };
  405. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CCRobotAnalogDefaultTypeInternal _CCRobotAnalog_default_instance_;
  406. constexpr CCBootStrapReq::CCBootStrapReq(
  407. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){}
  408. struct CCBootStrapReqDefaultTypeInternal {
  409. constexpr CCBootStrapReqDefaultTypeInternal()
  410. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  411. ~CCBootStrapReqDefaultTypeInternal() {}
  412. union {
  413. CCBootStrapReq _instance;
  414. };
  415. };
  416. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CCBootStrapReqDefaultTypeInternal _CCBootStrapReq_default_instance_;
  417. constexpr CCBooStrapRep::CCBooStrapRep(
  418. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  419. : ret_(false){}
  420. struct CCBooStrapRepDefaultTypeInternal {
  421. constexpr CCBooStrapRepDefaultTypeInternal()
  422. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  423. ~CCBooStrapRepDefaultTypeInternal() {}
  424. union {
  425. CCBooStrapRep _instance;
  426. };
  427. };
  428. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CCBooStrapRepDefaultTypeInternal _CCBooStrapRep_default_instance_;
  429. constexpr CCStartupReq::CCStartupReq(
  430. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){}
  431. struct CCStartupReqDefaultTypeInternal {
  432. constexpr CCStartupReqDefaultTypeInternal()
  433. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  434. ~CCStartupReqDefaultTypeInternal() {}
  435. union {
  436. CCStartupReq _instance;
  437. };
  438. };
  439. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CCStartupReqDefaultTypeInternal _CCStartupReq_default_instance_;
  440. constexpr CCStartupRep::CCStartupRep(
  441. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  442. : ret_(false){}
  443. struct CCStartupRepDefaultTypeInternal {
  444. constexpr CCStartupRepDefaultTypeInternal()
  445. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  446. ~CCStartupRepDefaultTypeInternal() {}
  447. union {
  448. CCStartupRep _instance;
  449. };
  450. };
  451. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CCStartupRepDefaultTypeInternal _CCStartupRep_default_instance_;
  452. constexpr CCSwitch::CCSwitch(
  453. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  454. : front_(false){}
  455. struct CCSwitchDefaultTypeInternal {
  456. constexpr CCSwitchDefaultTypeInternal()
  457. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  458. ~CCSwitchDefaultTypeInternal() {}
  459. union {
  460. CCSwitch _instance;
  461. };
  462. };
  463. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CCSwitchDefaultTypeInternal _CCSwitch_default_instance_;
  464. constexpr LidarPoint::LidarPoint(
  465. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  466. : data_()
  467. , frame_id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  468. , timestamp_(0)
  469. , seq_(0u)
  470. , height_(0u)
  471. , width_(0u)
  472. , is_dense_(false)
  473. , is_left_(false){}
  474. struct LidarPointDefaultTypeInternal {
  475. constexpr LidarPointDefaultTypeInternal()
  476. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  477. ~LidarPointDefaultTypeInternal() {}
  478. union {
  479. LidarPoint _instance;
  480. };
  481. };
  482. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT LidarPointDefaultTypeInternal _LidarPoint_default_instance_;
  483. constexpr SensorStop::SensorStop(
  484. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){}
  485. struct SensorStopDefaultTypeInternal {
  486. constexpr SensorStopDefaultTypeInternal()
  487. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  488. ~SensorStopDefaultTypeInternal() {}
  489. union {
  490. SensorStop _instance;
  491. };
  492. };
  493. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SensorStopDefaultTypeInternal _SensorStop_default_instance_;
  494. constexpr StopAck::StopAck(
  495. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){}
  496. struct StopAckDefaultTypeInternal {
  497. constexpr StopAckDefaultTypeInternal()
  498. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  499. ~StopAckDefaultTypeInternal() {}
  500. union {
  501. StopAck _instance;
  502. };
  503. };
  504. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT StopAckDefaultTypeInternal _StopAck_default_instance_;
  505. constexpr CCManipulation::CCManipulation(
  506. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  507. : sensor_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  508. , car_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){}
  509. struct CCManipulationDefaultTypeInternal {
  510. constexpr CCManipulationDefaultTypeInternal()
  511. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  512. ~CCManipulationDefaultTypeInternal() {}
  513. union {
  514. CCManipulation _instance;
  515. };
  516. };
  517. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CCManipulationDefaultTypeInternal _CCManipulation_default_instance_;
  518. constexpr SCAddRobot::SCAddRobot(
  519. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  520. : robot_(nullptr){}
  521. struct SCAddRobotDefaultTypeInternal {
  522. constexpr SCAddRobotDefaultTypeInternal()
  523. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  524. ~SCAddRobotDefaultTypeInternal() {}
  525. union {
  526. SCAddRobot _instance;
  527. };
  528. };
  529. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SCAddRobotDefaultTypeInternal _SCAddRobot_default_instance_;
  530. constexpr SCDelRobot::SCDelRobot(
  531. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  532. : peer_(0)
  533. , egotype_(0){}
  534. struct SCDelRobotDefaultTypeInternal {
  535. constexpr SCDelRobotDefaultTypeInternal()
  536. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  537. ~SCDelRobotDefaultTypeInternal() {}
  538. union {
  539. SCDelRobot _instance;
  540. };
  541. };
  542. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SCDelRobotDefaultTypeInternal _SCDelRobot_default_instance_;
  543. } // namespace RemoNet
  544. static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_protocol_2eproto[39];
  545. static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_protocol_2eproto[6];
  546. static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_protocol_2eproto = nullptr;
  547. const uint32_t TableStruct_protocol_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  548. ~0u, // no _has_bits_
  549. PROTOBUF_FIELD_OFFSET(::RemoNet::CSAdd, _internal_metadata_),
  550. ~0u, // no _extensions_
  551. ~0u, // no _oneof_case_
  552. ~0u, // no _weak_field_map_
  553. ~0u, // no _inlined_string_donated_
  554. PROTOBUF_FIELD_OFFSET(::RemoNet::CSAdd, serial_),
  555. PROTOBUF_FIELD_OFFSET(::RemoNet::CSAdd, type_),
  556. PROTOBUF_FIELD_OFFSET(::RemoNet::CSAdd, name_),
  557. ~0u, // no _has_bits_
  558. PROTOBUF_FIELD_OFFSET(::RemoNet::SCAdd, _internal_metadata_),
  559. ~0u, // no _extensions_
  560. ~0u, // no _oneof_case_
  561. ~0u, // no _weak_field_map_
  562. ~0u, // no _inlined_string_donated_
  563. PROTOBUF_FIELD_OFFSET(::RemoNet::SCAdd, ret_),
  564. PROTOBUF_FIELD_OFFSET(::RemoNet::SCAdd, uid_),
  565. PROTOBUF_FIELD_OFFSET(::RemoNet::SCAdd, cid_),
  566. PROTOBUF_FIELD_OFFSET(::RemoNet::SCAdd, name_),
  567. ~0u, // no _has_bits_
  568. PROTOBUF_FIELD_OFFSET(::RemoNet::SCKickOff, _internal_metadata_),
  569. ~0u, // no _extensions_
  570. ~0u, // no _oneof_case_
  571. ~0u, // no _weak_field_map_
  572. ~0u, // no _inlined_string_donated_
  573. ~0u, // no _has_bits_
  574. PROTOBUF_FIELD_OFFSET(::RemoNet::Robot, _internal_metadata_),
  575. ~0u, // no _extensions_
  576. ~0u, // no _oneof_case_
  577. ~0u, // no _weak_field_map_
  578. ~0u, // no _inlined_string_donated_
  579. PROTOBUF_FIELD_OFFSET(::RemoNet::Robot, rid_),
  580. PROTOBUF_FIELD_OFFSET(::RemoNet::Robot, name_),
  581. PROTOBUF_FIELD_OFFSET(::RemoNet::Robot, type_),
  582. PROTOBUF_FIELD_OFFSET(::RemoNet::Robot, state_),
  583. ~0u, // no _has_bits_
  584. PROTOBUF_FIELD_OFFSET(::RemoNet::CSRobot, _internal_metadata_),
  585. ~0u, // no _extensions_
  586. ~0u, // no _oneof_case_
  587. ~0u, // no _weak_field_map_
  588. ~0u, // no _inlined_string_donated_
  589. ~0u, // no _has_bits_
  590. PROTOBUF_FIELD_OFFSET(::RemoNet::SCRobot, _internal_metadata_),
  591. ~0u, // no _extensions_
  592. ~0u, // no _oneof_case_
  593. ~0u, // no _weak_field_map_
  594. ~0u, // no _inlined_string_donated_
  595. PROTOBUF_FIELD_OFFSET(::RemoNet::SCRobot, robot_),
  596. ~0u, // no _has_bits_
  597. PROTOBUF_FIELD_OFFSET(::RemoNet::CSSign, _internal_metadata_),
  598. ~0u, // no _extensions_
  599. ~0u, // no _oneof_case_
  600. ~0u, // no _weak_field_map_
  601. ~0u, // no _inlined_string_donated_
  602. PROTOBUF_FIELD_OFFSET(::RemoNet::CSSign, account_),
  603. PROTOBUF_FIELD_OFFSET(::RemoNet::CSSign, password_),
  604. ~0u, // no _has_bits_
  605. PROTOBUF_FIELD_OFFSET(::RemoNet::SCSign, _internal_metadata_),
  606. ~0u, // no _extensions_
  607. ~0u, // no _oneof_case_
  608. ~0u, // no _weak_field_map_
  609. ~0u, // no _inlined_string_donated_
  610. PROTOBUF_FIELD_OFFSET(::RemoNet::SCSign, ret_),
  611. PROTOBUF_FIELD_OFFSET(::RemoNet::SCSign, uid_),
  612. PROTOBUF_FIELD_OFFSET(::RemoNet::SCSign, cid_),
  613. PROTOBUF_FIELD_OFFSET(::RemoNet::SCSign, name_),
  614. ~0u, // no _has_bits_
  615. PROTOBUF_FIELD_OFFSET(::RemoNet::CSReq, _internal_metadata_),
  616. ~0u, // no _extensions_
  617. ~0u, // no _oneof_case_
  618. ~0u, // no _weak_field_map_
  619. ~0u, // no _inlined_string_donated_
  620. PROTOBUF_FIELD_OFFSET(::RemoNet::CSReq, peer_),
  621. PROTOBUF_FIELD_OFFSET(::RemoNet::CSReq, index_),
  622. PROTOBUF_FIELD_OFFSET(::RemoNet::CSReq, egotype_),
  623. ~0u, // no _has_bits_
  624. PROTOBUF_FIELD_OFFSET(::RemoNet::SCReq, _internal_metadata_),
  625. ~0u, // no _extensions_
  626. ~0u, // no _oneof_case_
  627. ~0u, // no _weak_field_map_
  628. ~0u, // no _inlined_string_donated_
  629. PROTOBUF_FIELD_OFFSET(::RemoNet::SCReq, desc_),
  630. PROTOBUF_FIELD_OFFSET(::RemoNet::SCReq, peer_),
  631. PROTOBUF_FIELD_OFFSET(::RemoNet::SCReq, egotype_),
  632. ~0u, // no _has_bits_
  633. PROTOBUF_FIELD_OFFSET(::RemoNet::CSRep, _internal_metadata_),
  634. ~0u, // no _extensions_
  635. ~0u, // no _oneof_case_
  636. ~0u, // no _weak_field_map_
  637. ~0u, // no _inlined_string_donated_
  638. PROTOBUF_FIELD_OFFSET(::RemoNet::CSRep, desc_),
  639. PROTOBUF_FIELD_OFFSET(::RemoNet::CSRep, peer_),
  640. PROTOBUF_FIELD_OFFSET(::RemoNet::CSRep, index_),
  641. PROTOBUF_FIELD_OFFSET(::RemoNet::CSRep, egotype_),
  642. ~0u, // no _has_bits_
  643. PROTOBUF_FIELD_OFFSET(::RemoNet::SCRep, _internal_metadata_),
  644. ~0u, // no _extensions_
  645. ~0u, // no _oneof_case_
  646. ~0u, // no _weak_field_map_
  647. ~0u, // no _inlined_string_donated_
  648. PROTOBUF_FIELD_OFFSET(::RemoNet::SCRep, desc_),
  649. PROTOBUF_FIELD_OFFSET(::RemoNet::SCRep, index_),
  650. PROTOBUF_FIELD_OFFSET(::RemoNet::SCRep, egotype_),
  651. PROTOBUF_FIELD_OFFSET(::RemoNet::SCRep, peer_),
  652. ~0u, // no _has_bits_
  653. PROTOBUF_FIELD_OFFSET(::RemoNet::Offer, _internal_metadata_),
  654. ~0u, // no _extensions_
  655. ~0u, // no _oneof_case_
  656. ~0u, // no _weak_field_map_
  657. ~0u, // no _inlined_string_donated_
  658. PROTOBUF_FIELD_OFFSET(::RemoNet::Offer, index_),
  659. PROTOBUF_FIELD_OFFSET(::RemoNet::Offer, peer_),
  660. PROTOBUF_FIELD_OFFSET(::RemoNet::Offer, type_),
  661. PROTOBUF_FIELD_OFFSET(::RemoNet::Offer, sdp_),
  662. ~0u, // no _has_bits_
  663. PROTOBUF_FIELD_OFFSET(::RemoNet::Answer, _internal_metadata_),
  664. ~0u, // no _extensions_
  665. ~0u, // no _oneof_case_
  666. ~0u, // no _weak_field_map_
  667. ~0u, // no _inlined_string_donated_
  668. PROTOBUF_FIELD_OFFSET(::RemoNet::Answer, index_),
  669. PROTOBUF_FIELD_OFFSET(::RemoNet::Answer, peer_),
  670. PROTOBUF_FIELD_OFFSET(::RemoNet::Answer, type_),
  671. PROTOBUF_FIELD_OFFSET(::RemoNet::Answer, sdp_),
  672. ~0u, // no _has_bits_
  673. PROTOBUF_FIELD_OFFSET(::RemoNet::Candidate, _internal_metadata_),
  674. ~0u, // no _extensions_
  675. ~0u, // no _oneof_case_
  676. ~0u, // no _weak_field_map_
  677. ~0u, // no _inlined_string_donated_
  678. PROTOBUF_FIELD_OFFSET(::RemoNet::Candidate, index_),
  679. PROTOBUF_FIELD_OFFSET(::RemoNet::Candidate, peer_),
  680. PROTOBUF_FIELD_OFFSET(::RemoNet::Candidate, type_),
  681. PROTOBUF_FIELD_OFFSET(::RemoNet::Candidate, candidate_),
  682. PROTOBUF_FIELD_OFFSET(::RemoNet::Candidate, sdpmlineindex_),
  683. PROTOBUF_FIELD_OFFSET(::RemoNet::Candidate, sdpmid_),
  684. PROTOBUF_FIELD_OFFSET(::RemoNet::Candidate, egotype_),
  685. ~0u, // no _has_bits_
  686. PROTOBUF_FIELD_OFFSET(::RemoNet::Leave, _internal_metadata_),
  687. ~0u, // no _extensions_
  688. ~0u, // no _oneof_case_
  689. ~0u, // no _weak_field_map_
  690. ~0u, // no _inlined_string_donated_
  691. PROTOBUF_FIELD_OFFSET(::RemoNet::Leave, peer_),
  692. PROTOBUF_FIELD_OFFSET(::RemoNet::Leave, egotype_),
  693. ~0u, // no _has_bits_
  694. PROTOBUF_FIELD_OFFSET(::RemoNet::Close, _internal_metadata_),
  695. ~0u, // no _extensions_
  696. ~0u, // no _oneof_case_
  697. ~0u, // no _weak_field_map_
  698. ~0u, // no _inlined_string_donated_
  699. PROTOBUF_FIELD_OFFSET(::RemoNet::Close, peer_),
  700. PROTOBUF_FIELD_OFFSET(::RemoNet::Close, egotype_),
  701. PROTOBUF_FIELD_OFFSET(::RemoNet::Close, index_),
  702. ~0u, // no _has_bits_
  703. PROTOBUF_FIELD_OFFSET(::RemoNet::TestTextReq, _internal_metadata_),
  704. ~0u, // no _extensions_
  705. ~0u, // no _oneof_case_
  706. ~0u, // no _weak_field_map_
  707. ~0u, // no _inlined_string_donated_
  708. PROTOBUF_FIELD_OFFSET(::RemoNet::TestTextReq, text_),
  709. ~0u, // no _has_bits_
  710. PROTOBUF_FIELD_OFFSET(::RemoNet::CanMessage, _internal_metadata_),
  711. ~0u, // no _extensions_
  712. ~0u, // no _oneof_case_
  713. ~0u, // no _weak_field_map_
  714. ~0u, // no _inlined_string_donated_
  715. PROTOBUF_FIELD_OFFSET(::RemoNet::CanMessage, head_),
  716. PROTOBUF_FIELD_OFFSET(::RemoNet::CanMessage, canid_),
  717. PROTOBUF_FIELD_OFFSET(::RemoNet::CanMessage, data_),
  718. ~0u, // no _has_bits_
  719. PROTOBUF_FIELD_OFFSET(::RemoNet::CCCanMesage, _internal_metadata_),
  720. ~0u, // no _extensions_
  721. ~0u, // no _oneof_case_
  722. ~0u, // no _weak_field_map_
  723. ~0u, // no _inlined_string_donated_
  724. PROTOBUF_FIELD_OFFSET(::RemoNet::CCCanMesage, islidar_),
  725. PROTOBUF_FIELD_OFFSET(::RemoNet::CCCanMesage, message_),
  726. ~0u, // no _has_bits_
  727. PROTOBUF_FIELD_OFFSET(::RemoNet::Wiper, _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::Wiper, ret_),
  733. ~0u, // no _has_bits_
  734. PROTOBUF_FIELD_OFFSET(::RemoNet::FrontLight, _internal_metadata_),
  735. ~0u, // no _extensions_
  736. ~0u, // no _oneof_case_
  737. ~0u, // no _weak_field_map_
  738. ~0u, // no _inlined_string_donated_
  739. PROTOBUF_FIELD_OFFSET(::RemoNet::FrontLight, ret_),
  740. ~0u, // no _has_bits_
  741. PROTOBUF_FIELD_OFFSET(::RemoNet::BackLight, _internal_metadata_),
  742. ~0u, // no _extensions_
  743. ~0u, // no _oneof_case_
  744. ~0u, // no _weak_field_map_
  745. ~0u, // no _inlined_string_donated_
  746. PROTOBUF_FIELD_OFFSET(::RemoNet::BackLight, ret_),
  747. ~0u, // no _has_bits_
  748. PROTOBUF_FIELD_OFFSET(::RemoNet::CCAskDataChannel, _internal_metadata_),
  749. ~0u, // no _extensions_
  750. ~0u, // no _oneof_case_
  751. ~0u, // no _weak_field_map_
  752. ~0u, // no _inlined_string_donated_
  753. ~0u, // no _has_bits_
  754. PROTOBUF_FIELD_OFFSET(::RemoNet::IMuMessage, _internal_metadata_),
  755. ~0u, // no _extensions_
  756. ~0u, // no _oneof_case_
  757. ~0u, // no _weak_field_map_
  758. ~0u, // no _inlined_string_donated_
  759. PROTOBUF_FIELD_OFFSET(::RemoNet::IMuMessage, rx_),
  760. PROTOBUF_FIELD_OFFSET(::RemoNet::IMuMessage, ry_),
  761. ~0u, // no _has_bits_
  762. PROTOBUF_FIELD_OFFSET(::RemoNet::CCPing, _internal_metadata_),
  763. ~0u, // no _extensions_
  764. ~0u, // no _oneof_case_
  765. ~0u, // no _weak_field_map_
  766. ~0u, // no _inlined_string_donated_
  767. PROTOBUF_FIELD_OFFSET(::RemoNet::CCPing, tick_),
  768. ~0u, // no _has_bits_
  769. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRadarMessage, _internal_metadata_),
  770. ~0u, // no _extensions_
  771. ~0u, // no _oneof_case_
  772. ~0u, // no _weak_field_map_
  773. ~0u, // no _inlined_string_donated_
  774. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRadarMessage, radar0_),
  775. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRadarMessage, radar1_),
  776. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRadarMessage, radar2_),
  777. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRadarMessage, radar3_),
  778. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRadarMessage, radar4_),
  779. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRadarMessage, radar5_),
  780. ~0u, // no _has_bits_
  781. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRobotAnalog, _internal_metadata_),
  782. ~0u, // no _extensions_
  783. ~0u, // no _oneof_case_
  784. ~0u, // no _weak_field_map_
  785. ~0u, // no _inlined_string_donated_
  786. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRobotAnalog, steer_),
  787. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRobotAnalog, arm_),
  788. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRobotAnalog, bucket_),
  789. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRobotAnalog, throttle_),
  790. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRobotAnalog, brake_),
  791. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRobotAnalog, emergency_),
  792. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRobotAnalog, resume_),
  793. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRobotAnalog, gears_),
  794. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRobotAnalog, frontlight_),
  795. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRobotAnalog, backlight_),
  796. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRobotAnalog, wipe_),
  797. ~0u, // no _has_bits_
  798. PROTOBUF_FIELD_OFFSET(::RemoNet::CCBootStrapReq, _internal_metadata_),
  799. ~0u, // no _extensions_
  800. ~0u, // no _oneof_case_
  801. ~0u, // no _weak_field_map_
  802. ~0u, // no _inlined_string_donated_
  803. ~0u, // no _has_bits_
  804. PROTOBUF_FIELD_OFFSET(::RemoNet::CCBooStrapRep, _internal_metadata_),
  805. ~0u, // no _extensions_
  806. ~0u, // no _oneof_case_
  807. ~0u, // no _weak_field_map_
  808. ~0u, // no _inlined_string_donated_
  809. PROTOBUF_FIELD_OFFSET(::RemoNet::CCBooStrapRep, ret_),
  810. ~0u, // no _has_bits_
  811. PROTOBUF_FIELD_OFFSET(::RemoNet::CCStartupReq, _internal_metadata_),
  812. ~0u, // no _extensions_
  813. ~0u, // no _oneof_case_
  814. ~0u, // no _weak_field_map_
  815. ~0u, // no _inlined_string_donated_
  816. ~0u, // no _has_bits_
  817. PROTOBUF_FIELD_OFFSET(::RemoNet::CCStartupRep, _internal_metadata_),
  818. ~0u, // no _extensions_
  819. ~0u, // no _oneof_case_
  820. ~0u, // no _weak_field_map_
  821. ~0u, // no _inlined_string_donated_
  822. PROTOBUF_FIELD_OFFSET(::RemoNet::CCStartupRep, ret_),
  823. ~0u, // no _has_bits_
  824. PROTOBUF_FIELD_OFFSET(::RemoNet::CCSwitch, _internal_metadata_),
  825. ~0u, // no _extensions_
  826. ~0u, // no _oneof_case_
  827. ~0u, // no _weak_field_map_
  828. ~0u, // no _inlined_string_donated_
  829. PROTOBUF_FIELD_OFFSET(::RemoNet::CCSwitch, front_),
  830. PROTOBUF_FIELD_OFFSET(::RemoNet::LidarPoint, _has_bits_),
  831. PROTOBUF_FIELD_OFFSET(::RemoNet::LidarPoint, _internal_metadata_),
  832. ~0u, // no _extensions_
  833. ~0u, // no _oneof_case_
  834. ~0u, // no _weak_field_map_
  835. ~0u, // no _inlined_string_donated_
  836. PROTOBUF_FIELD_OFFSET(::RemoNet::LidarPoint, timestamp_),
  837. PROTOBUF_FIELD_OFFSET(::RemoNet::LidarPoint, seq_),
  838. PROTOBUF_FIELD_OFFSET(::RemoNet::LidarPoint, frame_id_),
  839. PROTOBUF_FIELD_OFFSET(::RemoNet::LidarPoint, height_),
  840. PROTOBUF_FIELD_OFFSET(::RemoNet::LidarPoint, width_),
  841. PROTOBUF_FIELD_OFFSET(::RemoNet::LidarPoint, is_dense_),
  842. PROTOBUF_FIELD_OFFSET(::RemoNet::LidarPoint, is_left_),
  843. PROTOBUF_FIELD_OFFSET(::RemoNet::LidarPoint, data_),
  844. 1,
  845. 2,
  846. 0,
  847. 3,
  848. 4,
  849. 5,
  850. 6,
  851. ~0u,
  852. ~0u, // no _has_bits_
  853. PROTOBUF_FIELD_OFFSET(::RemoNet::SensorStop, _internal_metadata_),
  854. ~0u, // no _extensions_
  855. ~0u, // no _oneof_case_
  856. ~0u, // no _weak_field_map_
  857. ~0u, // no _inlined_string_donated_
  858. ~0u, // no _has_bits_
  859. PROTOBUF_FIELD_OFFSET(::RemoNet::StopAck, _internal_metadata_),
  860. ~0u, // no _extensions_
  861. ~0u, // no _oneof_case_
  862. ~0u, // no _weak_field_map_
  863. ~0u, // no _inlined_string_donated_
  864. ~0u, // no _has_bits_
  865. PROTOBUF_FIELD_OFFSET(::RemoNet::CCManipulation, _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::CCManipulation, sensor_),
  871. PROTOBUF_FIELD_OFFSET(::RemoNet::CCManipulation, car_),
  872. ~0u, // no _has_bits_
  873. PROTOBUF_FIELD_OFFSET(::RemoNet::SCAddRobot, _internal_metadata_),
  874. ~0u, // no _extensions_
  875. ~0u, // no _oneof_case_
  876. ~0u, // no _weak_field_map_
  877. ~0u, // no _inlined_string_donated_
  878. PROTOBUF_FIELD_OFFSET(::RemoNet::SCAddRobot, robot_),
  879. ~0u, // no _has_bits_
  880. PROTOBUF_FIELD_OFFSET(::RemoNet::SCDelRobot, _internal_metadata_),
  881. ~0u, // no _extensions_
  882. ~0u, // no _oneof_case_
  883. ~0u, // no _weak_field_map_
  884. ~0u, // no _inlined_string_donated_
  885. PROTOBUF_FIELD_OFFSET(::RemoNet::SCDelRobot, peer_),
  886. PROTOBUF_FIELD_OFFSET(::RemoNet::SCDelRobot, egotype_),
  887. };
  888. static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  889. { 0, -1, -1, sizeof(::RemoNet::CSAdd)},
  890. { 9, -1, -1, sizeof(::RemoNet::SCAdd)},
  891. { 19, -1, -1, sizeof(::RemoNet::SCKickOff)},
  892. { 25, -1, -1, sizeof(::RemoNet::Robot)},
  893. { 35, -1, -1, sizeof(::RemoNet::CSRobot)},
  894. { 41, -1, -1, sizeof(::RemoNet::SCRobot)},
  895. { 48, -1, -1, sizeof(::RemoNet::CSSign)},
  896. { 56, -1, -1, sizeof(::RemoNet::SCSign)},
  897. { 66, -1, -1, sizeof(::RemoNet::CSReq)},
  898. { 75, -1, -1, sizeof(::RemoNet::SCReq)},
  899. { 84, -1, -1, sizeof(::RemoNet::CSRep)},
  900. { 94, -1, -1, sizeof(::RemoNet::SCRep)},
  901. { 104, -1, -1, sizeof(::RemoNet::Offer)},
  902. { 114, -1, -1, sizeof(::RemoNet::Answer)},
  903. { 124, -1, -1, sizeof(::RemoNet::Candidate)},
  904. { 137, -1, -1, sizeof(::RemoNet::Leave)},
  905. { 145, -1, -1, sizeof(::RemoNet::Close)},
  906. { 154, -1, -1, sizeof(::RemoNet::TestTextReq)},
  907. { 161, -1, -1, sizeof(::RemoNet::CanMessage)},
  908. { 170, -1, -1, sizeof(::RemoNet::CCCanMesage)},
  909. { 178, -1, -1, sizeof(::RemoNet::Wiper)},
  910. { 185, -1, -1, sizeof(::RemoNet::FrontLight)},
  911. { 192, -1, -1, sizeof(::RemoNet::BackLight)},
  912. { 199, -1, -1, sizeof(::RemoNet::CCAskDataChannel)},
  913. { 205, -1, -1, sizeof(::RemoNet::IMuMessage)},
  914. { 213, -1, -1, sizeof(::RemoNet::CCPing)},
  915. { 220, -1, -1, sizeof(::RemoNet::CCRadarMessage)},
  916. { 232, -1, -1, sizeof(::RemoNet::CCRobotAnalog)},
  917. { 249, -1, -1, sizeof(::RemoNet::CCBootStrapReq)},
  918. { 255, -1, -1, sizeof(::RemoNet::CCBooStrapRep)},
  919. { 262, -1, -1, sizeof(::RemoNet::CCStartupReq)},
  920. { 268, -1, -1, sizeof(::RemoNet::CCStartupRep)},
  921. { 275, -1, -1, sizeof(::RemoNet::CCSwitch)},
  922. { 282, 296, -1, sizeof(::RemoNet::LidarPoint)},
  923. { 304, -1, -1, sizeof(::RemoNet::SensorStop)},
  924. { 310, -1, -1, sizeof(::RemoNet::StopAck)},
  925. { 316, -1, -1, sizeof(::RemoNet::CCManipulation)},
  926. { 324, -1, -1, sizeof(::RemoNet::SCAddRobot)},
  927. { 331, -1, -1, sizeof(::RemoNet::SCDelRobot)},
  928. };
  929. static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
  930. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CSAdd_default_instance_),
  931. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SCAdd_default_instance_),
  932. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SCKickOff_default_instance_),
  933. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_Robot_default_instance_),
  934. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CSRobot_default_instance_),
  935. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SCRobot_default_instance_),
  936. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CSSign_default_instance_),
  937. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SCSign_default_instance_),
  938. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CSReq_default_instance_),
  939. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SCReq_default_instance_),
  940. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CSRep_default_instance_),
  941. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SCRep_default_instance_),
  942. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_Offer_default_instance_),
  943. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_Answer_default_instance_),
  944. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_Candidate_default_instance_),
  945. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_Leave_default_instance_),
  946. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_Close_default_instance_),
  947. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_TestTextReq_default_instance_),
  948. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CanMessage_default_instance_),
  949. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CCCanMesage_default_instance_),
  950. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_Wiper_default_instance_),
  951. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_FrontLight_default_instance_),
  952. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_BackLight_default_instance_),
  953. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CCAskDataChannel_default_instance_),
  954. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_IMuMessage_default_instance_),
  955. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CCPing_default_instance_),
  956. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CCRadarMessage_default_instance_),
  957. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CCRobotAnalog_default_instance_),
  958. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CCBootStrapReq_default_instance_),
  959. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CCBooStrapRep_default_instance_),
  960. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CCStartupReq_default_instance_),
  961. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CCStartupRep_default_instance_),
  962. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CCSwitch_default_instance_),
  963. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_LidarPoint_default_instance_),
  964. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SensorStop_default_instance_),
  965. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_StopAck_default_instance_),
  966. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CCManipulation_default_instance_),
  967. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SCAddRobot_default_instance_),
  968. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SCDelRobot_default_instance_),
  969. };
  970. const char descriptor_table_protodef_protocol_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
  971. "\n\016protocol.proto\022\007RemoNet\"3\n\005CSAdd\022\016\n\006se"
  972. "rial\030\001 \001(\t\022\014\n\004type\030\002 \001(\005\022\014\n\004name\030\003 \001(\t\"<"
  973. "\n\005SCAdd\022\013\n\003ret\030\001 \001(\010\022\013\n\003uid\030\002 \001(\005\022\013\n\003cid"
  974. "\030\003 \001(\005\022\014\n\004name\030\004 \001(\t\"\013\n\tSCKickOff\"\213\001\n\005Ro"
  975. "bot\022\013\n\003rid\030\001 \001(\005\022\014\n\004name\030\002 \001(\t\022\014\n\004type\030\003"
  976. " \001(\005\022(\n\005state\030\004 \001(\0162\031.RemoNet.Robot.Robo"
  977. "tState\"/\n\nRobotState\022\013\n\007Offline\020\000\022\n\n\006Onl"
  978. "ine\020\001\022\010\n\004Busy\020\002\"\t\n\007CSRobot\"(\n\007SCRobot\022\035\n"
  979. "\005robot\030\001 \003(\0132\016.RemoNet.Robot\"+\n\006CSSign\022\017"
  980. "\n\007account\030\001 \001(\t\022\020\n\010password\030\002 \001(\t\"=\n\006SCS"
  981. "ign\022\013\n\003ret\030\001 \001(\010\022\013\n\003uid\030\002 \001(\005\022\013\n\003cid\030\003 \001"
  982. "(\005\022\014\n\004name\030\004 \001(\t\"5\n\005CSReq\022\014\n\004peer\030\001 \001(\005\022"
  983. "\r\n\005index\030\002 \001(\005\022\017\n\007egotype\030\003 \001(\005\"H\n\005SCReq"
  984. "\022 \n\004desc\030\001 \001(\0162\022.RemoNet.VideoDesc\022\014\n\004pe"
  985. "er\030\002 \001(\005\022\017\n\007egotype\030\003 \001(\005\"W\n\005CSRep\022 \n\004de"
  986. "sc\030\001 \001(\0162\022.RemoNet.VideoDesc\022\014\n\004peer\030\002 \001"
  987. "(\005\022\r\n\005index\030\003 \001(\005\022\017\n\007egotype\030\004 \001(\005\"W\n\005SC"
  988. "Rep\022 \n\004desc\030\001 \001(\0162\022.RemoNet.VideoDesc\022\r\n"
  989. "\005index\030\002 \001(\005\022\017\n\007egotype\030\003 \001(\005\022\014\n\004peer\030\004 "
  990. "\001(\005\"\?\n\005Offer\022\r\n\005index\030\001 \001(\005\022\014\n\004peer\030\002 \001("
  991. "\005\022\014\n\004type\030\003 \001(\t\022\013\n\003sdp\030\004 \001(\t\"@\n\006Answer\022\r"
  992. "\n\005index\030\001 \001(\005\022\014\n\004peer\030\002 \001(\005\022\014\n\004type\030\003 \001("
  993. "\t\022\013\n\003sdp\030\004 \001(\t\"\201\001\n\tCandidate\022\r\n\005index\030\001 "
  994. "\001(\005\022\014\n\004peer\030\002 \001(\005\022\014\n\004type\030\003 \001(\t\022\021\n\tcandi"
  995. "date\030\004 \001(\t\022\025\n\rsdpMLineIndex\030\005 \001(\005\022\016\n\006sdp"
  996. "Mid\030\006 \001(\t\022\017\n\007egotype\030\007 \001(\005\"&\n\005Leave\022\014\n\004p"
  997. "eer\030\001 \001(\005\022\017\n\007egotype\030\002 \001(\005\"5\n\005Close\022\014\n\004p"
  998. "eer\030\001 \001(\005\022\017\n\007egotype\030\002 \001(\005\022\r\n\005index\030\003 \001("
  999. "\005\"\033\n\013TestTextReq\022\014\n\004text\030\001 \001(\t\"7\n\nCanMes"
  1000. "sage\022\014\n\004head\030\001 \001(\005\022\r\n\005canid\030\002 \001(\005\022\014\n\004dat"
  1001. "a\030\003 \001(\014\"D\n\013CCCanMesage\022\017\n\007islidar\030\001 \001(\010\022"
  1002. "$\n\007message\030\002 \003(\0132\023.RemoNet.CanMessage\"\024\n"
  1003. "\005Wiper\022\013\n\003ret\030\001 \001(\010\"\031\n\nFrontLight\022\013\n\003ret"
  1004. "\030\001 \001(\010\"\030\n\tBackLight\022\013\n\003ret\030\001 \001(\010\"\022\n\020CCAs"
  1005. "kDataChannel\"$\n\nIMuMessage\022\n\n\002rx\030\001 \001(\002\022\n"
  1006. "\n\002ry\030\002 \001(\002\"\026\n\006CCPing\022\014\n\004tick\030\001 \001(\003\"p\n\016CC"
  1007. "RadarMessage\022\016\n\006radar0\030\001 \001(\005\022\016\n\006radar1\030\002"
  1008. " \001(\005\022\016\n\006radar2\030\003 \001(\005\022\016\n\006radar3\030\004 \001(\005\022\016\n\006"
  1009. "radar4\030\005 \001(\005\022\016\n\006radar5\030\006 \001(\005\"\323\001\n\rCCRobot"
  1010. "Analog\022\r\n\005steer\030\001 \001(\005\022\013\n\003arm\030\002 \001(\005\022\016\n\006bu"
  1011. "cket\030\003 \001(\005\022\020\n\010throttle\030\004 \001(\005\022\r\n\005brake\030\005 "
  1012. "\001(\005\022\021\n\temergency\030\010 \001(\010\022\016\n\006resume\030\t \001(\010\022\035"
  1013. "\n\005gears\030\n \001(\0162\016.RemoNet.Gears\022\022\n\nfrontli"
  1014. "ght\030\013 \001(\010\022\021\n\tbacklight\030\014 \001(\010\022\014\n\004wipe\030\r \001"
  1015. "(\010\"\020\n\016CCBootStrapReq\"\034\n\rCCBooStrapRep\022\013\n"
  1016. "\003ret\030\001 \001(\010\"\016\n\014CCStartupReq\"\033\n\014CCStartupR"
  1017. "ep\022\013\n\003ret\030\001 \001(\010\"\031\n\010CCSwitch\022\r\n\005front\030\001 \001"
  1018. "(\010\"\202\002\n\nLidarPoint\022\026\n\ttimestamp\030\001 \001(\001H\000\210\001"
  1019. "\001\022\020\n\003seq\030\002 \001(\rH\001\210\001\001\022\025\n\010frame_id\030\003 \001(\tH\002\210"
  1020. "\001\001\022\023\n\006height\030\004 \001(\rH\003\210\001\001\022\022\n\005width\030\005 \001(\rH\004"
  1021. "\210\001\001\022\025\n\010is_dense\030\006 \001(\010H\005\210\001\001\022\024\n\007is_left\030\007 "
  1022. "\001(\010H\006\210\001\001\022\014\n\004data\030\010 \003(\002B\014\n\n_timestampB\006\n\004"
  1023. "_seqB\013\n\t_frame_idB\t\n\007_heightB\010\n\006_widthB\013"
  1024. "\n\t_is_denseB\n\n\010_is_left\"\014\n\nSensorStop\"\t\n"
  1025. "\007StopAck\"-\n\016CCManipulation\022\016\n\006sensor\030\001 \001"
  1026. "(\014\022\013\n\003car\030\002 \001(\014\"+\n\nSCAddRobot\022\035\n\005robot\030\001"
  1027. " \001(\0132\016.RemoNet.Robot\"+\n\nSCDelRobot\022\014\n\004pe"
  1028. "er\030\001 \001(\005\022\017\n\007egotype\030\002 \001(\005*\327\001\n\tCSMessage\022"
  1029. "\013\n\007CS_NONE\020\000\022\014\n\007CS_Sign\020\320\017\022\013\n\006CS_Req\020\321\017\022"
  1030. "\013\n\006CS_Rep\020\322\017\022\021\n\014CS_CancelReq\020\323\017\022\r\n\010CS_Of"
  1031. "fer\020\324\017\022\016\n\tCS_Answer\020\325\017\022\021\n\014CS_Candidate\020\326"
  1032. "\017\022\r\n\010CS_Leave\020\327\017\022\021\n\014CS_KeepAlive\020\330\017\022\013\n\006C"
  1033. "S_Add\020\331\017\022\r\n\010CS_Robot\020\332\017\022\022\n\rCS_CloseVideo"
  1034. "\020\333\017*\204\003\n\tSCMessage\022\013\n\007SC_NONE\020\000\022\014\n\007SC_Sig"
  1035. "n\020\240\037\022\013\n\006SC_Req\020\241\037\022\013\n\006SC_Rep\020\242\037\022\016\n\tSC_Can"
  1036. "cel\020\243\037\022\r\n\010SC_Offer\020\244\037\022\016\n\tSC_Answer\020\245\037\022\021\n"
  1037. "\014SC_Candidate\020\246\037\022\013\n\006SC_Add\020\247\037\022\r\n\010SC_Robo"
  1038. "t\020\250\037\022\021\n\014SC_NotifyReq\020\251\037\022\021\n\014SC_NotifyRep\020"
  1039. "\252\037\022\024\n\017SC_NotifyAnswer\020\253\037\022\023\n\016SC_NotifyOff"
  1040. "er\020\254\037\022\027\n\022SC_NotifyCandidate\020\255\037\022\023\n\016SC_Not"
  1041. "ifyLeave\020\256\037\022\024\n\017SC_NotifyCancel\020\257\037\022\021\n\014SC_"
  1042. "NotifyAdd\020\260\037\022\021\n\014SC_NotifyDel\020\261\037\022\030\n\023SC_No"
  1043. "tifyCloseVideo\020\262\037\022\017\n\nSC_KickOff\020\263\037*\262\002\n\tC"
  1044. "CMessage\022\013\n\007CC_None\020\000\022\014\n\007CC_Text\020\300>\022\013\n\006C"
  1045. "C_CAN\020\301>\022\013\n\006CC_IMU\020\302>\022\026\n\021CC_ASKDATACHANN"
  1046. "EL\020\303>\022\024\n\017CC_Manipulation\020\304>\022\r\n\010CC_Radar\020"
  1047. "\305>\022\016\n\tCC_Switch\020\306>\022\014\n\007CC_Ping\020\307>\022\022\n\rCC_S"
  1048. "ensorStop\020\310>\022\017\n\nCC_StopACK\020\311>\022\021\n\014CC_LIDA"
  1049. "RDATA\020\312>\022\023\n\016CC_RobotAnalog\020\314>\022\017\n\nCC_Boot"
  1050. "Req\020\315>\022\022\n\rCC_StartupReq\020\316>\022\017\n\nCC_BootRep"
  1051. "\020\317>\022\022\n\rCC_StartupRep\020\320>*F\n\tVideoDesc\022\006\n\002"
  1052. "OK\020\000\022\010\n\004Busy\020\001\022\n\n\006Reject\020\002\022\013\n\007NoFound\020\003\022"
  1053. "\016\n\nIsVideoing\020\004*&\n\005Gears\022\010\n\004None\020\000\022\005\n\001N\020"
  1054. "\001\022\005\n\001D\020\002\022\005\n\001R\020\003b\006proto3"
  1055. ;
  1056. static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_protocol_2eproto_once;
  1057. const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_protocol_2eproto = {
  1058. false, false, 3343, descriptor_table_protodef_protocol_2eproto, "protocol.proto",
  1059. &descriptor_table_protocol_2eproto_once, nullptr, 0, 39,
  1060. schemas, file_default_instances, TableStruct_protocol_2eproto::offsets,
  1061. file_level_metadata_protocol_2eproto, file_level_enum_descriptors_protocol_2eproto, file_level_service_descriptors_protocol_2eproto,
  1062. };
  1063. PROTOBUF_ATTRIBUTE_WEAK const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable* descriptor_table_protocol_2eproto_getter() {
  1064. return &descriptor_table_protocol_2eproto;
  1065. }
  1066. // Force running AddDescriptors() at dynamic initialization time.
  1067. PROTOBUF_ATTRIBUTE_INIT_PRIORITY static ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptorsRunner dynamic_init_dummy_protocol_2eproto(&descriptor_table_protocol_2eproto);
  1068. namespace RemoNet {
  1069. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Robot_RobotState_descriptor() {
  1070. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_protocol_2eproto);
  1071. return file_level_enum_descriptors_protocol_2eproto[0];
  1072. }
  1073. bool Robot_RobotState_IsValid(int value) {
  1074. switch (value) {
  1075. case 0:
  1076. case 1:
  1077. case 2:
  1078. return true;
  1079. default:
  1080. return false;
  1081. }
  1082. }
  1083. #if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
  1084. constexpr Robot_RobotState Robot::Offline;
  1085. constexpr Robot_RobotState Robot::Online;
  1086. constexpr Robot_RobotState Robot::Busy;
  1087. constexpr Robot_RobotState Robot::RobotState_MIN;
  1088. constexpr Robot_RobotState Robot::RobotState_MAX;
  1089. constexpr int Robot::RobotState_ARRAYSIZE;
  1090. #endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
  1091. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* CSMessage_descriptor() {
  1092. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_protocol_2eproto);
  1093. return file_level_enum_descriptors_protocol_2eproto[1];
  1094. }
  1095. bool CSMessage_IsValid(int value) {
  1096. switch (value) {
  1097. case 0:
  1098. case 2000:
  1099. case 2001:
  1100. case 2002:
  1101. case 2003:
  1102. case 2004:
  1103. case 2005:
  1104. case 2006:
  1105. case 2007:
  1106. case 2008:
  1107. case 2009:
  1108. case 2010:
  1109. case 2011:
  1110. return true;
  1111. default:
  1112. return false;
  1113. }
  1114. }
  1115. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* SCMessage_descriptor() {
  1116. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_protocol_2eproto);
  1117. return file_level_enum_descriptors_protocol_2eproto[2];
  1118. }
  1119. bool SCMessage_IsValid(int value) {
  1120. switch (value) {
  1121. case 0:
  1122. case 4000:
  1123. case 4001:
  1124. case 4002:
  1125. case 4003:
  1126. case 4004:
  1127. case 4005:
  1128. case 4006:
  1129. case 4007:
  1130. case 4008:
  1131. case 4009:
  1132. case 4010:
  1133. case 4011:
  1134. case 4012:
  1135. case 4013:
  1136. case 4014:
  1137. case 4015:
  1138. case 4016:
  1139. case 4017:
  1140. case 4018:
  1141. case 4019:
  1142. return true;
  1143. default:
  1144. return false;
  1145. }
  1146. }
  1147. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* CCMessage_descriptor() {
  1148. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_protocol_2eproto);
  1149. return file_level_enum_descriptors_protocol_2eproto[3];
  1150. }
  1151. bool CCMessage_IsValid(int value) {
  1152. switch (value) {
  1153. case 0:
  1154. case 8000:
  1155. case 8001:
  1156. case 8002:
  1157. case 8003:
  1158. case 8004:
  1159. case 8005:
  1160. case 8006:
  1161. case 8007:
  1162. case 8008:
  1163. case 8009:
  1164. case 8010:
  1165. case 8012:
  1166. case 8013:
  1167. case 8014:
  1168. case 8015:
  1169. case 8016:
  1170. return true;
  1171. default:
  1172. return false;
  1173. }
  1174. }
  1175. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* VideoDesc_descriptor() {
  1176. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_protocol_2eproto);
  1177. return file_level_enum_descriptors_protocol_2eproto[4];
  1178. }
  1179. bool VideoDesc_IsValid(int value) {
  1180. switch (value) {
  1181. case 0:
  1182. case 1:
  1183. case 2:
  1184. case 3:
  1185. case 4:
  1186. return true;
  1187. default:
  1188. return false;
  1189. }
  1190. }
  1191. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Gears_descriptor() {
  1192. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_protocol_2eproto);
  1193. return file_level_enum_descriptors_protocol_2eproto[5];
  1194. }
  1195. bool Gears_IsValid(int value) {
  1196. switch (value) {
  1197. case 0:
  1198. case 1:
  1199. case 2:
  1200. case 3:
  1201. return true;
  1202. default:
  1203. return false;
  1204. }
  1205. }
  1206. // ===================================================================
  1207. class CSAdd::_Internal {
  1208. public:
  1209. };
  1210. CSAdd::CSAdd(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  1211. bool is_message_owned)
  1212. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  1213. SharedCtor();
  1214. if (!is_message_owned) {
  1215. RegisterArenaDtor(arena);
  1216. }
  1217. // @@protoc_insertion_point(arena_constructor:RemoNet.CSAdd)
  1218. }
  1219. CSAdd::CSAdd(const CSAdd& from)
  1220. : ::PROTOBUF_NAMESPACE_ID::Message() {
  1221. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1222. serial_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1223. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1224. serial_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  1225. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1226. if (!from._internal_serial().empty()) {
  1227. serial_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_serial(),
  1228. GetArenaForAllocation());
  1229. }
  1230. name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1231. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1232. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  1233. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1234. if (!from._internal_name().empty()) {
  1235. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(),
  1236. GetArenaForAllocation());
  1237. }
  1238. type_ = from.type_;
  1239. // @@protoc_insertion_point(copy_constructor:RemoNet.CSAdd)
  1240. }
  1241. inline void CSAdd::SharedCtor() {
  1242. serial_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1243. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1244. serial_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  1245. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1246. name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1247. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1248. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  1249. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1250. type_ = 0;
  1251. }
  1252. CSAdd::~CSAdd() {
  1253. // @@protoc_insertion_point(destructor:RemoNet.CSAdd)
  1254. if (GetArenaForAllocation() != nullptr) return;
  1255. SharedDtor();
  1256. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1257. }
  1258. inline void CSAdd::SharedDtor() {
  1259. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  1260. serial_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1261. name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1262. }
  1263. void CSAdd::ArenaDtor(void* object) {
  1264. CSAdd* _this = reinterpret_cast< CSAdd* >(object);
  1265. (void)_this;
  1266. }
  1267. void CSAdd::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  1268. }
  1269. void CSAdd::SetCachedSize(int size) const {
  1270. _cached_size_.Set(size);
  1271. }
  1272. void CSAdd::Clear() {
  1273. // @@protoc_insertion_point(message_clear_start:RemoNet.CSAdd)
  1274. uint32_t cached_has_bits = 0;
  1275. // Prevent compiler warnings about cached_has_bits being unused
  1276. (void) cached_has_bits;
  1277. serial_.ClearToEmpty();
  1278. name_.ClearToEmpty();
  1279. type_ = 0;
  1280. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1281. }
  1282. const char* CSAdd::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  1283. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  1284. while (!ctx->Done(&ptr)) {
  1285. uint32_t tag;
  1286. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  1287. switch (tag >> 3) {
  1288. // string serial = 1;
  1289. case 1:
  1290. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
  1291. auto str = _internal_mutable_serial();
  1292. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  1293. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.CSAdd.serial"));
  1294. CHK_(ptr);
  1295. } else
  1296. goto handle_unusual;
  1297. continue;
  1298. // int32 type = 2;
  1299. case 2:
  1300. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  1301. type_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  1302. CHK_(ptr);
  1303. } else
  1304. goto handle_unusual;
  1305. continue;
  1306. // string name = 3;
  1307. case 3:
  1308. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
  1309. auto str = _internal_mutable_name();
  1310. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  1311. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.CSAdd.name"));
  1312. CHK_(ptr);
  1313. } else
  1314. goto handle_unusual;
  1315. continue;
  1316. default:
  1317. goto handle_unusual;
  1318. } // switch
  1319. handle_unusual:
  1320. if ((tag == 0) || ((tag & 7) == 4)) {
  1321. CHK_(ptr);
  1322. ctx->SetLastTag(tag);
  1323. goto message_done;
  1324. }
  1325. ptr = UnknownFieldParse(
  1326. tag,
  1327. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  1328. ptr, ctx);
  1329. CHK_(ptr != nullptr);
  1330. } // while
  1331. message_done:
  1332. return ptr;
  1333. failure:
  1334. ptr = nullptr;
  1335. goto message_done;
  1336. #undef CHK_
  1337. }
  1338. uint8_t* CSAdd::_InternalSerialize(
  1339. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  1340. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CSAdd)
  1341. uint32_t cached_has_bits = 0;
  1342. (void) cached_has_bits;
  1343. // string serial = 1;
  1344. if (!this->_internal_serial().empty()) {
  1345. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  1346. this->_internal_serial().data(), static_cast<int>(this->_internal_serial().length()),
  1347. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  1348. "RemoNet.CSAdd.serial");
  1349. target = stream->WriteStringMaybeAliased(
  1350. 1, this->_internal_serial(), target);
  1351. }
  1352. // int32 type = 2;
  1353. if (this->_internal_type() != 0) {
  1354. target = stream->EnsureSpace(target);
  1355. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_type(), target);
  1356. }
  1357. // string name = 3;
  1358. if (!this->_internal_name().empty()) {
  1359. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  1360. this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
  1361. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  1362. "RemoNet.CSAdd.name");
  1363. target = stream->WriteStringMaybeAliased(
  1364. 3, this->_internal_name(), target);
  1365. }
  1366. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1367. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  1368. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  1369. }
  1370. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CSAdd)
  1371. return target;
  1372. }
  1373. size_t CSAdd::ByteSizeLong() const {
  1374. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CSAdd)
  1375. size_t total_size = 0;
  1376. uint32_t cached_has_bits = 0;
  1377. // Prevent compiler warnings about cached_has_bits being unused
  1378. (void) cached_has_bits;
  1379. // string serial = 1;
  1380. if (!this->_internal_serial().empty()) {
  1381. total_size += 1 +
  1382. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  1383. this->_internal_serial());
  1384. }
  1385. // string name = 3;
  1386. if (!this->_internal_name().empty()) {
  1387. total_size += 1 +
  1388. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  1389. this->_internal_name());
  1390. }
  1391. // int32 type = 2;
  1392. if (this->_internal_type() != 0) {
  1393. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_type());
  1394. }
  1395. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  1396. }
  1397. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CSAdd::_class_data_ = {
  1398. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  1399. CSAdd::MergeImpl
  1400. };
  1401. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CSAdd::GetClassData() const { return &_class_data_; }
  1402. void CSAdd::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  1403. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  1404. static_cast<CSAdd *>(to)->MergeFrom(
  1405. static_cast<const CSAdd &>(from));
  1406. }
  1407. void CSAdd::MergeFrom(const CSAdd& from) {
  1408. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CSAdd)
  1409. GOOGLE_DCHECK_NE(&from, this);
  1410. uint32_t cached_has_bits = 0;
  1411. (void) cached_has_bits;
  1412. if (!from._internal_serial().empty()) {
  1413. _internal_set_serial(from._internal_serial());
  1414. }
  1415. if (!from._internal_name().empty()) {
  1416. _internal_set_name(from._internal_name());
  1417. }
  1418. if (from._internal_type() != 0) {
  1419. _internal_set_type(from._internal_type());
  1420. }
  1421. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1422. }
  1423. void CSAdd::CopyFrom(const CSAdd& from) {
  1424. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CSAdd)
  1425. if (&from == this) return;
  1426. Clear();
  1427. MergeFrom(from);
  1428. }
  1429. bool CSAdd::IsInitialized() const {
  1430. return true;
  1431. }
  1432. void CSAdd::InternalSwap(CSAdd* other) {
  1433. using std::swap;
  1434. auto* lhs_arena = GetArenaForAllocation();
  1435. auto* rhs_arena = other->GetArenaForAllocation();
  1436. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  1437. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  1438. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  1439. &serial_, lhs_arena,
  1440. &other->serial_, rhs_arena
  1441. );
  1442. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  1443. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  1444. &name_, lhs_arena,
  1445. &other->name_, rhs_arena
  1446. );
  1447. swap(type_, other->type_);
  1448. }
  1449. ::PROTOBUF_NAMESPACE_ID::Metadata CSAdd::GetMetadata() const {
  1450. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  1451. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  1452. file_level_metadata_protocol_2eproto[0]);
  1453. }
  1454. // ===================================================================
  1455. class SCAdd::_Internal {
  1456. public:
  1457. };
  1458. SCAdd::SCAdd(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  1459. bool is_message_owned)
  1460. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  1461. SharedCtor();
  1462. if (!is_message_owned) {
  1463. RegisterArenaDtor(arena);
  1464. }
  1465. // @@protoc_insertion_point(arena_constructor:RemoNet.SCAdd)
  1466. }
  1467. SCAdd::SCAdd(const SCAdd& from)
  1468. : ::PROTOBUF_NAMESPACE_ID::Message() {
  1469. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1470. name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1471. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1472. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  1473. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1474. if (!from._internal_name().empty()) {
  1475. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(),
  1476. GetArenaForAllocation());
  1477. }
  1478. ::memcpy(&ret_, &from.ret_,
  1479. static_cast<size_t>(reinterpret_cast<char*>(&cid_) -
  1480. reinterpret_cast<char*>(&ret_)) + sizeof(cid_));
  1481. // @@protoc_insertion_point(copy_constructor:RemoNet.SCAdd)
  1482. }
  1483. inline void SCAdd::SharedCtor() {
  1484. name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1485. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1486. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  1487. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1488. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  1489. reinterpret_cast<char*>(&ret_) - reinterpret_cast<char*>(this)),
  1490. 0, static_cast<size_t>(reinterpret_cast<char*>(&cid_) -
  1491. reinterpret_cast<char*>(&ret_)) + sizeof(cid_));
  1492. }
  1493. SCAdd::~SCAdd() {
  1494. // @@protoc_insertion_point(destructor:RemoNet.SCAdd)
  1495. if (GetArenaForAllocation() != nullptr) return;
  1496. SharedDtor();
  1497. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1498. }
  1499. inline void SCAdd::SharedDtor() {
  1500. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  1501. name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1502. }
  1503. void SCAdd::ArenaDtor(void* object) {
  1504. SCAdd* _this = reinterpret_cast< SCAdd* >(object);
  1505. (void)_this;
  1506. }
  1507. void SCAdd::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  1508. }
  1509. void SCAdd::SetCachedSize(int size) const {
  1510. _cached_size_.Set(size);
  1511. }
  1512. void SCAdd::Clear() {
  1513. // @@protoc_insertion_point(message_clear_start:RemoNet.SCAdd)
  1514. uint32_t cached_has_bits = 0;
  1515. // Prevent compiler warnings about cached_has_bits being unused
  1516. (void) cached_has_bits;
  1517. name_.ClearToEmpty();
  1518. ::memset(&ret_, 0, static_cast<size_t>(
  1519. reinterpret_cast<char*>(&cid_) -
  1520. reinterpret_cast<char*>(&ret_)) + sizeof(cid_));
  1521. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1522. }
  1523. const char* SCAdd::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  1524. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  1525. while (!ctx->Done(&ptr)) {
  1526. uint32_t tag;
  1527. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  1528. switch (tag >> 3) {
  1529. // bool ret = 1;
  1530. case 1:
  1531. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  1532. ret_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  1533. CHK_(ptr);
  1534. } else
  1535. goto handle_unusual;
  1536. continue;
  1537. // int32 uid = 2;
  1538. case 2:
  1539. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  1540. uid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  1541. CHK_(ptr);
  1542. } else
  1543. goto handle_unusual;
  1544. continue;
  1545. // int32 cid = 3;
  1546. case 3:
  1547. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  1548. cid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  1549. CHK_(ptr);
  1550. } else
  1551. goto handle_unusual;
  1552. continue;
  1553. // string name = 4;
  1554. case 4:
  1555. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
  1556. auto str = _internal_mutable_name();
  1557. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  1558. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.SCAdd.name"));
  1559. CHK_(ptr);
  1560. } else
  1561. goto handle_unusual;
  1562. continue;
  1563. default:
  1564. goto handle_unusual;
  1565. } // switch
  1566. handle_unusual:
  1567. if ((tag == 0) || ((tag & 7) == 4)) {
  1568. CHK_(ptr);
  1569. ctx->SetLastTag(tag);
  1570. goto message_done;
  1571. }
  1572. ptr = UnknownFieldParse(
  1573. tag,
  1574. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  1575. ptr, ctx);
  1576. CHK_(ptr != nullptr);
  1577. } // while
  1578. message_done:
  1579. return ptr;
  1580. failure:
  1581. ptr = nullptr;
  1582. goto message_done;
  1583. #undef CHK_
  1584. }
  1585. uint8_t* SCAdd::_InternalSerialize(
  1586. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  1587. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.SCAdd)
  1588. uint32_t cached_has_bits = 0;
  1589. (void) cached_has_bits;
  1590. // bool ret = 1;
  1591. if (this->_internal_ret() != 0) {
  1592. target = stream->EnsureSpace(target);
  1593. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_ret(), target);
  1594. }
  1595. // int32 uid = 2;
  1596. if (this->_internal_uid() != 0) {
  1597. target = stream->EnsureSpace(target);
  1598. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_uid(), target);
  1599. }
  1600. // int32 cid = 3;
  1601. if (this->_internal_cid() != 0) {
  1602. target = stream->EnsureSpace(target);
  1603. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_cid(), target);
  1604. }
  1605. // string name = 4;
  1606. if (!this->_internal_name().empty()) {
  1607. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  1608. this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
  1609. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  1610. "RemoNet.SCAdd.name");
  1611. target = stream->WriteStringMaybeAliased(
  1612. 4, this->_internal_name(), target);
  1613. }
  1614. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1615. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  1616. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  1617. }
  1618. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.SCAdd)
  1619. return target;
  1620. }
  1621. size_t SCAdd::ByteSizeLong() const {
  1622. // @@protoc_insertion_point(message_byte_size_start:RemoNet.SCAdd)
  1623. size_t total_size = 0;
  1624. uint32_t cached_has_bits = 0;
  1625. // Prevent compiler warnings about cached_has_bits being unused
  1626. (void) cached_has_bits;
  1627. // string name = 4;
  1628. if (!this->_internal_name().empty()) {
  1629. total_size += 1 +
  1630. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  1631. this->_internal_name());
  1632. }
  1633. // bool ret = 1;
  1634. if (this->_internal_ret() != 0) {
  1635. total_size += 1 + 1;
  1636. }
  1637. // int32 uid = 2;
  1638. if (this->_internal_uid() != 0) {
  1639. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_uid());
  1640. }
  1641. // int32 cid = 3;
  1642. if (this->_internal_cid() != 0) {
  1643. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_cid());
  1644. }
  1645. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  1646. }
  1647. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCAdd::_class_data_ = {
  1648. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  1649. SCAdd::MergeImpl
  1650. };
  1651. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCAdd::GetClassData() const { return &_class_data_; }
  1652. void SCAdd::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  1653. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  1654. static_cast<SCAdd *>(to)->MergeFrom(
  1655. static_cast<const SCAdd &>(from));
  1656. }
  1657. void SCAdd::MergeFrom(const SCAdd& from) {
  1658. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.SCAdd)
  1659. GOOGLE_DCHECK_NE(&from, this);
  1660. uint32_t cached_has_bits = 0;
  1661. (void) cached_has_bits;
  1662. if (!from._internal_name().empty()) {
  1663. _internal_set_name(from._internal_name());
  1664. }
  1665. if (from._internal_ret() != 0) {
  1666. _internal_set_ret(from._internal_ret());
  1667. }
  1668. if (from._internal_uid() != 0) {
  1669. _internal_set_uid(from._internal_uid());
  1670. }
  1671. if (from._internal_cid() != 0) {
  1672. _internal_set_cid(from._internal_cid());
  1673. }
  1674. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1675. }
  1676. void SCAdd::CopyFrom(const SCAdd& from) {
  1677. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.SCAdd)
  1678. if (&from == this) return;
  1679. Clear();
  1680. MergeFrom(from);
  1681. }
  1682. bool SCAdd::IsInitialized() const {
  1683. return true;
  1684. }
  1685. void SCAdd::InternalSwap(SCAdd* other) {
  1686. using std::swap;
  1687. auto* lhs_arena = GetArenaForAllocation();
  1688. auto* rhs_arena = other->GetArenaForAllocation();
  1689. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  1690. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  1691. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  1692. &name_, lhs_arena,
  1693. &other->name_, rhs_arena
  1694. );
  1695. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  1696. PROTOBUF_FIELD_OFFSET(SCAdd, cid_)
  1697. + sizeof(SCAdd::cid_)
  1698. - PROTOBUF_FIELD_OFFSET(SCAdd, ret_)>(
  1699. reinterpret_cast<char*>(&ret_),
  1700. reinterpret_cast<char*>(&other->ret_));
  1701. }
  1702. ::PROTOBUF_NAMESPACE_ID::Metadata SCAdd::GetMetadata() const {
  1703. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  1704. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  1705. file_level_metadata_protocol_2eproto[1]);
  1706. }
  1707. // ===================================================================
  1708. class SCKickOff::_Internal {
  1709. public:
  1710. };
  1711. SCKickOff::SCKickOff(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  1712. bool is_message_owned)
  1713. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) {
  1714. // @@protoc_insertion_point(arena_constructor:RemoNet.SCKickOff)
  1715. }
  1716. SCKickOff::SCKickOff(const SCKickOff& from)
  1717. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() {
  1718. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1719. // @@protoc_insertion_point(copy_constructor:RemoNet.SCKickOff)
  1720. }
  1721. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCKickOff::_class_data_ = {
  1722. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl,
  1723. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl,
  1724. };
  1725. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCKickOff::GetClassData() const { return &_class_data_; }
  1726. ::PROTOBUF_NAMESPACE_ID::Metadata SCKickOff::GetMetadata() const {
  1727. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  1728. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  1729. file_level_metadata_protocol_2eproto[2]);
  1730. }
  1731. // ===================================================================
  1732. class Robot::_Internal {
  1733. public:
  1734. };
  1735. Robot::Robot(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  1736. bool is_message_owned)
  1737. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  1738. SharedCtor();
  1739. if (!is_message_owned) {
  1740. RegisterArenaDtor(arena);
  1741. }
  1742. // @@protoc_insertion_point(arena_constructor:RemoNet.Robot)
  1743. }
  1744. Robot::Robot(const Robot& from)
  1745. : ::PROTOBUF_NAMESPACE_ID::Message() {
  1746. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1747. name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1748. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1749. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  1750. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1751. if (!from._internal_name().empty()) {
  1752. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(),
  1753. GetArenaForAllocation());
  1754. }
  1755. ::memcpy(&rid_, &from.rid_,
  1756. static_cast<size_t>(reinterpret_cast<char*>(&state_) -
  1757. reinterpret_cast<char*>(&rid_)) + sizeof(state_));
  1758. // @@protoc_insertion_point(copy_constructor:RemoNet.Robot)
  1759. }
  1760. inline void Robot::SharedCtor() {
  1761. name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1762. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1763. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  1764. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1765. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  1766. reinterpret_cast<char*>(&rid_) - reinterpret_cast<char*>(this)),
  1767. 0, static_cast<size_t>(reinterpret_cast<char*>(&state_) -
  1768. reinterpret_cast<char*>(&rid_)) + sizeof(state_));
  1769. }
  1770. Robot::~Robot() {
  1771. // @@protoc_insertion_point(destructor:RemoNet.Robot)
  1772. if (GetArenaForAllocation() != nullptr) return;
  1773. SharedDtor();
  1774. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1775. }
  1776. inline void Robot::SharedDtor() {
  1777. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  1778. name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1779. }
  1780. void Robot::ArenaDtor(void* object) {
  1781. Robot* _this = reinterpret_cast< Robot* >(object);
  1782. (void)_this;
  1783. }
  1784. void Robot::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  1785. }
  1786. void Robot::SetCachedSize(int size) const {
  1787. _cached_size_.Set(size);
  1788. }
  1789. void Robot::Clear() {
  1790. // @@protoc_insertion_point(message_clear_start:RemoNet.Robot)
  1791. uint32_t cached_has_bits = 0;
  1792. // Prevent compiler warnings about cached_has_bits being unused
  1793. (void) cached_has_bits;
  1794. name_.ClearToEmpty();
  1795. ::memset(&rid_, 0, static_cast<size_t>(
  1796. reinterpret_cast<char*>(&state_) -
  1797. reinterpret_cast<char*>(&rid_)) + sizeof(state_));
  1798. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1799. }
  1800. const char* Robot::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  1801. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  1802. while (!ctx->Done(&ptr)) {
  1803. uint32_t tag;
  1804. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  1805. switch (tag >> 3) {
  1806. // int32 rid = 1;
  1807. case 1:
  1808. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  1809. rid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  1810. CHK_(ptr);
  1811. } else
  1812. goto handle_unusual;
  1813. continue;
  1814. // string name = 2;
  1815. case 2:
  1816. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
  1817. auto str = _internal_mutable_name();
  1818. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  1819. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.Robot.name"));
  1820. CHK_(ptr);
  1821. } else
  1822. goto handle_unusual;
  1823. continue;
  1824. // int32 type = 3;
  1825. case 3:
  1826. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  1827. type_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  1828. CHK_(ptr);
  1829. } else
  1830. goto handle_unusual;
  1831. continue;
  1832. // .RemoNet.Robot.RobotState state = 4;
  1833. case 4:
  1834. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
  1835. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  1836. CHK_(ptr);
  1837. _internal_set_state(static_cast<::RemoNet::Robot_RobotState>(val));
  1838. } else
  1839. goto handle_unusual;
  1840. continue;
  1841. default:
  1842. goto handle_unusual;
  1843. } // switch
  1844. handle_unusual:
  1845. if ((tag == 0) || ((tag & 7) == 4)) {
  1846. CHK_(ptr);
  1847. ctx->SetLastTag(tag);
  1848. goto message_done;
  1849. }
  1850. ptr = UnknownFieldParse(
  1851. tag,
  1852. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  1853. ptr, ctx);
  1854. CHK_(ptr != nullptr);
  1855. } // while
  1856. message_done:
  1857. return ptr;
  1858. failure:
  1859. ptr = nullptr;
  1860. goto message_done;
  1861. #undef CHK_
  1862. }
  1863. uint8_t* Robot::_InternalSerialize(
  1864. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  1865. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.Robot)
  1866. uint32_t cached_has_bits = 0;
  1867. (void) cached_has_bits;
  1868. // int32 rid = 1;
  1869. if (this->_internal_rid() != 0) {
  1870. target = stream->EnsureSpace(target);
  1871. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_rid(), target);
  1872. }
  1873. // string name = 2;
  1874. if (!this->_internal_name().empty()) {
  1875. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  1876. this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
  1877. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  1878. "RemoNet.Robot.name");
  1879. target = stream->WriteStringMaybeAliased(
  1880. 2, this->_internal_name(), target);
  1881. }
  1882. // int32 type = 3;
  1883. if (this->_internal_type() != 0) {
  1884. target = stream->EnsureSpace(target);
  1885. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_type(), target);
  1886. }
  1887. // .RemoNet.Robot.RobotState state = 4;
  1888. if (this->_internal_state() != 0) {
  1889. target = stream->EnsureSpace(target);
  1890. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
  1891. 4, this->_internal_state(), target);
  1892. }
  1893. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1894. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  1895. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  1896. }
  1897. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.Robot)
  1898. return target;
  1899. }
  1900. size_t Robot::ByteSizeLong() const {
  1901. // @@protoc_insertion_point(message_byte_size_start:RemoNet.Robot)
  1902. size_t total_size = 0;
  1903. uint32_t cached_has_bits = 0;
  1904. // Prevent compiler warnings about cached_has_bits being unused
  1905. (void) cached_has_bits;
  1906. // string name = 2;
  1907. if (!this->_internal_name().empty()) {
  1908. total_size += 1 +
  1909. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  1910. this->_internal_name());
  1911. }
  1912. // int32 rid = 1;
  1913. if (this->_internal_rid() != 0) {
  1914. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_rid());
  1915. }
  1916. // int32 type = 3;
  1917. if (this->_internal_type() != 0) {
  1918. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_type());
  1919. }
  1920. // .RemoNet.Robot.RobotState state = 4;
  1921. if (this->_internal_state() != 0) {
  1922. total_size += 1 +
  1923. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_state());
  1924. }
  1925. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  1926. }
  1927. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Robot::_class_data_ = {
  1928. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  1929. Robot::MergeImpl
  1930. };
  1931. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Robot::GetClassData() const { return &_class_data_; }
  1932. void Robot::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  1933. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  1934. static_cast<Robot *>(to)->MergeFrom(
  1935. static_cast<const Robot &>(from));
  1936. }
  1937. void Robot::MergeFrom(const Robot& from) {
  1938. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.Robot)
  1939. GOOGLE_DCHECK_NE(&from, this);
  1940. uint32_t cached_has_bits = 0;
  1941. (void) cached_has_bits;
  1942. if (!from._internal_name().empty()) {
  1943. _internal_set_name(from._internal_name());
  1944. }
  1945. if (from._internal_rid() != 0) {
  1946. _internal_set_rid(from._internal_rid());
  1947. }
  1948. if (from._internal_type() != 0) {
  1949. _internal_set_type(from._internal_type());
  1950. }
  1951. if (from._internal_state() != 0) {
  1952. _internal_set_state(from._internal_state());
  1953. }
  1954. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1955. }
  1956. void Robot::CopyFrom(const Robot& from) {
  1957. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.Robot)
  1958. if (&from == this) return;
  1959. Clear();
  1960. MergeFrom(from);
  1961. }
  1962. bool Robot::IsInitialized() const {
  1963. return true;
  1964. }
  1965. void Robot::InternalSwap(Robot* other) {
  1966. using std::swap;
  1967. auto* lhs_arena = GetArenaForAllocation();
  1968. auto* rhs_arena = other->GetArenaForAllocation();
  1969. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  1970. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  1971. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  1972. &name_, lhs_arena,
  1973. &other->name_, rhs_arena
  1974. );
  1975. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  1976. PROTOBUF_FIELD_OFFSET(Robot, state_)
  1977. + sizeof(Robot::state_)
  1978. - PROTOBUF_FIELD_OFFSET(Robot, rid_)>(
  1979. reinterpret_cast<char*>(&rid_),
  1980. reinterpret_cast<char*>(&other->rid_));
  1981. }
  1982. ::PROTOBUF_NAMESPACE_ID::Metadata Robot::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[3]);
  1986. }
  1987. // ===================================================================
  1988. class CSRobot::_Internal {
  1989. public:
  1990. };
  1991. CSRobot::CSRobot(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  1992. bool is_message_owned)
  1993. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) {
  1994. // @@protoc_insertion_point(arena_constructor:RemoNet.CSRobot)
  1995. }
  1996. CSRobot::CSRobot(const CSRobot& from)
  1997. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() {
  1998. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1999. // @@protoc_insertion_point(copy_constructor:RemoNet.CSRobot)
  2000. }
  2001. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CSRobot::_class_data_ = {
  2002. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl,
  2003. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl,
  2004. };
  2005. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CSRobot::GetClassData() const { return &_class_data_; }
  2006. ::PROTOBUF_NAMESPACE_ID::Metadata CSRobot::GetMetadata() const {
  2007. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  2008. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  2009. file_level_metadata_protocol_2eproto[4]);
  2010. }
  2011. // ===================================================================
  2012. class SCRobot::_Internal {
  2013. public:
  2014. };
  2015. SCRobot::SCRobot(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  2016. bool is_message_owned)
  2017. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
  2018. robot_(arena) {
  2019. SharedCtor();
  2020. if (!is_message_owned) {
  2021. RegisterArenaDtor(arena);
  2022. }
  2023. // @@protoc_insertion_point(arena_constructor:RemoNet.SCRobot)
  2024. }
  2025. SCRobot::SCRobot(const SCRobot& from)
  2026. : ::PROTOBUF_NAMESPACE_ID::Message(),
  2027. robot_(from.robot_) {
  2028. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2029. // @@protoc_insertion_point(copy_constructor:RemoNet.SCRobot)
  2030. }
  2031. inline void SCRobot::SharedCtor() {
  2032. }
  2033. SCRobot::~SCRobot() {
  2034. // @@protoc_insertion_point(destructor:RemoNet.SCRobot)
  2035. if (GetArenaForAllocation() != nullptr) return;
  2036. SharedDtor();
  2037. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2038. }
  2039. inline void SCRobot::SharedDtor() {
  2040. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  2041. }
  2042. void SCRobot::ArenaDtor(void* object) {
  2043. SCRobot* _this = reinterpret_cast< SCRobot* >(object);
  2044. (void)_this;
  2045. }
  2046. void SCRobot::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  2047. }
  2048. void SCRobot::SetCachedSize(int size) const {
  2049. _cached_size_.Set(size);
  2050. }
  2051. void SCRobot::Clear() {
  2052. // @@protoc_insertion_point(message_clear_start:RemoNet.SCRobot)
  2053. uint32_t cached_has_bits = 0;
  2054. // Prevent compiler warnings about cached_has_bits being unused
  2055. (void) cached_has_bits;
  2056. robot_.Clear();
  2057. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2058. }
  2059. const char* SCRobot::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  2060. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  2061. while (!ctx->Done(&ptr)) {
  2062. uint32_t tag;
  2063. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  2064. switch (tag >> 3) {
  2065. // repeated .RemoNet.Robot robot = 1;
  2066. case 1:
  2067. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
  2068. ptr -= 1;
  2069. do {
  2070. ptr += 1;
  2071. ptr = ctx->ParseMessage(_internal_add_robot(), ptr);
  2072. CHK_(ptr);
  2073. if (!ctx->DataAvailable(ptr)) break;
  2074. } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
  2075. } else
  2076. goto handle_unusual;
  2077. continue;
  2078. default:
  2079. goto handle_unusual;
  2080. } // switch
  2081. handle_unusual:
  2082. if ((tag == 0) || ((tag & 7) == 4)) {
  2083. CHK_(ptr);
  2084. ctx->SetLastTag(tag);
  2085. goto message_done;
  2086. }
  2087. ptr = UnknownFieldParse(
  2088. tag,
  2089. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  2090. ptr, ctx);
  2091. CHK_(ptr != nullptr);
  2092. } // while
  2093. message_done:
  2094. return ptr;
  2095. failure:
  2096. ptr = nullptr;
  2097. goto message_done;
  2098. #undef CHK_
  2099. }
  2100. uint8_t* SCRobot::_InternalSerialize(
  2101. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  2102. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.SCRobot)
  2103. uint32_t cached_has_bits = 0;
  2104. (void) cached_has_bits;
  2105. // repeated .RemoNet.Robot robot = 1;
  2106. for (unsigned int i = 0,
  2107. n = static_cast<unsigned int>(this->_internal_robot_size()); i < n; i++) {
  2108. target = stream->EnsureSpace(target);
  2109. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  2110. InternalWriteMessage(1, this->_internal_robot(i), target, stream);
  2111. }
  2112. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  2113. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  2114. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  2115. }
  2116. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.SCRobot)
  2117. return target;
  2118. }
  2119. size_t SCRobot::ByteSizeLong() const {
  2120. // @@protoc_insertion_point(message_byte_size_start:RemoNet.SCRobot)
  2121. size_t total_size = 0;
  2122. uint32_t cached_has_bits = 0;
  2123. // Prevent compiler warnings about cached_has_bits being unused
  2124. (void) cached_has_bits;
  2125. // repeated .RemoNet.Robot robot = 1;
  2126. total_size += 1UL * this->_internal_robot_size();
  2127. for (const auto& msg : this->robot_) {
  2128. total_size +=
  2129. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  2130. }
  2131. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  2132. }
  2133. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCRobot::_class_data_ = {
  2134. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  2135. SCRobot::MergeImpl
  2136. };
  2137. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCRobot::GetClassData() const { return &_class_data_; }
  2138. void SCRobot::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  2139. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  2140. static_cast<SCRobot *>(to)->MergeFrom(
  2141. static_cast<const SCRobot &>(from));
  2142. }
  2143. void SCRobot::MergeFrom(const SCRobot& from) {
  2144. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.SCRobot)
  2145. GOOGLE_DCHECK_NE(&from, this);
  2146. uint32_t cached_has_bits = 0;
  2147. (void) cached_has_bits;
  2148. robot_.MergeFrom(from.robot_);
  2149. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2150. }
  2151. void SCRobot::CopyFrom(const SCRobot& from) {
  2152. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.SCRobot)
  2153. if (&from == this) return;
  2154. Clear();
  2155. MergeFrom(from);
  2156. }
  2157. bool SCRobot::IsInitialized() const {
  2158. return true;
  2159. }
  2160. void SCRobot::InternalSwap(SCRobot* other) {
  2161. using std::swap;
  2162. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  2163. robot_.InternalSwap(&other->robot_);
  2164. }
  2165. ::PROTOBUF_NAMESPACE_ID::Metadata SCRobot::GetMetadata() const {
  2166. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  2167. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  2168. file_level_metadata_protocol_2eproto[5]);
  2169. }
  2170. // ===================================================================
  2171. class CSSign::_Internal {
  2172. public:
  2173. };
  2174. CSSign::CSSign(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  2175. bool is_message_owned)
  2176. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  2177. SharedCtor();
  2178. if (!is_message_owned) {
  2179. RegisterArenaDtor(arena);
  2180. }
  2181. // @@protoc_insertion_point(arena_constructor:RemoNet.CSSign)
  2182. }
  2183. CSSign::CSSign(const CSSign& from)
  2184. : ::PROTOBUF_NAMESPACE_ID::Message() {
  2185. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2186. account_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  2187. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2188. account_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  2189. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2190. if (!from._internal_account().empty()) {
  2191. account_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_account(),
  2192. GetArenaForAllocation());
  2193. }
  2194. password_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  2195. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2196. password_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  2197. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2198. if (!from._internal_password().empty()) {
  2199. password_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_password(),
  2200. GetArenaForAllocation());
  2201. }
  2202. // @@protoc_insertion_point(copy_constructor:RemoNet.CSSign)
  2203. }
  2204. inline void CSSign::SharedCtor() {
  2205. account_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  2206. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2207. account_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  2208. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2209. password_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  2210. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2211. password_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  2212. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2213. }
  2214. CSSign::~CSSign() {
  2215. // @@protoc_insertion_point(destructor:RemoNet.CSSign)
  2216. if (GetArenaForAllocation() != nullptr) return;
  2217. SharedDtor();
  2218. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2219. }
  2220. inline void CSSign::SharedDtor() {
  2221. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  2222. account_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  2223. password_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  2224. }
  2225. void CSSign::ArenaDtor(void* object) {
  2226. CSSign* _this = reinterpret_cast< CSSign* >(object);
  2227. (void)_this;
  2228. }
  2229. void CSSign::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  2230. }
  2231. void CSSign::SetCachedSize(int size) const {
  2232. _cached_size_.Set(size);
  2233. }
  2234. void CSSign::Clear() {
  2235. // @@protoc_insertion_point(message_clear_start:RemoNet.CSSign)
  2236. uint32_t cached_has_bits = 0;
  2237. // Prevent compiler warnings about cached_has_bits being unused
  2238. (void) cached_has_bits;
  2239. account_.ClearToEmpty();
  2240. password_.ClearToEmpty();
  2241. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2242. }
  2243. const char* CSSign::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  2244. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  2245. while (!ctx->Done(&ptr)) {
  2246. uint32_t tag;
  2247. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  2248. switch (tag >> 3) {
  2249. // string account = 1;
  2250. case 1:
  2251. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
  2252. auto str = _internal_mutable_account();
  2253. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  2254. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.CSSign.account"));
  2255. CHK_(ptr);
  2256. } else
  2257. goto handle_unusual;
  2258. continue;
  2259. // string password = 2;
  2260. case 2:
  2261. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
  2262. auto str = _internal_mutable_password();
  2263. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  2264. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.CSSign.password"));
  2265. CHK_(ptr);
  2266. } else
  2267. goto handle_unusual;
  2268. continue;
  2269. default:
  2270. goto handle_unusual;
  2271. } // switch
  2272. handle_unusual:
  2273. if ((tag == 0) || ((tag & 7) == 4)) {
  2274. CHK_(ptr);
  2275. ctx->SetLastTag(tag);
  2276. goto message_done;
  2277. }
  2278. ptr = UnknownFieldParse(
  2279. tag,
  2280. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  2281. ptr, ctx);
  2282. CHK_(ptr != nullptr);
  2283. } // while
  2284. message_done:
  2285. return ptr;
  2286. failure:
  2287. ptr = nullptr;
  2288. goto message_done;
  2289. #undef CHK_
  2290. }
  2291. uint8_t* CSSign::_InternalSerialize(
  2292. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  2293. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CSSign)
  2294. uint32_t cached_has_bits = 0;
  2295. (void) cached_has_bits;
  2296. // string account = 1;
  2297. if (!this->_internal_account().empty()) {
  2298. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  2299. this->_internal_account().data(), static_cast<int>(this->_internal_account().length()),
  2300. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  2301. "RemoNet.CSSign.account");
  2302. target = stream->WriteStringMaybeAliased(
  2303. 1, this->_internal_account(), target);
  2304. }
  2305. // string password = 2;
  2306. if (!this->_internal_password().empty()) {
  2307. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  2308. this->_internal_password().data(), static_cast<int>(this->_internal_password().length()),
  2309. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  2310. "RemoNet.CSSign.password");
  2311. target = stream->WriteStringMaybeAliased(
  2312. 2, this->_internal_password(), target);
  2313. }
  2314. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  2315. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  2316. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  2317. }
  2318. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CSSign)
  2319. return target;
  2320. }
  2321. size_t CSSign::ByteSizeLong() const {
  2322. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CSSign)
  2323. size_t total_size = 0;
  2324. uint32_t cached_has_bits = 0;
  2325. // Prevent compiler warnings about cached_has_bits being unused
  2326. (void) cached_has_bits;
  2327. // string account = 1;
  2328. if (!this->_internal_account().empty()) {
  2329. total_size += 1 +
  2330. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  2331. this->_internal_account());
  2332. }
  2333. // string password = 2;
  2334. if (!this->_internal_password().empty()) {
  2335. total_size += 1 +
  2336. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  2337. this->_internal_password());
  2338. }
  2339. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  2340. }
  2341. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CSSign::_class_data_ = {
  2342. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  2343. CSSign::MergeImpl
  2344. };
  2345. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CSSign::GetClassData() const { return &_class_data_; }
  2346. void CSSign::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  2347. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  2348. static_cast<CSSign *>(to)->MergeFrom(
  2349. static_cast<const CSSign &>(from));
  2350. }
  2351. void CSSign::MergeFrom(const CSSign& from) {
  2352. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CSSign)
  2353. GOOGLE_DCHECK_NE(&from, this);
  2354. uint32_t cached_has_bits = 0;
  2355. (void) cached_has_bits;
  2356. if (!from._internal_account().empty()) {
  2357. _internal_set_account(from._internal_account());
  2358. }
  2359. if (!from._internal_password().empty()) {
  2360. _internal_set_password(from._internal_password());
  2361. }
  2362. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2363. }
  2364. void CSSign::CopyFrom(const CSSign& from) {
  2365. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CSSign)
  2366. if (&from == this) return;
  2367. Clear();
  2368. MergeFrom(from);
  2369. }
  2370. bool CSSign::IsInitialized() const {
  2371. return true;
  2372. }
  2373. void CSSign::InternalSwap(CSSign* other) {
  2374. using std::swap;
  2375. auto* lhs_arena = GetArenaForAllocation();
  2376. auto* rhs_arena = other->GetArenaForAllocation();
  2377. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  2378. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  2379. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  2380. &account_, lhs_arena,
  2381. &other->account_, rhs_arena
  2382. );
  2383. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  2384. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  2385. &password_, lhs_arena,
  2386. &other->password_, rhs_arena
  2387. );
  2388. }
  2389. ::PROTOBUF_NAMESPACE_ID::Metadata CSSign::GetMetadata() const {
  2390. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  2391. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  2392. file_level_metadata_protocol_2eproto[6]);
  2393. }
  2394. // ===================================================================
  2395. class SCSign::_Internal {
  2396. public:
  2397. };
  2398. SCSign::SCSign(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  2399. bool is_message_owned)
  2400. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  2401. SharedCtor();
  2402. if (!is_message_owned) {
  2403. RegisterArenaDtor(arena);
  2404. }
  2405. // @@protoc_insertion_point(arena_constructor:RemoNet.SCSign)
  2406. }
  2407. SCSign::SCSign(const SCSign& from)
  2408. : ::PROTOBUF_NAMESPACE_ID::Message() {
  2409. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2410. name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  2411. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2412. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  2413. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2414. if (!from._internal_name().empty()) {
  2415. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(),
  2416. GetArenaForAllocation());
  2417. }
  2418. ::memcpy(&ret_, &from.ret_,
  2419. static_cast<size_t>(reinterpret_cast<char*>(&cid_) -
  2420. reinterpret_cast<char*>(&ret_)) + sizeof(cid_));
  2421. // @@protoc_insertion_point(copy_constructor:RemoNet.SCSign)
  2422. }
  2423. inline void SCSign::SharedCtor() {
  2424. name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  2425. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2426. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  2427. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2428. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  2429. reinterpret_cast<char*>(&ret_) - reinterpret_cast<char*>(this)),
  2430. 0, static_cast<size_t>(reinterpret_cast<char*>(&cid_) -
  2431. reinterpret_cast<char*>(&ret_)) + sizeof(cid_));
  2432. }
  2433. SCSign::~SCSign() {
  2434. // @@protoc_insertion_point(destructor:RemoNet.SCSign)
  2435. if (GetArenaForAllocation() != nullptr) return;
  2436. SharedDtor();
  2437. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2438. }
  2439. inline void SCSign::SharedDtor() {
  2440. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  2441. name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  2442. }
  2443. void SCSign::ArenaDtor(void* object) {
  2444. SCSign* _this = reinterpret_cast< SCSign* >(object);
  2445. (void)_this;
  2446. }
  2447. void SCSign::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  2448. }
  2449. void SCSign::SetCachedSize(int size) const {
  2450. _cached_size_.Set(size);
  2451. }
  2452. void SCSign::Clear() {
  2453. // @@protoc_insertion_point(message_clear_start:RemoNet.SCSign)
  2454. uint32_t cached_has_bits = 0;
  2455. // Prevent compiler warnings about cached_has_bits being unused
  2456. (void) cached_has_bits;
  2457. name_.ClearToEmpty();
  2458. ::memset(&ret_, 0, static_cast<size_t>(
  2459. reinterpret_cast<char*>(&cid_) -
  2460. reinterpret_cast<char*>(&ret_)) + sizeof(cid_));
  2461. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2462. }
  2463. const char* SCSign::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  2464. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  2465. while (!ctx->Done(&ptr)) {
  2466. uint32_t tag;
  2467. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  2468. switch (tag >> 3) {
  2469. // bool ret = 1;
  2470. case 1:
  2471. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  2472. ret_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  2473. CHK_(ptr);
  2474. } else
  2475. goto handle_unusual;
  2476. continue;
  2477. // int32 uid = 2;
  2478. case 2:
  2479. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  2480. uid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2481. CHK_(ptr);
  2482. } else
  2483. goto handle_unusual;
  2484. continue;
  2485. // int32 cid = 3;
  2486. case 3:
  2487. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  2488. cid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2489. CHK_(ptr);
  2490. } else
  2491. goto handle_unusual;
  2492. continue;
  2493. // string name = 4;
  2494. case 4:
  2495. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
  2496. auto str = _internal_mutable_name();
  2497. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  2498. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.SCSign.name"));
  2499. CHK_(ptr);
  2500. } else
  2501. goto handle_unusual;
  2502. continue;
  2503. default:
  2504. goto handle_unusual;
  2505. } // switch
  2506. handle_unusual:
  2507. if ((tag == 0) || ((tag & 7) == 4)) {
  2508. CHK_(ptr);
  2509. ctx->SetLastTag(tag);
  2510. goto message_done;
  2511. }
  2512. ptr = UnknownFieldParse(
  2513. tag,
  2514. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  2515. ptr, ctx);
  2516. CHK_(ptr != nullptr);
  2517. } // while
  2518. message_done:
  2519. return ptr;
  2520. failure:
  2521. ptr = nullptr;
  2522. goto message_done;
  2523. #undef CHK_
  2524. }
  2525. uint8_t* SCSign::_InternalSerialize(
  2526. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  2527. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.SCSign)
  2528. uint32_t cached_has_bits = 0;
  2529. (void) cached_has_bits;
  2530. // bool ret = 1;
  2531. if (this->_internal_ret() != 0) {
  2532. target = stream->EnsureSpace(target);
  2533. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_ret(), target);
  2534. }
  2535. // int32 uid = 2;
  2536. if (this->_internal_uid() != 0) {
  2537. target = stream->EnsureSpace(target);
  2538. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_uid(), target);
  2539. }
  2540. // int32 cid = 3;
  2541. if (this->_internal_cid() != 0) {
  2542. target = stream->EnsureSpace(target);
  2543. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_cid(), target);
  2544. }
  2545. // string name = 4;
  2546. if (!this->_internal_name().empty()) {
  2547. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  2548. this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
  2549. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  2550. "RemoNet.SCSign.name");
  2551. target = stream->WriteStringMaybeAliased(
  2552. 4, this->_internal_name(), target);
  2553. }
  2554. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  2555. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  2556. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  2557. }
  2558. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.SCSign)
  2559. return target;
  2560. }
  2561. size_t SCSign::ByteSizeLong() const {
  2562. // @@protoc_insertion_point(message_byte_size_start:RemoNet.SCSign)
  2563. size_t total_size = 0;
  2564. uint32_t cached_has_bits = 0;
  2565. // Prevent compiler warnings about cached_has_bits being unused
  2566. (void) cached_has_bits;
  2567. // string name = 4;
  2568. if (!this->_internal_name().empty()) {
  2569. total_size += 1 +
  2570. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  2571. this->_internal_name());
  2572. }
  2573. // bool ret = 1;
  2574. if (this->_internal_ret() != 0) {
  2575. total_size += 1 + 1;
  2576. }
  2577. // int32 uid = 2;
  2578. if (this->_internal_uid() != 0) {
  2579. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_uid());
  2580. }
  2581. // int32 cid = 3;
  2582. if (this->_internal_cid() != 0) {
  2583. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_cid());
  2584. }
  2585. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  2586. }
  2587. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCSign::_class_data_ = {
  2588. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  2589. SCSign::MergeImpl
  2590. };
  2591. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCSign::GetClassData() const { return &_class_data_; }
  2592. void SCSign::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  2593. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  2594. static_cast<SCSign *>(to)->MergeFrom(
  2595. static_cast<const SCSign &>(from));
  2596. }
  2597. void SCSign::MergeFrom(const SCSign& from) {
  2598. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.SCSign)
  2599. GOOGLE_DCHECK_NE(&from, this);
  2600. uint32_t cached_has_bits = 0;
  2601. (void) cached_has_bits;
  2602. if (!from._internal_name().empty()) {
  2603. _internal_set_name(from._internal_name());
  2604. }
  2605. if (from._internal_ret() != 0) {
  2606. _internal_set_ret(from._internal_ret());
  2607. }
  2608. if (from._internal_uid() != 0) {
  2609. _internal_set_uid(from._internal_uid());
  2610. }
  2611. if (from._internal_cid() != 0) {
  2612. _internal_set_cid(from._internal_cid());
  2613. }
  2614. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2615. }
  2616. void SCSign::CopyFrom(const SCSign& from) {
  2617. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.SCSign)
  2618. if (&from == this) return;
  2619. Clear();
  2620. MergeFrom(from);
  2621. }
  2622. bool SCSign::IsInitialized() const {
  2623. return true;
  2624. }
  2625. void SCSign::InternalSwap(SCSign* other) {
  2626. using std::swap;
  2627. auto* lhs_arena = GetArenaForAllocation();
  2628. auto* rhs_arena = other->GetArenaForAllocation();
  2629. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  2630. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  2631. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  2632. &name_, lhs_arena,
  2633. &other->name_, rhs_arena
  2634. );
  2635. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  2636. PROTOBUF_FIELD_OFFSET(SCSign, cid_)
  2637. + sizeof(SCSign::cid_)
  2638. - PROTOBUF_FIELD_OFFSET(SCSign, ret_)>(
  2639. reinterpret_cast<char*>(&ret_),
  2640. reinterpret_cast<char*>(&other->ret_));
  2641. }
  2642. ::PROTOBUF_NAMESPACE_ID::Metadata SCSign::GetMetadata() const {
  2643. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  2644. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  2645. file_level_metadata_protocol_2eproto[7]);
  2646. }
  2647. // ===================================================================
  2648. class CSReq::_Internal {
  2649. public:
  2650. };
  2651. CSReq::CSReq(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  2652. bool is_message_owned)
  2653. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  2654. SharedCtor();
  2655. if (!is_message_owned) {
  2656. RegisterArenaDtor(arena);
  2657. }
  2658. // @@protoc_insertion_point(arena_constructor:RemoNet.CSReq)
  2659. }
  2660. CSReq::CSReq(const CSReq& from)
  2661. : ::PROTOBUF_NAMESPACE_ID::Message() {
  2662. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2663. ::memcpy(&peer_, &from.peer_,
  2664. static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  2665. reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
  2666. // @@protoc_insertion_point(copy_constructor:RemoNet.CSReq)
  2667. }
  2668. inline void CSReq::SharedCtor() {
  2669. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  2670. reinterpret_cast<char*>(&peer_) - reinterpret_cast<char*>(this)),
  2671. 0, static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  2672. reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
  2673. }
  2674. CSReq::~CSReq() {
  2675. // @@protoc_insertion_point(destructor:RemoNet.CSReq)
  2676. if (GetArenaForAllocation() != nullptr) return;
  2677. SharedDtor();
  2678. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2679. }
  2680. inline void CSReq::SharedDtor() {
  2681. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  2682. }
  2683. void CSReq::ArenaDtor(void* object) {
  2684. CSReq* _this = reinterpret_cast< CSReq* >(object);
  2685. (void)_this;
  2686. }
  2687. void CSReq::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  2688. }
  2689. void CSReq::SetCachedSize(int size) const {
  2690. _cached_size_.Set(size);
  2691. }
  2692. void CSReq::Clear() {
  2693. // @@protoc_insertion_point(message_clear_start:RemoNet.CSReq)
  2694. uint32_t cached_has_bits = 0;
  2695. // Prevent compiler warnings about cached_has_bits being unused
  2696. (void) cached_has_bits;
  2697. ::memset(&peer_, 0, static_cast<size_t>(
  2698. reinterpret_cast<char*>(&egotype_) -
  2699. reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
  2700. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2701. }
  2702. const char* CSReq::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  2703. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  2704. while (!ctx->Done(&ptr)) {
  2705. uint32_t tag;
  2706. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  2707. switch (tag >> 3) {
  2708. // int32 peer = 1;
  2709. case 1:
  2710. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  2711. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2712. CHK_(ptr);
  2713. } else
  2714. goto handle_unusual;
  2715. continue;
  2716. // int32 index = 2;
  2717. case 2:
  2718. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  2719. index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2720. CHK_(ptr);
  2721. } else
  2722. goto handle_unusual;
  2723. continue;
  2724. // int32 egotype = 3;
  2725. case 3:
  2726. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  2727. egotype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2728. CHK_(ptr);
  2729. } else
  2730. goto handle_unusual;
  2731. continue;
  2732. default:
  2733. goto handle_unusual;
  2734. } // switch
  2735. handle_unusual:
  2736. if ((tag == 0) || ((tag & 7) == 4)) {
  2737. CHK_(ptr);
  2738. ctx->SetLastTag(tag);
  2739. goto message_done;
  2740. }
  2741. ptr = UnknownFieldParse(
  2742. tag,
  2743. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  2744. ptr, ctx);
  2745. CHK_(ptr != nullptr);
  2746. } // while
  2747. message_done:
  2748. return ptr;
  2749. failure:
  2750. ptr = nullptr;
  2751. goto message_done;
  2752. #undef CHK_
  2753. }
  2754. uint8_t* CSReq::_InternalSerialize(
  2755. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  2756. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CSReq)
  2757. uint32_t cached_has_bits = 0;
  2758. (void) cached_has_bits;
  2759. // int32 peer = 1;
  2760. if (this->_internal_peer() != 0) {
  2761. target = stream->EnsureSpace(target);
  2762. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_peer(), target);
  2763. }
  2764. // int32 index = 2;
  2765. if (this->_internal_index() != 0) {
  2766. target = stream->EnsureSpace(target);
  2767. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_index(), target);
  2768. }
  2769. // int32 egotype = 3;
  2770. if (this->_internal_egotype() != 0) {
  2771. target = stream->EnsureSpace(target);
  2772. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_egotype(), target);
  2773. }
  2774. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  2775. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  2776. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  2777. }
  2778. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CSReq)
  2779. return target;
  2780. }
  2781. size_t CSReq::ByteSizeLong() const {
  2782. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CSReq)
  2783. size_t total_size = 0;
  2784. uint32_t cached_has_bits = 0;
  2785. // Prevent compiler warnings about cached_has_bits being unused
  2786. (void) cached_has_bits;
  2787. // int32 peer = 1;
  2788. if (this->_internal_peer() != 0) {
  2789. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  2790. }
  2791. // int32 index = 2;
  2792. if (this->_internal_index() != 0) {
  2793. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_index());
  2794. }
  2795. // int32 egotype = 3;
  2796. if (this->_internal_egotype() != 0) {
  2797. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_egotype());
  2798. }
  2799. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  2800. }
  2801. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CSReq::_class_data_ = {
  2802. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  2803. CSReq::MergeImpl
  2804. };
  2805. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CSReq::GetClassData() const { return &_class_data_; }
  2806. void CSReq::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  2807. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  2808. static_cast<CSReq *>(to)->MergeFrom(
  2809. static_cast<const CSReq &>(from));
  2810. }
  2811. void CSReq::MergeFrom(const CSReq& from) {
  2812. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CSReq)
  2813. GOOGLE_DCHECK_NE(&from, this);
  2814. uint32_t cached_has_bits = 0;
  2815. (void) cached_has_bits;
  2816. if (from._internal_peer() != 0) {
  2817. _internal_set_peer(from._internal_peer());
  2818. }
  2819. if (from._internal_index() != 0) {
  2820. _internal_set_index(from._internal_index());
  2821. }
  2822. if (from._internal_egotype() != 0) {
  2823. _internal_set_egotype(from._internal_egotype());
  2824. }
  2825. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2826. }
  2827. void CSReq::CopyFrom(const CSReq& from) {
  2828. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CSReq)
  2829. if (&from == this) return;
  2830. Clear();
  2831. MergeFrom(from);
  2832. }
  2833. bool CSReq::IsInitialized() const {
  2834. return true;
  2835. }
  2836. void CSReq::InternalSwap(CSReq* other) {
  2837. using std::swap;
  2838. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  2839. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  2840. PROTOBUF_FIELD_OFFSET(CSReq, egotype_)
  2841. + sizeof(CSReq::egotype_)
  2842. - PROTOBUF_FIELD_OFFSET(CSReq, peer_)>(
  2843. reinterpret_cast<char*>(&peer_),
  2844. reinterpret_cast<char*>(&other->peer_));
  2845. }
  2846. ::PROTOBUF_NAMESPACE_ID::Metadata CSReq::GetMetadata() const {
  2847. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  2848. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  2849. file_level_metadata_protocol_2eproto[8]);
  2850. }
  2851. // ===================================================================
  2852. class SCReq::_Internal {
  2853. public:
  2854. };
  2855. SCReq::SCReq(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  2856. bool is_message_owned)
  2857. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  2858. SharedCtor();
  2859. if (!is_message_owned) {
  2860. RegisterArenaDtor(arena);
  2861. }
  2862. // @@protoc_insertion_point(arena_constructor:RemoNet.SCReq)
  2863. }
  2864. SCReq::SCReq(const SCReq& from)
  2865. : ::PROTOBUF_NAMESPACE_ID::Message() {
  2866. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2867. ::memcpy(&desc_, &from.desc_,
  2868. static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  2869. reinterpret_cast<char*>(&desc_)) + sizeof(egotype_));
  2870. // @@protoc_insertion_point(copy_constructor:RemoNet.SCReq)
  2871. }
  2872. inline void SCReq::SharedCtor() {
  2873. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  2874. reinterpret_cast<char*>(&desc_) - reinterpret_cast<char*>(this)),
  2875. 0, static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  2876. reinterpret_cast<char*>(&desc_)) + sizeof(egotype_));
  2877. }
  2878. SCReq::~SCReq() {
  2879. // @@protoc_insertion_point(destructor:RemoNet.SCReq)
  2880. if (GetArenaForAllocation() != nullptr) return;
  2881. SharedDtor();
  2882. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2883. }
  2884. inline void SCReq::SharedDtor() {
  2885. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  2886. }
  2887. void SCReq::ArenaDtor(void* object) {
  2888. SCReq* _this = reinterpret_cast< SCReq* >(object);
  2889. (void)_this;
  2890. }
  2891. void SCReq::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  2892. }
  2893. void SCReq::SetCachedSize(int size) const {
  2894. _cached_size_.Set(size);
  2895. }
  2896. void SCReq::Clear() {
  2897. // @@protoc_insertion_point(message_clear_start:RemoNet.SCReq)
  2898. uint32_t cached_has_bits = 0;
  2899. // Prevent compiler warnings about cached_has_bits being unused
  2900. (void) cached_has_bits;
  2901. ::memset(&desc_, 0, static_cast<size_t>(
  2902. reinterpret_cast<char*>(&egotype_) -
  2903. reinterpret_cast<char*>(&desc_)) + sizeof(egotype_));
  2904. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2905. }
  2906. const char* SCReq::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  2907. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  2908. while (!ctx->Done(&ptr)) {
  2909. uint32_t tag;
  2910. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  2911. switch (tag >> 3) {
  2912. // .RemoNet.VideoDesc desc = 1;
  2913. case 1:
  2914. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  2915. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  2916. CHK_(ptr);
  2917. _internal_set_desc(static_cast<::RemoNet::VideoDesc>(val));
  2918. } else
  2919. goto handle_unusual;
  2920. continue;
  2921. // int32 peer = 2;
  2922. case 2:
  2923. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  2924. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2925. CHK_(ptr);
  2926. } else
  2927. goto handle_unusual;
  2928. continue;
  2929. // int32 egotype = 3;
  2930. case 3:
  2931. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  2932. egotype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2933. CHK_(ptr);
  2934. } else
  2935. goto handle_unusual;
  2936. continue;
  2937. default:
  2938. goto handle_unusual;
  2939. } // switch
  2940. handle_unusual:
  2941. if ((tag == 0) || ((tag & 7) == 4)) {
  2942. CHK_(ptr);
  2943. ctx->SetLastTag(tag);
  2944. goto message_done;
  2945. }
  2946. ptr = UnknownFieldParse(
  2947. tag,
  2948. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  2949. ptr, ctx);
  2950. CHK_(ptr != nullptr);
  2951. } // while
  2952. message_done:
  2953. return ptr;
  2954. failure:
  2955. ptr = nullptr;
  2956. goto message_done;
  2957. #undef CHK_
  2958. }
  2959. uint8_t* SCReq::_InternalSerialize(
  2960. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  2961. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.SCReq)
  2962. uint32_t cached_has_bits = 0;
  2963. (void) cached_has_bits;
  2964. // .RemoNet.VideoDesc desc = 1;
  2965. if (this->_internal_desc() != 0) {
  2966. target = stream->EnsureSpace(target);
  2967. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
  2968. 1, this->_internal_desc(), target);
  2969. }
  2970. // int32 peer = 2;
  2971. if (this->_internal_peer() != 0) {
  2972. target = stream->EnsureSpace(target);
  2973. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_peer(), target);
  2974. }
  2975. // int32 egotype = 3;
  2976. if (this->_internal_egotype() != 0) {
  2977. target = stream->EnsureSpace(target);
  2978. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_egotype(), target);
  2979. }
  2980. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  2981. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  2982. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  2983. }
  2984. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.SCReq)
  2985. return target;
  2986. }
  2987. size_t SCReq::ByteSizeLong() const {
  2988. // @@protoc_insertion_point(message_byte_size_start:RemoNet.SCReq)
  2989. size_t total_size = 0;
  2990. uint32_t cached_has_bits = 0;
  2991. // Prevent compiler warnings about cached_has_bits being unused
  2992. (void) cached_has_bits;
  2993. // .RemoNet.VideoDesc desc = 1;
  2994. if (this->_internal_desc() != 0) {
  2995. total_size += 1 +
  2996. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_desc());
  2997. }
  2998. // int32 peer = 2;
  2999. if (this->_internal_peer() != 0) {
  3000. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  3001. }
  3002. // int32 egotype = 3;
  3003. if (this->_internal_egotype() != 0) {
  3004. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_egotype());
  3005. }
  3006. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  3007. }
  3008. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCReq::_class_data_ = {
  3009. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  3010. SCReq::MergeImpl
  3011. };
  3012. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCReq::GetClassData() const { return &_class_data_; }
  3013. void SCReq::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  3014. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  3015. static_cast<SCReq *>(to)->MergeFrom(
  3016. static_cast<const SCReq &>(from));
  3017. }
  3018. void SCReq::MergeFrom(const SCReq& from) {
  3019. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.SCReq)
  3020. GOOGLE_DCHECK_NE(&from, this);
  3021. uint32_t cached_has_bits = 0;
  3022. (void) cached_has_bits;
  3023. if (from._internal_desc() != 0) {
  3024. _internal_set_desc(from._internal_desc());
  3025. }
  3026. if (from._internal_peer() != 0) {
  3027. _internal_set_peer(from._internal_peer());
  3028. }
  3029. if (from._internal_egotype() != 0) {
  3030. _internal_set_egotype(from._internal_egotype());
  3031. }
  3032. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3033. }
  3034. void SCReq::CopyFrom(const SCReq& from) {
  3035. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.SCReq)
  3036. if (&from == this) return;
  3037. Clear();
  3038. MergeFrom(from);
  3039. }
  3040. bool SCReq::IsInitialized() const {
  3041. return true;
  3042. }
  3043. void SCReq::InternalSwap(SCReq* other) {
  3044. using std::swap;
  3045. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  3046. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  3047. PROTOBUF_FIELD_OFFSET(SCReq, egotype_)
  3048. + sizeof(SCReq::egotype_)
  3049. - PROTOBUF_FIELD_OFFSET(SCReq, desc_)>(
  3050. reinterpret_cast<char*>(&desc_),
  3051. reinterpret_cast<char*>(&other->desc_));
  3052. }
  3053. ::PROTOBUF_NAMESPACE_ID::Metadata SCReq::GetMetadata() const {
  3054. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  3055. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  3056. file_level_metadata_protocol_2eproto[9]);
  3057. }
  3058. // ===================================================================
  3059. class CSRep::_Internal {
  3060. public:
  3061. };
  3062. CSRep::CSRep(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  3063. bool is_message_owned)
  3064. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  3065. SharedCtor();
  3066. if (!is_message_owned) {
  3067. RegisterArenaDtor(arena);
  3068. }
  3069. // @@protoc_insertion_point(arena_constructor:RemoNet.CSRep)
  3070. }
  3071. CSRep::CSRep(const CSRep& from)
  3072. : ::PROTOBUF_NAMESPACE_ID::Message() {
  3073. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3074. ::memcpy(&desc_, &from.desc_,
  3075. static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  3076. reinterpret_cast<char*>(&desc_)) + sizeof(egotype_));
  3077. // @@protoc_insertion_point(copy_constructor:RemoNet.CSRep)
  3078. }
  3079. inline void CSRep::SharedCtor() {
  3080. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  3081. reinterpret_cast<char*>(&desc_) - reinterpret_cast<char*>(this)),
  3082. 0, static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  3083. reinterpret_cast<char*>(&desc_)) + sizeof(egotype_));
  3084. }
  3085. CSRep::~CSRep() {
  3086. // @@protoc_insertion_point(destructor:RemoNet.CSRep)
  3087. if (GetArenaForAllocation() != nullptr) return;
  3088. SharedDtor();
  3089. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3090. }
  3091. inline void CSRep::SharedDtor() {
  3092. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  3093. }
  3094. void CSRep::ArenaDtor(void* object) {
  3095. CSRep* _this = reinterpret_cast< CSRep* >(object);
  3096. (void)_this;
  3097. }
  3098. void CSRep::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  3099. }
  3100. void CSRep::SetCachedSize(int size) const {
  3101. _cached_size_.Set(size);
  3102. }
  3103. void CSRep::Clear() {
  3104. // @@protoc_insertion_point(message_clear_start:RemoNet.CSRep)
  3105. uint32_t cached_has_bits = 0;
  3106. // Prevent compiler warnings about cached_has_bits being unused
  3107. (void) cached_has_bits;
  3108. ::memset(&desc_, 0, static_cast<size_t>(
  3109. reinterpret_cast<char*>(&egotype_) -
  3110. reinterpret_cast<char*>(&desc_)) + sizeof(egotype_));
  3111. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3112. }
  3113. const char* CSRep::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  3114. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  3115. while (!ctx->Done(&ptr)) {
  3116. uint32_t tag;
  3117. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  3118. switch (tag >> 3) {
  3119. // .RemoNet.VideoDesc desc = 1;
  3120. case 1:
  3121. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  3122. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  3123. CHK_(ptr);
  3124. _internal_set_desc(static_cast<::RemoNet::VideoDesc>(val));
  3125. } else
  3126. goto handle_unusual;
  3127. continue;
  3128. // int32 peer = 2;
  3129. case 2:
  3130. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  3131. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3132. CHK_(ptr);
  3133. } else
  3134. goto handle_unusual;
  3135. continue;
  3136. // int32 index = 3;
  3137. case 3:
  3138. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  3139. index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3140. CHK_(ptr);
  3141. } else
  3142. goto handle_unusual;
  3143. continue;
  3144. // int32 egotype = 4;
  3145. case 4:
  3146. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
  3147. egotype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3148. CHK_(ptr);
  3149. } else
  3150. goto handle_unusual;
  3151. continue;
  3152. default:
  3153. goto handle_unusual;
  3154. } // switch
  3155. handle_unusual:
  3156. if ((tag == 0) || ((tag & 7) == 4)) {
  3157. CHK_(ptr);
  3158. ctx->SetLastTag(tag);
  3159. goto message_done;
  3160. }
  3161. ptr = UnknownFieldParse(
  3162. tag,
  3163. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  3164. ptr, ctx);
  3165. CHK_(ptr != nullptr);
  3166. } // while
  3167. message_done:
  3168. return ptr;
  3169. failure:
  3170. ptr = nullptr;
  3171. goto message_done;
  3172. #undef CHK_
  3173. }
  3174. uint8_t* CSRep::_InternalSerialize(
  3175. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  3176. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CSRep)
  3177. uint32_t cached_has_bits = 0;
  3178. (void) cached_has_bits;
  3179. // .RemoNet.VideoDesc desc = 1;
  3180. if (this->_internal_desc() != 0) {
  3181. target = stream->EnsureSpace(target);
  3182. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
  3183. 1, this->_internal_desc(), target);
  3184. }
  3185. // int32 peer = 2;
  3186. if (this->_internal_peer() != 0) {
  3187. target = stream->EnsureSpace(target);
  3188. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_peer(), target);
  3189. }
  3190. // int32 index = 3;
  3191. if (this->_internal_index() != 0) {
  3192. target = stream->EnsureSpace(target);
  3193. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_index(), target);
  3194. }
  3195. // int32 egotype = 4;
  3196. if (this->_internal_egotype() != 0) {
  3197. target = stream->EnsureSpace(target);
  3198. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_egotype(), target);
  3199. }
  3200. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  3201. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  3202. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  3203. }
  3204. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CSRep)
  3205. return target;
  3206. }
  3207. size_t CSRep::ByteSizeLong() const {
  3208. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CSRep)
  3209. size_t total_size = 0;
  3210. uint32_t cached_has_bits = 0;
  3211. // Prevent compiler warnings about cached_has_bits being unused
  3212. (void) cached_has_bits;
  3213. // .RemoNet.VideoDesc desc = 1;
  3214. if (this->_internal_desc() != 0) {
  3215. total_size += 1 +
  3216. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_desc());
  3217. }
  3218. // int32 peer = 2;
  3219. if (this->_internal_peer() != 0) {
  3220. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  3221. }
  3222. // int32 index = 3;
  3223. if (this->_internal_index() != 0) {
  3224. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_index());
  3225. }
  3226. // int32 egotype = 4;
  3227. if (this->_internal_egotype() != 0) {
  3228. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_egotype());
  3229. }
  3230. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  3231. }
  3232. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CSRep::_class_data_ = {
  3233. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  3234. CSRep::MergeImpl
  3235. };
  3236. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CSRep::GetClassData() const { return &_class_data_; }
  3237. void CSRep::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  3238. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  3239. static_cast<CSRep *>(to)->MergeFrom(
  3240. static_cast<const CSRep &>(from));
  3241. }
  3242. void CSRep::MergeFrom(const CSRep& from) {
  3243. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CSRep)
  3244. GOOGLE_DCHECK_NE(&from, this);
  3245. uint32_t cached_has_bits = 0;
  3246. (void) cached_has_bits;
  3247. if (from._internal_desc() != 0) {
  3248. _internal_set_desc(from._internal_desc());
  3249. }
  3250. if (from._internal_peer() != 0) {
  3251. _internal_set_peer(from._internal_peer());
  3252. }
  3253. if (from._internal_index() != 0) {
  3254. _internal_set_index(from._internal_index());
  3255. }
  3256. if (from._internal_egotype() != 0) {
  3257. _internal_set_egotype(from._internal_egotype());
  3258. }
  3259. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3260. }
  3261. void CSRep::CopyFrom(const CSRep& from) {
  3262. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CSRep)
  3263. if (&from == this) return;
  3264. Clear();
  3265. MergeFrom(from);
  3266. }
  3267. bool CSRep::IsInitialized() const {
  3268. return true;
  3269. }
  3270. void CSRep::InternalSwap(CSRep* other) {
  3271. using std::swap;
  3272. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  3273. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  3274. PROTOBUF_FIELD_OFFSET(CSRep, egotype_)
  3275. + sizeof(CSRep::egotype_)
  3276. - PROTOBUF_FIELD_OFFSET(CSRep, desc_)>(
  3277. reinterpret_cast<char*>(&desc_),
  3278. reinterpret_cast<char*>(&other->desc_));
  3279. }
  3280. ::PROTOBUF_NAMESPACE_ID::Metadata CSRep::GetMetadata() const {
  3281. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  3282. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  3283. file_level_metadata_protocol_2eproto[10]);
  3284. }
  3285. // ===================================================================
  3286. class SCRep::_Internal {
  3287. public:
  3288. };
  3289. SCRep::SCRep(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  3290. bool is_message_owned)
  3291. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  3292. SharedCtor();
  3293. if (!is_message_owned) {
  3294. RegisterArenaDtor(arena);
  3295. }
  3296. // @@protoc_insertion_point(arena_constructor:RemoNet.SCRep)
  3297. }
  3298. SCRep::SCRep(const SCRep& from)
  3299. : ::PROTOBUF_NAMESPACE_ID::Message() {
  3300. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3301. ::memcpy(&desc_, &from.desc_,
  3302. static_cast<size_t>(reinterpret_cast<char*>(&peer_) -
  3303. reinterpret_cast<char*>(&desc_)) + sizeof(peer_));
  3304. // @@protoc_insertion_point(copy_constructor:RemoNet.SCRep)
  3305. }
  3306. inline void SCRep::SharedCtor() {
  3307. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  3308. reinterpret_cast<char*>(&desc_) - reinterpret_cast<char*>(this)),
  3309. 0, static_cast<size_t>(reinterpret_cast<char*>(&peer_) -
  3310. reinterpret_cast<char*>(&desc_)) + sizeof(peer_));
  3311. }
  3312. SCRep::~SCRep() {
  3313. // @@protoc_insertion_point(destructor:RemoNet.SCRep)
  3314. if (GetArenaForAllocation() != nullptr) return;
  3315. SharedDtor();
  3316. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3317. }
  3318. inline void SCRep::SharedDtor() {
  3319. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  3320. }
  3321. void SCRep::ArenaDtor(void* object) {
  3322. SCRep* _this = reinterpret_cast< SCRep* >(object);
  3323. (void)_this;
  3324. }
  3325. void SCRep::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  3326. }
  3327. void SCRep::SetCachedSize(int size) const {
  3328. _cached_size_.Set(size);
  3329. }
  3330. void SCRep::Clear() {
  3331. // @@protoc_insertion_point(message_clear_start:RemoNet.SCRep)
  3332. uint32_t cached_has_bits = 0;
  3333. // Prevent compiler warnings about cached_has_bits being unused
  3334. (void) cached_has_bits;
  3335. ::memset(&desc_, 0, static_cast<size_t>(
  3336. reinterpret_cast<char*>(&peer_) -
  3337. reinterpret_cast<char*>(&desc_)) + sizeof(peer_));
  3338. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3339. }
  3340. const char* SCRep::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  3341. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  3342. while (!ctx->Done(&ptr)) {
  3343. uint32_t tag;
  3344. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  3345. switch (tag >> 3) {
  3346. // .RemoNet.VideoDesc desc = 1;
  3347. case 1:
  3348. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  3349. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  3350. CHK_(ptr);
  3351. _internal_set_desc(static_cast<::RemoNet::VideoDesc>(val));
  3352. } else
  3353. goto handle_unusual;
  3354. continue;
  3355. // int32 index = 2;
  3356. case 2:
  3357. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  3358. index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3359. CHK_(ptr);
  3360. } else
  3361. goto handle_unusual;
  3362. continue;
  3363. // int32 egotype = 3;
  3364. case 3:
  3365. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  3366. egotype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3367. CHK_(ptr);
  3368. } else
  3369. goto handle_unusual;
  3370. continue;
  3371. // int32 peer = 4;
  3372. case 4:
  3373. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
  3374. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3375. CHK_(ptr);
  3376. } else
  3377. goto handle_unusual;
  3378. continue;
  3379. default:
  3380. goto handle_unusual;
  3381. } // switch
  3382. handle_unusual:
  3383. if ((tag == 0) || ((tag & 7) == 4)) {
  3384. CHK_(ptr);
  3385. ctx->SetLastTag(tag);
  3386. goto message_done;
  3387. }
  3388. ptr = UnknownFieldParse(
  3389. tag,
  3390. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  3391. ptr, ctx);
  3392. CHK_(ptr != nullptr);
  3393. } // while
  3394. message_done:
  3395. return ptr;
  3396. failure:
  3397. ptr = nullptr;
  3398. goto message_done;
  3399. #undef CHK_
  3400. }
  3401. uint8_t* SCRep::_InternalSerialize(
  3402. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  3403. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.SCRep)
  3404. uint32_t cached_has_bits = 0;
  3405. (void) cached_has_bits;
  3406. // .RemoNet.VideoDesc desc = 1;
  3407. if (this->_internal_desc() != 0) {
  3408. target = stream->EnsureSpace(target);
  3409. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
  3410. 1, this->_internal_desc(), target);
  3411. }
  3412. // int32 index = 2;
  3413. if (this->_internal_index() != 0) {
  3414. target = stream->EnsureSpace(target);
  3415. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_index(), target);
  3416. }
  3417. // int32 egotype = 3;
  3418. if (this->_internal_egotype() != 0) {
  3419. target = stream->EnsureSpace(target);
  3420. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_egotype(), target);
  3421. }
  3422. // int32 peer = 4;
  3423. if (this->_internal_peer() != 0) {
  3424. target = stream->EnsureSpace(target);
  3425. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_peer(), target);
  3426. }
  3427. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  3428. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  3429. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  3430. }
  3431. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.SCRep)
  3432. return target;
  3433. }
  3434. size_t SCRep::ByteSizeLong() const {
  3435. // @@protoc_insertion_point(message_byte_size_start:RemoNet.SCRep)
  3436. size_t total_size = 0;
  3437. uint32_t cached_has_bits = 0;
  3438. // Prevent compiler warnings about cached_has_bits being unused
  3439. (void) cached_has_bits;
  3440. // .RemoNet.VideoDesc desc = 1;
  3441. if (this->_internal_desc() != 0) {
  3442. total_size += 1 +
  3443. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_desc());
  3444. }
  3445. // int32 index = 2;
  3446. if (this->_internal_index() != 0) {
  3447. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_index());
  3448. }
  3449. // int32 egotype = 3;
  3450. if (this->_internal_egotype() != 0) {
  3451. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_egotype());
  3452. }
  3453. // int32 peer = 4;
  3454. if (this->_internal_peer() != 0) {
  3455. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  3456. }
  3457. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  3458. }
  3459. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCRep::_class_data_ = {
  3460. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  3461. SCRep::MergeImpl
  3462. };
  3463. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCRep::GetClassData() const { return &_class_data_; }
  3464. void SCRep::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  3465. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  3466. static_cast<SCRep *>(to)->MergeFrom(
  3467. static_cast<const SCRep &>(from));
  3468. }
  3469. void SCRep::MergeFrom(const SCRep& from) {
  3470. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.SCRep)
  3471. GOOGLE_DCHECK_NE(&from, this);
  3472. uint32_t cached_has_bits = 0;
  3473. (void) cached_has_bits;
  3474. if (from._internal_desc() != 0) {
  3475. _internal_set_desc(from._internal_desc());
  3476. }
  3477. if (from._internal_index() != 0) {
  3478. _internal_set_index(from._internal_index());
  3479. }
  3480. if (from._internal_egotype() != 0) {
  3481. _internal_set_egotype(from._internal_egotype());
  3482. }
  3483. if (from._internal_peer() != 0) {
  3484. _internal_set_peer(from._internal_peer());
  3485. }
  3486. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3487. }
  3488. void SCRep::CopyFrom(const SCRep& from) {
  3489. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.SCRep)
  3490. if (&from == this) return;
  3491. Clear();
  3492. MergeFrom(from);
  3493. }
  3494. bool SCRep::IsInitialized() const {
  3495. return true;
  3496. }
  3497. void SCRep::InternalSwap(SCRep* other) {
  3498. using std::swap;
  3499. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  3500. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  3501. PROTOBUF_FIELD_OFFSET(SCRep, peer_)
  3502. + sizeof(SCRep::peer_)
  3503. - PROTOBUF_FIELD_OFFSET(SCRep, desc_)>(
  3504. reinterpret_cast<char*>(&desc_),
  3505. reinterpret_cast<char*>(&other->desc_));
  3506. }
  3507. ::PROTOBUF_NAMESPACE_ID::Metadata SCRep::GetMetadata() const {
  3508. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  3509. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  3510. file_level_metadata_protocol_2eproto[11]);
  3511. }
  3512. // ===================================================================
  3513. class Offer::_Internal {
  3514. public:
  3515. };
  3516. Offer::Offer(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  3517. bool is_message_owned)
  3518. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  3519. SharedCtor();
  3520. if (!is_message_owned) {
  3521. RegisterArenaDtor(arena);
  3522. }
  3523. // @@protoc_insertion_point(arena_constructor:RemoNet.Offer)
  3524. }
  3525. Offer::Offer(const Offer& from)
  3526. : ::PROTOBUF_NAMESPACE_ID::Message() {
  3527. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3528. type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  3529. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3530. type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  3531. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3532. if (!from._internal_type().empty()) {
  3533. type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_type(),
  3534. GetArenaForAllocation());
  3535. }
  3536. sdp_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  3537. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3538. sdp_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  3539. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3540. if (!from._internal_sdp().empty()) {
  3541. sdp_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_sdp(),
  3542. GetArenaForAllocation());
  3543. }
  3544. ::memcpy(&index_, &from.index_,
  3545. static_cast<size_t>(reinterpret_cast<char*>(&peer_) -
  3546. reinterpret_cast<char*>(&index_)) + sizeof(peer_));
  3547. // @@protoc_insertion_point(copy_constructor:RemoNet.Offer)
  3548. }
  3549. inline void Offer::SharedCtor() {
  3550. type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  3551. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3552. type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  3553. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3554. sdp_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  3555. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3556. sdp_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  3557. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3558. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  3559. reinterpret_cast<char*>(&index_) - reinterpret_cast<char*>(this)),
  3560. 0, static_cast<size_t>(reinterpret_cast<char*>(&peer_) -
  3561. reinterpret_cast<char*>(&index_)) + sizeof(peer_));
  3562. }
  3563. Offer::~Offer() {
  3564. // @@protoc_insertion_point(destructor:RemoNet.Offer)
  3565. if (GetArenaForAllocation() != nullptr) return;
  3566. SharedDtor();
  3567. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3568. }
  3569. inline void Offer::SharedDtor() {
  3570. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  3571. type_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  3572. sdp_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  3573. }
  3574. void Offer::ArenaDtor(void* object) {
  3575. Offer* _this = reinterpret_cast< Offer* >(object);
  3576. (void)_this;
  3577. }
  3578. void Offer::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  3579. }
  3580. void Offer::SetCachedSize(int size) const {
  3581. _cached_size_.Set(size);
  3582. }
  3583. void Offer::Clear() {
  3584. // @@protoc_insertion_point(message_clear_start:RemoNet.Offer)
  3585. uint32_t cached_has_bits = 0;
  3586. // Prevent compiler warnings about cached_has_bits being unused
  3587. (void) cached_has_bits;
  3588. type_.ClearToEmpty();
  3589. sdp_.ClearToEmpty();
  3590. ::memset(&index_, 0, static_cast<size_t>(
  3591. reinterpret_cast<char*>(&peer_) -
  3592. reinterpret_cast<char*>(&index_)) + sizeof(peer_));
  3593. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3594. }
  3595. const char* Offer::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  3596. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  3597. while (!ctx->Done(&ptr)) {
  3598. uint32_t tag;
  3599. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  3600. switch (tag >> 3) {
  3601. // int32 index = 1;
  3602. case 1:
  3603. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  3604. index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3605. CHK_(ptr);
  3606. } else
  3607. goto handle_unusual;
  3608. continue;
  3609. // int32 peer = 2;
  3610. case 2:
  3611. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  3612. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3613. CHK_(ptr);
  3614. } else
  3615. goto handle_unusual;
  3616. continue;
  3617. // string type = 3;
  3618. case 3:
  3619. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
  3620. auto str = _internal_mutable_type();
  3621. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  3622. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.Offer.type"));
  3623. CHK_(ptr);
  3624. } else
  3625. goto handle_unusual;
  3626. continue;
  3627. // string sdp = 4;
  3628. case 4:
  3629. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
  3630. auto str = _internal_mutable_sdp();
  3631. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  3632. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.Offer.sdp"));
  3633. CHK_(ptr);
  3634. } else
  3635. goto handle_unusual;
  3636. continue;
  3637. default:
  3638. goto handle_unusual;
  3639. } // switch
  3640. handle_unusual:
  3641. if ((tag == 0) || ((tag & 7) == 4)) {
  3642. CHK_(ptr);
  3643. ctx->SetLastTag(tag);
  3644. goto message_done;
  3645. }
  3646. ptr = UnknownFieldParse(
  3647. tag,
  3648. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  3649. ptr, ctx);
  3650. CHK_(ptr != nullptr);
  3651. } // while
  3652. message_done:
  3653. return ptr;
  3654. failure:
  3655. ptr = nullptr;
  3656. goto message_done;
  3657. #undef CHK_
  3658. }
  3659. uint8_t* Offer::_InternalSerialize(
  3660. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  3661. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.Offer)
  3662. uint32_t cached_has_bits = 0;
  3663. (void) cached_has_bits;
  3664. // int32 index = 1;
  3665. if (this->_internal_index() != 0) {
  3666. target = stream->EnsureSpace(target);
  3667. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_index(), target);
  3668. }
  3669. // int32 peer = 2;
  3670. if (this->_internal_peer() != 0) {
  3671. target = stream->EnsureSpace(target);
  3672. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_peer(), target);
  3673. }
  3674. // string type = 3;
  3675. if (!this->_internal_type().empty()) {
  3676. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  3677. this->_internal_type().data(), static_cast<int>(this->_internal_type().length()),
  3678. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  3679. "RemoNet.Offer.type");
  3680. target = stream->WriteStringMaybeAliased(
  3681. 3, this->_internal_type(), target);
  3682. }
  3683. // string sdp = 4;
  3684. if (!this->_internal_sdp().empty()) {
  3685. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  3686. this->_internal_sdp().data(), static_cast<int>(this->_internal_sdp().length()),
  3687. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  3688. "RemoNet.Offer.sdp");
  3689. target = stream->WriteStringMaybeAliased(
  3690. 4, this->_internal_sdp(), target);
  3691. }
  3692. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  3693. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  3694. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  3695. }
  3696. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.Offer)
  3697. return target;
  3698. }
  3699. size_t Offer::ByteSizeLong() const {
  3700. // @@protoc_insertion_point(message_byte_size_start:RemoNet.Offer)
  3701. size_t total_size = 0;
  3702. uint32_t cached_has_bits = 0;
  3703. // Prevent compiler warnings about cached_has_bits being unused
  3704. (void) cached_has_bits;
  3705. // string type = 3;
  3706. if (!this->_internal_type().empty()) {
  3707. total_size += 1 +
  3708. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  3709. this->_internal_type());
  3710. }
  3711. // string sdp = 4;
  3712. if (!this->_internal_sdp().empty()) {
  3713. total_size += 1 +
  3714. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  3715. this->_internal_sdp());
  3716. }
  3717. // int32 index = 1;
  3718. if (this->_internal_index() != 0) {
  3719. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_index());
  3720. }
  3721. // int32 peer = 2;
  3722. if (this->_internal_peer() != 0) {
  3723. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  3724. }
  3725. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  3726. }
  3727. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Offer::_class_data_ = {
  3728. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  3729. Offer::MergeImpl
  3730. };
  3731. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Offer::GetClassData() const { return &_class_data_; }
  3732. void Offer::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  3733. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  3734. static_cast<Offer *>(to)->MergeFrom(
  3735. static_cast<const Offer &>(from));
  3736. }
  3737. void Offer::MergeFrom(const Offer& from) {
  3738. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.Offer)
  3739. GOOGLE_DCHECK_NE(&from, this);
  3740. uint32_t cached_has_bits = 0;
  3741. (void) cached_has_bits;
  3742. if (!from._internal_type().empty()) {
  3743. _internal_set_type(from._internal_type());
  3744. }
  3745. if (!from._internal_sdp().empty()) {
  3746. _internal_set_sdp(from._internal_sdp());
  3747. }
  3748. if (from._internal_index() != 0) {
  3749. _internal_set_index(from._internal_index());
  3750. }
  3751. if (from._internal_peer() != 0) {
  3752. _internal_set_peer(from._internal_peer());
  3753. }
  3754. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3755. }
  3756. void Offer::CopyFrom(const Offer& from) {
  3757. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.Offer)
  3758. if (&from == this) return;
  3759. Clear();
  3760. MergeFrom(from);
  3761. }
  3762. bool Offer::IsInitialized() const {
  3763. return true;
  3764. }
  3765. void Offer::InternalSwap(Offer* other) {
  3766. using std::swap;
  3767. auto* lhs_arena = GetArenaForAllocation();
  3768. auto* rhs_arena = other->GetArenaForAllocation();
  3769. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  3770. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  3771. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  3772. &type_, lhs_arena,
  3773. &other->type_, rhs_arena
  3774. );
  3775. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  3776. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  3777. &sdp_, lhs_arena,
  3778. &other->sdp_, rhs_arena
  3779. );
  3780. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  3781. PROTOBUF_FIELD_OFFSET(Offer, peer_)
  3782. + sizeof(Offer::peer_)
  3783. - PROTOBUF_FIELD_OFFSET(Offer, index_)>(
  3784. reinterpret_cast<char*>(&index_),
  3785. reinterpret_cast<char*>(&other->index_));
  3786. }
  3787. ::PROTOBUF_NAMESPACE_ID::Metadata Offer::GetMetadata() const {
  3788. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  3789. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  3790. file_level_metadata_protocol_2eproto[12]);
  3791. }
  3792. // ===================================================================
  3793. class Answer::_Internal {
  3794. public:
  3795. };
  3796. Answer::Answer(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  3797. bool is_message_owned)
  3798. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  3799. SharedCtor();
  3800. if (!is_message_owned) {
  3801. RegisterArenaDtor(arena);
  3802. }
  3803. // @@protoc_insertion_point(arena_constructor:RemoNet.Answer)
  3804. }
  3805. Answer::Answer(const Answer& from)
  3806. : ::PROTOBUF_NAMESPACE_ID::Message() {
  3807. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3808. type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  3809. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3810. type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  3811. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3812. if (!from._internal_type().empty()) {
  3813. type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_type(),
  3814. GetArenaForAllocation());
  3815. }
  3816. sdp_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  3817. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3818. sdp_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  3819. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3820. if (!from._internal_sdp().empty()) {
  3821. sdp_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_sdp(),
  3822. GetArenaForAllocation());
  3823. }
  3824. ::memcpy(&index_, &from.index_,
  3825. static_cast<size_t>(reinterpret_cast<char*>(&peer_) -
  3826. reinterpret_cast<char*>(&index_)) + sizeof(peer_));
  3827. // @@protoc_insertion_point(copy_constructor:RemoNet.Answer)
  3828. }
  3829. inline void Answer::SharedCtor() {
  3830. type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  3831. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3832. type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  3833. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3834. sdp_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  3835. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3836. sdp_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  3837. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3838. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  3839. reinterpret_cast<char*>(&index_) - reinterpret_cast<char*>(this)),
  3840. 0, static_cast<size_t>(reinterpret_cast<char*>(&peer_) -
  3841. reinterpret_cast<char*>(&index_)) + sizeof(peer_));
  3842. }
  3843. Answer::~Answer() {
  3844. // @@protoc_insertion_point(destructor:RemoNet.Answer)
  3845. if (GetArenaForAllocation() != nullptr) return;
  3846. SharedDtor();
  3847. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3848. }
  3849. inline void Answer::SharedDtor() {
  3850. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  3851. type_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  3852. sdp_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  3853. }
  3854. void Answer::ArenaDtor(void* object) {
  3855. Answer* _this = reinterpret_cast< Answer* >(object);
  3856. (void)_this;
  3857. }
  3858. void Answer::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  3859. }
  3860. void Answer::SetCachedSize(int size) const {
  3861. _cached_size_.Set(size);
  3862. }
  3863. void Answer::Clear() {
  3864. // @@protoc_insertion_point(message_clear_start:RemoNet.Answer)
  3865. uint32_t cached_has_bits = 0;
  3866. // Prevent compiler warnings about cached_has_bits being unused
  3867. (void) cached_has_bits;
  3868. type_.ClearToEmpty();
  3869. sdp_.ClearToEmpty();
  3870. ::memset(&index_, 0, static_cast<size_t>(
  3871. reinterpret_cast<char*>(&peer_) -
  3872. reinterpret_cast<char*>(&index_)) + sizeof(peer_));
  3873. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3874. }
  3875. const char* Answer::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  3876. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  3877. while (!ctx->Done(&ptr)) {
  3878. uint32_t tag;
  3879. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  3880. switch (tag >> 3) {
  3881. // int32 index = 1;
  3882. case 1:
  3883. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  3884. index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3885. CHK_(ptr);
  3886. } else
  3887. goto handle_unusual;
  3888. continue;
  3889. // int32 peer = 2;
  3890. case 2:
  3891. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  3892. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3893. CHK_(ptr);
  3894. } else
  3895. goto handle_unusual;
  3896. continue;
  3897. // string type = 3;
  3898. case 3:
  3899. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
  3900. auto str = _internal_mutable_type();
  3901. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  3902. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.Answer.type"));
  3903. CHK_(ptr);
  3904. } else
  3905. goto handle_unusual;
  3906. continue;
  3907. // string sdp = 4;
  3908. case 4:
  3909. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
  3910. auto str = _internal_mutable_sdp();
  3911. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  3912. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.Answer.sdp"));
  3913. CHK_(ptr);
  3914. } else
  3915. goto handle_unusual;
  3916. continue;
  3917. default:
  3918. goto handle_unusual;
  3919. } // switch
  3920. handle_unusual:
  3921. if ((tag == 0) || ((tag & 7) == 4)) {
  3922. CHK_(ptr);
  3923. ctx->SetLastTag(tag);
  3924. goto message_done;
  3925. }
  3926. ptr = UnknownFieldParse(
  3927. tag,
  3928. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  3929. ptr, ctx);
  3930. CHK_(ptr != nullptr);
  3931. } // while
  3932. message_done:
  3933. return ptr;
  3934. failure:
  3935. ptr = nullptr;
  3936. goto message_done;
  3937. #undef CHK_
  3938. }
  3939. uint8_t* Answer::_InternalSerialize(
  3940. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  3941. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.Answer)
  3942. uint32_t cached_has_bits = 0;
  3943. (void) cached_has_bits;
  3944. // int32 index = 1;
  3945. if (this->_internal_index() != 0) {
  3946. target = stream->EnsureSpace(target);
  3947. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_index(), target);
  3948. }
  3949. // int32 peer = 2;
  3950. if (this->_internal_peer() != 0) {
  3951. target = stream->EnsureSpace(target);
  3952. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_peer(), target);
  3953. }
  3954. // string type = 3;
  3955. if (!this->_internal_type().empty()) {
  3956. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  3957. this->_internal_type().data(), static_cast<int>(this->_internal_type().length()),
  3958. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  3959. "RemoNet.Answer.type");
  3960. target = stream->WriteStringMaybeAliased(
  3961. 3, this->_internal_type(), target);
  3962. }
  3963. // string sdp = 4;
  3964. if (!this->_internal_sdp().empty()) {
  3965. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  3966. this->_internal_sdp().data(), static_cast<int>(this->_internal_sdp().length()),
  3967. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  3968. "RemoNet.Answer.sdp");
  3969. target = stream->WriteStringMaybeAliased(
  3970. 4, this->_internal_sdp(), target);
  3971. }
  3972. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  3973. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  3974. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  3975. }
  3976. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.Answer)
  3977. return target;
  3978. }
  3979. size_t Answer::ByteSizeLong() const {
  3980. // @@protoc_insertion_point(message_byte_size_start:RemoNet.Answer)
  3981. size_t total_size = 0;
  3982. uint32_t cached_has_bits = 0;
  3983. // Prevent compiler warnings about cached_has_bits being unused
  3984. (void) cached_has_bits;
  3985. // string type = 3;
  3986. if (!this->_internal_type().empty()) {
  3987. total_size += 1 +
  3988. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  3989. this->_internal_type());
  3990. }
  3991. // string sdp = 4;
  3992. if (!this->_internal_sdp().empty()) {
  3993. total_size += 1 +
  3994. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  3995. this->_internal_sdp());
  3996. }
  3997. // int32 index = 1;
  3998. if (this->_internal_index() != 0) {
  3999. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_index());
  4000. }
  4001. // int32 peer = 2;
  4002. if (this->_internal_peer() != 0) {
  4003. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  4004. }
  4005. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  4006. }
  4007. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Answer::_class_data_ = {
  4008. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  4009. Answer::MergeImpl
  4010. };
  4011. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Answer::GetClassData() const { return &_class_data_; }
  4012. void Answer::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  4013. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  4014. static_cast<Answer *>(to)->MergeFrom(
  4015. static_cast<const Answer &>(from));
  4016. }
  4017. void Answer::MergeFrom(const Answer& from) {
  4018. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.Answer)
  4019. GOOGLE_DCHECK_NE(&from, this);
  4020. uint32_t cached_has_bits = 0;
  4021. (void) cached_has_bits;
  4022. if (!from._internal_type().empty()) {
  4023. _internal_set_type(from._internal_type());
  4024. }
  4025. if (!from._internal_sdp().empty()) {
  4026. _internal_set_sdp(from._internal_sdp());
  4027. }
  4028. if (from._internal_index() != 0) {
  4029. _internal_set_index(from._internal_index());
  4030. }
  4031. if (from._internal_peer() != 0) {
  4032. _internal_set_peer(from._internal_peer());
  4033. }
  4034. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4035. }
  4036. void Answer::CopyFrom(const Answer& from) {
  4037. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.Answer)
  4038. if (&from == this) return;
  4039. Clear();
  4040. MergeFrom(from);
  4041. }
  4042. bool Answer::IsInitialized() const {
  4043. return true;
  4044. }
  4045. void Answer::InternalSwap(Answer* other) {
  4046. using std::swap;
  4047. auto* lhs_arena = GetArenaForAllocation();
  4048. auto* rhs_arena = other->GetArenaForAllocation();
  4049. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  4050. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  4051. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  4052. &type_, lhs_arena,
  4053. &other->type_, rhs_arena
  4054. );
  4055. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  4056. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  4057. &sdp_, lhs_arena,
  4058. &other->sdp_, rhs_arena
  4059. );
  4060. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  4061. PROTOBUF_FIELD_OFFSET(Answer, peer_)
  4062. + sizeof(Answer::peer_)
  4063. - PROTOBUF_FIELD_OFFSET(Answer, index_)>(
  4064. reinterpret_cast<char*>(&index_),
  4065. reinterpret_cast<char*>(&other->index_));
  4066. }
  4067. ::PROTOBUF_NAMESPACE_ID::Metadata Answer::GetMetadata() const {
  4068. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  4069. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  4070. file_level_metadata_protocol_2eproto[13]);
  4071. }
  4072. // ===================================================================
  4073. class Candidate::_Internal {
  4074. public:
  4075. };
  4076. Candidate::Candidate(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  4077. bool is_message_owned)
  4078. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  4079. SharedCtor();
  4080. if (!is_message_owned) {
  4081. RegisterArenaDtor(arena);
  4082. }
  4083. // @@protoc_insertion_point(arena_constructor:RemoNet.Candidate)
  4084. }
  4085. Candidate::Candidate(const Candidate& from)
  4086. : ::PROTOBUF_NAMESPACE_ID::Message() {
  4087. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4088. type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4089. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4090. type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  4091. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4092. if (!from._internal_type().empty()) {
  4093. type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_type(),
  4094. GetArenaForAllocation());
  4095. }
  4096. candidate_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4097. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4098. candidate_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  4099. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4100. if (!from._internal_candidate().empty()) {
  4101. candidate_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_candidate(),
  4102. GetArenaForAllocation());
  4103. }
  4104. sdpmid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4105. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4106. sdpmid_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  4107. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4108. if (!from._internal_sdpmid().empty()) {
  4109. sdpmid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_sdpmid(),
  4110. GetArenaForAllocation());
  4111. }
  4112. ::memcpy(&index_, &from.index_,
  4113. static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  4114. reinterpret_cast<char*>(&index_)) + sizeof(egotype_));
  4115. // @@protoc_insertion_point(copy_constructor:RemoNet.Candidate)
  4116. }
  4117. inline void Candidate::SharedCtor() {
  4118. type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4119. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4120. type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  4121. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4122. candidate_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4123. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4124. candidate_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  4125. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4126. sdpmid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4127. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4128. sdpmid_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  4129. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4130. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  4131. reinterpret_cast<char*>(&index_) - reinterpret_cast<char*>(this)),
  4132. 0, static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  4133. reinterpret_cast<char*>(&index_)) + sizeof(egotype_));
  4134. }
  4135. Candidate::~Candidate() {
  4136. // @@protoc_insertion_point(destructor:RemoNet.Candidate)
  4137. if (GetArenaForAllocation() != nullptr) return;
  4138. SharedDtor();
  4139. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4140. }
  4141. inline void Candidate::SharedDtor() {
  4142. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  4143. type_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4144. candidate_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4145. sdpmid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4146. }
  4147. void Candidate::ArenaDtor(void* object) {
  4148. Candidate* _this = reinterpret_cast< Candidate* >(object);
  4149. (void)_this;
  4150. }
  4151. void Candidate::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  4152. }
  4153. void Candidate::SetCachedSize(int size) const {
  4154. _cached_size_.Set(size);
  4155. }
  4156. void Candidate::Clear() {
  4157. // @@protoc_insertion_point(message_clear_start:RemoNet.Candidate)
  4158. uint32_t cached_has_bits = 0;
  4159. // Prevent compiler warnings about cached_has_bits being unused
  4160. (void) cached_has_bits;
  4161. type_.ClearToEmpty();
  4162. candidate_.ClearToEmpty();
  4163. sdpmid_.ClearToEmpty();
  4164. ::memset(&index_, 0, static_cast<size_t>(
  4165. reinterpret_cast<char*>(&egotype_) -
  4166. reinterpret_cast<char*>(&index_)) + sizeof(egotype_));
  4167. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4168. }
  4169. const char* Candidate::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  4170. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  4171. while (!ctx->Done(&ptr)) {
  4172. uint32_t tag;
  4173. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  4174. switch (tag >> 3) {
  4175. // int32 index = 1;
  4176. case 1:
  4177. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  4178. index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  4179. CHK_(ptr);
  4180. } else
  4181. goto handle_unusual;
  4182. continue;
  4183. // int32 peer = 2;
  4184. case 2:
  4185. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  4186. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  4187. CHK_(ptr);
  4188. } else
  4189. goto handle_unusual;
  4190. continue;
  4191. // string type = 3;
  4192. case 3:
  4193. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
  4194. auto str = _internal_mutable_type();
  4195. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  4196. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.Candidate.type"));
  4197. CHK_(ptr);
  4198. } else
  4199. goto handle_unusual;
  4200. continue;
  4201. // string candidate = 4;
  4202. case 4:
  4203. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
  4204. auto str = _internal_mutable_candidate();
  4205. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  4206. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.Candidate.candidate"));
  4207. CHK_(ptr);
  4208. } else
  4209. goto handle_unusual;
  4210. continue;
  4211. // int32 sdpMLineIndex = 5;
  4212. case 5:
  4213. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
  4214. sdpmlineindex_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  4215. CHK_(ptr);
  4216. } else
  4217. goto handle_unusual;
  4218. continue;
  4219. // string sdpMid = 6;
  4220. case 6:
  4221. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 50)) {
  4222. auto str = _internal_mutable_sdpmid();
  4223. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  4224. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.Candidate.sdpMid"));
  4225. CHK_(ptr);
  4226. } else
  4227. goto handle_unusual;
  4228. continue;
  4229. // int32 egotype = 7;
  4230. case 7:
  4231. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56)) {
  4232. egotype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  4233. CHK_(ptr);
  4234. } else
  4235. goto handle_unusual;
  4236. continue;
  4237. default:
  4238. goto handle_unusual;
  4239. } // switch
  4240. handle_unusual:
  4241. if ((tag == 0) || ((tag & 7) == 4)) {
  4242. CHK_(ptr);
  4243. ctx->SetLastTag(tag);
  4244. goto message_done;
  4245. }
  4246. ptr = UnknownFieldParse(
  4247. tag,
  4248. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  4249. ptr, ctx);
  4250. CHK_(ptr != nullptr);
  4251. } // while
  4252. message_done:
  4253. return ptr;
  4254. failure:
  4255. ptr = nullptr;
  4256. goto message_done;
  4257. #undef CHK_
  4258. }
  4259. uint8_t* Candidate::_InternalSerialize(
  4260. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  4261. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.Candidate)
  4262. uint32_t cached_has_bits = 0;
  4263. (void) cached_has_bits;
  4264. // int32 index = 1;
  4265. if (this->_internal_index() != 0) {
  4266. target = stream->EnsureSpace(target);
  4267. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_index(), target);
  4268. }
  4269. // int32 peer = 2;
  4270. if (this->_internal_peer() != 0) {
  4271. target = stream->EnsureSpace(target);
  4272. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_peer(), target);
  4273. }
  4274. // string type = 3;
  4275. if (!this->_internal_type().empty()) {
  4276. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  4277. this->_internal_type().data(), static_cast<int>(this->_internal_type().length()),
  4278. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  4279. "RemoNet.Candidate.type");
  4280. target = stream->WriteStringMaybeAliased(
  4281. 3, this->_internal_type(), target);
  4282. }
  4283. // string candidate = 4;
  4284. if (!this->_internal_candidate().empty()) {
  4285. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  4286. this->_internal_candidate().data(), static_cast<int>(this->_internal_candidate().length()),
  4287. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  4288. "RemoNet.Candidate.candidate");
  4289. target = stream->WriteStringMaybeAliased(
  4290. 4, this->_internal_candidate(), target);
  4291. }
  4292. // int32 sdpMLineIndex = 5;
  4293. if (this->_internal_sdpmlineindex() != 0) {
  4294. target = stream->EnsureSpace(target);
  4295. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(5, this->_internal_sdpmlineindex(), target);
  4296. }
  4297. // string sdpMid = 6;
  4298. if (!this->_internal_sdpmid().empty()) {
  4299. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  4300. this->_internal_sdpmid().data(), static_cast<int>(this->_internal_sdpmid().length()),
  4301. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  4302. "RemoNet.Candidate.sdpMid");
  4303. target = stream->WriteStringMaybeAliased(
  4304. 6, this->_internal_sdpmid(), target);
  4305. }
  4306. // int32 egotype = 7;
  4307. if (this->_internal_egotype() != 0) {
  4308. target = stream->EnsureSpace(target);
  4309. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(7, this->_internal_egotype(), target);
  4310. }
  4311. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  4312. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  4313. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  4314. }
  4315. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.Candidate)
  4316. return target;
  4317. }
  4318. size_t Candidate::ByteSizeLong() const {
  4319. // @@protoc_insertion_point(message_byte_size_start:RemoNet.Candidate)
  4320. size_t total_size = 0;
  4321. uint32_t cached_has_bits = 0;
  4322. // Prevent compiler warnings about cached_has_bits being unused
  4323. (void) cached_has_bits;
  4324. // string type = 3;
  4325. if (!this->_internal_type().empty()) {
  4326. total_size += 1 +
  4327. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  4328. this->_internal_type());
  4329. }
  4330. // string candidate = 4;
  4331. if (!this->_internal_candidate().empty()) {
  4332. total_size += 1 +
  4333. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  4334. this->_internal_candidate());
  4335. }
  4336. // string sdpMid = 6;
  4337. if (!this->_internal_sdpmid().empty()) {
  4338. total_size += 1 +
  4339. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  4340. this->_internal_sdpmid());
  4341. }
  4342. // int32 index = 1;
  4343. if (this->_internal_index() != 0) {
  4344. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_index());
  4345. }
  4346. // int32 peer = 2;
  4347. if (this->_internal_peer() != 0) {
  4348. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  4349. }
  4350. // int32 sdpMLineIndex = 5;
  4351. if (this->_internal_sdpmlineindex() != 0) {
  4352. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_sdpmlineindex());
  4353. }
  4354. // int32 egotype = 7;
  4355. if (this->_internal_egotype() != 0) {
  4356. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_egotype());
  4357. }
  4358. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  4359. }
  4360. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Candidate::_class_data_ = {
  4361. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  4362. Candidate::MergeImpl
  4363. };
  4364. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Candidate::GetClassData() const { return &_class_data_; }
  4365. void Candidate::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  4366. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  4367. static_cast<Candidate *>(to)->MergeFrom(
  4368. static_cast<const Candidate &>(from));
  4369. }
  4370. void Candidate::MergeFrom(const Candidate& from) {
  4371. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.Candidate)
  4372. GOOGLE_DCHECK_NE(&from, this);
  4373. uint32_t cached_has_bits = 0;
  4374. (void) cached_has_bits;
  4375. if (!from._internal_type().empty()) {
  4376. _internal_set_type(from._internal_type());
  4377. }
  4378. if (!from._internal_candidate().empty()) {
  4379. _internal_set_candidate(from._internal_candidate());
  4380. }
  4381. if (!from._internal_sdpmid().empty()) {
  4382. _internal_set_sdpmid(from._internal_sdpmid());
  4383. }
  4384. if (from._internal_index() != 0) {
  4385. _internal_set_index(from._internal_index());
  4386. }
  4387. if (from._internal_peer() != 0) {
  4388. _internal_set_peer(from._internal_peer());
  4389. }
  4390. if (from._internal_sdpmlineindex() != 0) {
  4391. _internal_set_sdpmlineindex(from._internal_sdpmlineindex());
  4392. }
  4393. if (from._internal_egotype() != 0) {
  4394. _internal_set_egotype(from._internal_egotype());
  4395. }
  4396. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4397. }
  4398. void Candidate::CopyFrom(const Candidate& from) {
  4399. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.Candidate)
  4400. if (&from == this) return;
  4401. Clear();
  4402. MergeFrom(from);
  4403. }
  4404. bool Candidate::IsInitialized() const {
  4405. return true;
  4406. }
  4407. void Candidate::InternalSwap(Candidate* other) {
  4408. using std::swap;
  4409. auto* lhs_arena = GetArenaForAllocation();
  4410. auto* rhs_arena = other->GetArenaForAllocation();
  4411. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  4412. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  4413. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  4414. &type_, lhs_arena,
  4415. &other->type_, rhs_arena
  4416. );
  4417. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  4418. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  4419. &candidate_, lhs_arena,
  4420. &other->candidate_, rhs_arena
  4421. );
  4422. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  4423. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  4424. &sdpmid_, lhs_arena,
  4425. &other->sdpmid_, rhs_arena
  4426. );
  4427. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  4428. PROTOBUF_FIELD_OFFSET(Candidate, egotype_)
  4429. + sizeof(Candidate::egotype_)
  4430. - PROTOBUF_FIELD_OFFSET(Candidate, index_)>(
  4431. reinterpret_cast<char*>(&index_),
  4432. reinterpret_cast<char*>(&other->index_));
  4433. }
  4434. ::PROTOBUF_NAMESPACE_ID::Metadata Candidate::GetMetadata() const {
  4435. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  4436. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  4437. file_level_metadata_protocol_2eproto[14]);
  4438. }
  4439. // ===================================================================
  4440. class Leave::_Internal {
  4441. public:
  4442. };
  4443. Leave::Leave(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  4444. bool is_message_owned)
  4445. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  4446. SharedCtor();
  4447. if (!is_message_owned) {
  4448. RegisterArenaDtor(arena);
  4449. }
  4450. // @@protoc_insertion_point(arena_constructor:RemoNet.Leave)
  4451. }
  4452. Leave::Leave(const Leave& from)
  4453. : ::PROTOBUF_NAMESPACE_ID::Message() {
  4454. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4455. ::memcpy(&peer_, &from.peer_,
  4456. static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  4457. reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
  4458. // @@protoc_insertion_point(copy_constructor:RemoNet.Leave)
  4459. }
  4460. inline void Leave::SharedCtor() {
  4461. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  4462. reinterpret_cast<char*>(&peer_) - reinterpret_cast<char*>(this)),
  4463. 0, static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  4464. reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
  4465. }
  4466. Leave::~Leave() {
  4467. // @@protoc_insertion_point(destructor:RemoNet.Leave)
  4468. if (GetArenaForAllocation() != nullptr) return;
  4469. SharedDtor();
  4470. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4471. }
  4472. inline void Leave::SharedDtor() {
  4473. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  4474. }
  4475. void Leave::ArenaDtor(void* object) {
  4476. Leave* _this = reinterpret_cast< Leave* >(object);
  4477. (void)_this;
  4478. }
  4479. void Leave::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  4480. }
  4481. void Leave::SetCachedSize(int size) const {
  4482. _cached_size_.Set(size);
  4483. }
  4484. void Leave::Clear() {
  4485. // @@protoc_insertion_point(message_clear_start:RemoNet.Leave)
  4486. uint32_t cached_has_bits = 0;
  4487. // Prevent compiler warnings about cached_has_bits being unused
  4488. (void) cached_has_bits;
  4489. ::memset(&peer_, 0, static_cast<size_t>(
  4490. reinterpret_cast<char*>(&egotype_) -
  4491. reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
  4492. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4493. }
  4494. const char* Leave::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  4495. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  4496. while (!ctx->Done(&ptr)) {
  4497. uint32_t tag;
  4498. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  4499. switch (tag >> 3) {
  4500. // int32 peer = 1;
  4501. case 1:
  4502. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  4503. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  4504. CHK_(ptr);
  4505. } else
  4506. goto handle_unusual;
  4507. continue;
  4508. // int32 egotype = 2;
  4509. case 2:
  4510. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  4511. egotype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  4512. CHK_(ptr);
  4513. } else
  4514. goto handle_unusual;
  4515. continue;
  4516. default:
  4517. goto handle_unusual;
  4518. } // switch
  4519. handle_unusual:
  4520. if ((tag == 0) || ((tag & 7) == 4)) {
  4521. CHK_(ptr);
  4522. ctx->SetLastTag(tag);
  4523. goto message_done;
  4524. }
  4525. ptr = UnknownFieldParse(
  4526. tag,
  4527. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  4528. ptr, ctx);
  4529. CHK_(ptr != nullptr);
  4530. } // while
  4531. message_done:
  4532. return ptr;
  4533. failure:
  4534. ptr = nullptr;
  4535. goto message_done;
  4536. #undef CHK_
  4537. }
  4538. uint8_t* Leave::_InternalSerialize(
  4539. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  4540. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.Leave)
  4541. uint32_t cached_has_bits = 0;
  4542. (void) cached_has_bits;
  4543. // int32 peer = 1;
  4544. if (this->_internal_peer() != 0) {
  4545. target = stream->EnsureSpace(target);
  4546. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_peer(), target);
  4547. }
  4548. // int32 egotype = 2;
  4549. if (this->_internal_egotype() != 0) {
  4550. target = stream->EnsureSpace(target);
  4551. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_egotype(), target);
  4552. }
  4553. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  4554. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  4555. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  4556. }
  4557. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.Leave)
  4558. return target;
  4559. }
  4560. size_t Leave::ByteSizeLong() const {
  4561. // @@protoc_insertion_point(message_byte_size_start:RemoNet.Leave)
  4562. size_t total_size = 0;
  4563. uint32_t cached_has_bits = 0;
  4564. // Prevent compiler warnings about cached_has_bits being unused
  4565. (void) cached_has_bits;
  4566. // int32 peer = 1;
  4567. if (this->_internal_peer() != 0) {
  4568. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  4569. }
  4570. // int32 egotype = 2;
  4571. if (this->_internal_egotype() != 0) {
  4572. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_egotype());
  4573. }
  4574. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  4575. }
  4576. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Leave::_class_data_ = {
  4577. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  4578. Leave::MergeImpl
  4579. };
  4580. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Leave::GetClassData() const { return &_class_data_; }
  4581. void Leave::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  4582. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  4583. static_cast<Leave *>(to)->MergeFrom(
  4584. static_cast<const Leave &>(from));
  4585. }
  4586. void Leave::MergeFrom(const Leave& from) {
  4587. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.Leave)
  4588. GOOGLE_DCHECK_NE(&from, this);
  4589. uint32_t cached_has_bits = 0;
  4590. (void) cached_has_bits;
  4591. if (from._internal_peer() != 0) {
  4592. _internal_set_peer(from._internal_peer());
  4593. }
  4594. if (from._internal_egotype() != 0) {
  4595. _internal_set_egotype(from._internal_egotype());
  4596. }
  4597. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4598. }
  4599. void Leave::CopyFrom(const Leave& from) {
  4600. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.Leave)
  4601. if (&from == this) return;
  4602. Clear();
  4603. MergeFrom(from);
  4604. }
  4605. bool Leave::IsInitialized() const {
  4606. return true;
  4607. }
  4608. void Leave::InternalSwap(Leave* other) {
  4609. using std::swap;
  4610. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  4611. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  4612. PROTOBUF_FIELD_OFFSET(Leave, egotype_)
  4613. + sizeof(Leave::egotype_)
  4614. - PROTOBUF_FIELD_OFFSET(Leave, peer_)>(
  4615. reinterpret_cast<char*>(&peer_),
  4616. reinterpret_cast<char*>(&other->peer_));
  4617. }
  4618. ::PROTOBUF_NAMESPACE_ID::Metadata Leave::GetMetadata() const {
  4619. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  4620. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  4621. file_level_metadata_protocol_2eproto[15]);
  4622. }
  4623. // ===================================================================
  4624. class Close::_Internal {
  4625. public:
  4626. };
  4627. Close::Close(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  4628. bool is_message_owned)
  4629. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  4630. SharedCtor();
  4631. if (!is_message_owned) {
  4632. RegisterArenaDtor(arena);
  4633. }
  4634. // @@protoc_insertion_point(arena_constructor:RemoNet.Close)
  4635. }
  4636. Close::Close(const Close& from)
  4637. : ::PROTOBUF_NAMESPACE_ID::Message() {
  4638. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4639. ::memcpy(&peer_, &from.peer_,
  4640. static_cast<size_t>(reinterpret_cast<char*>(&index_) -
  4641. reinterpret_cast<char*>(&peer_)) + sizeof(index_));
  4642. // @@protoc_insertion_point(copy_constructor:RemoNet.Close)
  4643. }
  4644. inline void Close::SharedCtor() {
  4645. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  4646. reinterpret_cast<char*>(&peer_) - reinterpret_cast<char*>(this)),
  4647. 0, static_cast<size_t>(reinterpret_cast<char*>(&index_) -
  4648. reinterpret_cast<char*>(&peer_)) + sizeof(index_));
  4649. }
  4650. Close::~Close() {
  4651. // @@protoc_insertion_point(destructor:RemoNet.Close)
  4652. if (GetArenaForAllocation() != nullptr) return;
  4653. SharedDtor();
  4654. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4655. }
  4656. inline void Close::SharedDtor() {
  4657. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  4658. }
  4659. void Close::ArenaDtor(void* object) {
  4660. Close* _this = reinterpret_cast< Close* >(object);
  4661. (void)_this;
  4662. }
  4663. void Close::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  4664. }
  4665. void Close::SetCachedSize(int size) const {
  4666. _cached_size_.Set(size);
  4667. }
  4668. void Close::Clear() {
  4669. // @@protoc_insertion_point(message_clear_start:RemoNet.Close)
  4670. uint32_t cached_has_bits = 0;
  4671. // Prevent compiler warnings about cached_has_bits being unused
  4672. (void) cached_has_bits;
  4673. ::memset(&peer_, 0, static_cast<size_t>(
  4674. reinterpret_cast<char*>(&index_) -
  4675. reinterpret_cast<char*>(&peer_)) + sizeof(index_));
  4676. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4677. }
  4678. const char* Close::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  4679. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  4680. while (!ctx->Done(&ptr)) {
  4681. uint32_t tag;
  4682. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  4683. switch (tag >> 3) {
  4684. // int32 peer = 1;
  4685. case 1:
  4686. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  4687. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  4688. CHK_(ptr);
  4689. } else
  4690. goto handle_unusual;
  4691. continue;
  4692. // int32 egotype = 2;
  4693. case 2:
  4694. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  4695. egotype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  4696. CHK_(ptr);
  4697. } else
  4698. goto handle_unusual;
  4699. continue;
  4700. // int32 index = 3;
  4701. case 3:
  4702. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  4703. index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  4704. CHK_(ptr);
  4705. } else
  4706. goto handle_unusual;
  4707. continue;
  4708. default:
  4709. goto handle_unusual;
  4710. } // switch
  4711. handle_unusual:
  4712. if ((tag == 0) || ((tag & 7) == 4)) {
  4713. CHK_(ptr);
  4714. ctx->SetLastTag(tag);
  4715. goto message_done;
  4716. }
  4717. ptr = UnknownFieldParse(
  4718. tag,
  4719. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  4720. ptr, ctx);
  4721. CHK_(ptr != nullptr);
  4722. } // while
  4723. message_done:
  4724. return ptr;
  4725. failure:
  4726. ptr = nullptr;
  4727. goto message_done;
  4728. #undef CHK_
  4729. }
  4730. uint8_t* Close::_InternalSerialize(
  4731. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  4732. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.Close)
  4733. uint32_t cached_has_bits = 0;
  4734. (void) cached_has_bits;
  4735. // int32 peer = 1;
  4736. if (this->_internal_peer() != 0) {
  4737. target = stream->EnsureSpace(target);
  4738. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_peer(), target);
  4739. }
  4740. // int32 egotype = 2;
  4741. if (this->_internal_egotype() != 0) {
  4742. target = stream->EnsureSpace(target);
  4743. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_egotype(), target);
  4744. }
  4745. // int32 index = 3;
  4746. if (this->_internal_index() != 0) {
  4747. target = stream->EnsureSpace(target);
  4748. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_index(), target);
  4749. }
  4750. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  4751. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  4752. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  4753. }
  4754. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.Close)
  4755. return target;
  4756. }
  4757. size_t Close::ByteSizeLong() const {
  4758. // @@protoc_insertion_point(message_byte_size_start:RemoNet.Close)
  4759. size_t total_size = 0;
  4760. uint32_t cached_has_bits = 0;
  4761. // Prevent compiler warnings about cached_has_bits being unused
  4762. (void) cached_has_bits;
  4763. // int32 peer = 1;
  4764. if (this->_internal_peer() != 0) {
  4765. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  4766. }
  4767. // int32 egotype = 2;
  4768. if (this->_internal_egotype() != 0) {
  4769. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_egotype());
  4770. }
  4771. // int32 index = 3;
  4772. if (this->_internal_index() != 0) {
  4773. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_index());
  4774. }
  4775. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  4776. }
  4777. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Close::_class_data_ = {
  4778. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  4779. Close::MergeImpl
  4780. };
  4781. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Close::GetClassData() const { return &_class_data_; }
  4782. void Close::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  4783. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  4784. static_cast<Close *>(to)->MergeFrom(
  4785. static_cast<const Close &>(from));
  4786. }
  4787. void Close::MergeFrom(const Close& from) {
  4788. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.Close)
  4789. GOOGLE_DCHECK_NE(&from, this);
  4790. uint32_t cached_has_bits = 0;
  4791. (void) cached_has_bits;
  4792. if (from._internal_peer() != 0) {
  4793. _internal_set_peer(from._internal_peer());
  4794. }
  4795. if (from._internal_egotype() != 0) {
  4796. _internal_set_egotype(from._internal_egotype());
  4797. }
  4798. if (from._internal_index() != 0) {
  4799. _internal_set_index(from._internal_index());
  4800. }
  4801. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4802. }
  4803. void Close::CopyFrom(const Close& from) {
  4804. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.Close)
  4805. if (&from == this) return;
  4806. Clear();
  4807. MergeFrom(from);
  4808. }
  4809. bool Close::IsInitialized() const {
  4810. return true;
  4811. }
  4812. void Close::InternalSwap(Close* other) {
  4813. using std::swap;
  4814. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  4815. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  4816. PROTOBUF_FIELD_OFFSET(Close, index_)
  4817. + sizeof(Close::index_)
  4818. - PROTOBUF_FIELD_OFFSET(Close, peer_)>(
  4819. reinterpret_cast<char*>(&peer_),
  4820. reinterpret_cast<char*>(&other->peer_));
  4821. }
  4822. ::PROTOBUF_NAMESPACE_ID::Metadata Close::GetMetadata() const {
  4823. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  4824. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  4825. file_level_metadata_protocol_2eproto[16]);
  4826. }
  4827. // ===================================================================
  4828. class TestTextReq::_Internal {
  4829. public:
  4830. };
  4831. TestTextReq::TestTextReq(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  4832. bool is_message_owned)
  4833. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  4834. SharedCtor();
  4835. if (!is_message_owned) {
  4836. RegisterArenaDtor(arena);
  4837. }
  4838. // @@protoc_insertion_point(arena_constructor:RemoNet.TestTextReq)
  4839. }
  4840. TestTextReq::TestTextReq(const TestTextReq& from)
  4841. : ::PROTOBUF_NAMESPACE_ID::Message() {
  4842. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4843. text_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4844. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4845. text_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  4846. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4847. if (!from._internal_text().empty()) {
  4848. text_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_text(),
  4849. GetArenaForAllocation());
  4850. }
  4851. // @@protoc_insertion_point(copy_constructor:RemoNet.TestTextReq)
  4852. }
  4853. inline void TestTextReq::SharedCtor() {
  4854. text_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4855. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4856. text_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  4857. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4858. }
  4859. TestTextReq::~TestTextReq() {
  4860. // @@protoc_insertion_point(destructor:RemoNet.TestTextReq)
  4861. if (GetArenaForAllocation() != nullptr) return;
  4862. SharedDtor();
  4863. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4864. }
  4865. inline void TestTextReq::SharedDtor() {
  4866. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  4867. text_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4868. }
  4869. void TestTextReq::ArenaDtor(void* object) {
  4870. TestTextReq* _this = reinterpret_cast< TestTextReq* >(object);
  4871. (void)_this;
  4872. }
  4873. void TestTextReq::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  4874. }
  4875. void TestTextReq::SetCachedSize(int size) const {
  4876. _cached_size_.Set(size);
  4877. }
  4878. void TestTextReq::Clear() {
  4879. // @@protoc_insertion_point(message_clear_start:RemoNet.TestTextReq)
  4880. uint32_t cached_has_bits = 0;
  4881. // Prevent compiler warnings about cached_has_bits being unused
  4882. (void) cached_has_bits;
  4883. text_.ClearToEmpty();
  4884. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4885. }
  4886. const char* TestTextReq::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  4887. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  4888. while (!ctx->Done(&ptr)) {
  4889. uint32_t tag;
  4890. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  4891. switch (tag >> 3) {
  4892. // string text = 1;
  4893. case 1:
  4894. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
  4895. auto str = _internal_mutable_text();
  4896. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  4897. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.TestTextReq.text"));
  4898. CHK_(ptr);
  4899. } else
  4900. goto handle_unusual;
  4901. continue;
  4902. default:
  4903. goto handle_unusual;
  4904. } // switch
  4905. handle_unusual:
  4906. if ((tag == 0) || ((tag & 7) == 4)) {
  4907. CHK_(ptr);
  4908. ctx->SetLastTag(tag);
  4909. goto message_done;
  4910. }
  4911. ptr = UnknownFieldParse(
  4912. tag,
  4913. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  4914. ptr, ctx);
  4915. CHK_(ptr != nullptr);
  4916. } // while
  4917. message_done:
  4918. return ptr;
  4919. failure:
  4920. ptr = nullptr;
  4921. goto message_done;
  4922. #undef CHK_
  4923. }
  4924. uint8_t* TestTextReq::_InternalSerialize(
  4925. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  4926. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.TestTextReq)
  4927. uint32_t cached_has_bits = 0;
  4928. (void) cached_has_bits;
  4929. // string text = 1;
  4930. if (!this->_internal_text().empty()) {
  4931. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  4932. this->_internal_text().data(), static_cast<int>(this->_internal_text().length()),
  4933. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  4934. "RemoNet.TestTextReq.text");
  4935. target = stream->WriteStringMaybeAliased(
  4936. 1, this->_internal_text(), target);
  4937. }
  4938. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  4939. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  4940. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  4941. }
  4942. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.TestTextReq)
  4943. return target;
  4944. }
  4945. size_t TestTextReq::ByteSizeLong() const {
  4946. // @@protoc_insertion_point(message_byte_size_start:RemoNet.TestTextReq)
  4947. size_t total_size = 0;
  4948. uint32_t cached_has_bits = 0;
  4949. // Prevent compiler warnings about cached_has_bits being unused
  4950. (void) cached_has_bits;
  4951. // string text = 1;
  4952. if (!this->_internal_text().empty()) {
  4953. total_size += 1 +
  4954. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  4955. this->_internal_text());
  4956. }
  4957. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  4958. }
  4959. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData TestTextReq::_class_data_ = {
  4960. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  4961. TestTextReq::MergeImpl
  4962. };
  4963. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*TestTextReq::GetClassData() const { return &_class_data_; }
  4964. void TestTextReq::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  4965. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  4966. static_cast<TestTextReq *>(to)->MergeFrom(
  4967. static_cast<const TestTextReq &>(from));
  4968. }
  4969. void TestTextReq::MergeFrom(const TestTextReq& from) {
  4970. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.TestTextReq)
  4971. GOOGLE_DCHECK_NE(&from, this);
  4972. uint32_t cached_has_bits = 0;
  4973. (void) cached_has_bits;
  4974. if (!from._internal_text().empty()) {
  4975. _internal_set_text(from._internal_text());
  4976. }
  4977. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4978. }
  4979. void TestTextReq::CopyFrom(const TestTextReq& from) {
  4980. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.TestTextReq)
  4981. if (&from == this) return;
  4982. Clear();
  4983. MergeFrom(from);
  4984. }
  4985. bool TestTextReq::IsInitialized() const {
  4986. return true;
  4987. }
  4988. void TestTextReq::InternalSwap(TestTextReq* other) {
  4989. using std::swap;
  4990. auto* lhs_arena = GetArenaForAllocation();
  4991. auto* rhs_arena = other->GetArenaForAllocation();
  4992. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  4993. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  4994. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  4995. &text_, lhs_arena,
  4996. &other->text_, rhs_arena
  4997. );
  4998. }
  4999. ::PROTOBUF_NAMESPACE_ID::Metadata TestTextReq::GetMetadata() const {
  5000. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  5001. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  5002. file_level_metadata_protocol_2eproto[17]);
  5003. }
  5004. // ===================================================================
  5005. class CanMessage::_Internal {
  5006. public:
  5007. };
  5008. CanMessage::CanMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  5009. bool is_message_owned)
  5010. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  5011. SharedCtor();
  5012. if (!is_message_owned) {
  5013. RegisterArenaDtor(arena);
  5014. }
  5015. // @@protoc_insertion_point(arena_constructor:RemoNet.CanMessage)
  5016. }
  5017. CanMessage::CanMessage(const CanMessage& from)
  5018. : ::PROTOBUF_NAMESPACE_ID::Message() {
  5019. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  5020. data_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5021. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5022. data_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  5023. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5024. if (!from._internal_data().empty()) {
  5025. data_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_data(),
  5026. GetArenaForAllocation());
  5027. }
  5028. ::memcpy(&head_, &from.head_,
  5029. static_cast<size_t>(reinterpret_cast<char*>(&canid_) -
  5030. reinterpret_cast<char*>(&head_)) + sizeof(canid_));
  5031. // @@protoc_insertion_point(copy_constructor:RemoNet.CanMessage)
  5032. }
  5033. inline void CanMessage::SharedCtor() {
  5034. data_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5035. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5036. data_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  5037. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5038. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  5039. reinterpret_cast<char*>(&head_) - reinterpret_cast<char*>(this)),
  5040. 0, static_cast<size_t>(reinterpret_cast<char*>(&canid_) -
  5041. reinterpret_cast<char*>(&head_)) + sizeof(canid_));
  5042. }
  5043. CanMessage::~CanMessage() {
  5044. // @@protoc_insertion_point(destructor:RemoNet.CanMessage)
  5045. if (GetArenaForAllocation() != nullptr) return;
  5046. SharedDtor();
  5047. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5048. }
  5049. inline void CanMessage::SharedDtor() {
  5050. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  5051. data_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5052. }
  5053. void CanMessage::ArenaDtor(void* object) {
  5054. CanMessage* _this = reinterpret_cast< CanMessage* >(object);
  5055. (void)_this;
  5056. }
  5057. void CanMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  5058. }
  5059. void CanMessage::SetCachedSize(int size) const {
  5060. _cached_size_.Set(size);
  5061. }
  5062. void CanMessage::Clear() {
  5063. // @@protoc_insertion_point(message_clear_start:RemoNet.CanMessage)
  5064. uint32_t cached_has_bits = 0;
  5065. // Prevent compiler warnings about cached_has_bits being unused
  5066. (void) cached_has_bits;
  5067. data_.ClearToEmpty();
  5068. ::memset(&head_, 0, static_cast<size_t>(
  5069. reinterpret_cast<char*>(&canid_) -
  5070. reinterpret_cast<char*>(&head_)) + sizeof(canid_));
  5071. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5072. }
  5073. const char* CanMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  5074. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  5075. while (!ctx->Done(&ptr)) {
  5076. uint32_t tag;
  5077. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  5078. switch (tag >> 3) {
  5079. // int32 head = 1;
  5080. case 1:
  5081. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  5082. head_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  5083. CHK_(ptr);
  5084. } else
  5085. goto handle_unusual;
  5086. continue;
  5087. // int32 canid = 2;
  5088. case 2:
  5089. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  5090. canid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  5091. CHK_(ptr);
  5092. } else
  5093. goto handle_unusual;
  5094. continue;
  5095. // bytes data = 3;
  5096. case 3:
  5097. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
  5098. auto str = _internal_mutable_data();
  5099. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  5100. CHK_(ptr);
  5101. } else
  5102. goto handle_unusual;
  5103. continue;
  5104. default:
  5105. goto handle_unusual;
  5106. } // switch
  5107. handle_unusual:
  5108. if ((tag == 0) || ((tag & 7) == 4)) {
  5109. CHK_(ptr);
  5110. ctx->SetLastTag(tag);
  5111. goto message_done;
  5112. }
  5113. ptr = UnknownFieldParse(
  5114. tag,
  5115. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  5116. ptr, ctx);
  5117. CHK_(ptr != nullptr);
  5118. } // while
  5119. message_done:
  5120. return ptr;
  5121. failure:
  5122. ptr = nullptr;
  5123. goto message_done;
  5124. #undef CHK_
  5125. }
  5126. uint8_t* CanMessage::_InternalSerialize(
  5127. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  5128. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CanMessage)
  5129. uint32_t cached_has_bits = 0;
  5130. (void) cached_has_bits;
  5131. // int32 head = 1;
  5132. if (this->_internal_head() != 0) {
  5133. target = stream->EnsureSpace(target);
  5134. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_head(), target);
  5135. }
  5136. // int32 canid = 2;
  5137. if (this->_internal_canid() != 0) {
  5138. target = stream->EnsureSpace(target);
  5139. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_canid(), target);
  5140. }
  5141. // bytes data = 3;
  5142. if (!this->_internal_data().empty()) {
  5143. target = stream->WriteBytesMaybeAliased(
  5144. 3, this->_internal_data(), target);
  5145. }
  5146. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  5147. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  5148. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  5149. }
  5150. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CanMessage)
  5151. return target;
  5152. }
  5153. size_t CanMessage::ByteSizeLong() const {
  5154. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CanMessage)
  5155. size_t total_size = 0;
  5156. uint32_t cached_has_bits = 0;
  5157. // Prevent compiler warnings about cached_has_bits being unused
  5158. (void) cached_has_bits;
  5159. // bytes data = 3;
  5160. if (!this->_internal_data().empty()) {
  5161. total_size += 1 +
  5162. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
  5163. this->_internal_data());
  5164. }
  5165. // int32 head = 1;
  5166. if (this->_internal_head() != 0) {
  5167. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_head());
  5168. }
  5169. // int32 canid = 2;
  5170. if (this->_internal_canid() != 0) {
  5171. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_canid());
  5172. }
  5173. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  5174. }
  5175. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CanMessage::_class_data_ = {
  5176. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  5177. CanMessage::MergeImpl
  5178. };
  5179. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CanMessage::GetClassData() const { return &_class_data_; }
  5180. void CanMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  5181. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  5182. static_cast<CanMessage *>(to)->MergeFrom(
  5183. static_cast<const CanMessage &>(from));
  5184. }
  5185. void CanMessage::MergeFrom(const CanMessage& from) {
  5186. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CanMessage)
  5187. GOOGLE_DCHECK_NE(&from, this);
  5188. uint32_t cached_has_bits = 0;
  5189. (void) cached_has_bits;
  5190. if (!from._internal_data().empty()) {
  5191. _internal_set_data(from._internal_data());
  5192. }
  5193. if (from._internal_head() != 0) {
  5194. _internal_set_head(from._internal_head());
  5195. }
  5196. if (from._internal_canid() != 0) {
  5197. _internal_set_canid(from._internal_canid());
  5198. }
  5199. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  5200. }
  5201. void CanMessage::CopyFrom(const CanMessage& from) {
  5202. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CanMessage)
  5203. if (&from == this) return;
  5204. Clear();
  5205. MergeFrom(from);
  5206. }
  5207. bool CanMessage::IsInitialized() const {
  5208. return true;
  5209. }
  5210. void CanMessage::InternalSwap(CanMessage* other) {
  5211. using std::swap;
  5212. auto* lhs_arena = GetArenaForAllocation();
  5213. auto* rhs_arena = other->GetArenaForAllocation();
  5214. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  5215. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  5216. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  5217. &data_, lhs_arena,
  5218. &other->data_, rhs_arena
  5219. );
  5220. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  5221. PROTOBUF_FIELD_OFFSET(CanMessage, canid_)
  5222. + sizeof(CanMessage::canid_)
  5223. - PROTOBUF_FIELD_OFFSET(CanMessage, head_)>(
  5224. reinterpret_cast<char*>(&head_),
  5225. reinterpret_cast<char*>(&other->head_));
  5226. }
  5227. ::PROTOBUF_NAMESPACE_ID::Metadata CanMessage::GetMetadata() const {
  5228. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  5229. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  5230. file_level_metadata_protocol_2eproto[18]);
  5231. }
  5232. // ===================================================================
  5233. class CCCanMesage::_Internal {
  5234. public:
  5235. };
  5236. CCCanMesage::CCCanMesage(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  5237. bool is_message_owned)
  5238. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
  5239. message_(arena) {
  5240. SharedCtor();
  5241. if (!is_message_owned) {
  5242. RegisterArenaDtor(arena);
  5243. }
  5244. // @@protoc_insertion_point(arena_constructor:RemoNet.CCCanMesage)
  5245. }
  5246. CCCanMesage::CCCanMesage(const CCCanMesage& from)
  5247. : ::PROTOBUF_NAMESPACE_ID::Message(),
  5248. message_(from.message_) {
  5249. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  5250. islidar_ = from.islidar_;
  5251. // @@protoc_insertion_point(copy_constructor:RemoNet.CCCanMesage)
  5252. }
  5253. inline void CCCanMesage::SharedCtor() {
  5254. islidar_ = false;
  5255. }
  5256. CCCanMesage::~CCCanMesage() {
  5257. // @@protoc_insertion_point(destructor:RemoNet.CCCanMesage)
  5258. if (GetArenaForAllocation() != nullptr) return;
  5259. SharedDtor();
  5260. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5261. }
  5262. inline void CCCanMesage::SharedDtor() {
  5263. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  5264. }
  5265. void CCCanMesage::ArenaDtor(void* object) {
  5266. CCCanMesage* _this = reinterpret_cast< CCCanMesage* >(object);
  5267. (void)_this;
  5268. }
  5269. void CCCanMesage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  5270. }
  5271. void CCCanMesage::SetCachedSize(int size) const {
  5272. _cached_size_.Set(size);
  5273. }
  5274. void CCCanMesage::Clear() {
  5275. // @@protoc_insertion_point(message_clear_start:RemoNet.CCCanMesage)
  5276. uint32_t cached_has_bits = 0;
  5277. // Prevent compiler warnings about cached_has_bits being unused
  5278. (void) cached_has_bits;
  5279. message_.Clear();
  5280. islidar_ = false;
  5281. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5282. }
  5283. const char* CCCanMesage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  5284. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  5285. while (!ctx->Done(&ptr)) {
  5286. uint32_t tag;
  5287. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  5288. switch (tag >> 3) {
  5289. // bool islidar = 1;
  5290. case 1:
  5291. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  5292. islidar_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  5293. CHK_(ptr);
  5294. } else
  5295. goto handle_unusual;
  5296. continue;
  5297. // repeated .RemoNet.CanMessage message = 2;
  5298. case 2:
  5299. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
  5300. ptr -= 1;
  5301. do {
  5302. ptr += 1;
  5303. ptr = ctx->ParseMessage(_internal_add_message(), ptr);
  5304. CHK_(ptr);
  5305. if (!ctx->DataAvailable(ptr)) break;
  5306. } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr));
  5307. } else
  5308. goto handle_unusual;
  5309. continue;
  5310. default:
  5311. goto handle_unusual;
  5312. } // switch
  5313. handle_unusual:
  5314. if ((tag == 0) || ((tag & 7) == 4)) {
  5315. CHK_(ptr);
  5316. ctx->SetLastTag(tag);
  5317. goto message_done;
  5318. }
  5319. ptr = UnknownFieldParse(
  5320. tag,
  5321. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  5322. ptr, ctx);
  5323. CHK_(ptr != nullptr);
  5324. } // while
  5325. message_done:
  5326. return ptr;
  5327. failure:
  5328. ptr = nullptr;
  5329. goto message_done;
  5330. #undef CHK_
  5331. }
  5332. uint8_t* CCCanMesage::_InternalSerialize(
  5333. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  5334. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CCCanMesage)
  5335. uint32_t cached_has_bits = 0;
  5336. (void) cached_has_bits;
  5337. // bool islidar = 1;
  5338. if (this->_internal_islidar() != 0) {
  5339. target = stream->EnsureSpace(target);
  5340. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_islidar(), target);
  5341. }
  5342. // repeated .RemoNet.CanMessage message = 2;
  5343. for (unsigned int i = 0,
  5344. n = static_cast<unsigned int>(this->_internal_message_size()); i < n; i++) {
  5345. target = stream->EnsureSpace(target);
  5346. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  5347. InternalWriteMessage(2, this->_internal_message(i), target, stream);
  5348. }
  5349. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  5350. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  5351. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  5352. }
  5353. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CCCanMesage)
  5354. return target;
  5355. }
  5356. size_t CCCanMesage::ByteSizeLong() const {
  5357. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CCCanMesage)
  5358. size_t total_size = 0;
  5359. uint32_t cached_has_bits = 0;
  5360. // Prevent compiler warnings about cached_has_bits being unused
  5361. (void) cached_has_bits;
  5362. // repeated .RemoNet.CanMessage message = 2;
  5363. total_size += 1UL * this->_internal_message_size();
  5364. for (const auto& msg : this->message_) {
  5365. total_size +=
  5366. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  5367. }
  5368. // bool islidar = 1;
  5369. if (this->_internal_islidar() != 0) {
  5370. total_size += 1 + 1;
  5371. }
  5372. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  5373. }
  5374. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CCCanMesage::_class_data_ = {
  5375. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  5376. CCCanMesage::MergeImpl
  5377. };
  5378. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CCCanMesage::GetClassData() const { return &_class_data_; }
  5379. void CCCanMesage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  5380. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  5381. static_cast<CCCanMesage *>(to)->MergeFrom(
  5382. static_cast<const CCCanMesage &>(from));
  5383. }
  5384. void CCCanMesage::MergeFrom(const CCCanMesage& from) {
  5385. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CCCanMesage)
  5386. GOOGLE_DCHECK_NE(&from, this);
  5387. uint32_t cached_has_bits = 0;
  5388. (void) cached_has_bits;
  5389. message_.MergeFrom(from.message_);
  5390. if (from._internal_islidar() != 0) {
  5391. _internal_set_islidar(from._internal_islidar());
  5392. }
  5393. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  5394. }
  5395. void CCCanMesage::CopyFrom(const CCCanMesage& from) {
  5396. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CCCanMesage)
  5397. if (&from == this) return;
  5398. Clear();
  5399. MergeFrom(from);
  5400. }
  5401. bool CCCanMesage::IsInitialized() const {
  5402. return true;
  5403. }
  5404. void CCCanMesage::InternalSwap(CCCanMesage* other) {
  5405. using std::swap;
  5406. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  5407. message_.InternalSwap(&other->message_);
  5408. swap(islidar_, other->islidar_);
  5409. }
  5410. ::PROTOBUF_NAMESPACE_ID::Metadata CCCanMesage::GetMetadata() const {
  5411. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  5412. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  5413. file_level_metadata_protocol_2eproto[19]);
  5414. }
  5415. // ===================================================================
  5416. class Wiper::_Internal {
  5417. public:
  5418. };
  5419. Wiper::Wiper(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  5420. bool is_message_owned)
  5421. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  5422. SharedCtor();
  5423. if (!is_message_owned) {
  5424. RegisterArenaDtor(arena);
  5425. }
  5426. // @@protoc_insertion_point(arena_constructor:RemoNet.Wiper)
  5427. }
  5428. Wiper::Wiper(const Wiper& from)
  5429. : ::PROTOBUF_NAMESPACE_ID::Message() {
  5430. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  5431. ret_ = from.ret_;
  5432. // @@protoc_insertion_point(copy_constructor:RemoNet.Wiper)
  5433. }
  5434. inline void Wiper::SharedCtor() {
  5435. ret_ = false;
  5436. }
  5437. Wiper::~Wiper() {
  5438. // @@protoc_insertion_point(destructor:RemoNet.Wiper)
  5439. if (GetArenaForAllocation() != nullptr) return;
  5440. SharedDtor();
  5441. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5442. }
  5443. inline void Wiper::SharedDtor() {
  5444. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  5445. }
  5446. void Wiper::ArenaDtor(void* object) {
  5447. Wiper* _this = reinterpret_cast< Wiper* >(object);
  5448. (void)_this;
  5449. }
  5450. void Wiper::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  5451. }
  5452. void Wiper::SetCachedSize(int size) const {
  5453. _cached_size_.Set(size);
  5454. }
  5455. void Wiper::Clear() {
  5456. // @@protoc_insertion_point(message_clear_start:RemoNet.Wiper)
  5457. uint32_t cached_has_bits = 0;
  5458. // Prevent compiler warnings about cached_has_bits being unused
  5459. (void) cached_has_bits;
  5460. ret_ = false;
  5461. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5462. }
  5463. const char* Wiper::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  5464. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  5465. while (!ctx->Done(&ptr)) {
  5466. uint32_t tag;
  5467. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  5468. switch (tag >> 3) {
  5469. // bool ret = 1;
  5470. case 1:
  5471. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  5472. ret_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  5473. CHK_(ptr);
  5474. } else
  5475. goto handle_unusual;
  5476. continue;
  5477. default:
  5478. goto handle_unusual;
  5479. } // switch
  5480. handle_unusual:
  5481. if ((tag == 0) || ((tag & 7) == 4)) {
  5482. CHK_(ptr);
  5483. ctx->SetLastTag(tag);
  5484. goto message_done;
  5485. }
  5486. ptr = UnknownFieldParse(
  5487. tag,
  5488. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  5489. ptr, ctx);
  5490. CHK_(ptr != nullptr);
  5491. } // while
  5492. message_done:
  5493. return ptr;
  5494. failure:
  5495. ptr = nullptr;
  5496. goto message_done;
  5497. #undef CHK_
  5498. }
  5499. uint8_t* Wiper::_InternalSerialize(
  5500. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  5501. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.Wiper)
  5502. uint32_t cached_has_bits = 0;
  5503. (void) cached_has_bits;
  5504. // bool ret = 1;
  5505. if (this->_internal_ret() != 0) {
  5506. target = stream->EnsureSpace(target);
  5507. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_ret(), target);
  5508. }
  5509. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  5510. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  5511. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  5512. }
  5513. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.Wiper)
  5514. return target;
  5515. }
  5516. size_t Wiper::ByteSizeLong() const {
  5517. // @@protoc_insertion_point(message_byte_size_start:RemoNet.Wiper)
  5518. size_t total_size = 0;
  5519. uint32_t cached_has_bits = 0;
  5520. // Prevent compiler warnings about cached_has_bits being unused
  5521. (void) cached_has_bits;
  5522. // bool ret = 1;
  5523. if (this->_internal_ret() != 0) {
  5524. total_size += 1 + 1;
  5525. }
  5526. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  5527. }
  5528. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Wiper::_class_data_ = {
  5529. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  5530. Wiper::MergeImpl
  5531. };
  5532. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Wiper::GetClassData() const { return &_class_data_; }
  5533. void Wiper::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  5534. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  5535. static_cast<Wiper *>(to)->MergeFrom(
  5536. static_cast<const Wiper &>(from));
  5537. }
  5538. void Wiper::MergeFrom(const Wiper& from) {
  5539. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.Wiper)
  5540. GOOGLE_DCHECK_NE(&from, this);
  5541. uint32_t cached_has_bits = 0;
  5542. (void) cached_has_bits;
  5543. if (from._internal_ret() != 0) {
  5544. _internal_set_ret(from._internal_ret());
  5545. }
  5546. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  5547. }
  5548. void Wiper::CopyFrom(const Wiper& from) {
  5549. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.Wiper)
  5550. if (&from == this) return;
  5551. Clear();
  5552. MergeFrom(from);
  5553. }
  5554. bool Wiper::IsInitialized() const {
  5555. return true;
  5556. }
  5557. void Wiper::InternalSwap(Wiper* other) {
  5558. using std::swap;
  5559. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  5560. swap(ret_, other->ret_);
  5561. }
  5562. ::PROTOBUF_NAMESPACE_ID::Metadata Wiper::GetMetadata() const {
  5563. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  5564. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  5565. file_level_metadata_protocol_2eproto[20]);
  5566. }
  5567. // ===================================================================
  5568. class FrontLight::_Internal {
  5569. public:
  5570. };
  5571. FrontLight::FrontLight(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  5572. bool is_message_owned)
  5573. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  5574. SharedCtor();
  5575. if (!is_message_owned) {
  5576. RegisterArenaDtor(arena);
  5577. }
  5578. // @@protoc_insertion_point(arena_constructor:RemoNet.FrontLight)
  5579. }
  5580. FrontLight::FrontLight(const FrontLight& from)
  5581. : ::PROTOBUF_NAMESPACE_ID::Message() {
  5582. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  5583. ret_ = from.ret_;
  5584. // @@protoc_insertion_point(copy_constructor:RemoNet.FrontLight)
  5585. }
  5586. inline void FrontLight::SharedCtor() {
  5587. ret_ = false;
  5588. }
  5589. FrontLight::~FrontLight() {
  5590. // @@protoc_insertion_point(destructor:RemoNet.FrontLight)
  5591. if (GetArenaForAllocation() != nullptr) return;
  5592. SharedDtor();
  5593. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5594. }
  5595. inline void FrontLight::SharedDtor() {
  5596. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  5597. }
  5598. void FrontLight::ArenaDtor(void* object) {
  5599. FrontLight* _this = reinterpret_cast< FrontLight* >(object);
  5600. (void)_this;
  5601. }
  5602. void FrontLight::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  5603. }
  5604. void FrontLight::SetCachedSize(int size) const {
  5605. _cached_size_.Set(size);
  5606. }
  5607. void FrontLight::Clear() {
  5608. // @@protoc_insertion_point(message_clear_start:RemoNet.FrontLight)
  5609. uint32_t cached_has_bits = 0;
  5610. // Prevent compiler warnings about cached_has_bits being unused
  5611. (void) cached_has_bits;
  5612. ret_ = false;
  5613. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5614. }
  5615. const char* FrontLight::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  5616. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  5617. while (!ctx->Done(&ptr)) {
  5618. uint32_t tag;
  5619. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  5620. switch (tag >> 3) {
  5621. // bool ret = 1;
  5622. case 1:
  5623. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  5624. ret_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  5625. CHK_(ptr);
  5626. } else
  5627. goto handle_unusual;
  5628. continue;
  5629. default:
  5630. goto handle_unusual;
  5631. } // switch
  5632. handle_unusual:
  5633. if ((tag == 0) || ((tag & 7) == 4)) {
  5634. CHK_(ptr);
  5635. ctx->SetLastTag(tag);
  5636. goto message_done;
  5637. }
  5638. ptr = UnknownFieldParse(
  5639. tag,
  5640. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  5641. ptr, ctx);
  5642. CHK_(ptr != nullptr);
  5643. } // while
  5644. message_done:
  5645. return ptr;
  5646. failure:
  5647. ptr = nullptr;
  5648. goto message_done;
  5649. #undef CHK_
  5650. }
  5651. uint8_t* FrontLight::_InternalSerialize(
  5652. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  5653. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.FrontLight)
  5654. uint32_t cached_has_bits = 0;
  5655. (void) cached_has_bits;
  5656. // bool ret = 1;
  5657. if (this->_internal_ret() != 0) {
  5658. target = stream->EnsureSpace(target);
  5659. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_ret(), target);
  5660. }
  5661. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  5662. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  5663. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  5664. }
  5665. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.FrontLight)
  5666. return target;
  5667. }
  5668. size_t FrontLight::ByteSizeLong() const {
  5669. // @@protoc_insertion_point(message_byte_size_start:RemoNet.FrontLight)
  5670. size_t total_size = 0;
  5671. uint32_t cached_has_bits = 0;
  5672. // Prevent compiler warnings about cached_has_bits being unused
  5673. (void) cached_has_bits;
  5674. // bool ret = 1;
  5675. if (this->_internal_ret() != 0) {
  5676. total_size += 1 + 1;
  5677. }
  5678. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  5679. }
  5680. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FrontLight::_class_data_ = {
  5681. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  5682. FrontLight::MergeImpl
  5683. };
  5684. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FrontLight::GetClassData() const { return &_class_data_; }
  5685. void FrontLight::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  5686. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  5687. static_cast<FrontLight *>(to)->MergeFrom(
  5688. static_cast<const FrontLight &>(from));
  5689. }
  5690. void FrontLight::MergeFrom(const FrontLight& from) {
  5691. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.FrontLight)
  5692. GOOGLE_DCHECK_NE(&from, this);
  5693. uint32_t cached_has_bits = 0;
  5694. (void) cached_has_bits;
  5695. if (from._internal_ret() != 0) {
  5696. _internal_set_ret(from._internal_ret());
  5697. }
  5698. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  5699. }
  5700. void FrontLight::CopyFrom(const FrontLight& from) {
  5701. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.FrontLight)
  5702. if (&from == this) return;
  5703. Clear();
  5704. MergeFrom(from);
  5705. }
  5706. bool FrontLight::IsInitialized() const {
  5707. return true;
  5708. }
  5709. void FrontLight::InternalSwap(FrontLight* other) {
  5710. using std::swap;
  5711. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  5712. swap(ret_, other->ret_);
  5713. }
  5714. ::PROTOBUF_NAMESPACE_ID::Metadata FrontLight::GetMetadata() const {
  5715. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  5716. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  5717. file_level_metadata_protocol_2eproto[21]);
  5718. }
  5719. // ===================================================================
  5720. class BackLight::_Internal {
  5721. public:
  5722. };
  5723. BackLight::BackLight(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  5724. bool is_message_owned)
  5725. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  5726. SharedCtor();
  5727. if (!is_message_owned) {
  5728. RegisterArenaDtor(arena);
  5729. }
  5730. // @@protoc_insertion_point(arena_constructor:RemoNet.BackLight)
  5731. }
  5732. BackLight::BackLight(const BackLight& from)
  5733. : ::PROTOBUF_NAMESPACE_ID::Message() {
  5734. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  5735. ret_ = from.ret_;
  5736. // @@protoc_insertion_point(copy_constructor:RemoNet.BackLight)
  5737. }
  5738. inline void BackLight::SharedCtor() {
  5739. ret_ = false;
  5740. }
  5741. BackLight::~BackLight() {
  5742. // @@protoc_insertion_point(destructor:RemoNet.BackLight)
  5743. if (GetArenaForAllocation() != nullptr) return;
  5744. SharedDtor();
  5745. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5746. }
  5747. inline void BackLight::SharedDtor() {
  5748. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  5749. }
  5750. void BackLight::ArenaDtor(void* object) {
  5751. BackLight* _this = reinterpret_cast< BackLight* >(object);
  5752. (void)_this;
  5753. }
  5754. void BackLight::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  5755. }
  5756. void BackLight::SetCachedSize(int size) const {
  5757. _cached_size_.Set(size);
  5758. }
  5759. void BackLight::Clear() {
  5760. // @@protoc_insertion_point(message_clear_start:RemoNet.BackLight)
  5761. uint32_t cached_has_bits = 0;
  5762. // Prevent compiler warnings about cached_has_bits being unused
  5763. (void) cached_has_bits;
  5764. ret_ = false;
  5765. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5766. }
  5767. const char* BackLight::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  5768. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  5769. while (!ctx->Done(&ptr)) {
  5770. uint32_t tag;
  5771. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  5772. switch (tag >> 3) {
  5773. // bool ret = 1;
  5774. case 1:
  5775. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  5776. ret_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  5777. CHK_(ptr);
  5778. } else
  5779. goto handle_unusual;
  5780. continue;
  5781. default:
  5782. goto handle_unusual;
  5783. } // switch
  5784. handle_unusual:
  5785. if ((tag == 0) || ((tag & 7) == 4)) {
  5786. CHK_(ptr);
  5787. ctx->SetLastTag(tag);
  5788. goto message_done;
  5789. }
  5790. ptr = UnknownFieldParse(
  5791. tag,
  5792. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  5793. ptr, ctx);
  5794. CHK_(ptr != nullptr);
  5795. } // while
  5796. message_done:
  5797. return ptr;
  5798. failure:
  5799. ptr = nullptr;
  5800. goto message_done;
  5801. #undef CHK_
  5802. }
  5803. uint8_t* BackLight::_InternalSerialize(
  5804. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  5805. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.BackLight)
  5806. uint32_t cached_has_bits = 0;
  5807. (void) cached_has_bits;
  5808. // bool ret = 1;
  5809. if (this->_internal_ret() != 0) {
  5810. target = stream->EnsureSpace(target);
  5811. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_ret(), target);
  5812. }
  5813. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  5814. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  5815. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  5816. }
  5817. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.BackLight)
  5818. return target;
  5819. }
  5820. size_t BackLight::ByteSizeLong() const {
  5821. // @@protoc_insertion_point(message_byte_size_start:RemoNet.BackLight)
  5822. size_t total_size = 0;
  5823. uint32_t cached_has_bits = 0;
  5824. // Prevent compiler warnings about cached_has_bits being unused
  5825. (void) cached_has_bits;
  5826. // bool ret = 1;
  5827. if (this->_internal_ret() != 0) {
  5828. total_size += 1 + 1;
  5829. }
  5830. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  5831. }
  5832. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData BackLight::_class_data_ = {
  5833. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  5834. BackLight::MergeImpl
  5835. };
  5836. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*BackLight::GetClassData() const { return &_class_data_; }
  5837. void BackLight::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  5838. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  5839. static_cast<BackLight *>(to)->MergeFrom(
  5840. static_cast<const BackLight &>(from));
  5841. }
  5842. void BackLight::MergeFrom(const BackLight& from) {
  5843. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.BackLight)
  5844. GOOGLE_DCHECK_NE(&from, this);
  5845. uint32_t cached_has_bits = 0;
  5846. (void) cached_has_bits;
  5847. if (from._internal_ret() != 0) {
  5848. _internal_set_ret(from._internal_ret());
  5849. }
  5850. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  5851. }
  5852. void BackLight::CopyFrom(const BackLight& from) {
  5853. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.BackLight)
  5854. if (&from == this) return;
  5855. Clear();
  5856. MergeFrom(from);
  5857. }
  5858. bool BackLight::IsInitialized() const {
  5859. return true;
  5860. }
  5861. void BackLight::InternalSwap(BackLight* other) {
  5862. using std::swap;
  5863. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  5864. swap(ret_, other->ret_);
  5865. }
  5866. ::PROTOBUF_NAMESPACE_ID::Metadata BackLight::GetMetadata() const {
  5867. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  5868. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  5869. file_level_metadata_protocol_2eproto[22]);
  5870. }
  5871. // ===================================================================
  5872. class CCAskDataChannel::_Internal {
  5873. public:
  5874. };
  5875. CCAskDataChannel::CCAskDataChannel(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  5876. bool is_message_owned)
  5877. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) {
  5878. // @@protoc_insertion_point(arena_constructor:RemoNet.CCAskDataChannel)
  5879. }
  5880. CCAskDataChannel::CCAskDataChannel(const CCAskDataChannel& from)
  5881. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() {
  5882. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  5883. // @@protoc_insertion_point(copy_constructor:RemoNet.CCAskDataChannel)
  5884. }
  5885. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CCAskDataChannel::_class_data_ = {
  5886. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl,
  5887. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl,
  5888. };
  5889. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CCAskDataChannel::GetClassData() const { return &_class_data_; }
  5890. ::PROTOBUF_NAMESPACE_ID::Metadata CCAskDataChannel::GetMetadata() const {
  5891. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  5892. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  5893. file_level_metadata_protocol_2eproto[23]);
  5894. }
  5895. // ===================================================================
  5896. class IMuMessage::_Internal {
  5897. public:
  5898. };
  5899. IMuMessage::IMuMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  5900. bool is_message_owned)
  5901. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  5902. SharedCtor();
  5903. if (!is_message_owned) {
  5904. RegisterArenaDtor(arena);
  5905. }
  5906. // @@protoc_insertion_point(arena_constructor:RemoNet.IMuMessage)
  5907. }
  5908. IMuMessage::IMuMessage(const IMuMessage& from)
  5909. : ::PROTOBUF_NAMESPACE_ID::Message() {
  5910. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  5911. ::memcpy(&rx_, &from.rx_,
  5912. static_cast<size_t>(reinterpret_cast<char*>(&ry_) -
  5913. reinterpret_cast<char*>(&rx_)) + sizeof(ry_));
  5914. // @@protoc_insertion_point(copy_constructor:RemoNet.IMuMessage)
  5915. }
  5916. inline void IMuMessage::SharedCtor() {
  5917. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  5918. reinterpret_cast<char*>(&rx_) - reinterpret_cast<char*>(this)),
  5919. 0, static_cast<size_t>(reinterpret_cast<char*>(&ry_) -
  5920. reinterpret_cast<char*>(&rx_)) + sizeof(ry_));
  5921. }
  5922. IMuMessage::~IMuMessage() {
  5923. // @@protoc_insertion_point(destructor:RemoNet.IMuMessage)
  5924. if (GetArenaForAllocation() != nullptr) return;
  5925. SharedDtor();
  5926. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5927. }
  5928. inline void IMuMessage::SharedDtor() {
  5929. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  5930. }
  5931. void IMuMessage::ArenaDtor(void* object) {
  5932. IMuMessage* _this = reinterpret_cast< IMuMessage* >(object);
  5933. (void)_this;
  5934. }
  5935. void IMuMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  5936. }
  5937. void IMuMessage::SetCachedSize(int size) const {
  5938. _cached_size_.Set(size);
  5939. }
  5940. void IMuMessage::Clear() {
  5941. // @@protoc_insertion_point(message_clear_start:RemoNet.IMuMessage)
  5942. uint32_t cached_has_bits = 0;
  5943. // Prevent compiler warnings about cached_has_bits being unused
  5944. (void) cached_has_bits;
  5945. ::memset(&rx_, 0, static_cast<size_t>(
  5946. reinterpret_cast<char*>(&ry_) -
  5947. reinterpret_cast<char*>(&rx_)) + sizeof(ry_));
  5948. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5949. }
  5950. const char* IMuMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  5951. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  5952. while (!ctx->Done(&ptr)) {
  5953. uint32_t tag;
  5954. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  5955. switch (tag >> 3) {
  5956. // float rx = 1;
  5957. case 1:
  5958. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 13)) {
  5959. rx_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  5960. ptr += sizeof(float);
  5961. } else
  5962. goto handle_unusual;
  5963. continue;
  5964. // float ry = 2;
  5965. case 2:
  5966. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 21)) {
  5967. ry_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  5968. ptr += sizeof(float);
  5969. } else
  5970. goto handle_unusual;
  5971. continue;
  5972. default:
  5973. goto handle_unusual;
  5974. } // switch
  5975. handle_unusual:
  5976. if ((tag == 0) || ((tag & 7) == 4)) {
  5977. CHK_(ptr);
  5978. ctx->SetLastTag(tag);
  5979. goto message_done;
  5980. }
  5981. ptr = UnknownFieldParse(
  5982. tag,
  5983. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  5984. ptr, ctx);
  5985. CHK_(ptr != nullptr);
  5986. } // while
  5987. message_done:
  5988. return ptr;
  5989. failure:
  5990. ptr = nullptr;
  5991. goto message_done;
  5992. #undef CHK_
  5993. }
  5994. uint8_t* IMuMessage::_InternalSerialize(
  5995. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  5996. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.IMuMessage)
  5997. uint32_t cached_has_bits = 0;
  5998. (void) cached_has_bits;
  5999. // float rx = 1;
  6000. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  6001. float tmp_rx = this->_internal_rx();
  6002. uint32_t raw_rx;
  6003. memcpy(&raw_rx, &tmp_rx, sizeof(tmp_rx));
  6004. if (raw_rx != 0) {
  6005. target = stream->EnsureSpace(target);
  6006. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(1, this->_internal_rx(), target);
  6007. }
  6008. // float ry = 2;
  6009. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  6010. float tmp_ry = this->_internal_ry();
  6011. uint32_t raw_ry;
  6012. memcpy(&raw_ry, &tmp_ry, sizeof(tmp_ry));
  6013. if (raw_ry != 0) {
  6014. target = stream->EnsureSpace(target);
  6015. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(2, this->_internal_ry(), target);
  6016. }
  6017. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  6018. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  6019. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  6020. }
  6021. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.IMuMessage)
  6022. return target;
  6023. }
  6024. size_t IMuMessage::ByteSizeLong() const {
  6025. // @@protoc_insertion_point(message_byte_size_start:RemoNet.IMuMessage)
  6026. size_t total_size = 0;
  6027. uint32_t cached_has_bits = 0;
  6028. // Prevent compiler warnings about cached_has_bits being unused
  6029. (void) cached_has_bits;
  6030. // float rx = 1;
  6031. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  6032. float tmp_rx = this->_internal_rx();
  6033. uint32_t raw_rx;
  6034. memcpy(&raw_rx, &tmp_rx, sizeof(tmp_rx));
  6035. if (raw_rx != 0) {
  6036. total_size += 1 + 4;
  6037. }
  6038. // float ry = 2;
  6039. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  6040. float tmp_ry = this->_internal_ry();
  6041. uint32_t raw_ry;
  6042. memcpy(&raw_ry, &tmp_ry, sizeof(tmp_ry));
  6043. if (raw_ry != 0) {
  6044. total_size += 1 + 4;
  6045. }
  6046. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  6047. }
  6048. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData IMuMessage::_class_data_ = {
  6049. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  6050. IMuMessage::MergeImpl
  6051. };
  6052. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*IMuMessage::GetClassData() const { return &_class_data_; }
  6053. void IMuMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  6054. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  6055. static_cast<IMuMessage *>(to)->MergeFrom(
  6056. static_cast<const IMuMessage &>(from));
  6057. }
  6058. void IMuMessage::MergeFrom(const IMuMessage& from) {
  6059. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.IMuMessage)
  6060. GOOGLE_DCHECK_NE(&from, this);
  6061. uint32_t cached_has_bits = 0;
  6062. (void) cached_has_bits;
  6063. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  6064. float tmp_rx = from._internal_rx();
  6065. uint32_t raw_rx;
  6066. memcpy(&raw_rx, &tmp_rx, sizeof(tmp_rx));
  6067. if (raw_rx != 0) {
  6068. _internal_set_rx(from._internal_rx());
  6069. }
  6070. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  6071. float tmp_ry = from._internal_ry();
  6072. uint32_t raw_ry;
  6073. memcpy(&raw_ry, &tmp_ry, sizeof(tmp_ry));
  6074. if (raw_ry != 0) {
  6075. _internal_set_ry(from._internal_ry());
  6076. }
  6077. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  6078. }
  6079. void IMuMessage::CopyFrom(const IMuMessage& from) {
  6080. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.IMuMessage)
  6081. if (&from == this) return;
  6082. Clear();
  6083. MergeFrom(from);
  6084. }
  6085. bool IMuMessage::IsInitialized() const {
  6086. return true;
  6087. }
  6088. void IMuMessage::InternalSwap(IMuMessage* other) {
  6089. using std::swap;
  6090. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  6091. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  6092. PROTOBUF_FIELD_OFFSET(IMuMessage, ry_)
  6093. + sizeof(IMuMessage::ry_)
  6094. - PROTOBUF_FIELD_OFFSET(IMuMessage, rx_)>(
  6095. reinterpret_cast<char*>(&rx_),
  6096. reinterpret_cast<char*>(&other->rx_));
  6097. }
  6098. ::PROTOBUF_NAMESPACE_ID::Metadata IMuMessage::GetMetadata() const {
  6099. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  6100. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  6101. file_level_metadata_protocol_2eproto[24]);
  6102. }
  6103. // ===================================================================
  6104. class CCPing::_Internal {
  6105. public:
  6106. };
  6107. CCPing::CCPing(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  6108. bool is_message_owned)
  6109. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  6110. SharedCtor();
  6111. if (!is_message_owned) {
  6112. RegisterArenaDtor(arena);
  6113. }
  6114. // @@protoc_insertion_point(arena_constructor:RemoNet.CCPing)
  6115. }
  6116. CCPing::CCPing(const CCPing& from)
  6117. : ::PROTOBUF_NAMESPACE_ID::Message() {
  6118. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  6119. tick_ = from.tick_;
  6120. // @@protoc_insertion_point(copy_constructor:RemoNet.CCPing)
  6121. }
  6122. inline void CCPing::SharedCtor() {
  6123. tick_ = int64_t{0};
  6124. }
  6125. CCPing::~CCPing() {
  6126. // @@protoc_insertion_point(destructor:RemoNet.CCPing)
  6127. if (GetArenaForAllocation() != nullptr) return;
  6128. SharedDtor();
  6129. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  6130. }
  6131. inline void CCPing::SharedDtor() {
  6132. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  6133. }
  6134. void CCPing::ArenaDtor(void* object) {
  6135. CCPing* _this = reinterpret_cast< CCPing* >(object);
  6136. (void)_this;
  6137. }
  6138. void CCPing::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  6139. }
  6140. void CCPing::SetCachedSize(int size) const {
  6141. _cached_size_.Set(size);
  6142. }
  6143. void CCPing::Clear() {
  6144. // @@protoc_insertion_point(message_clear_start:RemoNet.CCPing)
  6145. uint32_t cached_has_bits = 0;
  6146. // Prevent compiler warnings about cached_has_bits being unused
  6147. (void) cached_has_bits;
  6148. tick_ = int64_t{0};
  6149. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  6150. }
  6151. const char* CCPing::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  6152. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  6153. while (!ctx->Done(&ptr)) {
  6154. uint32_t tag;
  6155. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  6156. switch (tag >> 3) {
  6157. // int64 tick = 1;
  6158. case 1:
  6159. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  6160. tick_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  6161. CHK_(ptr);
  6162. } else
  6163. goto handle_unusual;
  6164. continue;
  6165. default:
  6166. goto handle_unusual;
  6167. } // switch
  6168. handle_unusual:
  6169. if ((tag == 0) || ((tag & 7) == 4)) {
  6170. CHK_(ptr);
  6171. ctx->SetLastTag(tag);
  6172. goto message_done;
  6173. }
  6174. ptr = UnknownFieldParse(
  6175. tag,
  6176. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  6177. ptr, ctx);
  6178. CHK_(ptr != nullptr);
  6179. } // while
  6180. message_done:
  6181. return ptr;
  6182. failure:
  6183. ptr = nullptr;
  6184. goto message_done;
  6185. #undef CHK_
  6186. }
  6187. uint8_t* CCPing::_InternalSerialize(
  6188. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  6189. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CCPing)
  6190. uint32_t cached_has_bits = 0;
  6191. (void) cached_has_bits;
  6192. // int64 tick = 1;
  6193. if (this->_internal_tick() != 0) {
  6194. target = stream->EnsureSpace(target);
  6195. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_tick(), target);
  6196. }
  6197. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  6198. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  6199. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  6200. }
  6201. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CCPing)
  6202. return target;
  6203. }
  6204. size_t CCPing::ByteSizeLong() const {
  6205. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CCPing)
  6206. size_t total_size = 0;
  6207. uint32_t cached_has_bits = 0;
  6208. // Prevent compiler warnings about cached_has_bits being unused
  6209. (void) cached_has_bits;
  6210. // int64 tick = 1;
  6211. if (this->_internal_tick() != 0) {
  6212. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_tick());
  6213. }
  6214. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  6215. }
  6216. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CCPing::_class_data_ = {
  6217. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  6218. CCPing::MergeImpl
  6219. };
  6220. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CCPing::GetClassData() const { return &_class_data_; }
  6221. void CCPing::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  6222. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  6223. static_cast<CCPing *>(to)->MergeFrom(
  6224. static_cast<const CCPing &>(from));
  6225. }
  6226. void CCPing::MergeFrom(const CCPing& from) {
  6227. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CCPing)
  6228. GOOGLE_DCHECK_NE(&from, this);
  6229. uint32_t cached_has_bits = 0;
  6230. (void) cached_has_bits;
  6231. if (from._internal_tick() != 0) {
  6232. _internal_set_tick(from._internal_tick());
  6233. }
  6234. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  6235. }
  6236. void CCPing::CopyFrom(const CCPing& from) {
  6237. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CCPing)
  6238. if (&from == this) return;
  6239. Clear();
  6240. MergeFrom(from);
  6241. }
  6242. bool CCPing::IsInitialized() const {
  6243. return true;
  6244. }
  6245. void CCPing::InternalSwap(CCPing* other) {
  6246. using std::swap;
  6247. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  6248. swap(tick_, other->tick_);
  6249. }
  6250. ::PROTOBUF_NAMESPACE_ID::Metadata CCPing::GetMetadata() const {
  6251. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  6252. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  6253. file_level_metadata_protocol_2eproto[25]);
  6254. }
  6255. // ===================================================================
  6256. class CCRadarMessage::_Internal {
  6257. public:
  6258. };
  6259. CCRadarMessage::CCRadarMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  6260. bool is_message_owned)
  6261. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  6262. SharedCtor();
  6263. if (!is_message_owned) {
  6264. RegisterArenaDtor(arena);
  6265. }
  6266. // @@protoc_insertion_point(arena_constructor:RemoNet.CCRadarMessage)
  6267. }
  6268. CCRadarMessage::CCRadarMessage(const CCRadarMessage& from)
  6269. : ::PROTOBUF_NAMESPACE_ID::Message() {
  6270. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  6271. ::memcpy(&radar0_, &from.radar0_,
  6272. static_cast<size_t>(reinterpret_cast<char*>(&radar5_) -
  6273. reinterpret_cast<char*>(&radar0_)) + sizeof(radar5_));
  6274. // @@protoc_insertion_point(copy_constructor:RemoNet.CCRadarMessage)
  6275. }
  6276. inline void CCRadarMessage::SharedCtor() {
  6277. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  6278. reinterpret_cast<char*>(&radar0_) - reinterpret_cast<char*>(this)),
  6279. 0, static_cast<size_t>(reinterpret_cast<char*>(&radar5_) -
  6280. reinterpret_cast<char*>(&radar0_)) + sizeof(radar5_));
  6281. }
  6282. CCRadarMessage::~CCRadarMessage() {
  6283. // @@protoc_insertion_point(destructor:RemoNet.CCRadarMessage)
  6284. if (GetArenaForAllocation() != nullptr) return;
  6285. SharedDtor();
  6286. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  6287. }
  6288. inline void CCRadarMessage::SharedDtor() {
  6289. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  6290. }
  6291. void CCRadarMessage::ArenaDtor(void* object) {
  6292. CCRadarMessage* _this = reinterpret_cast< CCRadarMessage* >(object);
  6293. (void)_this;
  6294. }
  6295. void CCRadarMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  6296. }
  6297. void CCRadarMessage::SetCachedSize(int size) const {
  6298. _cached_size_.Set(size);
  6299. }
  6300. void CCRadarMessage::Clear() {
  6301. // @@protoc_insertion_point(message_clear_start:RemoNet.CCRadarMessage)
  6302. uint32_t cached_has_bits = 0;
  6303. // Prevent compiler warnings about cached_has_bits being unused
  6304. (void) cached_has_bits;
  6305. ::memset(&radar0_, 0, static_cast<size_t>(
  6306. reinterpret_cast<char*>(&radar5_) -
  6307. reinterpret_cast<char*>(&radar0_)) + sizeof(radar5_));
  6308. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  6309. }
  6310. const char* CCRadarMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  6311. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  6312. while (!ctx->Done(&ptr)) {
  6313. uint32_t tag;
  6314. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  6315. switch (tag >> 3) {
  6316. // int32 radar0 = 1;
  6317. case 1:
  6318. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  6319. radar0_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6320. CHK_(ptr);
  6321. } else
  6322. goto handle_unusual;
  6323. continue;
  6324. // int32 radar1 = 2;
  6325. case 2:
  6326. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  6327. radar1_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6328. CHK_(ptr);
  6329. } else
  6330. goto handle_unusual;
  6331. continue;
  6332. // int32 radar2 = 3;
  6333. case 3:
  6334. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  6335. radar2_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6336. CHK_(ptr);
  6337. } else
  6338. goto handle_unusual;
  6339. continue;
  6340. // int32 radar3 = 4;
  6341. case 4:
  6342. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
  6343. radar3_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6344. CHK_(ptr);
  6345. } else
  6346. goto handle_unusual;
  6347. continue;
  6348. // int32 radar4 = 5;
  6349. case 5:
  6350. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
  6351. radar4_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6352. CHK_(ptr);
  6353. } else
  6354. goto handle_unusual;
  6355. continue;
  6356. // int32 radar5 = 6;
  6357. case 6:
  6358. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 48)) {
  6359. radar5_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6360. CHK_(ptr);
  6361. } else
  6362. goto handle_unusual;
  6363. continue;
  6364. default:
  6365. goto handle_unusual;
  6366. } // switch
  6367. handle_unusual:
  6368. if ((tag == 0) || ((tag & 7) == 4)) {
  6369. CHK_(ptr);
  6370. ctx->SetLastTag(tag);
  6371. goto message_done;
  6372. }
  6373. ptr = UnknownFieldParse(
  6374. tag,
  6375. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  6376. ptr, ctx);
  6377. CHK_(ptr != nullptr);
  6378. } // while
  6379. message_done:
  6380. return ptr;
  6381. failure:
  6382. ptr = nullptr;
  6383. goto message_done;
  6384. #undef CHK_
  6385. }
  6386. uint8_t* CCRadarMessage::_InternalSerialize(
  6387. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  6388. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CCRadarMessage)
  6389. uint32_t cached_has_bits = 0;
  6390. (void) cached_has_bits;
  6391. // int32 radar0 = 1;
  6392. if (this->_internal_radar0() != 0) {
  6393. target = stream->EnsureSpace(target);
  6394. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_radar0(), target);
  6395. }
  6396. // int32 radar1 = 2;
  6397. if (this->_internal_radar1() != 0) {
  6398. target = stream->EnsureSpace(target);
  6399. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_radar1(), target);
  6400. }
  6401. // int32 radar2 = 3;
  6402. if (this->_internal_radar2() != 0) {
  6403. target = stream->EnsureSpace(target);
  6404. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_radar2(), target);
  6405. }
  6406. // int32 radar3 = 4;
  6407. if (this->_internal_radar3() != 0) {
  6408. target = stream->EnsureSpace(target);
  6409. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_radar3(), target);
  6410. }
  6411. // int32 radar4 = 5;
  6412. if (this->_internal_radar4() != 0) {
  6413. target = stream->EnsureSpace(target);
  6414. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(5, this->_internal_radar4(), target);
  6415. }
  6416. // int32 radar5 = 6;
  6417. if (this->_internal_radar5() != 0) {
  6418. target = stream->EnsureSpace(target);
  6419. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(6, this->_internal_radar5(), target);
  6420. }
  6421. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  6422. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  6423. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  6424. }
  6425. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CCRadarMessage)
  6426. return target;
  6427. }
  6428. size_t CCRadarMessage::ByteSizeLong() const {
  6429. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CCRadarMessage)
  6430. size_t total_size = 0;
  6431. uint32_t cached_has_bits = 0;
  6432. // Prevent compiler warnings about cached_has_bits being unused
  6433. (void) cached_has_bits;
  6434. // int32 radar0 = 1;
  6435. if (this->_internal_radar0() != 0) {
  6436. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_radar0());
  6437. }
  6438. // int32 radar1 = 2;
  6439. if (this->_internal_radar1() != 0) {
  6440. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_radar1());
  6441. }
  6442. // int32 radar2 = 3;
  6443. if (this->_internal_radar2() != 0) {
  6444. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_radar2());
  6445. }
  6446. // int32 radar3 = 4;
  6447. if (this->_internal_radar3() != 0) {
  6448. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_radar3());
  6449. }
  6450. // int32 radar4 = 5;
  6451. if (this->_internal_radar4() != 0) {
  6452. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_radar4());
  6453. }
  6454. // int32 radar5 = 6;
  6455. if (this->_internal_radar5() != 0) {
  6456. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_radar5());
  6457. }
  6458. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  6459. }
  6460. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CCRadarMessage::_class_data_ = {
  6461. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  6462. CCRadarMessage::MergeImpl
  6463. };
  6464. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CCRadarMessage::GetClassData() const { return &_class_data_; }
  6465. void CCRadarMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  6466. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  6467. static_cast<CCRadarMessage *>(to)->MergeFrom(
  6468. static_cast<const CCRadarMessage &>(from));
  6469. }
  6470. void CCRadarMessage::MergeFrom(const CCRadarMessage& from) {
  6471. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CCRadarMessage)
  6472. GOOGLE_DCHECK_NE(&from, this);
  6473. uint32_t cached_has_bits = 0;
  6474. (void) cached_has_bits;
  6475. if (from._internal_radar0() != 0) {
  6476. _internal_set_radar0(from._internal_radar0());
  6477. }
  6478. if (from._internal_radar1() != 0) {
  6479. _internal_set_radar1(from._internal_radar1());
  6480. }
  6481. if (from._internal_radar2() != 0) {
  6482. _internal_set_radar2(from._internal_radar2());
  6483. }
  6484. if (from._internal_radar3() != 0) {
  6485. _internal_set_radar3(from._internal_radar3());
  6486. }
  6487. if (from._internal_radar4() != 0) {
  6488. _internal_set_radar4(from._internal_radar4());
  6489. }
  6490. if (from._internal_radar5() != 0) {
  6491. _internal_set_radar5(from._internal_radar5());
  6492. }
  6493. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  6494. }
  6495. void CCRadarMessage::CopyFrom(const CCRadarMessage& from) {
  6496. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CCRadarMessage)
  6497. if (&from == this) return;
  6498. Clear();
  6499. MergeFrom(from);
  6500. }
  6501. bool CCRadarMessage::IsInitialized() const {
  6502. return true;
  6503. }
  6504. void CCRadarMessage::InternalSwap(CCRadarMessage* other) {
  6505. using std::swap;
  6506. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  6507. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  6508. PROTOBUF_FIELD_OFFSET(CCRadarMessage, radar5_)
  6509. + sizeof(CCRadarMessage::radar5_)
  6510. - PROTOBUF_FIELD_OFFSET(CCRadarMessage, radar0_)>(
  6511. reinterpret_cast<char*>(&radar0_),
  6512. reinterpret_cast<char*>(&other->radar0_));
  6513. }
  6514. ::PROTOBUF_NAMESPACE_ID::Metadata CCRadarMessage::GetMetadata() const {
  6515. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  6516. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  6517. file_level_metadata_protocol_2eproto[26]);
  6518. }
  6519. // ===================================================================
  6520. class CCRobotAnalog::_Internal {
  6521. public:
  6522. };
  6523. CCRobotAnalog::CCRobotAnalog(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  6524. bool is_message_owned)
  6525. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  6526. SharedCtor();
  6527. if (!is_message_owned) {
  6528. RegisterArenaDtor(arena);
  6529. }
  6530. // @@protoc_insertion_point(arena_constructor:RemoNet.CCRobotAnalog)
  6531. }
  6532. CCRobotAnalog::CCRobotAnalog(const CCRobotAnalog& from)
  6533. : ::PROTOBUF_NAMESPACE_ID::Message() {
  6534. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  6535. ::memcpy(&steer_, &from.steer_,
  6536. static_cast<size_t>(reinterpret_cast<char*>(&wipe_) -
  6537. reinterpret_cast<char*>(&steer_)) + sizeof(wipe_));
  6538. // @@protoc_insertion_point(copy_constructor:RemoNet.CCRobotAnalog)
  6539. }
  6540. inline void CCRobotAnalog::SharedCtor() {
  6541. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  6542. reinterpret_cast<char*>(&steer_) - reinterpret_cast<char*>(this)),
  6543. 0, static_cast<size_t>(reinterpret_cast<char*>(&wipe_) -
  6544. reinterpret_cast<char*>(&steer_)) + sizeof(wipe_));
  6545. }
  6546. CCRobotAnalog::~CCRobotAnalog() {
  6547. // @@protoc_insertion_point(destructor:RemoNet.CCRobotAnalog)
  6548. if (GetArenaForAllocation() != nullptr) return;
  6549. SharedDtor();
  6550. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  6551. }
  6552. inline void CCRobotAnalog::SharedDtor() {
  6553. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  6554. }
  6555. void CCRobotAnalog::ArenaDtor(void* object) {
  6556. CCRobotAnalog* _this = reinterpret_cast< CCRobotAnalog* >(object);
  6557. (void)_this;
  6558. }
  6559. void CCRobotAnalog::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  6560. }
  6561. void CCRobotAnalog::SetCachedSize(int size) const {
  6562. _cached_size_.Set(size);
  6563. }
  6564. void CCRobotAnalog::Clear() {
  6565. // @@protoc_insertion_point(message_clear_start:RemoNet.CCRobotAnalog)
  6566. uint32_t cached_has_bits = 0;
  6567. // Prevent compiler warnings about cached_has_bits being unused
  6568. (void) cached_has_bits;
  6569. ::memset(&steer_, 0, static_cast<size_t>(
  6570. reinterpret_cast<char*>(&wipe_) -
  6571. reinterpret_cast<char*>(&steer_)) + sizeof(wipe_));
  6572. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  6573. }
  6574. const char* CCRobotAnalog::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  6575. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  6576. while (!ctx->Done(&ptr)) {
  6577. uint32_t tag;
  6578. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  6579. switch (tag >> 3) {
  6580. // int32 steer = 1;
  6581. case 1:
  6582. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  6583. steer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6584. CHK_(ptr);
  6585. } else
  6586. goto handle_unusual;
  6587. continue;
  6588. // int32 arm = 2;
  6589. case 2:
  6590. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  6591. arm_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6592. CHK_(ptr);
  6593. } else
  6594. goto handle_unusual;
  6595. continue;
  6596. // int32 bucket = 3;
  6597. case 3:
  6598. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  6599. bucket_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6600. CHK_(ptr);
  6601. } else
  6602. goto handle_unusual;
  6603. continue;
  6604. // int32 throttle = 4;
  6605. case 4:
  6606. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
  6607. throttle_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6608. CHK_(ptr);
  6609. } else
  6610. goto handle_unusual;
  6611. continue;
  6612. // int32 brake = 5;
  6613. case 5:
  6614. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
  6615. brake_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6616. CHK_(ptr);
  6617. } else
  6618. goto handle_unusual;
  6619. continue;
  6620. // bool emergency = 8;
  6621. case 8:
  6622. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 64)) {
  6623. emergency_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  6624. CHK_(ptr);
  6625. } else
  6626. goto handle_unusual;
  6627. continue;
  6628. // bool resume = 9;
  6629. case 9:
  6630. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 72)) {
  6631. resume_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  6632. CHK_(ptr);
  6633. } else
  6634. goto handle_unusual;
  6635. continue;
  6636. // .RemoNet.Gears gears = 10;
  6637. case 10:
  6638. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 80)) {
  6639. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  6640. CHK_(ptr);
  6641. _internal_set_gears(static_cast<::RemoNet::Gears>(val));
  6642. } else
  6643. goto handle_unusual;
  6644. continue;
  6645. // bool frontlight = 11;
  6646. case 11:
  6647. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 88)) {
  6648. frontlight_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  6649. CHK_(ptr);
  6650. } else
  6651. goto handle_unusual;
  6652. continue;
  6653. // bool backlight = 12;
  6654. case 12:
  6655. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 96)) {
  6656. backlight_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  6657. CHK_(ptr);
  6658. } else
  6659. goto handle_unusual;
  6660. continue;
  6661. // bool wipe = 13;
  6662. case 13:
  6663. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 104)) {
  6664. wipe_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  6665. CHK_(ptr);
  6666. } else
  6667. goto handle_unusual;
  6668. continue;
  6669. default:
  6670. goto handle_unusual;
  6671. } // switch
  6672. handle_unusual:
  6673. if ((tag == 0) || ((tag & 7) == 4)) {
  6674. CHK_(ptr);
  6675. ctx->SetLastTag(tag);
  6676. goto message_done;
  6677. }
  6678. ptr = UnknownFieldParse(
  6679. tag,
  6680. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  6681. ptr, ctx);
  6682. CHK_(ptr != nullptr);
  6683. } // while
  6684. message_done:
  6685. return ptr;
  6686. failure:
  6687. ptr = nullptr;
  6688. goto message_done;
  6689. #undef CHK_
  6690. }
  6691. uint8_t* CCRobotAnalog::_InternalSerialize(
  6692. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  6693. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CCRobotAnalog)
  6694. uint32_t cached_has_bits = 0;
  6695. (void) cached_has_bits;
  6696. // int32 steer = 1;
  6697. if (this->_internal_steer() != 0) {
  6698. target = stream->EnsureSpace(target);
  6699. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_steer(), target);
  6700. }
  6701. // int32 arm = 2;
  6702. if (this->_internal_arm() != 0) {
  6703. target = stream->EnsureSpace(target);
  6704. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_arm(), target);
  6705. }
  6706. // int32 bucket = 3;
  6707. if (this->_internal_bucket() != 0) {
  6708. target = stream->EnsureSpace(target);
  6709. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_bucket(), target);
  6710. }
  6711. // int32 throttle = 4;
  6712. if (this->_internal_throttle() != 0) {
  6713. target = stream->EnsureSpace(target);
  6714. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_throttle(), target);
  6715. }
  6716. // int32 brake = 5;
  6717. if (this->_internal_brake() != 0) {
  6718. target = stream->EnsureSpace(target);
  6719. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(5, this->_internal_brake(), target);
  6720. }
  6721. // bool emergency = 8;
  6722. if (this->_internal_emergency() != 0) {
  6723. target = stream->EnsureSpace(target);
  6724. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(8, this->_internal_emergency(), target);
  6725. }
  6726. // bool resume = 9;
  6727. if (this->_internal_resume() != 0) {
  6728. target = stream->EnsureSpace(target);
  6729. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(9, this->_internal_resume(), target);
  6730. }
  6731. // .RemoNet.Gears gears = 10;
  6732. if (this->_internal_gears() != 0) {
  6733. target = stream->EnsureSpace(target);
  6734. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
  6735. 10, this->_internal_gears(), target);
  6736. }
  6737. // bool frontlight = 11;
  6738. if (this->_internal_frontlight() != 0) {
  6739. target = stream->EnsureSpace(target);
  6740. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(11, this->_internal_frontlight(), target);
  6741. }
  6742. // bool backlight = 12;
  6743. if (this->_internal_backlight() != 0) {
  6744. target = stream->EnsureSpace(target);
  6745. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(12, this->_internal_backlight(), target);
  6746. }
  6747. // bool wipe = 13;
  6748. if (this->_internal_wipe() != 0) {
  6749. target = stream->EnsureSpace(target);
  6750. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(13, this->_internal_wipe(), target);
  6751. }
  6752. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  6753. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  6754. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  6755. }
  6756. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CCRobotAnalog)
  6757. return target;
  6758. }
  6759. size_t CCRobotAnalog::ByteSizeLong() const {
  6760. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CCRobotAnalog)
  6761. size_t total_size = 0;
  6762. uint32_t cached_has_bits = 0;
  6763. // Prevent compiler warnings about cached_has_bits being unused
  6764. (void) cached_has_bits;
  6765. // int32 steer = 1;
  6766. if (this->_internal_steer() != 0) {
  6767. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_steer());
  6768. }
  6769. // int32 arm = 2;
  6770. if (this->_internal_arm() != 0) {
  6771. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_arm());
  6772. }
  6773. // int32 bucket = 3;
  6774. if (this->_internal_bucket() != 0) {
  6775. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_bucket());
  6776. }
  6777. // int32 throttle = 4;
  6778. if (this->_internal_throttle() != 0) {
  6779. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_throttle());
  6780. }
  6781. // int32 brake = 5;
  6782. if (this->_internal_brake() != 0) {
  6783. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_brake());
  6784. }
  6785. // .RemoNet.Gears gears = 10;
  6786. if (this->_internal_gears() != 0) {
  6787. total_size += 1 +
  6788. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_gears());
  6789. }
  6790. // bool emergency = 8;
  6791. if (this->_internal_emergency() != 0) {
  6792. total_size += 1 + 1;
  6793. }
  6794. // bool resume = 9;
  6795. if (this->_internal_resume() != 0) {
  6796. total_size += 1 + 1;
  6797. }
  6798. // bool frontlight = 11;
  6799. if (this->_internal_frontlight() != 0) {
  6800. total_size += 1 + 1;
  6801. }
  6802. // bool backlight = 12;
  6803. if (this->_internal_backlight() != 0) {
  6804. total_size += 1 + 1;
  6805. }
  6806. // bool wipe = 13;
  6807. if (this->_internal_wipe() != 0) {
  6808. total_size += 1 + 1;
  6809. }
  6810. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  6811. }
  6812. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CCRobotAnalog::_class_data_ = {
  6813. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  6814. CCRobotAnalog::MergeImpl
  6815. };
  6816. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CCRobotAnalog::GetClassData() const { return &_class_data_; }
  6817. void CCRobotAnalog::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  6818. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  6819. static_cast<CCRobotAnalog *>(to)->MergeFrom(
  6820. static_cast<const CCRobotAnalog &>(from));
  6821. }
  6822. void CCRobotAnalog::MergeFrom(const CCRobotAnalog& from) {
  6823. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CCRobotAnalog)
  6824. GOOGLE_DCHECK_NE(&from, this);
  6825. uint32_t cached_has_bits = 0;
  6826. (void) cached_has_bits;
  6827. if (from._internal_steer() != 0) {
  6828. _internal_set_steer(from._internal_steer());
  6829. }
  6830. if (from._internal_arm() != 0) {
  6831. _internal_set_arm(from._internal_arm());
  6832. }
  6833. if (from._internal_bucket() != 0) {
  6834. _internal_set_bucket(from._internal_bucket());
  6835. }
  6836. if (from._internal_throttle() != 0) {
  6837. _internal_set_throttle(from._internal_throttle());
  6838. }
  6839. if (from._internal_brake() != 0) {
  6840. _internal_set_brake(from._internal_brake());
  6841. }
  6842. if (from._internal_gears() != 0) {
  6843. _internal_set_gears(from._internal_gears());
  6844. }
  6845. if (from._internal_emergency() != 0) {
  6846. _internal_set_emergency(from._internal_emergency());
  6847. }
  6848. if (from._internal_resume() != 0) {
  6849. _internal_set_resume(from._internal_resume());
  6850. }
  6851. if (from._internal_frontlight() != 0) {
  6852. _internal_set_frontlight(from._internal_frontlight());
  6853. }
  6854. if (from._internal_backlight() != 0) {
  6855. _internal_set_backlight(from._internal_backlight());
  6856. }
  6857. if (from._internal_wipe() != 0) {
  6858. _internal_set_wipe(from._internal_wipe());
  6859. }
  6860. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  6861. }
  6862. void CCRobotAnalog::CopyFrom(const CCRobotAnalog& from) {
  6863. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CCRobotAnalog)
  6864. if (&from == this) return;
  6865. Clear();
  6866. MergeFrom(from);
  6867. }
  6868. bool CCRobotAnalog::IsInitialized() const {
  6869. return true;
  6870. }
  6871. void CCRobotAnalog::InternalSwap(CCRobotAnalog* other) {
  6872. using std::swap;
  6873. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  6874. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  6875. PROTOBUF_FIELD_OFFSET(CCRobotAnalog, wipe_)
  6876. + sizeof(CCRobotAnalog::wipe_)
  6877. - PROTOBUF_FIELD_OFFSET(CCRobotAnalog, steer_)>(
  6878. reinterpret_cast<char*>(&steer_),
  6879. reinterpret_cast<char*>(&other->steer_));
  6880. }
  6881. ::PROTOBUF_NAMESPACE_ID::Metadata CCRobotAnalog::GetMetadata() const {
  6882. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  6883. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  6884. file_level_metadata_protocol_2eproto[27]);
  6885. }
  6886. // ===================================================================
  6887. class CCBootStrapReq::_Internal {
  6888. public:
  6889. };
  6890. CCBootStrapReq::CCBootStrapReq(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  6891. bool is_message_owned)
  6892. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) {
  6893. // @@protoc_insertion_point(arena_constructor:RemoNet.CCBootStrapReq)
  6894. }
  6895. CCBootStrapReq::CCBootStrapReq(const CCBootStrapReq& from)
  6896. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() {
  6897. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  6898. // @@protoc_insertion_point(copy_constructor:RemoNet.CCBootStrapReq)
  6899. }
  6900. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CCBootStrapReq::_class_data_ = {
  6901. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl,
  6902. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl,
  6903. };
  6904. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CCBootStrapReq::GetClassData() const { return &_class_data_; }
  6905. ::PROTOBUF_NAMESPACE_ID::Metadata CCBootStrapReq::GetMetadata() const {
  6906. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  6907. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  6908. file_level_metadata_protocol_2eproto[28]);
  6909. }
  6910. // ===================================================================
  6911. class CCBooStrapRep::_Internal {
  6912. public:
  6913. };
  6914. CCBooStrapRep::CCBooStrapRep(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  6915. bool is_message_owned)
  6916. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  6917. SharedCtor();
  6918. if (!is_message_owned) {
  6919. RegisterArenaDtor(arena);
  6920. }
  6921. // @@protoc_insertion_point(arena_constructor:RemoNet.CCBooStrapRep)
  6922. }
  6923. CCBooStrapRep::CCBooStrapRep(const CCBooStrapRep& from)
  6924. : ::PROTOBUF_NAMESPACE_ID::Message() {
  6925. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  6926. ret_ = from.ret_;
  6927. // @@protoc_insertion_point(copy_constructor:RemoNet.CCBooStrapRep)
  6928. }
  6929. inline void CCBooStrapRep::SharedCtor() {
  6930. ret_ = false;
  6931. }
  6932. CCBooStrapRep::~CCBooStrapRep() {
  6933. // @@protoc_insertion_point(destructor:RemoNet.CCBooStrapRep)
  6934. if (GetArenaForAllocation() != nullptr) return;
  6935. SharedDtor();
  6936. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  6937. }
  6938. inline void CCBooStrapRep::SharedDtor() {
  6939. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  6940. }
  6941. void CCBooStrapRep::ArenaDtor(void* object) {
  6942. CCBooStrapRep* _this = reinterpret_cast< CCBooStrapRep* >(object);
  6943. (void)_this;
  6944. }
  6945. void CCBooStrapRep::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  6946. }
  6947. void CCBooStrapRep::SetCachedSize(int size) const {
  6948. _cached_size_.Set(size);
  6949. }
  6950. void CCBooStrapRep::Clear() {
  6951. // @@protoc_insertion_point(message_clear_start:RemoNet.CCBooStrapRep)
  6952. uint32_t cached_has_bits = 0;
  6953. // Prevent compiler warnings about cached_has_bits being unused
  6954. (void) cached_has_bits;
  6955. ret_ = false;
  6956. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  6957. }
  6958. const char* CCBooStrapRep::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  6959. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  6960. while (!ctx->Done(&ptr)) {
  6961. uint32_t tag;
  6962. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  6963. switch (tag >> 3) {
  6964. // bool ret = 1;
  6965. case 1:
  6966. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  6967. ret_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  6968. CHK_(ptr);
  6969. } else
  6970. goto handle_unusual;
  6971. continue;
  6972. default:
  6973. goto handle_unusual;
  6974. } // switch
  6975. handle_unusual:
  6976. if ((tag == 0) || ((tag & 7) == 4)) {
  6977. CHK_(ptr);
  6978. ctx->SetLastTag(tag);
  6979. goto message_done;
  6980. }
  6981. ptr = UnknownFieldParse(
  6982. tag,
  6983. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  6984. ptr, ctx);
  6985. CHK_(ptr != nullptr);
  6986. } // while
  6987. message_done:
  6988. return ptr;
  6989. failure:
  6990. ptr = nullptr;
  6991. goto message_done;
  6992. #undef CHK_
  6993. }
  6994. uint8_t* CCBooStrapRep::_InternalSerialize(
  6995. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  6996. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CCBooStrapRep)
  6997. uint32_t cached_has_bits = 0;
  6998. (void) cached_has_bits;
  6999. // bool ret = 1;
  7000. if (this->_internal_ret() != 0) {
  7001. target = stream->EnsureSpace(target);
  7002. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_ret(), target);
  7003. }
  7004. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  7005. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  7006. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  7007. }
  7008. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CCBooStrapRep)
  7009. return target;
  7010. }
  7011. size_t CCBooStrapRep::ByteSizeLong() const {
  7012. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CCBooStrapRep)
  7013. size_t total_size = 0;
  7014. uint32_t cached_has_bits = 0;
  7015. // Prevent compiler warnings about cached_has_bits being unused
  7016. (void) cached_has_bits;
  7017. // bool ret = 1;
  7018. if (this->_internal_ret() != 0) {
  7019. total_size += 1 + 1;
  7020. }
  7021. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  7022. }
  7023. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CCBooStrapRep::_class_data_ = {
  7024. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  7025. CCBooStrapRep::MergeImpl
  7026. };
  7027. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CCBooStrapRep::GetClassData() const { return &_class_data_; }
  7028. void CCBooStrapRep::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  7029. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  7030. static_cast<CCBooStrapRep *>(to)->MergeFrom(
  7031. static_cast<const CCBooStrapRep &>(from));
  7032. }
  7033. void CCBooStrapRep::MergeFrom(const CCBooStrapRep& from) {
  7034. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CCBooStrapRep)
  7035. GOOGLE_DCHECK_NE(&from, this);
  7036. uint32_t cached_has_bits = 0;
  7037. (void) cached_has_bits;
  7038. if (from._internal_ret() != 0) {
  7039. _internal_set_ret(from._internal_ret());
  7040. }
  7041. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  7042. }
  7043. void CCBooStrapRep::CopyFrom(const CCBooStrapRep& from) {
  7044. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CCBooStrapRep)
  7045. if (&from == this) return;
  7046. Clear();
  7047. MergeFrom(from);
  7048. }
  7049. bool CCBooStrapRep::IsInitialized() const {
  7050. return true;
  7051. }
  7052. void CCBooStrapRep::InternalSwap(CCBooStrapRep* other) {
  7053. using std::swap;
  7054. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  7055. swap(ret_, other->ret_);
  7056. }
  7057. ::PROTOBUF_NAMESPACE_ID::Metadata CCBooStrapRep::GetMetadata() const {
  7058. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  7059. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  7060. file_level_metadata_protocol_2eproto[29]);
  7061. }
  7062. // ===================================================================
  7063. class CCStartupReq::_Internal {
  7064. public:
  7065. };
  7066. CCStartupReq::CCStartupReq(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  7067. bool is_message_owned)
  7068. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) {
  7069. // @@protoc_insertion_point(arena_constructor:RemoNet.CCStartupReq)
  7070. }
  7071. CCStartupReq::CCStartupReq(const CCStartupReq& from)
  7072. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() {
  7073. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  7074. // @@protoc_insertion_point(copy_constructor:RemoNet.CCStartupReq)
  7075. }
  7076. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CCStartupReq::_class_data_ = {
  7077. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl,
  7078. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl,
  7079. };
  7080. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CCStartupReq::GetClassData() const { return &_class_data_; }
  7081. ::PROTOBUF_NAMESPACE_ID::Metadata CCStartupReq::GetMetadata() const {
  7082. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  7083. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  7084. file_level_metadata_protocol_2eproto[30]);
  7085. }
  7086. // ===================================================================
  7087. class CCStartupRep::_Internal {
  7088. public:
  7089. };
  7090. CCStartupRep::CCStartupRep(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  7091. bool is_message_owned)
  7092. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  7093. SharedCtor();
  7094. if (!is_message_owned) {
  7095. RegisterArenaDtor(arena);
  7096. }
  7097. // @@protoc_insertion_point(arena_constructor:RemoNet.CCStartupRep)
  7098. }
  7099. CCStartupRep::CCStartupRep(const CCStartupRep& from)
  7100. : ::PROTOBUF_NAMESPACE_ID::Message() {
  7101. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  7102. ret_ = from.ret_;
  7103. // @@protoc_insertion_point(copy_constructor:RemoNet.CCStartupRep)
  7104. }
  7105. inline void CCStartupRep::SharedCtor() {
  7106. ret_ = false;
  7107. }
  7108. CCStartupRep::~CCStartupRep() {
  7109. // @@protoc_insertion_point(destructor:RemoNet.CCStartupRep)
  7110. if (GetArenaForAllocation() != nullptr) return;
  7111. SharedDtor();
  7112. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  7113. }
  7114. inline void CCStartupRep::SharedDtor() {
  7115. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  7116. }
  7117. void CCStartupRep::ArenaDtor(void* object) {
  7118. CCStartupRep* _this = reinterpret_cast< CCStartupRep* >(object);
  7119. (void)_this;
  7120. }
  7121. void CCStartupRep::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  7122. }
  7123. void CCStartupRep::SetCachedSize(int size) const {
  7124. _cached_size_.Set(size);
  7125. }
  7126. void CCStartupRep::Clear() {
  7127. // @@protoc_insertion_point(message_clear_start:RemoNet.CCStartupRep)
  7128. uint32_t cached_has_bits = 0;
  7129. // Prevent compiler warnings about cached_has_bits being unused
  7130. (void) cached_has_bits;
  7131. ret_ = false;
  7132. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  7133. }
  7134. const char* CCStartupRep::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  7135. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  7136. while (!ctx->Done(&ptr)) {
  7137. uint32_t tag;
  7138. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  7139. switch (tag >> 3) {
  7140. // bool ret = 1;
  7141. case 1:
  7142. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  7143. ret_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  7144. CHK_(ptr);
  7145. } else
  7146. goto handle_unusual;
  7147. continue;
  7148. default:
  7149. goto handle_unusual;
  7150. } // switch
  7151. handle_unusual:
  7152. if ((tag == 0) || ((tag & 7) == 4)) {
  7153. CHK_(ptr);
  7154. ctx->SetLastTag(tag);
  7155. goto message_done;
  7156. }
  7157. ptr = UnknownFieldParse(
  7158. tag,
  7159. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  7160. ptr, ctx);
  7161. CHK_(ptr != nullptr);
  7162. } // while
  7163. message_done:
  7164. return ptr;
  7165. failure:
  7166. ptr = nullptr;
  7167. goto message_done;
  7168. #undef CHK_
  7169. }
  7170. uint8_t* CCStartupRep::_InternalSerialize(
  7171. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  7172. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CCStartupRep)
  7173. uint32_t cached_has_bits = 0;
  7174. (void) cached_has_bits;
  7175. // bool ret = 1;
  7176. if (this->_internal_ret() != 0) {
  7177. target = stream->EnsureSpace(target);
  7178. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_ret(), target);
  7179. }
  7180. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  7181. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  7182. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  7183. }
  7184. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CCStartupRep)
  7185. return target;
  7186. }
  7187. size_t CCStartupRep::ByteSizeLong() const {
  7188. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CCStartupRep)
  7189. size_t total_size = 0;
  7190. uint32_t cached_has_bits = 0;
  7191. // Prevent compiler warnings about cached_has_bits being unused
  7192. (void) cached_has_bits;
  7193. // bool ret = 1;
  7194. if (this->_internal_ret() != 0) {
  7195. total_size += 1 + 1;
  7196. }
  7197. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  7198. }
  7199. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CCStartupRep::_class_data_ = {
  7200. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  7201. CCStartupRep::MergeImpl
  7202. };
  7203. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CCStartupRep::GetClassData() const { return &_class_data_; }
  7204. void CCStartupRep::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  7205. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  7206. static_cast<CCStartupRep *>(to)->MergeFrom(
  7207. static_cast<const CCStartupRep &>(from));
  7208. }
  7209. void CCStartupRep::MergeFrom(const CCStartupRep& from) {
  7210. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CCStartupRep)
  7211. GOOGLE_DCHECK_NE(&from, this);
  7212. uint32_t cached_has_bits = 0;
  7213. (void) cached_has_bits;
  7214. if (from._internal_ret() != 0) {
  7215. _internal_set_ret(from._internal_ret());
  7216. }
  7217. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  7218. }
  7219. void CCStartupRep::CopyFrom(const CCStartupRep& from) {
  7220. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CCStartupRep)
  7221. if (&from == this) return;
  7222. Clear();
  7223. MergeFrom(from);
  7224. }
  7225. bool CCStartupRep::IsInitialized() const {
  7226. return true;
  7227. }
  7228. void CCStartupRep::InternalSwap(CCStartupRep* other) {
  7229. using std::swap;
  7230. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  7231. swap(ret_, other->ret_);
  7232. }
  7233. ::PROTOBUF_NAMESPACE_ID::Metadata CCStartupRep::GetMetadata() const {
  7234. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  7235. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  7236. file_level_metadata_protocol_2eproto[31]);
  7237. }
  7238. // ===================================================================
  7239. class CCSwitch::_Internal {
  7240. public:
  7241. };
  7242. CCSwitch::CCSwitch(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  7243. bool is_message_owned)
  7244. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  7245. SharedCtor();
  7246. if (!is_message_owned) {
  7247. RegisterArenaDtor(arena);
  7248. }
  7249. // @@protoc_insertion_point(arena_constructor:RemoNet.CCSwitch)
  7250. }
  7251. CCSwitch::CCSwitch(const CCSwitch& from)
  7252. : ::PROTOBUF_NAMESPACE_ID::Message() {
  7253. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  7254. front_ = from.front_;
  7255. // @@protoc_insertion_point(copy_constructor:RemoNet.CCSwitch)
  7256. }
  7257. inline void CCSwitch::SharedCtor() {
  7258. front_ = false;
  7259. }
  7260. CCSwitch::~CCSwitch() {
  7261. // @@protoc_insertion_point(destructor:RemoNet.CCSwitch)
  7262. if (GetArenaForAllocation() != nullptr) return;
  7263. SharedDtor();
  7264. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  7265. }
  7266. inline void CCSwitch::SharedDtor() {
  7267. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  7268. }
  7269. void CCSwitch::ArenaDtor(void* object) {
  7270. CCSwitch* _this = reinterpret_cast< CCSwitch* >(object);
  7271. (void)_this;
  7272. }
  7273. void CCSwitch::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  7274. }
  7275. void CCSwitch::SetCachedSize(int size) const {
  7276. _cached_size_.Set(size);
  7277. }
  7278. void CCSwitch::Clear() {
  7279. // @@protoc_insertion_point(message_clear_start:RemoNet.CCSwitch)
  7280. uint32_t cached_has_bits = 0;
  7281. // Prevent compiler warnings about cached_has_bits being unused
  7282. (void) cached_has_bits;
  7283. front_ = false;
  7284. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  7285. }
  7286. const char* CCSwitch::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  7287. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  7288. while (!ctx->Done(&ptr)) {
  7289. uint32_t tag;
  7290. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  7291. switch (tag >> 3) {
  7292. // bool front = 1;
  7293. case 1:
  7294. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  7295. front_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  7296. CHK_(ptr);
  7297. } else
  7298. goto handle_unusual;
  7299. continue;
  7300. default:
  7301. goto handle_unusual;
  7302. } // switch
  7303. handle_unusual:
  7304. if ((tag == 0) || ((tag & 7) == 4)) {
  7305. CHK_(ptr);
  7306. ctx->SetLastTag(tag);
  7307. goto message_done;
  7308. }
  7309. ptr = UnknownFieldParse(
  7310. tag,
  7311. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  7312. ptr, ctx);
  7313. CHK_(ptr != nullptr);
  7314. } // while
  7315. message_done:
  7316. return ptr;
  7317. failure:
  7318. ptr = nullptr;
  7319. goto message_done;
  7320. #undef CHK_
  7321. }
  7322. uint8_t* CCSwitch::_InternalSerialize(
  7323. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  7324. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CCSwitch)
  7325. uint32_t cached_has_bits = 0;
  7326. (void) cached_has_bits;
  7327. // bool front = 1;
  7328. if (this->_internal_front() != 0) {
  7329. target = stream->EnsureSpace(target);
  7330. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_front(), target);
  7331. }
  7332. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  7333. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  7334. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  7335. }
  7336. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CCSwitch)
  7337. return target;
  7338. }
  7339. size_t CCSwitch::ByteSizeLong() const {
  7340. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CCSwitch)
  7341. size_t total_size = 0;
  7342. uint32_t cached_has_bits = 0;
  7343. // Prevent compiler warnings about cached_has_bits being unused
  7344. (void) cached_has_bits;
  7345. // bool front = 1;
  7346. if (this->_internal_front() != 0) {
  7347. total_size += 1 + 1;
  7348. }
  7349. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  7350. }
  7351. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CCSwitch::_class_data_ = {
  7352. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  7353. CCSwitch::MergeImpl
  7354. };
  7355. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CCSwitch::GetClassData() const { return &_class_data_; }
  7356. void CCSwitch::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  7357. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  7358. static_cast<CCSwitch *>(to)->MergeFrom(
  7359. static_cast<const CCSwitch &>(from));
  7360. }
  7361. void CCSwitch::MergeFrom(const CCSwitch& from) {
  7362. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CCSwitch)
  7363. GOOGLE_DCHECK_NE(&from, this);
  7364. uint32_t cached_has_bits = 0;
  7365. (void) cached_has_bits;
  7366. if (from._internal_front() != 0) {
  7367. _internal_set_front(from._internal_front());
  7368. }
  7369. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  7370. }
  7371. void CCSwitch::CopyFrom(const CCSwitch& from) {
  7372. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CCSwitch)
  7373. if (&from == this) return;
  7374. Clear();
  7375. MergeFrom(from);
  7376. }
  7377. bool CCSwitch::IsInitialized() const {
  7378. return true;
  7379. }
  7380. void CCSwitch::InternalSwap(CCSwitch* other) {
  7381. using std::swap;
  7382. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  7383. swap(front_, other->front_);
  7384. }
  7385. ::PROTOBUF_NAMESPACE_ID::Metadata CCSwitch::GetMetadata() const {
  7386. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  7387. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  7388. file_level_metadata_protocol_2eproto[32]);
  7389. }
  7390. // ===================================================================
  7391. class LidarPoint::_Internal {
  7392. public:
  7393. using HasBits = decltype(std::declval<LidarPoint>()._has_bits_);
  7394. static void set_has_timestamp(HasBits* has_bits) {
  7395. (*has_bits)[0] |= 2u;
  7396. }
  7397. static void set_has_seq(HasBits* has_bits) {
  7398. (*has_bits)[0] |= 4u;
  7399. }
  7400. static void set_has_frame_id(HasBits* has_bits) {
  7401. (*has_bits)[0] |= 1u;
  7402. }
  7403. static void set_has_height(HasBits* has_bits) {
  7404. (*has_bits)[0] |= 8u;
  7405. }
  7406. static void set_has_width(HasBits* has_bits) {
  7407. (*has_bits)[0] |= 16u;
  7408. }
  7409. static void set_has_is_dense(HasBits* has_bits) {
  7410. (*has_bits)[0] |= 32u;
  7411. }
  7412. static void set_has_is_left(HasBits* has_bits) {
  7413. (*has_bits)[0] |= 64u;
  7414. }
  7415. };
  7416. LidarPoint::LidarPoint(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  7417. bool is_message_owned)
  7418. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
  7419. data_(arena) {
  7420. SharedCtor();
  7421. if (!is_message_owned) {
  7422. RegisterArenaDtor(arena);
  7423. }
  7424. // @@protoc_insertion_point(arena_constructor:RemoNet.LidarPoint)
  7425. }
  7426. LidarPoint::LidarPoint(const LidarPoint& from)
  7427. : ::PROTOBUF_NAMESPACE_ID::Message(),
  7428. _has_bits_(from._has_bits_),
  7429. data_(from.data_) {
  7430. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  7431. frame_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7432. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  7433. frame_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  7434. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  7435. if (from._internal_has_frame_id()) {
  7436. frame_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_frame_id(),
  7437. GetArenaForAllocation());
  7438. }
  7439. ::memcpy(&timestamp_, &from.timestamp_,
  7440. static_cast<size_t>(reinterpret_cast<char*>(&is_left_) -
  7441. reinterpret_cast<char*>(&timestamp_)) + sizeof(is_left_));
  7442. // @@protoc_insertion_point(copy_constructor:RemoNet.LidarPoint)
  7443. }
  7444. inline void LidarPoint::SharedCtor() {
  7445. frame_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7446. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  7447. frame_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  7448. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  7449. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  7450. reinterpret_cast<char*>(&timestamp_) - reinterpret_cast<char*>(this)),
  7451. 0, static_cast<size_t>(reinterpret_cast<char*>(&is_left_) -
  7452. reinterpret_cast<char*>(&timestamp_)) + sizeof(is_left_));
  7453. }
  7454. LidarPoint::~LidarPoint() {
  7455. // @@protoc_insertion_point(destructor:RemoNet.LidarPoint)
  7456. if (GetArenaForAllocation() != nullptr) return;
  7457. SharedDtor();
  7458. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  7459. }
  7460. inline void LidarPoint::SharedDtor() {
  7461. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  7462. frame_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7463. }
  7464. void LidarPoint::ArenaDtor(void* object) {
  7465. LidarPoint* _this = reinterpret_cast< LidarPoint* >(object);
  7466. (void)_this;
  7467. }
  7468. void LidarPoint::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  7469. }
  7470. void LidarPoint::SetCachedSize(int size) const {
  7471. _cached_size_.Set(size);
  7472. }
  7473. void LidarPoint::Clear() {
  7474. // @@protoc_insertion_point(message_clear_start:RemoNet.LidarPoint)
  7475. uint32_t cached_has_bits = 0;
  7476. // Prevent compiler warnings about cached_has_bits being unused
  7477. (void) cached_has_bits;
  7478. data_.Clear();
  7479. cached_has_bits = _has_bits_[0];
  7480. if (cached_has_bits & 0x00000001u) {
  7481. frame_id_.ClearNonDefaultToEmpty();
  7482. }
  7483. if (cached_has_bits & 0x0000007eu) {
  7484. ::memset(&timestamp_, 0, static_cast<size_t>(
  7485. reinterpret_cast<char*>(&is_left_) -
  7486. reinterpret_cast<char*>(&timestamp_)) + sizeof(is_left_));
  7487. }
  7488. _has_bits_.Clear();
  7489. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  7490. }
  7491. const char* LidarPoint::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  7492. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  7493. _Internal::HasBits has_bits{};
  7494. while (!ctx->Done(&ptr)) {
  7495. uint32_t tag;
  7496. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  7497. switch (tag >> 3) {
  7498. // optional double timestamp = 1;
  7499. case 1:
  7500. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 9)) {
  7501. _Internal::set_has_timestamp(&has_bits);
  7502. timestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  7503. ptr += sizeof(double);
  7504. } else
  7505. goto handle_unusual;
  7506. continue;
  7507. // optional uint32 seq = 2;
  7508. case 2:
  7509. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  7510. _Internal::set_has_seq(&has_bits);
  7511. seq_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  7512. CHK_(ptr);
  7513. } else
  7514. goto handle_unusual;
  7515. continue;
  7516. // optional string frame_id = 3;
  7517. case 3:
  7518. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
  7519. auto str = _internal_mutable_frame_id();
  7520. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  7521. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.LidarPoint.frame_id"));
  7522. CHK_(ptr);
  7523. } else
  7524. goto handle_unusual;
  7525. continue;
  7526. // optional uint32 height = 4;
  7527. case 4:
  7528. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
  7529. _Internal::set_has_height(&has_bits);
  7530. height_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  7531. CHK_(ptr);
  7532. } else
  7533. goto handle_unusual;
  7534. continue;
  7535. // optional uint32 width = 5;
  7536. case 5:
  7537. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
  7538. _Internal::set_has_width(&has_bits);
  7539. width_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  7540. CHK_(ptr);
  7541. } else
  7542. goto handle_unusual;
  7543. continue;
  7544. // optional bool is_dense = 6;
  7545. case 6:
  7546. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 48)) {
  7547. _Internal::set_has_is_dense(&has_bits);
  7548. is_dense_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  7549. CHK_(ptr);
  7550. } else
  7551. goto handle_unusual;
  7552. continue;
  7553. // optional bool is_left = 7;
  7554. case 7:
  7555. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56)) {
  7556. _Internal::set_has_is_left(&has_bits);
  7557. is_left_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  7558. CHK_(ptr);
  7559. } else
  7560. goto handle_unusual;
  7561. continue;
  7562. // repeated float data = 8;
  7563. case 8:
  7564. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 66)) {
  7565. ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedFloatParser(_internal_mutable_data(), ptr, ctx);
  7566. CHK_(ptr);
  7567. } else if (static_cast<uint8_t>(tag) == 69) {
  7568. _internal_add_data(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr));
  7569. ptr += sizeof(float);
  7570. } else
  7571. goto handle_unusual;
  7572. continue;
  7573. default:
  7574. goto handle_unusual;
  7575. } // switch
  7576. handle_unusual:
  7577. if ((tag == 0) || ((tag & 7) == 4)) {
  7578. CHK_(ptr);
  7579. ctx->SetLastTag(tag);
  7580. goto message_done;
  7581. }
  7582. ptr = UnknownFieldParse(
  7583. tag,
  7584. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  7585. ptr, ctx);
  7586. CHK_(ptr != nullptr);
  7587. } // while
  7588. message_done:
  7589. _has_bits_.Or(has_bits);
  7590. return ptr;
  7591. failure:
  7592. ptr = nullptr;
  7593. goto message_done;
  7594. #undef CHK_
  7595. }
  7596. uint8_t* LidarPoint::_InternalSerialize(
  7597. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  7598. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.LidarPoint)
  7599. uint32_t cached_has_bits = 0;
  7600. (void) cached_has_bits;
  7601. // optional double timestamp = 1;
  7602. if (_internal_has_timestamp()) {
  7603. target = stream->EnsureSpace(target);
  7604. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(1, this->_internal_timestamp(), target);
  7605. }
  7606. // optional uint32 seq = 2;
  7607. if (_internal_has_seq()) {
  7608. target = stream->EnsureSpace(target);
  7609. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_seq(), target);
  7610. }
  7611. // optional string frame_id = 3;
  7612. if (_internal_has_frame_id()) {
  7613. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  7614. this->_internal_frame_id().data(), static_cast<int>(this->_internal_frame_id().length()),
  7615. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  7616. "RemoNet.LidarPoint.frame_id");
  7617. target = stream->WriteStringMaybeAliased(
  7618. 3, this->_internal_frame_id(), target);
  7619. }
  7620. // optional uint32 height = 4;
  7621. if (_internal_has_height()) {
  7622. target = stream->EnsureSpace(target);
  7623. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(4, this->_internal_height(), target);
  7624. }
  7625. // optional uint32 width = 5;
  7626. if (_internal_has_width()) {
  7627. target = stream->EnsureSpace(target);
  7628. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(5, this->_internal_width(), target);
  7629. }
  7630. // optional bool is_dense = 6;
  7631. if (_internal_has_is_dense()) {
  7632. target = stream->EnsureSpace(target);
  7633. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(6, this->_internal_is_dense(), target);
  7634. }
  7635. // optional bool is_left = 7;
  7636. if (_internal_has_is_left()) {
  7637. target = stream->EnsureSpace(target);
  7638. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(7, this->_internal_is_left(), target);
  7639. }
  7640. // repeated float data = 8;
  7641. if (this->_internal_data_size() > 0) {
  7642. target = stream->WriteFixedPacked(8, _internal_data(), target);
  7643. }
  7644. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  7645. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  7646. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  7647. }
  7648. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.LidarPoint)
  7649. return target;
  7650. }
  7651. size_t LidarPoint::ByteSizeLong() const {
  7652. // @@protoc_insertion_point(message_byte_size_start:RemoNet.LidarPoint)
  7653. size_t total_size = 0;
  7654. uint32_t cached_has_bits = 0;
  7655. // Prevent compiler warnings about cached_has_bits being unused
  7656. (void) cached_has_bits;
  7657. // repeated float data = 8;
  7658. {
  7659. unsigned int count = static_cast<unsigned int>(this->_internal_data_size());
  7660. size_t data_size = 4UL * count;
  7661. if (data_size > 0) {
  7662. total_size += 1 +
  7663. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  7664. static_cast<int32_t>(data_size));
  7665. }
  7666. total_size += data_size;
  7667. }
  7668. cached_has_bits = _has_bits_[0];
  7669. if (cached_has_bits & 0x0000007fu) {
  7670. // optional string frame_id = 3;
  7671. if (cached_has_bits & 0x00000001u) {
  7672. total_size += 1 +
  7673. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  7674. this->_internal_frame_id());
  7675. }
  7676. // optional double timestamp = 1;
  7677. if (cached_has_bits & 0x00000002u) {
  7678. total_size += 1 + 8;
  7679. }
  7680. // optional uint32 seq = 2;
  7681. if (cached_has_bits & 0x00000004u) {
  7682. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_seq());
  7683. }
  7684. // optional uint32 height = 4;
  7685. if (cached_has_bits & 0x00000008u) {
  7686. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_height());
  7687. }
  7688. // optional uint32 width = 5;
  7689. if (cached_has_bits & 0x00000010u) {
  7690. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_width());
  7691. }
  7692. // optional bool is_dense = 6;
  7693. if (cached_has_bits & 0x00000020u) {
  7694. total_size += 1 + 1;
  7695. }
  7696. // optional bool is_left = 7;
  7697. if (cached_has_bits & 0x00000040u) {
  7698. total_size += 1 + 1;
  7699. }
  7700. }
  7701. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  7702. }
  7703. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData LidarPoint::_class_data_ = {
  7704. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  7705. LidarPoint::MergeImpl
  7706. };
  7707. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*LidarPoint::GetClassData() const { return &_class_data_; }
  7708. void LidarPoint::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  7709. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  7710. static_cast<LidarPoint *>(to)->MergeFrom(
  7711. static_cast<const LidarPoint &>(from));
  7712. }
  7713. void LidarPoint::MergeFrom(const LidarPoint& from) {
  7714. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.LidarPoint)
  7715. GOOGLE_DCHECK_NE(&from, this);
  7716. uint32_t cached_has_bits = 0;
  7717. (void) cached_has_bits;
  7718. data_.MergeFrom(from.data_);
  7719. cached_has_bits = from._has_bits_[0];
  7720. if (cached_has_bits & 0x0000007fu) {
  7721. if (cached_has_bits & 0x00000001u) {
  7722. _internal_set_frame_id(from._internal_frame_id());
  7723. }
  7724. if (cached_has_bits & 0x00000002u) {
  7725. timestamp_ = from.timestamp_;
  7726. }
  7727. if (cached_has_bits & 0x00000004u) {
  7728. seq_ = from.seq_;
  7729. }
  7730. if (cached_has_bits & 0x00000008u) {
  7731. height_ = from.height_;
  7732. }
  7733. if (cached_has_bits & 0x00000010u) {
  7734. width_ = from.width_;
  7735. }
  7736. if (cached_has_bits & 0x00000020u) {
  7737. is_dense_ = from.is_dense_;
  7738. }
  7739. if (cached_has_bits & 0x00000040u) {
  7740. is_left_ = from.is_left_;
  7741. }
  7742. _has_bits_[0] |= cached_has_bits;
  7743. }
  7744. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  7745. }
  7746. void LidarPoint::CopyFrom(const LidarPoint& from) {
  7747. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.LidarPoint)
  7748. if (&from == this) return;
  7749. Clear();
  7750. MergeFrom(from);
  7751. }
  7752. bool LidarPoint::IsInitialized() const {
  7753. return true;
  7754. }
  7755. void LidarPoint::InternalSwap(LidarPoint* other) {
  7756. using std::swap;
  7757. auto* lhs_arena = GetArenaForAllocation();
  7758. auto* rhs_arena = other->GetArenaForAllocation();
  7759. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  7760. swap(_has_bits_[0], other->_has_bits_[0]);
  7761. data_.InternalSwap(&other->data_);
  7762. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  7763. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  7764. &frame_id_, lhs_arena,
  7765. &other->frame_id_, rhs_arena
  7766. );
  7767. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  7768. PROTOBUF_FIELD_OFFSET(LidarPoint, is_left_)
  7769. + sizeof(LidarPoint::is_left_)
  7770. - PROTOBUF_FIELD_OFFSET(LidarPoint, timestamp_)>(
  7771. reinterpret_cast<char*>(&timestamp_),
  7772. reinterpret_cast<char*>(&other->timestamp_));
  7773. }
  7774. ::PROTOBUF_NAMESPACE_ID::Metadata LidarPoint::GetMetadata() const {
  7775. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  7776. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  7777. file_level_metadata_protocol_2eproto[33]);
  7778. }
  7779. // ===================================================================
  7780. class SensorStop::_Internal {
  7781. public:
  7782. };
  7783. SensorStop::SensorStop(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  7784. bool is_message_owned)
  7785. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) {
  7786. // @@protoc_insertion_point(arena_constructor:RemoNet.SensorStop)
  7787. }
  7788. SensorStop::SensorStop(const SensorStop& from)
  7789. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() {
  7790. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  7791. // @@protoc_insertion_point(copy_constructor:RemoNet.SensorStop)
  7792. }
  7793. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SensorStop::_class_data_ = {
  7794. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl,
  7795. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl,
  7796. };
  7797. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SensorStop::GetClassData() const { return &_class_data_; }
  7798. ::PROTOBUF_NAMESPACE_ID::Metadata SensorStop::GetMetadata() const {
  7799. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  7800. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  7801. file_level_metadata_protocol_2eproto[34]);
  7802. }
  7803. // ===================================================================
  7804. class StopAck::_Internal {
  7805. public:
  7806. };
  7807. StopAck::StopAck(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  7808. bool is_message_owned)
  7809. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) {
  7810. // @@protoc_insertion_point(arena_constructor:RemoNet.StopAck)
  7811. }
  7812. StopAck::StopAck(const StopAck& from)
  7813. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() {
  7814. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  7815. // @@protoc_insertion_point(copy_constructor:RemoNet.StopAck)
  7816. }
  7817. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StopAck::_class_data_ = {
  7818. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl,
  7819. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl,
  7820. };
  7821. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StopAck::GetClassData() const { return &_class_data_; }
  7822. ::PROTOBUF_NAMESPACE_ID::Metadata StopAck::GetMetadata() const {
  7823. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  7824. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  7825. file_level_metadata_protocol_2eproto[35]);
  7826. }
  7827. // ===================================================================
  7828. class CCManipulation::_Internal {
  7829. public:
  7830. };
  7831. CCManipulation::CCManipulation(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  7832. bool is_message_owned)
  7833. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  7834. SharedCtor();
  7835. if (!is_message_owned) {
  7836. RegisterArenaDtor(arena);
  7837. }
  7838. // @@protoc_insertion_point(arena_constructor:RemoNet.CCManipulation)
  7839. }
  7840. CCManipulation::CCManipulation(const CCManipulation& from)
  7841. : ::PROTOBUF_NAMESPACE_ID::Message() {
  7842. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  7843. sensor_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7844. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  7845. sensor_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  7846. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  7847. if (!from._internal_sensor().empty()) {
  7848. sensor_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_sensor(),
  7849. GetArenaForAllocation());
  7850. }
  7851. car_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7852. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  7853. car_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  7854. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  7855. if (!from._internal_car().empty()) {
  7856. car_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_car(),
  7857. GetArenaForAllocation());
  7858. }
  7859. // @@protoc_insertion_point(copy_constructor:RemoNet.CCManipulation)
  7860. }
  7861. inline void CCManipulation::SharedCtor() {
  7862. sensor_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7863. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  7864. sensor_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  7865. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  7866. car_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7867. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  7868. car_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  7869. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  7870. }
  7871. CCManipulation::~CCManipulation() {
  7872. // @@protoc_insertion_point(destructor:RemoNet.CCManipulation)
  7873. if (GetArenaForAllocation() != nullptr) return;
  7874. SharedDtor();
  7875. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  7876. }
  7877. inline void CCManipulation::SharedDtor() {
  7878. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  7879. sensor_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7880. car_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7881. }
  7882. void CCManipulation::ArenaDtor(void* object) {
  7883. CCManipulation* _this = reinterpret_cast< CCManipulation* >(object);
  7884. (void)_this;
  7885. }
  7886. void CCManipulation::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  7887. }
  7888. void CCManipulation::SetCachedSize(int size) const {
  7889. _cached_size_.Set(size);
  7890. }
  7891. void CCManipulation::Clear() {
  7892. // @@protoc_insertion_point(message_clear_start:RemoNet.CCManipulation)
  7893. uint32_t cached_has_bits = 0;
  7894. // Prevent compiler warnings about cached_has_bits being unused
  7895. (void) cached_has_bits;
  7896. sensor_.ClearToEmpty();
  7897. car_.ClearToEmpty();
  7898. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  7899. }
  7900. const char* CCManipulation::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  7901. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  7902. while (!ctx->Done(&ptr)) {
  7903. uint32_t tag;
  7904. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  7905. switch (tag >> 3) {
  7906. // bytes sensor = 1;
  7907. case 1:
  7908. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
  7909. auto str = _internal_mutable_sensor();
  7910. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  7911. CHK_(ptr);
  7912. } else
  7913. goto handle_unusual;
  7914. continue;
  7915. // bytes car = 2;
  7916. case 2:
  7917. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
  7918. auto str = _internal_mutable_car();
  7919. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  7920. CHK_(ptr);
  7921. } else
  7922. goto handle_unusual;
  7923. continue;
  7924. default:
  7925. goto handle_unusual;
  7926. } // switch
  7927. handle_unusual:
  7928. if ((tag == 0) || ((tag & 7) == 4)) {
  7929. CHK_(ptr);
  7930. ctx->SetLastTag(tag);
  7931. goto message_done;
  7932. }
  7933. ptr = UnknownFieldParse(
  7934. tag,
  7935. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  7936. ptr, ctx);
  7937. CHK_(ptr != nullptr);
  7938. } // while
  7939. message_done:
  7940. return ptr;
  7941. failure:
  7942. ptr = nullptr;
  7943. goto message_done;
  7944. #undef CHK_
  7945. }
  7946. uint8_t* CCManipulation::_InternalSerialize(
  7947. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  7948. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CCManipulation)
  7949. uint32_t cached_has_bits = 0;
  7950. (void) cached_has_bits;
  7951. // bytes sensor = 1;
  7952. if (!this->_internal_sensor().empty()) {
  7953. target = stream->WriteBytesMaybeAliased(
  7954. 1, this->_internal_sensor(), target);
  7955. }
  7956. // bytes car = 2;
  7957. if (!this->_internal_car().empty()) {
  7958. target = stream->WriteBytesMaybeAliased(
  7959. 2, this->_internal_car(), target);
  7960. }
  7961. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  7962. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  7963. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  7964. }
  7965. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CCManipulation)
  7966. return target;
  7967. }
  7968. size_t CCManipulation::ByteSizeLong() const {
  7969. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CCManipulation)
  7970. size_t total_size = 0;
  7971. uint32_t cached_has_bits = 0;
  7972. // Prevent compiler warnings about cached_has_bits being unused
  7973. (void) cached_has_bits;
  7974. // bytes sensor = 1;
  7975. if (!this->_internal_sensor().empty()) {
  7976. total_size += 1 +
  7977. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
  7978. this->_internal_sensor());
  7979. }
  7980. // bytes car = 2;
  7981. if (!this->_internal_car().empty()) {
  7982. total_size += 1 +
  7983. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
  7984. this->_internal_car());
  7985. }
  7986. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  7987. }
  7988. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CCManipulation::_class_data_ = {
  7989. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  7990. CCManipulation::MergeImpl
  7991. };
  7992. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CCManipulation::GetClassData() const { return &_class_data_; }
  7993. void CCManipulation::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  7994. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  7995. static_cast<CCManipulation *>(to)->MergeFrom(
  7996. static_cast<const CCManipulation &>(from));
  7997. }
  7998. void CCManipulation::MergeFrom(const CCManipulation& from) {
  7999. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CCManipulation)
  8000. GOOGLE_DCHECK_NE(&from, this);
  8001. uint32_t cached_has_bits = 0;
  8002. (void) cached_has_bits;
  8003. if (!from._internal_sensor().empty()) {
  8004. _internal_set_sensor(from._internal_sensor());
  8005. }
  8006. if (!from._internal_car().empty()) {
  8007. _internal_set_car(from._internal_car());
  8008. }
  8009. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  8010. }
  8011. void CCManipulation::CopyFrom(const CCManipulation& from) {
  8012. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CCManipulation)
  8013. if (&from == this) return;
  8014. Clear();
  8015. MergeFrom(from);
  8016. }
  8017. bool CCManipulation::IsInitialized() const {
  8018. return true;
  8019. }
  8020. void CCManipulation::InternalSwap(CCManipulation* other) {
  8021. using std::swap;
  8022. auto* lhs_arena = GetArenaForAllocation();
  8023. auto* rhs_arena = other->GetArenaForAllocation();
  8024. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  8025. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  8026. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  8027. &sensor_, lhs_arena,
  8028. &other->sensor_, rhs_arena
  8029. );
  8030. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  8031. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  8032. &car_, lhs_arena,
  8033. &other->car_, rhs_arena
  8034. );
  8035. }
  8036. ::PROTOBUF_NAMESPACE_ID::Metadata CCManipulation::GetMetadata() const {
  8037. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  8038. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  8039. file_level_metadata_protocol_2eproto[36]);
  8040. }
  8041. // ===================================================================
  8042. class SCAddRobot::_Internal {
  8043. public:
  8044. static const ::RemoNet::Robot& robot(const SCAddRobot* msg);
  8045. };
  8046. const ::RemoNet::Robot&
  8047. SCAddRobot::_Internal::robot(const SCAddRobot* msg) {
  8048. return *msg->robot_;
  8049. }
  8050. SCAddRobot::SCAddRobot(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  8051. bool is_message_owned)
  8052. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  8053. SharedCtor();
  8054. if (!is_message_owned) {
  8055. RegisterArenaDtor(arena);
  8056. }
  8057. // @@protoc_insertion_point(arena_constructor:RemoNet.SCAddRobot)
  8058. }
  8059. SCAddRobot::SCAddRobot(const SCAddRobot& from)
  8060. : ::PROTOBUF_NAMESPACE_ID::Message() {
  8061. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  8062. if (from._internal_has_robot()) {
  8063. robot_ = new ::RemoNet::Robot(*from.robot_);
  8064. } else {
  8065. robot_ = nullptr;
  8066. }
  8067. // @@protoc_insertion_point(copy_constructor:RemoNet.SCAddRobot)
  8068. }
  8069. inline void SCAddRobot::SharedCtor() {
  8070. robot_ = nullptr;
  8071. }
  8072. SCAddRobot::~SCAddRobot() {
  8073. // @@protoc_insertion_point(destructor:RemoNet.SCAddRobot)
  8074. if (GetArenaForAllocation() != nullptr) return;
  8075. SharedDtor();
  8076. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  8077. }
  8078. inline void SCAddRobot::SharedDtor() {
  8079. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  8080. if (this != internal_default_instance()) delete robot_;
  8081. }
  8082. void SCAddRobot::ArenaDtor(void* object) {
  8083. SCAddRobot* _this = reinterpret_cast< SCAddRobot* >(object);
  8084. (void)_this;
  8085. }
  8086. void SCAddRobot::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  8087. }
  8088. void SCAddRobot::SetCachedSize(int size) const {
  8089. _cached_size_.Set(size);
  8090. }
  8091. void SCAddRobot::Clear() {
  8092. // @@protoc_insertion_point(message_clear_start:RemoNet.SCAddRobot)
  8093. uint32_t cached_has_bits = 0;
  8094. // Prevent compiler warnings about cached_has_bits being unused
  8095. (void) cached_has_bits;
  8096. if (GetArenaForAllocation() == nullptr && robot_ != nullptr) {
  8097. delete robot_;
  8098. }
  8099. robot_ = nullptr;
  8100. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  8101. }
  8102. const char* SCAddRobot::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  8103. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  8104. while (!ctx->Done(&ptr)) {
  8105. uint32_t tag;
  8106. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  8107. switch (tag >> 3) {
  8108. // .RemoNet.Robot robot = 1;
  8109. case 1:
  8110. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
  8111. ptr = ctx->ParseMessage(_internal_mutable_robot(), ptr);
  8112. CHK_(ptr);
  8113. } else
  8114. goto handle_unusual;
  8115. continue;
  8116. default:
  8117. goto handle_unusual;
  8118. } // switch
  8119. handle_unusual:
  8120. if ((tag == 0) || ((tag & 7) == 4)) {
  8121. CHK_(ptr);
  8122. ctx->SetLastTag(tag);
  8123. goto message_done;
  8124. }
  8125. ptr = UnknownFieldParse(
  8126. tag,
  8127. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  8128. ptr, ctx);
  8129. CHK_(ptr != nullptr);
  8130. } // while
  8131. message_done:
  8132. return ptr;
  8133. failure:
  8134. ptr = nullptr;
  8135. goto message_done;
  8136. #undef CHK_
  8137. }
  8138. uint8_t* SCAddRobot::_InternalSerialize(
  8139. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  8140. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.SCAddRobot)
  8141. uint32_t cached_has_bits = 0;
  8142. (void) cached_has_bits;
  8143. // .RemoNet.Robot robot = 1;
  8144. if (this->_internal_has_robot()) {
  8145. target = stream->EnsureSpace(target);
  8146. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  8147. InternalWriteMessage(
  8148. 1, _Internal::robot(this), target, stream);
  8149. }
  8150. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  8151. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  8152. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  8153. }
  8154. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.SCAddRobot)
  8155. return target;
  8156. }
  8157. size_t SCAddRobot::ByteSizeLong() const {
  8158. // @@protoc_insertion_point(message_byte_size_start:RemoNet.SCAddRobot)
  8159. size_t total_size = 0;
  8160. uint32_t cached_has_bits = 0;
  8161. // Prevent compiler warnings about cached_has_bits being unused
  8162. (void) cached_has_bits;
  8163. // .RemoNet.Robot robot = 1;
  8164. if (this->_internal_has_robot()) {
  8165. total_size += 1 +
  8166. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  8167. *robot_);
  8168. }
  8169. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  8170. }
  8171. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCAddRobot::_class_data_ = {
  8172. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  8173. SCAddRobot::MergeImpl
  8174. };
  8175. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCAddRobot::GetClassData() const { return &_class_data_; }
  8176. void SCAddRobot::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  8177. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  8178. static_cast<SCAddRobot *>(to)->MergeFrom(
  8179. static_cast<const SCAddRobot &>(from));
  8180. }
  8181. void SCAddRobot::MergeFrom(const SCAddRobot& from) {
  8182. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.SCAddRobot)
  8183. GOOGLE_DCHECK_NE(&from, this);
  8184. uint32_t cached_has_bits = 0;
  8185. (void) cached_has_bits;
  8186. if (from._internal_has_robot()) {
  8187. _internal_mutable_robot()->::RemoNet::Robot::MergeFrom(from._internal_robot());
  8188. }
  8189. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  8190. }
  8191. void SCAddRobot::CopyFrom(const SCAddRobot& from) {
  8192. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.SCAddRobot)
  8193. if (&from == this) return;
  8194. Clear();
  8195. MergeFrom(from);
  8196. }
  8197. bool SCAddRobot::IsInitialized() const {
  8198. return true;
  8199. }
  8200. void SCAddRobot::InternalSwap(SCAddRobot* other) {
  8201. using std::swap;
  8202. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  8203. swap(robot_, other->robot_);
  8204. }
  8205. ::PROTOBUF_NAMESPACE_ID::Metadata SCAddRobot::GetMetadata() const {
  8206. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  8207. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  8208. file_level_metadata_protocol_2eproto[37]);
  8209. }
  8210. // ===================================================================
  8211. class SCDelRobot::_Internal {
  8212. public:
  8213. };
  8214. SCDelRobot::SCDelRobot(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  8215. bool is_message_owned)
  8216. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  8217. SharedCtor();
  8218. if (!is_message_owned) {
  8219. RegisterArenaDtor(arena);
  8220. }
  8221. // @@protoc_insertion_point(arena_constructor:RemoNet.SCDelRobot)
  8222. }
  8223. SCDelRobot::SCDelRobot(const SCDelRobot& from)
  8224. : ::PROTOBUF_NAMESPACE_ID::Message() {
  8225. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  8226. ::memcpy(&peer_, &from.peer_,
  8227. static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  8228. reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
  8229. // @@protoc_insertion_point(copy_constructor:RemoNet.SCDelRobot)
  8230. }
  8231. inline void SCDelRobot::SharedCtor() {
  8232. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  8233. reinterpret_cast<char*>(&peer_) - reinterpret_cast<char*>(this)),
  8234. 0, static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  8235. reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
  8236. }
  8237. SCDelRobot::~SCDelRobot() {
  8238. // @@protoc_insertion_point(destructor:RemoNet.SCDelRobot)
  8239. if (GetArenaForAllocation() != nullptr) return;
  8240. SharedDtor();
  8241. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  8242. }
  8243. inline void SCDelRobot::SharedDtor() {
  8244. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  8245. }
  8246. void SCDelRobot::ArenaDtor(void* object) {
  8247. SCDelRobot* _this = reinterpret_cast< SCDelRobot* >(object);
  8248. (void)_this;
  8249. }
  8250. void SCDelRobot::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  8251. }
  8252. void SCDelRobot::SetCachedSize(int size) const {
  8253. _cached_size_.Set(size);
  8254. }
  8255. void SCDelRobot::Clear() {
  8256. // @@protoc_insertion_point(message_clear_start:RemoNet.SCDelRobot)
  8257. uint32_t cached_has_bits = 0;
  8258. // Prevent compiler warnings about cached_has_bits being unused
  8259. (void) cached_has_bits;
  8260. ::memset(&peer_, 0, static_cast<size_t>(
  8261. reinterpret_cast<char*>(&egotype_) -
  8262. reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
  8263. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  8264. }
  8265. const char* SCDelRobot::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  8266. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  8267. while (!ctx->Done(&ptr)) {
  8268. uint32_t tag;
  8269. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  8270. switch (tag >> 3) {
  8271. // int32 peer = 1;
  8272. case 1:
  8273. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  8274. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8275. CHK_(ptr);
  8276. } else
  8277. goto handle_unusual;
  8278. continue;
  8279. // int32 egotype = 2;
  8280. case 2:
  8281. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  8282. egotype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8283. CHK_(ptr);
  8284. } else
  8285. goto handle_unusual;
  8286. continue;
  8287. default:
  8288. goto handle_unusual;
  8289. } // switch
  8290. handle_unusual:
  8291. if ((tag == 0) || ((tag & 7) == 4)) {
  8292. CHK_(ptr);
  8293. ctx->SetLastTag(tag);
  8294. goto message_done;
  8295. }
  8296. ptr = UnknownFieldParse(
  8297. tag,
  8298. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  8299. ptr, ctx);
  8300. CHK_(ptr != nullptr);
  8301. } // while
  8302. message_done:
  8303. return ptr;
  8304. failure:
  8305. ptr = nullptr;
  8306. goto message_done;
  8307. #undef CHK_
  8308. }
  8309. uint8_t* SCDelRobot::_InternalSerialize(
  8310. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  8311. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.SCDelRobot)
  8312. uint32_t cached_has_bits = 0;
  8313. (void) cached_has_bits;
  8314. // int32 peer = 1;
  8315. if (this->_internal_peer() != 0) {
  8316. target = stream->EnsureSpace(target);
  8317. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_peer(), target);
  8318. }
  8319. // int32 egotype = 2;
  8320. if (this->_internal_egotype() != 0) {
  8321. target = stream->EnsureSpace(target);
  8322. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_egotype(), target);
  8323. }
  8324. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  8325. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  8326. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  8327. }
  8328. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.SCDelRobot)
  8329. return target;
  8330. }
  8331. size_t SCDelRobot::ByteSizeLong() const {
  8332. // @@protoc_insertion_point(message_byte_size_start:RemoNet.SCDelRobot)
  8333. size_t total_size = 0;
  8334. uint32_t cached_has_bits = 0;
  8335. // Prevent compiler warnings about cached_has_bits being unused
  8336. (void) cached_has_bits;
  8337. // int32 peer = 1;
  8338. if (this->_internal_peer() != 0) {
  8339. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  8340. }
  8341. // int32 egotype = 2;
  8342. if (this->_internal_egotype() != 0) {
  8343. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_egotype());
  8344. }
  8345. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  8346. }
  8347. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCDelRobot::_class_data_ = {
  8348. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  8349. SCDelRobot::MergeImpl
  8350. };
  8351. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCDelRobot::GetClassData() const { return &_class_data_; }
  8352. void SCDelRobot::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  8353. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  8354. static_cast<SCDelRobot *>(to)->MergeFrom(
  8355. static_cast<const SCDelRobot &>(from));
  8356. }
  8357. void SCDelRobot::MergeFrom(const SCDelRobot& from) {
  8358. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.SCDelRobot)
  8359. GOOGLE_DCHECK_NE(&from, this);
  8360. uint32_t cached_has_bits = 0;
  8361. (void) cached_has_bits;
  8362. if (from._internal_peer() != 0) {
  8363. _internal_set_peer(from._internal_peer());
  8364. }
  8365. if (from._internal_egotype() != 0) {
  8366. _internal_set_egotype(from._internal_egotype());
  8367. }
  8368. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  8369. }
  8370. void SCDelRobot::CopyFrom(const SCDelRobot& from) {
  8371. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.SCDelRobot)
  8372. if (&from == this) return;
  8373. Clear();
  8374. MergeFrom(from);
  8375. }
  8376. bool SCDelRobot::IsInitialized() const {
  8377. return true;
  8378. }
  8379. void SCDelRobot::InternalSwap(SCDelRobot* other) {
  8380. using std::swap;
  8381. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  8382. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  8383. PROTOBUF_FIELD_OFFSET(SCDelRobot, egotype_)
  8384. + sizeof(SCDelRobot::egotype_)
  8385. - PROTOBUF_FIELD_OFFSET(SCDelRobot, peer_)>(
  8386. reinterpret_cast<char*>(&peer_),
  8387. reinterpret_cast<char*>(&other->peer_));
  8388. }
  8389. ::PROTOBUF_NAMESPACE_ID::Metadata SCDelRobot::GetMetadata() const {
  8390. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  8391. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  8392. file_level_metadata_protocol_2eproto[38]);
  8393. }
  8394. // @@protoc_insertion_point(namespace_scope)
  8395. } // namespace RemoNet
  8396. PROTOBUF_NAMESPACE_OPEN
  8397. template<> PROTOBUF_NOINLINE ::RemoNet::CSAdd* Arena::CreateMaybeMessage< ::RemoNet::CSAdd >(Arena* arena) {
  8398. return Arena::CreateMessageInternal< ::RemoNet::CSAdd >(arena);
  8399. }
  8400. template<> PROTOBUF_NOINLINE ::RemoNet::SCAdd* Arena::CreateMaybeMessage< ::RemoNet::SCAdd >(Arena* arena) {
  8401. return Arena::CreateMessageInternal< ::RemoNet::SCAdd >(arena);
  8402. }
  8403. template<> PROTOBUF_NOINLINE ::RemoNet::SCKickOff* Arena::CreateMaybeMessage< ::RemoNet::SCKickOff >(Arena* arena) {
  8404. return Arena::CreateMessageInternal< ::RemoNet::SCKickOff >(arena);
  8405. }
  8406. template<> PROTOBUF_NOINLINE ::RemoNet::Robot* Arena::CreateMaybeMessage< ::RemoNet::Robot >(Arena* arena) {
  8407. return Arena::CreateMessageInternal< ::RemoNet::Robot >(arena);
  8408. }
  8409. template<> PROTOBUF_NOINLINE ::RemoNet::CSRobot* Arena::CreateMaybeMessage< ::RemoNet::CSRobot >(Arena* arena) {
  8410. return Arena::CreateMessageInternal< ::RemoNet::CSRobot >(arena);
  8411. }
  8412. template<> PROTOBUF_NOINLINE ::RemoNet::SCRobot* Arena::CreateMaybeMessage< ::RemoNet::SCRobot >(Arena* arena) {
  8413. return Arena::CreateMessageInternal< ::RemoNet::SCRobot >(arena);
  8414. }
  8415. template<> PROTOBUF_NOINLINE ::RemoNet::CSSign* Arena::CreateMaybeMessage< ::RemoNet::CSSign >(Arena* arena) {
  8416. return Arena::CreateMessageInternal< ::RemoNet::CSSign >(arena);
  8417. }
  8418. template<> PROTOBUF_NOINLINE ::RemoNet::SCSign* Arena::CreateMaybeMessage< ::RemoNet::SCSign >(Arena* arena) {
  8419. return Arena::CreateMessageInternal< ::RemoNet::SCSign >(arena);
  8420. }
  8421. template<> PROTOBUF_NOINLINE ::RemoNet::CSReq* Arena::CreateMaybeMessage< ::RemoNet::CSReq >(Arena* arena) {
  8422. return Arena::CreateMessageInternal< ::RemoNet::CSReq >(arena);
  8423. }
  8424. template<> PROTOBUF_NOINLINE ::RemoNet::SCReq* Arena::CreateMaybeMessage< ::RemoNet::SCReq >(Arena* arena) {
  8425. return Arena::CreateMessageInternal< ::RemoNet::SCReq >(arena);
  8426. }
  8427. template<> PROTOBUF_NOINLINE ::RemoNet::CSRep* Arena::CreateMaybeMessage< ::RemoNet::CSRep >(Arena* arena) {
  8428. return Arena::CreateMessageInternal< ::RemoNet::CSRep >(arena);
  8429. }
  8430. template<> PROTOBUF_NOINLINE ::RemoNet::SCRep* Arena::CreateMaybeMessage< ::RemoNet::SCRep >(Arena* arena) {
  8431. return Arena::CreateMessageInternal< ::RemoNet::SCRep >(arena);
  8432. }
  8433. template<> PROTOBUF_NOINLINE ::RemoNet::Offer* Arena::CreateMaybeMessage< ::RemoNet::Offer >(Arena* arena) {
  8434. return Arena::CreateMessageInternal< ::RemoNet::Offer >(arena);
  8435. }
  8436. template<> PROTOBUF_NOINLINE ::RemoNet::Answer* Arena::CreateMaybeMessage< ::RemoNet::Answer >(Arena* arena) {
  8437. return Arena::CreateMessageInternal< ::RemoNet::Answer >(arena);
  8438. }
  8439. template<> PROTOBUF_NOINLINE ::RemoNet::Candidate* Arena::CreateMaybeMessage< ::RemoNet::Candidate >(Arena* arena) {
  8440. return Arena::CreateMessageInternal< ::RemoNet::Candidate >(arena);
  8441. }
  8442. template<> PROTOBUF_NOINLINE ::RemoNet::Leave* Arena::CreateMaybeMessage< ::RemoNet::Leave >(Arena* arena) {
  8443. return Arena::CreateMessageInternal< ::RemoNet::Leave >(arena);
  8444. }
  8445. template<> PROTOBUF_NOINLINE ::RemoNet::Close* Arena::CreateMaybeMessage< ::RemoNet::Close >(Arena* arena) {
  8446. return Arena::CreateMessageInternal< ::RemoNet::Close >(arena);
  8447. }
  8448. template<> PROTOBUF_NOINLINE ::RemoNet::TestTextReq* Arena::CreateMaybeMessage< ::RemoNet::TestTextReq >(Arena* arena) {
  8449. return Arena::CreateMessageInternal< ::RemoNet::TestTextReq >(arena);
  8450. }
  8451. template<> PROTOBUF_NOINLINE ::RemoNet::CanMessage* Arena::CreateMaybeMessage< ::RemoNet::CanMessage >(Arena* arena) {
  8452. return Arena::CreateMessageInternal< ::RemoNet::CanMessage >(arena);
  8453. }
  8454. template<> PROTOBUF_NOINLINE ::RemoNet::CCCanMesage* Arena::CreateMaybeMessage< ::RemoNet::CCCanMesage >(Arena* arena) {
  8455. return Arena::CreateMessageInternal< ::RemoNet::CCCanMesage >(arena);
  8456. }
  8457. template<> PROTOBUF_NOINLINE ::RemoNet::Wiper* Arena::CreateMaybeMessage< ::RemoNet::Wiper >(Arena* arena) {
  8458. return Arena::CreateMessageInternal< ::RemoNet::Wiper >(arena);
  8459. }
  8460. template<> PROTOBUF_NOINLINE ::RemoNet::FrontLight* Arena::CreateMaybeMessage< ::RemoNet::FrontLight >(Arena* arena) {
  8461. return Arena::CreateMessageInternal< ::RemoNet::FrontLight >(arena);
  8462. }
  8463. template<> PROTOBUF_NOINLINE ::RemoNet::BackLight* Arena::CreateMaybeMessage< ::RemoNet::BackLight >(Arena* arena) {
  8464. return Arena::CreateMessageInternal< ::RemoNet::BackLight >(arena);
  8465. }
  8466. template<> PROTOBUF_NOINLINE ::RemoNet::CCAskDataChannel* Arena::CreateMaybeMessage< ::RemoNet::CCAskDataChannel >(Arena* arena) {
  8467. return Arena::CreateMessageInternal< ::RemoNet::CCAskDataChannel >(arena);
  8468. }
  8469. template<> PROTOBUF_NOINLINE ::RemoNet::IMuMessage* Arena::CreateMaybeMessage< ::RemoNet::IMuMessage >(Arena* arena) {
  8470. return Arena::CreateMessageInternal< ::RemoNet::IMuMessage >(arena);
  8471. }
  8472. template<> PROTOBUF_NOINLINE ::RemoNet::CCPing* Arena::CreateMaybeMessage< ::RemoNet::CCPing >(Arena* arena) {
  8473. return Arena::CreateMessageInternal< ::RemoNet::CCPing >(arena);
  8474. }
  8475. template<> PROTOBUF_NOINLINE ::RemoNet::CCRadarMessage* Arena::CreateMaybeMessage< ::RemoNet::CCRadarMessage >(Arena* arena) {
  8476. return Arena::CreateMessageInternal< ::RemoNet::CCRadarMessage >(arena);
  8477. }
  8478. template<> PROTOBUF_NOINLINE ::RemoNet::CCRobotAnalog* Arena::CreateMaybeMessage< ::RemoNet::CCRobotAnalog >(Arena* arena) {
  8479. return Arena::CreateMessageInternal< ::RemoNet::CCRobotAnalog >(arena);
  8480. }
  8481. template<> PROTOBUF_NOINLINE ::RemoNet::CCBootStrapReq* Arena::CreateMaybeMessage< ::RemoNet::CCBootStrapReq >(Arena* arena) {
  8482. return Arena::CreateMessageInternal< ::RemoNet::CCBootStrapReq >(arena);
  8483. }
  8484. template<> PROTOBUF_NOINLINE ::RemoNet::CCBooStrapRep* Arena::CreateMaybeMessage< ::RemoNet::CCBooStrapRep >(Arena* arena) {
  8485. return Arena::CreateMessageInternal< ::RemoNet::CCBooStrapRep >(arena);
  8486. }
  8487. template<> PROTOBUF_NOINLINE ::RemoNet::CCStartupReq* Arena::CreateMaybeMessage< ::RemoNet::CCStartupReq >(Arena* arena) {
  8488. return Arena::CreateMessageInternal< ::RemoNet::CCStartupReq >(arena);
  8489. }
  8490. template<> PROTOBUF_NOINLINE ::RemoNet::CCStartupRep* Arena::CreateMaybeMessage< ::RemoNet::CCStartupRep >(Arena* arena) {
  8491. return Arena::CreateMessageInternal< ::RemoNet::CCStartupRep >(arena);
  8492. }
  8493. template<> PROTOBUF_NOINLINE ::RemoNet::CCSwitch* Arena::CreateMaybeMessage< ::RemoNet::CCSwitch >(Arena* arena) {
  8494. return Arena::CreateMessageInternal< ::RemoNet::CCSwitch >(arena);
  8495. }
  8496. template<> PROTOBUF_NOINLINE ::RemoNet::LidarPoint* Arena::CreateMaybeMessage< ::RemoNet::LidarPoint >(Arena* arena) {
  8497. return Arena::CreateMessageInternal< ::RemoNet::LidarPoint >(arena);
  8498. }
  8499. template<> PROTOBUF_NOINLINE ::RemoNet::SensorStop* Arena::CreateMaybeMessage< ::RemoNet::SensorStop >(Arena* arena) {
  8500. return Arena::CreateMessageInternal< ::RemoNet::SensorStop >(arena);
  8501. }
  8502. template<> PROTOBUF_NOINLINE ::RemoNet::StopAck* Arena::CreateMaybeMessage< ::RemoNet::StopAck >(Arena* arena) {
  8503. return Arena::CreateMessageInternal< ::RemoNet::StopAck >(arena);
  8504. }
  8505. template<> PROTOBUF_NOINLINE ::RemoNet::CCManipulation* Arena::CreateMaybeMessage< ::RemoNet::CCManipulation >(Arena* arena) {
  8506. return Arena::CreateMessageInternal< ::RemoNet::CCManipulation >(arena);
  8507. }
  8508. template<> PROTOBUF_NOINLINE ::RemoNet::SCAddRobot* Arena::CreateMaybeMessage< ::RemoNet::SCAddRobot >(Arena* arena) {
  8509. return Arena::CreateMessageInternal< ::RemoNet::SCAddRobot >(arena);
  8510. }
  8511. template<> PROTOBUF_NOINLINE ::RemoNet::SCDelRobot* Arena::CreateMaybeMessage< ::RemoNet::SCDelRobot >(Arena* arena) {
  8512. return Arena::CreateMessageInternal< ::RemoNet::SCDelRobot >(arena);
  8513. }
  8514. PROTOBUF_NAMESPACE_CLOSE
  8515. // @@protoc_insertion_point(global_scope)
  8516. #include <google/protobuf/port_undef.inc>