protocol.pb.cc 491 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771
  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 SwitchDriver::SwitchDriver(
  17. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  18. : peer_(0){}
  19. struct SwitchDriverDefaultTypeInternal {
  20. constexpr SwitchDriverDefaultTypeInternal()
  21. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  22. ~SwitchDriverDefaultTypeInternal() {}
  23. union {
  24. SwitchDriver _instance;
  25. };
  26. };
  27. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SwitchDriverDefaultTypeInternal _SwitchDriver_default_instance_;
  28. constexpr NDTPos::NDTPos(
  29. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  30. : x_(0)
  31. , y_(0)
  32. , z_(0)
  33. , rx_(0)
  34. , ry_(0)
  35. , rz_(0)
  36. , rw_(0){}
  37. struct NDTPosDefaultTypeInternal {
  38. constexpr NDTPosDefaultTypeInternal()
  39. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  40. ~NDTPosDefaultTypeInternal() {}
  41. union {
  42. NDTPos _instance;
  43. };
  44. };
  45. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT NDTPosDefaultTypeInternal _NDTPos_default_instance_;
  46. constexpr CSMoveBegin::CSMoveBegin(
  47. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  48. : peer_(0)
  49. , area_(0)
  50. , no_(0){}
  51. struct CSMoveBeginDefaultTypeInternal {
  52. constexpr CSMoveBeginDefaultTypeInternal()
  53. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  54. ~CSMoveBeginDefaultTypeInternal() {}
  55. union {
  56. CSMoveBegin _instance;
  57. };
  58. };
  59. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CSMoveBeginDefaultTypeInternal _CSMoveBegin_default_instance_;
  60. constexpr MoveRet::MoveRet(
  61. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  62. : desc_(0)
  63. , peer_(0){}
  64. struct MoveRetDefaultTypeInternal {
  65. constexpr MoveRetDefaultTypeInternal()
  66. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  67. ~MoveRetDefaultTypeInternal() {}
  68. union {
  69. MoveRet _instance;
  70. };
  71. };
  72. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MoveRetDefaultTypeInternal _MoveRet_default_instance_;
  73. constexpr CSMoveEnd::CSMoveEnd(
  74. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  75. : area_(0)
  76. , no_(0)
  77. , uid_(0){}
  78. struct CSMoveEndDefaultTypeInternal {
  79. constexpr CSMoveEndDefaultTypeInternal()
  80. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  81. ~CSMoveEndDefaultTypeInternal() {}
  82. union {
  83. CSMoveEnd _instance;
  84. };
  85. };
  86. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CSMoveEndDefaultTypeInternal _CSMoveEnd_default_instance_;
  87. constexpr SCMoveBegin::SCMoveBegin(
  88. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  89. : uid_(0)
  90. , area_(0)
  91. , no_(0)
  92. , x_(0)
  93. , y_(0){}
  94. struct SCMoveBeginDefaultTypeInternal {
  95. constexpr SCMoveBeginDefaultTypeInternal()
  96. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  97. ~SCMoveBeginDefaultTypeInternal() {}
  98. union {
  99. SCMoveBegin _instance;
  100. };
  101. };
  102. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SCMoveBeginDefaultTypeInternal _SCMoveBegin_default_instance_;
  103. constexpr SCMoveEnd::SCMoveEnd(
  104. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  105. : area_(0)
  106. , no_(0)
  107. , uid_(0){}
  108. struct SCMoveEndDefaultTypeInternal {
  109. constexpr SCMoveEndDefaultTypeInternal()
  110. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  111. ~SCMoveEndDefaultTypeInternal() {}
  112. union {
  113. SCMoveEnd _instance;
  114. };
  115. };
  116. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SCMoveEndDefaultTypeInternal _SCMoveEnd_default_instance_;
  117. constexpr CSAdd::CSAdd(
  118. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  119. : serial_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  120. , name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  121. , type_(0)
  122. , car_(0){}
  123. struct CSAddDefaultTypeInternal {
  124. constexpr CSAddDefaultTypeInternal()
  125. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  126. ~CSAddDefaultTypeInternal() {}
  127. union {
  128. CSAdd _instance;
  129. };
  130. };
  131. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CSAddDefaultTypeInternal _CSAdd_default_instance_;
  132. constexpr SCAdd::SCAdd(
  133. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  134. : name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  135. , ret_(false)
  136. , uid_(0)
  137. , car_(0){}
  138. struct SCAddDefaultTypeInternal {
  139. constexpr SCAddDefaultTypeInternal()
  140. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  141. ~SCAddDefaultTypeInternal() {}
  142. union {
  143. SCAdd _instance;
  144. };
  145. };
  146. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SCAddDefaultTypeInternal _SCAdd_default_instance_;
  147. constexpr SCKickOff::SCKickOff(
  148. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){}
  149. struct SCKickOffDefaultTypeInternal {
  150. constexpr SCKickOffDefaultTypeInternal()
  151. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  152. ~SCKickOffDefaultTypeInternal() {}
  153. union {
  154. SCKickOff _instance;
  155. };
  156. };
  157. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SCKickOffDefaultTypeInternal _SCKickOff_default_instance_;
  158. constexpr CSState::CSState(
  159. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  160. : state_(0)
  161. , uid_(0){}
  162. struct CSStateDefaultTypeInternal {
  163. constexpr CSStateDefaultTypeInternal()
  164. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  165. ~CSStateDefaultTypeInternal() {}
  166. union {
  167. CSState _instance;
  168. };
  169. };
  170. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CSStateDefaultTypeInternal _CSState_default_instance_;
  171. constexpr SCState::SCState(
  172. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  173. : state_(0)
  174. , uid_(0){}
  175. struct SCStateDefaultTypeInternal {
  176. constexpr SCStateDefaultTypeInternal()
  177. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  178. ~SCStateDefaultTypeInternal() {}
  179. union {
  180. SCState _instance;
  181. };
  182. };
  183. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SCStateDefaultTypeInternal _SCState_default_instance_;
  184. constexpr Robot::Robot(
  185. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  186. : name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  187. , rid_(0)
  188. , type_(0)
  189. , state_(0)
  190. , cartype_(0){}
  191. struct RobotDefaultTypeInternal {
  192. constexpr RobotDefaultTypeInternal()
  193. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  194. ~RobotDefaultTypeInternal() {}
  195. union {
  196. Robot _instance;
  197. };
  198. };
  199. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT RobotDefaultTypeInternal _Robot_default_instance_;
  200. constexpr CSRobot::CSRobot(
  201. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){}
  202. struct CSRobotDefaultTypeInternal {
  203. constexpr CSRobotDefaultTypeInternal()
  204. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  205. ~CSRobotDefaultTypeInternal() {}
  206. union {
  207. CSRobot _instance;
  208. };
  209. };
  210. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CSRobotDefaultTypeInternal _CSRobot_default_instance_;
  211. constexpr SCRobot::SCRobot(
  212. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  213. : robot_(){}
  214. struct SCRobotDefaultTypeInternal {
  215. constexpr SCRobotDefaultTypeInternal()
  216. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  217. ~SCRobotDefaultTypeInternal() {}
  218. union {
  219. SCRobot _instance;
  220. };
  221. };
  222. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SCRobotDefaultTypeInternal _SCRobot_default_instance_;
  223. constexpr CSSign::CSSign(
  224. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  225. : account_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  226. , password_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){}
  227. struct CSSignDefaultTypeInternal {
  228. constexpr CSSignDefaultTypeInternal()
  229. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  230. ~CSSignDefaultTypeInternal() {}
  231. union {
  232. CSSign _instance;
  233. };
  234. };
  235. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CSSignDefaultTypeInternal _CSSign_default_instance_;
  236. constexpr SCSign::SCSign(
  237. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  238. : name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  239. , ret_(false)
  240. , uid_(0){}
  241. struct SCSignDefaultTypeInternal {
  242. constexpr SCSignDefaultTypeInternal()
  243. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  244. ~SCSignDefaultTypeInternal() {}
  245. union {
  246. SCSign _instance;
  247. };
  248. };
  249. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SCSignDefaultTypeInternal _SCSign_default_instance_;
  250. constexpr CSReq::CSReq(
  251. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  252. : peer_(0)
  253. , index_(0)
  254. , egotype_(0){}
  255. struct CSReqDefaultTypeInternal {
  256. constexpr CSReqDefaultTypeInternal()
  257. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  258. ~CSReqDefaultTypeInternal() {}
  259. union {
  260. CSReq _instance;
  261. };
  262. };
  263. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CSReqDefaultTypeInternal _CSReq_default_instance_;
  264. constexpr SCReq::SCReq(
  265. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  266. : desc_(0)
  267. , peer_(0)
  268. , egotype_(0){}
  269. struct SCReqDefaultTypeInternal {
  270. constexpr SCReqDefaultTypeInternal()
  271. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  272. ~SCReqDefaultTypeInternal() {}
  273. union {
  274. SCReq _instance;
  275. };
  276. };
  277. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SCReqDefaultTypeInternal _SCReq_default_instance_;
  278. constexpr CSRep::CSRep(
  279. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  280. : desc_(0)
  281. , peer_(0)
  282. , index_(0)
  283. , egotype_(0){}
  284. struct CSRepDefaultTypeInternal {
  285. constexpr CSRepDefaultTypeInternal()
  286. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  287. ~CSRepDefaultTypeInternal() {}
  288. union {
  289. CSRep _instance;
  290. };
  291. };
  292. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CSRepDefaultTypeInternal _CSRep_default_instance_;
  293. constexpr SCRep::SCRep(
  294. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  295. : desc_(0)
  296. , index_(0)
  297. , egotype_(0)
  298. , peer_(0){}
  299. struct SCRepDefaultTypeInternal {
  300. constexpr SCRepDefaultTypeInternal()
  301. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  302. ~SCRepDefaultTypeInternal() {}
  303. union {
  304. SCRep _instance;
  305. };
  306. };
  307. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SCRepDefaultTypeInternal _SCRep_default_instance_;
  308. constexpr Offer::Offer(
  309. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  310. : type_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  311. , sdp_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  312. , index_(0)
  313. , peer_(0){}
  314. struct OfferDefaultTypeInternal {
  315. constexpr OfferDefaultTypeInternal()
  316. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  317. ~OfferDefaultTypeInternal() {}
  318. union {
  319. Offer _instance;
  320. };
  321. };
  322. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OfferDefaultTypeInternal _Offer_default_instance_;
  323. constexpr Answer::Answer(
  324. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  325. : type_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  326. , sdp_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  327. , index_(0)
  328. , peer_(0){}
  329. struct AnswerDefaultTypeInternal {
  330. constexpr AnswerDefaultTypeInternal()
  331. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  332. ~AnswerDefaultTypeInternal() {}
  333. union {
  334. Answer _instance;
  335. };
  336. };
  337. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AnswerDefaultTypeInternal _Answer_default_instance_;
  338. constexpr Candidate::Candidate(
  339. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  340. : type_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  341. , candidate_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  342. , sdpmid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  343. , index_(0)
  344. , peer_(0)
  345. , sdpmlineindex_(0)
  346. , egotype_(0){}
  347. struct CandidateDefaultTypeInternal {
  348. constexpr CandidateDefaultTypeInternal()
  349. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  350. ~CandidateDefaultTypeInternal() {}
  351. union {
  352. Candidate _instance;
  353. };
  354. };
  355. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CandidateDefaultTypeInternal _Candidate_default_instance_;
  356. constexpr Leave::Leave(
  357. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  358. : peer_(0)
  359. , egotype_(0){}
  360. struct LeaveDefaultTypeInternal {
  361. constexpr LeaveDefaultTypeInternal()
  362. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  363. ~LeaveDefaultTypeInternal() {}
  364. union {
  365. Leave _instance;
  366. };
  367. };
  368. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT LeaveDefaultTypeInternal _Leave_default_instance_;
  369. constexpr Close::Close(
  370. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  371. : peer_(0)
  372. , egotype_(0)
  373. , index_(0){}
  374. struct CloseDefaultTypeInternal {
  375. constexpr CloseDefaultTypeInternal()
  376. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  377. ~CloseDefaultTypeInternal() {}
  378. union {
  379. Close _instance;
  380. };
  381. };
  382. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CloseDefaultTypeInternal _Close_default_instance_;
  383. constexpr TestTextReq::TestTextReq(
  384. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  385. : text_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){}
  386. struct TestTextReqDefaultTypeInternal {
  387. constexpr TestTextReqDefaultTypeInternal()
  388. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  389. ~TestTextReqDefaultTypeInternal() {}
  390. union {
  391. TestTextReq _instance;
  392. };
  393. };
  394. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT TestTextReqDefaultTypeInternal _TestTextReq_default_instance_;
  395. constexpr SyncTime::SyncTime(
  396. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  397. : tm_sec_(0)
  398. , tm_min_(0)
  399. , tm_hour_(0)
  400. , tm_mday_(0)
  401. , tm_mon_(0)
  402. , tm_year_(0)
  403. , tm_wday_(0)
  404. , tm_yday_(0)
  405. , tm_isdst_(0)
  406. , update_time_(false){}
  407. struct SyncTimeDefaultTypeInternal {
  408. constexpr SyncTimeDefaultTypeInternal()
  409. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  410. ~SyncTimeDefaultTypeInternal() {}
  411. union {
  412. SyncTime _instance;
  413. };
  414. };
  415. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SyncTimeDefaultTypeInternal _SyncTime_default_instance_;
  416. constexpr CCAskDataChannel::CCAskDataChannel(
  417. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){}
  418. struct CCAskDataChannelDefaultTypeInternal {
  419. constexpr CCAskDataChannelDefaultTypeInternal()
  420. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  421. ~CCAskDataChannelDefaultTypeInternal() {}
  422. union {
  423. CCAskDataChannel _instance;
  424. };
  425. };
  426. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CCAskDataChannelDefaultTypeInternal _CCAskDataChannel_default_instance_;
  427. constexpr IMuMessage::IMuMessage(
  428. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  429. : rx_(0)
  430. , ry_(0){}
  431. struct IMuMessageDefaultTypeInternal {
  432. constexpr IMuMessageDefaultTypeInternal()
  433. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  434. ~IMuMessageDefaultTypeInternal() {}
  435. union {
  436. IMuMessage _instance;
  437. };
  438. };
  439. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT IMuMessageDefaultTypeInternal _IMuMessage_default_instance_;
  440. constexpr CCPing::CCPing(
  441. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  442. : tick_(int64_t{0})
  443. , temp_(0){}
  444. struct CCPingDefaultTypeInternal {
  445. constexpr CCPingDefaultTypeInternal()
  446. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  447. ~CCPingDefaultTypeInternal() {}
  448. union {
  449. CCPing _instance;
  450. };
  451. };
  452. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CCPingDefaultTypeInternal _CCPing_default_instance_;
  453. constexpr radar_node::radar_node(
  454. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  455. : id_(0)
  456. , range_(0){}
  457. struct radar_nodeDefaultTypeInternal {
  458. constexpr radar_nodeDefaultTypeInternal()
  459. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  460. ~radar_nodeDefaultTypeInternal() {}
  461. union {
  462. radar_node _instance;
  463. };
  464. };
  465. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT radar_nodeDefaultTypeInternal _radar_node_default_instance_;
  466. constexpr CCRadarMessage::CCRadarMessage(
  467. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  468. : radar0_(0)
  469. , radar1_(0)
  470. , radar2_(0)
  471. , radar3_(0)
  472. , radar4_(0)
  473. , radar5_(0)
  474. , radar6_(0)
  475. , radar7_(0){}
  476. struct CCRadarMessageDefaultTypeInternal {
  477. constexpr CCRadarMessageDefaultTypeInternal()
  478. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  479. ~CCRadarMessageDefaultTypeInternal() {}
  480. union {
  481. CCRadarMessage _instance;
  482. };
  483. };
  484. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CCRadarMessageDefaultTypeInternal _CCRadarMessage_default_instance_;
  485. constexpr CCSensor::CCSensor(
  486. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  487. : node_()
  488. , left_encode_(0)
  489. , right_encode_(0){}
  490. struct CCSensorDefaultTypeInternal {
  491. constexpr CCSensorDefaultTypeInternal()
  492. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  493. ~CCSensorDefaultTypeInternal() {}
  494. union {
  495. CCSensor _instance;
  496. };
  497. };
  498. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CCSensorDefaultTypeInternal _CCSensor_default_instance_;
  499. constexpr CCSwitch::CCSwitch(
  500. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  501. : front_(false){}
  502. struct CCSwitchDefaultTypeInternal {
  503. constexpr CCSwitchDefaultTypeInternal()
  504. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  505. ~CCSwitchDefaultTypeInternal() {}
  506. union {
  507. CCSwitch _instance;
  508. };
  509. };
  510. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CCSwitchDefaultTypeInternal _CCSwitch_default_instance_;
  511. constexpr State::State(
  512. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  513. : error_buff_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  514. , engine_speed_(0)
  515. , travel_speed_(0)
  516. , fuel_level_(0)
  517. , engine_temperature_(0)
  518. , hydraulic_oil_temperature_(0)
  519. , main_pump_1_pressure_(0)
  520. , main_pump_2_pressure_(0)
  521. , hand_gear_(0)
  522. , actual_gear_(0)
  523. , gripper_height_(0)
  524. , amplitude_(0)
  525. , boom_angle_(0)
  526. , stick_angle_(0)
  527. , idle_protection_(0)
  528. , front_toggle_(0)
  529. , back_toggle_(0)
  530. , interlock_(0)
  531. , safety_switch_(0)
  532. , arm_lift_pilot_(0)
  533. , arm_lowering_pilot_(0)
  534. , lever_lifting_pilot_(0)
  535. , rod_lowering_pilot_(0)
  536. , left_rotary_pilot_(0)
  537. , right_rotary_pilot_(0)
  538. , grab_open_pilot_(0)
  539. , grab_close_pilot_(0)
  540. , safety_valves_(0)
  541. , function_code_(0)
  542. , main_add_(0)
  543. , sub_add_(0)
  544. , paramter_(0)
  545. , engine_spn_(0)
  546. , engine_fmi_(0)
  547. , engine_num_(0)
  548. , p_flameout_(0)
  549. , engine_start_(0)
  550. , emergency_signal_(0)
  551. , preheating_monitoring_(0)
  552. , park_switch_(0)
  553. , safety_bar_lock_(0)
  554. , forward_gear_(0)
  555. , backward_gear_(0)
  556. , first_gear_(0)
  557. , sencond_gear_(0)
  558. , n_gear_(0)
  559. , cabin_end_(0)
  560. , cab_end_(0)
  561. , reserve_(0)
  562. , for_left_outrigger_(0)
  563. , for_right_outrigger_(0)
  564. , back_left_outrigger_(0)
  565. , back_right_outrigger_(0)
  566. , cab_start_(0)
  567. , canbin_start_(0)
  568. , swinging_bridge_lock_(0)
  569. , cab_emery_(0)
  570. , safety_bypass_(0)
  571. , clear_alarm_(0)
  572. , front_wheel_steering_(0)
  573. , back_wheel_steering_(0)
  574. , same_steering_(0)
  575. , reverse_steering_(0)
  576. , sound_signal_alarm_(0)
  577. , rod_intake_limit_valve_(0)
  578. , rod_outtake_limit_valve_(0)
  579. , boom_lift_limit_valve_(0)
  580. , boom_out_limit_valve_(0)
  581. , cab_emery_value_(0)
  582. , charging_valve_(0)
  583. , parking_valve_(0)
  584. , parking_back_signal_(0)
  585. , brake_signal_(0)
  586. , power_delay_(0)
  587. , flash_signal_(0)
  588. , left_for_outrigger_value_(0)
  589. , right_for_outrigger_value_(0)
  590. , left_back_outrigger_value_(0)
  591. , right_back_outrigger_value_(0)
  592. , for_steering_value_(0)
  593. , same_steering_value_(0)
  594. , rever_steering_value_(0)
  595. , first_gear_solenoid_valve_(0)
  596. , sen_gear_solenoid_valve_(0)
  597. , grab_rotary_switch_valve_(0){}
  598. struct StateDefaultTypeInternal {
  599. constexpr StateDefaultTypeInternal()
  600. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  601. ~StateDefaultTypeInternal() {}
  602. union {
  603. State _instance;
  604. };
  605. };
  606. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT StateDefaultTypeInternal _State_default_instance_;
  607. constexpr LidarPoint::LidarPoint(
  608. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  609. : data_()
  610. , frame_id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  611. , timestamp_(0)
  612. , seq_(0u)
  613. , height_(0u)
  614. , width_(0u)
  615. , is_dense_(false)
  616. , is_left_(false){}
  617. struct LidarPointDefaultTypeInternal {
  618. constexpr LidarPointDefaultTypeInternal()
  619. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  620. ~LidarPointDefaultTypeInternal() {}
  621. union {
  622. LidarPoint _instance;
  623. };
  624. };
  625. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT LidarPointDefaultTypeInternal _LidarPoint_default_instance_;
  626. constexpr SensorStop::SensorStop(
  627. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){}
  628. struct SensorStopDefaultTypeInternal {
  629. constexpr SensorStopDefaultTypeInternal()
  630. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  631. ~SensorStopDefaultTypeInternal() {}
  632. union {
  633. SensorStop _instance;
  634. };
  635. };
  636. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SensorStopDefaultTypeInternal _SensorStop_default_instance_;
  637. constexpr StopAck::StopAck(
  638. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){}
  639. struct StopAckDefaultTypeInternal {
  640. constexpr StopAckDefaultTypeInternal()
  641. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  642. ~StopAckDefaultTypeInternal() {}
  643. union {
  644. StopAck _instance;
  645. };
  646. };
  647. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT StopAckDefaultTypeInternal _StopAck_default_instance_;
  648. constexpr can_net_frame::can_net_frame(
  649. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  650. : data_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  651. , dlc_(0)
  652. , canid_(0){}
  653. struct can_net_frameDefaultTypeInternal {
  654. constexpr can_net_frameDefaultTypeInternal()
  655. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  656. ~can_net_frameDefaultTypeInternal() {}
  657. union {
  658. can_net_frame _instance;
  659. };
  660. };
  661. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT can_net_frameDefaultTypeInternal _can_net_frame_default_instance_;
  662. constexpr CCCanMsg::CCCanMsg(
  663. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  664. : frams_(){}
  665. struct CCCanMsgDefaultTypeInternal {
  666. constexpr CCCanMsgDefaultTypeInternal()
  667. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  668. ~CCCanMsgDefaultTypeInternal() {}
  669. union {
  670. CCCanMsg _instance;
  671. };
  672. };
  673. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CCCanMsgDefaultTypeInternal _CCCanMsg_default_instance_;
  674. constexpr SCAddRobot::SCAddRobot(
  675. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  676. : robot_(nullptr){}
  677. struct SCAddRobotDefaultTypeInternal {
  678. constexpr SCAddRobotDefaultTypeInternal()
  679. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  680. ~SCAddRobotDefaultTypeInternal() {}
  681. union {
  682. SCAddRobot _instance;
  683. };
  684. };
  685. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SCAddRobotDefaultTypeInternal _SCAddRobot_default_instance_;
  686. constexpr SCDelRobot::SCDelRobot(
  687. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  688. : peer_(0)
  689. , egotype_(0){}
  690. struct SCDelRobotDefaultTypeInternal {
  691. constexpr SCDelRobotDefaultTypeInternal()
  692. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  693. ~SCDelRobotDefaultTypeInternal() {}
  694. union {
  695. SCDelRobot _instance;
  696. };
  697. };
  698. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SCDelRobotDefaultTypeInternal _SCDelRobot_default_instance_;
  699. } // namespace RemoNet
  700. static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_protocol_2eproto[43];
  701. static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_protocol_2eproto[6];
  702. static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_protocol_2eproto = nullptr;
  703. const uint32_t TableStruct_protocol_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  704. ~0u, // no _has_bits_
  705. PROTOBUF_FIELD_OFFSET(::RemoNet::SwitchDriver, _internal_metadata_),
  706. ~0u, // no _extensions_
  707. ~0u, // no _oneof_case_
  708. ~0u, // no _weak_field_map_
  709. ~0u, // no _inlined_string_donated_
  710. PROTOBUF_FIELD_OFFSET(::RemoNet::SwitchDriver, peer_),
  711. ~0u, // no _has_bits_
  712. PROTOBUF_FIELD_OFFSET(::RemoNet::NDTPos, _internal_metadata_),
  713. ~0u, // no _extensions_
  714. ~0u, // no _oneof_case_
  715. ~0u, // no _weak_field_map_
  716. ~0u, // no _inlined_string_donated_
  717. PROTOBUF_FIELD_OFFSET(::RemoNet::NDTPos, x_),
  718. PROTOBUF_FIELD_OFFSET(::RemoNet::NDTPos, y_),
  719. PROTOBUF_FIELD_OFFSET(::RemoNet::NDTPos, z_),
  720. PROTOBUF_FIELD_OFFSET(::RemoNet::NDTPos, rx_),
  721. PROTOBUF_FIELD_OFFSET(::RemoNet::NDTPos, ry_),
  722. PROTOBUF_FIELD_OFFSET(::RemoNet::NDTPos, rz_),
  723. PROTOBUF_FIELD_OFFSET(::RemoNet::NDTPos, rw_),
  724. ~0u, // no _has_bits_
  725. PROTOBUF_FIELD_OFFSET(::RemoNet::CSMoveBegin, _internal_metadata_),
  726. ~0u, // no _extensions_
  727. ~0u, // no _oneof_case_
  728. ~0u, // no _weak_field_map_
  729. ~0u, // no _inlined_string_donated_
  730. PROTOBUF_FIELD_OFFSET(::RemoNet::CSMoveBegin, peer_),
  731. PROTOBUF_FIELD_OFFSET(::RemoNet::CSMoveBegin, area_),
  732. PROTOBUF_FIELD_OFFSET(::RemoNet::CSMoveBegin, no_),
  733. ~0u, // no _has_bits_
  734. PROTOBUF_FIELD_OFFSET(::RemoNet::MoveRet, _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::MoveRet, desc_),
  740. PROTOBUF_FIELD_OFFSET(::RemoNet::MoveRet, peer_),
  741. ~0u, // no _has_bits_
  742. PROTOBUF_FIELD_OFFSET(::RemoNet::CSMoveEnd, _internal_metadata_),
  743. ~0u, // no _extensions_
  744. ~0u, // no _oneof_case_
  745. ~0u, // no _weak_field_map_
  746. ~0u, // no _inlined_string_donated_
  747. PROTOBUF_FIELD_OFFSET(::RemoNet::CSMoveEnd, area_),
  748. PROTOBUF_FIELD_OFFSET(::RemoNet::CSMoveEnd, no_),
  749. PROTOBUF_FIELD_OFFSET(::RemoNet::CSMoveEnd, uid_),
  750. ~0u, // no _has_bits_
  751. PROTOBUF_FIELD_OFFSET(::RemoNet::SCMoveBegin, _internal_metadata_),
  752. ~0u, // no _extensions_
  753. ~0u, // no _oneof_case_
  754. ~0u, // no _weak_field_map_
  755. ~0u, // no _inlined_string_donated_
  756. PROTOBUF_FIELD_OFFSET(::RemoNet::SCMoveBegin, uid_),
  757. PROTOBUF_FIELD_OFFSET(::RemoNet::SCMoveBegin, area_),
  758. PROTOBUF_FIELD_OFFSET(::RemoNet::SCMoveBegin, no_),
  759. PROTOBUF_FIELD_OFFSET(::RemoNet::SCMoveBegin, x_),
  760. PROTOBUF_FIELD_OFFSET(::RemoNet::SCMoveBegin, y_),
  761. ~0u, // no _has_bits_
  762. PROTOBUF_FIELD_OFFSET(::RemoNet::SCMoveEnd, _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::SCMoveEnd, area_),
  768. PROTOBUF_FIELD_OFFSET(::RemoNet::SCMoveEnd, no_),
  769. PROTOBUF_FIELD_OFFSET(::RemoNet::SCMoveEnd, uid_),
  770. ~0u, // no _has_bits_
  771. PROTOBUF_FIELD_OFFSET(::RemoNet::CSAdd, _internal_metadata_),
  772. ~0u, // no _extensions_
  773. ~0u, // no _oneof_case_
  774. ~0u, // no _weak_field_map_
  775. ~0u, // no _inlined_string_donated_
  776. PROTOBUF_FIELD_OFFSET(::RemoNet::CSAdd, serial_),
  777. PROTOBUF_FIELD_OFFSET(::RemoNet::CSAdd, type_),
  778. PROTOBUF_FIELD_OFFSET(::RemoNet::CSAdd, name_),
  779. PROTOBUF_FIELD_OFFSET(::RemoNet::CSAdd, car_),
  780. ~0u, // no _has_bits_
  781. PROTOBUF_FIELD_OFFSET(::RemoNet::SCAdd, _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::SCAdd, ret_),
  787. PROTOBUF_FIELD_OFFSET(::RemoNet::SCAdd, uid_),
  788. PROTOBUF_FIELD_OFFSET(::RemoNet::SCAdd, name_),
  789. PROTOBUF_FIELD_OFFSET(::RemoNet::SCAdd, car_),
  790. ~0u, // no _has_bits_
  791. PROTOBUF_FIELD_OFFSET(::RemoNet::SCKickOff, _internal_metadata_),
  792. ~0u, // no _extensions_
  793. ~0u, // no _oneof_case_
  794. ~0u, // no _weak_field_map_
  795. ~0u, // no _inlined_string_donated_
  796. ~0u, // no _has_bits_
  797. PROTOBUF_FIELD_OFFSET(::RemoNet::CSState, _internal_metadata_),
  798. ~0u, // no _extensions_
  799. ~0u, // no _oneof_case_
  800. ~0u, // no _weak_field_map_
  801. ~0u, // no _inlined_string_donated_
  802. PROTOBUF_FIELD_OFFSET(::RemoNet::CSState, state_),
  803. PROTOBUF_FIELD_OFFSET(::RemoNet::CSState, uid_),
  804. ~0u, // no _has_bits_
  805. PROTOBUF_FIELD_OFFSET(::RemoNet::SCState, _internal_metadata_),
  806. ~0u, // no _extensions_
  807. ~0u, // no _oneof_case_
  808. ~0u, // no _weak_field_map_
  809. ~0u, // no _inlined_string_donated_
  810. PROTOBUF_FIELD_OFFSET(::RemoNet::SCState, state_),
  811. PROTOBUF_FIELD_OFFSET(::RemoNet::SCState, uid_),
  812. ~0u, // no _has_bits_
  813. PROTOBUF_FIELD_OFFSET(::RemoNet::Robot, _internal_metadata_),
  814. ~0u, // no _extensions_
  815. ~0u, // no _oneof_case_
  816. ~0u, // no _weak_field_map_
  817. ~0u, // no _inlined_string_donated_
  818. PROTOBUF_FIELD_OFFSET(::RemoNet::Robot, rid_),
  819. PROTOBUF_FIELD_OFFSET(::RemoNet::Robot, name_),
  820. PROTOBUF_FIELD_OFFSET(::RemoNet::Robot, type_),
  821. PROTOBUF_FIELD_OFFSET(::RemoNet::Robot, state_),
  822. PROTOBUF_FIELD_OFFSET(::RemoNet::Robot, cartype_),
  823. ~0u, // no _has_bits_
  824. PROTOBUF_FIELD_OFFSET(::RemoNet::CSRobot, _internal_metadata_),
  825. ~0u, // no _extensions_
  826. ~0u, // no _oneof_case_
  827. ~0u, // no _weak_field_map_
  828. ~0u, // no _inlined_string_donated_
  829. ~0u, // no _has_bits_
  830. PROTOBUF_FIELD_OFFSET(::RemoNet::SCRobot, _internal_metadata_),
  831. ~0u, // no _extensions_
  832. ~0u, // no _oneof_case_
  833. ~0u, // no _weak_field_map_
  834. ~0u, // no _inlined_string_donated_
  835. PROTOBUF_FIELD_OFFSET(::RemoNet::SCRobot, robot_),
  836. ~0u, // no _has_bits_
  837. PROTOBUF_FIELD_OFFSET(::RemoNet::CSSign, _internal_metadata_),
  838. ~0u, // no _extensions_
  839. ~0u, // no _oneof_case_
  840. ~0u, // no _weak_field_map_
  841. ~0u, // no _inlined_string_donated_
  842. PROTOBUF_FIELD_OFFSET(::RemoNet::CSSign, account_),
  843. PROTOBUF_FIELD_OFFSET(::RemoNet::CSSign, password_),
  844. ~0u, // no _has_bits_
  845. PROTOBUF_FIELD_OFFSET(::RemoNet::SCSign, _internal_metadata_),
  846. ~0u, // no _extensions_
  847. ~0u, // no _oneof_case_
  848. ~0u, // no _weak_field_map_
  849. ~0u, // no _inlined_string_donated_
  850. PROTOBUF_FIELD_OFFSET(::RemoNet::SCSign, ret_),
  851. PROTOBUF_FIELD_OFFSET(::RemoNet::SCSign, uid_),
  852. PROTOBUF_FIELD_OFFSET(::RemoNet::SCSign, name_),
  853. ~0u, // no _has_bits_
  854. PROTOBUF_FIELD_OFFSET(::RemoNet::CSReq, _internal_metadata_),
  855. ~0u, // no _extensions_
  856. ~0u, // no _oneof_case_
  857. ~0u, // no _weak_field_map_
  858. ~0u, // no _inlined_string_donated_
  859. PROTOBUF_FIELD_OFFSET(::RemoNet::CSReq, peer_),
  860. PROTOBUF_FIELD_OFFSET(::RemoNet::CSReq, index_),
  861. PROTOBUF_FIELD_OFFSET(::RemoNet::CSReq, egotype_),
  862. ~0u, // no _has_bits_
  863. PROTOBUF_FIELD_OFFSET(::RemoNet::SCReq, _internal_metadata_),
  864. ~0u, // no _extensions_
  865. ~0u, // no _oneof_case_
  866. ~0u, // no _weak_field_map_
  867. ~0u, // no _inlined_string_donated_
  868. PROTOBUF_FIELD_OFFSET(::RemoNet::SCReq, desc_),
  869. PROTOBUF_FIELD_OFFSET(::RemoNet::SCReq, peer_),
  870. PROTOBUF_FIELD_OFFSET(::RemoNet::SCReq, egotype_),
  871. ~0u, // no _has_bits_
  872. PROTOBUF_FIELD_OFFSET(::RemoNet::CSRep, _internal_metadata_),
  873. ~0u, // no _extensions_
  874. ~0u, // no _oneof_case_
  875. ~0u, // no _weak_field_map_
  876. ~0u, // no _inlined_string_donated_
  877. PROTOBUF_FIELD_OFFSET(::RemoNet::CSRep, desc_),
  878. PROTOBUF_FIELD_OFFSET(::RemoNet::CSRep, peer_),
  879. PROTOBUF_FIELD_OFFSET(::RemoNet::CSRep, index_),
  880. PROTOBUF_FIELD_OFFSET(::RemoNet::CSRep, egotype_),
  881. ~0u, // no _has_bits_
  882. PROTOBUF_FIELD_OFFSET(::RemoNet::SCRep, _internal_metadata_),
  883. ~0u, // no _extensions_
  884. ~0u, // no _oneof_case_
  885. ~0u, // no _weak_field_map_
  886. ~0u, // no _inlined_string_donated_
  887. PROTOBUF_FIELD_OFFSET(::RemoNet::SCRep, desc_),
  888. PROTOBUF_FIELD_OFFSET(::RemoNet::SCRep, index_),
  889. PROTOBUF_FIELD_OFFSET(::RemoNet::SCRep, egotype_),
  890. PROTOBUF_FIELD_OFFSET(::RemoNet::SCRep, peer_),
  891. ~0u, // no _has_bits_
  892. PROTOBUF_FIELD_OFFSET(::RemoNet::Offer, _internal_metadata_),
  893. ~0u, // no _extensions_
  894. ~0u, // no _oneof_case_
  895. ~0u, // no _weak_field_map_
  896. ~0u, // no _inlined_string_donated_
  897. PROTOBUF_FIELD_OFFSET(::RemoNet::Offer, index_),
  898. PROTOBUF_FIELD_OFFSET(::RemoNet::Offer, peer_),
  899. PROTOBUF_FIELD_OFFSET(::RemoNet::Offer, type_),
  900. PROTOBUF_FIELD_OFFSET(::RemoNet::Offer, sdp_),
  901. ~0u, // no _has_bits_
  902. PROTOBUF_FIELD_OFFSET(::RemoNet::Answer, _internal_metadata_),
  903. ~0u, // no _extensions_
  904. ~0u, // no _oneof_case_
  905. ~0u, // no _weak_field_map_
  906. ~0u, // no _inlined_string_donated_
  907. PROTOBUF_FIELD_OFFSET(::RemoNet::Answer, index_),
  908. PROTOBUF_FIELD_OFFSET(::RemoNet::Answer, peer_),
  909. PROTOBUF_FIELD_OFFSET(::RemoNet::Answer, type_),
  910. PROTOBUF_FIELD_OFFSET(::RemoNet::Answer, sdp_),
  911. ~0u, // no _has_bits_
  912. PROTOBUF_FIELD_OFFSET(::RemoNet::Candidate, _internal_metadata_),
  913. ~0u, // no _extensions_
  914. ~0u, // no _oneof_case_
  915. ~0u, // no _weak_field_map_
  916. ~0u, // no _inlined_string_donated_
  917. PROTOBUF_FIELD_OFFSET(::RemoNet::Candidate, index_),
  918. PROTOBUF_FIELD_OFFSET(::RemoNet::Candidate, peer_),
  919. PROTOBUF_FIELD_OFFSET(::RemoNet::Candidate, type_),
  920. PROTOBUF_FIELD_OFFSET(::RemoNet::Candidate, candidate_),
  921. PROTOBUF_FIELD_OFFSET(::RemoNet::Candidate, sdpmlineindex_),
  922. PROTOBUF_FIELD_OFFSET(::RemoNet::Candidate, sdpmid_),
  923. PROTOBUF_FIELD_OFFSET(::RemoNet::Candidate, egotype_),
  924. ~0u, // no _has_bits_
  925. PROTOBUF_FIELD_OFFSET(::RemoNet::Leave, _internal_metadata_),
  926. ~0u, // no _extensions_
  927. ~0u, // no _oneof_case_
  928. ~0u, // no _weak_field_map_
  929. ~0u, // no _inlined_string_donated_
  930. PROTOBUF_FIELD_OFFSET(::RemoNet::Leave, peer_),
  931. PROTOBUF_FIELD_OFFSET(::RemoNet::Leave, egotype_),
  932. ~0u, // no _has_bits_
  933. PROTOBUF_FIELD_OFFSET(::RemoNet::Close, _internal_metadata_),
  934. ~0u, // no _extensions_
  935. ~0u, // no _oneof_case_
  936. ~0u, // no _weak_field_map_
  937. ~0u, // no _inlined_string_donated_
  938. PROTOBUF_FIELD_OFFSET(::RemoNet::Close, peer_),
  939. PROTOBUF_FIELD_OFFSET(::RemoNet::Close, egotype_),
  940. PROTOBUF_FIELD_OFFSET(::RemoNet::Close, index_),
  941. ~0u, // no _has_bits_
  942. PROTOBUF_FIELD_OFFSET(::RemoNet::TestTextReq, _internal_metadata_),
  943. ~0u, // no _extensions_
  944. ~0u, // no _oneof_case_
  945. ~0u, // no _weak_field_map_
  946. ~0u, // no _inlined_string_donated_
  947. PROTOBUF_FIELD_OFFSET(::RemoNet::TestTextReq, text_),
  948. ~0u, // no _has_bits_
  949. PROTOBUF_FIELD_OFFSET(::RemoNet::SyncTime, _internal_metadata_),
  950. ~0u, // no _extensions_
  951. ~0u, // no _oneof_case_
  952. ~0u, // no _weak_field_map_
  953. ~0u, // no _inlined_string_donated_
  954. PROTOBUF_FIELD_OFFSET(::RemoNet::SyncTime, tm_sec_),
  955. PROTOBUF_FIELD_OFFSET(::RemoNet::SyncTime, tm_min_),
  956. PROTOBUF_FIELD_OFFSET(::RemoNet::SyncTime, tm_hour_),
  957. PROTOBUF_FIELD_OFFSET(::RemoNet::SyncTime, tm_mday_),
  958. PROTOBUF_FIELD_OFFSET(::RemoNet::SyncTime, tm_mon_),
  959. PROTOBUF_FIELD_OFFSET(::RemoNet::SyncTime, tm_year_),
  960. PROTOBUF_FIELD_OFFSET(::RemoNet::SyncTime, tm_wday_),
  961. PROTOBUF_FIELD_OFFSET(::RemoNet::SyncTime, tm_yday_),
  962. PROTOBUF_FIELD_OFFSET(::RemoNet::SyncTime, tm_isdst_),
  963. PROTOBUF_FIELD_OFFSET(::RemoNet::SyncTime, update_time_),
  964. ~0u, // no _has_bits_
  965. PROTOBUF_FIELD_OFFSET(::RemoNet::CCAskDataChannel, _internal_metadata_),
  966. ~0u, // no _extensions_
  967. ~0u, // no _oneof_case_
  968. ~0u, // no _weak_field_map_
  969. ~0u, // no _inlined_string_donated_
  970. ~0u, // no _has_bits_
  971. PROTOBUF_FIELD_OFFSET(::RemoNet::IMuMessage, _internal_metadata_),
  972. ~0u, // no _extensions_
  973. ~0u, // no _oneof_case_
  974. ~0u, // no _weak_field_map_
  975. ~0u, // no _inlined_string_donated_
  976. PROTOBUF_FIELD_OFFSET(::RemoNet::IMuMessage, rx_),
  977. PROTOBUF_FIELD_OFFSET(::RemoNet::IMuMessage, ry_),
  978. ~0u, // no _has_bits_
  979. PROTOBUF_FIELD_OFFSET(::RemoNet::CCPing, _internal_metadata_),
  980. ~0u, // no _extensions_
  981. ~0u, // no _oneof_case_
  982. ~0u, // no _weak_field_map_
  983. ~0u, // no _inlined_string_donated_
  984. PROTOBUF_FIELD_OFFSET(::RemoNet::CCPing, tick_),
  985. PROTOBUF_FIELD_OFFSET(::RemoNet::CCPing, temp_),
  986. ~0u, // no _has_bits_
  987. PROTOBUF_FIELD_OFFSET(::RemoNet::radar_node, _internal_metadata_),
  988. ~0u, // no _extensions_
  989. ~0u, // no _oneof_case_
  990. ~0u, // no _weak_field_map_
  991. ~0u, // no _inlined_string_donated_
  992. PROTOBUF_FIELD_OFFSET(::RemoNet::radar_node, id_),
  993. PROTOBUF_FIELD_OFFSET(::RemoNet::radar_node, range_),
  994. ~0u, // no _has_bits_
  995. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRadarMessage, _internal_metadata_),
  996. ~0u, // no _extensions_
  997. ~0u, // no _oneof_case_
  998. ~0u, // no _weak_field_map_
  999. ~0u, // no _inlined_string_donated_
  1000. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRadarMessage, radar0_),
  1001. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRadarMessage, radar1_),
  1002. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRadarMessage, radar2_),
  1003. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRadarMessage, radar3_),
  1004. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRadarMessage, radar4_),
  1005. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRadarMessage, radar5_),
  1006. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRadarMessage, radar6_),
  1007. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRadarMessage, radar7_),
  1008. ~0u, // no _has_bits_
  1009. PROTOBUF_FIELD_OFFSET(::RemoNet::CCSensor, _internal_metadata_),
  1010. ~0u, // no _extensions_
  1011. ~0u, // no _oneof_case_
  1012. ~0u, // no _weak_field_map_
  1013. ~0u, // no _inlined_string_donated_
  1014. PROTOBUF_FIELD_OFFSET(::RemoNet::CCSensor, node_),
  1015. PROTOBUF_FIELD_OFFSET(::RemoNet::CCSensor, left_encode_),
  1016. PROTOBUF_FIELD_OFFSET(::RemoNet::CCSensor, right_encode_),
  1017. ~0u, // no _has_bits_
  1018. PROTOBUF_FIELD_OFFSET(::RemoNet::CCSwitch, _internal_metadata_),
  1019. ~0u, // no _extensions_
  1020. ~0u, // no _oneof_case_
  1021. ~0u, // no _weak_field_map_
  1022. ~0u, // no _inlined_string_donated_
  1023. PROTOBUF_FIELD_OFFSET(::RemoNet::CCSwitch, front_),
  1024. ~0u, // no _has_bits_
  1025. PROTOBUF_FIELD_OFFSET(::RemoNet::State, _internal_metadata_),
  1026. ~0u, // no _extensions_
  1027. ~0u, // no _oneof_case_
  1028. ~0u, // no _weak_field_map_
  1029. ~0u, // no _inlined_string_donated_
  1030. PROTOBUF_FIELD_OFFSET(::RemoNet::State, engine_speed_),
  1031. PROTOBUF_FIELD_OFFSET(::RemoNet::State, travel_speed_),
  1032. PROTOBUF_FIELD_OFFSET(::RemoNet::State, fuel_level_),
  1033. PROTOBUF_FIELD_OFFSET(::RemoNet::State, engine_temperature_),
  1034. PROTOBUF_FIELD_OFFSET(::RemoNet::State, hydraulic_oil_temperature_),
  1035. PROTOBUF_FIELD_OFFSET(::RemoNet::State, main_pump_1_pressure_),
  1036. PROTOBUF_FIELD_OFFSET(::RemoNet::State, main_pump_2_pressure_),
  1037. PROTOBUF_FIELD_OFFSET(::RemoNet::State, hand_gear_),
  1038. PROTOBUF_FIELD_OFFSET(::RemoNet::State, actual_gear_),
  1039. PROTOBUF_FIELD_OFFSET(::RemoNet::State, gripper_height_),
  1040. PROTOBUF_FIELD_OFFSET(::RemoNet::State, amplitude_),
  1041. PROTOBUF_FIELD_OFFSET(::RemoNet::State, boom_angle_),
  1042. PROTOBUF_FIELD_OFFSET(::RemoNet::State, stick_angle_),
  1043. PROTOBUF_FIELD_OFFSET(::RemoNet::State, idle_protection_),
  1044. PROTOBUF_FIELD_OFFSET(::RemoNet::State, front_toggle_),
  1045. PROTOBUF_FIELD_OFFSET(::RemoNet::State, back_toggle_),
  1046. PROTOBUF_FIELD_OFFSET(::RemoNet::State, error_buff_),
  1047. PROTOBUF_FIELD_OFFSET(::RemoNet::State, interlock_),
  1048. PROTOBUF_FIELD_OFFSET(::RemoNet::State, safety_switch_),
  1049. PROTOBUF_FIELD_OFFSET(::RemoNet::State, arm_lift_pilot_),
  1050. PROTOBUF_FIELD_OFFSET(::RemoNet::State, arm_lowering_pilot_),
  1051. PROTOBUF_FIELD_OFFSET(::RemoNet::State, lever_lifting_pilot_),
  1052. PROTOBUF_FIELD_OFFSET(::RemoNet::State, rod_lowering_pilot_),
  1053. PROTOBUF_FIELD_OFFSET(::RemoNet::State, left_rotary_pilot_),
  1054. PROTOBUF_FIELD_OFFSET(::RemoNet::State, right_rotary_pilot_),
  1055. PROTOBUF_FIELD_OFFSET(::RemoNet::State, grab_open_pilot_),
  1056. PROTOBUF_FIELD_OFFSET(::RemoNet::State, grab_close_pilot_),
  1057. PROTOBUF_FIELD_OFFSET(::RemoNet::State, safety_valves_),
  1058. PROTOBUF_FIELD_OFFSET(::RemoNet::State, function_code_),
  1059. PROTOBUF_FIELD_OFFSET(::RemoNet::State, main_add_),
  1060. PROTOBUF_FIELD_OFFSET(::RemoNet::State, sub_add_),
  1061. PROTOBUF_FIELD_OFFSET(::RemoNet::State, paramter_),
  1062. PROTOBUF_FIELD_OFFSET(::RemoNet::State, engine_spn_),
  1063. PROTOBUF_FIELD_OFFSET(::RemoNet::State, engine_fmi_),
  1064. PROTOBUF_FIELD_OFFSET(::RemoNet::State, engine_num_),
  1065. PROTOBUF_FIELD_OFFSET(::RemoNet::State, p_flameout_),
  1066. PROTOBUF_FIELD_OFFSET(::RemoNet::State, engine_start_),
  1067. PROTOBUF_FIELD_OFFSET(::RemoNet::State, emergency_signal_),
  1068. PROTOBUF_FIELD_OFFSET(::RemoNet::State, preheating_monitoring_),
  1069. PROTOBUF_FIELD_OFFSET(::RemoNet::State, park_switch_),
  1070. PROTOBUF_FIELD_OFFSET(::RemoNet::State, safety_bar_lock_),
  1071. PROTOBUF_FIELD_OFFSET(::RemoNet::State, forward_gear_),
  1072. PROTOBUF_FIELD_OFFSET(::RemoNet::State, backward_gear_),
  1073. PROTOBUF_FIELD_OFFSET(::RemoNet::State, first_gear_),
  1074. PROTOBUF_FIELD_OFFSET(::RemoNet::State, sencond_gear_),
  1075. PROTOBUF_FIELD_OFFSET(::RemoNet::State, n_gear_),
  1076. PROTOBUF_FIELD_OFFSET(::RemoNet::State, cabin_end_),
  1077. PROTOBUF_FIELD_OFFSET(::RemoNet::State, cab_end_),
  1078. PROTOBUF_FIELD_OFFSET(::RemoNet::State, reserve_),
  1079. PROTOBUF_FIELD_OFFSET(::RemoNet::State, for_left_outrigger_),
  1080. PROTOBUF_FIELD_OFFSET(::RemoNet::State, for_right_outrigger_),
  1081. PROTOBUF_FIELD_OFFSET(::RemoNet::State, back_left_outrigger_),
  1082. PROTOBUF_FIELD_OFFSET(::RemoNet::State, back_right_outrigger_),
  1083. PROTOBUF_FIELD_OFFSET(::RemoNet::State, cab_start_),
  1084. PROTOBUF_FIELD_OFFSET(::RemoNet::State, canbin_start_),
  1085. PROTOBUF_FIELD_OFFSET(::RemoNet::State, swinging_bridge_lock_),
  1086. PROTOBUF_FIELD_OFFSET(::RemoNet::State, cab_emery_),
  1087. PROTOBUF_FIELD_OFFSET(::RemoNet::State, safety_bypass_),
  1088. PROTOBUF_FIELD_OFFSET(::RemoNet::State, clear_alarm_),
  1089. PROTOBUF_FIELD_OFFSET(::RemoNet::State, front_wheel_steering_),
  1090. PROTOBUF_FIELD_OFFSET(::RemoNet::State, back_wheel_steering_),
  1091. PROTOBUF_FIELD_OFFSET(::RemoNet::State, same_steering_),
  1092. PROTOBUF_FIELD_OFFSET(::RemoNet::State, reverse_steering_),
  1093. PROTOBUF_FIELD_OFFSET(::RemoNet::State, sound_signal_alarm_),
  1094. PROTOBUF_FIELD_OFFSET(::RemoNet::State, rod_intake_limit_valve_),
  1095. PROTOBUF_FIELD_OFFSET(::RemoNet::State, rod_outtake_limit_valve_),
  1096. PROTOBUF_FIELD_OFFSET(::RemoNet::State, boom_lift_limit_valve_),
  1097. PROTOBUF_FIELD_OFFSET(::RemoNet::State, boom_out_limit_valve_),
  1098. PROTOBUF_FIELD_OFFSET(::RemoNet::State, cab_emery_value_),
  1099. PROTOBUF_FIELD_OFFSET(::RemoNet::State, charging_valve_),
  1100. PROTOBUF_FIELD_OFFSET(::RemoNet::State, parking_valve_),
  1101. PROTOBUF_FIELD_OFFSET(::RemoNet::State, parking_back_signal_),
  1102. PROTOBUF_FIELD_OFFSET(::RemoNet::State, brake_signal_),
  1103. PROTOBUF_FIELD_OFFSET(::RemoNet::State, power_delay_),
  1104. PROTOBUF_FIELD_OFFSET(::RemoNet::State, flash_signal_),
  1105. PROTOBUF_FIELD_OFFSET(::RemoNet::State, left_for_outrigger_value_),
  1106. PROTOBUF_FIELD_OFFSET(::RemoNet::State, right_for_outrigger_value_),
  1107. PROTOBUF_FIELD_OFFSET(::RemoNet::State, left_back_outrigger_value_),
  1108. PROTOBUF_FIELD_OFFSET(::RemoNet::State, right_back_outrigger_value_),
  1109. PROTOBUF_FIELD_OFFSET(::RemoNet::State, for_steering_value_),
  1110. PROTOBUF_FIELD_OFFSET(::RemoNet::State, same_steering_value_),
  1111. PROTOBUF_FIELD_OFFSET(::RemoNet::State, rever_steering_value_),
  1112. PROTOBUF_FIELD_OFFSET(::RemoNet::State, first_gear_solenoid_valve_),
  1113. PROTOBUF_FIELD_OFFSET(::RemoNet::State, sen_gear_solenoid_valve_),
  1114. PROTOBUF_FIELD_OFFSET(::RemoNet::State, grab_rotary_switch_valve_),
  1115. PROTOBUF_FIELD_OFFSET(::RemoNet::LidarPoint, _has_bits_),
  1116. PROTOBUF_FIELD_OFFSET(::RemoNet::LidarPoint, _internal_metadata_),
  1117. ~0u, // no _extensions_
  1118. ~0u, // no _oneof_case_
  1119. ~0u, // no _weak_field_map_
  1120. ~0u, // no _inlined_string_donated_
  1121. PROTOBUF_FIELD_OFFSET(::RemoNet::LidarPoint, timestamp_),
  1122. PROTOBUF_FIELD_OFFSET(::RemoNet::LidarPoint, seq_),
  1123. PROTOBUF_FIELD_OFFSET(::RemoNet::LidarPoint, frame_id_),
  1124. PROTOBUF_FIELD_OFFSET(::RemoNet::LidarPoint, height_),
  1125. PROTOBUF_FIELD_OFFSET(::RemoNet::LidarPoint, width_),
  1126. PROTOBUF_FIELD_OFFSET(::RemoNet::LidarPoint, is_dense_),
  1127. PROTOBUF_FIELD_OFFSET(::RemoNet::LidarPoint, is_left_),
  1128. PROTOBUF_FIELD_OFFSET(::RemoNet::LidarPoint, data_),
  1129. 1,
  1130. 2,
  1131. 0,
  1132. 3,
  1133. 4,
  1134. 5,
  1135. 6,
  1136. ~0u,
  1137. ~0u, // no _has_bits_
  1138. PROTOBUF_FIELD_OFFSET(::RemoNet::SensorStop, _internal_metadata_),
  1139. ~0u, // no _extensions_
  1140. ~0u, // no _oneof_case_
  1141. ~0u, // no _weak_field_map_
  1142. ~0u, // no _inlined_string_donated_
  1143. ~0u, // no _has_bits_
  1144. PROTOBUF_FIELD_OFFSET(::RemoNet::StopAck, _internal_metadata_),
  1145. ~0u, // no _extensions_
  1146. ~0u, // no _oneof_case_
  1147. ~0u, // no _weak_field_map_
  1148. ~0u, // no _inlined_string_donated_
  1149. ~0u, // no _has_bits_
  1150. PROTOBUF_FIELD_OFFSET(::RemoNet::can_net_frame, _internal_metadata_),
  1151. ~0u, // no _extensions_
  1152. ~0u, // no _oneof_case_
  1153. ~0u, // no _weak_field_map_
  1154. ~0u, // no _inlined_string_donated_
  1155. PROTOBUF_FIELD_OFFSET(::RemoNet::can_net_frame, dlc_),
  1156. PROTOBUF_FIELD_OFFSET(::RemoNet::can_net_frame, canid_),
  1157. PROTOBUF_FIELD_OFFSET(::RemoNet::can_net_frame, data_),
  1158. ~0u, // no _has_bits_
  1159. PROTOBUF_FIELD_OFFSET(::RemoNet::CCCanMsg, _internal_metadata_),
  1160. ~0u, // no _extensions_
  1161. ~0u, // no _oneof_case_
  1162. ~0u, // no _weak_field_map_
  1163. ~0u, // no _inlined_string_donated_
  1164. PROTOBUF_FIELD_OFFSET(::RemoNet::CCCanMsg, frams_),
  1165. ~0u, // no _has_bits_
  1166. PROTOBUF_FIELD_OFFSET(::RemoNet::SCAddRobot, _internal_metadata_),
  1167. ~0u, // no _extensions_
  1168. ~0u, // no _oneof_case_
  1169. ~0u, // no _weak_field_map_
  1170. ~0u, // no _inlined_string_donated_
  1171. PROTOBUF_FIELD_OFFSET(::RemoNet::SCAddRobot, robot_),
  1172. ~0u, // no _has_bits_
  1173. PROTOBUF_FIELD_OFFSET(::RemoNet::SCDelRobot, _internal_metadata_),
  1174. ~0u, // no _extensions_
  1175. ~0u, // no _oneof_case_
  1176. ~0u, // no _weak_field_map_
  1177. ~0u, // no _inlined_string_donated_
  1178. PROTOBUF_FIELD_OFFSET(::RemoNet::SCDelRobot, peer_),
  1179. PROTOBUF_FIELD_OFFSET(::RemoNet::SCDelRobot, egotype_),
  1180. };
  1181. static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  1182. { 0, -1, -1, sizeof(::RemoNet::SwitchDriver)},
  1183. { 7, -1, -1, sizeof(::RemoNet::NDTPos)},
  1184. { 20, -1, -1, sizeof(::RemoNet::CSMoveBegin)},
  1185. { 29, -1, -1, sizeof(::RemoNet::MoveRet)},
  1186. { 37, -1, -1, sizeof(::RemoNet::CSMoveEnd)},
  1187. { 46, -1, -1, sizeof(::RemoNet::SCMoveBegin)},
  1188. { 57, -1, -1, sizeof(::RemoNet::SCMoveEnd)},
  1189. { 66, -1, -1, sizeof(::RemoNet::CSAdd)},
  1190. { 76, -1, -1, sizeof(::RemoNet::SCAdd)},
  1191. { 86, -1, -1, sizeof(::RemoNet::SCKickOff)},
  1192. { 92, -1, -1, sizeof(::RemoNet::CSState)},
  1193. { 100, -1, -1, sizeof(::RemoNet::SCState)},
  1194. { 108, -1, -1, sizeof(::RemoNet::Robot)},
  1195. { 119, -1, -1, sizeof(::RemoNet::CSRobot)},
  1196. { 125, -1, -1, sizeof(::RemoNet::SCRobot)},
  1197. { 132, -1, -1, sizeof(::RemoNet::CSSign)},
  1198. { 140, -1, -1, sizeof(::RemoNet::SCSign)},
  1199. { 149, -1, -1, sizeof(::RemoNet::CSReq)},
  1200. { 158, -1, -1, sizeof(::RemoNet::SCReq)},
  1201. { 167, -1, -1, sizeof(::RemoNet::CSRep)},
  1202. { 177, -1, -1, sizeof(::RemoNet::SCRep)},
  1203. { 187, -1, -1, sizeof(::RemoNet::Offer)},
  1204. { 197, -1, -1, sizeof(::RemoNet::Answer)},
  1205. { 207, -1, -1, sizeof(::RemoNet::Candidate)},
  1206. { 220, -1, -1, sizeof(::RemoNet::Leave)},
  1207. { 228, -1, -1, sizeof(::RemoNet::Close)},
  1208. { 237, -1, -1, sizeof(::RemoNet::TestTextReq)},
  1209. { 244, -1, -1, sizeof(::RemoNet::SyncTime)},
  1210. { 260, -1, -1, sizeof(::RemoNet::CCAskDataChannel)},
  1211. { 266, -1, -1, sizeof(::RemoNet::IMuMessage)},
  1212. { 274, -1, -1, sizeof(::RemoNet::CCPing)},
  1213. { 282, -1, -1, sizeof(::RemoNet::radar_node)},
  1214. { 290, -1, -1, sizeof(::RemoNet::CCRadarMessage)},
  1215. { 304, -1, -1, sizeof(::RemoNet::CCSensor)},
  1216. { 313, -1, -1, sizeof(::RemoNet::CCSwitch)},
  1217. { 320, -1, -1, sizeof(::RemoNet::State)},
  1218. { 411, 425, -1, sizeof(::RemoNet::LidarPoint)},
  1219. { 433, -1, -1, sizeof(::RemoNet::SensorStop)},
  1220. { 439, -1, -1, sizeof(::RemoNet::StopAck)},
  1221. { 445, -1, -1, sizeof(::RemoNet::can_net_frame)},
  1222. { 454, -1, -1, sizeof(::RemoNet::CCCanMsg)},
  1223. { 461, -1, -1, sizeof(::RemoNet::SCAddRobot)},
  1224. { 468, -1, -1, sizeof(::RemoNet::SCDelRobot)},
  1225. };
  1226. static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
  1227. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SwitchDriver_default_instance_),
  1228. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_NDTPos_default_instance_),
  1229. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CSMoveBegin_default_instance_),
  1230. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_MoveRet_default_instance_),
  1231. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CSMoveEnd_default_instance_),
  1232. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SCMoveBegin_default_instance_),
  1233. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SCMoveEnd_default_instance_),
  1234. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CSAdd_default_instance_),
  1235. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SCAdd_default_instance_),
  1236. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SCKickOff_default_instance_),
  1237. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CSState_default_instance_),
  1238. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SCState_default_instance_),
  1239. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_Robot_default_instance_),
  1240. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CSRobot_default_instance_),
  1241. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SCRobot_default_instance_),
  1242. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CSSign_default_instance_),
  1243. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SCSign_default_instance_),
  1244. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CSReq_default_instance_),
  1245. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SCReq_default_instance_),
  1246. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CSRep_default_instance_),
  1247. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SCRep_default_instance_),
  1248. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_Offer_default_instance_),
  1249. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_Answer_default_instance_),
  1250. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_Candidate_default_instance_),
  1251. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_Leave_default_instance_),
  1252. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_Close_default_instance_),
  1253. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_TestTextReq_default_instance_),
  1254. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SyncTime_default_instance_),
  1255. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CCAskDataChannel_default_instance_),
  1256. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_IMuMessage_default_instance_),
  1257. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CCPing_default_instance_),
  1258. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_radar_node_default_instance_),
  1259. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CCRadarMessage_default_instance_),
  1260. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CCSensor_default_instance_),
  1261. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CCSwitch_default_instance_),
  1262. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_State_default_instance_),
  1263. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_LidarPoint_default_instance_),
  1264. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SensorStop_default_instance_),
  1265. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_StopAck_default_instance_),
  1266. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_can_net_frame_default_instance_),
  1267. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CCCanMsg_default_instance_),
  1268. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SCAddRobot_default_instance_),
  1269. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SCDelRobot_default_instance_),
  1270. };
  1271. const char descriptor_table_protodef_protocol_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
  1272. "\n\016protocol.proto\022\007RemoNet\"\034\n\014SwitchDrive"
  1273. "r\022\014\n\004peer\030\001 \001(\005\"Y\n\006NDTPos\022\t\n\001x\030\001 \001(\002\022\t\n\001"
  1274. "y\030\002 \001(\002\022\t\n\001z\030\003 \001(\002\022\n\n\002rx\030\004 \001(\002\022\n\n\002ry\030\005 \001"
  1275. "(\002\022\n\n\002rz\030\006 \001(\002\022\n\n\002rw\030\007 \001(\002\"5\n\013CSMoveBegi"
  1276. "n\022\014\n\004peer\030\001 \001(\005\022\014\n\004area\030\002 \001(\005\022\n\n\002no\030\003 \001("
  1277. "\005\"8\n\007MoveRet\022\037\n\004desc\030\001 \001(\0162\021.RemoNet.Mov"
  1278. "eDesc\022\014\n\004peer\030\002 \001(\005\"2\n\tCSMoveEnd\022\014\n\004area"
  1279. "\030\001 \001(\005\022\n\n\002no\030\002 \001(\005\022\013\n\003uid\030\003 \001(\005\"J\n\013SCMov"
  1280. "eBegin\022\013\n\003uid\030\001 \001(\005\022\014\n\004area\030\002 \001(\005\022\n\n\002no\030"
  1281. "\003 \001(\005\022\t\n\001x\030\004 \001(\002\022\t\n\001y\030\005 \001(\002\"2\n\tSCMoveEnd"
  1282. "\022\014\n\004area\030\001 \001(\005\022\n\n\002no\030\002 \001(\005\022\013\n\003uid\030\003 \001(\005\""
  1283. "@\n\005CSAdd\022\016\n\006serial\030\001 \001(\t\022\014\n\004type\030\002 \001(\005\022\014"
  1284. "\n\004name\030\003 \001(\t\022\013\n\003car\030\004 \001(\005\"<\n\005SCAdd\022\013\n\003re"
  1285. "t\030\001 \001(\010\022\013\n\003uid\030\002 \001(\005\022\014\n\004name\030\003 \001(\t\022\013\n\003ca"
  1286. "r\030\004 \001(\005\"\013\n\tSCKickOff\"9\n\007CSState\022!\n\005state"
  1287. "\030\001 \001(\0162\022.RemoNet.UserState\022\013\n\003uid\030\002 \001(\005\""
  1288. "9\n\007SCState\022!\n\005state\030\001 \001(\0162\022.RemoNet.User"
  1289. "State\022\013\n\003uid\030\002 \001(\005\"d\n\005Robot\022\013\n\003rid\030\001 \001(\005"
  1290. "\022\014\n\004name\030\002 \001(\t\022\014\n\004type\030\003 \001(\005\022!\n\005state\030\004 "
  1291. "\001(\0162\022.RemoNet.UserState\022\017\n\007carType\030\005 \001(\005"
  1292. "\"\t\n\007CSRobot\"(\n\007SCRobot\022\035\n\005robot\030\001 \003(\0132\016."
  1293. "RemoNet.Robot\"+\n\006CSSign\022\017\n\007account\030\001 \001(\t"
  1294. "\022\020\n\010password\030\002 \001(\t\"0\n\006SCSign\022\013\n\003ret\030\001 \001("
  1295. "\010\022\013\n\003uid\030\002 \001(\005\022\014\n\004name\030\003 \001(\t\"5\n\005CSReq\022\014\n"
  1296. "\004peer\030\001 \001(\005\022\r\n\005index\030\002 \001(\005\022\017\n\007egotype\030\003 "
  1297. "\001(\005\"H\n\005SCReq\022 \n\004desc\030\001 \001(\0162\022.RemoNet.Vid"
  1298. "eoDesc\022\014\n\004peer\030\002 \001(\005\022\017\n\007egotype\030\003 \001(\005\"W\n"
  1299. "\005CSRep\022 \n\004desc\030\001 \001(\0162\022.RemoNet.VideoDesc"
  1300. "\022\014\n\004peer\030\002 \001(\005\022\r\n\005index\030\003 \001(\005\022\017\n\007egotype"
  1301. "\030\004 \001(\005\"W\n\005SCRep\022 \n\004desc\030\001 \001(\0162\022.RemoNet."
  1302. "VideoDesc\022\r\n\005index\030\002 \001(\005\022\017\n\007egotype\030\003 \001("
  1303. "\005\022\014\n\004peer\030\004 \001(\005\"\?\n\005Offer\022\r\n\005index\030\001 \001(\005\022"
  1304. "\014\n\004peer\030\002 \001(\005\022\014\n\004type\030\003 \001(\t\022\013\n\003sdp\030\004 \001(\t"
  1305. "\"@\n\006Answer\022\r\n\005index\030\001 \001(\005\022\014\n\004peer\030\002 \001(\005\022"
  1306. "\014\n\004type\030\003 \001(\t\022\013\n\003sdp\030\004 \001(\t\"\201\001\n\tCandidate"
  1307. "\022\r\n\005index\030\001 \001(\005\022\014\n\004peer\030\002 \001(\005\022\014\n\004type\030\003 "
  1308. "\001(\t\022\021\n\tcandidate\030\004 \001(\t\022\025\n\rsdpMLineIndex\030"
  1309. "\005 \001(\005\022\016\n\006sdpMid\030\006 \001(\t\022\017\n\007egotype\030\007 \001(\005\"&"
  1310. "\n\005Leave\022\014\n\004peer\030\001 \001(\005\022\017\n\007egotype\030\002 \001(\005\"5"
  1311. "\n\005Close\022\014\n\004peer\030\001 \001(\005\022\017\n\007egotype\030\002 \001(\005\022\r"
  1312. "\n\005index\030\003 \001(\005\"\033\n\013TestTextReq\022\014\n\004text\030\001 \001"
  1313. "(\t\"\266\001\n\010SyncTime\022\016\n\006tm_sec\030\001 \001(\005\022\016\n\006tm_mi"
  1314. "n\030\002 \001(\005\022\017\n\007tm_hour\030\003 \001(\005\022\017\n\007tm_mday\030\004 \001("
  1315. "\005\022\016\n\006tm_mon\030\005 \001(\005\022\017\n\007tm_year\030\006 \001(\005\022\017\n\007tm"
  1316. "_wday\030\007 \001(\005\022\017\n\007tm_yday\030\010 \001(\005\022\020\n\010tm_isdst"
  1317. "\030\t \001(\005\022\023\n\013update_time\030\n \001(\010\"\022\n\020CCAskData"
  1318. "Channel\"$\n\nIMuMessage\022\n\n\002rx\030\001 \001(\002\022\n\n\002ry\030"
  1319. "\002 \001(\002\"$\n\006CCPing\022\014\n\004tick\030\001 \001(\003\022\014\n\004temp\030\002 "
  1320. "\001(\001\"\'\n\nradar_node\022\n\n\002id\030\001 \001(\005\022\r\n\005range\030\002"
  1321. " \001(\005\"\220\001\n\016CCRadarMessage\022\016\n\006radar0\030\001 \001(\005\022"
  1322. "\016\n\006radar1\030\002 \001(\005\022\016\n\006radar2\030\003 \001(\005\022\016\n\006radar"
  1323. "3\030\004 \001(\005\022\016\n\006radar4\030\005 \001(\005\022\016\n\006radar5\030\006 \001(\005\022"
  1324. "\016\n\006radar6\030\007 \001(\005\022\016\n\006radar7\030\010 \001(\005\"X\n\010CCSen"
  1325. "sor\022!\n\004node\030\001 \003(\0132\023.RemoNet.radar_node\022\023"
  1326. "\n\013left_encode\030\002 \001(\005\022\024\n\014right_encode\030\003 \001("
  1327. "\005\"\031\n\010CCSwitch\022\r\n\005front\030\001 \001(\010\"\322\020\n\005State\022\024"
  1328. "\n\014engine_speed\030\001 \001(\005\022\024\n\014travel_speed\030\002 \001"
  1329. "(\005\022\022\n\nfuel_level\030\003 \001(\005\022\032\n\022engine_tempera"
  1330. "ture\030\004 \001(\005\022!\n\031hydraulic_oil_temperature\030"
  1331. "\005 \001(\005\022\034\n\024main_pump_1_pressure\030\006 \001(\005\022\034\n\024m"
  1332. "ain_pump_2_pressure\030\007 \001(\005\022\021\n\thand_gear\030\010"
  1333. " \001(\005\022\023\n\013actual_gear\030\t \001(\005\022\026\n\016gripper_hei"
  1334. "ght\030\n \001(\002\022\021\n\tamplitude\030\013 \001(\002\022\022\n\nboom_ang"
  1335. "le\030\014 \001(\005\022\023\n\013stick_angle\030\r \001(\005\022\027\n\017idle_pr"
  1336. "otection\030\016 \001(\005\022\024\n\014front_toggle\030\017 \001(\005\022\023\n\013"
  1337. "back_toggle\030\020 \001(\005\022\022\n\nerror_Buff\030\021 \001(\014\022\021\n"
  1338. "\tinterlock\030\022 \001(\005\022\025\n\rsafety_switch\030\023 \001(\005\022"
  1339. "\026\n\016arm_lift_pilot\030\024 \001(\005\022\032\n\022arm_lowering_"
  1340. "pilot\030\025 \001(\005\022\033\n\023lever_lifting_pilot\030\026 \001(\005"
  1341. "\022\032\n\022rod_lowering_pilot\030\027 \001(\005\022\031\n\021left_rot"
  1342. "ary_pilot\030\030 \001(\005\022\032\n\022right_rotary_pilot\030\031 "
  1343. "\001(\005\022\027\n\017grab_open_pilot\030\032 \001(\005\022\030\n\020grab_clo"
  1344. "se_pilot\030\033 \001(\005\022\025\n\rsafety_valves\030\034 \001(\005\022\025\n"
  1345. "\rfunction_code\030\035 \001(\005\022\020\n\010main_add\030\036 \001(\005\022\017"
  1346. "\n\007sub_add\030\037 \001(\005\022\020\n\010paramter\030 \001(\005\022\022\n\neng"
  1347. "ine_spn\030! \001(\005\022\022\n\nengine_fmi\030\" \001(\005\022\022\n\neng"
  1348. "ine_num\030# \001(\005\022\022\n\np_flameout\030$ \001(\005\022\024\n\014eng"
  1349. "ine_start\030% \001(\005\022\030\n\020emergency_signal\030& \001("
  1350. "\005\022\035\n\025preheating_monitoring\030\' \001(\005\022\023\n\013park"
  1351. "_switch\030( \001(\005\022\027\n\017safety_bar_lock\030) \001(\005\022\024"
  1352. "\n\014forward_gear\030* \001(\005\022\025\n\rbackward_gear\030+ "
  1353. "\001(\005\022\022\n\nfirst_gear\030, \001(\005\022\024\n\014sencond_gear\030"
  1354. "- \001(\005\022\016\n\006n_gear\030. \001(\005\022\021\n\tcabin_end\030/ \001(\005"
  1355. "\022\017\n\007cab_end\0300 \001(\005\022\017\n\007reserve\0301 \001(\005\022\032\n\022fo"
  1356. "r_left_outrigger\0302 \001(\005\022\033\n\023for_right_outr"
  1357. "igger\0303 \001(\005\022\033\n\023back_left_outrigger\0304 \001(\005"
  1358. "\022\034\n\024back_right_outrigger\0305 \001(\005\022\021\n\tcab_st"
  1359. "art\0306 \001(\005\022\024\n\014canbin_start\0307 \001(\005\022\034\n\024swing"
  1360. "ing_bridge_lock\0308 \001(\005\022\021\n\tcab_emery\0309 \001(\005"
  1361. "\022\025\n\rsafety_bypass\030: \001(\005\022\023\n\013clear_alarm\030;"
  1362. " \001(\005\022\034\n\024front_wheel_steering\030< \001(\005\022\033\n\023ba"
  1363. "ck_wheel_steering\030= \001(\005\022\025\n\rsame_steering"
  1364. "\030> \001(\005\022\030\n\020reverse_steering\030\? \001(\005\022\032\n\022soun"
  1365. "d_signal_alarm\030@ \001(\005\022\036\n\026rod_intake_limit"
  1366. "_valve\030A \001(\005\022\037\n\027rod_outtake_limit_valve\030"
  1367. "B \001(\005\022\035\n\025boom_lift_limit_valve\030C \001(\005\022\034\n\024"
  1368. "boom_out_limit_valve\030D \001(\005\022\027\n\017cab_emery_"
  1369. "value\030E \001(\005\022\026\n\016charging_valve\030F \001(\005\022\025\n\rp"
  1370. "arking_valve\030G \001(\005\022\033\n\023parking_back_signa"
  1371. "l\030H \001(\005\022\024\n\014brake_signal\030I \001(\005\022\023\n\013power_d"
  1372. "elay\030J \001(\005\022\024\n\014flash_signal\030K \001(\005\022 \n\030left"
  1373. "_for_outrigger_value\030L \001(\005\022!\n\031right_for_"
  1374. "outrigger_value\030M \001(\005\022!\n\031left_back_outri"
  1375. "gger_value\030N \001(\005\022\"\n\032right_back_outrigger"
  1376. "_value\030O \001(\005\022\032\n\022for_steering_value\030P \001(\005"
  1377. "\022\033\n\023same_steering_value\030Q \001(\005\022\034\n\024rever_s"
  1378. "teering_value\030R \001(\005\022!\n\031first_gear_soleno"
  1379. "id_valve\030S \001(\005\022\037\n\027sen_gear_solenoid_valv"
  1380. "e\030T \001(\005\022 \n\030grab_rotary_switch_valve\030U \001("
  1381. "\005\"\202\002\n\nLidarPoint\022\026\n\ttimestamp\030\001 \001(\001H\000\210\001\001"
  1382. "\022\020\n\003seq\030\002 \001(\rH\001\210\001\001\022\025\n\010frame_id\030\003 \001(\tH\002\210\001"
  1383. "\001\022\023\n\006height\030\004 \001(\rH\003\210\001\001\022\022\n\005width\030\005 \001(\rH\004\210"
  1384. "\001\001\022\025\n\010is_dense\030\006 \001(\010H\005\210\001\001\022\024\n\007is_left\030\007 \001"
  1385. "(\010H\006\210\001\001\022\014\n\004data\030\010 \003(\002B\014\n\n_timestampB\006\n\004_"
  1386. "seqB\013\n\t_frame_idB\t\n\007_heightB\010\n\006_widthB\013\n"
  1387. "\t_is_denseB\n\n\010_is_left\"\014\n\nSensorStop\"\t\n\007"
  1388. "StopAck\"9\n\rcan_net_frame\022\013\n\003dlc\030\001 \001(\021\022\r\n"
  1389. "\005canid\030\002 \001(\005\022\014\n\004data\030\003 \001(\014\"1\n\010CCCanMsg\022%"
  1390. "\n\005frams\030\001 \003(\0132\026.RemoNet.can_net_frame\"+\n"
  1391. "\nSCAddRobot\022\035\n\005robot\030\001 \001(\0132\016.RemoNet.Rob"
  1392. "ot\"+\n\nSCDelRobot\022\014\n\004peer\030\001 \001(\005\022\017\n\007egotyp"
  1393. "e\030\002 \001(\005*\303\002\n\tCSMessage\022\013\n\007CS_NONE\020\000\022\014\n\007CS"
  1394. "_Sign\020\320\017\022\013\n\006CS_Req\020\321\017\022\013\n\006CS_Rep\020\322\017\022\021\n\014CS"
  1395. "_CancelReq\020\323\017\022\r\n\010CS_Offer\020\324\017\022\016\n\tCS_Answe"
  1396. "r\020\325\017\022\021\n\014CS_Candidate\020\326\017\022\r\n\010CS_Leave\020\327\017\022\021"
  1397. "\n\014CS_KeepAlive\020\330\017\022\013\n\006CS_Add\020\331\017\022\r\n\010CS_Rob"
  1398. "ot\020\332\017\022\022\n\rCS_CloseVideo\020\333\017\022\021\n\014CS_MoveBegi"
  1399. "n\020\334\017\022\017\n\nCS_MoveEnd\020\335\017\022\r\n\010CS_State\020\336\017\022\024\n\017"
  1400. "CS_SwitchDriver\020\337\017\022\017\n\nCS_MoveRet\020\340\017\022\020\n\013C"
  1401. "S_SyncTime\020\341\017*\205\004\n\tSCMessage\022\013\n\007SC_NONE\020\000"
  1402. "\022\014\n\007SC_Sign\020\240\037\022\013\n\006SC_Req\020\241\037\022\013\n\006SC_Rep\020\242\037"
  1403. "\022\016\n\tSC_Cancel\020\243\037\022\r\n\010SC_Offer\020\244\037\022\016\n\tSC_An"
  1404. "swer\020\245\037\022\021\n\014SC_Candidate\020\246\037\022\013\n\006SC_Add\020\247\037\022"
  1405. "\r\n\010SC_Robot\020\250\037\022\021\n\014SC_NotifyReq\020\251\037\022\021\n\014SC_"
  1406. "NotifyRep\020\252\037\022\024\n\017SC_NotifyAnswer\020\253\037\022\023\n\016SC"
  1407. "_NotifyOffer\020\254\037\022\027\n\022SC_NotifyCandidate\020\255\037"
  1408. "\022\023\n\016SC_NotifyLeave\020\256\037\022\024\n\017SC_NotifyCancel"
  1409. "\020\257\037\022\021\n\014SC_NotifyAdd\020\260\037\022\021\n\014SC_NotifyDel\020\261"
  1410. "\037\022\030\n\023SC_NotifyCloseVideo\020\262\037\022\017\n\nSC_KickOf"
  1411. "f\020\263\037\022\021\n\014SC_MoveBegin\020\264\037\022\017\n\nSC_MoveEnd\020\265\037"
  1412. "\022\r\n\010SC_State\020\266\037\022\024\n\017SC_SwitchDriver\020\267\037\022\017\n"
  1413. "\nSC_MoveRet\020\270\037\022\023\n\016SC_NotifyState\020\271\037\022\020\n\013S"
  1414. "C_SyncTime\020\272\037*\376\001\n\tCCMessage\022\013\n\007CC_None\020\000"
  1415. "\022\014\n\007CC_Text\020\300>\022\013\n\006CC_CAN\020\301>\022\013\n\006CC_IMU\020\302>"
  1416. "\022\026\n\021CC_ASKDATACHANNEL\020\303>\022\024\n\017CC_Manipulat"
  1417. "ion\020\304>\022\r\n\010CC_Radar\020\305>\022\016\n\tCC_Switch\020\306>\022\014\n"
  1418. "\007CC_Ping\020\307>\022\022\n\rCC_SensorStop\020\310>\022\017\n\nCC_St"
  1419. "opACK\020\311>\022\r\n\010CC_Lidar\020\312>\022\016\n\tCC_CANMSG\020\313>\022"
  1420. "\r\n\010CC_STATE\020\314>\022\016\n\tCC_NDTPOS\020\315>*F\n\tVideoD"
  1421. "esc\022\006\n\002OK\020\000\022\010\n\004Busy\020\001\022\n\n\006Reject\020\002\022\013\n\007NoF"
  1422. "ound\020\003\022\016\n\nIsVideoing\020\004*D\n\010MoveDesc\022\013\n\007Mo"
  1423. "ve_OK\020\000\022\024\n\020Move_Encode_Fail\020\001\022\025\n\021Move_Un"
  1424. "know_Faile\020\002*M\n\tUserState\022\013\n\007Offline\020\000\022\010"
  1425. "\n\004Idle\020\001\022\n\n\006Remote\020\002\022\016\n\nAutomotive\020\003\022\r\n\t"
  1426. "AskRemote\020\004b\006proto3"
  1427. ;
  1428. static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_protocol_2eproto_once;
  1429. const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_protocol_2eproto = {
  1430. false, false, 6179, descriptor_table_protodef_protocol_2eproto, "protocol.proto",
  1431. &descriptor_table_protocol_2eproto_once, nullptr, 0, 43,
  1432. schemas, file_default_instances, TableStruct_protocol_2eproto::offsets,
  1433. file_level_metadata_protocol_2eproto, file_level_enum_descriptors_protocol_2eproto, file_level_service_descriptors_protocol_2eproto,
  1434. };
  1435. PROTOBUF_ATTRIBUTE_WEAK const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable* descriptor_table_protocol_2eproto_getter() {
  1436. return &descriptor_table_protocol_2eproto;
  1437. }
  1438. // Force running AddDescriptors() at dynamic initialization time.
  1439. PROTOBUF_ATTRIBUTE_INIT_PRIORITY static ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptorsRunner dynamic_init_dummy_protocol_2eproto(&descriptor_table_protocol_2eproto);
  1440. namespace RemoNet {
  1441. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* CSMessage_descriptor() {
  1442. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_protocol_2eproto);
  1443. return file_level_enum_descriptors_protocol_2eproto[0];
  1444. }
  1445. bool CSMessage_IsValid(int value) {
  1446. switch (value) {
  1447. case 0:
  1448. case 2000:
  1449. case 2001:
  1450. case 2002:
  1451. case 2003:
  1452. case 2004:
  1453. case 2005:
  1454. case 2006:
  1455. case 2007:
  1456. case 2008:
  1457. case 2009:
  1458. case 2010:
  1459. case 2011:
  1460. case 2012:
  1461. case 2013:
  1462. case 2014:
  1463. case 2015:
  1464. case 2016:
  1465. case 2017:
  1466. return true;
  1467. default:
  1468. return false;
  1469. }
  1470. }
  1471. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* SCMessage_descriptor() {
  1472. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_protocol_2eproto);
  1473. return file_level_enum_descriptors_protocol_2eproto[1];
  1474. }
  1475. bool SCMessage_IsValid(int value) {
  1476. switch (value) {
  1477. case 0:
  1478. case 4000:
  1479. case 4001:
  1480. case 4002:
  1481. case 4003:
  1482. case 4004:
  1483. case 4005:
  1484. case 4006:
  1485. case 4007:
  1486. case 4008:
  1487. case 4009:
  1488. case 4010:
  1489. case 4011:
  1490. case 4012:
  1491. case 4013:
  1492. case 4014:
  1493. case 4015:
  1494. case 4016:
  1495. case 4017:
  1496. case 4018:
  1497. case 4019:
  1498. case 4020:
  1499. case 4021:
  1500. case 4022:
  1501. case 4023:
  1502. case 4024:
  1503. case 4025:
  1504. case 4026:
  1505. return true;
  1506. default:
  1507. return false;
  1508. }
  1509. }
  1510. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* CCMessage_descriptor() {
  1511. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_protocol_2eproto);
  1512. return file_level_enum_descriptors_protocol_2eproto[2];
  1513. }
  1514. bool CCMessage_IsValid(int value) {
  1515. switch (value) {
  1516. case 0:
  1517. case 8000:
  1518. case 8001:
  1519. case 8002:
  1520. case 8003:
  1521. case 8004:
  1522. case 8005:
  1523. case 8006:
  1524. case 8007:
  1525. case 8008:
  1526. case 8009:
  1527. case 8010:
  1528. case 8011:
  1529. case 8012:
  1530. case 8013:
  1531. return true;
  1532. default:
  1533. return false;
  1534. }
  1535. }
  1536. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* VideoDesc_descriptor() {
  1537. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_protocol_2eproto);
  1538. return file_level_enum_descriptors_protocol_2eproto[3];
  1539. }
  1540. bool VideoDesc_IsValid(int value) {
  1541. switch (value) {
  1542. case 0:
  1543. case 1:
  1544. case 2:
  1545. case 3:
  1546. case 4:
  1547. return true;
  1548. default:
  1549. return false;
  1550. }
  1551. }
  1552. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* MoveDesc_descriptor() {
  1553. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_protocol_2eproto);
  1554. return file_level_enum_descriptors_protocol_2eproto[4];
  1555. }
  1556. bool MoveDesc_IsValid(int value) {
  1557. switch (value) {
  1558. case 0:
  1559. case 1:
  1560. case 2:
  1561. return true;
  1562. default:
  1563. return false;
  1564. }
  1565. }
  1566. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* UserState_descriptor() {
  1567. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_protocol_2eproto);
  1568. return file_level_enum_descriptors_protocol_2eproto[5];
  1569. }
  1570. bool UserState_IsValid(int value) {
  1571. switch (value) {
  1572. case 0:
  1573. case 1:
  1574. case 2:
  1575. case 3:
  1576. case 4:
  1577. return true;
  1578. default:
  1579. return false;
  1580. }
  1581. }
  1582. // ===================================================================
  1583. class SwitchDriver::_Internal {
  1584. public:
  1585. };
  1586. SwitchDriver::SwitchDriver(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  1587. bool is_message_owned)
  1588. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  1589. SharedCtor();
  1590. if (!is_message_owned) {
  1591. RegisterArenaDtor(arena);
  1592. }
  1593. // @@protoc_insertion_point(arena_constructor:RemoNet.SwitchDriver)
  1594. }
  1595. SwitchDriver::SwitchDriver(const SwitchDriver& from)
  1596. : ::PROTOBUF_NAMESPACE_ID::Message() {
  1597. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1598. peer_ = from.peer_;
  1599. // @@protoc_insertion_point(copy_constructor:RemoNet.SwitchDriver)
  1600. }
  1601. inline void SwitchDriver::SharedCtor() {
  1602. peer_ = 0;
  1603. }
  1604. SwitchDriver::~SwitchDriver() {
  1605. // @@protoc_insertion_point(destructor:RemoNet.SwitchDriver)
  1606. if (GetArenaForAllocation() != nullptr) return;
  1607. SharedDtor();
  1608. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1609. }
  1610. inline void SwitchDriver::SharedDtor() {
  1611. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  1612. }
  1613. void SwitchDriver::ArenaDtor(void* object) {
  1614. SwitchDriver* _this = reinterpret_cast< SwitchDriver* >(object);
  1615. (void)_this;
  1616. }
  1617. void SwitchDriver::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  1618. }
  1619. void SwitchDriver::SetCachedSize(int size) const {
  1620. _cached_size_.Set(size);
  1621. }
  1622. void SwitchDriver::Clear() {
  1623. // @@protoc_insertion_point(message_clear_start:RemoNet.SwitchDriver)
  1624. uint32_t cached_has_bits = 0;
  1625. // Prevent compiler warnings about cached_has_bits being unused
  1626. (void) cached_has_bits;
  1627. peer_ = 0;
  1628. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1629. }
  1630. const char* SwitchDriver::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  1631. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  1632. while (!ctx->Done(&ptr)) {
  1633. uint32_t tag;
  1634. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  1635. switch (tag >> 3) {
  1636. // int32 peer = 1;
  1637. case 1:
  1638. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  1639. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  1640. CHK_(ptr);
  1641. } else
  1642. goto handle_unusual;
  1643. continue;
  1644. default:
  1645. goto handle_unusual;
  1646. } // switch
  1647. handle_unusual:
  1648. if ((tag == 0) || ((tag & 7) == 4)) {
  1649. CHK_(ptr);
  1650. ctx->SetLastTag(tag);
  1651. goto message_done;
  1652. }
  1653. ptr = UnknownFieldParse(
  1654. tag,
  1655. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  1656. ptr, ctx);
  1657. CHK_(ptr != nullptr);
  1658. } // while
  1659. message_done:
  1660. return ptr;
  1661. failure:
  1662. ptr = nullptr;
  1663. goto message_done;
  1664. #undef CHK_
  1665. }
  1666. uint8_t* SwitchDriver::_InternalSerialize(
  1667. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  1668. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.SwitchDriver)
  1669. uint32_t cached_has_bits = 0;
  1670. (void) cached_has_bits;
  1671. // int32 peer = 1;
  1672. if (this->_internal_peer() != 0) {
  1673. target = stream->EnsureSpace(target);
  1674. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_peer(), target);
  1675. }
  1676. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1677. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  1678. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  1679. }
  1680. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.SwitchDriver)
  1681. return target;
  1682. }
  1683. size_t SwitchDriver::ByteSizeLong() const {
  1684. // @@protoc_insertion_point(message_byte_size_start:RemoNet.SwitchDriver)
  1685. size_t total_size = 0;
  1686. uint32_t cached_has_bits = 0;
  1687. // Prevent compiler warnings about cached_has_bits being unused
  1688. (void) cached_has_bits;
  1689. // int32 peer = 1;
  1690. if (this->_internal_peer() != 0) {
  1691. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  1692. }
  1693. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  1694. }
  1695. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SwitchDriver::_class_data_ = {
  1696. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  1697. SwitchDriver::MergeImpl
  1698. };
  1699. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SwitchDriver::GetClassData() const { return &_class_data_; }
  1700. void SwitchDriver::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  1701. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  1702. static_cast<SwitchDriver *>(to)->MergeFrom(
  1703. static_cast<const SwitchDriver &>(from));
  1704. }
  1705. void SwitchDriver::MergeFrom(const SwitchDriver& from) {
  1706. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.SwitchDriver)
  1707. GOOGLE_DCHECK_NE(&from, this);
  1708. uint32_t cached_has_bits = 0;
  1709. (void) cached_has_bits;
  1710. if (from._internal_peer() != 0) {
  1711. _internal_set_peer(from._internal_peer());
  1712. }
  1713. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1714. }
  1715. void SwitchDriver::CopyFrom(const SwitchDriver& from) {
  1716. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.SwitchDriver)
  1717. if (&from == this) return;
  1718. Clear();
  1719. MergeFrom(from);
  1720. }
  1721. bool SwitchDriver::IsInitialized() const {
  1722. return true;
  1723. }
  1724. void SwitchDriver::InternalSwap(SwitchDriver* other) {
  1725. using std::swap;
  1726. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  1727. swap(peer_, other->peer_);
  1728. }
  1729. ::PROTOBUF_NAMESPACE_ID::Metadata SwitchDriver::GetMetadata() const {
  1730. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  1731. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  1732. file_level_metadata_protocol_2eproto[0]);
  1733. }
  1734. // ===================================================================
  1735. class NDTPos::_Internal {
  1736. public:
  1737. };
  1738. NDTPos::NDTPos(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  1739. bool is_message_owned)
  1740. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  1741. SharedCtor();
  1742. if (!is_message_owned) {
  1743. RegisterArenaDtor(arena);
  1744. }
  1745. // @@protoc_insertion_point(arena_constructor:RemoNet.NDTPos)
  1746. }
  1747. NDTPos::NDTPos(const NDTPos& from)
  1748. : ::PROTOBUF_NAMESPACE_ID::Message() {
  1749. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1750. ::memcpy(&x_, &from.x_,
  1751. static_cast<size_t>(reinterpret_cast<char*>(&rw_) -
  1752. reinterpret_cast<char*>(&x_)) + sizeof(rw_));
  1753. // @@protoc_insertion_point(copy_constructor:RemoNet.NDTPos)
  1754. }
  1755. inline void NDTPos::SharedCtor() {
  1756. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  1757. reinterpret_cast<char*>(&x_) - reinterpret_cast<char*>(this)),
  1758. 0, static_cast<size_t>(reinterpret_cast<char*>(&rw_) -
  1759. reinterpret_cast<char*>(&x_)) + sizeof(rw_));
  1760. }
  1761. NDTPos::~NDTPos() {
  1762. // @@protoc_insertion_point(destructor:RemoNet.NDTPos)
  1763. if (GetArenaForAllocation() != nullptr) return;
  1764. SharedDtor();
  1765. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1766. }
  1767. inline void NDTPos::SharedDtor() {
  1768. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  1769. }
  1770. void NDTPos::ArenaDtor(void* object) {
  1771. NDTPos* _this = reinterpret_cast< NDTPos* >(object);
  1772. (void)_this;
  1773. }
  1774. void NDTPos::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  1775. }
  1776. void NDTPos::SetCachedSize(int size) const {
  1777. _cached_size_.Set(size);
  1778. }
  1779. void NDTPos::Clear() {
  1780. // @@protoc_insertion_point(message_clear_start:RemoNet.NDTPos)
  1781. uint32_t cached_has_bits = 0;
  1782. // Prevent compiler warnings about cached_has_bits being unused
  1783. (void) cached_has_bits;
  1784. ::memset(&x_, 0, static_cast<size_t>(
  1785. reinterpret_cast<char*>(&rw_) -
  1786. reinterpret_cast<char*>(&x_)) + sizeof(rw_));
  1787. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1788. }
  1789. const char* NDTPos::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  1790. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  1791. while (!ctx->Done(&ptr)) {
  1792. uint32_t tag;
  1793. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  1794. switch (tag >> 3) {
  1795. // float x = 1;
  1796. case 1:
  1797. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 13)) {
  1798. x_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  1799. ptr += sizeof(float);
  1800. } else
  1801. goto handle_unusual;
  1802. continue;
  1803. // float y = 2;
  1804. case 2:
  1805. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 21)) {
  1806. y_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  1807. ptr += sizeof(float);
  1808. } else
  1809. goto handle_unusual;
  1810. continue;
  1811. // float z = 3;
  1812. case 3:
  1813. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 29)) {
  1814. z_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  1815. ptr += sizeof(float);
  1816. } else
  1817. goto handle_unusual;
  1818. continue;
  1819. // float rx = 4;
  1820. case 4:
  1821. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 37)) {
  1822. rx_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  1823. ptr += sizeof(float);
  1824. } else
  1825. goto handle_unusual;
  1826. continue;
  1827. // float ry = 5;
  1828. case 5:
  1829. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 45)) {
  1830. ry_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  1831. ptr += sizeof(float);
  1832. } else
  1833. goto handle_unusual;
  1834. continue;
  1835. // float rz = 6;
  1836. case 6:
  1837. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 53)) {
  1838. rz_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  1839. ptr += sizeof(float);
  1840. } else
  1841. goto handle_unusual;
  1842. continue;
  1843. // float rw = 7;
  1844. case 7:
  1845. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 61)) {
  1846. rw_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  1847. ptr += sizeof(float);
  1848. } else
  1849. goto handle_unusual;
  1850. continue;
  1851. default:
  1852. goto handle_unusual;
  1853. } // switch
  1854. handle_unusual:
  1855. if ((tag == 0) || ((tag & 7) == 4)) {
  1856. CHK_(ptr);
  1857. ctx->SetLastTag(tag);
  1858. goto message_done;
  1859. }
  1860. ptr = UnknownFieldParse(
  1861. tag,
  1862. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  1863. ptr, ctx);
  1864. CHK_(ptr != nullptr);
  1865. } // while
  1866. message_done:
  1867. return ptr;
  1868. failure:
  1869. ptr = nullptr;
  1870. goto message_done;
  1871. #undef CHK_
  1872. }
  1873. uint8_t* NDTPos::_InternalSerialize(
  1874. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  1875. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.NDTPos)
  1876. uint32_t cached_has_bits = 0;
  1877. (void) cached_has_bits;
  1878. // float x = 1;
  1879. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1880. float tmp_x = this->_internal_x();
  1881. uint32_t raw_x;
  1882. memcpy(&raw_x, &tmp_x, sizeof(tmp_x));
  1883. if (raw_x != 0) {
  1884. target = stream->EnsureSpace(target);
  1885. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(1, this->_internal_x(), target);
  1886. }
  1887. // float y = 2;
  1888. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1889. float tmp_y = this->_internal_y();
  1890. uint32_t raw_y;
  1891. memcpy(&raw_y, &tmp_y, sizeof(tmp_y));
  1892. if (raw_y != 0) {
  1893. target = stream->EnsureSpace(target);
  1894. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(2, this->_internal_y(), target);
  1895. }
  1896. // float z = 3;
  1897. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1898. float tmp_z = this->_internal_z();
  1899. uint32_t raw_z;
  1900. memcpy(&raw_z, &tmp_z, sizeof(tmp_z));
  1901. if (raw_z != 0) {
  1902. target = stream->EnsureSpace(target);
  1903. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(3, this->_internal_z(), target);
  1904. }
  1905. // float rx = 4;
  1906. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1907. float tmp_rx = this->_internal_rx();
  1908. uint32_t raw_rx;
  1909. memcpy(&raw_rx, &tmp_rx, sizeof(tmp_rx));
  1910. if (raw_rx != 0) {
  1911. target = stream->EnsureSpace(target);
  1912. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(4, this->_internal_rx(), target);
  1913. }
  1914. // float ry = 5;
  1915. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1916. float tmp_ry = this->_internal_ry();
  1917. uint32_t raw_ry;
  1918. memcpy(&raw_ry, &tmp_ry, sizeof(tmp_ry));
  1919. if (raw_ry != 0) {
  1920. target = stream->EnsureSpace(target);
  1921. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(5, this->_internal_ry(), target);
  1922. }
  1923. // float rz = 6;
  1924. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1925. float tmp_rz = this->_internal_rz();
  1926. uint32_t raw_rz;
  1927. memcpy(&raw_rz, &tmp_rz, sizeof(tmp_rz));
  1928. if (raw_rz != 0) {
  1929. target = stream->EnsureSpace(target);
  1930. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(6, this->_internal_rz(), target);
  1931. }
  1932. // float rw = 7;
  1933. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1934. float tmp_rw = this->_internal_rw();
  1935. uint32_t raw_rw;
  1936. memcpy(&raw_rw, &tmp_rw, sizeof(tmp_rw));
  1937. if (raw_rw != 0) {
  1938. target = stream->EnsureSpace(target);
  1939. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(7, this->_internal_rw(), target);
  1940. }
  1941. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1942. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  1943. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  1944. }
  1945. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.NDTPos)
  1946. return target;
  1947. }
  1948. size_t NDTPos::ByteSizeLong() const {
  1949. // @@protoc_insertion_point(message_byte_size_start:RemoNet.NDTPos)
  1950. size_t total_size = 0;
  1951. uint32_t cached_has_bits = 0;
  1952. // Prevent compiler warnings about cached_has_bits being unused
  1953. (void) cached_has_bits;
  1954. // float x = 1;
  1955. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1956. float tmp_x = this->_internal_x();
  1957. uint32_t raw_x;
  1958. memcpy(&raw_x, &tmp_x, sizeof(tmp_x));
  1959. if (raw_x != 0) {
  1960. total_size += 1 + 4;
  1961. }
  1962. // float y = 2;
  1963. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1964. float tmp_y = this->_internal_y();
  1965. uint32_t raw_y;
  1966. memcpy(&raw_y, &tmp_y, sizeof(tmp_y));
  1967. if (raw_y != 0) {
  1968. total_size += 1 + 4;
  1969. }
  1970. // float z = 3;
  1971. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1972. float tmp_z = this->_internal_z();
  1973. uint32_t raw_z;
  1974. memcpy(&raw_z, &tmp_z, sizeof(tmp_z));
  1975. if (raw_z != 0) {
  1976. total_size += 1 + 4;
  1977. }
  1978. // float rx = 4;
  1979. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1980. float tmp_rx = this->_internal_rx();
  1981. uint32_t raw_rx;
  1982. memcpy(&raw_rx, &tmp_rx, sizeof(tmp_rx));
  1983. if (raw_rx != 0) {
  1984. total_size += 1 + 4;
  1985. }
  1986. // float ry = 5;
  1987. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1988. float tmp_ry = this->_internal_ry();
  1989. uint32_t raw_ry;
  1990. memcpy(&raw_ry, &tmp_ry, sizeof(tmp_ry));
  1991. if (raw_ry != 0) {
  1992. total_size += 1 + 4;
  1993. }
  1994. // float rz = 6;
  1995. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1996. float tmp_rz = this->_internal_rz();
  1997. uint32_t raw_rz;
  1998. memcpy(&raw_rz, &tmp_rz, sizeof(tmp_rz));
  1999. if (raw_rz != 0) {
  2000. total_size += 1 + 4;
  2001. }
  2002. // float rw = 7;
  2003. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  2004. float tmp_rw = this->_internal_rw();
  2005. uint32_t raw_rw;
  2006. memcpy(&raw_rw, &tmp_rw, sizeof(tmp_rw));
  2007. if (raw_rw != 0) {
  2008. total_size += 1 + 4;
  2009. }
  2010. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  2011. }
  2012. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData NDTPos::_class_data_ = {
  2013. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  2014. NDTPos::MergeImpl
  2015. };
  2016. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*NDTPos::GetClassData() const { return &_class_data_; }
  2017. void NDTPos::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  2018. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  2019. static_cast<NDTPos *>(to)->MergeFrom(
  2020. static_cast<const NDTPos &>(from));
  2021. }
  2022. void NDTPos::MergeFrom(const NDTPos& from) {
  2023. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.NDTPos)
  2024. GOOGLE_DCHECK_NE(&from, this);
  2025. uint32_t cached_has_bits = 0;
  2026. (void) cached_has_bits;
  2027. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  2028. float tmp_x = from._internal_x();
  2029. uint32_t raw_x;
  2030. memcpy(&raw_x, &tmp_x, sizeof(tmp_x));
  2031. if (raw_x != 0) {
  2032. _internal_set_x(from._internal_x());
  2033. }
  2034. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  2035. float tmp_y = from._internal_y();
  2036. uint32_t raw_y;
  2037. memcpy(&raw_y, &tmp_y, sizeof(tmp_y));
  2038. if (raw_y != 0) {
  2039. _internal_set_y(from._internal_y());
  2040. }
  2041. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  2042. float tmp_z = from._internal_z();
  2043. uint32_t raw_z;
  2044. memcpy(&raw_z, &tmp_z, sizeof(tmp_z));
  2045. if (raw_z != 0) {
  2046. _internal_set_z(from._internal_z());
  2047. }
  2048. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  2049. float tmp_rx = from._internal_rx();
  2050. uint32_t raw_rx;
  2051. memcpy(&raw_rx, &tmp_rx, sizeof(tmp_rx));
  2052. if (raw_rx != 0) {
  2053. _internal_set_rx(from._internal_rx());
  2054. }
  2055. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  2056. float tmp_ry = from._internal_ry();
  2057. uint32_t raw_ry;
  2058. memcpy(&raw_ry, &tmp_ry, sizeof(tmp_ry));
  2059. if (raw_ry != 0) {
  2060. _internal_set_ry(from._internal_ry());
  2061. }
  2062. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  2063. float tmp_rz = from._internal_rz();
  2064. uint32_t raw_rz;
  2065. memcpy(&raw_rz, &tmp_rz, sizeof(tmp_rz));
  2066. if (raw_rz != 0) {
  2067. _internal_set_rz(from._internal_rz());
  2068. }
  2069. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  2070. float tmp_rw = from._internal_rw();
  2071. uint32_t raw_rw;
  2072. memcpy(&raw_rw, &tmp_rw, sizeof(tmp_rw));
  2073. if (raw_rw != 0) {
  2074. _internal_set_rw(from._internal_rw());
  2075. }
  2076. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2077. }
  2078. void NDTPos::CopyFrom(const NDTPos& from) {
  2079. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.NDTPos)
  2080. if (&from == this) return;
  2081. Clear();
  2082. MergeFrom(from);
  2083. }
  2084. bool NDTPos::IsInitialized() const {
  2085. return true;
  2086. }
  2087. void NDTPos::InternalSwap(NDTPos* other) {
  2088. using std::swap;
  2089. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  2090. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  2091. PROTOBUF_FIELD_OFFSET(NDTPos, rw_)
  2092. + sizeof(NDTPos::rw_)
  2093. - PROTOBUF_FIELD_OFFSET(NDTPos, x_)>(
  2094. reinterpret_cast<char*>(&x_),
  2095. reinterpret_cast<char*>(&other->x_));
  2096. }
  2097. ::PROTOBUF_NAMESPACE_ID::Metadata NDTPos::GetMetadata() const {
  2098. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  2099. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  2100. file_level_metadata_protocol_2eproto[1]);
  2101. }
  2102. // ===================================================================
  2103. class CSMoveBegin::_Internal {
  2104. public:
  2105. };
  2106. CSMoveBegin::CSMoveBegin(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  2107. bool is_message_owned)
  2108. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  2109. SharedCtor();
  2110. if (!is_message_owned) {
  2111. RegisterArenaDtor(arena);
  2112. }
  2113. // @@protoc_insertion_point(arena_constructor:RemoNet.CSMoveBegin)
  2114. }
  2115. CSMoveBegin::CSMoveBegin(const CSMoveBegin& from)
  2116. : ::PROTOBUF_NAMESPACE_ID::Message() {
  2117. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2118. ::memcpy(&peer_, &from.peer_,
  2119. static_cast<size_t>(reinterpret_cast<char*>(&no_) -
  2120. reinterpret_cast<char*>(&peer_)) + sizeof(no_));
  2121. // @@protoc_insertion_point(copy_constructor:RemoNet.CSMoveBegin)
  2122. }
  2123. inline void CSMoveBegin::SharedCtor() {
  2124. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  2125. reinterpret_cast<char*>(&peer_) - reinterpret_cast<char*>(this)),
  2126. 0, static_cast<size_t>(reinterpret_cast<char*>(&no_) -
  2127. reinterpret_cast<char*>(&peer_)) + sizeof(no_));
  2128. }
  2129. CSMoveBegin::~CSMoveBegin() {
  2130. // @@protoc_insertion_point(destructor:RemoNet.CSMoveBegin)
  2131. if (GetArenaForAllocation() != nullptr) return;
  2132. SharedDtor();
  2133. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2134. }
  2135. inline void CSMoveBegin::SharedDtor() {
  2136. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  2137. }
  2138. void CSMoveBegin::ArenaDtor(void* object) {
  2139. CSMoveBegin* _this = reinterpret_cast< CSMoveBegin* >(object);
  2140. (void)_this;
  2141. }
  2142. void CSMoveBegin::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  2143. }
  2144. void CSMoveBegin::SetCachedSize(int size) const {
  2145. _cached_size_.Set(size);
  2146. }
  2147. void CSMoveBegin::Clear() {
  2148. // @@protoc_insertion_point(message_clear_start:RemoNet.CSMoveBegin)
  2149. uint32_t cached_has_bits = 0;
  2150. // Prevent compiler warnings about cached_has_bits being unused
  2151. (void) cached_has_bits;
  2152. ::memset(&peer_, 0, static_cast<size_t>(
  2153. reinterpret_cast<char*>(&no_) -
  2154. reinterpret_cast<char*>(&peer_)) + sizeof(no_));
  2155. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2156. }
  2157. const char* CSMoveBegin::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  2158. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  2159. while (!ctx->Done(&ptr)) {
  2160. uint32_t tag;
  2161. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  2162. switch (tag >> 3) {
  2163. // int32 peer = 1;
  2164. case 1:
  2165. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  2166. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2167. CHK_(ptr);
  2168. } else
  2169. goto handle_unusual;
  2170. continue;
  2171. // int32 area = 2;
  2172. case 2:
  2173. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  2174. area_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2175. CHK_(ptr);
  2176. } else
  2177. goto handle_unusual;
  2178. continue;
  2179. // int32 no = 3;
  2180. case 3:
  2181. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  2182. no_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2183. CHK_(ptr);
  2184. } else
  2185. goto handle_unusual;
  2186. continue;
  2187. default:
  2188. goto handle_unusual;
  2189. } // switch
  2190. handle_unusual:
  2191. if ((tag == 0) || ((tag & 7) == 4)) {
  2192. CHK_(ptr);
  2193. ctx->SetLastTag(tag);
  2194. goto message_done;
  2195. }
  2196. ptr = UnknownFieldParse(
  2197. tag,
  2198. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  2199. ptr, ctx);
  2200. CHK_(ptr != nullptr);
  2201. } // while
  2202. message_done:
  2203. return ptr;
  2204. failure:
  2205. ptr = nullptr;
  2206. goto message_done;
  2207. #undef CHK_
  2208. }
  2209. uint8_t* CSMoveBegin::_InternalSerialize(
  2210. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  2211. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CSMoveBegin)
  2212. uint32_t cached_has_bits = 0;
  2213. (void) cached_has_bits;
  2214. // int32 peer = 1;
  2215. if (this->_internal_peer() != 0) {
  2216. target = stream->EnsureSpace(target);
  2217. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_peer(), target);
  2218. }
  2219. // int32 area = 2;
  2220. if (this->_internal_area() != 0) {
  2221. target = stream->EnsureSpace(target);
  2222. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_area(), target);
  2223. }
  2224. // int32 no = 3;
  2225. if (this->_internal_no() != 0) {
  2226. target = stream->EnsureSpace(target);
  2227. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_no(), target);
  2228. }
  2229. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  2230. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  2231. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  2232. }
  2233. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CSMoveBegin)
  2234. return target;
  2235. }
  2236. size_t CSMoveBegin::ByteSizeLong() const {
  2237. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CSMoveBegin)
  2238. size_t total_size = 0;
  2239. uint32_t cached_has_bits = 0;
  2240. // Prevent compiler warnings about cached_has_bits being unused
  2241. (void) cached_has_bits;
  2242. // int32 peer = 1;
  2243. if (this->_internal_peer() != 0) {
  2244. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  2245. }
  2246. // int32 area = 2;
  2247. if (this->_internal_area() != 0) {
  2248. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_area());
  2249. }
  2250. // int32 no = 3;
  2251. if (this->_internal_no() != 0) {
  2252. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_no());
  2253. }
  2254. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  2255. }
  2256. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CSMoveBegin::_class_data_ = {
  2257. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  2258. CSMoveBegin::MergeImpl
  2259. };
  2260. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CSMoveBegin::GetClassData() const { return &_class_data_; }
  2261. void CSMoveBegin::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  2262. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  2263. static_cast<CSMoveBegin *>(to)->MergeFrom(
  2264. static_cast<const CSMoveBegin &>(from));
  2265. }
  2266. void CSMoveBegin::MergeFrom(const CSMoveBegin& from) {
  2267. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CSMoveBegin)
  2268. GOOGLE_DCHECK_NE(&from, this);
  2269. uint32_t cached_has_bits = 0;
  2270. (void) cached_has_bits;
  2271. if (from._internal_peer() != 0) {
  2272. _internal_set_peer(from._internal_peer());
  2273. }
  2274. if (from._internal_area() != 0) {
  2275. _internal_set_area(from._internal_area());
  2276. }
  2277. if (from._internal_no() != 0) {
  2278. _internal_set_no(from._internal_no());
  2279. }
  2280. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2281. }
  2282. void CSMoveBegin::CopyFrom(const CSMoveBegin& from) {
  2283. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CSMoveBegin)
  2284. if (&from == this) return;
  2285. Clear();
  2286. MergeFrom(from);
  2287. }
  2288. bool CSMoveBegin::IsInitialized() const {
  2289. return true;
  2290. }
  2291. void CSMoveBegin::InternalSwap(CSMoveBegin* other) {
  2292. using std::swap;
  2293. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  2294. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  2295. PROTOBUF_FIELD_OFFSET(CSMoveBegin, no_)
  2296. + sizeof(CSMoveBegin::no_)
  2297. - PROTOBUF_FIELD_OFFSET(CSMoveBegin, peer_)>(
  2298. reinterpret_cast<char*>(&peer_),
  2299. reinterpret_cast<char*>(&other->peer_));
  2300. }
  2301. ::PROTOBUF_NAMESPACE_ID::Metadata CSMoveBegin::GetMetadata() const {
  2302. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  2303. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  2304. file_level_metadata_protocol_2eproto[2]);
  2305. }
  2306. // ===================================================================
  2307. class MoveRet::_Internal {
  2308. public:
  2309. };
  2310. MoveRet::MoveRet(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  2311. bool is_message_owned)
  2312. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  2313. SharedCtor();
  2314. if (!is_message_owned) {
  2315. RegisterArenaDtor(arena);
  2316. }
  2317. // @@protoc_insertion_point(arena_constructor:RemoNet.MoveRet)
  2318. }
  2319. MoveRet::MoveRet(const MoveRet& from)
  2320. : ::PROTOBUF_NAMESPACE_ID::Message() {
  2321. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2322. ::memcpy(&desc_, &from.desc_,
  2323. static_cast<size_t>(reinterpret_cast<char*>(&peer_) -
  2324. reinterpret_cast<char*>(&desc_)) + sizeof(peer_));
  2325. // @@protoc_insertion_point(copy_constructor:RemoNet.MoveRet)
  2326. }
  2327. inline void MoveRet::SharedCtor() {
  2328. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  2329. reinterpret_cast<char*>(&desc_) - reinterpret_cast<char*>(this)),
  2330. 0, static_cast<size_t>(reinterpret_cast<char*>(&peer_) -
  2331. reinterpret_cast<char*>(&desc_)) + sizeof(peer_));
  2332. }
  2333. MoveRet::~MoveRet() {
  2334. // @@protoc_insertion_point(destructor:RemoNet.MoveRet)
  2335. if (GetArenaForAllocation() != nullptr) return;
  2336. SharedDtor();
  2337. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2338. }
  2339. inline void MoveRet::SharedDtor() {
  2340. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  2341. }
  2342. void MoveRet::ArenaDtor(void* object) {
  2343. MoveRet* _this = reinterpret_cast< MoveRet* >(object);
  2344. (void)_this;
  2345. }
  2346. void MoveRet::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  2347. }
  2348. void MoveRet::SetCachedSize(int size) const {
  2349. _cached_size_.Set(size);
  2350. }
  2351. void MoveRet::Clear() {
  2352. // @@protoc_insertion_point(message_clear_start:RemoNet.MoveRet)
  2353. uint32_t cached_has_bits = 0;
  2354. // Prevent compiler warnings about cached_has_bits being unused
  2355. (void) cached_has_bits;
  2356. ::memset(&desc_, 0, static_cast<size_t>(
  2357. reinterpret_cast<char*>(&peer_) -
  2358. reinterpret_cast<char*>(&desc_)) + sizeof(peer_));
  2359. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2360. }
  2361. const char* MoveRet::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  2362. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  2363. while (!ctx->Done(&ptr)) {
  2364. uint32_t tag;
  2365. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  2366. switch (tag >> 3) {
  2367. // .RemoNet.MoveDesc desc = 1;
  2368. case 1:
  2369. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  2370. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  2371. CHK_(ptr);
  2372. _internal_set_desc(static_cast<::RemoNet::MoveDesc>(val));
  2373. } else
  2374. goto handle_unusual;
  2375. continue;
  2376. // int32 peer = 2;
  2377. case 2:
  2378. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  2379. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2380. CHK_(ptr);
  2381. } else
  2382. goto handle_unusual;
  2383. continue;
  2384. default:
  2385. goto handle_unusual;
  2386. } // switch
  2387. handle_unusual:
  2388. if ((tag == 0) || ((tag & 7) == 4)) {
  2389. CHK_(ptr);
  2390. ctx->SetLastTag(tag);
  2391. goto message_done;
  2392. }
  2393. ptr = UnknownFieldParse(
  2394. tag,
  2395. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  2396. ptr, ctx);
  2397. CHK_(ptr != nullptr);
  2398. } // while
  2399. message_done:
  2400. return ptr;
  2401. failure:
  2402. ptr = nullptr;
  2403. goto message_done;
  2404. #undef CHK_
  2405. }
  2406. uint8_t* MoveRet::_InternalSerialize(
  2407. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  2408. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.MoveRet)
  2409. uint32_t cached_has_bits = 0;
  2410. (void) cached_has_bits;
  2411. // .RemoNet.MoveDesc desc = 1;
  2412. if (this->_internal_desc() != 0) {
  2413. target = stream->EnsureSpace(target);
  2414. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
  2415. 1, this->_internal_desc(), target);
  2416. }
  2417. // int32 peer = 2;
  2418. if (this->_internal_peer() != 0) {
  2419. target = stream->EnsureSpace(target);
  2420. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_peer(), target);
  2421. }
  2422. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  2423. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  2424. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  2425. }
  2426. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.MoveRet)
  2427. return target;
  2428. }
  2429. size_t MoveRet::ByteSizeLong() const {
  2430. // @@protoc_insertion_point(message_byte_size_start:RemoNet.MoveRet)
  2431. size_t total_size = 0;
  2432. uint32_t cached_has_bits = 0;
  2433. // Prevent compiler warnings about cached_has_bits being unused
  2434. (void) cached_has_bits;
  2435. // .RemoNet.MoveDesc desc = 1;
  2436. if (this->_internal_desc() != 0) {
  2437. total_size += 1 +
  2438. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_desc());
  2439. }
  2440. // int32 peer = 2;
  2441. if (this->_internal_peer() != 0) {
  2442. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  2443. }
  2444. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  2445. }
  2446. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MoveRet::_class_data_ = {
  2447. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  2448. MoveRet::MergeImpl
  2449. };
  2450. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MoveRet::GetClassData() const { return &_class_data_; }
  2451. void MoveRet::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  2452. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  2453. static_cast<MoveRet *>(to)->MergeFrom(
  2454. static_cast<const MoveRet &>(from));
  2455. }
  2456. void MoveRet::MergeFrom(const MoveRet& from) {
  2457. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.MoveRet)
  2458. GOOGLE_DCHECK_NE(&from, this);
  2459. uint32_t cached_has_bits = 0;
  2460. (void) cached_has_bits;
  2461. if (from._internal_desc() != 0) {
  2462. _internal_set_desc(from._internal_desc());
  2463. }
  2464. if (from._internal_peer() != 0) {
  2465. _internal_set_peer(from._internal_peer());
  2466. }
  2467. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2468. }
  2469. void MoveRet::CopyFrom(const MoveRet& from) {
  2470. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.MoveRet)
  2471. if (&from == this) return;
  2472. Clear();
  2473. MergeFrom(from);
  2474. }
  2475. bool MoveRet::IsInitialized() const {
  2476. return true;
  2477. }
  2478. void MoveRet::InternalSwap(MoveRet* other) {
  2479. using std::swap;
  2480. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  2481. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  2482. PROTOBUF_FIELD_OFFSET(MoveRet, peer_)
  2483. + sizeof(MoveRet::peer_)
  2484. - PROTOBUF_FIELD_OFFSET(MoveRet, desc_)>(
  2485. reinterpret_cast<char*>(&desc_),
  2486. reinterpret_cast<char*>(&other->desc_));
  2487. }
  2488. ::PROTOBUF_NAMESPACE_ID::Metadata MoveRet::GetMetadata() const {
  2489. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  2490. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  2491. file_level_metadata_protocol_2eproto[3]);
  2492. }
  2493. // ===================================================================
  2494. class CSMoveEnd::_Internal {
  2495. public:
  2496. };
  2497. CSMoveEnd::CSMoveEnd(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  2498. bool is_message_owned)
  2499. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  2500. SharedCtor();
  2501. if (!is_message_owned) {
  2502. RegisterArenaDtor(arena);
  2503. }
  2504. // @@protoc_insertion_point(arena_constructor:RemoNet.CSMoveEnd)
  2505. }
  2506. CSMoveEnd::CSMoveEnd(const CSMoveEnd& from)
  2507. : ::PROTOBUF_NAMESPACE_ID::Message() {
  2508. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2509. ::memcpy(&area_, &from.area_,
  2510. static_cast<size_t>(reinterpret_cast<char*>(&uid_) -
  2511. reinterpret_cast<char*>(&area_)) + sizeof(uid_));
  2512. // @@protoc_insertion_point(copy_constructor:RemoNet.CSMoveEnd)
  2513. }
  2514. inline void CSMoveEnd::SharedCtor() {
  2515. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  2516. reinterpret_cast<char*>(&area_) - reinterpret_cast<char*>(this)),
  2517. 0, static_cast<size_t>(reinterpret_cast<char*>(&uid_) -
  2518. reinterpret_cast<char*>(&area_)) + sizeof(uid_));
  2519. }
  2520. CSMoveEnd::~CSMoveEnd() {
  2521. // @@protoc_insertion_point(destructor:RemoNet.CSMoveEnd)
  2522. if (GetArenaForAllocation() != nullptr) return;
  2523. SharedDtor();
  2524. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2525. }
  2526. inline void CSMoveEnd::SharedDtor() {
  2527. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  2528. }
  2529. void CSMoveEnd::ArenaDtor(void* object) {
  2530. CSMoveEnd* _this = reinterpret_cast< CSMoveEnd* >(object);
  2531. (void)_this;
  2532. }
  2533. void CSMoveEnd::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  2534. }
  2535. void CSMoveEnd::SetCachedSize(int size) const {
  2536. _cached_size_.Set(size);
  2537. }
  2538. void CSMoveEnd::Clear() {
  2539. // @@protoc_insertion_point(message_clear_start:RemoNet.CSMoveEnd)
  2540. uint32_t cached_has_bits = 0;
  2541. // Prevent compiler warnings about cached_has_bits being unused
  2542. (void) cached_has_bits;
  2543. ::memset(&area_, 0, static_cast<size_t>(
  2544. reinterpret_cast<char*>(&uid_) -
  2545. reinterpret_cast<char*>(&area_)) + sizeof(uid_));
  2546. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2547. }
  2548. const char* CSMoveEnd::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  2549. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  2550. while (!ctx->Done(&ptr)) {
  2551. uint32_t tag;
  2552. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  2553. switch (tag >> 3) {
  2554. // int32 area = 1;
  2555. case 1:
  2556. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  2557. area_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2558. CHK_(ptr);
  2559. } else
  2560. goto handle_unusual;
  2561. continue;
  2562. // int32 no = 2;
  2563. case 2:
  2564. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  2565. no_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2566. CHK_(ptr);
  2567. } else
  2568. goto handle_unusual;
  2569. continue;
  2570. // int32 uid = 3;
  2571. case 3:
  2572. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  2573. uid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2574. CHK_(ptr);
  2575. } else
  2576. goto handle_unusual;
  2577. continue;
  2578. default:
  2579. goto handle_unusual;
  2580. } // switch
  2581. handle_unusual:
  2582. if ((tag == 0) || ((tag & 7) == 4)) {
  2583. CHK_(ptr);
  2584. ctx->SetLastTag(tag);
  2585. goto message_done;
  2586. }
  2587. ptr = UnknownFieldParse(
  2588. tag,
  2589. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  2590. ptr, ctx);
  2591. CHK_(ptr != nullptr);
  2592. } // while
  2593. message_done:
  2594. return ptr;
  2595. failure:
  2596. ptr = nullptr;
  2597. goto message_done;
  2598. #undef CHK_
  2599. }
  2600. uint8_t* CSMoveEnd::_InternalSerialize(
  2601. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  2602. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CSMoveEnd)
  2603. uint32_t cached_has_bits = 0;
  2604. (void) cached_has_bits;
  2605. // int32 area = 1;
  2606. if (this->_internal_area() != 0) {
  2607. target = stream->EnsureSpace(target);
  2608. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_area(), target);
  2609. }
  2610. // int32 no = 2;
  2611. if (this->_internal_no() != 0) {
  2612. target = stream->EnsureSpace(target);
  2613. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_no(), target);
  2614. }
  2615. // int32 uid = 3;
  2616. if (this->_internal_uid() != 0) {
  2617. target = stream->EnsureSpace(target);
  2618. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_uid(), target);
  2619. }
  2620. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  2621. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  2622. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  2623. }
  2624. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CSMoveEnd)
  2625. return target;
  2626. }
  2627. size_t CSMoveEnd::ByteSizeLong() const {
  2628. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CSMoveEnd)
  2629. size_t total_size = 0;
  2630. uint32_t cached_has_bits = 0;
  2631. // Prevent compiler warnings about cached_has_bits being unused
  2632. (void) cached_has_bits;
  2633. // int32 area = 1;
  2634. if (this->_internal_area() != 0) {
  2635. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_area());
  2636. }
  2637. // int32 no = 2;
  2638. if (this->_internal_no() != 0) {
  2639. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_no());
  2640. }
  2641. // int32 uid = 3;
  2642. if (this->_internal_uid() != 0) {
  2643. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_uid());
  2644. }
  2645. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  2646. }
  2647. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CSMoveEnd::_class_data_ = {
  2648. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  2649. CSMoveEnd::MergeImpl
  2650. };
  2651. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CSMoveEnd::GetClassData() const { return &_class_data_; }
  2652. void CSMoveEnd::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  2653. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  2654. static_cast<CSMoveEnd *>(to)->MergeFrom(
  2655. static_cast<const CSMoveEnd &>(from));
  2656. }
  2657. void CSMoveEnd::MergeFrom(const CSMoveEnd& from) {
  2658. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CSMoveEnd)
  2659. GOOGLE_DCHECK_NE(&from, this);
  2660. uint32_t cached_has_bits = 0;
  2661. (void) cached_has_bits;
  2662. if (from._internal_area() != 0) {
  2663. _internal_set_area(from._internal_area());
  2664. }
  2665. if (from._internal_no() != 0) {
  2666. _internal_set_no(from._internal_no());
  2667. }
  2668. if (from._internal_uid() != 0) {
  2669. _internal_set_uid(from._internal_uid());
  2670. }
  2671. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2672. }
  2673. void CSMoveEnd::CopyFrom(const CSMoveEnd& from) {
  2674. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CSMoveEnd)
  2675. if (&from == this) return;
  2676. Clear();
  2677. MergeFrom(from);
  2678. }
  2679. bool CSMoveEnd::IsInitialized() const {
  2680. return true;
  2681. }
  2682. void CSMoveEnd::InternalSwap(CSMoveEnd* other) {
  2683. using std::swap;
  2684. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  2685. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  2686. PROTOBUF_FIELD_OFFSET(CSMoveEnd, uid_)
  2687. + sizeof(CSMoveEnd::uid_)
  2688. - PROTOBUF_FIELD_OFFSET(CSMoveEnd, area_)>(
  2689. reinterpret_cast<char*>(&area_),
  2690. reinterpret_cast<char*>(&other->area_));
  2691. }
  2692. ::PROTOBUF_NAMESPACE_ID::Metadata CSMoveEnd::GetMetadata() const {
  2693. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  2694. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  2695. file_level_metadata_protocol_2eproto[4]);
  2696. }
  2697. // ===================================================================
  2698. class SCMoveBegin::_Internal {
  2699. public:
  2700. };
  2701. SCMoveBegin::SCMoveBegin(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  2702. bool is_message_owned)
  2703. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  2704. SharedCtor();
  2705. if (!is_message_owned) {
  2706. RegisterArenaDtor(arena);
  2707. }
  2708. // @@protoc_insertion_point(arena_constructor:RemoNet.SCMoveBegin)
  2709. }
  2710. SCMoveBegin::SCMoveBegin(const SCMoveBegin& from)
  2711. : ::PROTOBUF_NAMESPACE_ID::Message() {
  2712. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2713. ::memcpy(&uid_, &from.uid_,
  2714. static_cast<size_t>(reinterpret_cast<char*>(&y_) -
  2715. reinterpret_cast<char*>(&uid_)) + sizeof(y_));
  2716. // @@protoc_insertion_point(copy_constructor:RemoNet.SCMoveBegin)
  2717. }
  2718. inline void SCMoveBegin::SharedCtor() {
  2719. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  2720. reinterpret_cast<char*>(&uid_) - reinterpret_cast<char*>(this)),
  2721. 0, static_cast<size_t>(reinterpret_cast<char*>(&y_) -
  2722. reinterpret_cast<char*>(&uid_)) + sizeof(y_));
  2723. }
  2724. SCMoveBegin::~SCMoveBegin() {
  2725. // @@protoc_insertion_point(destructor:RemoNet.SCMoveBegin)
  2726. if (GetArenaForAllocation() != nullptr) return;
  2727. SharedDtor();
  2728. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2729. }
  2730. inline void SCMoveBegin::SharedDtor() {
  2731. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  2732. }
  2733. void SCMoveBegin::ArenaDtor(void* object) {
  2734. SCMoveBegin* _this = reinterpret_cast< SCMoveBegin* >(object);
  2735. (void)_this;
  2736. }
  2737. void SCMoveBegin::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  2738. }
  2739. void SCMoveBegin::SetCachedSize(int size) const {
  2740. _cached_size_.Set(size);
  2741. }
  2742. void SCMoveBegin::Clear() {
  2743. // @@protoc_insertion_point(message_clear_start:RemoNet.SCMoveBegin)
  2744. uint32_t cached_has_bits = 0;
  2745. // Prevent compiler warnings about cached_has_bits being unused
  2746. (void) cached_has_bits;
  2747. ::memset(&uid_, 0, static_cast<size_t>(
  2748. reinterpret_cast<char*>(&y_) -
  2749. reinterpret_cast<char*>(&uid_)) + sizeof(y_));
  2750. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2751. }
  2752. const char* SCMoveBegin::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  2753. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  2754. while (!ctx->Done(&ptr)) {
  2755. uint32_t tag;
  2756. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  2757. switch (tag >> 3) {
  2758. // int32 uid = 1;
  2759. case 1:
  2760. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  2761. uid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2762. CHK_(ptr);
  2763. } else
  2764. goto handle_unusual;
  2765. continue;
  2766. // int32 area = 2;
  2767. case 2:
  2768. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  2769. area_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2770. CHK_(ptr);
  2771. } else
  2772. goto handle_unusual;
  2773. continue;
  2774. // int32 no = 3;
  2775. case 3:
  2776. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  2777. no_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2778. CHK_(ptr);
  2779. } else
  2780. goto handle_unusual;
  2781. continue;
  2782. // float x = 4;
  2783. case 4:
  2784. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 37)) {
  2785. x_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  2786. ptr += sizeof(float);
  2787. } else
  2788. goto handle_unusual;
  2789. continue;
  2790. // float y = 5;
  2791. case 5:
  2792. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 45)) {
  2793. y_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  2794. ptr += sizeof(float);
  2795. } else
  2796. goto handle_unusual;
  2797. continue;
  2798. default:
  2799. goto handle_unusual;
  2800. } // switch
  2801. handle_unusual:
  2802. if ((tag == 0) || ((tag & 7) == 4)) {
  2803. CHK_(ptr);
  2804. ctx->SetLastTag(tag);
  2805. goto message_done;
  2806. }
  2807. ptr = UnknownFieldParse(
  2808. tag,
  2809. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  2810. ptr, ctx);
  2811. CHK_(ptr != nullptr);
  2812. } // while
  2813. message_done:
  2814. return ptr;
  2815. failure:
  2816. ptr = nullptr;
  2817. goto message_done;
  2818. #undef CHK_
  2819. }
  2820. uint8_t* SCMoveBegin::_InternalSerialize(
  2821. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  2822. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.SCMoveBegin)
  2823. uint32_t cached_has_bits = 0;
  2824. (void) cached_has_bits;
  2825. // int32 uid = 1;
  2826. if (this->_internal_uid() != 0) {
  2827. target = stream->EnsureSpace(target);
  2828. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_uid(), target);
  2829. }
  2830. // int32 area = 2;
  2831. if (this->_internal_area() != 0) {
  2832. target = stream->EnsureSpace(target);
  2833. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_area(), target);
  2834. }
  2835. // int32 no = 3;
  2836. if (this->_internal_no() != 0) {
  2837. target = stream->EnsureSpace(target);
  2838. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_no(), target);
  2839. }
  2840. // float x = 4;
  2841. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  2842. float tmp_x = this->_internal_x();
  2843. uint32_t raw_x;
  2844. memcpy(&raw_x, &tmp_x, sizeof(tmp_x));
  2845. if (raw_x != 0) {
  2846. target = stream->EnsureSpace(target);
  2847. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(4, this->_internal_x(), target);
  2848. }
  2849. // float y = 5;
  2850. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  2851. float tmp_y = this->_internal_y();
  2852. uint32_t raw_y;
  2853. memcpy(&raw_y, &tmp_y, sizeof(tmp_y));
  2854. if (raw_y != 0) {
  2855. target = stream->EnsureSpace(target);
  2856. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(5, this->_internal_y(), target);
  2857. }
  2858. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  2859. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  2860. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  2861. }
  2862. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.SCMoveBegin)
  2863. return target;
  2864. }
  2865. size_t SCMoveBegin::ByteSizeLong() const {
  2866. // @@protoc_insertion_point(message_byte_size_start:RemoNet.SCMoveBegin)
  2867. size_t total_size = 0;
  2868. uint32_t cached_has_bits = 0;
  2869. // Prevent compiler warnings about cached_has_bits being unused
  2870. (void) cached_has_bits;
  2871. // int32 uid = 1;
  2872. if (this->_internal_uid() != 0) {
  2873. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_uid());
  2874. }
  2875. // int32 area = 2;
  2876. if (this->_internal_area() != 0) {
  2877. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_area());
  2878. }
  2879. // int32 no = 3;
  2880. if (this->_internal_no() != 0) {
  2881. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_no());
  2882. }
  2883. // float x = 4;
  2884. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  2885. float tmp_x = this->_internal_x();
  2886. uint32_t raw_x;
  2887. memcpy(&raw_x, &tmp_x, sizeof(tmp_x));
  2888. if (raw_x != 0) {
  2889. total_size += 1 + 4;
  2890. }
  2891. // float y = 5;
  2892. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  2893. float tmp_y = this->_internal_y();
  2894. uint32_t raw_y;
  2895. memcpy(&raw_y, &tmp_y, sizeof(tmp_y));
  2896. if (raw_y != 0) {
  2897. total_size += 1 + 4;
  2898. }
  2899. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  2900. }
  2901. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCMoveBegin::_class_data_ = {
  2902. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  2903. SCMoveBegin::MergeImpl
  2904. };
  2905. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCMoveBegin::GetClassData() const { return &_class_data_; }
  2906. void SCMoveBegin::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  2907. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  2908. static_cast<SCMoveBegin *>(to)->MergeFrom(
  2909. static_cast<const SCMoveBegin &>(from));
  2910. }
  2911. void SCMoveBegin::MergeFrom(const SCMoveBegin& from) {
  2912. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.SCMoveBegin)
  2913. GOOGLE_DCHECK_NE(&from, this);
  2914. uint32_t cached_has_bits = 0;
  2915. (void) cached_has_bits;
  2916. if (from._internal_uid() != 0) {
  2917. _internal_set_uid(from._internal_uid());
  2918. }
  2919. if (from._internal_area() != 0) {
  2920. _internal_set_area(from._internal_area());
  2921. }
  2922. if (from._internal_no() != 0) {
  2923. _internal_set_no(from._internal_no());
  2924. }
  2925. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  2926. float tmp_x = from._internal_x();
  2927. uint32_t raw_x;
  2928. memcpy(&raw_x, &tmp_x, sizeof(tmp_x));
  2929. if (raw_x != 0) {
  2930. _internal_set_x(from._internal_x());
  2931. }
  2932. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  2933. float tmp_y = from._internal_y();
  2934. uint32_t raw_y;
  2935. memcpy(&raw_y, &tmp_y, sizeof(tmp_y));
  2936. if (raw_y != 0) {
  2937. _internal_set_y(from._internal_y());
  2938. }
  2939. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2940. }
  2941. void SCMoveBegin::CopyFrom(const SCMoveBegin& from) {
  2942. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.SCMoveBegin)
  2943. if (&from == this) return;
  2944. Clear();
  2945. MergeFrom(from);
  2946. }
  2947. bool SCMoveBegin::IsInitialized() const {
  2948. return true;
  2949. }
  2950. void SCMoveBegin::InternalSwap(SCMoveBegin* other) {
  2951. using std::swap;
  2952. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  2953. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  2954. PROTOBUF_FIELD_OFFSET(SCMoveBegin, y_)
  2955. + sizeof(SCMoveBegin::y_)
  2956. - PROTOBUF_FIELD_OFFSET(SCMoveBegin, uid_)>(
  2957. reinterpret_cast<char*>(&uid_),
  2958. reinterpret_cast<char*>(&other->uid_));
  2959. }
  2960. ::PROTOBUF_NAMESPACE_ID::Metadata SCMoveBegin::GetMetadata() const {
  2961. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  2962. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  2963. file_level_metadata_protocol_2eproto[5]);
  2964. }
  2965. // ===================================================================
  2966. class SCMoveEnd::_Internal {
  2967. public:
  2968. };
  2969. SCMoveEnd::SCMoveEnd(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  2970. bool is_message_owned)
  2971. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  2972. SharedCtor();
  2973. if (!is_message_owned) {
  2974. RegisterArenaDtor(arena);
  2975. }
  2976. // @@protoc_insertion_point(arena_constructor:RemoNet.SCMoveEnd)
  2977. }
  2978. SCMoveEnd::SCMoveEnd(const SCMoveEnd& from)
  2979. : ::PROTOBUF_NAMESPACE_ID::Message() {
  2980. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2981. ::memcpy(&area_, &from.area_,
  2982. static_cast<size_t>(reinterpret_cast<char*>(&uid_) -
  2983. reinterpret_cast<char*>(&area_)) + sizeof(uid_));
  2984. // @@protoc_insertion_point(copy_constructor:RemoNet.SCMoveEnd)
  2985. }
  2986. inline void SCMoveEnd::SharedCtor() {
  2987. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  2988. reinterpret_cast<char*>(&area_) - reinterpret_cast<char*>(this)),
  2989. 0, static_cast<size_t>(reinterpret_cast<char*>(&uid_) -
  2990. reinterpret_cast<char*>(&area_)) + sizeof(uid_));
  2991. }
  2992. SCMoveEnd::~SCMoveEnd() {
  2993. // @@protoc_insertion_point(destructor:RemoNet.SCMoveEnd)
  2994. if (GetArenaForAllocation() != nullptr) return;
  2995. SharedDtor();
  2996. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2997. }
  2998. inline void SCMoveEnd::SharedDtor() {
  2999. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  3000. }
  3001. void SCMoveEnd::ArenaDtor(void* object) {
  3002. SCMoveEnd* _this = reinterpret_cast< SCMoveEnd* >(object);
  3003. (void)_this;
  3004. }
  3005. void SCMoveEnd::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  3006. }
  3007. void SCMoveEnd::SetCachedSize(int size) const {
  3008. _cached_size_.Set(size);
  3009. }
  3010. void SCMoveEnd::Clear() {
  3011. // @@protoc_insertion_point(message_clear_start:RemoNet.SCMoveEnd)
  3012. uint32_t cached_has_bits = 0;
  3013. // Prevent compiler warnings about cached_has_bits being unused
  3014. (void) cached_has_bits;
  3015. ::memset(&area_, 0, static_cast<size_t>(
  3016. reinterpret_cast<char*>(&uid_) -
  3017. reinterpret_cast<char*>(&area_)) + sizeof(uid_));
  3018. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3019. }
  3020. const char* SCMoveEnd::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  3021. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  3022. while (!ctx->Done(&ptr)) {
  3023. uint32_t tag;
  3024. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  3025. switch (tag >> 3) {
  3026. // int32 area = 1;
  3027. case 1:
  3028. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  3029. area_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3030. CHK_(ptr);
  3031. } else
  3032. goto handle_unusual;
  3033. continue;
  3034. // int32 no = 2;
  3035. case 2:
  3036. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  3037. no_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3038. CHK_(ptr);
  3039. } else
  3040. goto handle_unusual;
  3041. continue;
  3042. // int32 uid = 3;
  3043. case 3:
  3044. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  3045. uid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3046. CHK_(ptr);
  3047. } else
  3048. goto handle_unusual;
  3049. continue;
  3050. default:
  3051. goto handle_unusual;
  3052. } // switch
  3053. handle_unusual:
  3054. if ((tag == 0) || ((tag & 7) == 4)) {
  3055. CHK_(ptr);
  3056. ctx->SetLastTag(tag);
  3057. goto message_done;
  3058. }
  3059. ptr = UnknownFieldParse(
  3060. tag,
  3061. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  3062. ptr, ctx);
  3063. CHK_(ptr != nullptr);
  3064. } // while
  3065. message_done:
  3066. return ptr;
  3067. failure:
  3068. ptr = nullptr;
  3069. goto message_done;
  3070. #undef CHK_
  3071. }
  3072. uint8_t* SCMoveEnd::_InternalSerialize(
  3073. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  3074. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.SCMoveEnd)
  3075. uint32_t cached_has_bits = 0;
  3076. (void) cached_has_bits;
  3077. // int32 area = 1;
  3078. if (this->_internal_area() != 0) {
  3079. target = stream->EnsureSpace(target);
  3080. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_area(), target);
  3081. }
  3082. // int32 no = 2;
  3083. if (this->_internal_no() != 0) {
  3084. target = stream->EnsureSpace(target);
  3085. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_no(), target);
  3086. }
  3087. // int32 uid = 3;
  3088. if (this->_internal_uid() != 0) {
  3089. target = stream->EnsureSpace(target);
  3090. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_uid(), target);
  3091. }
  3092. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  3093. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  3094. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  3095. }
  3096. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.SCMoveEnd)
  3097. return target;
  3098. }
  3099. size_t SCMoveEnd::ByteSizeLong() const {
  3100. // @@protoc_insertion_point(message_byte_size_start:RemoNet.SCMoveEnd)
  3101. size_t total_size = 0;
  3102. uint32_t cached_has_bits = 0;
  3103. // Prevent compiler warnings about cached_has_bits being unused
  3104. (void) cached_has_bits;
  3105. // int32 area = 1;
  3106. if (this->_internal_area() != 0) {
  3107. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_area());
  3108. }
  3109. // int32 no = 2;
  3110. if (this->_internal_no() != 0) {
  3111. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_no());
  3112. }
  3113. // int32 uid = 3;
  3114. if (this->_internal_uid() != 0) {
  3115. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_uid());
  3116. }
  3117. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  3118. }
  3119. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCMoveEnd::_class_data_ = {
  3120. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  3121. SCMoveEnd::MergeImpl
  3122. };
  3123. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCMoveEnd::GetClassData() const { return &_class_data_; }
  3124. void SCMoveEnd::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  3125. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  3126. static_cast<SCMoveEnd *>(to)->MergeFrom(
  3127. static_cast<const SCMoveEnd &>(from));
  3128. }
  3129. void SCMoveEnd::MergeFrom(const SCMoveEnd& from) {
  3130. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.SCMoveEnd)
  3131. GOOGLE_DCHECK_NE(&from, this);
  3132. uint32_t cached_has_bits = 0;
  3133. (void) cached_has_bits;
  3134. if (from._internal_area() != 0) {
  3135. _internal_set_area(from._internal_area());
  3136. }
  3137. if (from._internal_no() != 0) {
  3138. _internal_set_no(from._internal_no());
  3139. }
  3140. if (from._internal_uid() != 0) {
  3141. _internal_set_uid(from._internal_uid());
  3142. }
  3143. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3144. }
  3145. void SCMoveEnd::CopyFrom(const SCMoveEnd& from) {
  3146. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.SCMoveEnd)
  3147. if (&from == this) return;
  3148. Clear();
  3149. MergeFrom(from);
  3150. }
  3151. bool SCMoveEnd::IsInitialized() const {
  3152. return true;
  3153. }
  3154. void SCMoveEnd::InternalSwap(SCMoveEnd* other) {
  3155. using std::swap;
  3156. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  3157. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  3158. PROTOBUF_FIELD_OFFSET(SCMoveEnd, uid_)
  3159. + sizeof(SCMoveEnd::uid_)
  3160. - PROTOBUF_FIELD_OFFSET(SCMoveEnd, area_)>(
  3161. reinterpret_cast<char*>(&area_),
  3162. reinterpret_cast<char*>(&other->area_));
  3163. }
  3164. ::PROTOBUF_NAMESPACE_ID::Metadata SCMoveEnd::GetMetadata() const {
  3165. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  3166. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  3167. file_level_metadata_protocol_2eproto[6]);
  3168. }
  3169. // ===================================================================
  3170. class CSAdd::_Internal {
  3171. public:
  3172. };
  3173. CSAdd::CSAdd(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  3174. bool is_message_owned)
  3175. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  3176. SharedCtor();
  3177. if (!is_message_owned) {
  3178. RegisterArenaDtor(arena);
  3179. }
  3180. // @@protoc_insertion_point(arena_constructor:RemoNet.CSAdd)
  3181. }
  3182. CSAdd::CSAdd(const CSAdd& from)
  3183. : ::PROTOBUF_NAMESPACE_ID::Message() {
  3184. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3185. serial_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  3186. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3187. serial_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  3188. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3189. if (!from._internal_serial().empty()) {
  3190. serial_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_serial(),
  3191. GetArenaForAllocation());
  3192. }
  3193. name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  3194. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3195. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  3196. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3197. if (!from._internal_name().empty()) {
  3198. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(),
  3199. GetArenaForAllocation());
  3200. }
  3201. ::memcpy(&type_, &from.type_,
  3202. static_cast<size_t>(reinterpret_cast<char*>(&car_) -
  3203. reinterpret_cast<char*>(&type_)) + sizeof(car_));
  3204. // @@protoc_insertion_point(copy_constructor:RemoNet.CSAdd)
  3205. }
  3206. inline void CSAdd::SharedCtor() {
  3207. serial_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  3208. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3209. serial_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  3210. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3211. name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  3212. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3213. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  3214. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3215. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  3216. reinterpret_cast<char*>(&type_) - reinterpret_cast<char*>(this)),
  3217. 0, static_cast<size_t>(reinterpret_cast<char*>(&car_) -
  3218. reinterpret_cast<char*>(&type_)) + sizeof(car_));
  3219. }
  3220. CSAdd::~CSAdd() {
  3221. // @@protoc_insertion_point(destructor:RemoNet.CSAdd)
  3222. if (GetArenaForAllocation() != nullptr) return;
  3223. SharedDtor();
  3224. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3225. }
  3226. inline void CSAdd::SharedDtor() {
  3227. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  3228. serial_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  3229. name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  3230. }
  3231. void CSAdd::ArenaDtor(void* object) {
  3232. CSAdd* _this = reinterpret_cast< CSAdd* >(object);
  3233. (void)_this;
  3234. }
  3235. void CSAdd::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  3236. }
  3237. void CSAdd::SetCachedSize(int size) const {
  3238. _cached_size_.Set(size);
  3239. }
  3240. void CSAdd::Clear() {
  3241. // @@protoc_insertion_point(message_clear_start:RemoNet.CSAdd)
  3242. uint32_t cached_has_bits = 0;
  3243. // Prevent compiler warnings about cached_has_bits being unused
  3244. (void) cached_has_bits;
  3245. serial_.ClearToEmpty();
  3246. name_.ClearToEmpty();
  3247. ::memset(&type_, 0, static_cast<size_t>(
  3248. reinterpret_cast<char*>(&car_) -
  3249. reinterpret_cast<char*>(&type_)) + sizeof(car_));
  3250. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3251. }
  3252. const char* CSAdd::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  3253. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  3254. while (!ctx->Done(&ptr)) {
  3255. uint32_t tag;
  3256. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  3257. switch (tag >> 3) {
  3258. // string serial = 1;
  3259. case 1:
  3260. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
  3261. auto str = _internal_mutable_serial();
  3262. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  3263. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.CSAdd.serial"));
  3264. CHK_(ptr);
  3265. } else
  3266. goto handle_unusual;
  3267. continue;
  3268. // int32 type = 2;
  3269. case 2:
  3270. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  3271. type_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3272. CHK_(ptr);
  3273. } else
  3274. goto handle_unusual;
  3275. continue;
  3276. // string name = 3;
  3277. case 3:
  3278. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
  3279. auto str = _internal_mutable_name();
  3280. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  3281. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.CSAdd.name"));
  3282. CHK_(ptr);
  3283. } else
  3284. goto handle_unusual;
  3285. continue;
  3286. // int32 car = 4;
  3287. case 4:
  3288. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
  3289. car_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3290. CHK_(ptr);
  3291. } else
  3292. goto handle_unusual;
  3293. continue;
  3294. default:
  3295. goto handle_unusual;
  3296. } // switch
  3297. handle_unusual:
  3298. if ((tag == 0) || ((tag & 7) == 4)) {
  3299. CHK_(ptr);
  3300. ctx->SetLastTag(tag);
  3301. goto message_done;
  3302. }
  3303. ptr = UnknownFieldParse(
  3304. tag,
  3305. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  3306. ptr, ctx);
  3307. CHK_(ptr != nullptr);
  3308. } // while
  3309. message_done:
  3310. return ptr;
  3311. failure:
  3312. ptr = nullptr;
  3313. goto message_done;
  3314. #undef CHK_
  3315. }
  3316. uint8_t* CSAdd::_InternalSerialize(
  3317. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  3318. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CSAdd)
  3319. uint32_t cached_has_bits = 0;
  3320. (void) cached_has_bits;
  3321. // string serial = 1;
  3322. if (!this->_internal_serial().empty()) {
  3323. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  3324. this->_internal_serial().data(), static_cast<int>(this->_internal_serial().length()),
  3325. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  3326. "RemoNet.CSAdd.serial");
  3327. target = stream->WriteStringMaybeAliased(
  3328. 1, this->_internal_serial(), target);
  3329. }
  3330. // int32 type = 2;
  3331. if (this->_internal_type() != 0) {
  3332. target = stream->EnsureSpace(target);
  3333. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_type(), target);
  3334. }
  3335. // string name = 3;
  3336. if (!this->_internal_name().empty()) {
  3337. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  3338. this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
  3339. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  3340. "RemoNet.CSAdd.name");
  3341. target = stream->WriteStringMaybeAliased(
  3342. 3, this->_internal_name(), target);
  3343. }
  3344. // int32 car = 4;
  3345. if (this->_internal_car() != 0) {
  3346. target = stream->EnsureSpace(target);
  3347. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_car(), target);
  3348. }
  3349. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  3350. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  3351. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  3352. }
  3353. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CSAdd)
  3354. return target;
  3355. }
  3356. size_t CSAdd::ByteSizeLong() const {
  3357. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CSAdd)
  3358. size_t total_size = 0;
  3359. uint32_t cached_has_bits = 0;
  3360. // Prevent compiler warnings about cached_has_bits being unused
  3361. (void) cached_has_bits;
  3362. // string serial = 1;
  3363. if (!this->_internal_serial().empty()) {
  3364. total_size += 1 +
  3365. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  3366. this->_internal_serial());
  3367. }
  3368. // string name = 3;
  3369. if (!this->_internal_name().empty()) {
  3370. total_size += 1 +
  3371. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  3372. this->_internal_name());
  3373. }
  3374. // int32 type = 2;
  3375. if (this->_internal_type() != 0) {
  3376. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_type());
  3377. }
  3378. // int32 car = 4;
  3379. if (this->_internal_car() != 0) {
  3380. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_car());
  3381. }
  3382. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  3383. }
  3384. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CSAdd::_class_data_ = {
  3385. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  3386. CSAdd::MergeImpl
  3387. };
  3388. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CSAdd::GetClassData() const { return &_class_data_; }
  3389. void CSAdd::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  3390. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  3391. static_cast<CSAdd *>(to)->MergeFrom(
  3392. static_cast<const CSAdd &>(from));
  3393. }
  3394. void CSAdd::MergeFrom(const CSAdd& from) {
  3395. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CSAdd)
  3396. GOOGLE_DCHECK_NE(&from, this);
  3397. uint32_t cached_has_bits = 0;
  3398. (void) cached_has_bits;
  3399. if (!from._internal_serial().empty()) {
  3400. _internal_set_serial(from._internal_serial());
  3401. }
  3402. if (!from._internal_name().empty()) {
  3403. _internal_set_name(from._internal_name());
  3404. }
  3405. if (from._internal_type() != 0) {
  3406. _internal_set_type(from._internal_type());
  3407. }
  3408. if (from._internal_car() != 0) {
  3409. _internal_set_car(from._internal_car());
  3410. }
  3411. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3412. }
  3413. void CSAdd::CopyFrom(const CSAdd& from) {
  3414. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CSAdd)
  3415. if (&from == this) return;
  3416. Clear();
  3417. MergeFrom(from);
  3418. }
  3419. bool CSAdd::IsInitialized() const {
  3420. return true;
  3421. }
  3422. void CSAdd::InternalSwap(CSAdd* other) {
  3423. using std::swap;
  3424. auto* lhs_arena = GetArenaForAllocation();
  3425. auto* rhs_arena = other->GetArenaForAllocation();
  3426. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  3427. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  3428. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  3429. &serial_, lhs_arena,
  3430. &other->serial_, rhs_arena
  3431. );
  3432. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  3433. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  3434. &name_, lhs_arena,
  3435. &other->name_, rhs_arena
  3436. );
  3437. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  3438. PROTOBUF_FIELD_OFFSET(CSAdd, car_)
  3439. + sizeof(CSAdd::car_)
  3440. - PROTOBUF_FIELD_OFFSET(CSAdd, type_)>(
  3441. reinterpret_cast<char*>(&type_),
  3442. reinterpret_cast<char*>(&other->type_));
  3443. }
  3444. ::PROTOBUF_NAMESPACE_ID::Metadata CSAdd::GetMetadata() const {
  3445. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  3446. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  3447. file_level_metadata_protocol_2eproto[7]);
  3448. }
  3449. // ===================================================================
  3450. class SCAdd::_Internal {
  3451. public:
  3452. };
  3453. SCAdd::SCAdd(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  3454. bool is_message_owned)
  3455. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  3456. SharedCtor();
  3457. if (!is_message_owned) {
  3458. RegisterArenaDtor(arena);
  3459. }
  3460. // @@protoc_insertion_point(arena_constructor:RemoNet.SCAdd)
  3461. }
  3462. SCAdd::SCAdd(const SCAdd& from)
  3463. : ::PROTOBUF_NAMESPACE_ID::Message() {
  3464. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3465. name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  3466. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3467. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  3468. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3469. if (!from._internal_name().empty()) {
  3470. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(),
  3471. GetArenaForAllocation());
  3472. }
  3473. ::memcpy(&ret_, &from.ret_,
  3474. static_cast<size_t>(reinterpret_cast<char*>(&car_) -
  3475. reinterpret_cast<char*>(&ret_)) + sizeof(car_));
  3476. // @@protoc_insertion_point(copy_constructor:RemoNet.SCAdd)
  3477. }
  3478. inline void SCAdd::SharedCtor() {
  3479. name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  3480. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3481. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  3482. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3483. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  3484. reinterpret_cast<char*>(&ret_) - reinterpret_cast<char*>(this)),
  3485. 0, static_cast<size_t>(reinterpret_cast<char*>(&car_) -
  3486. reinterpret_cast<char*>(&ret_)) + sizeof(car_));
  3487. }
  3488. SCAdd::~SCAdd() {
  3489. // @@protoc_insertion_point(destructor:RemoNet.SCAdd)
  3490. if (GetArenaForAllocation() != nullptr) return;
  3491. SharedDtor();
  3492. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3493. }
  3494. inline void SCAdd::SharedDtor() {
  3495. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  3496. name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  3497. }
  3498. void SCAdd::ArenaDtor(void* object) {
  3499. SCAdd* _this = reinterpret_cast< SCAdd* >(object);
  3500. (void)_this;
  3501. }
  3502. void SCAdd::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  3503. }
  3504. void SCAdd::SetCachedSize(int size) const {
  3505. _cached_size_.Set(size);
  3506. }
  3507. void SCAdd::Clear() {
  3508. // @@protoc_insertion_point(message_clear_start:RemoNet.SCAdd)
  3509. uint32_t cached_has_bits = 0;
  3510. // Prevent compiler warnings about cached_has_bits being unused
  3511. (void) cached_has_bits;
  3512. name_.ClearToEmpty();
  3513. ::memset(&ret_, 0, static_cast<size_t>(
  3514. reinterpret_cast<char*>(&car_) -
  3515. reinterpret_cast<char*>(&ret_)) + sizeof(car_));
  3516. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3517. }
  3518. const char* SCAdd::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  3519. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  3520. while (!ctx->Done(&ptr)) {
  3521. uint32_t tag;
  3522. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  3523. switch (tag >> 3) {
  3524. // bool ret = 1;
  3525. case 1:
  3526. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  3527. ret_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  3528. CHK_(ptr);
  3529. } else
  3530. goto handle_unusual;
  3531. continue;
  3532. // int32 uid = 2;
  3533. case 2:
  3534. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  3535. uid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3536. CHK_(ptr);
  3537. } else
  3538. goto handle_unusual;
  3539. continue;
  3540. // string name = 3;
  3541. case 3:
  3542. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
  3543. auto str = _internal_mutable_name();
  3544. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  3545. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.SCAdd.name"));
  3546. CHK_(ptr);
  3547. } else
  3548. goto handle_unusual;
  3549. continue;
  3550. // int32 car = 4;
  3551. case 4:
  3552. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
  3553. car_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3554. CHK_(ptr);
  3555. } else
  3556. goto handle_unusual;
  3557. continue;
  3558. default:
  3559. goto handle_unusual;
  3560. } // switch
  3561. handle_unusual:
  3562. if ((tag == 0) || ((tag & 7) == 4)) {
  3563. CHK_(ptr);
  3564. ctx->SetLastTag(tag);
  3565. goto message_done;
  3566. }
  3567. ptr = UnknownFieldParse(
  3568. tag,
  3569. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  3570. ptr, ctx);
  3571. CHK_(ptr != nullptr);
  3572. } // while
  3573. message_done:
  3574. return ptr;
  3575. failure:
  3576. ptr = nullptr;
  3577. goto message_done;
  3578. #undef CHK_
  3579. }
  3580. uint8_t* SCAdd::_InternalSerialize(
  3581. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  3582. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.SCAdd)
  3583. uint32_t cached_has_bits = 0;
  3584. (void) cached_has_bits;
  3585. // bool ret = 1;
  3586. if (this->_internal_ret() != 0) {
  3587. target = stream->EnsureSpace(target);
  3588. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_ret(), target);
  3589. }
  3590. // int32 uid = 2;
  3591. if (this->_internal_uid() != 0) {
  3592. target = stream->EnsureSpace(target);
  3593. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_uid(), target);
  3594. }
  3595. // string name = 3;
  3596. if (!this->_internal_name().empty()) {
  3597. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  3598. this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
  3599. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  3600. "RemoNet.SCAdd.name");
  3601. target = stream->WriteStringMaybeAliased(
  3602. 3, this->_internal_name(), target);
  3603. }
  3604. // int32 car = 4;
  3605. if (this->_internal_car() != 0) {
  3606. target = stream->EnsureSpace(target);
  3607. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_car(), target);
  3608. }
  3609. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  3610. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  3611. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  3612. }
  3613. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.SCAdd)
  3614. return target;
  3615. }
  3616. size_t SCAdd::ByteSizeLong() const {
  3617. // @@protoc_insertion_point(message_byte_size_start:RemoNet.SCAdd)
  3618. size_t total_size = 0;
  3619. uint32_t cached_has_bits = 0;
  3620. // Prevent compiler warnings about cached_has_bits being unused
  3621. (void) cached_has_bits;
  3622. // string name = 3;
  3623. if (!this->_internal_name().empty()) {
  3624. total_size += 1 +
  3625. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  3626. this->_internal_name());
  3627. }
  3628. // bool ret = 1;
  3629. if (this->_internal_ret() != 0) {
  3630. total_size += 1 + 1;
  3631. }
  3632. // int32 uid = 2;
  3633. if (this->_internal_uid() != 0) {
  3634. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_uid());
  3635. }
  3636. // int32 car = 4;
  3637. if (this->_internal_car() != 0) {
  3638. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_car());
  3639. }
  3640. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  3641. }
  3642. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCAdd::_class_data_ = {
  3643. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  3644. SCAdd::MergeImpl
  3645. };
  3646. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCAdd::GetClassData() const { return &_class_data_; }
  3647. void SCAdd::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  3648. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  3649. static_cast<SCAdd *>(to)->MergeFrom(
  3650. static_cast<const SCAdd &>(from));
  3651. }
  3652. void SCAdd::MergeFrom(const SCAdd& from) {
  3653. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.SCAdd)
  3654. GOOGLE_DCHECK_NE(&from, this);
  3655. uint32_t cached_has_bits = 0;
  3656. (void) cached_has_bits;
  3657. if (!from._internal_name().empty()) {
  3658. _internal_set_name(from._internal_name());
  3659. }
  3660. if (from._internal_ret() != 0) {
  3661. _internal_set_ret(from._internal_ret());
  3662. }
  3663. if (from._internal_uid() != 0) {
  3664. _internal_set_uid(from._internal_uid());
  3665. }
  3666. if (from._internal_car() != 0) {
  3667. _internal_set_car(from._internal_car());
  3668. }
  3669. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3670. }
  3671. void SCAdd::CopyFrom(const SCAdd& from) {
  3672. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.SCAdd)
  3673. if (&from == this) return;
  3674. Clear();
  3675. MergeFrom(from);
  3676. }
  3677. bool SCAdd::IsInitialized() const {
  3678. return true;
  3679. }
  3680. void SCAdd::InternalSwap(SCAdd* other) {
  3681. using std::swap;
  3682. auto* lhs_arena = GetArenaForAllocation();
  3683. auto* rhs_arena = other->GetArenaForAllocation();
  3684. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  3685. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  3686. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  3687. &name_, lhs_arena,
  3688. &other->name_, rhs_arena
  3689. );
  3690. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  3691. PROTOBUF_FIELD_OFFSET(SCAdd, car_)
  3692. + sizeof(SCAdd::car_)
  3693. - PROTOBUF_FIELD_OFFSET(SCAdd, ret_)>(
  3694. reinterpret_cast<char*>(&ret_),
  3695. reinterpret_cast<char*>(&other->ret_));
  3696. }
  3697. ::PROTOBUF_NAMESPACE_ID::Metadata SCAdd::GetMetadata() const {
  3698. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  3699. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  3700. file_level_metadata_protocol_2eproto[8]);
  3701. }
  3702. // ===================================================================
  3703. class SCKickOff::_Internal {
  3704. public:
  3705. };
  3706. SCKickOff::SCKickOff(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  3707. bool is_message_owned)
  3708. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) {
  3709. // @@protoc_insertion_point(arena_constructor:RemoNet.SCKickOff)
  3710. }
  3711. SCKickOff::SCKickOff(const SCKickOff& from)
  3712. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() {
  3713. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3714. // @@protoc_insertion_point(copy_constructor:RemoNet.SCKickOff)
  3715. }
  3716. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCKickOff::_class_data_ = {
  3717. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl,
  3718. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl,
  3719. };
  3720. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCKickOff::GetClassData() const { return &_class_data_; }
  3721. ::PROTOBUF_NAMESPACE_ID::Metadata SCKickOff::GetMetadata() const {
  3722. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  3723. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  3724. file_level_metadata_protocol_2eproto[9]);
  3725. }
  3726. // ===================================================================
  3727. class CSState::_Internal {
  3728. public:
  3729. };
  3730. CSState::CSState(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  3731. bool is_message_owned)
  3732. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  3733. SharedCtor();
  3734. if (!is_message_owned) {
  3735. RegisterArenaDtor(arena);
  3736. }
  3737. // @@protoc_insertion_point(arena_constructor:RemoNet.CSState)
  3738. }
  3739. CSState::CSState(const CSState& from)
  3740. : ::PROTOBUF_NAMESPACE_ID::Message() {
  3741. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3742. ::memcpy(&state_, &from.state_,
  3743. static_cast<size_t>(reinterpret_cast<char*>(&uid_) -
  3744. reinterpret_cast<char*>(&state_)) + sizeof(uid_));
  3745. // @@protoc_insertion_point(copy_constructor:RemoNet.CSState)
  3746. }
  3747. inline void CSState::SharedCtor() {
  3748. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  3749. reinterpret_cast<char*>(&state_) - reinterpret_cast<char*>(this)),
  3750. 0, static_cast<size_t>(reinterpret_cast<char*>(&uid_) -
  3751. reinterpret_cast<char*>(&state_)) + sizeof(uid_));
  3752. }
  3753. CSState::~CSState() {
  3754. // @@protoc_insertion_point(destructor:RemoNet.CSState)
  3755. if (GetArenaForAllocation() != nullptr) return;
  3756. SharedDtor();
  3757. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3758. }
  3759. inline void CSState::SharedDtor() {
  3760. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  3761. }
  3762. void CSState::ArenaDtor(void* object) {
  3763. CSState* _this = reinterpret_cast< CSState* >(object);
  3764. (void)_this;
  3765. }
  3766. void CSState::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  3767. }
  3768. void CSState::SetCachedSize(int size) const {
  3769. _cached_size_.Set(size);
  3770. }
  3771. void CSState::Clear() {
  3772. // @@protoc_insertion_point(message_clear_start:RemoNet.CSState)
  3773. uint32_t cached_has_bits = 0;
  3774. // Prevent compiler warnings about cached_has_bits being unused
  3775. (void) cached_has_bits;
  3776. ::memset(&state_, 0, static_cast<size_t>(
  3777. reinterpret_cast<char*>(&uid_) -
  3778. reinterpret_cast<char*>(&state_)) + sizeof(uid_));
  3779. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3780. }
  3781. const char* CSState::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  3782. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  3783. while (!ctx->Done(&ptr)) {
  3784. uint32_t tag;
  3785. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  3786. switch (tag >> 3) {
  3787. // .RemoNet.UserState state = 1;
  3788. case 1:
  3789. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  3790. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  3791. CHK_(ptr);
  3792. _internal_set_state(static_cast<::RemoNet::UserState>(val));
  3793. } else
  3794. goto handle_unusual;
  3795. continue;
  3796. // int32 uid = 2;
  3797. case 2:
  3798. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  3799. uid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3800. CHK_(ptr);
  3801. } else
  3802. goto handle_unusual;
  3803. continue;
  3804. default:
  3805. goto handle_unusual;
  3806. } // switch
  3807. handle_unusual:
  3808. if ((tag == 0) || ((tag & 7) == 4)) {
  3809. CHK_(ptr);
  3810. ctx->SetLastTag(tag);
  3811. goto message_done;
  3812. }
  3813. ptr = UnknownFieldParse(
  3814. tag,
  3815. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  3816. ptr, ctx);
  3817. CHK_(ptr != nullptr);
  3818. } // while
  3819. message_done:
  3820. return ptr;
  3821. failure:
  3822. ptr = nullptr;
  3823. goto message_done;
  3824. #undef CHK_
  3825. }
  3826. uint8_t* CSState::_InternalSerialize(
  3827. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  3828. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CSState)
  3829. uint32_t cached_has_bits = 0;
  3830. (void) cached_has_bits;
  3831. // .RemoNet.UserState state = 1;
  3832. if (this->_internal_state() != 0) {
  3833. target = stream->EnsureSpace(target);
  3834. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
  3835. 1, this->_internal_state(), target);
  3836. }
  3837. // int32 uid = 2;
  3838. if (this->_internal_uid() != 0) {
  3839. target = stream->EnsureSpace(target);
  3840. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_uid(), target);
  3841. }
  3842. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  3843. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  3844. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  3845. }
  3846. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CSState)
  3847. return target;
  3848. }
  3849. size_t CSState::ByteSizeLong() const {
  3850. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CSState)
  3851. size_t total_size = 0;
  3852. uint32_t cached_has_bits = 0;
  3853. // Prevent compiler warnings about cached_has_bits being unused
  3854. (void) cached_has_bits;
  3855. // .RemoNet.UserState state = 1;
  3856. if (this->_internal_state() != 0) {
  3857. total_size += 1 +
  3858. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_state());
  3859. }
  3860. // int32 uid = 2;
  3861. if (this->_internal_uid() != 0) {
  3862. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_uid());
  3863. }
  3864. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  3865. }
  3866. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CSState::_class_data_ = {
  3867. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  3868. CSState::MergeImpl
  3869. };
  3870. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CSState::GetClassData() const { return &_class_data_; }
  3871. void CSState::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  3872. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  3873. static_cast<CSState *>(to)->MergeFrom(
  3874. static_cast<const CSState &>(from));
  3875. }
  3876. void CSState::MergeFrom(const CSState& from) {
  3877. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CSState)
  3878. GOOGLE_DCHECK_NE(&from, this);
  3879. uint32_t cached_has_bits = 0;
  3880. (void) cached_has_bits;
  3881. if (from._internal_state() != 0) {
  3882. _internal_set_state(from._internal_state());
  3883. }
  3884. if (from._internal_uid() != 0) {
  3885. _internal_set_uid(from._internal_uid());
  3886. }
  3887. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3888. }
  3889. void CSState::CopyFrom(const CSState& from) {
  3890. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CSState)
  3891. if (&from == this) return;
  3892. Clear();
  3893. MergeFrom(from);
  3894. }
  3895. bool CSState::IsInitialized() const {
  3896. return true;
  3897. }
  3898. void CSState::InternalSwap(CSState* other) {
  3899. using std::swap;
  3900. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  3901. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  3902. PROTOBUF_FIELD_OFFSET(CSState, uid_)
  3903. + sizeof(CSState::uid_)
  3904. - PROTOBUF_FIELD_OFFSET(CSState, state_)>(
  3905. reinterpret_cast<char*>(&state_),
  3906. reinterpret_cast<char*>(&other->state_));
  3907. }
  3908. ::PROTOBUF_NAMESPACE_ID::Metadata CSState::GetMetadata() const {
  3909. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  3910. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  3911. file_level_metadata_protocol_2eproto[10]);
  3912. }
  3913. // ===================================================================
  3914. class SCState::_Internal {
  3915. public:
  3916. };
  3917. SCState::SCState(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  3918. bool is_message_owned)
  3919. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  3920. SharedCtor();
  3921. if (!is_message_owned) {
  3922. RegisterArenaDtor(arena);
  3923. }
  3924. // @@protoc_insertion_point(arena_constructor:RemoNet.SCState)
  3925. }
  3926. SCState::SCState(const SCState& from)
  3927. : ::PROTOBUF_NAMESPACE_ID::Message() {
  3928. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3929. ::memcpy(&state_, &from.state_,
  3930. static_cast<size_t>(reinterpret_cast<char*>(&uid_) -
  3931. reinterpret_cast<char*>(&state_)) + sizeof(uid_));
  3932. // @@protoc_insertion_point(copy_constructor:RemoNet.SCState)
  3933. }
  3934. inline void SCState::SharedCtor() {
  3935. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  3936. reinterpret_cast<char*>(&state_) - reinterpret_cast<char*>(this)),
  3937. 0, static_cast<size_t>(reinterpret_cast<char*>(&uid_) -
  3938. reinterpret_cast<char*>(&state_)) + sizeof(uid_));
  3939. }
  3940. SCState::~SCState() {
  3941. // @@protoc_insertion_point(destructor:RemoNet.SCState)
  3942. if (GetArenaForAllocation() != nullptr) return;
  3943. SharedDtor();
  3944. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3945. }
  3946. inline void SCState::SharedDtor() {
  3947. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  3948. }
  3949. void SCState::ArenaDtor(void* object) {
  3950. SCState* _this = reinterpret_cast< SCState* >(object);
  3951. (void)_this;
  3952. }
  3953. void SCState::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  3954. }
  3955. void SCState::SetCachedSize(int size) const {
  3956. _cached_size_.Set(size);
  3957. }
  3958. void SCState::Clear() {
  3959. // @@protoc_insertion_point(message_clear_start:RemoNet.SCState)
  3960. uint32_t cached_has_bits = 0;
  3961. // Prevent compiler warnings about cached_has_bits being unused
  3962. (void) cached_has_bits;
  3963. ::memset(&state_, 0, static_cast<size_t>(
  3964. reinterpret_cast<char*>(&uid_) -
  3965. reinterpret_cast<char*>(&state_)) + sizeof(uid_));
  3966. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3967. }
  3968. const char* SCState::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  3969. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  3970. while (!ctx->Done(&ptr)) {
  3971. uint32_t tag;
  3972. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  3973. switch (tag >> 3) {
  3974. // .RemoNet.UserState state = 1;
  3975. case 1:
  3976. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  3977. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  3978. CHK_(ptr);
  3979. _internal_set_state(static_cast<::RemoNet::UserState>(val));
  3980. } else
  3981. goto handle_unusual;
  3982. continue;
  3983. // int32 uid = 2;
  3984. case 2:
  3985. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  3986. uid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3987. CHK_(ptr);
  3988. } else
  3989. goto handle_unusual;
  3990. continue;
  3991. default:
  3992. goto handle_unusual;
  3993. } // switch
  3994. handle_unusual:
  3995. if ((tag == 0) || ((tag & 7) == 4)) {
  3996. CHK_(ptr);
  3997. ctx->SetLastTag(tag);
  3998. goto message_done;
  3999. }
  4000. ptr = UnknownFieldParse(
  4001. tag,
  4002. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  4003. ptr, ctx);
  4004. CHK_(ptr != nullptr);
  4005. } // while
  4006. message_done:
  4007. return ptr;
  4008. failure:
  4009. ptr = nullptr;
  4010. goto message_done;
  4011. #undef CHK_
  4012. }
  4013. uint8_t* SCState::_InternalSerialize(
  4014. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  4015. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.SCState)
  4016. uint32_t cached_has_bits = 0;
  4017. (void) cached_has_bits;
  4018. // .RemoNet.UserState state = 1;
  4019. if (this->_internal_state() != 0) {
  4020. target = stream->EnsureSpace(target);
  4021. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
  4022. 1, this->_internal_state(), target);
  4023. }
  4024. // int32 uid = 2;
  4025. if (this->_internal_uid() != 0) {
  4026. target = stream->EnsureSpace(target);
  4027. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_uid(), target);
  4028. }
  4029. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  4030. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  4031. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  4032. }
  4033. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.SCState)
  4034. return target;
  4035. }
  4036. size_t SCState::ByteSizeLong() const {
  4037. // @@protoc_insertion_point(message_byte_size_start:RemoNet.SCState)
  4038. size_t total_size = 0;
  4039. uint32_t cached_has_bits = 0;
  4040. // Prevent compiler warnings about cached_has_bits being unused
  4041. (void) cached_has_bits;
  4042. // .RemoNet.UserState state = 1;
  4043. if (this->_internal_state() != 0) {
  4044. total_size += 1 +
  4045. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_state());
  4046. }
  4047. // int32 uid = 2;
  4048. if (this->_internal_uid() != 0) {
  4049. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_uid());
  4050. }
  4051. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  4052. }
  4053. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCState::_class_data_ = {
  4054. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  4055. SCState::MergeImpl
  4056. };
  4057. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCState::GetClassData() const { return &_class_data_; }
  4058. void SCState::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  4059. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  4060. static_cast<SCState *>(to)->MergeFrom(
  4061. static_cast<const SCState &>(from));
  4062. }
  4063. void SCState::MergeFrom(const SCState& from) {
  4064. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.SCState)
  4065. GOOGLE_DCHECK_NE(&from, this);
  4066. uint32_t cached_has_bits = 0;
  4067. (void) cached_has_bits;
  4068. if (from._internal_state() != 0) {
  4069. _internal_set_state(from._internal_state());
  4070. }
  4071. if (from._internal_uid() != 0) {
  4072. _internal_set_uid(from._internal_uid());
  4073. }
  4074. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4075. }
  4076. void SCState::CopyFrom(const SCState& from) {
  4077. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.SCState)
  4078. if (&from == this) return;
  4079. Clear();
  4080. MergeFrom(from);
  4081. }
  4082. bool SCState::IsInitialized() const {
  4083. return true;
  4084. }
  4085. void SCState::InternalSwap(SCState* other) {
  4086. using std::swap;
  4087. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  4088. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  4089. PROTOBUF_FIELD_OFFSET(SCState, uid_)
  4090. + sizeof(SCState::uid_)
  4091. - PROTOBUF_FIELD_OFFSET(SCState, state_)>(
  4092. reinterpret_cast<char*>(&state_),
  4093. reinterpret_cast<char*>(&other->state_));
  4094. }
  4095. ::PROTOBUF_NAMESPACE_ID::Metadata SCState::GetMetadata() const {
  4096. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  4097. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  4098. file_level_metadata_protocol_2eproto[11]);
  4099. }
  4100. // ===================================================================
  4101. class Robot::_Internal {
  4102. public:
  4103. };
  4104. Robot::Robot(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  4105. bool is_message_owned)
  4106. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  4107. SharedCtor();
  4108. if (!is_message_owned) {
  4109. RegisterArenaDtor(arena);
  4110. }
  4111. // @@protoc_insertion_point(arena_constructor:RemoNet.Robot)
  4112. }
  4113. Robot::Robot(const Robot& from)
  4114. : ::PROTOBUF_NAMESPACE_ID::Message() {
  4115. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4116. name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4117. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4118. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  4119. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4120. if (!from._internal_name().empty()) {
  4121. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(),
  4122. GetArenaForAllocation());
  4123. }
  4124. ::memcpy(&rid_, &from.rid_,
  4125. static_cast<size_t>(reinterpret_cast<char*>(&cartype_) -
  4126. reinterpret_cast<char*>(&rid_)) + sizeof(cartype_));
  4127. // @@protoc_insertion_point(copy_constructor:RemoNet.Robot)
  4128. }
  4129. inline void Robot::SharedCtor() {
  4130. name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4131. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4132. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  4133. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4134. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  4135. reinterpret_cast<char*>(&rid_) - reinterpret_cast<char*>(this)),
  4136. 0, static_cast<size_t>(reinterpret_cast<char*>(&cartype_) -
  4137. reinterpret_cast<char*>(&rid_)) + sizeof(cartype_));
  4138. }
  4139. Robot::~Robot() {
  4140. // @@protoc_insertion_point(destructor:RemoNet.Robot)
  4141. if (GetArenaForAllocation() != nullptr) return;
  4142. SharedDtor();
  4143. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4144. }
  4145. inline void Robot::SharedDtor() {
  4146. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  4147. name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4148. }
  4149. void Robot::ArenaDtor(void* object) {
  4150. Robot* _this = reinterpret_cast< Robot* >(object);
  4151. (void)_this;
  4152. }
  4153. void Robot::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  4154. }
  4155. void Robot::SetCachedSize(int size) const {
  4156. _cached_size_.Set(size);
  4157. }
  4158. void Robot::Clear() {
  4159. // @@protoc_insertion_point(message_clear_start:RemoNet.Robot)
  4160. uint32_t cached_has_bits = 0;
  4161. // Prevent compiler warnings about cached_has_bits being unused
  4162. (void) cached_has_bits;
  4163. name_.ClearToEmpty();
  4164. ::memset(&rid_, 0, static_cast<size_t>(
  4165. reinterpret_cast<char*>(&cartype_) -
  4166. reinterpret_cast<char*>(&rid_)) + sizeof(cartype_));
  4167. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4168. }
  4169. const char* Robot::_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 rid = 1;
  4176. case 1:
  4177. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  4178. rid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  4179. CHK_(ptr);
  4180. } else
  4181. goto handle_unusual;
  4182. continue;
  4183. // string name = 2;
  4184. case 2:
  4185. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
  4186. auto str = _internal_mutable_name();
  4187. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  4188. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.Robot.name"));
  4189. CHK_(ptr);
  4190. } else
  4191. goto handle_unusual;
  4192. continue;
  4193. // int32 type = 3;
  4194. case 3:
  4195. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  4196. type_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  4197. CHK_(ptr);
  4198. } else
  4199. goto handle_unusual;
  4200. continue;
  4201. // .RemoNet.UserState state = 4;
  4202. case 4:
  4203. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
  4204. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  4205. CHK_(ptr);
  4206. _internal_set_state(static_cast<::RemoNet::UserState>(val));
  4207. } else
  4208. goto handle_unusual;
  4209. continue;
  4210. // int32 carType = 5;
  4211. case 5:
  4212. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
  4213. cartype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  4214. CHK_(ptr);
  4215. } else
  4216. goto handle_unusual;
  4217. continue;
  4218. default:
  4219. goto handle_unusual;
  4220. } // switch
  4221. handle_unusual:
  4222. if ((tag == 0) || ((tag & 7) == 4)) {
  4223. CHK_(ptr);
  4224. ctx->SetLastTag(tag);
  4225. goto message_done;
  4226. }
  4227. ptr = UnknownFieldParse(
  4228. tag,
  4229. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  4230. ptr, ctx);
  4231. CHK_(ptr != nullptr);
  4232. } // while
  4233. message_done:
  4234. return ptr;
  4235. failure:
  4236. ptr = nullptr;
  4237. goto message_done;
  4238. #undef CHK_
  4239. }
  4240. uint8_t* Robot::_InternalSerialize(
  4241. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  4242. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.Robot)
  4243. uint32_t cached_has_bits = 0;
  4244. (void) cached_has_bits;
  4245. // int32 rid = 1;
  4246. if (this->_internal_rid() != 0) {
  4247. target = stream->EnsureSpace(target);
  4248. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_rid(), target);
  4249. }
  4250. // string name = 2;
  4251. if (!this->_internal_name().empty()) {
  4252. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  4253. this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
  4254. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  4255. "RemoNet.Robot.name");
  4256. target = stream->WriteStringMaybeAliased(
  4257. 2, this->_internal_name(), target);
  4258. }
  4259. // int32 type = 3;
  4260. if (this->_internal_type() != 0) {
  4261. target = stream->EnsureSpace(target);
  4262. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_type(), target);
  4263. }
  4264. // .RemoNet.UserState state = 4;
  4265. if (this->_internal_state() != 0) {
  4266. target = stream->EnsureSpace(target);
  4267. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
  4268. 4, this->_internal_state(), target);
  4269. }
  4270. // int32 carType = 5;
  4271. if (this->_internal_cartype() != 0) {
  4272. target = stream->EnsureSpace(target);
  4273. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(5, this->_internal_cartype(), target);
  4274. }
  4275. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  4276. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  4277. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  4278. }
  4279. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.Robot)
  4280. return target;
  4281. }
  4282. size_t Robot::ByteSizeLong() const {
  4283. // @@protoc_insertion_point(message_byte_size_start:RemoNet.Robot)
  4284. size_t total_size = 0;
  4285. uint32_t cached_has_bits = 0;
  4286. // Prevent compiler warnings about cached_has_bits being unused
  4287. (void) cached_has_bits;
  4288. // string name = 2;
  4289. if (!this->_internal_name().empty()) {
  4290. total_size += 1 +
  4291. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  4292. this->_internal_name());
  4293. }
  4294. // int32 rid = 1;
  4295. if (this->_internal_rid() != 0) {
  4296. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_rid());
  4297. }
  4298. // int32 type = 3;
  4299. if (this->_internal_type() != 0) {
  4300. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_type());
  4301. }
  4302. // .RemoNet.UserState state = 4;
  4303. if (this->_internal_state() != 0) {
  4304. total_size += 1 +
  4305. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_state());
  4306. }
  4307. // int32 carType = 5;
  4308. if (this->_internal_cartype() != 0) {
  4309. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_cartype());
  4310. }
  4311. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  4312. }
  4313. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Robot::_class_data_ = {
  4314. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  4315. Robot::MergeImpl
  4316. };
  4317. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Robot::GetClassData() const { return &_class_data_; }
  4318. void Robot::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  4319. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  4320. static_cast<Robot *>(to)->MergeFrom(
  4321. static_cast<const Robot &>(from));
  4322. }
  4323. void Robot::MergeFrom(const Robot& from) {
  4324. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.Robot)
  4325. GOOGLE_DCHECK_NE(&from, this);
  4326. uint32_t cached_has_bits = 0;
  4327. (void) cached_has_bits;
  4328. if (!from._internal_name().empty()) {
  4329. _internal_set_name(from._internal_name());
  4330. }
  4331. if (from._internal_rid() != 0) {
  4332. _internal_set_rid(from._internal_rid());
  4333. }
  4334. if (from._internal_type() != 0) {
  4335. _internal_set_type(from._internal_type());
  4336. }
  4337. if (from._internal_state() != 0) {
  4338. _internal_set_state(from._internal_state());
  4339. }
  4340. if (from._internal_cartype() != 0) {
  4341. _internal_set_cartype(from._internal_cartype());
  4342. }
  4343. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4344. }
  4345. void Robot::CopyFrom(const Robot& from) {
  4346. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.Robot)
  4347. if (&from == this) return;
  4348. Clear();
  4349. MergeFrom(from);
  4350. }
  4351. bool Robot::IsInitialized() const {
  4352. return true;
  4353. }
  4354. void Robot::InternalSwap(Robot* other) {
  4355. using std::swap;
  4356. auto* lhs_arena = GetArenaForAllocation();
  4357. auto* rhs_arena = other->GetArenaForAllocation();
  4358. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  4359. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  4360. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  4361. &name_, lhs_arena,
  4362. &other->name_, rhs_arena
  4363. );
  4364. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  4365. PROTOBUF_FIELD_OFFSET(Robot, cartype_)
  4366. + sizeof(Robot::cartype_)
  4367. - PROTOBUF_FIELD_OFFSET(Robot, rid_)>(
  4368. reinterpret_cast<char*>(&rid_),
  4369. reinterpret_cast<char*>(&other->rid_));
  4370. }
  4371. ::PROTOBUF_NAMESPACE_ID::Metadata Robot::GetMetadata() const {
  4372. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  4373. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  4374. file_level_metadata_protocol_2eproto[12]);
  4375. }
  4376. // ===================================================================
  4377. class CSRobot::_Internal {
  4378. public:
  4379. };
  4380. CSRobot::CSRobot(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  4381. bool is_message_owned)
  4382. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) {
  4383. // @@protoc_insertion_point(arena_constructor:RemoNet.CSRobot)
  4384. }
  4385. CSRobot::CSRobot(const CSRobot& from)
  4386. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() {
  4387. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4388. // @@protoc_insertion_point(copy_constructor:RemoNet.CSRobot)
  4389. }
  4390. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CSRobot::_class_data_ = {
  4391. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl,
  4392. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl,
  4393. };
  4394. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CSRobot::GetClassData() const { return &_class_data_; }
  4395. ::PROTOBUF_NAMESPACE_ID::Metadata CSRobot::GetMetadata() const {
  4396. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  4397. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  4398. file_level_metadata_protocol_2eproto[13]);
  4399. }
  4400. // ===================================================================
  4401. class SCRobot::_Internal {
  4402. public:
  4403. };
  4404. SCRobot::SCRobot(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  4405. bool is_message_owned)
  4406. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
  4407. robot_(arena) {
  4408. SharedCtor();
  4409. if (!is_message_owned) {
  4410. RegisterArenaDtor(arena);
  4411. }
  4412. // @@protoc_insertion_point(arena_constructor:RemoNet.SCRobot)
  4413. }
  4414. SCRobot::SCRobot(const SCRobot& from)
  4415. : ::PROTOBUF_NAMESPACE_ID::Message(),
  4416. robot_(from.robot_) {
  4417. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4418. // @@protoc_insertion_point(copy_constructor:RemoNet.SCRobot)
  4419. }
  4420. inline void SCRobot::SharedCtor() {
  4421. }
  4422. SCRobot::~SCRobot() {
  4423. // @@protoc_insertion_point(destructor:RemoNet.SCRobot)
  4424. if (GetArenaForAllocation() != nullptr) return;
  4425. SharedDtor();
  4426. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4427. }
  4428. inline void SCRobot::SharedDtor() {
  4429. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  4430. }
  4431. void SCRobot::ArenaDtor(void* object) {
  4432. SCRobot* _this = reinterpret_cast< SCRobot* >(object);
  4433. (void)_this;
  4434. }
  4435. void SCRobot::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  4436. }
  4437. void SCRobot::SetCachedSize(int size) const {
  4438. _cached_size_.Set(size);
  4439. }
  4440. void SCRobot::Clear() {
  4441. // @@protoc_insertion_point(message_clear_start:RemoNet.SCRobot)
  4442. uint32_t cached_has_bits = 0;
  4443. // Prevent compiler warnings about cached_has_bits being unused
  4444. (void) cached_has_bits;
  4445. robot_.Clear();
  4446. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4447. }
  4448. const char* SCRobot::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  4449. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  4450. while (!ctx->Done(&ptr)) {
  4451. uint32_t tag;
  4452. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  4453. switch (tag >> 3) {
  4454. // repeated .RemoNet.Robot robot = 1;
  4455. case 1:
  4456. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
  4457. ptr -= 1;
  4458. do {
  4459. ptr += 1;
  4460. ptr = ctx->ParseMessage(_internal_add_robot(), ptr);
  4461. CHK_(ptr);
  4462. if (!ctx->DataAvailable(ptr)) break;
  4463. } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
  4464. } else
  4465. goto handle_unusual;
  4466. continue;
  4467. default:
  4468. goto handle_unusual;
  4469. } // switch
  4470. handle_unusual:
  4471. if ((tag == 0) || ((tag & 7) == 4)) {
  4472. CHK_(ptr);
  4473. ctx->SetLastTag(tag);
  4474. goto message_done;
  4475. }
  4476. ptr = UnknownFieldParse(
  4477. tag,
  4478. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  4479. ptr, ctx);
  4480. CHK_(ptr != nullptr);
  4481. } // while
  4482. message_done:
  4483. return ptr;
  4484. failure:
  4485. ptr = nullptr;
  4486. goto message_done;
  4487. #undef CHK_
  4488. }
  4489. uint8_t* SCRobot::_InternalSerialize(
  4490. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  4491. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.SCRobot)
  4492. uint32_t cached_has_bits = 0;
  4493. (void) cached_has_bits;
  4494. // repeated .RemoNet.Robot robot = 1;
  4495. for (unsigned int i = 0,
  4496. n = static_cast<unsigned int>(this->_internal_robot_size()); i < n; i++) {
  4497. target = stream->EnsureSpace(target);
  4498. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  4499. InternalWriteMessage(1, this->_internal_robot(i), target, stream);
  4500. }
  4501. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  4502. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  4503. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  4504. }
  4505. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.SCRobot)
  4506. return target;
  4507. }
  4508. size_t SCRobot::ByteSizeLong() const {
  4509. // @@protoc_insertion_point(message_byte_size_start:RemoNet.SCRobot)
  4510. size_t total_size = 0;
  4511. uint32_t cached_has_bits = 0;
  4512. // Prevent compiler warnings about cached_has_bits being unused
  4513. (void) cached_has_bits;
  4514. // repeated .RemoNet.Robot robot = 1;
  4515. total_size += 1UL * this->_internal_robot_size();
  4516. for (const auto& msg : this->robot_) {
  4517. total_size +=
  4518. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  4519. }
  4520. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  4521. }
  4522. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCRobot::_class_data_ = {
  4523. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  4524. SCRobot::MergeImpl
  4525. };
  4526. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCRobot::GetClassData() const { return &_class_data_; }
  4527. void SCRobot::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  4528. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  4529. static_cast<SCRobot *>(to)->MergeFrom(
  4530. static_cast<const SCRobot &>(from));
  4531. }
  4532. void SCRobot::MergeFrom(const SCRobot& from) {
  4533. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.SCRobot)
  4534. GOOGLE_DCHECK_NE(&from, this);
  4535. uint32_t cached_has_bits = 0;
  4536. (void) cached_has_bits;
  4537. robot_.MergeFrom(from.robot_);
  4538. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4539. }
  4540. void SCRobot::CopyFrom(const SCRobot& from) {
  4541. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.SCRobot)
  4542. if (&from == this) return;
  4543. Clear();
  4544. MergeFrom(from);
  4545. }
  4546. bool SCRobot::IsInitialized() const {
  4547. return true;
  4548. }
  4549. void SCRobot::InternalSwap(SCRobot* other) {
  4550. using std::swap;
  4551. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  4552. robot_.InternalSwap(&other->robot_);
  4553. }
  4554. ::PROTOBUF_NAMESPACE_ID::Metadata SCRobot::GetMetadata() const {
  4555. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  4556. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  4557. file_level_metadata_protocol_2eproto[14]);
  4558. }
  4559. // ===================================================================
  4560. class CSSign::_Internal {
  4561. public:
  4562. };
  4563. CSSign::CSSign(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  4564. bool is_message_owned)
  4565. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  4566. SharedCtor();
  4567. if (!is_message_owned) {
  4568. RegisterArenaDtor(arena);
  4569. }
  4570. // @@protoc_insertion_point(arena_constructor:RemoNet.CSSign)
  4571. }
  4572. CSSign::CSSign(const CSSign& from)
  4573. : ::PROTOBUF_NAMESPACE_ID::Message() {
  4574. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4575. account_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4576. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4577. account_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  4578. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4579. if (!from._internal_account().empty()) {
  4580. account_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_account(),
  4581. GetArenaForAllocation());
  4582. }
  4583. password_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4584. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4585. password_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  4586. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4587. if (!from._internal_password().empty()) {
  4588. password_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_password(),
  4589. GetArenaForAllocation());
  4590. }
  4591. // @@protoc_insertion_point(copy_constructor:RemoNet.CSSign)
  4592. }
  4593. inline void CSSign::SharedCtor() {
  4594. account_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4595. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4596. account_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  4597. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4598. password_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4599. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4600. password_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  4601. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4602. }
  4603. CSSign::~CSSign() {
  4604. // @@protoc_insertion_point(destructor:RemoNet.CSSign)
  4605. if (GetArenaForAllocation() != nullptr) return;
  4606. SharedDtor();
  4607. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4608. }
  4609. inline void CSSign::SharedDtor() {
  4610. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  4611. account_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4612. password_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4613. }
  4614. void CSSign::ArenaDtor(void* object) {
  4615. CSSign* _this = reinterpret_cast< CSSign* >(object);
  4616. (void)_this;
  4617. }
  4618. void CSSign::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  4619. }
  4620. void CSSign::SetCachedSize(int size) const {
  4621. _cached_size_.Set(size);
  4622. }
  4623. void CSSign::Clear() {
  4624. // @@protoc_insertion_point(message_clear_start:RemoNet.CSSign)
  4625. uint32_t cached_has_bits = 0;
  4626. // Prevent compiler warnings about cached_has_bits being unused
  4627. (void) cached_has_bits;
  4628. account_.ClearToEmpty();
  4629. password_.ClearToEmpty();
  4630. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4631. }
  4632. const char* CSSign::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  4633. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  4634. while (!ctx->Done(&ptr)) {
  4635. uint32_t tag;
  4636. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  4637. switch (tag >> 3) {
  4638. // string account = 1;
  4639. case 1:
  4640. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
  4641. auto str = _internal_mutable_account();
  4642. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  4643. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.CSSign.account"));
  4644. CHK_(ptr);
  4645. } else
  4646. goto handle_unusual;
  4647. continue;
  4648. // string password = 2;
  4649. case 2:
  4650. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
  4651. auto str = _internal_mutable_password();
  4652. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  4653. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.CSSign.password"));
  4654. CHK_(ptr);
  4655. } else
  4656. goto handle_unusual;
  4657. continue;
  4658. default:
  4659. goto handle_unusual;
  4660. } // switch
  4661. handle_unusual:
  4662. if ((tag == 0) || ((tag & 7) == 4)) {
  4663. CHK_(ptr);
  4664. ctx->SetLastTag(tag);
  4665. goto message_done;
  4666. }
  4667. ptr = UnknownFieldParse(
  4668. tag,
  4669. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  4670. ptr, ctx);
  4671. CHK_(ptr != nullptr);
  4672. } // while
  4673. message_done:
  4674. return ptr;
  4675. failure:
  4676. ptr = nullptr;
  4677. goto message_done;
  4678. #undef CHK_
  4679. }
  4680. uint8_t* CSSign::_InternalSerialize(
  4681. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  4682. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CSSign)
  4683. uint32_t cached_has_bits = 0;
  4684. (void) cached_has_bits;
  4685. // string account = 1;
  4686. if (!this->_internal_account().empty()) {
  4687. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  4688. this->_internal_account().data(), static_cast<int>(this->_internal_account().length()),
  4689. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  4690. "RemoNet.CSSign.account");
  4691. target = stream->WriteStringMaybeAliased(
  4692. 1, this->_internal_account(), target);
  4693. }
  4694. // string password = 2;
  4695. if (!this->_internal_password().empty()) {
  4696. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  4697. this->_internal_password().data(), static_cast<int>(this->_internal_password().length()),
  4698. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  4699. "RemoNet.CSSign.password");
  4700. target = stream->WriteStringMaybeAliased(
  4701. 2, this->_internal_password(), target);
  4702. }
  4703. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  4704. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  4705. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  4706. }
  4707. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CSSign)
  4708. return target;
  4709. }
  4710. size_t CSSign::ByteSizeLong() const {
  4711. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CSSign)
  4712. size_t total_size = 0;
  4713. uint32_t cached_has_bits = 0;
  4714. // Prevent compiler warnings about cached_has_bits being unused
  4715. (void) cached_has_bits;
  4716. // string account = 1;
  4717. if (!this->_internal_account().empty()) {
  4718. total_size += 1 +
  4719. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  4720. this->_internal_account());
  4721. }
  4722. // string password = 2;
  4723. if (!this->_internal_password().empty()) {
  4724. total_size += 1 +
  4725. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  4726. this->_internal_password());
  4727. }
  4728. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  4729. }
  4730. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CSSign::_class_data_ = {
  4731. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  4732. CSSign::MergeImpl
  4733. };
  4734. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CSSign::GetClassData() const { return &_class_data_; }
  4735. void CSSign::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  4736. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  4737. static_cast<CSSign *>(to)->MergeFrom(
  4738. static_cast<const CSSign &>(from));
  4739. }
  4740. void CSSign::MergeFrom(const CSSign& from) {
  4741. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CSSign)
  4742. GOOGLE_DCHECK_NE(&from, this);
  4743. uint32_t cached_has_bits = 0;
  4744. (void) cached_has_bits;
  4745. if (!from._internal_account().empty()) {
  4746. _internal_set_account(from._internal_account());
  4747. }
  4748. if (!from._internal_password().empty()) {
  4749. _internal_set_password(from._internal_password());
  4750. }
  4751. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4752. }
  4753. void CSSign::CopyFrom(const CSSign& from) {
  4754. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CSSign)
  4755. if (&from == this) return;
  4756. Clear();
  4757. MergeFrom(from);
  4758. }
  4759. bool CSSign::IsInitialized() const {
  4760. return true;
  4761. }
  4762. void CSSign::InternalSwap(CSSign* other) {
  4763. using std::swap;
  4764. auto* lhs_arena = GetArenaForAllocation();
  4765. auto* rhs_arena = other->GetArenaForAllocation();
  4766. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  4767. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  4768. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  4769. &account_, lhs_arena,
  4770. &other->account_, rhs_arena
  4771. );
  4772. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  4773. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  4774. &password_, lhs_arena,
  4775. &other->password_, rhs_arena
  4776. );
  4777. }
  4778. ::PROTOBUF_NAMESPACE_ID::Metadata CSSign::GetMetadata() const {
  4779. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  4780. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  4781. file_level_metadata_protocol_2eproto[15]);
  4782. }
  4783. // ===================================================================
  4784. class SCSign::_Internal {
  4785. public:
  4786. };
  4787. SCSign::SCSign(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  4788. bool is_message_owned)
  4789. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  4790. SharedCtor();
  4791. if (!is_message_owned) {
  4792. RegisterArenaDtor(arena);
  4793. }
  4794. // @@protoc_insertion_point(arena_constructor:RemoNet.SCSign)
  4795. }
  4796. SCSign::SCSign(const SCSign& from)
  4797. : ::PROTOBUF_NAMESPACE_ID::Message() {
  4798. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4799. name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4800. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4801. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  4802. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4803. if (!from._internal_name().empty()) {
  4804. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(),
  4805. GetArenaForAllocation());
  4806. }
  4807. ::memcpy(&ret_, &from.ret_,
  4808. static_cast<size_t>(reinterpret_cast<char*>(&uid_) -
  4809. reinterpret_cast<char*>(&ret_)) + sizeof(uid_));
  4810. // @@protoc_insertion_point(copy_constructor:RemoNet.SCSign)
  4811. }
  4812. inline void SCSign::SharedCtor() {
  4813. name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4814. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4815. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  4816. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4817. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  4818. reinterpret_cast<char*>(&ret_) - reinterpret_cast<char*>(this)),
  4819. 0, static_cast<size_t>(reinterpret_cast<char*>(&uid_) -
  4820. reinterpret_cast<char*>(&ret_)) + sizeof(uid_));
  4821. }
  4822. SCSign::~SCSign() {
  4823. // @@protoc_insertion_point(destructor:RemoNet.SCSign)
  4824. if (GetArenaForAllocation() != nullptr) return;
  4825. SharedDtor();
  4826. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4827. }
  4828. inline void SCSign::SharedDtor() {
  4829. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  4830. name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4831. }
  4832. void SCSign::ArenaDtor(void* object) {
  4833. SCSign* _this = reinterpret_cast< SCSign* >(object);
  4834. (void)_this;
  4835. }
  4836. void SCSign::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  4837. }
  4838. void SCSign::SetCachedSize(int size) const {
  4839. _cached_size_.Set(size);
  4840. }
  4841. void SCSign::Clear() {
  4842. // @@protoc_insertion_point(message_clear_start:RemoNet.SCSign)
  4843. uint32_t cached_has_bits = 0;
  4844. // Prevent compiler warnings about cached_has_bits being unused
  4845. (void) cached_has_bits;
  4846. name_.ClearToEmpty();
  4847. ::memset(&ret_, 0, static_cast<size_t>(
  4848. reinterpret_cast<char*>(&uid_) -
  4849. reinterpret_cast<char*>(&ret_)) + sizeof(uid_));
  4850. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4851. }
  4852. const char* SCSign::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  4853. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  4854. while (!ctx->Done(&ptr)) {
  4855. uint32_t tag;
  4856. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  4857. switch (tag >> 3) {
  4858. // bool ret = 1;
  4859. case 1:
  4860. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  4861. ret_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  4862. CHK_(ptr);
  4863. } else
  4864. goto handle_unusual;
  4865. continue;
  4866. // int32 uid = 2;
  4867. case 2:
  4868. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  4869. uid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  4870. CHK_(ptr);
  4871. } else
  4872. goto handle_unusual;
  4873. continue;
  4874. // string name = 3;
  4875. case 3:
  4876. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
  4877. auto str = _internal_mutable_name();
  4878. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  4879. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.SCSign.name"));
  4880. CHK_(ptr);
  4881. } else
  4882. goto handle_unusual;
  4883. continue;
  4884. default:
  4885. goto handle_unusual;
  4886. } // switch
  4887. handle_unusual:
  4888. if ((tag == 0) || ((tag & 7) == 4)) {
  4889. CHK_(ptr);
  4890. ctx->SetLastTag(tag);
  4891. goto message_done;
  4892. }
  4893. ptr = UnknownFieldParse(
  4894. tag,
  4895. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  4896. ptr, ctx);
  4897. CHK_(ptr != nullptr);
  4898. } // while
  4899. message_done:
  4900. return ptr;
  4901. failure:
  4902. ptr = nullptr;
  4903. goto message_done;
  4904. #undef CHK_
  4905. }
  4906. uint8_t* SCSign::_InternalSerialize(
  4907. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  4908. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.SCSign)
  4909. uint32_t cached_has_bits = 0;
  4910. (void) cached_has_bits;
  4911. // bool ret = 1;
  4912. if (this->_internal_ret() != 0) {
  4913. target = stream->EnsureSpace(target);
  4914. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_ret(), target);
  4915. }
  4916. // int32 uid = 2;
  4917. if (this->_internal_uid() != 0) {
  4918. target = stream->EnsureSpace(target);
  4919. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_uid(), target);
  4920. }
  4921. // string name = 3;
  4922. if (!this->_internal_name().empty()) {
  4923. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  4924. this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
  4925. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  4926. "RemoNet.SCSign.name");
  4927. target = stream->WriteStringMaybeAliased(
  4928. 3, this->_internal_name(), target);
  4929. }
  4930. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  4931. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  4932. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  4933. }
  4934. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.SCSign)
  4935. return target;
  4936. }
  4937. size_t SCSign::ByteSizeLong() const {
  4938. // @@protoc_insertion_point(message_byte_size_start:RemoNet.SCSign)
  4939. size_t total_size = 0;
  4940. uint32_t cached_has_bits = 0;
  4941. // Prevent compiler warnings about cached_has_bits being unused
  4942. (void) cached_has_bits;
  4943. // string name = 3;
  4944. if (!this->_internal_name().empty()) {
  4945. total_size += 1 +
  4946. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  4947. this->_internal_name());
  4948. }
  4949. // bool ret = 1;
  4950. if (this->_internal_ret() != 0) {
  4951. total_size += 1 + 1;
  4952. }
  4953. // int32 uid = 2;
  4954. if (this->_internal_uid() != 0) {
  4955. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_uid());
  4956. }
  4957. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  4958. }
  4959. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCSign::_class_data_ = {
  4960. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  4961. SCSign::MergeImpl
  4962. };
  4963. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCSign::GetClassData() const { return &_class_data_; }
  4964. void SCSign::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  4965. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  4966. static_cast<SCSign *>(to)->MergeFrom(
  4967. static_cast<const SCSign &>(from));
  4968. }
  4969. void SCSign::MergeFrom(const SCSign& from) {
  4970. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.SCSign)
  4971. GOOGLE_DCHECK_NE(&from, this);
  4972. uint32_t cached_has_bits = 0;
  4973. (void) cached_has_bits;
  4974. if (!from._internal_name().empty()) {
  4975. _internal_set_name(from._internal_name());
  4976. }
  4977. if (from._internal_ret() != 0) {
  4978. _internal_set_ret(from._internal_ret());
  4979. }
  4980. if (from._internal_uid() != 0) {
  4981. _internal_set_uid(from._internal_uid());
  4982. }
  4983. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4984. }
  4985. void SCSign::CopyFrom(const SCSign& from) {
  4986. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.SCSign)
  4987. if (&from == this) return;
  4988. Clear();
  4989. MergeFrom(from);
  4990. }
  4991. bool SCSign::IsInitialized() const {
  4992. return true;
  4993. }
  4994. void SCSign::InternalSwap(SCSign* other) {
  4995. using std::swap;
  4996. auto* lhs_arena = GetArenaForAllocation();
  4997. auto* rhs_arena = other->GetArenaForAllocation();
  4998. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  4999. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  5000. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  5001. &name_, lhs_arena,
  5002. &other->name_, rhs_arena
  5003. );
  5004. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  5005. PROTOBUF_FIELD_OFFSET(SCSign, uid_)
  5006. + sizeof(SCSign::uid_)
  5007. - PROTOBUF_FIELD_OFFSET(SCSign, ret_)>(
  5008. reinterpret_cast<char*>(&ret_),
  5009. reinterpret_cast<char*>(&other->ret_));
  5010. }
  5011. ::PROTOBUF_NAMESPACE_ID::Metadata SCSign::GetMetadata() const {
  5012. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  5013. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  5014. file_level_metadata_protocol_2eproto[16]);
  5015. }
  5016. // ===================================================================
  5017. class CSReq::_Internal {
  5018. public:
  5019. };
  5020. CSReq::CSReq(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  5021. bool is_message_owned)
  5022. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  5023. SharedCtor();
  5024. if (!is_message_owned) {
  5025. RegisterArenaDtor(arena);
  5026. }
  5027. // @@protoc_insertion_point(arena_constructor:RemoNet.CSReq)
  5028. }
  5029. CSReq::CSReq(const CSReq& from)
  5030. : ::PROTOBUF_NAMESPACE_ID::Message() {
  5031. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  5032. ::memcpy(&peer_, &from.peer_,
  5033. static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  5034. reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
  5035. // @@protoc_insertion_point(copy_constructor:RemoNet.CSReq)
  5036. }
  5037. inline void CSReq::SharedCtor() {
  5038. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  5039. reinterpret_cast<char*>(&peer_) - reinterpret_cast<char*>(this)),
  5040. 0, static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  5041. reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
  5042. }
  5043. CSReq::~CSReq() {
  5044. // @@protoc_insertion_point(destructor:RemoNet.CSReq)
  5045. if (GetArenaForAllocation() != nullptr) return;
  5046. SharedDtor();
  5047. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5048. }
  5049. inline void CSReq::SharedDtor() {
  5050. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  5051. }
  5052. void CSReq::ArenaDtor(void* object) {
  5053. CSReq* _this = reinterpret_cast< CSReq* >(object);
  5054. (void)_this;
  5055. }
  5056. void CSReq::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  5057. }
  5058. void CSReq::SetCachedSize(int size) const {
  5059. _cached_size_.Set(size);
  5060. }
  5061. void CSReq::Clear() {
  5062. // @@protoc_insertion_point(message_clear_start:RemoNet.CSReq)
  5063. uint32_t cached_has_bits = 0;
  5064. // Prevent compiler warnings about cached_has_bits being unused
  5065. (void) cached_has_bits;
  5066. ::memset(&peer_, 0, static_cast<size_t>(
  5067. reinterpret_cast<char*>(&egotype_) -
  5068. reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
  5069. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5070. }
  5071. const char* CSReq::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  5072. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  5073. while (!ctx->Done(&ptr)) {
  5074. uint32_t tag;
  5075. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  5076. switch (tag >> 3) {
  5077. // int32 peer = 1;
  5078. case 1:
  5079. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  5080. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  5081. CHK_(ptr);
  5082. } else
  5083. goto handle_unusual;
  5084. continue;
  5085. // int32 index = 2;
  5086. case 2:
  5087. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  5088. index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  5089. CHK_(ptr);
  5090. } else
  5091. goto handle_unusual;
  5092. continue;
  5093. // int32 egotype = 3;
  5094. case 3:
  5095. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  5096. egotype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  5097. CHK_(ptr);
  5098. } else
  5099. goto handle_unusual;
  5100. continue;
  5101. default:
  5102. goto handle_unusual;
  5103. } // switch
  5104. handle_unusual:
  5105. if ((tag == 0) || ((tag & 7) == 4)) {
  5106. CHK_(ptr);
  5107. ctx->SetLastTag(tag);
  5108. goto message_done;
  5109. }
  5110. ptr = UnknownFieldParse(
  5111. tag,
  5112. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  5113. ptr, ctx);
  5114. CHK_(ptr != nullptr);
  5115. } // while
  5116. message_done:
  5117. return ptr;
  5118. failure:
  5119. ptr = nullptr;
  5120. goto message_done;
  5121. #undef CHK_
  5122. }
  5123. uint8_t* CSReq::_InternalSerialize(
  5124. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  5125. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CSReq)
  5126. uint32_t cached_has_bits = 0;
  5127. (void) cached_has_bits;
  5128. // int32 peer = 1;
  5129. if (this->_internal_peer() != 0) {
  5130. target = stream->EnsureSpace(target);
  5131. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_peer(), target);
  5132. }
  5133. // int32 index = 2;
  5134. if (this->_internal_index() != 0) {
  5135. target = stream->EnsureSpace(target);
  5136. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_index(), target);
  5137. }
  5138. // int32 egotype = 3;
  5139. if (this->_internal_egotype() != 0) {
  5140. target = stream->EnsureSpace(target);
  5141. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_egotype(), target);
  5142. }
  5143. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  5144. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  5145. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  5146. }
  5147. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CSReq)
  5148. return target;
  5149. }
  5150. size_t CSReq::ByteSizeLong() const {
  5151. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CSReq)
  5152. size_t total_size = 0;
  5153. uint32_t cached_has_bits = 0;
  5154. // Prevent compiler warnings about cached_has_bits being unused
  5155. (void) cached_has_bits;
  5156. // int32 peer = 1;
  5157. if (this->_internal_peer() != 0) {
  5158. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  5159. }
  5160. // int32 index = 2;
  5161. if (this->_internal_index() != 0) {
  5162. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_index());
  5163. }
  5164. // int32 egotype = 3;
  5165. if (this->_internal_egotype() != 0) {
  5166. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_egotype());
  5167. }
  5168. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  5169. }
  5170. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CSReq::_class_data_ = {
  5171. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  5172. CSReq::MergeImpl
  5173. };
  5174. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CSReq::GetClassData() const { return &_class_data_; }
  5175. void CSReq::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  5176. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  5177. static_cast<CSReq *>(to)->MergeFrom(
  5178. static_cast<const CSReq &>(from));
  5179. }
  5180. void CSReq::MergeFrom(const CSReq& from) {
  5181. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CSReq)
  5182. GOOGLE_DCHECK_NE(&from, this);
  5183. uint32_t cached_has_bits = 0;
  5184. (void) cached_has_bits;
  5185. if (from._internal_peer() != 0) {
  5186. _internal_set_peer(from._internal_peer());
  5187. }
  5188. if (from._internal_index() != 0) {
  5189. _internal_set_index(from._internal_index());
  5190. }
  5191. if (from._internal_egotype() != 0) {
  5192. _internal_set_egotype(from._internal_egotype());
  5193. }
  5194. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  5195. }
  5196. void CSReq::CopyFrom(const CSReq& from) {
  5197. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CSReq)
  5198. if (&from == this) return;
  5199. Clear();
  5200. MergeFrom(from);
  5201. }
  5202. bool CSReq::IsInitialized() const {
  5203. return true;
  5204. }
  5205. void CSReq::InternalSwap(CSReq* other) {
  5206. using std::swap;
  5207. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  5208. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  5209. PROTOBUF_FIELD_OFFSET(CSReq, egotype_)
  5210. + sizeof(CSReq::egotype_)
  5211. - PROTOBUF_FIELD_OFFSET(CSReq, peer_)>(
  5212. reinterpret_cast<char*>(&peer_),
  5213. reinterpret_cast<char*>(&other->peer_));
  5214. }
  5215. ::PROTOBUF_NAMESPACE_ID::Metadata CSReq::GetMetadata() const {
  5216. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  5217. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  5218. file_level_metadata_protocol_2eproto[17]);
  5219. }
  5220. // ===================================================================
  5221. class SCReq::_Internal {
  5222. public:
  5223. };
  5224. SCReq::SCReq(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  5225. bool is_message_owned)
  5226. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  5227. SharedCtor();
  5228. if (!is_message_owned) {
  5229. RegisterArenaDtor(arena);
  5230. }
  5231. // @@protoc_insertion_point(arena_constructor:RemoNet.SCReq)
  5232. }
  5233. SCReq::SCReq(const SCReq& from)
  5234. : ::PROTOBUF_NAMESPACE_ID::Message() {
  5235. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  5236. ::memcpy(&desc_, &from.desc_,
  5237. static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  5238. reinterpret_cast<char*>(&desc_)) + sizeof(egotype_));
  5239. // @@protoc_insertion_point(copy_constructor:RemoNet.SCReq)
  5240. }
  5241. inline void SCReq::SharedCtor() {
  5242. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  5243. reinterpret_cast<char*>(&desc_) - reinterpret_cast<char*>(this)),
  5244. 0, static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  5245. reinterpret_cast<char*>(&desc_)) + sizeof(egotype_));
  5246. }
  5247. SCReq::~SCReq() {
  5248. // @@protoc_insertion_point(destructor:RemoNet.SCReq)
  5249. if (GetArenaForAllocation() != nullptr) return;
  5250. SharedDtor();
  5251. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5252. }
  5253. inline void SCReq::SharedDtor() {
  5254. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  5255. }
  5256. void SCReq::ArenaDtor(void* object) {
  5257. SCReq* _this = reinterpret_cast< SCReq* >(object);
  5258. (void)_this;
  5259. }
  5260. void SCReq::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  5261. }
  5262. void SCReq::SetCachedSize(int size) const {
  5263. _cached_size_.Set(size);
  5264. }
  5265. void SCReq::Clear() {
  5266. // @@protoc_insertion_point(message_clear_start:RemoNet.SCReq)
  5267. uint32_t cached_has_bits = 0;
  5268. // Prevent compiler warnings about cached_has_bits being unused
  5269. (void) cached_has_bits;
  5270. ::memset(&desc_, 0, static_cast<size_t>(
  5271. reinterpret_cast<char*>(&egotype_) -
  5272. reinterpret_cast<char*>(&desc_)) + sizeof(egotype_));
  5273. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5274. }
  5275. const char* SCReq::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  5276. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  5277. while (!ctx->Done(&ptr)) {
  5278. uint32_t tag;
  5279. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  5280. switch (tag >> 3) {
  5281. // .RemoNet.VideoDesc desc = 1;
  5282. case 1:
  5283. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  5284. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  5285. CHK_(ptr);
  5286. _internal_set_desc(static_cast<::RemoNet::VideoDesc>(val));
  5287. } else
  5288. goto handle_unusual;
  5289. continue;
  5290. // int32 peer = 2;
  5291. case 2:
  5292. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  5293. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  5294. CHK_(ptr);
  5295. } else
  5296. goto handle_unusual;
  5297. continue;
  5298. // int32 egotype = 3;
  5299. case 3:
  5300. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  5301. egotype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  5302. CHK_(ptr);
  5303. } else
  5304. goto handle_unusual;
  5305. continue;
  5306. default:
  5307. goto handle_unusual;
  5308. } // switch
  5309. handle_unusual:
  5310. if ((tag == 0) || ((tag & 7) == 4)) {
  5311. CHK_(ptr);
  5312. ctx->SetLastTag(tag);
  5313. goto message_done;
  5314. }
  5315. ptr = UnknownFieldParse(
  5316. tag,
  5317. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  5318. ptr, ctx);
  5319. CHK_(ptr != nullptr);
  5320. } // while
  5321. message_done:
  5322. return ptr;
  5323. failure:
  5324. ptr = nullptr;
  5325. goto message_done;
  5326. #undef CHK_
  5327. }
  5328. uint8_t* SCReq::_InternalSerialize(
  5329. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  5330. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.SCReq)
  5331. uint32_t cached_has_bits = 0;
  5332. (void) cached_has_bits;
  5333. // .RemoNet.VideoDesc desc = 1;
  5334. if (this->_internal_desc() != 0) {
  5335. target = stream->EnsureSpace(target);
  5336. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
  5337. 1, this->_internal_desc(), target);
  5338. }
  5339. // int32 peer = 2;
  5340. if (this->_internal_peer() != 0) {
  5341. target = stream->EnsureSpace(target);
  5342. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_peer(), target);
  5343. }
  5344. // int32 egotype = 3;
  5345. if (this->_internal_egotype() != 0) {
  5346. target = stream->EnsureSpace(target);
  5347. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_egotype(), target);
  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.SCReq)
  5354. return target;
  5355. }
  5356. size_t SCReq::ByteSizeLong() const {
  5357. // @@protoc_insertion_point(message_byte_size_start:RemoNet.SCReq)
  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. // .RemoNet.VideoDesc desc = 1;
  5363. if (this->_internal_desc() != 0) {
  5364. total_size += 1 +
  5365. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_desc());
  5366. }
  5367. // int32 peer = 2;
  5368. if (this->_internal_peer() != 0) {
  5369. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  5370. }
  5371. // int32 egotype = 3;
  5372. if (this->_internal_egotype() != 0) {
  5373. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_egotype());
  5374. }
  5375. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  5376. }
  5377. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCReq::_class_data_ = {
  5378. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  5379. SCReq::MergeImpl
  5380. };
  5381. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCReq::GetClassData() const { return &_class_data_; }
  5382. void SCReq::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  5383. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  5384. static_cast<SCReq *>(to)->MergeFrom(
  5385. static_cast<const SCReq &>(from));
  5386. }
  5387. void SCReq::MergeFrom(const SCReq& from) {
  5388. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.SCReq)
  5389. GOOGLE_DCHECK_NE(&from, this);
  5390. uint32_t cached_has_bits = 0;
  5391. (void) cached_has_bits;
  5392. if (from._internal_desc() != 0) {
  5393. _internal_set_desc(from._internal_desc());
  5394. }
  5395. if (from._internal_peer() != 0) {
  5396. _internal_set_peer(from._internal_peer());
  5397. }
  5398. if (from._internal_egotype() != 0) {
  5399. _internal_set_egotype(from._internal_egotype());
  5400. }
  5401. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  5402. }
  5403. void SCReq::CopyFrom(const SCReq& from) {
  5404. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.SCReq)
  5405. if (&from == this) return;
  5406. Clear();
  5407. MergeFrom(from);
  5408. }
  5409. bool SCReq::IsInitialized() const {
  5410. return true;
  5411. }
  5412. void SCReq::InternalSwap(SCReq* other) {
  5413. using std::swap;
  5414. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  5415. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  5416. PROTOBUF_FIELD_OFFSET(SCReq, egotype_)
  5417. + sizeof(SCReq::egotype_)
  5418. - PROTOBUF_FIELD_OFFSET(SCReq, desc_)>(
  5419. reinterpret_cast<char*>(&desc_),
  5420. reinterpret_cast<char*>(&other->desc_));
  5421. }
  5422. ::PROTOBUF_NAMESPACE_ID::Metadata SCReq::GetMetadata() const {
  5423. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  5424. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  5425. file_level_metadata_protocol_2eproto[18]);
  5426. }
  5427. // ===================================================================
  5428. class CSRep::_Internal {
  5429. public:
  5430. };
  5431. CSRep::CSRep(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  5432. bool is_message_owned)
  5433. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  5434. SharedCtor();
  5435. if (!is_message_owned) {
  5436. RegisterArenaDtor(arena);
  5437. }
  5438. // @@protoc_insertion_point(arena_constructor:RemoNet.CSRep)
  5439. }
  5440. CSRep::CSRep(const CSRep& from)
  5441. : ::PROTOBUF_NAMESPACE_ID::Message() {
  5442. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  5443. ::memcpy(&desc_, &from.desc_,
  5444. static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  5445. reinterpret_cast<char*>(&desc_)) + sizeof(egotype_));
  5446. // @@protoc_insertion_point(copy_constructor:RemoNet.CSRep)
  5447. }
  5448. inline void CSRep::SharedCtor() {
  5449. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  5450. reinterpret_cast<char*>(&desc_) - reinterpret_cast<char*>(this)),
  5451. 0, static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  5452. reinterpret_cast<char*>(&desc_)) + sizeof(egotype_));
  5453. }
  5454. CSRep::~CSRep() {
  5455. // @@protoc_insertion_point(destructor:RemoNet.CSRep)
  5456. if (GetArenaForAllocation() != nullptr) return;
  5457. SharedDtor();
  5458. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5459. }
  5460. inline void CSRep::SharedDtor() {
  5461. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  5462. }
  5463. void CSRep::ArenaDtor(void* object) {
  5464. CSRep* _this = reinterpret_cast< CSRep* >(object);
  5465. (void)_this;
  5466. }
  5467. void CSRep::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  5468. }
  5469. void CSRep::SetCachedSize(int size) const {
  5470. _cached_size_.Set(size);
  5471. }
  5472. void CSRep::Clear() {
  5473. // @@protoc_insertion_point(message_clear_start:RemoNet.CSRep)
  5474. uint32_t cached_has_bits = 0;
  5475. // Prevent compiler warnings about cached_has_bits being unused
  5476. (void) cached_has_bits;
  5477. ::memset(&desc_, 0, static_cast<size_t>(
  5478. reinterpret_cast<char*>(&egotype_) -
  5479. reinterpret_cast<char*>(&desc_)) + sizeof(egotype_));
  5480. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5481. }
  5482. const char* CSRep::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  5483. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  5484. while (!ctx->Done(&ptr)) {
  5485. uint32_t tag;
  5486. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  5487. switch (tag >> 3) {
  5488. // .RemoNet.VideoDesc desc = 1;
  5489. case 1:
  5490. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  5491. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  5492. CHK_(ptr);
  5493. _internal_set_desc(static_cast<::RemoNet::VideoDesc>(val));
  5494. } else
  5495. goto handle_unusual;
  5496. continue;
  5497. // int32 peer = 2;
  5498. case 2:
  5499. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  5500. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  5501. CHK_(ptr);
  5502. } else
  5503. goto handle_unusual;
  5504. continue;
  5505. // int32 index = 3;
  5506. case 3:
  5507. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  5508. index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  5509. CHK_(ptr);
  5510. } else
  5511. goto handle_unusual;
  5512. continue;
  5513. // int32 egotype = 4;
  5514. case 4:
  5515. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
  5516. egotype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  5517. CHK_(ptr);
  5518. } else
  5519. goto handle_unusual;
  5520. continue;
  5521. default:
  5522. goto handle_unusual;
  5523. } // switch
  5524. handle_unusual:
  5525. if ((tag == 0) || ((tag & 7) == 4)) {
  5526. CHK_(ptr);
  5527. ctx->SetLastTag(tag);
  5528. goto message_done;
  5529. }
  5530. ptr = UnknownFieldParse(
  5531. tag,
  5532. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  5533. ptr, ctx);
  5534. CHK_(ptr != nullptr);
  5535. } // while
  5536. message_done:
  5537. return ptr;
  5538. failure:
  5539. ptr = nullptr;
  5540. goto message_done;
  5541. #undef CHK_
  5542. }
  5543. uint8_t* CSRep::_InternalSerialize(
  5544. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  5545. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CSRep)
  5546. uint32_t cached_has_bits = 0;
  5547. (void) cached_has_bits;
  5548. // .RemoNet.VideoDesc desc = 1;
  5549. if (this->_internal_desc() != 0) {
  5550. target = stream->EnsureSpace(target);
  5551. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
  5552. 1, this->_internal_desc(), target);
  5553. }
  5554. // int32 peer = 2;
  5555. if (this->_internal_peer() != 0) {
  5556. target = stream->EnsureSpace(target);
  5557. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_peer(), target);
  5558. }
  5559. // int32 index = 3;
  5560. if (this->_internal_index() != 0) {
  5561. target = stream->EnsureSpace(target);
  5562. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_index(), target);
  5563. }
  5564. // int32 egotype = 4;
  5565. if (this->_internal_egotype() != 0) {
  5566. target = stream->EnsureSpace(target);
  5567. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_egotype(), target);
  5568. }
  5569. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  5570. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  5571. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  5572. }
  5573. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CSRep)
  5574. return target;
  5575. }
  5576. size_t CSRep::ByteSizeLong() const {
  5577. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CSRep)
  5578. size_t total_size = 0;
  5579. uint32_t cached_has_bits = 0;
  5580. // Prevent compiler warnings about cached_has_bits being unused
  5581. (void) cached_has_bits;
  5582. // .RemoNet.VideoDesc desc = 1;
  5583. if (this->_internal_desc() != 0) {
  5584. total_size += 1 +
  5585. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_desc());
  5586. }
  5587. // int32 peer = 2;
  5588. if (this->_internal_peer() != 0) {
  5589. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  5590. }
  5591. // int32 index = 3;
  5592. if (this->_internal_index() != 0) {
  5593. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_index());
  5594. }
  5595. // int32 egotype = 4;
  5596. if (this->_internal_egotype() != 0) {
  5597. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_egotype());
  5598. }
  5599. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  5600. }
  5601. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CSRep::_class_data_ = {
  5602. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  5603. CSRep::MergeImpl
  5604. };
  5605. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CSRep::GetClassData() const { return &_class_data_; }
  5606. void CSRep::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  5607. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  5608. static_cast<CSRep *>(to)->MergeFrom(
  5609. static_cast<const CSRep &>(from));
  5610. }
  5611. void CSRep::MergeFrom(const CSRep& from) {
  5612. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CSRep)
  5613. GOOGLE_DCHECK_NE(&from, this);
  5614. uint32_t cached_has_bits = 0;
  5615. (void) cached_has_bits;
  5616. if (from._internal_desc() != 0) {
  5617. _internal_set_desc(from._internal_desc());
  5618. }
  5619. if (from._internal_peer() != 0) {
  5620. _internal_set_peer(from._internal_peer());
  5621. }
  5622. if (from._internal_index() != 0) {
  5623. _internal_set_index(from._internal_index());
  5624. }
  5625. if (from._internal_egotype() != 0) {
  5626. _internal_set_egotype(from._internal_egotype());
  5627. }
  5628. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  5629. }
  5630. void CSRep::CopyFrom(const CSRep& from) {
  5631. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CSRep)
  5632. if (&from == this) return;
  5633. Clear();
  5634. MergeFrom(from);
  5635. }
  5636. bool CSRep::IsInitialized() const {
  5637. return true;
  5638. }
  5639. void CSRep::InternalSwap(CSRep* other) {
  5640. using std::swap;
  5641. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  5642. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  5643. PROTOBUF_FIELD_OFFSET(CSRep, egotype_)
  5644. + sizeof(CSRep::egotype_)
  5645. - PROTOBUF_FIELD_OFFSET(CSRep, desc_)>(
  5646. reinterpret_cast<char*>(&desc_),
  5647. reinterpret_cast<char*>(&other->desc_));
  5648. }
  5649. ::PROTOBUF_NAMESPACE_ID::Metadata CSRep::GetMetadata() const {
  5650. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  5651. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  5652. file_level_metadata_protocol_2eproto[19]);
  5653. }
  5654. // ===================================================================
  5655. class SCRep::_Internal {
  5656. public:
  5657. };
  5658. SCRep::SCRep(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  5659. bool is_message_owned)
  5660. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  5661. SharedCtor();
  5662. if (!is_message_owned) {
  5663. RegisterArenaDtor(arena);
  5664. }
  5665. // @@protoc_insertion_point(arena_constructor:RemoNet.SCRep)
  5666. }
  5667. SCRep::SCRep(const SCRep& from)
  5668. : ::PROTOBUF_NAMESPACE_ID::Message() {
  5669. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  5670. ::memcpy(&desc_, &from.desc_,
  5671. static_cast<size_t>(reinterpret_cast<char*>(&peer_) -
  5672. reinterpret_cast<char*>(&desc_)) + sizeof(peer_));
  5673. // @@protoc_insertion_point(copy_constructor:RemoNet.SCRep)
  5674. }
  5675. inline void SCRep::SharedCtor() {
  5676. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  5677. reinterpret_cast<char*>(&desc_) - reinterpret_cast<char*>(this)),
  5678. 0, static_cast<size_t>(reinterpret_cast<char*>(&peer_) -
  5679. reinterpret_cast<char*>(&desc_)) + sizeof(peer_));
  5680. }
  5681. SCRep::~SCRep() {
  5682. // @@protoc_insertion_point(destructor:RemoNet.SCRep)
  5683. if (GetArenaForAllocation() != nullptr) return;
  5684. SharedDtor();
  5685. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5686. }
  5687. inline void SCRep::SharedDtor() {
  5688. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  5689. }
  5690. void SCRep::ArenaDtor(void* object) {
  5691. SCRep* _this = reinterpret_cast< SCRep* >(object);
  5692. (void)_this;
  5693. }
  5694. void SCRep::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  5695. }
  5696. void SCRep::SetCachedSize(int size) const {
  5697. _cached_size_.Set(size);
  5698. }
  5699. void SCRep::Clear() {
  5700. // @@protoc_insertion_point(message_clear_start:RemoNet.SCRep)
  5701. uint32_t cached_has_bits = 0;
  5702. // Prevent compiler warnings about cached_has_bits being unused
  5703. (void) cached_has_bits;
  5704. ::memset(&desc_, 0, static_cast<size_t>(
  5705. reinterpret_cast<char*>(&peer_) -
  5706. reinterpret_cast<char*>(&desc_)) + sizeof(peer_));
  5707. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5708. }
  5709. const char* SCRep::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  5710. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  5711. while (!ctx->Done(&ptr)) {
  5712. uint32_t tag;
  5713. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  5714. switch (tag >> 3) {
  5715. // .RemoNet.VideoDesc desc = 1;
  5716. case 1:
  5717. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  5718. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  5719. CHK_(ptr);
  5720. _internal_set_desc(static_cast<::RemoNet::VideoDesc>(val));
  5721. } else
  5722. goto handle_unusual;
  5723. continue;
  5724. // int32 index = 2;
  5725. case 2:
  5726. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  5727. index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  5728. CHK_(ptr);
  5729. } else
  5730. goto handle_unusual;
  5731. continue;
  5732. // int32 egotype = 3;
  5733. case 3:
  5734. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  5735. egotype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  5736. CHK_(ptr);
  5737. } else
  5738. goto handle_unusual;
  5739. continue;
  5740. // int32 peer = 4;
  5741. case 4:
  5742. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
  5743. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  5744. CHK_(ptr);
  5745. } else
  5746. goto handle_unusual;
  5747. continue;
  5748. default:
  5749. goto handle_unusual;
  5750. } // switch
  5751. handle_unusual:
  5752. if ((tag == 0) || ((tag & 7) == 4)) {
  5753. CHK_(ptr);
  5754. ctx->SetLastTag(tag);
  5755. goto message_done;
  5756. }
  5757. ptr = UnknownFieldParse(
  5758. tag,
  5759. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  5760. ptr, ctx);
  5761. CHK_(ptr != nullptr);
  5762. } // while
  5763. message_done:
  5764. return ptr;
  5765. failure:
  5766. ptr = nullptr;
  5767. goto message_done;
  5768. #undef CHK_
  5769. }
  5770. uint8_t* SCRep::_InternalSerialize(
  5771. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  5772. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.SCRep)
  5773. uint32_t cached_has_bits = 0;
  5774. (void) cached_has_bits;
  5775. // .RemoNet.VideoDesc desc = 1;
  5776. if (this->_internal_desc() != 0) {
  5777. target = stream->EnsureSpace(target);
  5778. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
  5779. 1, this->_internal_desc(), target);
  5780. }
  5781. // int32 index = 2;
  5782. if (this->_internal_index() != 0) {
  5783. target = stream->EnsureSpace(target);
  5784. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_index(), target);
  5785. }
  5786. // int32 egotype = 3;
  5787. if (this->_internal_egotype() != 0) {
  5788. target = stream->EnsureSpace(target);
  5789. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_egotype(), target);
  5790. }
  5791. // int32 peer = 4;
  5792. if (this->_internal_peer() != 0) {
  5793. target = stream->EnsureSpace(target);
  5794. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_peer(), target);
  5795. }
  5796. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  5797. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  5798. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  5799. }
  5800. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.SCRep)
  5801. return target;
  5802. }
  5803. size_t SCRep::ByteSizeLong() const {
  5804. // @@protoc_insertion_point(message_byte_size_start:RemoNet.SCRep)
  5805. size_t total_size = 0;
  5806. uint32_t cached_has_bits = 0;
  5807. // Prevent compiler warnings about cached_has_bits being unused
  5808. (void) cached_has_bits;
  5809. // .RemoNet.VideoDesc desc = 1;
  5810. if (this->_internal_desc() != 0) {
  5811. total_size += 1 +
  5812. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_desc());
  5813. }
  5814. // int32 index = 2;
  5815. if (this->_internal_index() != 0) {
  5816. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_index());
  5817. }
  5818. // int32 egotype = 3;
  5819. if (this->_internal_egotype() != 0) {
  5820. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_egotype());
  5821. }
  5822. // int32 peer = 4;
  5823. if (this->_internal_peer() != 0) {
  5824. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  5825. }
  5826. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  5827. }
  5828. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCRep::_class_data_ = {
  5829. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  5830. SCRep::MergeImpl
  5831. };
  5832. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCRep::GetClassData() const { return &_class_data_; }
  5833. void SCRep::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  5834. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  5835. static_cast<SCRep *>(to)->MergeFrom(
  5836. static_cast<const SCRep &>(from));
  5837. }
  5838. void SCRep::MergeFrom(const SCRep& from) {
  5839. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.SCRep)
  5840. GOOGLE_DCHECK_NE(&from, this);
  5841. uint32_t cached_has_bits = 0;
  5842. (void) cached_has_bits;
  5843. if (from._internal_desc() != 0) {
  5844. _internal_set_desc(from._internal_desc());
  5845. }
  5846. if (from._internal_index() != 0) {
  5847. _internal_set_index(from._internal_index());
  5848. }
  5849. if (from._internal_egotype() != 0) {
  5850. _internal_set_egotype(from._internal_egotype());
  5851. }
  5852. if (from._internal_peer() != 0) {
  5853. _internal_set_peer(from._internal_peer());
  5854. }
  5855. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  5856. }
  5857. void SCRep::CopyFrom(const SCRep& from) {
  5858. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.SCRep)
  5859. if (&from == this) return;
  5860. Clear();
  5861. MergeFrom(from);
  5862. }
  5863. bool SCRep::IsInitialized() const {
  5864. return true;
  5865. }
  5866. void SCRep::InternalSwap(SCRep* other) {
  5867. using std::swap;
  5868. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  5869. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  5870. PROTOBUF_FIELD_OFFSET(SCRep, peer_)
  5871. + sizeof(SCRep::peer_)
  5872. - PROTOBUF_FIELD_OFFSET(SCRep, desc_)>(
  5873. reinterpret_cast<char*>(&desc_),
  5874. reinterpret_cast<char*>(&other->desc_));
  5875. }
  5876. ::PROTOBUF_NAMESPACE_ID::Metadata SCRep::GetMetadata() const {
  5877. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  5878. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  5879. file_level_metadata_protocol_2eproto[20]);
  5880. }
  5881. // ===================================================================
  5882. class Offer::_Internal {
  5883. public:
  5884. };
  5885. Offer::Offer(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  5886. bool is_message_owned)
  5887. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  5888. SharedCtor();
  5889. if (!is_message_owned) {
  5890. RegisterArenaDtor(arena);
  5891. }
  5892. // @@protoc_insertion_point(arena_constructor:RemoNet.Offer)
  5893. }
  5894. Offer::Offer(const Offer& from)
  5895. : ::PROTOBUF_NAMESPACE_ID::Message() {
  5896. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  5897. type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5898. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5899. type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  5900. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5901. if (!from._internal_type().empty()) {
  5902. type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_type(),
  5903. GetArenaForAllocation());
  5904. }
  5905. sdp_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5906. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5907. sdp_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  5908. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5909. if (!from._internal_sdp().empty()) {
  5910. sdp_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_sdp(),
  5911. GetArenaForAllocation());
  5912. }
  5913. ::memcpy(&index_, &from.index_,
  5914. static_cast<size_t>(reinterpret_cast<char*>(&peer_) -
  5915. reinterpret_cast<char*>(&index_)) + sizeof(peer_));
  5916. // @@protoc_insertion_point(copy_constructor:RemoNet.Offer)
  5917. }
  5918. inline void Offer::SharedCtor() {
  5919. type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5920. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5921. type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  5922. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5923. sdp_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5924. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5925. sdp_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  5926. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5927. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  5928. reinterpret_cast<char*>(&index_) - reinterpret_cast<char*>(this)),
  5929. 0, static_cast<size_t>(reinterpret_cast<char*>(&peer_) -
  5930. reinterpret_cast<char*>(&index_)) + sizeof(peer_));
  5931. }
  5932. Offer::~Offer() {
  5933. // @@protoc_insertion_point(destructor:RemoNet.Offer)
  5934. if (GetArenaForAllocation() != nullptr) return;
  5935. SharedDtor();
  5936. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5937. }
  5938. inline void Offer::SharedDtor() {
  5939. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  5940. type_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5941. sdp_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5942. }
  5943. void Offer::ArenaDtor(void* object) {
  5944. Offer* _this = reinterpret_cast< Offer* >(object);
  5945. (void)_this;
  5946. }
  5947. void Offer::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  5948. }
  5949. void Offer::SetCachedSize(int size) const {
  5950. _cached_size_.Set(size);
  5951. }
  5952. void Offer::Clear() {
  5953. // @@protoc_insertion_point(message_clear_start:RemoNet.Offer)
  5954. uint32_t cached_has_bits = 0;
  5955. // Prevent compiler warnings about cached_has_bits being unused
  5956. (void) cached_has_bits;
  5957. type_.ClearToEmpty();
  5958. sdp_.ClearToEmpty();
  5959. ::memset(&index_, 0, static_cast<size_t>(
  5960. reinterpret_cast<char*>(&peer_) -
  5961. reinterpret_cast<char*>(&index_)) + sizeof(peer_));
  5962. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5963. }
  5964. const char* Offer::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  5965. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  5966. while (!ctx->Done(&ptr)) {
  5967. uint32_t tag;
  5968. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  5969. switch (tag >> 3) {
  5970. // int32 index = 1;
  5971. case 1:
  5972. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  5973. index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  5974. CHK_(ptr);
  5975. } else
  5976. goto handle_unusual;
  5977. continue;
  5978. // int32 peer = 2;
  5979. case 2:
  5980. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  5981. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  5982. CHK_(ptr);
  5983. } else
  5984. goto handle_unusual;
  5985. continue;
  5986. // string type = 3;
  5987. case 3:
  5988. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
  5989. auto str = _internal_mutable_type();
  5990. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  5991. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.Offer.type"));
  5992. CHK_(ptr);
  5993. } else
  5994. goto handle_unusual;
  5995. continue;
  5996. // string sdp = 4;
  5997. case 4:
  5998. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
  5999. auto str = _internal_mutable_sdp();
  6000. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  6001. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.Offer.sdp"));
  6002. CHK_(ptr);
  6003. } else
  6004. goto handle_unusual;
  6005. continue;
  6006. default:
  6007. goto handle_unusual;
  6008. } // switch
  6009. handle_unusual:
  6010. if ((tag == 0) || ((tag & 7) == 4)) {
  6011. CHK_(ptr);
  6012. ctx->SetLastTag(tag);
  6013. goto message_done;
  6014. }
  6015. ptr = UnknownFieldParse(
  6016. tag,
  6017. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  6018. ptr, ctx);
  6019. CHK_(ptr != nullptr);
  6020. } // while
  6021. message_done:
  6022. return ptr;
  6023. failure:
  6024. ptr = nullptr;
  6025. goto message_done;
  6026. #undef CHK_
  6027. }
  6028. uint8_t* Offer::_InternalSerialize(
  6029. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  6030. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.Offer)
  6031. uint32_t cached_has_bits = 0;
  6032. (void) cached_has_bits;
  6033. // int32 index = 1;
  6034. if (this->_internal_index() != 0) {
  6035. target = stream->EnsureSpace(target);
  6036. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_index(), target);
  6037. }
  6038. // int32 peer = 2;
  6039. if (this->_internal_peer() != 0) {
  6040. target = stream->EnsureSpace(target);
  6041. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_peer(), target);
  6042. }
  6043. // string type = 3;
  6044. if (!this->_internal_type().empty()) {
  6045. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  6046. this->_internal_type().data(), static_cast<int>(this->_internal_type().length()),
  6047. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  6048. "RemoNet.Offer.type");
  6049. target = stream->WriteStringMaybeAliased(
  6050. 3, this->_internal_type(), target);
  6051. }
  6052. // string sdp = 4;
  6053. if (!this->_internal_sdp().empty()) {
  6054. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  6055. this->_internal_sdp().data(), static_cast<int>(this->_internal_sdp().length()),
  6056. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  6057. "RemoNet.Offer.sdp");
  6058. target = stream->WriteStringMaybeAliased(
  6059. 4, this->_internal_sdp(), target);
  6060. }
  6061. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  6062. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  6063. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  6064. }
  6065. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.Offer)
  6066. return target;
  6067. }
  6068. size_t Offer::ByteSizeLong() const {
  6069. // @@protoc_insertion_point(message_byte_size_start:RemoNet.Offer)
  6070. size_t total_size = 0;
  6071. uint32_t cached_has_bits = 0;
  6072. // Prevent compiler warnings about cached_has_bits being unused
  6073. (void) cached_has_bits;
  6074. // string type = 3;
  6075. if (!this->_internal_type().empty()) {
  6076. total_size += 1 +
  6077. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  6078. this->_internal_type());
  6079. }
  6080. // string sdp = 4;
  6081. if (!this->_internal_sdp().empty()) {
  6082. total_size += 1 +
  6083. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  6084. this->_internal_sdp());
  6085. }
  6086. // int32 index = 1;
  6087. if (this->_internal_index() != 0) {
  6088. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_index());
  6089. }
  6090. // int32 peer = 2;
  6091. if (this->_internal_peer() != 0) {
  6092. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  6093. }
  6094. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  6095. }
  6096. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Offer::_class_data_ = {
  6097. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  6098. Offer::MergeImpl
  6099. };
  6100. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Offer::GetClassData() const { return &_class_data_; }
  6101. void Offer::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  6102. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  6103. static_cast<Offer *>(to)->MergeFrom(
  6104. static_cast<const Offer &>(from));
  6105. }
  6106. void Offer::MergeFrom(const Offer& from) {
  6107. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.Offer)
  6108. GOOGLE_DCHECK_NE(&from, this);
  6109. uint32_t cached_has_bits = 0;
  6110. (void) cached_has_bits;
  6111. if (!from._internal_type().empty()) {
  6112. _internal_set_type(from._internal_type());
  6113. }
  6114. if (!from._internal_sdp().empty()) {
  6115. _internal_set_sdp(from._internal_sdp());
  6116. }
  6117. if (from._internal_index() != 0) {
  6118. _internal_set_index(from._internal_index());
  6119. }
  6120. if (from._internal_peer() != 0) {
  6121. _internal_set_peer(from._internal_peer());
  6122. }
  6123. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  6124. }
  6125. void Offer::CopyFrom(const Offer& from) {
  6126. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.Offer)
  6127. if (&from == this) return;
  6128. Clear();
  6129. MergeFrom(from);
  6130. }
  6131. bool Offer::IsInitialized() const {
  6132. return true;
  6133. }
  6134. void Offer::InternalSwap(Offer* other) {
  6135. using std::swap;
  6136. auto* lhs_arena = GetArenaForAllocation();
  6137. auto* rhs_arena = other->GetArenaForAllocation();
  6138. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  6139. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  6140. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  6141. &type_, lhs_arena,
  6142. &other->type_, rhs_arena
  6143. );
  6144. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  6145. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  6146. &sdp_, lhs_arena,
  6147. &other->sdp_, rhs_arena
  6148. );
  6149. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  6150. PROTOBUF_FIELD_OFFSET(Offer, peer_)
  6151. + sizeof(Offer::peer_)
  6152. - PROTOBUF_FIELD_OFFSET(Offer, index_)>(
  6153. reinterpret_cast<char*>(&index_),
  6154. reinterpret_cast<char*>(&other->index_));
  6155. }
  6156. ::PROTOBUF_NAMESPACE_ID::Metadata Offer::GetMetadata() const {
  6157. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  6158. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  6159. file_level_metadata_protocol_2eproto[21]);
  6160. }
  6161. // ===================================================================
  6162. class Answer::_Internal {
  6163. public:
  6164. };
  6165. Answer::Answer(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  6166. bool is_message_owned)
  6167. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  6168. SharedCtor();
  6169. if (!is_message_owned) {
  6170. RegisterArenaDtor(arena);
  6171. }
  6172. // @@protoc_insertion_point(arena_constructor:RemoNet.Answer)
  6173. }
  6174. Answer::Answer(const Answer& from)
  6175. : ::PROTOBUF_NAMESPACE_ID::Message() {
  6176. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  6177. type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6178. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6179. type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  6180. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6181. if (!from._internal_type().empty()) {
  6182. type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_type(),
  6183. GetArenaForAllocation());
  6184. }
  6185. sdp_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6186. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6187. sdp_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  6188. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6189. if (!from._internal_sdp().empty()) {
  6190. sdp_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_sdp(),
  6191. GetArenaForAllocation());
  6192. }
  6193. ::memcpy(&index_, &from.index_,
  6194. static_cast<size_t>(reinterpret_cast<char*>(&peer_) -
  6195. reinterpret_cast<char*>(&index_)) + sizeof(peer_));
  6196. // @@protoc_insertion_point(copy_constructor:RemoNet.Answer)
  6197. }
  6198. inline void Answer::SharedCtor() {
  6199. type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6200. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6201. type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  6202. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6203. sdp_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6204. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6205. sdp_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  6206. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6207. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  6208. reinterpret_cast<char*>(&index_) - reinterpret_cast<char*>(this)),
  6209. 0, static_cast<size_t>(reinterpret_cast<char*>(&peer_) -
  6210. reinterpret_cast<char*>(&index_)) + sizeof(peer_));
  6211. }
  6212. Answer::~Answer() {
  6213. // @@protoc_insertion_point(destructor:RemoNet.Answer)
  6214. if (GetArenaForAllocation() != nullptr) return;
  6215. SharedDtor();
  6216. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  6217. }
  6218. inline void Answer::SharedDtor() {
  6219. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  6220. type_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6221. sdp_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6222. }
  6223. void Answer::ArenaDtor(void* object) {
  6224. Answer* _this = reinterpret_cast< Answer* >(object);
  6225. (void)_this;
  6226. }
  6227. void Answer::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  6228. }
  6229. void Answer::SetCachedSize(int size) const {
  6230. _cached_size_.Set(size);
  6231. }
  6232. void Answer::Clear() {
  6233. // @@protoc_insertion_point(message_clear_start:RemoNet.Answer)
  6234. uint32_t cached_has_bits = 0;
  6235. // Prevent compiler warnings about cached_has_bits being unused
  6236. (void) cached_has_bits;
  6237. type_.ClearToEmpty();
  6238. sdp_.ClearToEmpty();
  6239. ::memset(&index_, 0, static_cast<size_t>(
  6240. reinterpret_cast<char*>(&peer_) -
  6241. reinterpret_cast<char*>(&index_)) + sizeof(peer_));
  6242. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  6243. }
  6244. const char* Answer::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  6245. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  6246. while (!ctx->Done(&ptr)) {
  6247. uint32_t tag;
  6248. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  6249. switch (tag >> 3) {
  6250. // int32 index = 1;
  6251. case 1:
  6252. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  6253. index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6254. CHK_(ptr);
  6255. } else
  6256. goto handle_unusual;
  6257. continue;
  6258. // int32 peer = 2;
  6259. case 2:
  6260. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  6261. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6262. CHK_(ptr);
  6263. } else
  6264. goto handle_unusual;
  6265. continue;
  6266. // string type = 3;
  6267. case 3:
  6268. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
  6269. auto str = _internal_mutable_type();
  6270. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  6271. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.Answer.type"));
  6272. CHK_(ptr);
  6273. } else
  6274. goto handle_unusual;
  6275. continue;
  6276. // string sdp = 4;
  6277. case 4:
  6278. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
  6279. auto str = _internal_mutable_sdp();
  6280. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  6281. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.Answer.sdp"));
  6282. CHK_(ptr);
  6283. } else
  6284. goto handle_unusual;
  6285. continue;
  6286. default:
  6287. goto handle_unusual;
  6288. } // switch
  6289. handle_unusual:
  6290. if ((tag == 0) || ((tag & 7) == 4)) {
  6291. CHK_(ptr);
  6292. ctx->SetLastTag(tag);
  6293. goto message_done;
  6294. }
  6295. ptr = UnknownFieldParse(
  6296. tag,
  6297. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  6298. ptr, ctx);
  6299. CHK_(ptr != nullptr);
  6300. } // while
  6301. message_done:
  6302. return ptr;
  6303. failure:
  6304. ptr = nullptr;
  6305. goto message_done;
  6306. #undef CHK_
  6307. }
  6308. uint8_t* Answer::_InternalSerialize(
  6309. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  6310. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.Answer)
  6311. uint32_t cached_has_bits = 0;
  6312. (void) cached_has_bits;
  6313. // int32 index = 1;
  6314. if (this->_internal_index() != 0) {
  6315. target = stream->EnsureSpace(target);
  6316. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_index(), target);
  6317. }
  6318. // int32 peer = 2;
  6319. if (this->_internal_peer() != 0) {
  6320. target = stream->EnsureSpace(target);
  6321. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_peer(), target);
  6322. }
  6323. // string type = 3;
  6324. if (!this->_internal_type().empty()) {
  6325. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  6326. this->_internal_type().data(), static_cast<int>(this->_internal_type().length()),
  6327. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  6328. "RemoNet.Answer.type");
  6329. target = stream->WriteStringMaybeAliased(
  6330. 3, this->_internal_type(), target);
  6331. }
  6332. // string sdp = 4;
  6333. if (!this->_internal_sdp().empty()) {
  6334. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  6335. this->_internal_sdp().data(), static_cast<int>(this->_internal_sdp().length()),
  6336. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  6337. "RemoNet.Answer.sdp");
  6338. target = stream->WriteStringMaybeAliased(
  6339. 4, this->_internal_sdp(), target);
  6340. }
  6341. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  6342. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  6343. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  6344. }
  6345. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.Answer)
  6346. return target;
  6347. }
  6348. size_t Answer::ByteSizeLong() const {
  6349. // @@protoc_insertion_point(message_byte_size_start:RemoNet.Answer)
  6350. size_t total_size = 0;
  6351. uint32_t cached_has_bits = 0;
  6352. // Prevent compiler warnings about cached_has_bits being unused
  6353. (void) cached_has_bits;
  6354. // string type = 3;
  6355. if (!this->_internal_type().empty()) {
  6356. total_size += 1 +
  6357. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  6358. this->_internal_type());
  6359. }
  6360. // string sdp = 4;
  6361. if (!this->_internal_sdp().empty()) {
  6362. total_size += 1 +
  6363. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  6364. this->_internal_sdp());
  6365. }
  6366. // int32 index = 1;
  6367. if (this->_internal_index() != 0) {
  6368. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_index());
  6369. }
  6370. // int32 peer = 2;
  6371. if (this->_internal_peer() != 0) {
  6372. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  6373. }
  6374. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  6375. }
  6376. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Answer::_class_data_ = {
  6377. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  6378. Answer::MergeImpl
  6379. };
  6380. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Answer::GetClassData() const { return &_class_data_; }
  6381. void Answer::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  6382. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  6383. static_cast<Answer *>(to)->MergeFrom(
  6384. static_cast<const Answer &>(from));
  6385. }
  6386. void Answer::MergeFrom(const Answer& from) {
  6387. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.Answer)
  6388. GOOGLE_DCHECK_NE(&from, this);
  6389. uint32_t cached_has_bits = 0;
  6390. (void) cached_has_bits;
  6391. if (!from._internal_type().empty()) {
  6392. _internal_set_type(from._internal_type());
  6393. }
  6394. if (!from._internal_sdp().empty()) {
  6395. _internal_set_sdp(from._internal_sdp());
  6396. }
  6397. if (from._internal_index() != 0) {
  6398. _internal_set_index(from._internal_index());
  6399. }
  6400. if (from._internal_peer() != 0) {
  6401. _internal_set_peer(from._internal_peer());
  6402. }
  6403. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  6404. }
  6405. void Answer::CopyFrom(const Answer& from) {
  6406. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.Answer)
  6407. if (&from == this) return;
  6408. Clear();
  6409. MergeFrom(from);
  6410. }
  6411. bool Answer::IsInitialized() const {
  6412. return true;
  6413. }
  6414. void Answer::InternalSwap(Answer* other) {
  6415. using std::swap;
  6416. auto* lhs_arena = GetArenaForAllocation();
  6417. auto* rhs_arena = other->GetArenaForAllocation();
  6418. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  6419. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  6420. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  6421. &type_, lhs_arena,
  6422. &other->type_, rhs_arena
  6423. );
  6424. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  6425. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  6426. &sdp_, lhs_arena,
  6427. &other->sdp_, rhs_arena
  6428. );
  6429. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  6430. PROTOBUF_FIELD_OFFSET(Answer, peer_)
  6431. + sizeof(Answer::peer_)
  6432. - PROTOBUF_FIELD_OFFSET(Answer, index_)>(
  6433. reinterpret_cast<char*>(&index_),
  6434. reinterpret_cast<char*>(&other->index_));
  6435. }
  6436. ::PROTOBUF_NAMESPACE_ID::Metadata Answer::GetMetadata() const {
  6437. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  6438. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  6439. file_level_metadata_protocol_2eproto[22]);
  6440. }
  6441. // ===================================================================
  6442. class Candidate::_Internal {
  6443. public:
  6444. };
  6445. Candidate::Candidate(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  6446. bool is_message_owned)
  6447. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  6448. SharedCtor();
  6449. if (!is_message_owned) {
  6450. RegisterArenaDtor(arena);
  6451. }
  6452. // @@protoc_insertion_point(arena_constructor:RemoNet.Candidate)
  6453. }
  6454. Candidate::Candidate(const Candidate& from)
  6455. : ::PROTOBUF_NAMESPACE_ID::Message() {
  6456. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  6457. type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6458. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6459. type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  6460. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6461. if (!from._internal_type().empty()) {
  6462. type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_type(),
  6463. GetArenaForAllocation());
  6464. }
  6465. candidate_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6466. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6467. candidate_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  6468. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6469. if (!from._internal_candidate().empty()) {
  6470. candidate_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_candidate(),
  6471. GetArenaForAllocation());
  6472. }
  6473. sdpmid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6474. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6475. sdpmid_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  6476. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6477. if (!from._internal_sdpmid().empty()) {
  6478. sdpmid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_sdpmid(),
  6479. GetArenaForAllocation());
  6480. }
  6481. ::memcpy(&index_, &from.index_,
  6482. static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  6483. reinterpret_cast<char*>(&index_)) + sizeof(egotype_));
  6484. // @@protoc_insertion_point(copy_constructor:RemoNet.Candidate)
  6485. }
  6486. inline void Candidate::SharedCtor() {
  6487. type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6488. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6489. type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  6490. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6491. candidate_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6492. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6493. candidate_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  6494. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6495. sdpmid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6496. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6497. sdpmid_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  6498. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6499. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  6500. reinterpret_cast<char*>(&index_) - reinterpret_cast<char*>(this)),
  6501. 0, static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  6502. reinterpret_cast<char*>(&index_)) + sizeof(egotype_));
  6503. }
  6504. Candidate::~Candidate() {
  6505. // @@protoc_insertion_point(destructor:RemoNet.Candidate)
  6506. if (GetArenaForAllocation() != nullptr) return;
  6507. SharedDtor();
  6508. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  6509. }
  6510. inline void Candidate::SharedDtor() {
  6511. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  6512. type_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6513. candidate_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6514. sdpmid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6515. }
  6516. void Candidate::ArenaDtor(void* object) {
  6517. Candidate* _this = reinterpret_cast< Candidate* >(object);
  6518. (void)_this;
  6519. }
  6520. void Candidate::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  6521. }
  6522. void Candidate::SetCachedSize(int size) const {
  6523. _cached_size_.Set(size);
  6524. }
  6525. void Candidate::Clear() {
  6526. // @@protoc_insertion_point(message_clear_start:RemoNet.Candidate)
  6527. uint32_t cached_has_bits = 0;
  6528. // Prevent compiler warnings about cached_has_bits being unused
  6529. (void) cached_has_bits;
  6530. type_.ClearToEmpty();
  6531. candidate_.ClearToEmpty();
  6532. sdpmid_.ClearToEmpty();
  6533. ::memset(&index_, 0, static_cast<size_t>(
  6534. reinterpret_cast<char*>(&egotype_) -
  6535. reinterpret_cast<char*>(&index_)) + sizeof(egotype_));
  6536. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  6537. }
  6538. const char* Candidate::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  6539. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  6540. while (!ctx->Done(&ptr)) {
  6541. uint32_t tag;
  6542. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  6543. switch (tag >> 3) {
  6544. // int32 index = 1;
  6545. case 1:
  6546. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  6547. index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6548. CHK_(ptr);
  6549. } else
  6550. goto handle_unusual;
  6551. continue;
  6552. // int32 peer = 2;
  6553. case 2:
  6554. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  6555. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6556. CHK_(ptr);
  6557. } else
  6558. goto handle_unusual;
  6559. continue;
  6560. // string type = 3;
  6561. case 3:
  6562. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
  6563. auto str = _internal_mutable_type();
  6564. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  6565. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.Candidate.type"));
  6566. CHK_(ptr);
  6567. } else
  6568. goto handle_unusual;
  6569. continue;
  6570. // string candidate = 4;
  6571. case 4:
  6572. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
  6573. auto str = _internal_mutable_candidate();
  6574. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  6575. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.Candidate.candidate"));
  6576. CHK_(ptr);
  6577. } else
  6578. goto handle_unusual;
  6579. continue;
  6580. // int32 sdpMLineIndex = 5;
  6581. case 5:
  6582. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
  6583. sdpmlineindex_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6584. CHK_(ptr);
  6585. } else
  6586. goto handle_unusual;
  6587. continue;
  6588. // string sdpMid = 6;
  6589. case 6:
  6590. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 50)) {
  6591. auto str = _internal_mutable_sdpmid();
  6592. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  6593. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.Candidate.sdpMid"));
  6594. CHK_(ptr);
  6595. } else
  6596. goto handle_unusual;
  6597. continue;
  6598. // int32 egotype = 7;
  6599. case 7:
  6600. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56)) {
  6601. egotype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6602. CHK_(ptr);
  6603. } else
  6604. goto handle_unusual;
  6605. continue;
  6606. default:
  6607. goto handle_unusual;
  6608. } // switch
  6609. handle_unusual:
  6610. if ((tag == 0) || ((tag & 7) == 4)) {
  6611. CHK_(ptr);
  6612. ctx->SetLastTag(tag);
  6613. goto message_done;
  6614. }
  6615. ptr = UnknownFieldParse(
  6616. tag,
  6617. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  6618. ptr, ctx);
  6619. CHK_(ptr != nullptr);
  6620. } // while
  6621. message_done:
  6622. return ptr;
  6623. failure:
  6624. ptr = nullptr;
  6625. goto message_done;
  6626. #undef CHK_
  6627. }
  6628. uint8_t* Candidate::_InternalSerialize(
  6629. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  6630. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.Candidate)
  6631. uint32_t cached_has_bits = 0;
  6632. (void) cached_has_bits;
  6633. // int32 index = 1;
  6634. if (this->_internal_index() != 0) {
  6635. target = stream->EnsureSpace(target);
  6636. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_index(), target);
  6637. }
  6638. // int32 peer = 2;
  6639. if (this->_internal_peer() != 0) {
  6640. target = stream->EnsureSpace(target);
  6641. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_peer(), target);
  6642. }
  6643. // string type = 3;
  6644. if (!this->_internal_type().empty()) {
  6645. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  6646. this->_internal_type().data(), static_cast<int>(this->_internal_type().length()),
  6647. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  6648. "RemoNet.Candidate.type");
  6649. target = stream->WriteStringMaybeAliased(
  6650. 3, this->_internal_type(), target);
  6651. }
  6652. // string candidate = 4;
  6653. if (!this->_internal_candidate().empty()) {
  6654. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  6655. this->_internal_candidate().data(), static_cast<int>(this->_internal_candidate().length()),
  6656. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  6657. "RemoNet.Candidate.candidate");
  6658. target = stream->WriteStringMaybeAliased(
  6659. 4, this->_internal_candidate(), target);
  6660. }
  6661. // int32 sdpMLineIndex = 5;
  6662. if (this->_internal_sdpmlineindex() != 0) {
  6663. target = stream->EnsureSpace(target);
  6664. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(5, this->_internal_sdpmlineindex(), target);
  6665. }
  6666. // string sdpMid = 6;
  6667. if (!this->_internal_sdpmid().empty()) {
  6668. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  6669. this->_internal_sdpmid().data(), static_cast<int>(this->_internal_sdpmid().length()),
  6670. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  6671. "RemoNet.Candidate.sdpMid");
  6672. target = stream->WriteStringMaybeAliased(
  6673. 6, this->_internal_sdpmid(), target);
  6674. }
  6675. // int32 egotype = 7;
  6676. if (this->_internal_egotype() != 0) {
  6677. target = stream->EnsureSpace(target);
  6678. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(7, this->_internal_egotype(), target);
  6679. }
  6680. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  6681. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  6682. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  6683. }
  6684. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.Candidate)
  6685. return target;
  6686. }
  6687. size_t Candidate::ByteSizeLong() const {
  6688. // @@protoc_insertion_point(message_byte_size_start:RemoNet.Candidate)
  6689. size_t total_size = 0;
  6690. uint32_t cached_has_bits = 0;
  6691. // Prevent compiler warnings about cached_has_bits being unused
  6692. (void) cached_has_bits;
  6693. // string type = 3;
  6694. if (!this->_internal_type().empty()) {
  6695. total_size += 1 +
  6696. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  6697. this->_internal_type());
  6698. }
  6699. // string candidate = 4;
  6700. if (!this->_internal_candidate().empty()) {
  6701. total_size += 1 +
  6702. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  6703. this->_internal_candidate());
  6704. }
  6705. // string sdpMid = 6;
  6706. if (!this->_internal_sdpmid().empty()) {
  6707. total_size += 1 +
  6708. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  6709. this->_internal_sdpmid());
  6710. }
  6711. // int32 index = 1;
  6712. if (this->_internal_index() != 0) {
  6713. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_index());
  6714. }
  6715. // int32 peer = 2;
  6716. if (this->_internal_peer() != 0) {
  6717. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  6718. }
  6719. // int32 sdpMLineIndex = 5;
  6720. if (this->_internal_sdpmlineindex() != 0) {
  6721. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_sdpmlineindex());
  6722. }
  6723. // int32 egotype = 7;
  6724. if (this->_internal_egotype() != 0) {
  6725. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_egotype());
  6726. }
  6727. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  6728. }
  6729. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Candidate::_class_data_ = {
  6730. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  6731. Candidate::MergeImpl
  6732. };
  6733. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Candidate::GetClassData() const { return &_class_data_; }
  6734. void Candidate::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  6735. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  6736. static_cast<Candidate *>(to)->MergeFrom(
  6737. static_cast<const Candidate &>(from));
  6738. }
  6739. void Candidate::MergeFrom(const Candidate& from) {
  6740. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.Candidate)
  6741. GOOGLE_DCHECK_NE(&from, this);
  6742. uint32_t cached_has_bits = 0;
  6743. (void) cached_has_bits;
  6744. if (!from._internal_type().empty()) {
  6745. _internal_set_type(from._internal_type());
  6746. }
  6747. if (!from._internal_candidate().empty()) {
  6748. _internal_set_candidate(from._internal_candidate());
  6749. }
  6750. if (!from._internal_sdpmid().empty()) {
  6751. _internal_set_sdpmid(from._internal_sdpmid());
  6752. }
  6753. if (from._internal_index() != 0) {
  6754. _internal_set_index(from._internal_index());
  6755. }
  6756. if (from._internal_peer() != 0) {
  6757. _internal_set_peer(from._internal_peer());
  6758. }
  6759. if (from._internal_sdpmlineindex() != 0) {
  6760. _internal_set_sdpmlineindex(from._internal_sdpmlineindex());
  6761. }
  6762. if (from._internal_egotype() != 0) {
  6763. _internal_set_egotype(from._internal_egotype());
  6764. }
  6765. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  6766. }
  6767. void Candidate::CopyFrom(const Candidate& from) {
  6768. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.Candidate)
  6769. if (&from == this) return;
  6770. Clear();
  6771. MergeFrom(from);
  6772. }
  6773. bool Candidate::IsInitialized() const {
  6774. return true;
  6775. }
  6776. void Candidate::InternalSwap(Candidate* other) {
  6777. using std::swap;
  6778. auto* lhs_arena = GetArenaForAllocation();
  6779. auto* rhs_arena = other->GetArenaForAllocation();
  6780. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  6781. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  6782. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  6783. &type_, lhs_arena,
  6784. &other->type_, rhs_arena
  6785. );
  6786. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  6787. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  6788. &candidate_, lhs_arena,
  6789. &other->candidate_, rhs_arena
  6790. );
  6791. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  6792. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  6793. &sdpmid_, lhs_arena,
  6794. &other->sdpmid_, rhs_arena
  6795. );
  6796. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  6797. PROTOBUF_FIELD_OFFSET(Candidate, egotype_)
  6798. + sizeof(Candidate::egotype_)
  6799. - PROTOBUF_FIELD_OFFSET(Candidate, index_)>(
  6800. reinterpret_cast<char*>(&index_),
  6801. reinterpret_cast<char*>(&other->index_));
  6802. }
  6803. ::PROTOBUF_NAMESPACE_ID::Metadata Candidate::GetMetadata() const {
  6804. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  6805. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  6806. file_level_metadata_protocol_2eproto[23]);
  6807. }
  6808. // ===================================================================
  6809. class Leave::_Internal {
  6810. public:
  6811. };
  6812. Leave::Leave(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  6813. bool is_message_owned)
  6814. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  6815. SharedCtor();
  6816. if (!is_message_owned) {
  6817. RegisterArenaDtor(arena);
  6818. }
  6819. // @@protoc_insertion_point(arena_constructor:RemoNet.Leave)
  6820. }
  6821. Leave::Leave(const Leave& from)
  6822. : ::PROTOBUF_NAMESPACE_ID::Message() {
  6823. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  6824. ::memcpy(&peer_, &from.peer_,
  6825. static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  6826. reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
  6827. // @@protoc_insertion_point(copy_constructor:RemoNet.Leave)
  6828. }
  6829. inline void Leave::SharedCtor() {
  6830. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  6831. reinterpret_cast<char*>(&peer_) - reinterpret_cast<char*>(this)),
  6832. 0, static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  6833. reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
  6834. }
  6835. Leave::~Leave() {
  6836. // @@protoc_insertion_point(destructor:RemoNet.Leave)
  6837. if (GetArenaForAllocation() != nullptr) return;
  6838. SharedDtor();
  6839. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  6840. }
  6841. inline void Leave::SharedDtor() {
  6842. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  6843. }
  6844. void Leave::ArenaDtor(void* object) {
  6845. Leave* _this = reinterpret_cast< Leave* >(object);
  6846. (void)_this;
  6847. }
  6848. void Leave::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  6849. }
  6850. void Leave::SetCachedSize(int size) const {
  6851. _cached_size_.Set(size);
  6852. }
  6853. void Leave::Clear() {
  6854. // @@protoc_insertion_point(message_clear_start:RemoNet.Leave)
  6855. uint32_t cached_has_bits = 0;
  6856. // Prevent compiler warnings about cached_has_bits being unused
  6857. (void) cached_has_bits;
  6858. ::memset(&peer_, 0, static_cast<size_t>(
  6859. reinterpret_cast<char*>(&egotype_) -
  6860. reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
  6861. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  6862. }
  6863. const char* Leave::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  6864. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  6865. while (!ctx->Done(&ptr)) {
  6866. uint32_t tag;
  6867. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  6868. switch (tag >> 3) {
  6869. // int32 peer = 1;
  6870. case 1:
  6871. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  6872. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6873. CHK_(ptr);
  6874. } else
  6875. goto handle_unusual;
  6876. continue;
  6877. // int32 egotype = 2;
  6878. case 2:
  6879. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  6880. egotype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6881. CHK_(ptr);
  6882. } else
  6883. goto handle_unusual;
  6884. continue;
  6885. default:
  6886. goto handle_unusual;
  6887. } // switch
  6888. handle_unusual:
  6889. if ((tag == 0) || ((tag & 7) == 4)) {
  6890. CHK_(ptr);
  6891. ctx->SetLastTag(tag);
  6892. goto message_done;
  6893. }
  6894. ptr = UnknownFieldParse(
  6895. tag,
  6896. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  6897. ptr, ctx);
  6898. CHK_(ptr != nullptr);
  6899. } // while
  6900. message_done:
  6901. return ptr;
  6902. failure:
  6903. ptr = nullptr;
  6904. goto message_done;
  6905. #undef CHK_
  6906. }
  6907. uint8_t* Leave::_InternalSerialize(
  6908. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  6909. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.Leave)
  6910. uint32_t cached_has_bits = 0;
  6911. (void) cached_has_bits;
  6912. // int32 peer = 1;
  6913. if (this->_internal_peer() != 0) {
  6914. target = stream->EnsureSpace(target);
  6915. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_peer(), target);
  6916. }
  6917. // int32 egotype = 2;
  6918. if (this->_internal_egotype() != 0) {
  6919. target = stream->EnsureSpace(target);
  6920. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_egotype(), target);
  6921. }
  6922. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  6923. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  6924. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  6925. }
  6926. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.Leave)
  6927. return target;
  6928. }
  6929. size_t Leave::ByteSizeLong() const {
  6930. // @@protoc_insertion_point(message_byte_size_start:RemoNet.Leave)
  6931. size_t total_size = 0;
  6932. uint32_t cached_has_bits = 0;
  6933. // Prevent compiler warnings about cached_has_bits being unused
  6934. (void) cached_has_bits;
  6935. // int32 peer = 1;
  6936. if (this->_internal_peer() != 0) {
  6937. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  6938. }
  6939. // int32 egotype = 2;
  6940. if (this->_internal_egotype() != 0) {
  6941. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_egotype());
  6942. }
  6943. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  6944. }
  6945. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Leave::_class_data_ = {
  6946. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  6947. Leave::MergeImpl
  6948. };
  6949. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Leave::GetClassData() const { return &_class_data_; }
  6950. void Leave::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  6951. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  6952. static_cast<Leave *>(to)->MergeFrom(
  6953. static_cast<const Leave &>(from));
  6954. }
  6955. void Leave::MergeFrom(const Leave& from) {
  6956. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.Leave)
  6957. GOOGLE_DCHECK_NE(&from, this);
  6958. uint32_t cached_has_bits = 0;
  6959. (void) cached_has_bits;
  6960. if (from._internal_peer() != 0) {
  6961. _internal_set_peer(from._internal_peer());
  6962. }
  6963. if (from._internal_egotype() != 0) {
  6964. _internal_set_egotype(from._internal_egotype());
  6965. }
  6966. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  6967. }
  6968. void Leave::CopyFrom(const Leave& from) {
  6969. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.Leave)
  6970. if (&from == this) return;
  6971. Clear();
  6972. MergeFrom(from);
  6973. }
  6974. bool Leave::IsInitialized() const {
  6975. return true;
  6976. }
  6977. void Leave::InternalSwap(Leave* other) {
  6978. using std::swap;
  6979. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  6980. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  6981. PROTOBUF_FIELD_OFFSET(Leave, egotype_)
  6982. + sizeof(Leave::egotype_)
  6983. - PROTOBUF_FIELD_OFFSET(Leave, peer_)>(
  6984. reinterpret_cast<char*>(&peer_),
  6985. reinterpret_cast<char*>(&other->peer_));
  6986. }
  6987. ::PROTOBUF_NAMESPACE_ID::Metadata Leave::GetMetadata() const {
  6988. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  6989. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  6990. file_level_metadata_protocol_2eproto[24]);
  6991. }
  6992. // ===================================================================
  6993. class Close::_Internal {
  6994. public:
  6995. };
  6996. Close::Close(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  6997. bool is_message_owned)
  6998. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  6999. SharedCtor();
  7000. if (!is_message_owned) {
  7001. RegisterArenaDtor(arena);
  7002. }
  7003. // @@protoc_insertion_point(arena_constructor:RemoNet.Close)
  7004. }
  7005. Close::Close(const Close& from)
  7006. : ::PROTOBUF_NAMESPACE_ID::Message() {
  7007. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  7008. ::memcpy(&peer_, &from.peer_,
  7009. static_cast<size_t>(reinterpret_cast<char*>(&index_) -
  7010. reinterpret_cast<char*>(&peer_)) + sizeof(index_));
  7011. // @@protoc_insertion_point(copy_constructor:RemoNet.Close)
  7012. }
  7013. inline void Close::SharedCtor() {
  7014. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  7015. reinterpret_cast<char*>(&peer_) - reinterpret_cast<char*>(this)),
  7016. 0, static_cast<size_t>(reinterpret_cast<char*>(&index_) -
  7017. reinterpret_cast<char*>(&peer_)) + sizeof(index_));
  7018. }
  7019. Close::~Close() {
  7020. // @@protoc_insertion_point(destructor:RemoNet.Close)
  7021. if (GetArenaForAllocation() != nullptr) return;
  7022. SharedDtor();
  7023. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  7024. }
  7025. inline void Close::SharedDtor() {
  7026. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  7027. }
  7028. void Close::ArenaDtor(void* object) {
  7029. Close* _this = reinterpret_cast< Close* >(object);
  7030. (void)_this;
  7031. }
  7032. void Close::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  7033. }
  7034. void Close::SetCachedSize(int size) const {
  7035. _cached_size_.Set(size);
  7036. }
  7037. void Close::Clear() {
  7038. // @@protoc_insertion_point(message_clear_start:RemoNet.Close)
  7039. uint32_t cached_has_bits = 0;
  7040. // Prevent compiler warnings about cached_has_bits being unused
  7041. (void) cached_has_bits;
  7042. ::memset(&peer_, 0, static_cast<size_t>(
  7043. reinterpret_cast<char*>(&index_) -
  7044. reinterpret_cast<char*>(&peer_)) + sizeof(index_));
  7045. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  7046. }
  7047. const char* Close::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  7048. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  7049. while (!ctx->Done(&ptr)) {
  7050. uint32_t tag;
  7051. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  7052. switch (tag >> 3) {
  7053. // int32 peer = 1;
  7054. case 1:
  7055. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  7056. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  7057. CHK_(ptr);
  7058. } else
  7059. goto handle_unusual;
  7060. continue;
  7061. // int32 egotype = 2;
  7062. case 2:
  7063. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  7064. egotype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  7065. CHK_(ptr);
  7066. } else
  7067. goto handle_unusual;
  7068. continue;
  7069. // int32 index = 3;
  7070. case 3:
  7071. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  7072. index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  7073. CHK_(ptr);
  7074. } else
  7075. goto handle_unusual;
  7076. continue;
  7077. default:
  7078. goto handle_unusual;
  7079. } // switch
  7080. handle_unusual:
  7081. if ((tag == 0) || ((tag & 7) == 4)) {
  7082. CHK_(ptr);
  7083. ctx->SetLastTag(tag);
  7084. goto message_done;
  7085. }
  7086. ptr = UnknownFieldParse(
  7087. tag,
  7088. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  7089. ptr, ctx);
  7090. CHK_(ptr != nullptr);
  7091. } // while
  7092. message_done:
  7093. return ptr;
  7094. failure:
  7095. ptr = nullptr;
  7096. goto message_done;
  7097. #undef CHK_
  7098. }
  7099. uint8_t* Close::_InternalSerialize(
  7100. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  7101. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.Close)
  7102. uint32_t cached_has_bits = 0;
  7103. (void) cached_has_bits;
  7104. // int32 peer = 1;
  7105. if (this->_internal_peer() != 0) {
  7106. target = stream->EnsureSpace(target);
  7107. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_peer(), target);
  7108. }
  7109. // int32 egotype = 2;
  7110. if (this->_internal_egotype() != 0) {
  7111. target = stream->EnsureSpace(target);
  7112. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_egotype(), target);
  7113. }
  7114. // int32 index = 3;
  7115. if (this->_internal_index() != 0) {
  7116. target = stream->EnsureSpace(target);
  7117. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_index(), target);
  7118. }
  7119. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  7120. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  7121. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  7122. }
  7123. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.Close)
  7124. return target;
  7125. }
  7126. size_t Close::ByteSizeLong() const {
  7127. // @@protoc_insertion_point(message_byte_size_start:RemoNet.Close)
  7128. size_t total_size = 0;
  7129. uint32_t cached_has_bits = 0;
  7130. // Prevent compiler warnings about cached_has_bits being unused
  7131. (void) cached_has_bits;
  7132. // int32 peer = 1;
  7133. if (this->_internal_peer() != 0) {
  7134. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  7135. }
  7136. // int32 egotype = 2;
  7137. if (this->_internal_egotype() != 0) {
  7138. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_egotype());
  7139. }
  7140. // int32 index = 3;
  7141. if (this->_internal_index() != 0) {
  7142. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_index());
  7143. }
  7144. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  7145. }
  7146. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Close::_class_data_ = {
  7147. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  7148. Close::MergeImpl
  7149. };
  7150. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Close::GetClassData() const { return &_class_data_; }
  7151. void Close::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  7152. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  7153. static_cast<Close *>(to)->MergeFrom(
  7154. static_cast<const Close &>(from));
  7155. }
  7156. void Close::MergeFrom(const Close& from) {
  7157. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.Close)
  7158. GOOGLE_DCHECK_NE(&from, this);
  7159. uint32_t cached_has_bits = 0;
  7160. (void) cached_has_bits;
  7161. if (from._internal_peer() != 0) {
  7162. _internal_set_peer(from._internal_peer());
  7163. }
  7164. if (from._internal_egotype() != 0) {
  7165. _internal_set_egotype(from._internal_egotype());
  7166. }
  7167. if (from._internal_index() != 0) {
  7168. _internal_set_index(from._internal_index());
  7169. }
  7170. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  7171. }
  7172. void Close::CopyFrom(const Close& from) {
  7173. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.Close)
  7174. if (&from == this) return;
  7175. Clear();
  7176. MergeFrom(from);
  7177. }
  7178. bool Close::IsInitialized() const {
  7179. return true;
  7180. }
  7181. void Close::InternalSwap(Close* other) {
  7182. using std::swap;
  7183. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  7184. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  7185. PROTOBUF_FIELD_OFFSET(Close, index_)
  7186. + sizeof(Close::index_)
  7187. - PROTOBUF_FIELD_OFFSET(Close, peer_)>(
  7188. reinterpret_cast<char*>(&peer_),
  7189. reinterpret_cast<char*>(&other->peer_));
  7190. }
  7191. ::PROTOBUF_NAMESPACE_ID::Metadata Close::GetMetadata() const {
  7192. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  7193. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  7194. file_level_metadata_protocol_2eproto[25]);
  7195. }
  7196. // ===================================================================
  7197. class TestTextReq::_Internal {
  7198. public:
  7199. };
  7200. TestTextReq::TestTextReq(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  7201. bool is_message_owned)
  7202. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  7203. SharedCtor();
  7204. if (!is_message_owned) {
  7205. RegisterArenaDtor(arena);
  7206. }
  7207. // @@protoc_insertion_point(arena_constructor:RemoNet.TestTextReq)
  7208. }
  7209. TestTextReq::TestTextReq(const TestTextReq& from)
  7210. : ::PROTOBUF_NAMESPACE_ID::Message() {
  7211. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  7212. text_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7213. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  7214. text_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  7215. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  7216. if (!from._internal_text().empty()) {
  7217. text_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_text(),
  7218. GetArenaForAllocation());
  7219. }
  7220. // @@protoc_insertion_point(copy_constructor:RemoNet.TestTextReq)
  7221. }
  7222. inline void TestTextReq::SharedCtor() {
  7223. text_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7224. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  7225. text_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  7226. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  7227. }
  7228. TestTextReq::~TestTextReq() {
  7229. // @@protoc_insertion_point(destructor:RemoNet.TestTextReq)
  7230. if (GetArenaForAllocation() != nullptr) return;
  7231. SharedDtor();
  7232. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  7233. }
  7234. inline void TestTextReq::SharedDtor() {
  7235. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  7236. text_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7237. }
  7238. void TestTextReq::ArenaDtor(void* object) {
  7239. TestTextReq* _this = reinterpret_cast< TestTextReq* >(object);
  7240. (void)_this;
  7241. }
  7242. void TestTextReq::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  7243. }
  7244. void TestTextReq::SetCachedSize(int size) const {
  7245. _cached_size_.Set(size);
  7246. }
  7247. void TestTextReq::Clear() {
  7248. // @@protoc_insertion_point(message_clear_start:RemoNet.TestTextReq)
  7249. uint32_t cached_has_bits = 0;
  7250. // Prevent compiler warnings about cached_has_bits being unused
  7251. (void) cached_has_bits;
  7252. text_.ClearToEmpty();
  7253. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  7254. }
  7255. const char* TestTextReq::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  7256. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  7257. while (!ctx->Done(&ptr)) {
  7258. uint32_t tag;
  7259. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  7260. switch (tag >> 3) {
  7261. // string text = 1;
  7262. case 1:
  7263. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
  7264. auto str = _internal_mutable_text();
  7265. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  7266. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.TestTextReq.text"));
  7267. CHK_(ptr);
  7268. } else
  7269. goto handle_unusual;
  7270. continue;
  7271. default:
  7272. goto handle_unusual;
  7273. } // switch
  7274. handle_unusual:
  7275. if ((tag == 0) || ((tag & 7) == 4)) {
  7276. CHK_(ptr);
  7277. ctx->SetLastTag(tag);
  7278. goto message_done;
  7279. }
  7280. ptr = UnknownFieldParse(
  7281. tag,
  7282. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  7283. ptr, ctx);
  7284. CHK_(ptr != nullptr);
  7285. } // while
  7286. message_done:
  7287. return ptr;
  7288. failure:
  7289. ptr = nullptr;
  7290. goto message_done;
  7291. #undef CHK_
  7292. }
  7293. uint8_t* TestTextReq::_InternalSerialize(
  7294. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  7295. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.TestTextReq)
  7296. uint32_t cached_has_bits = 0;
  7297. (void) cached_has_bits;
  7298. // string text = 1;
  7299. if (!this->_internal_text().empty()) {
  7300. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  7301. this->_internal_text().data(), static_cast<int>(this->_internal_text().length()),
  7302. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  7303. "RemoNet.TestTextReq.text");
  7304. target = stream->WriteStringMaybeAliased(
  7305. 1, this->_internal_text(), target);
  7306. }
  7307. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  7308. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  7309. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  7310. }
  7311. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.TestTextReq)
  7312. return target;
  7313. }
  7314. size_t TestTextReq::ByteSizeLong() const {
  7315. // @@protoc_insertion_point(message_byte_size_start:RemoNet.TestTextReq)
  7316. size_t total_size = 0;
  7317. uint32_t cached_has_bits = 0;
  7318. // Prevent compiler warnings about cached_has_bits being unused
  7319. (void) cached_has_bits;
  7320. // string text = 1;
  7321. if (!this->_internal_text().empty()) {
  7322. total_size += 1 +
  7323. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  7324. this->_internal_text());
  7325. }
  7326. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  7327. }
  7328. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData TestTextReq::_class_data_ = {
  7329. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  7330. TestTextReq::MergeImpl
  7331. };
  7332. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*TestTextReq::GetClassData() const { return &_class_data_; }
  7333. void TestTextReq::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  7334. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  7335. static_cast<TestTextReq *>(to)->MergeFrom(
  7336. static_cast<const TestTextReq &>(from));
  7337. }
  7338. void TestTextReq::MergeFrom(const TestTextReq& from) {
  7339. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.TestTextReq)
  7340. GOOGLE_DCHECK_NE(&from, this);
  7341. uint32_t cached_has_bits = 0;
  7342. (void) cached_has_bits;
  7343. if (!from._internal_text().empty()) {
  7344. _internal_set_text(from._internal_text());
  7345. }
  7346. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  7347. }
  7348. void TestTextReq::CopyFrom(const TestTextReq& from) {
  7349. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.TestTextReq)
  7350. if (&from == this) return;
  7351. Clear();
  7352. MergeFrom(from);
  7353. }
  7354. bool TestTextReq::IsInitialized() const {
  7355. return true;
  7356. }
  7357. void TestTextReq::InternalSwap(TestTextReq* other) {
  7358. using std::swap;
  7359. auto* lhs_arena = GetArenaForAllocation();
  7360. auto* rhs_arena = other->GetArenaForAllocation();
  7361. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  7362. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  7363. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  7364. &text_, lhs_arena,
  7365. &other->text_, rhs_arena
  7366. );
  7367. }
  7368. ::PROTOBUF_NAMESPACE_ID::Metadata TestTextReq::GetMetadata() const {
  7369. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  7370. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  7371. file_level_metadata_protocol_2eproto[26]);
  7372. }
  7373. // ===================================================================
  7374. class SyncTime::_Internal {
  7375. public:
  7376. };
  7377. SyncTime::SyncTime(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  7378. bool is_message_owned)
  7379. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  7380. SharedCtor();
  7381. if (!is_message_owned) {
  7382. RegisterArenaDtor(arena);
  7383. }
  7384. // @@protoc_insertion_point(arena_constructor:RemoNet.SyncTime)
  7385. }
  7386. SyncTime::SyncTime(const SyncTime& from)
  7387. : ::PROTOBUF_NAMESPACE_ID::Message() {
  7388. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  7389. ::memcpy(&tm_sec_, &from.tm_sec_,
  7390. static_cast<size_t>(reinterpret_cast<char*>(&update_time_) -
  7391. reinterpret_cast<char*>(&tm_sec_)) + sizeof(update_time_));
  7392. // @@protoc_insertion_point(copy_constructor:RemoNet.SyncTime)
  7393. }
  7394. inline void SyncTime::SharedCtor() {
  7395. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  7396. reinterpret_cast<char*>(&tm_sec_) - reinterpret_cast<char*>(this)),
  7397. 0, static_cast<size_t>(reinterpret_cast<char*>(&update_time_) -
  7398. reinterpret_cast<char*>(&tm_sec_)) + sizeof(update_time_));
  7399. }
  7400. SyncTime::~SyncTime() {
  7401. // @@protoc_insertion_point(destructor:RemoNet.SyncTime)
  7402. if (GetArenaForAllocation() != nullptr) return;
  7403. SharedDtor();
  7404. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  7405. }
  7406. inline void SyncTime::SharedDtor() {
  7407. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  7408. }
  7409. void SyncTime::ArenaDtor(void* object) {
  7410. SyncTime* _this = reinterpret_cast< SyncTime* >(object);
  7411. (void)_this;
  7412. }
  7413. void SyncTime::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  7414. }
  7415. void SyncTime::SetCachedSize(int size) const {
  7416. _cached_size_.Set(size);
  7417. }
  7418. void SyncTime::Clear() {
  7419. // @@protoc_insertion_point(message_clear_start:RemoNet.SyncTime)
  7420. uint32_t cached_has_bits = 0;
  7421. // Prevent compiler warnings about cached_has_bits being unused
  7422. (void) cached_has_bits;
  7423. ::memset(&tm_sec_, 0, static_cast<size_t>(
  7424. reinterpret_cast<char*>(&update_time_) -
  7425. reinterpret_cast<char*>(&tm_sec_)) + sizeof(update_time_));
  7426. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  7427. }
  7428. const char* SyncTime::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  7429. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  7430. while (!ctx->Done(&ptr)) {
  7431. uint32_t tag;
  7432. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  7433. switch (tag >> 3) {
  7434. // int32 tm_sec = 1;
  7435. case 1:
  7436. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  7437. tm_sec_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  7438. CHK_(ptr);
  7439. } else
  7440. goto handle_unusual;
  7441. continue;
  7442. // int32 tm_min = 2;
  7443. case 2:
  7444. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  7445. tm_min_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  7446. CHK_(ptr);
  7447. } else
  7448. goto handle_unusual;
  7449. continue;
  7450. // int32 tm_hour = 3;
  7451. case 3:
  7452. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  7453. tm_hour_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  7454. CHK_(ptr);
  7455. } else
  7456. goto handle_unusual;
  7457. continue;
  7458. // int32 tm_mday = 4;
  7459. case 4:
  7460. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
  7461. tm_mday_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  7462. CHK_(ptr);
  7463. } else
  7464. goto handle_unusual;
  7465. continue;
  7466. // int32 tm_mon = 5;
  7467. case 5:
  7468. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
  7469. tm_mon_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  7470. CHK_(ptr);
  7471. } else
  7472. goto handle_unusual;
  7473. continue;
  7474. // int32 tm_year = 6;
  7475. case 6:
  7476. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 48)) {
  7477. tm_year_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  7478. CHK_(ptr);
  7479. } else
  7480. goto handle_unusual;
  7481. continue;
  7482. // int32 tm_wday = 7;
  7483. case 7:
  7484. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56)) {
  7485. tm_wday_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  7486. CHK_(ptr);
  7487. } else
  7488. goto handle_unusual;
  7489. continue;
  7490. // int32 tm_yday = 8;
  7491. case 8:
  7492. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 64)) {
  7493. tm_yday_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  7494. CHK_(ptr);
  7495. } else
  7496. goto handle_unusual;
  7497. continue;
  7498. // int32 tm_isdst = 9;
  7499. case 9:
  7500. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 72)) {
  7501. tm_isdst_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  7502. CHK_(ptr);
  7503. } else
  7504. goto handle_unusual;
  7505. continue;
  7506. // bool update_time = 10;
  7507. case 10:
  7508. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 80)) {
  7509. update_time_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  7510. CHK_(ptr);
  7511. } else
  7512. goto handle_unusual;
  7513. continue;
  7514. default:
  7515. goto handle_unusual;
  7516. } // switch
  7517. handle_unusual:
  7518. if ((tag == 0) || ((tag & 7) == 4)) {
  7519. CHK_(ptr);
  7520. ctx->SetLastTag(tag);
  7521. goto message_done;
  7522. }
  7523. ptr = UnknownFieldParse(
  7524. tag,
  7525. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  7526. ptr, ctx);
  7527. CHK_(ptr != nullptr);
  7528. } // while
  7529. message_done:
  7530. return ptr;
  7531. failure:
  7532. ptr = nullptr;
  7533. goto message_done;
  7534. #undef CHK_
  7535. }
  7536. uint8_t* SyncTime::_InternalSerialize(
  7537. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  7538. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.SyncTime)
  7539. uint32_t cached_has_bits = 0;
  7540. (void) cached_has_bits;
  7541. // int32 tm_sec = 1;
  7542. if (this->_internal_tm_sec() != 0) {
  7543. target = stream->EnsureSpace(target);
  7544. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_tm_sec(), target);
  7545. }
  7546. // int32 tm_min = 2;
  7547. if (this->_internal_tm_min() != 0) {
  7548. target = stream->EnsureSpace(target);
  7549. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_tm_min(), target);
  7550. }
  7551. // int32 tm_hour = 3;
  7552. if (this->_internal_tm_hour() != 0) {
  7553. target = stream->EnsureSpace(target);
  7554. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_tm_hour(), target);
  7555. }
  7556. // int32 tm_mday = 4;
  7557. if (this->_internal_tm_mday() != 0) {
  7558. target = stream->EnsureSpace(target);
  7559. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_tm_mday(), target);
  7560. }
  7561. // int32 tm_mon = 5;
  7562. if (this->_internal_tm_mon() != 0) {
  7563. target = stream->EnsureSpace(target);
  7564. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(5, this->_internal_tm_mon(), target);
  7565. }
  7566. // int32 tm_year = 6;
  7567. if (this->_internal_tm_year() != 0) {
  7568. target = stream->EnsureSpace(target);
  7569. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(6, this->_internal_tm_year(), target);
  7570. }
  7571. // int32 tm_wday = 7;
  7572. if (this->_internal_tm_wday() != 0) {
  7573. target = stream->EnsureSpace(target);
  7574. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(7, this->_internal_tm_wday(), target);
  7575. }
  7576. // int32 tm_yday = 8;
  7577. if (this->_internal_tm_yday() != 0) {
  7578. target = stream->EnsureSpace(target);
  7579. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(8, this->_internal_tm_yday(), target);
  7580. }
  7581. // int32 tm_isdst = 9;
  7582. if (this->_internal_tm_isdst() != 0) {
  7583. target = stream->EnsureSpace(target);
  7584. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(9, this->_internal_tm_isdst(), target);
  7585. }
  7586. // bool update_time = 10;
  7587. if (this->_internal_update_time() != 0) {
  7588. target = stream->EnsureSpace(target);
  7589. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(10, this->_internal_update_time(), target);
  7590. }
  7591. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  7592. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  7593. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  7594. }
  7595. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.SyncTime)
  7596. return target;
  7597. }
  7598. size_t SyncTime::ByteSizeLong() const {
  7599. // @@protoc_insertion_point(message_byte_size_start:RemoNet.SyncTime)
  7600. size_t total_size = 0;
  7601. uint32_t cached_has_bits = 0;
  7602. // Prevent compiler warnings about cached_has_bits being unused
  7603. (void) cached_has_bits;
  7604. // int32 tm_sec = 1;
  7605. if (this->_internal_tm_sec() != 0) {
  7606. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_tm_sec());
  7607. }
  7608. // int32 tm_min = 2;
  7609. if (this->_internal_tm_min() != 0) {
  7610. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_tm_min());
  7611. }
  7612. // int32 tm_hour = 3;
  7613. if (this->_internal_tm_hour() != 0) {
  7614. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_tm_hour());
  7615. }
  7616. // int32 tm_mday = 4;
  7617. if (this->_internal_tm_mday() != 0) {
  7618. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_tm_mday());
  7619. }
  7620. // int32 tm_mon = 5;
  7621. if (this->_internal_tm_mon() != 0) {
  7622. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_tm_mon());
  7623. }
  7624. // int32 tm_year = 6;
  7625. if (this->_internal_tm_year() != 0) {
  7626. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_tm_year());
  7627. }
  7628. // int32 tm_wday = 7;
  7629. if (this->_internal_tm_wday() != 0) {
  7630. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_tm_wday());
  7631. }
  7632. // int32 tm_yday = 8;
  7633. if (this->_internal_tm_yday() != 0) {
  7634. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_tm_yday());
  7635. }
  7636. // int32 tm_isdst = 9;
  7637. if (this->_internal_tm_isdst() != 0) {
  7638. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_tm_isdst());
  7639. }
  7640. // bool update_time = 10;
  7641. if (this->_internal_update_time() != 0) {
  7642. total_size += 1 + 1;
  7643. }
  7644. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  7645. }
  7646. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SyncTime::_class_data_ = {
  7647. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  7648. SyncTime::MergeImpl
  7649. };
  7650. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SyncTime::GetClassData() const { return &_class_data_; }
  7651. void SyncTime::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  7652. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  7653. static_cast<SyncTime *>(to)->MergeFrom(
  7654. static_cast<const SyncTime &>(from));
  7655. }
  7656. void SyncTime::MergeFrom(const SyncTime& from) {
  7657. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.SyncTime)
  7658. GOOGLE_DCHECK_NE(&from, this);
  7659. uint32_t cached_has_bits = 0;
  7660. (void) cached_has_bits;
  7661. if (from._internal_tm_sec() != 0) {
  7662. _internal_set_tm_sec(from._internal_tm_sec());
  7663. }
  7664. if (from._internal_tm_min() != 0) {
  7665. _internal_set_tm_min(from._internal_tm_min());
  7666. }
  7667. if (from._internal_tm_hour() != 0) {
  7668. _internal_set_tm_hour(from._internal_tm_hour());
  7669. }
  7670. if (from._internal_tm_mday() != 0) {
  7671. _internal_set_tm_mday(from._internal_tm_mday());
  7672. }
  7673. if (from._internal_tm_mon() != 0) {
  7674. _internal_set_tm_mon(from._internal_tm_mon());
  7675. }
  7676. if (from._internal_tm_year() != 0) {
  7677. _internal_set_tm_year(from._internal_tm_year());
  7678. }
  7679. if (from._internal_tm_wday() != 0) {
  7680. _internal_set_tm_wday(from._internal_tm_wday());
  7681. }
  7682. if (from._internal_tm_yday() != 0) {
  7683. _internal_set_tm_yday(from._internal_tm_yday());
  7684. }
  7685. if (from._internal_tm_isdst() != 0) {
  7686. _internal_set_tm_isdst(from._internal_tm_isdst());
  7687. }
  7688. if (from._internal_update_time() != 0) {
  7689. _internal_set_update_time(from._internal_update_time());
  7690. }
  7691. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  7692. }
  7693. void SyncTime::CopyFrom(const SyncTime& from) {
  7694. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.SyncTime)
  7695. if (&from == this) return;
  7696. Clear();
  7697. MergeFrom(from);
  7698. }
  7699. bool SyncTime::IsInitialized() const {
  7700. return true;
  7701. }
  7702. void SyncTime::InternalSwap(SyncTime* other) {
  7703. using std::swap;
  7704. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  7705. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  7706. PROTOBUF_FIELD_OFFSET(SyncTime, update_time_)
  7707. + sizeof(SyncTime::update_time_)
  7708. - PROTOBUF_FIELD_OFFSET(SyncTime, tm_sec_)>(
  7709. reinterpret_cast<char*>(&tm_sec_),
  7710. reinterpret_cast<char*>(&other->tm_sec_));
  7711. }
  7712. ::PROTOBUF_NAMESPACE_ID::Metadata SyncTime::GetMetadata() const {
  7713. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  7714. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  7715. file_level_metadata_protocol_2eproto[27]);
  7716. }
  7717. // ===================================================================
  7718. class CCAskDataChannel::_Internal {
  7719. public:
  7720. };
  7721. CCAskDataChannel::CCAskDataChannel(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  7722. bool is_message_owned)
  7723. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) {
  7724. // @@protoc_insertion_point(arena_constructor:RemoNet.CCAskDataChannel)
  7725. }
  7726. CCAskDataChannel::CCAskDataChannel(const CCAskDataChannel& from)
  7727. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() {
  7728. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  7729. // @@protoc_insertion_point(copy_constructor:RemoNet.CCAskDataChannel)
  7730. }
  7731. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CCAskDataChannel::_class_data_ = {
  7732. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl,
  7733. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl,
  7734. };
  7735. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CCAskDataChannel::GetClassData() const { return &_class_data_; }
  7736. ::PROTOBUF_NAMESPACE_ID::Metadata CCAskDataChannel::GetMetadata() const {
  7737. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  7738. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  7739. file_level_metadata_protocol_2eproto[28]);
  7740. }
  7741. // ===================================================================
  7742. class IMuMessage::_Internal {
  7743. public:
  7744. };
  7745. IMuMessage::IMuMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  7746. bool is_message_owned)
  7747. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  7748. SharedCtor();
  7749. if (!is_message_owned) {
  7750. RegisterArenaDtor(arena);
  7751. }
  7752. // @@protoc_insertion_point(arena_constructor:RemoNet.IMuMessage)
  7753. }
  7754. IMuMessage::IMuMessage(const IMuMessage& from)
  7755. : ::PROTOBUF_NAMESPACE_ID::Message() {
  7756. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  7757. ::memcpy(&rx_, &from.rx_,
  7758. static_cast<size_t>(reinterpret_cast<char*>(&ry_) -
  7759. reinterpret_cast<char*>(&rx_)) + sizeof(ry_));
  7760. // @@protoc_insertion_point(copy_constructor:RemoNet.IMuMessage)
  7761. }
  7762. inline void IMuMessage::SharedCtor() {
  7763. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  7764. reinterpret_cast<char*>(&rx_) - reinterpret_cast<char*>(this)),
  7765. 0, static_cast<size_t>(reinterpret_cast<char*>(&ry_) -
  7766. reinterpret_cast<char*>(&rx_)) + sizeof(ry_));
  7767. }
  7768. IMuMessage::~IMuMessage() {
  7769. // @@protoc_insertion_point(destructor:RemoNet.IMuMessage)
  7770. if (GetArenaForAllocation() != nullptr) return;
  7771. SharedDtor();
  7772. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  7773. }
  7774. inline void IMuMessage::SharedDtor() {
  7775. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  7776. }
  7777. void IMuMessage::ArenaDtor(void* object) {
  7778. IMuMessage* _this = reinterpret_cast< IMuMessage* >(object);
  7779. (void)_this;
  7780. }
  7781. void IMuMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  7782. }
  7783. void IMuMessage::SetCachedSize(int size) const {
  7784. _cached_size_.Set(size);
  7785. }
  7786. void IMuMessage::Clear() {
  7787. // @@protoc_insertion_point(message_clear_start:RemoNet.IMuMessage)
  7788. uint32_t cached_has_bits = 0;
  7789. // Prevent compiler warnings about cached_has_bits being unused
  7790. (void) cached_has_bits;
  7791. ::memset(&rx_, 0, static_cast<size_t>(
  7792. reinterpret_cast<char*>(&ry_) -
  7793. reinterpret_cast<char*>(&rx_)) + sizeof(ry_));
  7794. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  7795. }
  7796. const char* IMuMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  7797. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  7798. while (!ctx->Done(&ptr)) {
  7799. uint32_t tag;
  7800. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  7801. switch (tag >> 3) {
  7802. // float rx = 1;
  7803. case 1:
  7804. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 13)) {
  7805. rx_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  7806. ptr += sizeof(float);
  7807. } else
  7808. goto handle_unusual;
  7809. continue;
  7810. // float ry = 2;
  7811. case 2:
  7812. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 21)) {
  7813. ry_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  7814. ptr += sizeof(float);
  7815. } else
  7816. goto handle_unusual;
  7817. continue;
  7818. default:
  7819. goto handle_unusual;
  7820. } // switch
  7821. handle_unusual:
  7822. if ((tag == 0) || ((tag & 7) == 4)) {
  7823. CHK_(ptr);
  7824. ctx->SetLastTag(tag);
  7825. goto message_done;
  7826. }
  7827. ptr = UnknownFieldParse(
  7828. tag,
  7829. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  7830. ptr, ctx);
  7831. CHK_(ptr != nullptr);
  7832. } // while
  7833. message_done:
  7834. return ptr;
  7835. failure:
  7836. ptr = nullptr;
  7837. goto message_done;
  7838. #undef CHK_
  7839. }
  7840. uint8_t* IMuMessage::_InternalSerialize(
  7841. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  7842. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.IMuMessage)
  7843. uint32_t cached_has_bits = 0;
  7844. (void) cached_has_bits;
  7845. // float rx = 1;
  7846. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  7847. float tmp_rx = this->_internal_rx();
  7848. uint32_t raw_rx;
  7849. memcpy(&raw_rx, &tmp_rx, sizeof(tmp_rx));
  7850. if (raw_rx != 0) {
  7851. target = stream->EnsureSpace(target);
  7852. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(1, this->_internal_rx(), target);
  7853. }
  7854. // float ry = 2;
  7855. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  7856. float tmp_ry = this->_internal_ry();
  7857. uint32_t raw_ry;
  7858. memcpy(&raw_ry, &tmp_ry, sizeof(tmp_ry));
  7859. if (raw_ry != 0) {
  7860. target = stream->EnsureSpace(target);
  7861. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(2, this->_internal_ry(), target);
  7862. }
  7863. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  7864. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  7865. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  7866. }
  7867. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.IMuMessage)
  7868. return target;
  7869. }
  7870. size_t IMuMessage::ByteSizeLong() const {
  7871. // @@protoc_insertion_point(message_byte_size_start:RemoNet.IMuMessage)
  7872. size_t total_size = 0;
  7873. uint32_t cached_has_bits = 0;
  7874. // Prevent compiler warnings about cached_has_bits being unused
  7875. (void) cached_has_bits;
  7876. // float rx = 1;
  7877. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  7878. float tmp_rx = this->_internal_rx();
  7879. uint32_t raw_rx;
  7880. memcpy(&raw_rx, &tmp_rx, sizeof(tmp_rx));
  7881. if (raw_rx != 0) {
  7882. total_size += 1 + 4;
  7883. }
  7884. // float ry = 2;
  7885. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  7886. float tmp_ry = this->_internal_ry();
  7887. uint32_t raw_ry;
  7888. memcpy(&raw_ry, &tmp_ry, sizeof(tmp_ry));
  7889. if (raw_ry != 0) {
  7890. total_size += 1 + 4;
  7891. }
  7892. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  7893. }
  7894. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData IMuMessage::_class_data_ = {
  7895. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  7896. IMuMessage::MergeImpl
  7897. };
  7898. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*IMuMessage::GetClassData() const { return &_class_data_; }
  7899. void IMuMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  7900. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  7901. static_cast<IMuMessage *>(to)->MergeFrom(
  7902. static_cast<const IMuMessage &>(from));
  7903. }
  7904. void IMuMessage::MergeFrom(const IMuMessage& from) {
  7905. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.IMuMessage)
  7906. GOOGLE_DCHECK_NE(&from, this);
  7907. uint32_t cached_has_bits = 0;
  7908. (void) cached_has_bits;
  7909. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  7910. float tmp_rx = from._internal_rx();
  7911. uint32_t raw_rx;
  7912. memcpy(&raw_rx, &tmp_rx, sizeof(tmp_rx));
  7913. if (raw_rx != 0) {
  7914. _internal_set_rx(from._internal_rx());
  7915. }
  7916. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  7917. float tmp_ry = from._internal_ry();
  7918. uint32_t raw_ry;
  7919. memcpy(&raw_ry, &tmp_ry, sizeof(tmp_ry));
  7920. if (raw_ry != 0) {
  7921. _internal_set_ry(from._internal_ry());
  7922. }
  7923. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  7924. }
  7925. void IMuMessage::CopyFrom(const IMuMessage& from) {
  7926. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.IMuMessage)
  7927. if (&from == this) return;
  7928. Clear();
  7929. MergeFrom(from);
  7930. }
  7931. bool IMuMessage::IsInitialized() const {
  7932. return true;
  7933. }
  7934. void IMuMessage::InternalSwap(IMuMessage* other) {
  7935. using std::swap;
  7936. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  7937. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  7938. PROTOBUF_FIELD_OFFSET(IMuMessage, ry_)
  7939. + sizeof(IMuMessage::ry_)
  7940. - PROTOBUF_FIELD_OFFSET(IMuMessage, rx_)>(
  7941. reinterpret_cast<char*>(&rx_),
  7942. reinterpret_cast<char*>(&other->rx_));
  7943. }
  7944. ::PROTOBUF_NAMESPACE_ID::Metadata IMuMessage::GetMetadata() const {
  7945. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  7946. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  7947. file_level_metadata_protocol_2eproto[29]);
  7948. }
  7949. // ===================================================================
  7950. class CCPing::_Internal {
  7951. public:
  7952. };
  7953. CCPing::CCPing(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  7954. bool is_message_owned)
  7955. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  7956. SharedCtor();
  7957. if (!is_message_owned) {
  7958. RegisterArenaDtor(arena);
  7959. }
  7960. // @@protoc_insertion_point(arena_constructor:RemoNet.CCPing)
  7961. }
  7962. CCPing::CCPing(const CCPing& from)
  7963. : ::PROTOBUF_NAMESPACE_ID::Message() {
  7964. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  7965. ::memcpy(&tick_, &from.tick_,
  7966. static_cast<size_t>(reinterpret_cast<char*>(&temp_) -
  7967. reinterpret_cast<char*>(&tick_)) + sizeof(temp_));
  7968. // @@protoc_insertion_point(copy_constructor:RemoNet.CCPing)
  7969. }
  7970. inline void CCPing::SharedCtor() {
  7971. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  7972. reinterpret_cast<char*>(&tick_) - reinterpret_cast<char*>(this)),
  7973. 0, static_cast<size_t>(reinterpret_cast<char*>(&temp_) -
  7974. reinterpret_cast<char*>(&tick_)) + sizeof(temp_));
  7975. }
  7976. CCPing::~CCPing() {
  7977. // @@protoc_insertion_point(destructor:RemoNet.CCPing)
  7978. if (GetArenaForAllocation() != nullptr) return;
  7979. SharedDtor();
  7980. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  7981. }
  7982. inline void CCPing::SharedDtor() {
  7983. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  7984. }
  7985. void CCPing::ArenaDtor(void* object) {
  7986. CCPing* _this = reinterpret_cast< CCPing* >(object);
  7987. (void)_this;
  7988. }
  7989. void CCPing::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  7990. }
  7991. void CCPing::SetCachedSize(int size) const {
  7992. _cached_size_.Set(size);
  7993. }
  7994. void CCPing::Clear() {
  7995. // @@protoc_insertion_point(message_clear_start:RemoNet.CCPing)
  7996. uint32_t cached_has_bits = 0;
  7997. // Prevent compiler warnings about cached_has_bits being unused
  7998. (void) cached_has_bits;
  7999. ::memset(&tick_, 0, static_cast<size_t>(
  8000. reinterpret_cast<char*>(&temp_) -
  8001. reinterpret_cast<char*>(&tick_)) + sizeof(temp_));
  8002. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  8003. }
  8004. const char* CCPing::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  8005. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  8006. while (!ctx->Done(&ptr)) {
  8007. uint32_t tag;
  8008. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  8009. switch (tag >> 3) {
  8010. // int64 tick = 1;
  8011. case 1:
  8012. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  8013. tick_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  8014. CHK_(ptr);
  8015. } else
  8016. goto handle_unusual;
  8017. continue;
  8018. // double temp = 2;
  8019. case 2:
  8020. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 17)) {
  8021. temp_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  8022. ptr += sizeof(double);
  8023. } else
  8024. goto handle_unusual;
  8025. continue;
  8026. default:
  8027. goto handle_unusual;
  8028. } // switch
  8029. handle_unusual:
  8030. if ((tag == 0) || ((tag & 7) == 4)) {
  8031. CHK_(ptr);
  8032. ctx->SetLastTag(tag);
  8033. goto message_done;
  8034. }
  8035. ptr = UnknownFieldParse(
  8036. tag,
  8037. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  8038. ptr, ctx);
  8039. CHK_(ptr != nullptr);
  8040. } // while
  8041. message_done:
  8042. return ptr;
  8043. failure:
  8044. ptr = nullptr;
  8045. goto message_done;
  8046. #undef CHK_
  8047. }
  8048. uint8_t* CCPing::_InternalSerialize(
  8049. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  8050. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CCPing)
  8051. uint32_t cached_has_bits = 0;
  8052. (void) cached_has_bits;
  8053. // int64 tick = 1;
  8054. if (this->_internal_tick() != 0) {
  8055. target = stream->EnsureSpace(target);
  8056. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_tick(), target);
  8057. }
  8058. // double temp = 2;
  8059. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  8060. double tmp_temp = this->_internal_temp();
  8061. uint64_t raw_temp;
  8062. memcpy(&raw_temp, &tmp_temp, sizeof(tmp_temp));
  8063. if (raw_temp != 0) {
  8064. target = stream->EnsureSpace(target);
  8065. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(2, this->_internal_temp(), target);
  8066. }
  8067. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  8068. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  8069. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  8070. }
  8071. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CCPing)
  8072. return target;
  8073. }
  8074. size_t CCPing::ByteSizeLong() const {
  8075. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CCPing)
  8076. size_t total_size = 0;
  8077. uint32_t cached_has_bits = 0;
  8078. // Prevent compiler warnings about cached_has_bits being unused
  8079. (void) cached_has_bits;
  8080. // int64 tick = 1;
  8081. if (this->_internal_tick() != 0) {
  8082. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_tick());
  8083. }
  8084. // double temp = 2;
  8085. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  8086. double tmp_temp = this->_internal_temp();
  8087. uint64_t raw_temp;
  8088. memcpy(&raw_temp, &tmp_temp, sizeof(tmp_temp));
  8089. if (raw_temp != 0) {
  8090. total_size += 1 + 8;
  8091. }
  8092. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  8093. }
  8094. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CCPing::_class_data_ = {
  8095. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  8096. CCPing::MergeImpl
  8097. };
  8098. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CCPing::GetClassData() const { return &_class_data_; }
  8099. void CCPing::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  8100. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  8101. static_cast<CCPing *>(to)->MergeFrom(
  8102. static_cast<const CCPing &>(from));
  8103. }
  8104. void CCPing::MergeFrom(const CCPing& from) {
  8105. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CCPing)
  8106. GOOGLE_DCHECK_NE(&from, this);
  8107. uint32_t cached_has_bits = 0;
  8108. (void) cached_has_bits;
  8109. if (from._internal_tick() != 0) {
  8110. _internal_set_tick(from._internal_tick());
  8111. }
  8112. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  8113. double tmp_temp = from._internal_temp();
  8114. uint64_t raw_temp;
  8115. memcpy(&raw_temp, &tmp_temp, sizeof(tmp_temp));
  8116. if (raw_temp != 0) {
  8117. _internal_set_temp(from._internal_temp());
  8118. }
  8119. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  8120. }
  8121. void CCPing::CopyFrom(const CCPing& from) {
  8122. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CCPing)
  8123. if (&from == this) return;
  8124. Clear();
  8125. MergeFrom(from);
  8126. }
  8127. bool CCPing::IsInitialized() const {
  8128. return true;
  8129. }
  8130. void CCPing::InternalSwap(CCPing* other) {
  8131. using std::swap;
  8132. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  8133. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  8134. PROTOBUF_FIELD_OFFSET(CCPing, temp_)
  8135. + sizeof(CCPing::temp_)
  8136. - PROTOBUF_FIELD_OFFSET(CCPing, tick_)>(
  8137. reinterpret_cast<char*>(&tick_),
  8138. reinterpret_cast<char*>(&other->tick_));
  8139. }
  8140. ::PROTOBUF_NAMESPACE_ID::Metadata CCPing::GetMetadata() const {
  8141. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  8142. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  8143. file_level_metadata_protocol_2eproto[30]);
  8144. }
  8145. // ===================================================================
  8146. class radar_node::_Internal {
  8147. public:
  8148. };
  8149. radar_node::radar_node(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  8150. bool is_message_owned)
  8151. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  8152. SharedCtor();
  8153. if (!is_message_owned) {
  8154. RegisterArenaDtor(arena);
  8155. }
  8156. // @@protoc_insertion_point(arena_constructor:RemoNet.radar_node)
  8157. }
  8158. radar_node::radar_node(const radar_node& from)
  8159. : ::PROTOBUF_NAMESPACE_ID::Message() {
  8160. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  8161. ::memcpy(&id_, &from.id_,
  8162. static_cast<size_t>(reinterpret_cast<char*>(&range_) -
  8163. reinterpret_cast<char*>(&id_)) + sizeof(range_));
  8164. // @@protoc_insertion_point(copy_constructor:RemoNet.radar_node)
  8165. }
  8166. inline void radar_node::SharedCtor() {
  8167. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  8168. reinterpret_cast<char*>(&id_) - reinterpret_cast<char*>(this)),
  8169. 0, static_cast<size_t>(reinterpret_cast<char*>(&range_) -
  8170. reinterpret_cast<char*>(&id_)) + sizeof(range_));
  8171. }
  8172. radar_node::~radar_node() {
  8173. // @@protoc_insertion_point(destructor:RemoNet.radar_node)
  8174. if (GetArenaForAllocation() != nullptr) return;
  8175. SharedDtor();
  8176. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  8177. }
  8178. inline void radar_node::SharedDtor() {
  8179. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  8180. }
  8181. void radar_node::ArenaDtor(void* object) {
  8182. radar_node* _this = reinterpret_cast< radar_node* >(object);
  8183. (void)_this;
  8184. }
  8185. void radar_node::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  8186. }
  8187. void radar_node::SetCachedSize(int size) const {
  8188. _cached_size_.Set(size);
  8189. }
  8190. void radar_node::Clear() {
  8191. // @@protoc_insertion_point(message_clear_start:RemoNet.radar_node)
  8192. uint32_t cached_has_bits = 0;
  8193. // Prevent compiler warnings about cached_has_bits being unused
  8194. (void) cached_has_bits;
  8195. ::memset(&id_, 0, static_cast<size_t>(
  8196. reinterpret_cast<char*>(&range_) -
  8197. reinterpret_cast<char*>(&id_)) + sizeof(range_));
  8198. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  8199. }
  8200. const char* radar_node::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  8201. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  8202. while (!ctx->Done(&ptr)) {
  8203. uint32_t tag;
  8204. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  8205. switch (tag >> 3) {
  8206. // int32 id = 1;
  8207. case 1:
  8208. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  8209. id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8210. CHK_(ptr);
  8211. } else
  8212. goto handle_unusual;
  8213. continue;
  8214. // int32 range = 2;
  8215. case 2:
  8216. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  8217. range_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8218. CHK_(ptr);
  8219. } else
  8220. goto handle_unusual;
  8221. continue;
  8222. default:
  8223. goto handle_unusual;
  8224. } // switch
  8225. handle_unusual:
  8226. if ((tag == 0) || ((tag & 7) == 4)) {
  8227. CHK_(ptr);
  8228. ctx->SetLastTag(tag);
  8229. goto message_done;
  8230. }
  8231. ptr = UnknownFieldParse(
  8232. tag,
  8233. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  8234. ptr, ctx);
  8235. CHK_(ptr != nullptr);
  8236. } // while
  8237. message_done:
  8238. return ptr;
  8239. failure:
  8240. ptr = nullptr;
  8241. goto message_done;
  8242. #undef CHK_
  8243. }
  8244. uint8_t* radar_node::_InternalSerialize(
  8245. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  8246. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.radar_node)
  8247. uint32_t cached_has_bits = 0;
  8248. (void) cached_has_bits;
  8249. // int32 id = 1;
  8250. if (this->_internal_id() != 0) {
  8251. target = stream->EnsureSpace(target);
  8252. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_id(), target);
  8253. }
  8254. // int32 range = 2;
  8255. if (this->_internal_range() != 0) {
  8256. target = stream->EnsureSpace(target);
  8257. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_range(), target);
  8258. }
  8259. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  8260. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  8261. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  8262. }
  8263. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.radar_node)
  8264. return target;
  8265. }
  8266. size_t radar_node::ByteSizeLong() const {
  8267. // @@protoc_insertion_point(message_byte_size_start:RemoNet.radar_node)
  8268. size_t total_size = 0;
  8269. uint32_t cached_has_bits = 0;
  8270. // Prevent compiler warnings about cached_has_bits being unused
  8271. (void) cached_has_bits;
  8272. // int32 id = 1;
  8273. if (this->_internal_id() != 0) {
  8274. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_id());
  8275. }
  8276. // int32 range = 2;
  8277. if (this->_internal_range() != 0) {
  8278. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_range());
  8279. }
  8280. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  8281. }
  8282. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData radar_node::_class_data_ = {
  8283. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  8284. radar_node::MergeImpl
  8285. };
  8286. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*radar_node::GetClassData() const { return &_class_data_; }
  8287. void radar_node::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  8288. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  8289. static_cast<radar_node *>(to)->MergeFrom(
  8290. static_cast<const radar_node &>(from));
  8291. }
  8292. void radar_node::MergeFrom(const radar_node& from) {
  8293. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.radar_node)
  8294. GOOGLE_DCHECK_NE(&from, this);
  8295. uint32_t cached_has_bits = 0;
  8296. (void) cached_has_bits;
  8297. if (from._internal_id() != 0) {
  8298. _internal_set_id(from._internal_id());
  8299. }
  8300. if (from._internal_range() != 0) {
  8301. _internal_set_range(from._internal_range());
  8302. }
  8303. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  8304. }
  8305. void radar_node::CopyFrom(const radar_node& from) {
  8306. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.radar_node)
  8307. if (&from == this) return;
  8308. Clear();
  8309. MergeFrom(from);
  8310. }
  8311. bool radar_node::IsInitialized() const {
  8312. return true;
  8313. }
  8314. void radar_node::InternalSwap(radar_node* other) {
  8315. using std::swap;
  8316. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  8317. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  8318. PROTOBUF_FIELD_OFFSET(radar_node, range_)
  8319. + sizeof(radar_node::range_)
  8320. - PROTOBUF_FIELD_OFFSET(radar_node, id_)>(
  8321. reinterpret_cast<char*>(&id_),
  8322. reinterpret_cast<char*>(&other->id_));
  8323. }
  8324. ::PROTOBUF_NAMESPACE_ID::Metadata radar_node::GetMetadata() const {
  8325. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  8326. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  8327. file_level_metadata_protocol_2eproto[31]);
  8328. }
  8329. // ===================================================================
  8330. class CCRadarMessage::_Internal {
  8331. public:
  8332. };
  8333. CCRadarMessage::CCRadarMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  8334. bool is_message_owned)
  8335. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  8336. SharedCtor();
  8337. if (!is_message_owned) {
  8338. RegisterArenaDtor(arena);
  8339. }
  8340. // @@protoc_insertion_point(arena_constructor:RemoNet.CCRadarMessage)
  8341. }
  8342. CCRadarMessage::CCRadarMessage(const CCRadarMessage& from)
  8343. : ::PROTOBUF_NAMESPACE_ID::Message() {
  8344. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  8345. ::memcpy(&radar0_, &from.radar0_,
  8346. static_cast<size_t>(reinterpret_cast<char*>(&radar7_) -
  8347. reinterpret_cast<char*>(&radar0_)) + sizeof(radar7_));
  8348. // @@protoc_insertion_point(copy_constructor:RemoNet.CCRadarMessage)
  8349. }
  8350. inline void CCRadarMessage::SharedCtor() {
  8351. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  8352. reinterpret_cast<char*>(&radar0_) - reinterpret_cast<char*>(this)),
  8353. 0, static_cast<size_t>(reinterpret_cast<char*>(&radar7_) -
  8354. reinterpret_cast<char*>(&radar0_)) + sizeof(radar7_));
  8355. }
  8356. CCRadarMessage::~CCRadarMessage() {
  8357. // @@protoc_insertion_point(destructor:RemoNet.CCRadarMessage)
  8358. if (GetArenaForAllocation() != nullptr) return;
  8359. SharedDtor();
  8360. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  8361. }
  8362. inline void CCRadarMessage::SharedDtor() {
  8363. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  8364. }
  8365. void CCRadarMessage::ArenaDtor(void* object) {
  8366. CCRadarMessage* _this = reinterpret_cast< CCRadarMessage* >(object);
  8367. (void)_this;
  8368. }
  8369. void CCRadarMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  8370. }
  8371. void CCRadarMessage::SetCachedSize(int size) const {
  8372. _cached_size_.Set(size);
  8373. }
  8374. void CCRadarMessage::Clear() {
  8375. // @@protoc_insertion_point(message_clear_start:RemoNet.CCRadarMessage)
  8376. uint32_t cached_has_bits = 0;
  8377. // Prevent compiler warnings about cached_has_bits being unused
  8378. (void) cached_has_bits;
  8379. ::memset(&radar0_, 0, static_cast<size_t>(
  8380. reinterpret_cast<char*>(&radar7_) -
  8381. reinterpret_cast<char*>(&radar0_)) + sizeof(radar7_));
  8382. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  8383. }
  8384. const char* CCRadarMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  8385. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  8386. while (!ctx->Done(&ptr)) {
  8387. uint32_t tag;
  8388. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  8389. switch (tag >> 3) {
  8390. // int32 radar0 = 1;
  8391. case 1:
  8392. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  8393. radar0_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8394. CHK_(ptr);
  8395. } else
  8396. goto handle_unusual;
  8397. continue;
  8398. // int32 radar1 = 2;
  8399. case 2:
  8400. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  8401. radar1_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8402. CHK_(ptr);
  8403. } else
  8404. goto handle_unusual;
  8405. continue;
  8406. // int32 radar2 = 3;
  8407. case 3:
  8408. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  8409. radar2_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8410. CHK_(ptr);
  8411. } else
  8412. goto handle_unusual;
  8413. continue;
  8414. // int32 radar3 = 4;
  8415. case 4:
  8416. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
  8417. radar3_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8418. CHK_(ptr);
  8419. } else
  8420. goto handle_unusual;
  8421. continue;
  8422. // int32 radar4 = 5;
  8423. case 5:
  8424. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
  8425. radar4_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8426. CHK_(ptr);
  8427. } else
  8428. goto handle_unusual;
  8429. continue;
  8430. // int32 radar5 = 6;
  8431. case 6:
  8432. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 48)) {
  8433. radar5_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8434. CHK_(ptr);
  8435. } else
  8436. goto handle_unusual;
  8437. continue;
  8438. // int32 radar6 = 7;
  8439. case 7:
  8440. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56)) {
  8441. radar6_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8442. CHK_(ptr);
  8443. } else
  8444. goto handle_unusual;
  8445. continue;
  8446. // int32 radar7 = 8;
  8447. case 8:
  8448. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 64)) {
  8449. radar7_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8450. CHK_(ptr);
  8451. } else
  8452. goto handle_unusual;
  8453. continue;
  8454. default:
  8455. goto handle_unusual;
  8456. } // switch
  8457. handle_unusual:
  8458. if ((tag == 0) || ((tag & 7) == 4)) {
  8459. CHK_(ptr);
  8460. ctx->SetLastTag(tag);
  8461. goto message_done;
  8462. }
  8463. ptr = UnknownFieldParse(
  8464. tag,
  8465. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  8466. ptr, ctx);
  8467. CHK_(ptr != nullptr);
  8468. } // while
  8469. message_done:
  8470. return ptr;
  8471. failure:
  8472. ptr = nullptr;
  8473. goto message_done;
  8474. #undef CHK_
  8475. }
  8476. uint8_t* CCRadarMessage::_InternalSerialize(
  8477. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  8478. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CCRadarMessage)
  8479. uint32_t cached_has_bits = 0;
  8480. (void) cached_has_bits;
  8481. // int32 radar0 = 1;
  8482. if (this->_internal_radar0() != 0) {
  8483. target = stream->EnsureSpace(target);
  8484. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_radar0(), target);
  8485. }
  8486. // int32 radar1 = 2;
  8487. if (this->_internal_radar1() != 0) {
  8488. target = stream->EnsureSpace(target);
  8489. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_radar1(), target);
  8490. }
  8491. // int32 radar2 = 3;
  8492. if (this->_internal_radar2() != 0) {
  8493. target = stream->EnsureSpace(target);
  8494. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_radar2(), target);
  8495. }
  8496. // int32 radar3 = 4;
  8497. if (this->_internal_radar3() != 0) {
  8498. target = stream->EnsureSpace(target);
  8499. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_radar3(), target);
  8500. }
  8501. // int32 radar4 = 5;
  8502. if (this->_internal_radar4() != 0) {
  8503. target = stream->EnsureSpace(target);
  8504. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(5, this->_internal_radar4(), target);
  8505. }
  8506. // int32 radar5 = 6;
  8507. if (this->_internal_radar5() != 0) {
  8508. target = stream->EnsureSpace(target);
  8509. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(6, this->_internal_radar5(), target);
  8510. }
  8511. // int32 radar6 = 7;
  8512. if (this->_internal_radar6() != 0) {
  8513. target = stream->EnsureSpace(target);
  8514. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(7, this->_internal_radar6(), target);
  8515. }
  8516. // int32 radar7 = 8;
  8517. if (this->_internal_radar7() != 0) {
  8518. target = stream->EnsureSpace(target);
  8519. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(8, this->_internal_radar7(), target);
  8520. }
  8521. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  8522. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  8523. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  8524. }
  8525. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CCRadarMessage)
  8526. return target;
  8527. }
  8528. size_t CCRadarMessage::ByteSizeLong() const {
  8529. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CCRadarMessage)
  8530. size_t total_size = 0;
  8531. uint32_t cached_has_bits = 0;
  8532. // Prevent compiler warnings about cached_has_bits being unused
  8533. (void) cached_has_bits;
  8534. // int32 radar0 = 1;
  8535. if (this->_internal_radar0() != 0) {
  8536. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_radar0());
  8537. }
  8538. // int32 radar1 = 2;
  8539. if (this->_internal_radar1() != 0) {
  8540. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_radar1());
  8541. }
  8542. // int32 radar2 = 3;
  8543. if (this->_internal_radar2() != 0) {
  8544. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_radar2());
  8545. }
  8546. // int32 radar3 = 4;
  8547. if (this->_internal_radar3() != 0) {
  8548. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_radar3());
  8549. }
  8550. // int32 radar4 = 5;
  8551. if (this->_internal_radar4() != 0) {
  8552. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_radar4());
  8553. }
  8554. // int32 radar5 = 6;
  8555. if (this->_internal_radar5() != 0) {
  8556. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_radar5());
  8557. }
  8558. // int32 radar6 = 7;
  8559. if (this->_internal_radar6() != 0) {
  8560. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_radar6());
  8561. }
  8562. // int32 radar7 = 8;
  8563. if (this->_internal_radar7() != 0) {
  8564. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_radar7());
  8565. }
  8566. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  8567. }
  8568. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CCRadarMessage::_class_data_ = {
  8569. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  8570. CCRadarMessage::MergeImpl
  8571. };
  8572. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CCRadarMessage::GetClassData() const { return &_class_data_; }
  8573. void CCRadarMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  8574. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  8575. static_cast<CCRadarMessage *>(to)->MergeFrom(
  8576. static_cast<const CCRadarMessage &>(from));
  8577. }
  8578. void CCRadarMessage::MergeFrom(const CCRadarMessage& from) {
  8579. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CCRadarMessage)
  8580. GOOGLE_DCHECK_NE(&from, this);
  8581. uint32_t cached_has_bits = 0;
  8582. (void) cached_has_bits;
  8583. if (from._internal_radar0() != 0) {
  8584. _internal_set_radar0(from._internal_radar0());
  8585. }
  8586. if (from._internal_radar1() != 0) {
  8587. _internal_set_radar1(from._internal_radar1());
  8588. }
  8589. if (from._internal_radar2() != 0) {
  8590. _internal_set_radar2(from._internal_radar2());
  8591. }
  8592. if (from._internal_radar3() != 0) {
  8593. _internal_set_radar3(from._internal_radar3());
  8594. }
  8595. if (from._internal_radar4() != 0) {
  8596. _internal_set_radar4(from._internal_radar4());
  8597. }
  8598. if (from._internal_radar5() != 0) {
  8599. _internal_set_radar5(from._internal_radar5());
  8600. }
  8601. if (from._internal_radar6() != 0) {
  8602. _internal_set_radar6(from._internal_radar6());
  8603. }
  8604. if (from._internal_radar7() != 0) {
  8605. _internal_set_radar7(from._internal_radar7());
  8606. }
  8607. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  8608. }
  8609. void CCRadarMessage::CopyFrom(const CCRadarMessage& from) {
  8610. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CCRadarMessage)
  8611. if (&from == this) return;
  8612. Clear();
  8613. MergeFrom(from);
  8614. }
  8615. bool CCRadarMessage::IsInitialized() const {
  8616. return true;
  8617. }
  8618. void CCRadarMessage::InternalSwap(CCRadarMessage* other) {
  8619. using std::swap;
  8620. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  8621. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  8622. PROTOBUF_FIELD_OFFSET(CCRadarMessage, radar7_)
  8623. + sizeof(CCRadarMessage::radar7_)
  8624. - PROTOBUF_FIELD_OFFSET(CCRadarMessage, radar0_)>(
  8625. reinterpret_cast<char*>(&radar0_),
  8626. reinterpret_cast<char*>(&other->radar0_));
  8627. }
  8628. ::PROTOBUF_NAMESPACE_ID::Metadata CCRadarMessage::GetMetadata() const {
  8629. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  8630. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  8631. file_level_metadata_protocol_2eproto[32]);
  8632. }
  8633. // ===================================================================
  8634. class CCSensor::_Internal {
  8635. public:
  8636. };
  8637. CCSensor::CCSensor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  8638. bool is_message_owned)
  8639. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
  8640. node_(arena) {
  8641. SharedCtor();
  8642. if (!is_message_owned) {
  8643. RegisterArenaDtor(arena);
  8644. }
  8645. // @@protoc_insertion_point(arena_constructor:RemoNet.CCSensor)
  8646. }
  8647. CCSensor::CCSensor(const CCSensor& from)
  8648. : ::PROTOBUF_NAMESPACE_ID::Message(),
  8649. node_(from.node_) {
  8650. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  8651. ::memcpy(&left_encode_, &from.left_encode_,
  8652. static_cast<size_t>(reinterpret_cast<char*>(&right_encode_) -
  8653. reinterpret_cast<char*>(&left_encode_)) + sizeof(right_encode_));
  8654. // @@protoc_insertion_point(copy_constructor:RemoNet.CCSensor)
  8655. }
  8656. inline void CCSensor::SharedCtor() {
  8657. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  8658. reinterpret_cast<char*>(&left_encode_) - reinterpret_cast<char*>(this)),
  8659. 0, static_cast<size_t>(reinterpret_cast<char*>(&right_encode_) -
  8660. reinterpret_cast<char*>(&left_encode_)) + sizeof(right_encode_));
  8661. }
  8662. CCSensor::~CCSensor() {
  8663. // @@protoc_insertion_point(destructor:RemoNet.CCSensor)
  8664. if (GetArenaForAllocation() != nullptr) return;
  8665. SharedDtor();
  8666. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  8667. }
  8668. inline void CCSensor::SharedDtor() {
  8669. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  8670. }
  8671. void CCSensor::ArenaDtor(void* object) {
  8672. CCSensor* _this = reinterpret_cast< CCSensor* >(object);
  8673. (void)_this;
  8674. }
  8675. void CCSensor::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  8676. }
  8677. void CCSensor::SetCachedSize(int size) const {
  8678. _cached_size_.Set(size);
  8679. }
  8680. void CCSensor::Clear() {
  8681. // @@protoc_insertion_point(message_clear_start:RemoNet.CCSensor)
  8682. uint32_t cached_has_bits = 0;
  8683. // Prevent compiler warnings about cached_has_bits being unused
  8684. (void) cached_has_bits;
  8685. node_.Clear();
  8686. ::memset(&left_encode_, 0, static_cast<size_t>(
  8687. reinterpret_cast<char*>(&right_encode_) -
  8688. reinterpret_cast<char*>(&left_encode_)) + sizeof(right_encode_));
  8689. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  8690. }
  8691. const char* CCSensor::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  8692. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  8693. while (!ctx->Done(&ptr)) {
  8694. uint32_t tag;
  8695. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  8696. switch (tag >> 3) {
  8697. // repeated .RemoNet.radar_node node = 1;
  8698. case 1:
  8699. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
  8700. ptr -= 1;
  8701. do {
  8702. ptr += 1;
  8703. ptr = ctx->ParseMessage(_internal_add_node(), ptr);
  8704. CHK_(ptr);
  8705. if (!ctx->DataAvailable(ptr)) break;
  8706. } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
  8707. } else
  8708. goto handle_unusual;
  8709. continue;
  8710. // int32 left_encode = 2;
  8711. case 2:
  8712. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  8713. left_encode_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8714. CHK_(ptr);
  8715. } else
  8716. goto handle_unusual;
  8717. continue;
  8718. // int32 right_encode = 3;
  8719. case 3:
  8720. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  8721. right_encode_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8722. CHK_(ptr);
  8723. } else
  8724. goto handle_unusual;
  8725. continue;
  8726. default:
  8727. goto handle_unusual;
  8728. } // switch
  8729. handle_unusual:
  8730. if ((tag == 0) || ((tag & 7) == 4)) {
  8731. CHK_(ptr);
  8732. ctx->SetLastTag(tag);
  8733. goto message_done;
  8734. }
  8735. ptr = UnknownFieldParse(
  8736. tag,
  8737. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  8738. ptr, ctx);
  8739. CHK_(ptr != nullptr);
  8740. } // while
  8741. message_done:
  8742. return ptr;
  8743. failure:
  8744. ptr = nullptr;
  8745. goto message_done;
  8746. #undef CHK_
  8747. }
  8748. uint8_t* CCSensor::_InternalSerialize(
  8749. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  8750. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CCSensor)
  8751. uint32_t cached_has_bits = 0;
  8752. (void) cached_has_bits;
  8753. // repeated .RemoNet.radar_node node = 1;
  8754. for (unsigned int i = 0,
  8755. n = static_cast<unsigned int>(this->_internal_node_size()); i < n; i++) {
  8756. target = stream->EnsureSpace(target);
  8757. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  8758. InternalWriteMessage(1, this->_internal_node(i), target, stream);
  8759. }
  8760. // int32 left_encode = 2;
  8761. if (this->_internal_left_encode() != 0) {
  8762. target = stream->EnsureSpace(target);
  8763. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_left_encode(), target);
  8764. }
  8765. // int32 right_encode = 3;
  8766. if (this->_internal_right_encode() != 0) {
  8767. target = stream->EnsureSpace(target);
  8768. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_right_encode(), target);
  8769. }
  8770. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  8771. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  8772. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  8773. }
  8774. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CCSensor)
  8775. return target;
  8776. }
  8777. size_t CCSensor::ByteSizeLong() const {
  8778. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CCSensor)
  8779. size_t total_size = 0;
  8780. uint32_t cached_has_bits = 0;
  8781. // Prevent compiler warnings about cached_has_bits being unused
  8782. (void) cached_has_bits;
  8783. // repeated .RemoNet.radar_node node = 1;
  8784. total_size += 1UL * this->_internal_node_size();
  8785. for (const auto& msg : this->node_) {
  8786. total_size +=
  8787. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  8788. }
  8789. // int32 left_encode = 2;
  8790. if (this->_internal_left_encode() != 0) {
  8791. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_left_encode());
  8792. }
  8793. // int32 right_encode = 3;
  8794. if (this->_internal_right_encode() != 0) {
  8795. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_right_encode());
  8796. }
  8797. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  8798. }
  8799. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CCSensor::_class_data_ = {
  8800. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  8801. CCSensor::MergeImpl
  8802. };
  8803. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CCSensor::GetClassData() const { return &_class_data_; }
  8804. void CCSensor::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  8805. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  8806. static_cast<CCSensor *>(to)->MergeFrom(
  8807. static_cast<const CCSensor &>(from));
  8808. }
  8809. void CCSensor::MergeFrom(const CCSensor& from) {
  8810. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CCSensor)
  8811. GOOGLE_DCHECK_NE(&from, this);
  8812. uint32_t cached_has_bits = 0;
  8813. (void) cached_has_bits;
  8814. node_.MergeFrom(from.node_);
  8815. if (from._internal_left_encode() != 0) {
  8816. _internal_set_left_encode(from._internal_left_encode());
  8817. }
  8818. if (from._internal_right_encode() != 0) {
  8819. _internal_set_right_encode(from._internal_right_encode());
  8820. }
  8821. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  8822. }
  8823. void CCSensor::CopyFrom(const CCSensor& from) {
  8824. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CCSensor)
  8825. if (&from == this) return;
  8826. Clear();
  8827. MergeFrom(from);
  8828. }
  8829. bool CCSensor::IsInitialized() const {
  8830. return true;
  8831. }
  8832. void CCSensor::InternalSwap(CCSensor* other) {
  8833. using std::swap;
  8834. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  8835. node_.InternalSwap(&other->node_);
  8836. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  8837. PROTOBUF_FIELD_OFFSET(CCSensor, right_encode_)
  8838. + sizeof(CCSensor::right_encode_)
  8839. - PROTOBUF_FIELD_OFFSET(CCSensor, left_encode_)>(
  8840. reinterpret_cast<char*>(&left_encode_),
  8841. reinterpret_cast<char*>(&other->left_encode_));
  8842. }
  8843. ::PROTOBUF_NAMESPACE_ID::Metadata CCSensor::GetMetadata() const {
  8844. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  8845. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  8846. file_level_metadata_protocol_2eproto[33]);
  8847. }
  8848. // ===================================================================
  8849. class CCSwitch::_Internal {
  8850. public:
  8851. };
  8852. CCSwitch::CCSwitch(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  8853. bool is_message_owned)
  8854. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  8855. SharedCtor();
  8856. if (!is_message_owned) {
  8857. RegisterArenaDtor(arena);
  8858. }
  8859. // @@protoc_insertion_point(arena_constructor:RemoNet.CCSwitch)
  8860. }
  8861. CCSwitch::CCSwitch(const CCSwitch& from)
  8862. : ::PROTOBUF_NAMESPACE_ID::Message() {
  8863. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  8864. front_ = from.front_;
  8865. // @@protoc_insertion_point(copy_constructor:RemoNet.CCSwitch)
  8866. }
  8867. inline void CCSwitch::SharedCtor() {
  8868. front_ = false;
  8869. }
  8870. CCSwitch::~CCSwitch() {
  8871. // @@protoc_insertion_point(destructor:RemoNet.CCSwitch)
  8872. if (GetArenaForAllocation() != nullptr) return;
  8873. SharedDtor();
  8874. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  8875. }
  8876. inline void CCSwitch::SharedDtor() {
  8877. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  8878. }
  8879. void CCSwitch::ArenaDtor(void* object) {
  8880. CCSwitch* _this = reinterpret_cast< CCSwitch* >(object);
  8881. (void)_this;
  8882. }
  8883. void CCSwitch::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  8884. }
  8885. void CCSwitch::SetCachedSize(int size) const {
  8886. _cached_size_.Set(size);
  8887. }
  8888. void CCSwitch::Clear() {
  8889. // @@protoc_insertion_point(message_clear_start:RemoNet.CCSwitch)
  8890. uint32_t cached_has_bits = 0;
  8891. // Prevent compiler warnings about cached_has_bits being unused
  8892. (void) cached_has_bits;
  8893. front_ = false;
  8894. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  8895. }
  8896. const char* CCSwitch::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  8897. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  8898. while (!ctx->Done(&ptr)) {
  8899. uint32_t tag;
  8900. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  8901. switch (tag >> 3) {
  8902. // bool front = 1;
  8903. case 1:
  8904. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  8905. front_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  8906. CHK_(ptr);
  8907. } else
  8908. goto handle_unusual;
  8909. continue;
  8910. default:
  8911. goto handle_unusual;
  8912. } // switch
  8913. handle_unusual:
  8914. if ((tag == 0) || ((tag & 7) == 4)) {
  8915. CHK_(ptr);
  8916. ctx->SetLastTag(tag);
  8917. goto message_done;
  8918. }
  8919. ptr = UnknownFieldParse(
  8920. tag,
  8921. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  8922. ptr, ctx);
  8923. CHK_(ptr != nullptr);
  8924. } // while
  8925. message_done:
  8926. return ptr;
  8927. failure:
  8928. ptr = nullptr;
  8929. goto message_done;
  8930. #undef CHK_
  8931. }
  8932. uint8_t* CCSwitch::_InternalSerialize(
  8933. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  8934. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CCSwitch)
  8935. uint32_t cached_has_bits = 0;
  8936. (void) cached_has_bits;
  8937. // bool front = 1;
  8938. if (this->_internal_front() != 0) {
  8939. target = stream->EnsureSpace(target);
  8940. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_front(), target);
  8941. }
  8942. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  8943. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  8944. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  8945. }
  8946. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CCSwitch)
  8947. return target;
  8948. }
  8949. size_t CCSwitch::ByteSizeLong() const {
  8950. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CCSwitch)
  8951. size_t total_size = 0;
  8952. uint32_t cached_has_bits = 0;
  8953. // Prevent compiler warnings about cached_has_bits being unused
  8954. (void) cached_has_bits;
  8955. // bool front = 1;
  8956. if (this->_internal_front() != 0) {
  8957. total_size += 1 + 1;
  8958. }
  8959. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  8960. }
  8961. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CCSwitch::_class_data_ = {
  8962. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  8963. CCSwitch::MergeImpl
  8964. };
  8965. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CCSwitch::GetClassData() const { return &_class_data_; }
  8966. void CCSwitch::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  8967. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  8968. static_cast<CCSwitch *>(to)->MergeFrom(
  8969. static_cast<const CCSwitch &>(from));
  8970. }
  8971. void CCSwitch::MergeFrom(const CCSwitch& from) {
  8972. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CCSwitch)
  8973. GOOGLE_DCHECK_NE(&from, this);
  8974. uint32_t cached_has_bits = 0;
  8975. (void) cached_has_bits;
  8976. if (from._internal_front() != 0) {
  8977. _internal_set_front(from._internal_front());
  8978. }
  8979. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  8980. }
  8981. void CCSwitch::CopyFrom(const CCSwitch& from) {
  8982. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CCSwitch)
  8983. if (&from == this) return;
  8984. Clear();
  8985. MergeFrom(from);
  8986. }
  8987. bool CCSwitch::IsInitialized() const {
  8988. return true;
  8989. }
  8990. void CCSwitch::InternalSwap(CCSwitch* other) {
  8991. using std::swap;
  8992. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  8993. swap(front_, other->front_);
  8994. }
  8995. ::PROTOBUF_NAMESPACE_ID::Metadata CCSwitch::GetMetadata() const {
  8996. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  8997. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  8998. file_level_metadata_protocol_2eproto[34]);
  8999. }
  9000. // ===================================================================
  9001. class State::_Internal {
  9002. public:
  9003. };
  9004. State::State(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  9005. bool is_message_owned)
  9006. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  9007. SharedCtor();
  9008. if (!is_message_owned) {
  9009. RegisterArenaDtor(arena);
  9010. }
  9011. // @@protoc_insertion_point(arena_constructor:RemoNet.State)
  9012. }
  9013. State::State(const State& from)
  9014. : ::PROTOBUF_NAMESPACE_ID::Message() {
  9015. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  9016. error_buff_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  9017. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9018. error_buff_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  9019. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9020. if (!from._internal_error_buff().empty()) {
  9021. error_buff_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_error_buff(),
  9022. GetArenaForAllocation());
  9023. }
  9024. ::memcpy(&engine_speed_, &from.engine_speed_,
  9025. static_cast<size_t>(reinterpret_cast<char*>(&grab_rotary_switch_valve_) -
  9026. reinterpret_cast<char*>(&engine_speed_)) + sizeof(grab_rotary_switch_valve_));
  9027. // @@protoc_insertion_point(copy_constructor:RemoNet.State)
  9028. }
  9029. inline void State::SharedCtor() {
  9030. error_buff_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  9031. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9032. error_buff_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  9033. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9034. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  9035. reinterpret_cast<char*>(&engine_speed_) - reinterpret_cast<char*>(this)),
  9036. 0, static_cast<size_t>(reinterpret_cast<char*>(&grab_rotary_switch_valve_) -
  9037. reinterpret_cast<char*>(&engine_speed_)) + sizeof(grab_rotary_switch_valve_));
  9038. }
  9039. State::~State() {
  9040. // @@protoc_insertion_point(destructor:RemoNet.State)
  9041. if (GetArenaForAllocation() != nullptr) return;
  9042. SharedDtor();
  9043. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  9044. }
  9045. inline void State::SharedDtor() {
  9046. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  9047. error_buff_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  9048. }
  9049. void State::ArenaDtor(void* object) {
  9050. State* _this = reinterpret_cast< State* >(object);
  9051. (void)_this;
  9052. }
  9053. void State::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  9054. }
  9055. void State::SetCachedSize(int size) const {
  9056. _cached_size_.Set(size);
  9057. }
  9058. void State::Clear() {
  9059. // @@protoc_insertion_point(message_clear_start:RemoNet.State)
  9060. uint32_t cached_has_bits = 0;
  9061. // Prevent compiler warnings about cached_has_bits being unused
  9062. (void) cached_has_bits;
  9063. error_buff_.ClearToEmpty();
  9064. ::memset(&engine_speed_, 0, static_cast<size_t>(
  9065. reinterpret_cast<char*>(&grab_rotary_switch_valve_) -
  9066. reinterpret_cast<char*>(&engine_speed_)) + sizeof(grab_rotary_switch_valve_));
  9067. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  9068. }
  9069. const char* State::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  9070. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  9071. while (!ctx->Done(&ptr)) {
  9072. uint32_t tag;
  9073. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  9074. switch (tag >> 3) {
  9075. // int32 engine_speed = 1;
  9076. case 1:
  9077. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  9078. engine_speed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9079. CHK_(ptr);
  9080. } else
  9081. goto handle_unusual;
  9082. continue;
  9083. // int32 travel_speed = 2;
  9084. case 2:
  9085. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  9086. travel_speed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9087. CHK_(ptr);
  9088. } else
  9089. goto handle_unusual;
  9090. continue;
  9091. // int32 fuel_level = 3;
  9092. case 3:
  9093. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  9094. fuel_level_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9095. CHK_(ptr);
  9096. } else
  9097. goto handle_unusual;
  9098. continue;
  9099. // int32 engine_temperature = 4;
  9100. case 4:
  9101. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
  9102. engine_temperature_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9103. CHK_(ptr);
  9104. } else
  9105. goto handle_unusual;
  9106. continue;
  9107. // int32 hydraulic_oil_temperature = 5;
  9108. case 5:
  9109. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
  9110. hydraulic_oil_temperature_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9111. CHK_(ptr);
  9112. } else
  9113. goto handle_unusual;
  9114. continue;
  9115. // int32 main_pump_1_pressure = 6;
  9116. case 6:
  9117. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 48)) {
  9118. main_pump_1_pressure_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9119. CHK_(ptr);
  9120. } else
  9121. goto handle_unusual;
  9122. continue;
  9123. // int32 main_pump_2_pressure = 7;
  9124. case 7:
  9125. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56)) {
  9126. main_pump_2_pressure_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9127. CHK_(ptr);
  9128. } else
  9129. goto handle_unusual;
  9130. continue;
  9131. // int32 hand_gear = 8;
  9132. case 8:
  9133. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 64)) {
  9134. hand_gear_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9135. CHK_(ptr);
  9136. } else
  9137. goto handle_unusual;
  9138. continue;
  9139. // int32 actual_gear = 9;
  9140. case 9:
  9141. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 72)) {
  9142. actual_gear_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9143. CHK_(ptr);
  9144. } else
  9145. goto handle_unusual;
  9146. continue;
  9147. // float gripper_height = 10;
  9148. case 10:
  9149. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 85)) {
  9150. gripper_height_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  9151. ptr += sizeof(float);
  9152. } else
  9153. goto handle_unusual;
  9154. continue;
  9155. // float amplitude = 11;
  9156. case 11:
  9157. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 93)) {
  9158. amplitude_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  9159. ptr += sizeof(float);
  9160. } else
  9161. goto handle_unusual;
  9162. continue;
  9163. // int32 boom_angle = 12;
  9164. case 12:
  9165. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 96)) {
  9166. boom_angle_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9167. CHK_(ptr);
  9168. } else
  9169. goto handle_unusual;
  9170. continue;
  9171. // int32 stick_angle = 13;
  9172. case 13:
  9173. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 104)) {
  9174. stick_angle_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9175. CHK_(ptr);
  9176. } else
  9177. goto handle_unusual;
  9178. continue;
  9179. // int32 idle_protection = 14;
  9180. case 14:
  9181. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 112)) {
  9182. idle_protection_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9183. CHK_(ptr);
  9184. } else
  9185. goto handle_unusual;
  9186. continue;
  9187. // int32 front_toggle = 15;
  9188. case 15:
  9189. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 120)) {
  9190. front_toggle_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9191. CHK_(ptr);
  9192. } else
  9193. goto handle_unusual;
  9194. continue;
  9195. // int32 back_toggle = 16;
  9196. case 16:
  9197. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 128)) {
  9198. back_toggle_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9199. CHK_(ptr);
  9200. } else
  9201. goto handle_unusual;
  9202. continue;
  9203. // bytes error_Buff = 17;
  9204. case 17:
  9205. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 138)) {
  9206. auto str = _internal_mutable_error_buff();
  9207. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  9208. CHK_(ptr);
  9209. } else
  9210. goto handle_unusual;
  9211. continue;
  9212. // int32 interlock = 18;
  9213. case 18:
  9214. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 144)) {
  9215. interlock_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9216. CHK_(ptr);
  9217. } else
  9218. goto handle_unusual;
  9219. continue;
  9220. // int32 safety_switch = 19;
  9221. case 19:
  9222. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 152)) {
  9223. safety_switch_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9224. CHK_(ptr);
  9225. } else
  9226. goto handle_unusual;
  9227. continue;
  9228. // int32 arm_lift_pilot = 20;
  9229. case 20:
  9230. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 160)) {
  9231. arm_lift_pilot_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9232. CHK_(ptr);
  9233. } else
  9234. goto handle_unusual;
  9235. continue;
  9236. // int32 arm_lowering_pilot = 21;
  9237. case 21:
  9238. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 168)) {
  9239. arm_lowering_pilot_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9240. CHK_(ptr);
  9241. } else
  9242. goto handle_unusual;
  9243. continue;
  9244. // int32 lever_lifting_pilot = 22;
  9245. case 22:
  9246. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 176)) {
  9247. lever_lifting_pilot_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9248. CHK_(ptr);
  9249. } else
  9250. goto handle_unusual;
  9251. continue;
  9252. // int32 rod_lowering_pilot = 23;
  9253. case 23:
  9254. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 184)) {
  9255. rod_lowering_pilot_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9256. CHK_(ptr);
  9257. } else
  9258. goto handle_unusual;
  9259. continue;
  9260. // int32 left_rotary_pilot = 24;
  9261. case 24:
  9262. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 192)) {
  9263. left_rotary_pilot_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9264. CHK_(ptr);
  9265. } else
  9266. goto handle_unusual;
  9267. continue;
  9268. // int32 right_rotary_pilot = 25;
  9269. case 25:
  9270. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 200)) {
  9271. right_rotary_pilot_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9272. CHK_(ptr);
  9273. } else
  9274. goto handle_unusual;
  9275. continue;
  9276. // int32 grab_open_pilot = 26;
  9277. case 26:
  9278. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 208)) {
  9279. grab_open_pilot_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9280. CHK_(ptr);
  9281. } else
  9282. goto handle_unusual;
  9283. continue;
  9284. // int32 grab_close_pilot = 27;
  9285. case 27:
  9286. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 216)) {
  9287. grab_close_pilot_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9288. CHK_(ptr);
  9289. } else
  9290. goto handle_unusual;
  9291. continue;
  9292. // int32 safety_valves = 28;
  9293. case 28:
  9294. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 224)) {
  9295. safety_valves_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9296. CHK_(ptr);
  9297. } else
  9298. goto handle_unusual;
  9299. continue;
  9300. // int32 function_code = 29;
  9301. case 29:
  9302. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 232)) {
  9303. function_code_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9304. CHK_(ptr);
  9305. } else
  9306. goto handle_unusual;
  9307. continue;
  9308. // int32 main_add = 30;
  9309. case 30:
  9310. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 240)) {
  9311. main_add_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9312. CHK_(ptr);
  9313. } else
  9314. goto handle_unusual;
  9315. continue;
  9316. // int32 sub_add = 31;
  9317. case 31:
  9318. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 248)) {
  9319. sub_add_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9320. CHK_(ptr);
  9321. } else
  9322. goto handle_unusual;
  9323. continue;
  9324. // int32 paramter = 32;
  9325. case 32:
  9326. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 0)) {
  9327. paramter_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9328. CHK_(ptr);
  9329. } else
  9330. goto handle_unusual;
  9331. continue;
  9332. // int32 engine_spn = 33;
  9333. case 33:
  9334. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  9335. engine_spn_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9336. CHK_(ptr);
  9337. } else
  9338. goto handle_unusual;
  9339. continue;
  9340. // int32 engine_fmi = 34;
  9341. case 34:
  9342. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  9343. engine_fmi_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9344. CHK_(ptr);
  9345. } else
  9346. goto handle_unusual;
  9347. continue;
  9348. // int32 engine_num = 35;
  9349. case 35:
  9350. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  9351. engine_num_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9352. CHK_(ptr);
  9353. } else
  9354. goto handle_unusual;
  9355. continue;
  9356. // int32 p_flameout = 36;
  9357. case 36:
  9358. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
  9359. p_flameout_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9360. CHK_(ptr);
  9361. } else
  9362. goto handle_unusual;
  9363. continue;
  9364. // int32 engine_start = 37;
  9365. case 37:
  9366. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
  9367. engine_start_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9368. CHK_(ptr);
  9369. } else
  9370. goto handle_unusual;
  9371. continue;
  9372. // int32 emergency_signal = 38;
  9373. case 38:
  9374. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 48)) {
  9375. emergency_signal_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9376. CHK_(ptr);
  9377. } else
  9378. goto handle_unusual;
  9379. continue;
  9380. // int32 preheating_monitoring = 39;
  9381. case 39:
  9382. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56)) {
  9383. preheating_monitoring_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9384. CHK_(ptr);
  9385. } else
  9386. goto handle_unusual;
  9387. continue;
  9388. // int32 park_switch = 40;
  9389. case 40:
  9390. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 64)) {
  9391. park_switch_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9392. CHK_(ptr);
  9393. } else
  9394. goto handle_unusual;
  9395. continue;
  9396. // int32 safety_bar_lock = 41;
  9397. case 41:
  9398. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 72)) {
  9399. safety_bar_lock_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9400. CHK_(ptr);
  9401. } else
  9402. goto handle_unusual;
  9403. continue;
  9404. // int32 forward_gear = 42;
  9405. case 42:
  9406. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 80)) {
  9407. forward_gear_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9408. CHK_(ptr);
  9409. } else
  9410. goto handle_unusual;
  9411. continue;
  9412. // int32 backward_gear = 43;
  9413. case 43:
  9414. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 88)) {
  9415. backward_gear_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9416. CHK_(ptr);
  9417. } else
  9418. goto handle_unusual;
  9419. continue;
  9420. // int32 first_gear = 44;
  9421. case 44:
  9422. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 96)) {
  9423. first_gear_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9424. CHK_(ptr);
  9425. } else
  9426. goto handle_unusual;
  9427. continue;
  9428. // int32 sencond_gear = 45;
  9429. case 45:
  9430. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 104)) {
  9431. sencond_gear_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9432. CHK_(ptr);
  9433. } else
  9434. goto handle_unusual;
  9435. continue;
  9436. // int32 n_gear = 46;
  9437. case 46:
  9438. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 112)) {
  9439. n_gear_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9440. CHK_(ptr);
  9441. } else
  9442. goto handle_unusual;
  9443. continue;
  9444. // int32 cabin_end = 47;
  9445. case 47:
  9446. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 120)) {
  9447. cabin_end_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9448. CHK_(ptr);
  9449. } else
  9450. goto handle_unusual;
  9451. continue;
  9452. // int32 cab_end = 48;
  9453. case 48:
  9454. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 128)) {
  9455. cab_end_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9456. CHK_(ptr);
  9457. } else
  9458. goto handle_unusual;
  9459. continue;
  9460. // int32 reserve = 49;
  9461. case 49:
  9462. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 136)) {
  9463. reserve_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9464. CHK_(ptr);
  9465. } else
  9466. goto handle_unusual;
  9467. continue;
  9468. // int32 for_left_outrigger = 50;
  9469. case 50:
  9470. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 144)) {
  9471. for_left_outrigger_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9472. CHK_(ptr);
  9473. } else
  9474. goto handle_unusual;
  9475. continue;
  9476. // int32 for_right_outrigger = 51;
  9477. case 51:
  9478. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 152)) {
  9479. for_right_outrigger_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9480. CHK_(ptr);
  9481. } else
  9482. goto handle_unusual;
  9483. continue;
  9484. // int32 back_left_outrigger = 52;
  9485. case 52:
  9486. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 160)) {
  9487. back_left_outrigger_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9488. CHK_(ptr);
  9489. } else
  9490. goto handle_unusual;
  9491. continue;
  9492. // int32 back_right_outrigger = 53;
  9493. case 53:
  9494. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 168)) {
  9495. back_right_outrigger_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9496. CHK_(ptr);
  9497. } else
  9498. goto handle_unusual;
  9499. continue;
  9500. // int32 cab_start = 54;
  9501. case 54:
  9502. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 176)) {
  9503. cab_start_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9504. CHK_(ptr);
  9505. } else
  9506. goto handle_unusual;
  9507. continue;
  9508. // int32 canbin_start = 55;
  9509. case 55:
  9510. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 184)) {
  9511. canbin_start_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9512. CHK_(ptr);
  9513. } else
  9514. goto handle_unusual;
  9515. continue;
  9516. // int32 swinging_bridge_lock = 56;
  9517. case 56:
  9518. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 192)) {
  9519. swinging_bridge_lock_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9520. CHK_(ptr);
  9521. } else
  9522. goto handle_unusual;
  9523. continue;
  9524. // int32 cab_emery = 57;
  9525. case 57:
  9526. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 200)) {
  9527. cab_emery_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9528. CHK_(ptr);
  9529. } else
  9530. goto handle_unusual;
  9531. continue;
  9532. // int32 safety_bypass = 58;
  9533. case 58:
  9534. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 208)) {
  9535. safety_bypass_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9536. CHK_(ptr);
  9537. } else
  9538. goto handle_unusual;
  9539. continue;
  9540. // int32 clear_alarm = 59;
  9541. case 59:
  9542. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 216)) {
  9543. clear_alarm_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9544. CHK_(ptr);
  9545. } else
  9546. goto handle_unusual;
  9547. continue;
  9548. // int32 front_wheel_steering = 60;
  9549. case 60:
  9550. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 224)) {
  9551. front_wheel_steering_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9552. CHK_(ptr);
  9553. } else
  9554. goto handle_unusual;
  9555. continue;
  9556. // int32 back_wheel_steering = 61;
  9557. case 61:
  9558. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 232)) {
  9559. back_wheel_steering_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9560. CHK_(ptr);
  9561. } else
  9562. goto handle_unusual;
  9563. continue;
  9564. // int32 same_steering = 62;
  9565. case 62:
  9566. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 240)) {
  9567. same_steering_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9568. CHK_(ptr);
  9569. } else
  9570. goto handle_unusual;
  9571. continue;
  9572. // int32 reverse_steering = 63;
  9573. case 63:
  9574. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 248)) {
  9575. reverse_steering_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9576. CHK_(ptr);
  9577. } else
  9578. goto handle_unusual;
  9579. continue;
  9580. // int32 sound_signal_alarm = 64;
  9581. case 64:
  9582. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 0)) {
  9583. sound_signal_alarm_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9584. CHK_(ptr);
  9585. } else
  9586. goto handle_unusual;
  9587. continue;
  9588. // int32 rod_intake_limit_valve = 65;
  9589. case 65:
  9590. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  9591. rod_intake_limit_valve_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9592. CHK_(ptr);
  9593. } else
  9594. goto handle_unusual;
  9595. continue;
  9596. // int32 rod_outtake_limit_valve = 66;
  9597. case 66:
  9598. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  9599. rod_outtake_limit_valve_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9600. CHK_(ptr);
  9601. } else
  9602. goto handle_unusual;
  9603. continue;
  9604. // int32 boom_lift_limit_valve = 67;
  9605. case 67:
  9606. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  9607. boom_lift_limit_valve_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9608. CHK_(ptr);
  9609. } else
  9610. goto handle_unusual;
  9611. continue;
  9612. // int32 boom_out_limit_valve = 68;
  9613. case 68:
  9614. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
  9615. boom_out_limit_valve_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9616. CHK_(ptr);
  9617. } else
  9618. goto handle_unusual;
  9619. continue;
  9620. // int32 cab_emery_value = 69;
  9621. case 69:
  9622. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
  9623. cab_emery_value_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9624. CHK_(ptr);
  9625. } else
  9626. goto handle_unusual;
  9627. continue;
  9628. // int32 charging_valve = 70;
  9629. case 70:
  9630. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 48)) {
  9631. charging_valve_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9632. CHK_(ptr);
  9633. } else
  9634. goto handle_unusual;
  9635. continue;
  9636. // int32 parking_valve = 71;
  9637. case 71:
  9638. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56)) {
  9639. parking_valve_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9640. CHK_(ptr);
  9641. } else
  9642. goto handle_unusual;
  9643. continue;
  9644. // int32 parking_back_signal = 72;
  9645. case 72:
  9646. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 64)) {
  9647. parking_back_signal_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9648. CHK_(ptr);
  9649. } else
  9650. goto handle_unusual;
  9651. continue;
  9652. // int32 brake_signal = 73;
  9653. case 73:
  9654. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 72)) {
  9655. brake_signal_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9656. CHK_(ptr);
  9657. } else
  9658. goto handle_unusual;
  9659. continue;
  9660. // int32 power_delay = 74;
  9661. case 74:
  9662. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 80)) {
  9663. power_delay_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9664. CHK_(ptr);
  9665. } else
  9666. goto handle_unusual;
  9667. continue;
  9668. // int32 flash_signal = 75;
  9669. case 75:
  9670. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 88)) {
  9671. flash_signal_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9672. CHK_(ptr);
  9673. } else
  9674. goto handle_unusual;
  9675. continue;
  9676. // int32 left_for_outrigger_value = 76;
  9677. case 76:
  9678. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 96)) {
  9679. left_for_outrigger_value_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9680. CHK_(ptr);
  9681. } else
  9682. goto handle_unusual;
  9683. continue;
  9684. // int32 right_for_outrigger_value = 77;
  9685. case 77:
  9686. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 104)) {
  9687. right_for_outrigger_value_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9688. CHK_(ptr);
  9689. } else
  9690. goto handle_unusual;
  9691. continue;
  9692. // int32 left_back_outrigger_value = 78;
  9693. case 78:
  9694. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 112)) {
  9695. left_back_outrigger_value_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9696. CHK_(ptr);
  9697. } else
  9698. goto handle_unusual;
  9699. continue;
  9700. // int32 right_back_outrigger_value = 79;
  9701. case 79:
  9702. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 120)) {
  9703. right_back_outrigger_value_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9704. CHK_(ptr);
  9705. } else
  9706. goto handle_unusual;
  9707. continue;
  9708. // int32 for_steering_value = 80;
  9709. case 80:
  9710. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 128)) {
  9711. for_steering_value_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9712. CHK_(ptr);
  9713. } else
  9714. goto handle_unusual;
  9715. continue;
  9716. // int32 same_steering_value = 81;
  9717. case 81:
  9718. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 136)) {
  9719. same_steering_value_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9720. CHK_(ptr);
  9721. } else
  9722. goto handle_unusual;
  9723. continue;
  9724. // int32 rever_steering_value = 82;
  9725. case 82:
  9726. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 144)) {
  9727. rever_steering_value_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9728. CHK_(ptr);
  9729. } else
  9730. goto handle_unusual;
  9731. continue;
  9732. // int32 first_gear_solenoid_valve = 83;
  9733. case 83:
  9734. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 152)) {
  9735. first_gear_solenoid_valve_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9736. CHK_(ptr);
  9737. } else
  9738. goto handle_unusual;
  9739. continue;
  9740. // int32 sen_gear_solenoid_valve = 84;
  9741. case 84:
  9742. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 160)) {
  9743. sen_gear_solenoid_valve_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9744. CHK_(ptr);
  9745. } else
  9746. goto handle_unusual;
  9747. continue;
  9748. // int32 grab_rotary_switch_valve = 85;
  9749. case 85:
  9750. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 168)) {
  9751. grab_rotary_switch_valve_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9752. CHK_(ptr);
  9753. } else
  9754. goto handle_unusual;
  9755. continue;
  9756. default:
  9757. goto handle_unusual;
  9758. } // switch
  9759. handle_unusual:
  9760. if ((tag == 0) || ((tag & 7) == 4)) {
  9761. CHK_(ptr);
  9762. ctx->SetLastTag(tag);
  9763. goto message_done;
  9764. }
  9765. ptr = UnknownFieldParse(
  9766. tag,
  9767. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  9768. ptr, ctx);
  9769. CHK_(ptr != nullptr);
  9770. } // while
  9771. message_done:
  9772. return ptr;
  9773. failure:
  9774. ptr = nullptr;
  9775. goto message_done;
  9776. #undef CHK_
  9777. }
  9778. uint8_t* State::_InternalSerialize(
  9779. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  9780. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.State)
  9781. uint32_t cached_has_bits = 0;
  9782. (void) cached_has_bits;
  9783. // int32 engine_speed = 1;
  9784. if (this->_internal_engine_speed() != 0) {
  9785. target = stream->EnsureSpace(target);
  9786. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_engine_speed(), target);
  9787. }
  9788. // int32 travel_speed = 2;
  9789. if (this->_internal_travel_speed() != 0) {
  9790. target = stream->EnsureSpace(target);
  9791. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_travel_speed(), target);
  9792. }
  9793. // int32 fuel_level = 3;
  9794. if (this->_internal_fuel_level() != 0) {
  9795. target = stream->EnsureSpace(target);
  9796. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_fuel_level(), target);
  9797. }
  9798. // int32 engine_temperature = 4;
  9799. if (this->_internal_engine_temperature() != 0) {
  9800. target = stream->EnsureSpace(target);
  9801. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_engine_temperature(), target);
  9802. }
  9803. // int32 hydraulic_oil_temperature = 5;
  9804. if (this->_internal_hydraulic_oil_temperature() != 0) {
  9805. target = stream->EnsureSpace(target);
  9806. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(5, this->_internal_hydraulic_oil_temperature(), target);
  9807. }
  9808. // int32 main_pump_1_pressure = 6;
  9809. if (this->_internal_main_pump_1_pressure() != 0) {
  9810. target = stream->EnsureSpace(target);
  9811. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(6, this->_internal_main_pump_1_pressure(), target);
  9812. }
  9813. // int32 main_pump_2_pressure = 7;
  9814. if (this->_internal_main_pump_2_pressure() != 0) {
  9815. target = stream->EnsureSpace(target);
  9816. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(7, this->_internal_main_pump_2_pressure(), target);
  9817. }
  9818. // int32 hand_gear = 8;
  9819. if (this->_internal_hand_gear() != 0) {
  9820. target = stream->EnsureSpace(target);
  9821. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(8, this->_internal_hand_gear(), target);
  9822. }
  9823. // int32 actual_gear = 9;
  9824. if (this->_internal_actual_gear() != 0) {
  9825. target = stream->EnsureSpace(target);
  9826. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(9, this->_internal_actual_gear(), target);
  9827. }
  9828. // float gripper_height = 10;
  9829. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  9830. float tmp_gripper_height = this->_internal_gripper_height();
  9831. uint32_t raw_gripper_height;
  9832. memcpy(&raw_gripper_height, &tmp_gripper_height, sizeof(tmp_gripper_height));
  9833. if (raw_gripper_height != 0) {
  9834. target = stream->EnsureSpace(target);
  9835. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(10, this->_internal_gripper_height(), target);
  9836. }
  9837. // float amplitude = 11;
  9838. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  9839. float tmp_amplitude = this->_internal_amplitude();
  9840. uint32_t raw_amplitude;
  9841. memcpy(&raw_amplitude, &tmp_amplitude, sizeof(tmp_amplitude));
  9842. if (raw_amplitude != 0) {
  9843. target = stream->EnsureSpace(target);
  9844. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(11, this->_internal_amplitude(), target);
  9845. }
  9846. // int32 boom_angle = 12;
  9847. if (this->_internal_boom_angle() != 0) {
  9848. target = stream->EnsureSpace(target);
  9849. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(12, this->_internal_boom_angle(), target);
  9850. }
  9851. // int32 stick_angle = 13;
  9852. if (this->_internal_stick_angle() != 0) {
  9853. target = stream->EnsureSpace(target);
  9854. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(13, this->_internal_stick_angle(), target);
  9855. }
  9856. // int32 idle_protection = 14;
  9857. if (this->_internal_idle_protection() != 0) {
  9858. target = stream->EnsureSpace(target);
  9859. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(14, this->_internal_idle_protection(), target);
  9860. }
  9861. // int32 front_toggle = 15;
  9862. if (this->_internal_front_toggle() != 0) {
  9863. target = stream->EnsureSpace(target);
  9864. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(15, this->_internal_front_toggle(), target);
  9865. }
  9866. // int32 back_toggle = 16;
  9867. if (this->_internal_back_toggle() != 0) {
  9868. target = stream->EnsureSpace(target);
  9869. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(16, this->_internal_back_toggle(), target);
  9870. }
  9871. // bytes error_Buff = 17;
  9872. if (!this->_internal_error_buff().empty()) {
  9873. target = stream->WriteBytesMaybeAliased(
  9874. 17, this->_internal_error_buff(), target);
  9875. }
  9876. // int32 interlock = 18;
  9877. if (this->_internal_interlock() != 0) {
  9878. target = stream->EnsureSpace(target);
  9879. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(18, this->_internal_interlock(), target);
  9880. }
  9881. // int32 safety_switch = 19;
  9882. if (this->_internal_safety_switch() != 0) {
  9883. target = stream->EnsureSpace(target);
  9884. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(19, this->_internal_safety_switch(), target);
  9885. }
  9886. // int32 arm_lift_pilot = 20;
  9887. if (this->_internal_arm_lift_pilot() != 0) {
  9888. target = stream->EnsureSpace(target);
  9889. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(20, this->_internal_arm_lift_pilot(), target);
  9890. }
  9891. // int32 arm_lowering_pilot = 21;
  9892. if (this->_internal_arm_lowering_pilot() != 0) {
  9893. target = stream->EnsureSpace(target);
  9894. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(21, this->_internal_arm_lowering_pilot(), target);
  9895. }
  9896. // int32 lever_lifting_pilot = 22;
  9897. if (this->_internal_lever_lifting_pilot() != 0) {
  9898. target = stream->EnsureSpace(target);
  9899. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(22, this->_internal_lever_lifting_pilot(), target);
  9900. }
  9901. // int32 rod_lowering_pilot = 23;
  9902. if (this->_internal_rod_lowering_pilot() != 0) {
  9903. target = stream->EnsureSpace(target);
  9904. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(23, this->_internal_rod_lowering_pilot(), target);
  9905. }
  9906. // int32 left_rotary_pilot = 24;
  9907. if (this->_internal_left_rotary_pilot() != 0) {
  9908. target = stream->EnsureSpace(target);
  9909. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(24, this->_internal_left_rotary_pilot(), target);
  9910. }
  9911. // int32 right_rotary_pilot = 25;
  9912. if (this->_internal_right_rotary_pilot() != 0) {
  9913. target = stream->EnsureSpace(target);
  9914. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(25, this->_internal_right_rotary_pilot(), target);
  9915. }
  9916. // int32 grab_open_pilot = 26;
  9917. if (this->_internal_grab_open_pilot() != 0) {
  9918. target = stream->EnsureSpace(target);
  9919. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(26, this->_internal_grab_open_pilot(), target);
  9920. }
  9921. // int32 grab_close_pilot = 27;
  9922. if (this->_internal_grab_close_pilot() != 0) {
  9923. target = stream->EnsureSpace(target);
  9924. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(27, this->_internal_grab_close_pilot(), target);
  9925. }
  9926. // int32 safety_valves = 28;
  9927. if (this->_internal_safety_valves() != 0) {
  9928. target = stream->EnsureSpace(target);
  9929. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(28, this->_internal_safety_valves(), target);
  9930. }
  9931. // int32 function_code = 29;
  9932. if (this->_internal_function_code() != 0) {
  9933. target = stream->EnsureSpace(target);
  9934. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(29, this->_internal_function_code(), target);
  9935. }
  9936. // int32 main_add = 30;
  9937. if (this->_internal_main_add() != 0) {
  9938. target = stream->EnsureSpace(target);
  9939. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(30, this->_internal_main_add(), target);
  9940. }
  9941. // int32 sub_add = 31;
  9942. if (this->_internal_sub_add() != 0) {
  9943. target = stream->EnsureSpace(target);
  9944. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(31, this->_internal_sub_add(), target);
  9945. }
  9946. // int32 paramter = 32;
  9947. if (this->_internal_paramter() != 0) {
  9948. target = stream->EnsureSpace(target);
  9949. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(32, this->_internal_paramter(), target);
  9950. }
  9951. // int32 engine_spn = 33;
  9952. if (this->_internal_engine_spn() != 0) {
  9953. target = stream->EnsureSpace(target);
  9954. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(33, this->_internal_engine_spn(), target);
  9955. }
  9956. // int32 engine_fmi = 34;
  9957. if (this->_internal_engine_fmi() != 0) {
  9958. target = stream->EnsureSpace(target);
  9959. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(34, this->_internal_engine_fmi(), target);
  9960. }
  9961. // int32 engine_num = 35;
  9962. if (this->_internal_engine_num() != 0) {
  9963. target = stream->EnsureSpace(target);
  9964. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(35, this->_internal_engine_num(), target);
  9965. }
  9966. // int32 p_flameout = 36;
  9967. if (this->_internal_p_flameout() != 0) {
  9968. target = stream->EnsureSpace(target);
  9969. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(36, this->_internal_p_flameout(), target);
  9970. }
  9971. // int32 engine_start = 37;
  9972. if (this->_internal_engine_start() != 0) {
  9973. target = stream->EnsureSpace(target);
  9974. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(37, this->_internal_engine_start(), target);
  9975. }
  9976. // int32 emergency_signal = 38;
  9977. if (this->_internal_emergency_signal() != 0) {
  9978. target = stream->EnsureSpace(target);
  9979. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(38, this->_internal_emergency_signal(), target);
  9980. }
  9981. // int32 preheating_monitoring = 39;
  9982. if (this->_internal_preheating_monitoring() != 0) {
  9983. target = stream->EnsureSpace(target);
  9984. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(39, this->_internal_preheating_monitoring(), target);
  9985. }
  9986. // int32 park_switch = 40;
  9987. if (this->_internal_park_switch() != 0) {
  9988. target = stream->EnsureSpace(target);
  9989. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(40, this->_internal_park_switch(), target);
  9990. }
  9991. // int32 safety_bar_lock = 41;
  9992. if (this->_internal_safety_bar_lock() != 0) {
  9993. target = stream->EnsureSpace(target);
  9994. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(41, this->_internal_safety_bar_lock(), target);
  9995. }
  9996. // int32 forward_gear = 42;
  9997. if (this->_internal_forward_gear() != 0) {
  9998. target = stream->EnsureSpace(target);
  9999. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(42, this->_internal_forward_gear(), target);
  10000. }
  10001. // int32 backward_gear = 43;
  10002. if (this->_internal_backward_gear() != 0) {
  10003. target = stream->EnsureSpace(target);
  10004. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(43, this->_internal_backward_gear(), target);
  10005. }
  10006. // int32 first_gear = 44;
  10007. if (this->_internal_first_gear() != 0) {
  10008. target = stream->EnsureSpace(target);
  10009. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(44, this->_internal_first_gear(), target);
  10010. }
  10011. // int32 sencond_gear = 45;
  10012. if (this->_internal_sencond_gear() != 0) {
  10013. target = stream->EnsureSpace(target);
  10014. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(45, this->_internal_sencond_gear(), target);
  10015. }
  10016. // int32 n_gear = 46;
  10017. if (this->_internal_n_gear() != 0) {
  10018. target = stream->EnsureSpace(target);
  10019. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(46, this->_internal_n_gear(), target);
  10020. }
  10021. // int32 cabin_end = 47;
  10022. if (this->_internal_cabin_end() != 0) {
  10023. target = stream->EnsureSpace(target);
  10024. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(47, this->_internal_cabin_end(), target);
  10025. }
  10026. // int32 cab_end = 48;
  10027. if (this->_internal_cab_end() != 0) {
  10028. target = stream->EnsureSpace(target);
  10029. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(48, this->_internal_cab_end(), target);
  10030. }
  10031. // int32 reserve = 49;
  10032. if (this->_internal_reserve() != 0) {
  10033. target = stream->EnsureSpace(target);
  10034. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(49, this->_internal_reserve(), target);
  10035. }
  10036. // int32 for_left_outrigger = 50;
  10037. if (this->_internal_for_left_outrigger() != 0) {
  10038. target = stream->EnsureSpace(target);
  10039. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(50, this->_internal_for_left_outrigger(), target);
  10040. }
  10041. // int32 for_right_outrigger = 51;
  10042. if (this->_internal_for_right_outrigger() != 0) {
  10043. target = stream->EnsureSpace(target);
  10044. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(51, this->_internal_for_right_outrigger(), target);
  10045. }
  10046. // int32 back_left_outrigger = 52;
  10047. if (this->_internal_back_left_outrigger() != 0) {
  10048. target = stream->EnsureSpace(target);
  10049. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(52, this->_internal_back_left_outrigger(), target);
  10050. }
  10051. // int32 back_right_outrigger = 53;
  10052. if (this->_internal_back_right_outrigger() != 0) {
  10053. target = stream->EnsureSpace(target);
  10054. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(53, this->_internal_back_right_outrigger(), target);
  10055. }
  10056. // int32 cab_start = 54;
  10057. if (this->_internal_cab_start() != 0) {
  10058. target = stream->EnsureSpace(target);
  10059. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(54, this->_internal_cab_start(), target);
  10060. }
  10061. // int32 canbin_start = 55;
  10062. if (this->_internal_canbin_start() != 0) {
  10063. target = stream->EnsureSpace(target);
  10064. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(55, this->_internal_canbin_start(), target);
  10065. }
  10066. // int32 swinging_bridge_lock = 56;
  10067. if (this->_internal_swinging_bridge_lock() != 0) {
  10068. target = stream->EnsureSpace(target);
  10069. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(56, this->_internal_swinging_bridge_lock(), target);
  10070. }
  10071. // int32 cab_emery = 57;
  10072. if (this->_internal_cab_emery() != 0) {
  10073. target = stream->EnsureSpace(target);
  10074. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(57, this->_internal_cab_emery(), target);
  10075. }
  10076. // int32 safety_bypass = 58;
  10077. if (this->_internal_safety_bypass() != 0) {
  10078. target = stream->EnsureSpace(target);
  10079. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(58, this->_internal_safety_bypass(), target);
  10080. }
  10081. // int32 clear_alarm = 59;
  10082. if (this->_internal_clear_alarm() != 0) {
  10083. target = stream->EnsureSpace(target);
  10084. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(59, this->_internal_clear_alarm(), target);
  10085. }
  10086. // int32 front_wheel_steering = 60;
  10087. if (this->_internal_front_wheel_steering() != 0) {
  10088. target = stream->EnsureSpace(target);
  10089. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(60, this->_internal_front_wheel_steering(), target);
  10090. }
  10091. // int32 back_wheel_steering = 61;
  10092. if (this->_internal_back_wheel_steering() != 0) {
  10093. target = stream->EnsureSpace(target);
  10094. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(61, this->_internal_back_wheel_steering(), target);
  10095. }
  10096. // int32 same_steering = 62;
  10097. if (this->_internal_same_steering() != 0) {
  10098. target = stream->EnsureSpace(target);
  10099. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(62, this->_internal_same_steering(), target);
  10100. }
  10101. // int32 reverse_steering = 63;
  10102. if (this->_internal_reverse_steering() != 0) {
  10103. target = stream->EnsureSpace(target);
  10104. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(63, this->_internal_reverse_steering(), target);
  10105. }
  10106. // int32 sound_signal_alarm = 64;
  10107. if (this->_internal_sound_signal_alarm() != 0) {
  10108. target = stream->EnsureSpace(target);
  10109. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(64, this->_internal_sound_signal_alarm(), target);
  10110. }
  10111. // int32 rod_intake_limit_valve = 65;
  10112. if (this->_internal_rod_intake_limit_valve() != 0) {
  10113. target = stream->EnsureSpace(target);
  10114. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(65, this->_internal_rod_intake_limit_valve(), target);
  10115. }
  10116. // int32 rod_outtake_limit_valve = 66;
  10117. if (this->_internal_rod_outtake_limit_valve() != 0) {
  10118. target = stream->EnsureSpace(target);
  10119. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(66, this->_internal_rod_outtake_limit_valve(), target);
  10120. }
  10121. // int32 boom_lift_limit_valve = 67;
  10122. if (this->_internal_boom_lift_limit_valve() != 0) {
  10123. target = stream->EnsureSpace(target);
  10124. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(67, this->_internal_boom_lift_limit_valve(), target);
  10125. }
  10126. // int32 boom_out_limit_valve = 68;
  10127. if (this->_internal_boom_out_limit_valve() != 0) {
  10128. target = stream->EnsureSpace(target);
  10129. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(68, this->_internal_boom_out_limit_valve(), target);
  10130. }
  10131. // int32 cab_emery_value = 69;
  10132. if (this->_internal_cab_emery_value() != 0) {
  10133. target = stream->EnsureSpace(target);
  10134. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(69, this->_internal_cab_emery_value(), target);
  10135. }
  10136. // int32 charging_valve = 70;
  10137. if (this->_internal_charging_valve() != 0) {
  10138. target = stream->EnsureSpace(target);
  10139. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(70, this->_internal_charging_valve(), target);
  10140. }
  10141. // int32 parking_valve = 71;
  10142. if (this->_internal_parking_valve() != 0) {
  10143. target = stream->EnsureSpace(target);
  10144. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(71, this->_internal_parking_valve(), target);
  10145. }
  10146. // int32 parking_back_signal = 72;
  10147. if (this->_internal_parking_back_signal() != 0) {
  10148. target = stream->EnsureSpace(target);
  10149. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(72, this->_internal_parking_back_signal(), target);
  10150. }
  10151. // int32 brake_signal = 73;
  10152. if (this->_internal_brake_signal() != 0) {
  10153. target = stream->EnsureSpace(target);
  10154. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(73, this->_internal_brake_signal(), target);
  10155. }
  10156. // int32 power_delay = 74;
  10157. if (this->_internal_power_delay() != 0) {
  10158. target = stream->EnsureSpace(target);
  10159. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(74, this->_internal_power_delay(), target);
  10160. }
  10161. // int32 flash_signal = 75;
  10162. if (this->_internal_flash_signal() != 0) {
  10163. target = stream->EnsureSpace(target);
  10164. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(75, this->_internal_flash_signal(), target);
  10165. }
  10166. // int32 left_for_outrigger_value = 76;
  10167. if (this->_internal_left_for_outrigger_value() != 0) {
  10168. target = stream->EnsureSpace(target);
  10169. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(76, this->_internal_left_for_outrigger_value(), target);
  10170. }
  10171. // int32 right_for_outrigger_value = 77;
  10172. if (this->_internal_right_for_outrigger_value() != 0) {
  10173. target = stream->EnsureSpace(target);
  10174. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(77, this->_internal_right_for_outrigger_value(), target);
  10175. }
  10176. // int32 left_back_outrigger_value = 78;
  10177. if (this->_internal_left_back_outrigger_value() != 0) {
  10178. target = stream->EnsureSpace(target);
  10179. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(78, this->_internal_left_back_outrigger_value(), target);
  10180. }
  10181. // int32 right_back_outrigger_value = 79;
  10182. if (this->_internal_right_back_outrigger_value() != 0) {
  10183. target = stream->EnsureSpace(target);
  10184. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(79, this->_internal_right_back_outrigger_value(), target);
  10185. }
  10186. // int32 for_steering_value = 80;
  10187. if (this->_internal_for_steering_value() != 0) {
  10188. target = stream->EnsureSpace(target);
  10189. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(80, this->_internal_for_steering_value(), target);
  10190. }
  10191. // int32 same_steering_value = 81;
  10192. if (this->_internal_same_steering_value() != 0) {
  10193. target = stream->EnsureSpace(target);
  10194. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(81, this->_internal_same_steering_value(), target);
  10195. }
  10196. // int32 rever_steering_value = 82;
  10197. if (this->_internal_rever_steering_value() != 0) {
  10198. target = stream->EnsureSpace(target);
  10199. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(82, this->_internal_rever_steering_value(), target);
  10200. }
  10201. // int32 first_gear_solenoid_valve = 83;
  10202. if (this->_internal_first_gear_solenoid_valve() != 0) {
  10203. target = stream->EnsureSpace(target);
  10204. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(83, this->_internal_first_gear_solenoid_valve(), target);
  10205. }
  10206. // int32 sen_gear_solenoid_valve = 84;
  10207. if (this->_internal_sen_gear_solenoid_valve() != 0) {
  10208. target = stream->EnsureSpace(target);
  10209. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(84, this->_internal_sen_gear_solenoid_valve(), target);
  10210. }
  10211. // int32 grab_rotary_switch_valve = 85;
  10212. if (this->_internal_grab_rotary_switch_valve() != 0) {
  10213. target = stream->EnsureSpace(target);
  10214. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(85, this->_internal_grab_rotary_switch_valve(), target);
  10215. }
  10216. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  10217. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  10218. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  10219. }
  10220. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.State)
  10221. return target;
  10222. }
  10223. size_t State::ByteSizeLong() const {
  10224. // @@protoc_insertion_point(message_byte_size_start:RemoNet.State)
  10225. size_t total_size = 0;
  10226. uint32_t cached_has_bits = 0;
  10227. // Prevent compiler warnings about cached_has_bits being unused
  10228. (void) cached_has_bits;
  10229. // bytes error_Buff = 17;
  10230. if (!this->_internal_error_buff().empty()) {
  10231. total_size += 2 +
  10232. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
  10233. this->_internal_error_buff());
  10234. }
  10235. // int32 engine_speed = 1;
  10236. if (this->_internal_engine_speed() != 0) {
  10237. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_engine_speed());
  10238. }
  10239. // int32 travel_speed = 2;
  10240. if (this->_internal_travel_speed() != 0) {
  10241. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_travel_speed());
  10242. }
  10243. // int32 fuel_level = 3;
  10244. if (this->_internal_fuel_level() != 0) {
  10245. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_fuel_level());
  10246. }
  10247. // int32 engine_temperature = 4;
  10248. if (this->_internal_engine_temperature() != 0) {
  10249. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_engine_temperature());
  10250. }
  10251. // int32 hydraulic_oil_temperature = 5;
  10252. if (this->_internal_hydraulic_oil_temperature() != 0) {
  10253. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_hydraulic_oil_temperature());
  10254. }
  10255. // int32 main_pump_1_pressure = 6;
  10256. if (this->_internal_main_pump_1_pressure() != 0) {
  10257. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_main_pump_1_pressure());
  10258. }
  10259. // int32 main_pump_2_pressure = 7;
  10260. if (this->_internal_main_pump_2_pressure() != 0) {
  10261. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_main_pump_2_pressure());
  10262. }
  10263. // int32 hand_gear = 8;
  10264. if (this->_internal_hand_gear() != 0) {
  10265. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_hand_gear());
  10266. }
  10267. // int32 actual_gear = 9;
  10268. if (this->_internal_actual_gear() != 0) {
  10269. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_actual_gear());
  10270. }
  10271. // float gripper_height = 10;
  10272. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  10273. float tmp_gripper_height = this->_internal_gripper_height();
  10274. uint32_t raw_gripper_height;
  10275. memcpy(&raw_gripper_height, &tmp_gripper_height, sizeof(tmp_gripper_height));
  10276. if (raw_gripper_height != 0) {
  10277. total_size += 1 + 4;
  10278. }
  10279. // float amplitude = 11;
  10280. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  10281. float tmp_amplitude = this->_internal_amplitude();
  10282. uint32_t raw_amplitude;
  10283. memcpy(&raw_amplitude, &tmp_amplitude, sizeof(tmp_amplitude));
  10284. if (raw_amplitude != 0) {
  10285. total_size += 1 + 4;
  10286. }
  10287. // int32 boom_angle = 12;
  10288. if (this->_internal_boom_angle() != 0) {
  10289. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_boom_angle());
  10290. }
  10291. // int32 stick_angle = 13;
  10292. if (this->_internal_stick_angle() != 0) {
  10293. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_stick_angle());
  10294. }
  10295. // int32 idle_protection = 14;
  10296. if (this->_internal_idle_protection() != 0) {
  10297. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_idle_protection());
  10298. }
  10299. // int32 front_toggle = 15;
  10300. if (this->_internal_front_toggle() != 0) {
  10301. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_front_toggle());
  10302. }
  10303. // int32 back_toggle = 16;
  10304. if (this->_internal_back_toggle() != 0) {
  10305. total_size += 2 +
  10306. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  10307. this->_internal_back_toggle());
  10308. }
  10309. // int32 interlock = 18;
  10310. if (this->_internal_interlock() != 0) {
  10311. total_size += 2 +
  10312. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  10313. this->_internal_interlock());
  10314. }
  10315. // int32 safety_switch = 19;
  10316. if (this->_internal_safety_switch() != 0) {
  10317. total_size += 2 +
  10318. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  10319. this->_internal_safety_switch());
  10320. }
  10321. // int32 arm_lift_pilot = 20;
  10322. if (this->_internal_arm_lift_pilot() != 0) {
  10323. total_size += 2 +
  10324. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  10325. this->_internal_arm_lift_pilot());
  10326. }
  10327. // int32 arm_lowering_pilot = 21;
  10328. if (this->_internal_arm_lowering_pilot() != 0) {
  10329. total_size += 2 +
  10330. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  10331. this->_internal_arm_lowering_pilot());
  10332. }
  10333. // int32 lever_lifting_pilot = 22;
  10334. if (this->_internal_lever_lifting_pilot() != 0) {
  10335. total_size += 2 +
  10336. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  10337. this->_internal_lever_lifting_pilot());
  10338. }
  10339. // int32 rod_lowering_pilot = 23;
  10340. if (this->_internal_rod_lowering_pilot() != 0) {
  10341. total_size += 2 +
  10342. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  10343. this->_internal_rod_lowering_pilot());
  10344. }
  10345. // int32 left_rotary_pilot = 24;
  10346. if (this->_internal_left_rotary_pilot() != 0) {
  10347. total_size += 2 +
  10348. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  10349. this->_internal_left_rotary_pilot());
  10350. }
  10351. // int32 right_rotary_pilot = 25;
  10352. if (this->_internal_right_rotary_pilot() != 0) {
  10353. total_size += 2 +
  10354. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  10355. this->_internal_right_rotary_pilot());
  10356. }
  10357. // int32 grab_open_pilot = 26;
  10358. if (this->_internal_grab_open_pilot() != 0) {
  10359. total_size += 2 +
  10360. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  10361. this->_internal_grab_open_pilot());
  10362. }
  10363. // int32 grab_close_pilot = 27;
  10364. if (this->_internal_grab_close_pilot() != 0) {
  10365. total_size += 2 +
  10366. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  10367. this->_internal_grab_close_pilot());
  10368. }
  10369. // int32 safety_valves = 28;
  10370. if (this->_internal_safety_valves() != 0) {
  10371. total_size += 2 +
  10372. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  10373. this->_internal_safety_valves());
  10374. }
  10375. // int32 function_code = 29;
  10376. if (this->_internal_function_code() != 0) {
  10377. total_size += 2 +
  10378. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  10379. this->_internal_function_code());
  10380. }
  10381. // int32 main_add = 30;
  10382. if (this->_internal_main_add() != 0) {
  10383. total_size += 2 +
  10384. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  10385. this->_internal_main_add());
  10386. }
  10387. // int32 sub_add = 31;
  10388. if (this->_internal_sub_add() != 0) {
  10389. total_size += 2 +
  10390. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  10391. this->_internal_sub_add());
  10392. }
  10393. // int32 paramter = 32;
  10394. if (this->_internal_paramter() != 0) {
  10395. total_size += 2 +
  10396. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  10397. this->_internal_paramter());
  10398. }
  10399. // int32 engine_spn = 33;
  10400. if (this->_internal_engine_spn() != 0) {
  10401. total_size += 2 +
  10402. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  10403. this->_internal_engine_spn());
  10404. }
  10405. // int32 engine_fmi = 34;
  10406. if (this->_internal_engine_fmi() != 0) {
  10407. total_size += 2 +
  10408. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  10409. this->_internal_engine_fmi());
  10410. }
  10411. // int32 engine_num = 35;
  10412. if (this->_internal_engine_num() != 0) {
  10413. total_size += 2 +
  10414. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  10415. this->_internal_engine_num());
  10416. }
  10417. // int32 p_flameout = 36;
  10418. if (this->_internal_p_flameout() != 0) {
  10419. total_size += 2 +
  10420. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  10421. this->_internal_p_flameout());
  10422. }
  10423. // int32 engine_start = 37;
  10424. if (this->_internal_engine_start() != 0) {
  10425. total_size += 2 +
  10426. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  10427. this->_internal_engine_start());
  10428. }
  10429. // int32 emergency_signal = 38;
  10430. if (this->_internal_emergency_signal() != 0) {
  10431. total_size += 2 +
  10432. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  10433. this->_internal_emergency_signal());
  10434. }
  10435. // int32 preheating_monitoring = 39;
  10436. if (this->_internal_preheating_monitoring() != 0) {
  10437. total_size += 2 +
  10438. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  10439. this->_internal_preheating_monitoring());
  10440. }
  10441. // int32 park_switch = 40;
  10442. if (this->_internal_park_switch() != 0) {
  10443. total_size += 2 +
  10444. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  10445. this->_internal_park_switch());
  10446. }
  10447. // int32 safety_bar_lock = 41;
  10448. if (this->_internal_safety_bar_lock() != 0) {
  10449. total_size += 2 +
  10450. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  10451. this->_internal_safety_bar_lock());
  10452. }
  10453. // int32 forward_gear = 42;
  10454. if (this->_internal_forward_gear() != 0) {
  10455. total_size += 2 +
  10456. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  10457. this->_internal_forward_gear());
  10458. }
  10459. // int32 backward_gear = 43;
  10460. if (this->_internal_backward_gear() != 0) {
  10461. total_size += 2 +
  10462. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  10463. this->_internal_backward_gear());
  10464. }
  10465. // int32 first_gear = 44;
  10466. if (this->_internal_first_gear() != 0) {
  10467. total_size += 2 +
  10468. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  10469. this->_internal_first_gear());
  10470. }
  10471. // int32 sencond_gear = 45;
  10472. if (this->_internal_sencond_gear() != 0) {
  10473. total_size += 2 +
  10474. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  10475. this->_internal_sencond_gear());
  10476. }
  10477. // int32 n_gear = 46;
  10478. if (this->_internal_n_gear() != 0) {
  10479. total_size += 2 +
  10480. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  10481. this->_internal_n_gear());
  10482. }
  10483. // int32 cabin_end = 47;
  10484. if (this->_internal_cabin_end() != 0) {
  10485. total_size += 2 +
  10486. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  10487. this->_internal_cabin_end());
  10488. }
  10489. // int32 cab_end = 48;
  10490. if (this->_internal_cab_end() != 0) {
  10491. total_size += 2 +
  10492. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  10493. this->_internal_cab_end());
  10494. }
  10495. // int32 reserve = 49;
  10496. if (this->_internal_reserve() != 0) {
  10497. total_size += 2 +
  10498. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  10499. this->_internal_reserve());
  10500. }
  10501. // int32 for_left_outrigger = 50;
  10502. if (this->_internal_for_left_outrigger() != 0) {
  10503. total_size += 2 +
  10504. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  10505. this->_internal_for_left_outrigger());
  10506. }
  10507. // int32 for_right_outrigger = 51;
  10508. if (this->_internal_for_right_outrigger() != 0) {
  10509. total_size += 2 +
  10510. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  10511. this->_internal_for_right_outrigger());
  10512. }
  10513. // int32 back_left_outrigger = 52;
  10514. if (this->_internal_back_left_outrigger() != 0) {
  10515. total_size += 2 +
  10516. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  10517. this->_internal_back_left_outrigger());
  10518. }
  10519. // int32 back_right_outrigger = 53;
  10520. if (this->_internal_back_right_outrigger() != 0) {
  10521. total_size += 2 +
  10522. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  10523. this->_internal_back_right_outrigger());
  10524. }
  10525. // int32 cab_start = 54;
  10526. if (this->_internal_cab_start() != 0) {
  10527. total_size += 2 +
  10528. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  10529. this->_internal_cab_start());
  10530. }
  10531. // int32 canbin_start = 55;
  10532. if (this->_internal_canbin_start() != 0) {
  10533. total_size += 2 +
  10534. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  10535. this->_internal_canbin_start());
  10536. }
  10537. // int32 swinging_bridge_lock = 56;
  10538. if (this->_internal_swinging_bridge_lock() != 0) {
  10539. total_size += 2 +
  10540. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  10541. this->_internal_swinging_bridge_lock());
  10542. }
  10543. // int32 cab_emery = 57;
  10544. if (this->_internal_cab_emery() != 0) {
  10545. total_size += 2 +
  10546. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  10547. this->_internal_cab_emery());
  10548. }
  10549. // int32 safety_bypass = 58;
  10550. if (this->_internal_safety_bypass() != 0) {
  10551. total_size += 2 +
  10552. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  10553. this->_internal_safety_bypass());
  10554. }
  10555. // int32 clear_alarm = 59;
  10556. if (this->_internal_clear_alarm() != 0) {
  10557. total_size += 2 +
  10558. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  10559. this->_internal_clear_alarm());
  10560. }
  10561. // int32 front_wheel_steering = 60;
  10562. if (this->_internal_front_wheel_steering() != 0) {
  10563. total_size += 2 +
  10564. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  10565. this->_internal_front_wheel_steering());
  10566. }
  10567. // int32 back_wheel_steering = 61;
  10568. if (this->_internal_back_wheel_steering() != 0) {
  10569. total_size += 2 +
  10570. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  10571. this->_internal_back_wheel_steering());
  10572. }
  10573. // int32 same_steering = 62;
  10574. if (this->_internal_same_steering() != 0) {
  10575. total_size += 2 +
  10576. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  10577. this->_internal_same_steering());
  10578. }
  10579. // int32 reverse_steering = 63;
  10580. if (this->_internal_reverse_steering() != 0) {
  10581. total_size += 2 +
  10582. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  10583. this->_internal_reverse_steering());
  10584. }
  10585. // int32 sound_signal_alarm = 64;
  10586. if (this->_internal_sound_signal_alarm() != 0) {
  10587. total_size += 2 +
  10588. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  10589. this->_internal_sound_signal_alarm());
  10590. }
  10591. // int32 rod_intake_limit_valve = 65;
  10592. if (this->_internal_rod_intake_limit_valve() != 0) {
  10593. total_size += 2 +
  10594. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  10595. this->_internal_rod_intake_limit_valve());
  10596. }
  10597. // int32 rod_outtake_limit_valve = 66;
  10598. if (this->_internal_rod_outtake_limit_valve() != 0) {
  10599. total_size += 2 +
  10600. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  10601. this->_internal_rod_outtake_limit_valve());
  10602. }
  10603. // int32 boom_lift_limit_valve = 67;
  10604. if (this->_internal_boom_lift_limit_valve() != 0) {
  10605. total_size += 2 +
  10606. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  10607. this->_internal_boom_lift_limit_valve());
  10608. }
  10609. // int32 boom_out_limit_valve = 68;
  10610. if (this->_internal_boom_out_limit_valve() != 0) {
  10611. total_size += 2 +
  10612. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  10613. this->_internal_boom_out_limit_valve());
  10614. }
  10615. // int32 cab_emery_value = 69;
  10616. if (this->_internal_cab_emery_value() != 0) {
  10617. total_size += 2 +
  10618. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  10619. this->_internal_cab_emery_value());
  10620. }
  10621. // int32 charging_valve = 70;
  10622. if (this->_internal_charging_valve() != 0) {
  10623. total_size += 2 +
  10624. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  10625. this->_internal_charging_valve());
  10626. }
  10627. // int32 parking_valve = 71;
  10628. if (this->_internal_parking_valve() != 0) {
  10629. total_size += 2 +
  10630. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  10631. this->_internal_parking_valve());
  10632. }
  10633. // int32 parking_back_signal = 72;
  10634. if (this->_internal_parking_back_signal() != 0) {
  10635. total_size += 2 +
  10636. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  10637. this->_internal_parking_back_signal());
  10638. }
  10639. // int32 brake_signal = 73;
  10640. if (this->_internal_brake_signal() != 0) {
  10641. total_size += 2 +
  10642. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  10643. this->_internal_brake_signal());
  10644. }
  10645. // int32 power_delay = 74;
  10646. if (this->_internal_power_delay() != 0) {
  10647. total_size += 2 +
  10648. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  10649. this->_internal_power_delay());
  10650. }
  10651. // int32 flash_signal = 75;
  10652. if (this->_internal_flash_signal() != 0) {
  10653. total_size += 2 +
  10654. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  10655. this->_internal_flash_signal());
  10656. }
  10657. // int32 left_for_outrigger_value = 76;
  10658. if (this->_internal_left_for_outrigger_value() != 0) {
  10659. total_size += 2 +
  10660. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  10661. this->_internal_left_for_outrigger_value());
  10662. }
  10663. // int32 right_for_outrigger_value = 77;
  10664. if (this->_internal_right_for_outrigger_value() != 0) {
  10665. total_size += 2 +
  10666. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  10667. this->_internal_right_for_outrigger_value());
  10668. }
  10669. // int32 left_back_outrigger_value = 78;
  10670. if (this->_internal_left_back_outrigger_value() != 0) {
  10671. total_size += 2 +
  10672. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  10673. this->_internal_left_back_outrigger_value());
  10674. }
  10675. // int32 right_back_outrigger_value = 79;
  10676. if (this->_internal_right_back_outrigger_value() != 0) {
  10677. total_size += 2 +
  10678. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  10679. this->_internal_right_back_outrigger_value());
  10680. }
  10681. // int32 for_steering_value = 80;
  10682. if (this->_internal_for_steering_value() != 0) {
  10683. total_size += 2 +
  10684. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  10685. this->_internal_for_steering_value());
  10686. }
  10687. // int32 same_steering_value = 81;
  10688. if (this->_internal_same_steering_value() != 0) {
  10689. total_size += 2 +
  10690. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  10691. this->_internal_same_steering_value());
  10692. }
  10693. // int32 rever_steering_value = 82;
  10694. if (this->_internal_rever_steering_value() != 0) {
  10695. total_size += 2 +
  10696. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  10697. this->_internal_rever_steering_value());
  10698. }
  10699. // int32 first_gear_solenoid_valve = 83;
  10700. if (this->_internal_first_gear_solenoid_valve() != 0) {
  10701. total_size += 2 +
  10702. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  10703. this->_internal_first_gear_solenoid_valve());
  10704. }
  10705. // int32 sen_gear_solenoid_valve = 84;
  10706. if (this->_internal_sen_gear_solenoid_valve() != 0) {
  10707. total_size += 2 +
  10708. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  10709. this->_internal_sen_gear_solenoid_valve());
  10710. }
  10711. // int32 grab_rotary_switch_valve = 85;
  10712. if (this->_internal_grab_rotary_switch_valve() != 0) {
  10713. total_size += 2 +
  10714. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  10715. this->_internal_grab_rotary_switch_valve());
  10716. }
  10717. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  10718. }
  10719. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData State::_class_data_ = {
  10720. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  10721. State::MergeImpl
  10722. };
  10723. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*State::GetClassData() const { return &_class_data_; }
  10724. void State::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  10725. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  10726. static_cast<State *>(to)->MergeFrom(
  10727. static_cast<const State &>(from));
  10728. }
  10729. void State::MergeFrom(const State& from) {
  10730. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.State)
  10731. GOOGLE_DCHECK_NE(&from, this);
  10732. uint32_t cached_has_bits = 0;
  10733. (void) cached_has_bits;
  10734. if (!from._internal_error_buff().empty()) {
  10735. _internal_set_error_buff(from._internal_error_buff());
  10736. }
  10737. if (from._internal_engine_speed() != 0) {
  10738. _internal_set_engine_speed(from._internal_engine_speed());
  10739. }
  10740. if (from._internal_travel_speed() != 0) {
  10741. _internal_set_travel_speed(from._internal_travel_speed());
  10742. }
  10743. if (from._internal_fuel_level() != 0) {
  10744. _internal_set_fuel_level(from._internal_fuel_level());
  10745. }
  10746. if (from._internal_engine_temperature() != 0) {
  10747. _internal_set_engine_temperature(from._internal_engine_temperature());
  10748. }
  10749. if (from._internal_hydraulic_oil_temperature() != 0) {
  10750. _internal_set_hydraulic_oil_temperature(from._internal_hydraulic_oil_temperature());
  10751. }
  10752. if (from._internal_main_pump_1_pressure() != 0) {
  10753. _internal_set_main_pump_1_pressure(from._internal_main_pump_1_pressure());
  10754. }
  10755. if (from._internal_main_pump_2_pressure() != 0) {
  10756. _internal_set_main_pump_2_pressure(from._internal_main_pump_2_pressure());
  10757. }
  10758. if (from._internal_hand_gear() != 0) {
  10759. _internal_set_hand_gear(from._internal_hand_gear());
  10760. }
  10761. if (from._internal_actual_gear() != 0) {
  10762. _internal_set_actual_gear(from._internal_actual_gear());
  10763. }
  10764. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  10765. float tmp_gripper_height = from._internal_gripper_height();
  10766. uint32_t raw_gripper_height;
  10767. memcpy(&raw_gripper_height, &tmp_gripper_height, sizeof(tmp_gripper_height));
  10768. if (raw_gripper_height != 0) {
  10769. _internal_set_gripper_height(from._internal_gripper_height());
  10770. }
  10771. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  10772. float tmp_amplitude = from._internal_amplitude();
  10773. uint32_t raw_amplitude;
  10774. memcpy(&raw_amplitude, &tmp_amplitude, sizeof(tmp_amplitude));
  10775. if (raw_amplitude != 0) {
  10776. _internal_set_amplitude(from._internal_amplitude());
  10777. }
  10778. if (from._internal_boom_angle() != 0) {
  10779. _internal_set_boom_angle(from._internal_boom_angle());
  10780. }
  10781. if (from._internal_stick_angle() != 0) {
  10782. _internal_set_stick_angle(from._internal_stick_angle());
  10783. }
  10784. if (from._internal_idle_protection() != 0) {
  10785. _internal_set_idle_protection(from._internal_idle_protection());
  10786. }
  10787. if (from._internal_front_toggle() != 0) {
  10788. _internal_set_front_toggle(from._internal_front_toggle());
  10789. }
  10790. if (from._internal_back_toggle() != 0) {
  10791. _internal_set_back_toggle(from._internal_back_toggle());
  10792. }
  10793. if (from._internal_interlock() != 0) {
  10794. _internal_set_interlock(from._internal_interlock());
  10795. }
  10796. if (from._internal_safety_switch() != 0) {
  10797. _internal_set_safety_switch(from._internal_safety_switch());
  10798. }
  10799. if (from._internal_arm_lift_pilot() != 0) {
  10800. _internal_set_arm_lift_pilot(from._internal_arm_lift_pilot());
  10801. }
  10802. if (from._internal_arm_lowering_pilot() != 0) {
  10803. _internal_set_arm_lowering_pilot(from._internal_arm_lowering_pilot());
  10804. }
  10805. if (from._internal_lever_lifting_pilot() != 0) {
  10806. _internal_set_lever_lifting_pilot(from._internal_lever_lifting_pilot());
  10807. }
  10808. if (from._internal_rod_lowering_pilot() != 0) {
  10809. _internal_set_rod_lowering_pilot(from._internal_rod_lowering_pilot());
  10810. }
  10811. if (from._internal_left_rotary_pilot() != 0) {
  10812. _internal_set_left_rotary_pilot(from._internal_left_rotary_pilot());
  10813. }
  10814. if (from._internal_right_rotary_pilot() != 0) {
  10815. _internal_set_right_rotary_pilot(from._internal_right_rotary_pilot());
  10816. }
  10817. if (from._internal_grab_open_pilot() != 0) {
  10818. _internal_set_grab_open_pilot(from._internal_grab_open_pilot());
  10819. }
  10820. if (from._internal_grab_close_pilot() != 0) {
  10821. _internal_set_grab_close_pilot(from._internal_grab_close_pilot());
  10822. }
  10823. if (from._internal_safety_valves() != 0) {
  10824. _internal_set_safety_valves(from._internal_safety_valves());
  10825. }
  10826. if (from._internal_function_code() != 0) {
  10827. _internal_set_function_code(from._internal_function_code());
  10828. }
  10829. if (from._internal_main_add() != 0) {
  10830. _internal_set_main_add(from._internal_main_add());
  10831. }
  10832. if (from._internal_sub_add() != 0) {
  10833. _internal_set_sub_add(from._internal_sub_add());
  10834. }
  10835. if (from._internal_paramter() != 0) {
  10836. _internal_set_paramter(from._internal_paramter());
  10837. }
  10838. if (from._internal_engine_spn() != 0) {
  10839. _internal_set_engine_spn(from._internal_engine_spn());
  10840. }
  10841. if (from._internal_engine_fmi() != 0) {
  10842. _internal_set_engine_fmi(from._internal_engine_fmi());
  10843. }
  10844. if (from._internal_engine_num() != 0) {
  10845. _internal_set_engine_num(from._internal_engine_num());
  10846. }
  10847. if (from._internal_p_flameout() != 0) {
  10848. _internal_set_p_flameout(from._internal_p_flameout());
  10849. }
  10850. if (from._internal_engine_start() != 0) {
  10851. _internal_set_engine_start(from._internal_engine_start());
  10852. }
  10853. if (from._internal_emergency_signal() != 0) {
  10854. _internal_set_emergency_signal(from._internal_emergency_signal());
  10855. }
  10856. if (from._internal_preheating_monitoring() != 0) {
  10857. _internal_set_preheating_monitoring(from._internal_preheating_monitoring());
  10858. }
  10859. if (from._internal_park_switch() != 0) {
  10860. _internal_set_park_switch(from._internal_park_switch());
  10861. }
  10862. if (from._internal_safety_bar_lock() != 0) {
  10863. _internal_set_safety_bar_lock(from._internal_safety_bar_lock());
  10864. }
  10865. if (from._internal_forward_gear() != 0) {
  10866. _internal_set_forward_gear(from._internal_forward_gear());
  10867. }
  10868. if (from._internal_backward_gear() != 0) {
  10869. _internal_set_backward_gear(from._internal_backward_gear());
  10870. }
  10871. if (from._internal_first_gear() != 0) {
  10872. _internal_set_first_gear(from._internal_first_gear());
  10873. }
  10874. if (from._internal_sencond_gear() != 0) {
  10875. _internal_set_sencond_gear(from._internal_sencond_gear());
  10876. }
  10877. if (from._internal_n_gear() != 0) {
  10878. _internal_set_n_gear(from._internal_n_gear());
  10879. }
  10880. if (from._internal_cabin_end() != 0) {
  10881. _internal_set_cabin_end(from._internal_cabin_end());
  10882. }
  10883. if (from._internal_cab_end() != 0) {
  10884. _internal_set_cab_end(from._internal_cab_end());
  10885. }
  10886. if (from._internal_reserve() != 0) {
  10887. _internal_set_reserve(from._internal_reserve());
  10888. }
  10889. if (from._internal_for_left_outrigger() != 0) {
  10890. _internal_set_for_left_outrigger(from._internal_for_left_outrigger());
  10891. }
  10892. if (from._internal_for_right_outrigger() != 0) {
  10893. _internal_set_for_right_outrigger(from._internal_for_right_outrigger());
  10894. }
  10895. if (from._internal_back_left_outrigger() != 0) {
  10896. _internal_set_back_left_outrigger(from._internal_back_left_outrigger());
  10897. }
  10898. if (from._internal_back_right_outrigger() != 0) {
  10899. _internal_set_back_right_outrigger(from._internal_back_right_outrigger());
  10900. }
  10901. if (from._internal_cab_start() != 0) {
  10902. _internal_set_cab_start(from._internal_cab_start());
  10903. }
  10904. if (from._internal_canbin_start() != 0) {
  10905. _internal_set_canbin_start(from._internal_canbin_start());
  10906. }
  10907. if (from._internal_swinging_bridge_lock() != 0) {
  10908. _internal_set_swinging_bridge_lock(from._internal_swinging_bridge_lock());
  10909. }
  10910. if (from._internal_cab_emery() != 0) {
  10911. _internal_set_cab_emery(from._internal_cab_emery());
  10912. }
  10913. if (from._internal_safety_bypass() != 0) {
  10914. _internal_set_safety_bypass(from._internal_safety_bypass());
  10915. }
  10916. if (from._internal_clear_alarm() != 0) {
  10917. _internal_set_clear_alarm(from._internal_clear_alarm());
  10918. }
  10919. if (from._internal_front_wheel_steering() != 0) {
  10920. _internal_set_front_wheel_steering(from._internal_front_wheel_steering());
  10921. }
  10922. if (from._internal_back_wheel_steering() != 0) {
  10923. _internal_set_back_wheel_steering(from._internal_back_wheel_steering());
  10924. }
  10925. if (from._internal_same_steering() != 0) {
  10926. _internal_set_same_steering(from._internal_same_steering());
  10927. }
  10928. if (from._internal_reverse_steering() != 0) {
  10929. _internal_set_reverse_steering(from._internal_reverse_steering());
  10930. }
  10931. if (from._internal_sound_signal_alarm() != 0) {
  10932. _internal_set_sound_signal_alarm(from._internal_sound_signal_alarm());
  10933. }
  10934. if (from._internal_rod_intake_limit_valve() != 0) {
  10935. _internal_set_rod_intake_limit_valve(from._internal_rod_intake_limit_valve());
  10936. }
  10937. if (from._internal_rod_outtake_limit_valve() != 0) {
  10938. _internal_set_rod_outtake_limit_valve(from._internal_rod_outtake_limit_valve());
  10939. }
  10940. if (from._internal_boom_lift_limit_valve() != 0) {
  10941. _internal_set_boom_lift_limit_valve(from._internal_boom_lift_limit_valve());
  10942. }
  10943. if (from._internal_boom_out_limit_valve() != 0) {
  10944. _internal_set_boom_out_limit_valve(from._internal_boom_out_limit_valve());
  10945. }
  10946. if (from._internal_cab_emery_value() != 0) {
  10947. _internal_set_cab_emery_value(from._internal_cab_emery_value());
  10948. }
  10949. if (from._internal_charging_valve() != 0) {
  10950. _internal_set_charging_valve(from._internal_charging_valve());
  10951. }
  10952. if (from._internal_parking_valve() != 0) {
  10953. _internal_set_parking_valve(from._internal_parking_valve());
  10954. }
  10955. if (from._internal_parking_back_signal() != 0) {
  10956. _internal_set_parking_back_signal(from._internal_parking_back_signal());
  10957. }
  10958. if (from._internal_brake_signal() != 0) {
  10959. _internal_set_brake_signal(from._internal_brake_signal());
  10960. }
  10961. if (from._internal_power_delay() != 0) {
  10962. _internal_set_power_delay(from._internal_power_delay());
  10963. }
  10964. if (from._internal_flash_signal() != 0) {
  10965. _internal_set_flash_signal(from._internal_flash_signal());
  10966. }
  10967. if (from._internal_left_for_outrigger_value() != 0) {
  10968. _internal_set_left_for_outrigger_value(from._internal_left_for_outrigger_value());
  10969. }
  10970. if (from._internal_right_for_outrigger_value() != 0) {
  10971. _internal_set_right_for_outrigger_value(from._internal_right_for_outrigger_value());
  10972. }
  10973. if (from._internal_left_back_outrigger_value() != 0) {
  10974. _internal_set_left_back_outrigger_value(from._internal_left_back_outrigger_value());
  10975. }
  10976. if (from._internal_right_back_outrigger_value() != 0) {
  10977. _internal_set_right_back_outrigger_value(from._internal_right_back_outrigger_value());
  10978. }
  10979. if (from._internal_for_steering_value() != 0) {
  10980. _internal_set_for_steering_value(from._internal_for_steering_value());
  10981. }
  10982. if (from._internal_same_steering_value() != 0) {
  10983. _internal_set_same_steering_value(from._internal_same_steering_value());
  10984. }
  10985. if (from._internal_rever_steering_value() != 0) {
  10986. _internal_set_rever_steering_value(from._internal_rever_steering_value());
  10987. }
  10988. if (from._internal_first_gear_solenoid_valve() != 0) {
  10989. _internal_set_first_gear_solenoid_valve(from._internal_first_gear_solenoid_valve());
  10990. }
  10991. if (from._internal_sen_gear_solenoid_valve() != 0) {
  10992. _internal_set_sen_gear_solenoid_valve(from._internal_sen_gear_solenoid_valve());
  10993. }
  10994. if (from._internal_grab_rotary_switch_valve() != 0) {
  10995. _internal_set_grab_rotary_switch_valve(from._internal_grab_rotary_switch_valve());
  10996. }
  10997. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  10998. }
  10999. void State::CopyFrom(const State& from) {
  11000. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.State)
  11001. if (&from == this) return;
  11002. Clear();
  11003. MergeFrom(from);
  11004. }
  11005. bool State::IsInitialized() const {
  11006. return true;
  11007. }
  11008. void State::InternalSwap(State* other) {
  11009. using std::swap;
  11010. auto* lhs_arena = GetArenaForAllocation();
  11011. auto* rhs_arena = other->GetArenaForAllocation();
  11012. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  11013. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  11014. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  11015. &error_buff_, lhs_arena,
  11016. &other->error_buff_, rhs_arena
  11017. );
  11018. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  11019. PROTOBUF_FIELD_OFFSET(State, grab_rotary_switch_valve_)
  11020. + sizeof(State::grab_rotary_switch_valve_)
  11021. - PROTOBUF_FIELD_OFFSET(State, engine_speed_)>(
  11022. reinterpret_cast<char*>(&engine_speed_),
  11023. reinterpret_cast<char*>(&other->engine_speed_));
  11024. }
  11025. ::PROTOBUF_NAMESPACE_ID::Metadata State::GetMetadata() const {
  11026. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  11027. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  11028. file_level_metadata_protocol_2eproto[35]);
  11029. }
  11030. // ===================================================================
  11031. class LidarPoint::_Internal {
  11032. public:
  11033. using HasBits = decltype(std::declval<LidarPoint>()._has_bits_);
  11034. static void set_has_timestamp(HasBits* has_bits) {
  11035. (*has_bits)[0] |= 2u;
  11036. }
  11037. static void set_has_seq(HasBits* has_bits) {
  11038. (*has_bits)[0] |= 4u;
  11039. }
  11040. static void set_has_frame_id(HasBits* has_bits) {
  11041. (*has_bits)[0] |= 1u;
  11042. }
  11043. static void set_has_height(HasBits* has_bits) {
  11044. (*has_bits)[0] |= 8u;
  11045. }
  11046. static void set_has_width(HasBits* has_bits) {
  11047. (*has_bits)[0] |= 16u;
  11048. }
  11049. static void set_has_is_dense(HasBits* has_bits) {
  11050. (*has_bits)[0] |= 32u;
  11051. }
  11052. static void set_has_is_left(HasBits* has_bits) {
  11053. (*has_bits)[0] |= 64u;
  11054. }
  11055. };
  11056. LidarPoint::LidarPoint(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  11057. bool is_message_owned)
  11058. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
  11059. data_(arena) {
  11060. SharedCtor();
  11061. if (!is_message_owned) {
  11062. RegisterArenaDtor(arena);
  11063. }
  11064. // @@protoc_insertion_point(arena_constructor:RemoNet.LidarPoint)
  11065. }
  11066. LidarPoint::LidarPoint(const LidarPoint& from)
  11067. : ::PROTOBUF_NAMESPACE_ID::Message(),
  11068. _has_bits_(from._has_bits_),
  11069. data_(from.data_) {
  11070. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  11071. frame_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  11072. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11073. frame_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  11074. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11075. if (from._internal_has_frame_id()) {
  11076. frame_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_frame_id(),
  11077. GetArenaForAllocation());
  11078. }
  11079. ::memcpy(&timestamp_, &from.timestamp_,
  11080. static_cast<size_t>(reinterpret_cast<char*>(&is_left_) -
  11081. reinterpret_cast<char*>(&timestamp_)) + sizeof(is_left_));
  11082. // @@protoc_insertion_point(copy_constructor:RemoNet.LidarPoint)
  11083. }
  11084. inline void LidarPoint::SharedCtor() {
  11085. frame_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  11086. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11087. frame_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  11088. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11089. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  11090. reinterpret_cast<char*>(&timestamp_) - reinterpret_cast<char*>(this)),
  11091. 0, static_cast<size_t>(reinterpret_cast<char*>(&is_left_) -
  11092. reinterpret_cast<char*>(&timestamp_)) + sizeof(is_left_));
  11093. }
  11094. LidarPoint::~LidarPoint() {
  11095. // @@protoc_insertion_point(destructor:RemoNet.LidarPoint)
  11096. if (GetArenaForAllocation() != nullptr) return;
  11097. SharedDtor();
  11098. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  11099. }
  11100. inline void LidarPoint::SharedDtor() {
  11101. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  11102. frame_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  11103. }
  11104. void LidarPoint::ArenaDtor(void* object) {
  11105. LidarPoint* _this = reinterpret_cast< LidarPoint* >(object);
  11106. (void)_this;
  11107. }
  11108. void LidarPoint::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  11109. }
  11110. void LidarPoint::SetCachedSize(int size) const {
  11111. _cached_size_.Set(size);
  11112. }
  11113. void LidarPoint::Clear() {
  11114. // @@protoc_insertion_point(message_clear_start:RemoNet.LidarPoint)
  11115. uint32_t cached_has_bits = 0;
  11116. // Prevent compiler warnings about cached_has_bits being unused
  11117. (void) cached_has_bits;
  11118. data_.Clear();
  11119. cached_has_bits = _has_bits_[0];
  11120. if (cached_has_bits & 0x00000001u) {
  11121. frame_id_.ClearNonDefaultToEmpty();
  11122. }
  11123. if (cached_has_bits & 0x0000007eu) {
  11124. ::memset(&timestamp_, 0, static_cast<size_t>(
  11125. reinterpret_cast<char*>(&is_left_) -
  11126. reinterpret_cast<char*>(&timestamp_)) + sizeof(is_left_));
  11127. }
  11128. _has_bits_.Clear();
  11129. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  11130. }
  11131. const char* LidarPoint::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  11132. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  11133. _Internal::HasBits has_bits{};
  11134. while (!ctx->Done(&ptr)) {
  11135. uint32_t tag;
  11136. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  11137. switch (tag >> 3) {
  11138. // optional double timestamp = 1;
  11139. case 1:
  11140. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 9)) {
  11141. _Internal::set_has_timestamp(&has_bits);
  11142. timestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  11143. ptr += sizeof(double);
  11144. } else
  11145. goto handle_unusual;
  11146. continue;
  11147. // optional uint32 seq = 2;
  11148. case 2:
  11149. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  11150. _Internal::set_has_seq(&has_bits);
  11151. seq_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  11152. CHK_(ptr);
  11153. } else
  11154. goto handle_unusual;
  11155. continue;
  11156. // optional string frame_id = 3;
  11157. case 3:
  11158. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
  11159. auto str = _internal_mutable_frame_id();
  11160. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  11161. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.LidarPoint.frame_id"));
  11162. CHK_(ptr);
  11163. } else
  11164. goto handle_unusual;
  11165. continue;
  11166. // optional uint32 height = 4;
  11167. case 4:
  11168. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
  11169. _Internal::set_has_height(&has_bits);
  11170. height_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  11171. CHK_(ptr);
  11172. } else
  11173. goto handle_unusual;
  11174. continue;
  11175. // optional uint32 width = 5;
  11176. case 5:
  11177. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
  11178. _Internal::set_has_width(&has_bits);
  11179. width_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  11180. CHK_(ptr);
  11181. } else
  11182. goto handle_unusual;
  11183. continue;
  11184. // optional bool is_dense = 6;
  11185. case 6:
  11186. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 48)) {
  11187. _Internal::set_has_is_dense(&has_bits);
  11188. is_dense_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  11189. CHK_(ptr);
  11190. } else
  11191. goto handle_unusual;
  11192. continue;
  11193. // optional bool is_left = 7;
  11194. case 7:
  11195. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56)) {
  11196. _Internal::set_has_is_left(&has_bits);
  11197. is_left_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  11198. CHK_(ptr);
  11199. } else
  11200. goto handle_unusual;
  11201. continue;
  11202. // repeated float data = 8;
  11203. case 8:
  11204. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 66)) {
  11205. ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedFloatParser(_internal_mutable_data(), ptr, ctx);
  11206. CHK_(ptr);
  11207. } else if (static_cast<uint8_t>(tag) == 69) {
  11208. _internal_add_data(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr));
  11209. ptr += sizeof(float);
  11210. } else
  11211. goto handle_unusual;
  11212. continue;
  11213. default:
  11214. goto handle_unusual;
  11215. } // switch
  11216. handle_unusual:
  11217. if ((tag == 0) || ((tag & 7) == 4)) {
  11218. CHK_(ptr);
  11219. ctx->SetLastTag(tag);
  11220. goto message_done;
  11221. }
  11222. ptr = UnknownFieldParse(
  11223. tag,
  11224. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  11225. ptr, ctx);
  11226. CHK_(ptr != nullptr);
  11227. } // while
  11228. message_done:
  11229. _has_bits_.Or(has_bits);
  11230. return ptr;
  11231. failure:
  11232. ptr = nullptr;
  11233. goto message_done;
  11234. #undef CHK_
  11235. }
  11236. uint8_t* LidarPoint::_InternalSerialize(
  11237. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  11238. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.LidarPoint)
  11239. uint32_t cached_has_bits = 0;
  11240. (void) cached_has_bits;
  11241. // optional double timestamp = 1;
  11242. if (_internal_has_timestamp()) {
  11243. target = stream->EnsureSpace(target);
  11244. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(1, this->_internal_timestamp(), target);
  11245. }
  11246. // optional uint32 seq = 2;
  11247. if (_internal_has_seq()) {
  11248. target = stream->EnsureSpace(target);
  11249. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_seq(), target);
  11250. }
  11251. // optional string frame_id = 3;
  11252. if (_internal_has_frame_id()) {
  11253. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  11254. this->_internal_frame_id().data(), static_cast<int>(this->_internal_frame_id().length()),
  11255. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  11256. "RemoNet.LidarPoint.frame_id");
  11257. target = stream->WriteStringMaybeAliased(
  11258. 3, this->_internal_frame_id(), target);
  11259. }
  11260. // optional uint32 height = 4;
  11261. if (_internal_has_height()) {
  11262. target = stream->EnsureSpace(target);
  11263. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(4, this->_internal_height(), target);
  11264. }
  11265. // optional uint32 width = 5;
  11266. if (_internal_has_width()) {
  11267. target = stream->EnsureSpace(target);
  11268. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(5, this->_internal_width(), target);
  11269. }
  11270. // optional bool is_dense = 6;
  11271. if (_internal_has_is_dense()) {
  11272. target = stream->EnsureSpace(target);
  11273. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(6, this->_internal_is_dense(), target);
  11274. }
  11275. // optional bool is_left = 7;
  11276. if (_internal_has_is_left()) {
  11277. target = stream->EnsureSpace(target);
  11278. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(7, this->_internal_is_left(), target);
  11279. }
  11280. // repeated float data = 8;
  11281. if (this->_internal_data_size() > 0) {
  11282. target = stream->WriteFixedPacked(8, _internal_data(), target);
  11283. }
  11284. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  11285. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  11286. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  11287. }
  11288. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.LidarPoint)
  11289. return target;
  11290. }
  11291. size_t LidarPoint::ByteSizeLong() const {
  11292. // @@protoc_insertion_point(message_byte_size_start:RemoNet.LidarPoint)
  11293. size_t total_size = 0;
  11294. uint32_t cached_has_bits = 0;
  11295. // Prevent compiler warnings about cached_has_bits being unused
  11296. (void) cached_has_bits;
  11297. // repeated float data = 8;
  11298. {
  11299. unsigned int count = static_cast<unsigned int>(this->_internal_data_size());
  11300. size_t data_size = 4UL * count;
  11301. if (data_size > 0) {
  11302. total_size += 1 +
  11303. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  11304. static_cast<int32_t>(data_size));
  11305. }
  11306. total_size += data_size;
  11307. }
  11308. cached_has_bits = _has_bits_[0];
  11309. if (cached_has_bits & 0x0000007fu) {
  11310. // optional string frame_id = 3;
  11311. if (cached_has_bits & 0x00000001u) {
  11312. total_size += 1 +
  11313. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  11314. this->_internal_frame_id());
  11315. }
  11316. // optional double timestamp = 1;
  11317. if (cached_has_bits & 0x00000002u) {
  11318. total_size += 1 + 8;
  11319. }
  11320. // optional uint32 seq = 2;
  11321. if (cached_has_bits & 0x00000004u) {
  11322. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_seq());
  11323. }
  11324. // optional uint32 height = 4;
  11325. if (cached_has_bits & 0x00000008u) {
  11326. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_height());
  11327. }
  11328. // optional uint32 width = 5;
  11329. if (cached_has_bits & 0x00000010u) {
  11330. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_width());
  11331. }
  11332. // optional bool is_dense = 6;
  11333. if (cached_has_bits & 0x00000020u) {
  11334. total_size += 1 + 1;
  11335. }
  11336. // optional bool is_left = 7;
  11337. if (cached_has_bits & 0x00000040u) {
  11338. total_size += 1 + 1;
  11339. }
  11340. }
  11341. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  11342. }
  11343. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData LidarPoint::_class_data_ = {
  11344. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  11345. LidarPoint::MergeImpl
  11346. };
  11347. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*LidarPoint::GetClassData() const { return &_class_data_; }
  11348. void LidarPoint::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  11349. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  11350. static_cast<LidarPoint *>(to)->MergeFrom(
  11351. static_cast<const LidarPoint &>(from));
  11352. }
  11353. void LidarPoint::MergeFrom(const LidarPoint& from) {
  11354. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.LidarPoint)
  11355. GOOGLE_DCHECK_NE(&from, this);
  11356. uint32_t cached_has_bits = 0;
  11357. (void) cached_has_bits;
  11358. data_.MergeFrom(from.data_);
  11359. cached_has_bits = from._has_bits_[0];
  11360. if (cached_has_bits & 0x0000007fu) {
  11361. if (cached_has_bits & 0x00000001u) {
  11362. _internal_set_frame_id(from._internal_frame_id());
  11363. }
  11364. if (cached_has_bits & 0x00000002u) {
  11365. timestamp_ = from.timestamp_;
  11366. }
  11367. if (cached_has_bits & 0x00000004u) {
  11368. seq_ = from.seq_;
  11369. }
  11370. if (cached_has_bits & 0x00000008u) {
  11371. height_ = from.height_;
  11372. }
  11373. if (cached_has_bits & 0x00000010u) {
  11374. width_ = from.width_;
  11375. }
  11376. if (cached_has_bits & 0x00000020u) {
  11377. is_dense_ = from.is_dense_;
  11378. }
  11379. if (cached_has_bits & 0x00000040u) {
  11380. is_left_ = from.is_left_;
  11381. }
  11382. _has_bits_[0] |= cached_has_bits;
  11383. }
  11384. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  11385. }
  11386. void LidarPoint::CopyFrom(const LidarPoint& from) {
  11387. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.LidarPoint)
  11388. if (&from == this) return;
  11389. Clear();
  11390. MergeFrom(from);
  11391. }
  11392. bool LidarPoint::IsInitialized() const {
  11393. return true;
  11394. }
  11395. void LidarPoint::InternalSwap(LidarPoint* other) {
  11396. using std::swap;
  11397. auto* lhs_arena = GetArenaForAllocation();
  11398. auto* rhs_arena = other->GetArenaForAllocation();
  11399. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  11400. swap(_has_bits_[0], other->_has_bits_[0]);
  11401. data_.InternalSwap(&other->data_);
  11402. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  11403. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  11404. &frame_id_, lhs_arena,
  11405. &other->frame_id_, rhs_arena
  11406. );
  11407. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  11408. PROTOBUF_FIELD_OFFSET(LidarPoint, is_left_)
  11409. + sizeof(LidarPoint::is_left_)
  11410. - PROTOBUF_FIELD_OFFSET(LidarPoint, timestamp_)>(
  11411. reinterpret_cast<char*>(&timestamp_),
  11412. reinterpret_cast<char*>(&other->timestamp_));
  11413. }
  11414. ::PROTOBUF_NAMESPACE_ID::Metadata LidarPoint::GetMetadata() const {
  11415. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  11416. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  11417. file_level_metadata_protocol_2eproto[36]);
  11418. }
  11419. // ===================================================================
  11420. class SensorStop::_Internal {
  11421. public:
  11422. };
  11423. SensorStop::SensorStop(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  11424. bool is_message_owned)
  11425. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) {
  11426. // @@protoc_insertion_point(arena_constructor:RemoNet.SensorStop)
  11427. }
  11428. SensorStop::SensorStop(const SensorStop& from)
  11429. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() {
  11430. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  11431. // @@protoc_insertion_point(copy_constructor:RemoNet.SensorStop)
  11432. }
  11433. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SensorStop::_class_data_ = {
  11434. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl,
  11435. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl,
  11436. };
  11437. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SensorStop::GetClassData() const { return &_class_data_; }
  11438. ::PROTOBUF_NAMESPACE_ID::Metadata SensorStop::GetMetadata() const {
  11439. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  11440. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  11441. file_level_metadata_protocol_2eproto[37]);
  11442. }
  11443. // ===================================================================
  11444. class StopAck::_Internal {
  11445. public:
  11446. };
  11447. StopAck::StopAck(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  11448. bool is_message_owned)
  11449. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) {
  11450. // @@protoc_insertion_point(arena_constructor:RemoNet.StopAck)
  11451. }
  11452. StopAck::StopAck(const StopAck& from)
  11453. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() {
  11454. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  11455. // @@protoc_insertion_point(copy_constructor:RemoNet.StopAck)
  11456. }
  11457. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StopAck::_class_data_ = {
  11458. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl,
  11459. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl,
  11460. };
  11461. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StopAck::GetClassData() const { return &_class_data_; }
  11462. ::PROTOBUF_NAMESPACE_ID::Metadata StopAck::GetMetadata() const {
  11463. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  11464. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  11465. file_level_metadata_protocol_2eproto[38]);
  11466. }
  11467. // ===================================================================
  11468. class can_net_frame::_Internal {
  11469. public:
  11470. };
  11471. can_net_frame::can_net_frame(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  11472. bool is_message_owned)
  11473. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  11474. SharedCtor();
  11475. if (!is_message_owned) {
  11476. RegisterArenaDtor(arena);
  11477. }
  11478. // @@protoc_insertion_point(arena_constructor:RemoNet.can_net_frame)
  11479. }
  11480. can_net_frame::can_net_frame(const can_net_frame& from)
  11481. : ::PROTOBUF_NAMESPACE_ID::Message() {
  11482. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  11483. data_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  11484. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11485. data_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  11486. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11487. if (!from._internal_data().empty()) {
  11488. data_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_data(),
  11489. GetArenaForAllocation());
  11490. }
  11491. ::memcpy(&dlc_, &from.dlc_,
  11492. static_cast<size_t>(reinterpret_cast<char*>(&canid_) -
  11493. reinterpret_cast<char*>(&dlc_)) + sizeof(canid_));
  11494. // @@protoc_insertion_point(copy_constructor:RemoNet.can_net_frame)
  11495. }
  11496. inline void can_net_frame::SharedCtor() {
  11497. data_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  11498. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11499. data_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  11500. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11501. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  11502. reinterpret_cast<char*>(&dlc_) - reinterpret_cast<char*>(this)),
  11503. 0, static_cast<size_t>(reinterpret_cast<char*>(&canid_) -
  11504. reinterpret_cast<char*>(&dlc_)) + sizeof(canid_));
  11505. }
  11506. can_net_frame::~can_net_frame() {
  11507. // @@protoc_insertion_point(destructor:RemoNet.can_net_frame)
  11508. if (GetArenaForAllocation() != nullptr) return;
  11509. SharedDtor();
  11510. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  11511. }
  11512. inline void can_net_frame::SharedDtor() {
  11513. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  11514. data_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  11515. }
  11516. void can_net_frame::ArenaDtor(void* object) {
  11517. can_net_frame* _this = reinterpret_cast< can_net_frame* >(object);
  11518. (void)_this;
  11519. }
  11520. void can_net_frame::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  11521. }
  11522. void can_net_frame::SetCachedSize(int size) const {
  11523. _cached_size_.Set(size);
  11524. }
  11525. void can_net_frame::Clear() {
  11526. // @@protoc_insertion_point(message_clear_start:RemoNet.can_net_frame)
  11527. uint32_t cached_has_bits = 0;
  11528. // Prevent compiler warnings about cached_has_bits being unused
  11529. (void) cached_has_bits;
  11530. data_.ClearToEmpty();
  11531. ::memset(&dlc_, 0, static_cast<size_t>(
  11532. reinterpret_cast<char*>(&canid_) -
  11533. reinterpret_cast<char*>(&dlc_)) + sizeof(canid_));
  11534. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  11535. }
  11536. const char* can_net_frame::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  11537. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  11538. while (!ctx->Done(&ptr)) {
  11539. uint32_t tag;
  11540. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  11541. switch (tag >> 3) {
  11542. // sint32 dlc = 1;
  11543. case 1:
  11544. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  11545. dlc_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarintZigZag32(&ptr);
  11546. CHK_(ptr);
  11547. } else
  11548. goto handle_unusual;
  11549. continue;
  11550. // int32 canid = 2;
  11551. case 2:
  11552. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  11553. canid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  11554. CHK_(ptr);
  11555. } else
  11556. goto handle_unusual;
  11557. continue;
  11558. // bytes data = 3;
  11559. case 3:
  11560. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
  11561. auto str = _internal_mutable_data();
  11562. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  11563. CHK_(ptr);
  11564. } else
  11565. goto handle_unusual;
  11566. continue;
  11567. default:
  11568. goto handle_unusual;
  11569. } // switch
  11570. handle_unusual:
  11571. if ((tag == 0) || ((tag & 7) == 4)) {
  11572. CHK_(ptr);
  11573. ctx->SetLastTag(tag);
  11574. goto message_done;
  11575. }
  11576. ptr = UnknownFieldParse(
  11577. tag,
  11578. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  11579. ptr, ctx);
  11580. CHK_(ptr != nullptr);
  11581. } // while
  11582. message_done:
  11583. return ptr;
  11584. failure:
  11585. ptr = nullptr;
  11586. goto message_done;
  11587. #undef CHK_
  11588. }
  11589. uint8_t* can_net_frame::_InternalSerialize(
  11590. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  11591. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.can_net_frame)
  11592. uint32_t cached_has_bits = 0;
  11593. (void) cached_has_bits;
  11594. // sint32 dlc = 1;
  11595. if (this->_internal_dlc() != 0) {
  11596. target = stream->EnsureSpace(target);
  11597. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteSInt32ToArray(1, this->_internal_dlc(), target);
  11598. }
  11599. // int32 canid = 2;
  11600. if (this->_internal_canid() != 0) {
  11601. target = stream->EnsureSpace(target);
  11602. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_canid(), target);
  11603. }
  11604. // bytes data = 3;
  11605. if (!this->_internal_data().empty()) {
  11606. target = stream->WriteBytesMaybeAliased(
  11607. 3, this->_internal_data(), target);
  11608. }
  11609. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  11610. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  11611. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  11612. }
  11613. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.can_net_frame)
  11614. return target;
  11615. }
  11616. size_t can_net_frame::ByteSizeLong() const {
  11617. // @@protoc_insertion_point(message_byte_size_start:RemoNet.can_net_frame)
  11618. size_t total_size = 0;
  11619. uint32_t cached_has_bits = 0;
  11620. // Prevent compiler warnings about cached_has_bits being unused
  11621. (void) cached_has_bits;
  11622. // bytes data = 3;
  11623. if (!this->_internal_data().empty()) {
  11624. total_size += 1 +
  11625. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
  11626. this->_internal_data());
  11627. }
  11628. // sint32 dlc = 1;
  11629. if (this->_internal_dlc() != 0) {
  11630. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SInt32SizePlusOne(this->_internal_dlc());
  11631. }
  11632. // int32 canid = 2;
  11633. if (this->_internal_canid() != 0) {
  11634. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_canid());
  11635. }
  11636. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  11637. }
  11638. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData can_net_frame::_class_data_ = {
  11639. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  11640. can_net_frame::MergeImpl
  11641. };
  11642. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*can_net_frame::GetClassData() const { return &_class_data_; }
  11643. void can_net_frame::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  11644. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  11645. static_cast<can_net_frame *>(to)->MergeFrom(
  11646. static_cast<const can_net_frame &>(from));
  11647. }
  11648. void can_net_frame::MergeFrom(const can_net_frame& from) {
  11649. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.can_net_frame)
  11650. GOOGLE_DCHECK_NE(&from, this);
  11651. uint32_t cached_has_bits = 0;
  11652. (void) cached_has_bits;
  11653. if (!from._internal_data().empty()) {
  11654. _internal_set_data(from._internal_data());
  11655. }
  11656. if (from._internal_dlc() != 0) {
  11657. _internal_set_dlc(from._internal_dlc());
  11658. }
  11659. if (from._internal_canid() != 0) {
  11660. _internal_set_canid(from._internal_canid());
  11661. }
  11662. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  11663. }
  11664. void can_net_frame::CopyFrom(const can_net_frame& from) {
  11665. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.can_net_frame)
  11666. if (&from == this) return;
  11667. Clear();
  11668. MergeFrom(from);
  11669. }
  11670. bool can_net_frame::IsInitialized() const {
  11671. return true;
  11672. }
  11673. void can_net_frame::InternalSwap(can_net_frame* other) {
  11674. using std::swap;
  11675. auto* lhs_arena = GetArenaForAllocation();
  11676. auto* rhs_arena = other->GetArenaForAllocation();
  11677. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  11678. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  11679. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  11680. &data_, lhs_arena,
  11681. &other->data_, rhs_arena
  11682. );
  11683. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  11684. PROTOBUF_FIELD_OFFSET(can_net_frame, canid_)
  11685. + sizeof(can_net_frame::canid_)
  11686. - PROTOBUF_FIELD_OFFSET(can_net_frame, dlc_)>(
  11687. reinterpret_cast<char*>(&dlc_),
  11688. reinterpret_cast<char*>(&other->dlc_));
  11689. }
  11690. ::PROTOBUF_NAMESPACE_ID::Metadata can_net_frame::GetMetadata() const {
  11691. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  11692. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  11693. file_level_metadata_protocol_2eproto[39]);
  11694. }
  11695. // ===================================================================
  11696. class CCCanMsg::_Internal {
  11697. public:
  11698. };
  11699. CCCanMsg::CCCanMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  11700. bool is_message_owned)
  11701. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
  11702. frams_(arena) {
  11703. SharedCtor();
  11704. if (!is_message_owned) {
  11705. RegisterArenaDtor(arena);
  11706. }
  11707. // @@protoc_insertion_point(arena_constructor:RemoNet.CCCanMsg)
  11708. }
  11709. CCCanMsg::CCCanMsg(const CCCanMsg& from)
  11710. : ::PROTOBUF_NAMESPACE_ID::Message(),
  11711. frams_(from.frams_) {
  11712. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  11713. // @@protoc_insertion_point(copy_constructor:RemoNet.CCCanMsg)
  11714. }
  11715. inline void CCCanMsg::SharedCtor() {
  11716. }
  11717. CCCanMsg::~CCCanMsg() {
  11718. // @@protoc_insertion_point(destructor:RemoNet.CCCanMsg)
  11719. if (GetArenaForAllocation() != nullptr) return;
  11720. SharedDtor();
  11721. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  11722. }
  11723. inline void CCCanMsg::SharedDtor() {
  11724. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  11725. }
  11726. void CCCanMsg::ArenaDtor(void* object) {
  11727. CCCanMsg* _this = reinterpret_cast< CCCanMsg* >(object);
  11728. (void)_this;
  11729. }
  11730. void CCCanMsg::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  11731. }
  11732. void CCCanMsg::SetCachedSize(int size) const {
  11733. _cached_size_.Set(size);
  11734. }
  11735. void CCCanMsg::Clear() {
  11736. // @@protoc_insertion_point(message_clear_start:RemoNet.CCCanMsg)
  11737. uint32_t cached_has_bits = 0;
  11738. // Prevent compiler warnings about cached_has_bits being unused
  11739. (void) cached_has_bits;
  11740. frams_.Clear();
  11741. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  11742. }
  11743. const char* CCCanMsg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  11744. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  11745. while (!ctx->Done(&ptr)) {
  11746. uint32_t tag;
  11747. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  11748. switch (tag >> 3) {
  11749. // repeated .RemoNet.can_net_frame frams = 1;
  11750. case 1:
  11751. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
  11752. ptr -= 1;
  11753. do {
  11754. ptr += 1;
  11755. ptr = ctx->ParseMessage(_internal_add_frams(), ptr);
  11756. CHK_(ptr);
  11757. if (!ctx->DataAvailable(ptr)) break;
  11758. } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
  11759. } else
  11760. goto handle_unusual;
  11761. continue;
  11762. default:
  11763. goto handle_unusual;
  11764. } // switch
  11765. handle_unusual:
  11766. if ((tag == 0) || ((tag & 7) == 4)) {
  11767. CHK_(ptr);
  11768. ctx->SetLastTag(tag);
  11769. goto message_done;
  11770. }
  11771. ptr = UnknownFieldParse(
  11772. tag,
  11773. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  11774. ptr, ctx);
  11775. CHK_(ptr != nullptr);
  11776. } // while
  11777. message_done:
  11778. return ptr;
  11779. failure:
  11780. ptr = nullptr;
  11781. goto message_done;
  11782. #undef CHK_
  11783. }
  11784. uint8_t* CCCanMsg::_InternalSerialize(
  11785. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  11786. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CCCanMsg)
  11787. uint32_t cached_has_bits = 0;
  11788. (void) cached_has_bits;
  11789. // repeated .RemoNet.can_net_frame frams = 1;
  11790. for (unsigned int i = 0,
  11791. n = static_cast<unsigned int>(this->_internal_frams_size()); i < n; i++) {
  11792. target = stream->EnsureSpace(target);
  11793. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  11794. InternalWriteMessage(1, this->_internal_frams(i), target, stream);
  11795. }
  11796. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  11797. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  11798. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  11799. }
  11800. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CCCanMsg)
  11801. return target;
  11802. }
  11803. size_t CCCanMsg::ByteSizeLong() const {
  11804. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CCCanMsg)
  11805. size_t total_size = 0;
  11806. uint32_t cached_has_bits = 0;
  11807. // Prevent compiler warnings about cached_has_bits being unused
  11808. (void) cached_has_bits;
  11809. // repeated .RemoNet.can_net_frame frams = 1;
  11810. total_size += 1UL * this->_internal_frams_size();
  11811. for (const auto& msg : this->frams_) {
  11812. total_size +=
  11813. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  11814. }
  11815. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  11816. }
  11817. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CCCanMsg::_class_data_ = {
  11818. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  11819. CCCanMsg::MergeImpl
  11820. };
  11821. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CCCanMsg::GetClassData() const { return &_class_data_; }
  11822. void CCCanMsg::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  11823. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  11824. static_cast<CCCanMsg *>(to)->MergeFrom(
  11825. static_cast<const CCCanMsg &>(from));
  11826. }
  11827. void CCCanMsg::MergeFrom(const CCCanMsg& from) {
  11828. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CCCanMsg)
  11829. GOOGLE_DCHECK_NE(&from, this);
  11830. uint32_t cached_has_bits = 0;
  11831. (void) cached_has_bits;
  11832. frams_.MergeFrom(from.frams_);
  11833. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  11834. }
  11835. void CCCanMsg::CopyFrom(const CCCanMsg& from) {
  11836. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CCCanMsg)
  11837. if (&from == this) return;
  11838. Clear();
  11839. MergeFrom(from);
  11840. }
  11841. bool CCCanMsg::IsInitialized() const {
  11842. return true;
  11843. }
  11844. void CCCanMsg::InternalSwap(CCCanMsg* other) {
  11845. using std::swap;
  11846. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  11847. frams_.InternalSwap(&other->frams_);
  11848. }
  11849. ::PROTOBUF_NAMESPACE_ID::Metadata CCCanMsg::GetMetadata() const {
  11850. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  11851. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  11852. file_level_metadata_protocol_2eproto[40]);
  11853. }
  11854. // ===================================================================
  11855. class SCAddRobot::_Internal {
  11856. public:
  11857. static const ::RemoNet::Robot& robot(const SCAddRobot* msg);
  11858. };
  11859. const ::RemoNet::Robot&
  11860. SCAddRobot::_Internal::robot(const SCAddRobot* msg) {
  11861. return *msg->robot_;
  11862. }
  11863. SCAddRobot::SCAddRobot(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  11864. bool is_message_owned)
  11865. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  11866. SharedCtor();
  11867. if (!is_message_owned) {
  11868. RegisterArenaDtor(arena);
  11869. }
  11870. // @@protoc_insertion_point(arena_constructor:RemoNet.SCAddRobot)
  11871. }
  11872. SCAddRobot::SCAddRobot(const SCAddRobot& from)
  11873. : ::PROTOBUF_NAMESPACE_ID::Message() {
  11874. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  11875. if (from._internal_has_robot()) {
  11876. robot_ = new ::RemoNet::Robot(*from.robot_);
  11877. } else {
  11878. robot_ = nullptr;
  11879. }
  11880. // @@protoc_insertion_point(copy_constructor:RemoNet.SCAddRobot)
  11881. }
  11882. inline void SCAddRobot::SharedCtor() {
  11883. robot_ = nullptr;
  11884. }
  11885. SCAddRobot::~SCAddRobot() {
  11886. // @@protoc_insertion_point(destructor:RemoNet.SCAddRobot)
  11887. if (GetArenaForAllocation() != nullptr) return;
  11888. SharedDtor();
  11889. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  11890. }
  11891. inline void SCAddRobot::SharedDtor() {
  11892. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  11893. if (this != internal_default_instance()) delete robot_;
  11894. }
  11895. void SCAddRobot::ArenaDtor(void* object) {
  11896. SCAddRobot* _this = reinterpret_cast< SCAddRobot* >(object);
  11897. (void)_this;
  11898. }
  11899. void SCAddRobot::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  11900. }
  11901. void SCAddRobot::SetCachedSize(int size) const {
  11902. _cached_size_.Set(size);
  11903. }
  11904. void SCAddRobot::Clear() {
  11905. // @@protoc_insertion_point(message_clear_start:RemoNet.SCAddRobot)
  11906. uint32_t cached_has_bits = 0;
  11907. // Prevent compiler warnings about cached_has_bits being unused
  11908. (void) cached_has_bits;
  11909. if (GetArenaForAllocation() == nullptr && robot_ != nullptr) {
  11910. delete robot_;
  11911. }
  11912. robot_ = nullptr;
  11913. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  11914. }
  11915. const char* SCAddRobot::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  11916. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  11917. while (!ctx->Done(&ptr)) {
  11918. uint32_t tag;
  11919. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  11920. switch (tag >> 3) {
  11921. // .RemoNet.Robot robot = 1;
  11922. case 1:
  11923. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
  11924. ptr = ctx->ParseMessage(_internal_mutable_robot(), ptr);
  11925. CHK_(ptr);
  11926. } else
  11927. goto handle_unusual;
  11928. continue;
  11929. default:
  11930. goto handle_unusual;
  11931. } // switch
  11932. handle_unusual:
  11933. if ((tag == 0) || ((tag & 7) == 4)) {
  11934. CHK_(ptr);
  11935. ctx->SetLastTag(tag);
  11936. goto message_done;
  11937. }
  11938. ptr = UnknownFieldParse(
  11939. tag,
  11940. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  11941. ptr, ctx);
  11942. CHK_(ptr != nullptr);
  11943. } // while
  11944. message_done:
  11945. return ptr;
  11946. failure:
  11947. ptr = nullptr;
  11948. goto message_done;
  11949. #undef CHK_
  11950. }
  11951. uint8_t* SCAddRobot::_InternalSerialize(
  11952. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  11953. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.SCAddRobot)
  11954. uint32_t cached_has_bits = 0;
  11955. (void) cached_has_bits;
  11956. // .RemoNet.Robot robot = 1;
  11957. if (this->_internal_has_robot()) {
  11958. target = stream->EnsureSpace(target);
  11959. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  11960. InternalWriteMessage(
  11961. 1, _Internal::robot(this), target, stream);
  11962. }
  11963. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  11964. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  11965. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  11966. }
  11967. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.SCAddRobot)
  11968. return target;
  11969. }
  11970. size_t SCAddRobot::ByteSizeLong() const {
  11971. // @@protoc_insertion_point(message_byte_size_start:RemoNet.SCAddRobot)
  11972. size_t total_size = 0;
  11973. uint32_t cached_has_bits = 0;
  11974. // Prevent compiler warnings about cached_has_bits being unused
  11975. (void) cached_has_bits;
  11976. // .RemoNet.Robot robot = 1;
  11977. if (this->_internal_has_robot()) {
  11978. total_size += 1 +
  11979. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  11980. *robot_);
  11981. }
  11982. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  11983. }
  11984. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCAddRobot::_class_data_ = {
  11985. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  11986. SCAddRobot::MergeImpl
  11987. };
  11988. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCAddRobot::GetClassData() const { return &_class_data_; }
  11989. void SCAddRobot::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  11990. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  11991. static_cast<SCAddRobot *>(to)->MergeFrom(
  11992. static_cast<const SCAddRobot &>(from));
  11993. }
  11994. void SCAddRobot::MergeFrom(const SCAddRobot& from) {
  11995. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.SCAddRobot)
  11996. GOOGLE_DCHECK_NE(&from, this);
  11997. uint32_t cached_has_bits = 0;
  11998. (void) cached_has_bits;
  11999. if (from._internal_has_robot()) {
  12000. _internal_mutable_robot()->::RemoNet::Robot::MergeFrom(from._internal_robot());
  12001. }
  12002. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  12003. }
  12004. void SCAddRobot::CopyFrom(const SCAddRobot& from) {
  12005. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.SCAddRobot)
  12006. if (&from == this) return;
  12007. Clear();
  12008. MergeFrom(from);
  12009. }
  12010. bool SCAddRobot::IsInitialized() const {
  12011. return true;
  12012. }
  12013. void SCAddRobot::InternalSwap(SCAddRobot* other) {
  12014. using std::swap;
  12015. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  12016. swap(robot_, other->robot_);
  12017. }
  12018. ::PROTOBUF_NAMESPACE_ID::Metadata SCAddRobot::GetMetadata() const {
  12019. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  12020. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  12021. file_level_metadata_protocol_2eproto[41]);
  12022. }
  12023. // ===================================================================
  12024. class SCDelRobot::_Internal {
  12025. public:
  12026. };
  12027. SCDelRobot::SCDelRobot(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  12028. bool is_message_owned)
  12029. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  12030. SharedCtor();
  12031. if (!is_message_owned) {
  12032. RegisterArenaDtor(arena);
  12033. }
  12034. // @@protoc_insertion_point(arena_constructor:RemoNet.SCDelRobot)
  12035. }
  12036. SCDelRobot::SCDelRobot(const SCDelRobot& from)
  12037. : ::PROTOBUF_NAMESPACE_ID::Message() {
  12038. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  12039. ::memcpy(&peer_, &from.peer_,
  12040. static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  12041. reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
  12042. // @@protoc_insertion_point(copy_constructor:RemoNet.SCDelRobot)
  12043. }
  12044. inline void SCDelRobot::SharedCtor() {
  12045. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  12046. reinterpret_cast<char*>(&peer_) - reinterpret_cast<char*>(this)),
  12047. 0, static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  12048. reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
  12049. }
  12050. SCDelRobot::~SCDelRobot() {
  12051. // @@protoc_insertion_point(destructor:RemoNet.SCDelRobot)
  12052. if (GetArenaForAllocation() != nullptr) return;
  12053. SharedDtor();
  12054. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  12055. }
  12056. inline void SCDelRobot::SharedDtor() {
  12057. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  12058. }
  12059. void SCDelRobot::ArenaDtor(void* object) {
  12060. SCDelRobot* _this = reinterpret_cast< SCDelRobot* >(object);
  12061. (void)_this;
  12062. }
  12063. void SCDelRobot::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  12064. }
  12065. void SCDelRobot::SetCachedSize(int size) const {
  12066. _cached_size_.Set(size);
  12067. }
  12068. void SCDelRobot::Clear() {
  12069. // @@protoc_insertion_point(message_clear_start:RemoNet.SCDelRobot)
  12070. uint32_t cached_has_bits = 0;
  12071. // Prevent compiler warnings about cached_has_bits being unused
  12072. (void) cached_has_bits;
  12073. ::memset(&peer_, 0, static_cast<size_t>(
  12074. reinterpret_cast<char*>(&egotype_) -
  12075. reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
  12076. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  12077. }
  12078. const char* SCDelRobot::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  12079. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  12080. while (!ctx->Done(&ptr)) {
  12081. uint32_t tag;
  12082. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  12083. switch (tag >> 3) {
  12084. // int32 peer = 1;
  12085. case 1:
  12086. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  12087. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  12088. CHK_(ptr);
  12089. } else
  12090. goto handle_unusual;
  12091. continue;
  12092. // int32 egotype = 2;
  12093. case 2:
  12094. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  12095. egotype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  12096. CHK_(ptr);
  12097. } else
  12098. goto handle_unusual;
  12099. continue;
  12100. default:
  12101. goto handle_unusual;
  12102. } // switch
  12103. handle_unusual:
  12104. if ((tag == 0) || ((tag & 7) == 4)) {
  12105. CHK_(ptr);
  12106. ctx->SetLastTag(tag);
  12107. goto message_done;
  12108. }
  12109. ptr = UnknownFieldParse(
  12110. tag,
  12111. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  12112. ptr, ctx);
  12113. CHK_(ptr != nullptr);
  12114. } // while
  12115. message_done:
  12116. return ptr;
  12117. failure:
  12118. ptr = nullptr;
  12119. goto message_done;
  12120. #undef CHK_
  12121. }
  12122. uint8_t* SCDelRobot::_InternalSerialize(
  12123. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  12124. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.SCDelRobot)
  12125. uint32_t cached_has_bits = 0;
  12126. (void) cached_has_bits;
  12127. // int32 peer = 1;
  12128. if (this->_internal_peer() != 0) {
  12129. target = stream->EnsureSpace(target);
  12130. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_peer(), target);
  12131. }
  12132. // int32 egotype = 2;
  12133. if (this->_internal_egotype() != 0) {
  12134. target = stream->EnsureSpace(target);
  12135. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_egotype(), target);
  12136. }
  12137. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  12138. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  12139. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  12140. }
  12141. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.SCDelRobot)
  12142. return target;
  12143. }
  12144. size_t SCDelRobot::ByteSizeLong() const {
  12145. // @@protoc_insertion_point(message_byte_size_start:RemoNet.SCDelRobot)
  12146. size_t total_size = 0;
  12147. uint32_t cached_has_bits = 0;
  12148. // Prevent compiler warnings about cached_has_bits being unused
  12149. (void) cached_has_bits;
  12150. // int32 peer = 1;
  12151. if (this->_internal_peer() != 0) {
  12152. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  12153. }
  12154. // int32 egotype = 2;
  12155. if (this->_internal_egotype() != 0) {
  12156. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_egotype());
  12157. }
  12158. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  12159. }
  12160. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCDelRobot::_class_data_ = {
  12161. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  12162. SCDelRobot::MergeImpl
  12163. };
  12164. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCDelRobot::GetClassData() const { return &_class_data_; }
  12165. void SCDelRobot::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  12166. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  12167. static_cast<SCDelRobot *>(to)->MergeFrom(
  12168. static_cast<const SCDelRobot &>(from));
  12169. }
  12170. void SCDelRobot::MergeFrom(const SCDelRobot& from) {
  12171. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.SCDelRobot)
  12172. GOOGLE_DCHECK_NE(&from, this);
  12173. uint32_t cached_has_bits = 0;
  12174. (void) cached_has_bits;
  12175. if (from._internal_peer() != 0) {
  12176. _internal_set_peer(from._internal_peer());
  12177. }
  12178. if (from._internal_egotype() != 0) {
  12179. _internal_set_egotype(from._internal_egotype());
  12180. }
  12181. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  12182. }
  12183. void SCDelRobot::CopyFrom(const SCDelRobot& from) {
  12184. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.SCDelRobot)
  12185. if (&from == this) return;
  12186. Clear();
  12187. MergeFrom(from);
  12188. }
  12189. bool SCDelRobot::IsInitialized() const {
  12190. return true;
  12191. }
  12192. void SCDelRobot::InternalSwap(SCDelRobot* other) {
  12193. using std::swap;
  12194. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  12195. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  12196. PROTOBUF_FIELD_OFFSET(SCDelRobot, egotype_)
  12197. + sizeof(SCDelRobot::egotype_)
  12198. - PROTOBUF_FIELD_OFFSET(SCDelRobot, peer_)>(
  12199. reinterpret_cast<char*>(&peer_),
  12200. reinterpret_cast<char*>(&other->peer_));
  12201. }
  12202. ::PROTOBUF_NAMESPACE_ID::Metadata SCDelRobot::GetMetadata() const {
  12203. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  12204. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  12205. file_level_metadata_protocol_2eproto[42]);
  12206. }
  12207. // @@protoc_insertion_point(namespace_scope)
  12208. } // namespace RemoNet
  12209. PROTOBUF_NAMESPACE_OPEN
  12210. template<> PROTOBUF_NOINLINE ::RemoNet::SwitchDriver* Arena::CreateMaybeMessage< ::RemoNet::SwitchDriver >(Arena* arena) {
  12211. return Arena::CreateMessageInternal< ::RemoNet::SwitchDriver >(arena);
  12212. }
  12213. template<> PROTOBUF_NOINLINE ::RemoNet::NDTPos* Arena::CreateMaybeMessage< ::RemoNet::NDTPos >(Arena* arena) {
  12214. return Arena::CreateMessageInternal< ::RemoNet::NDTPos >(arena);
  12215. }
  12216. template<> PROTOBUF_NOINLINE ::RemoNet::CSMoveBegin* Arena::CreateMaybeMessage< ::RemoNet::CSMoveBegin >(Arena* arena) {
  12217. return Arena::CreateMessageInternal< ::RemoNet::CSMoveBegin >(arena);
  12218. }
  12219. template<> PROTOBUF_NOINLINE ::RemoNet::MoveRet* Arena::CreateMaybeMessage< ::RemoNet::MoveRet >(Arena* arena) {
  12220. return Arena::CreateMessageInternal< ::RemoNet::MoveRet >(arena);
  12221. }
  12222. template<> PROTOBUF_NOINLINE ::RemoNet::CSMoveEnd* Arena::CreateMaybeMessage< ::RemoNet::CSMoveEnd >(Arena* arena) {
  12223. return Arena::CreateMessageInternal< ::RemoNet::CSMoveEnd >(arena);
  12224. }
  12225. template<> PROTOBUF_NOINLINE ::RemoNet::SCMoveBegin* Arena::CreateMaybeMessage< ::RemoNet::SCMoveBegin >(Arena* arena) {
  12226. return Arena::CreateMessageInternal< ::RemoNet::SCMoveBegin >(arena);
  12227. }
  12228. template<> PROTOBUF_NOINLINE ::RemoNet::SCMoveEnd* Arena::CreateMaybeMessage< ::RemoNet::SCMoveEnd >(Arena* arena) {
  12229. return Arena::CreateMessageInternal< ::RemoNet::SCMoveEnd >(arena);
  12230. }
  12231. template<> PROTOBUF_NOINLINE ::RemoNet::CSAdd* Arena::CreateMaybeMessage< ::RemoNet::CSAdd >(Arena* arena) {
  12232. return Arena::CreateMessageInternal< ::RemoNet::CSAdd >(arena);
  12233. }
  12234. template<> PROTOBUF_NOINLINE ::RemoNet::SCAdd* Arena::CreateMaybeMessage< ::RemoNet::SCAdd >(Arena* arena) {
  12235. return Arena::CreateMessageInternal< ::RemoNet::SCAdd >(arena);
  12236. }
  12237. template<> PROTOBUF_NOINLINE ::RemoNet::SCKickOff* Arena::CreateMaybeMessage< ::RemoNet::SCKickOff >(Arena* arena) {
  12238. return Arena::CreateMessageInternal< ::RemoNet::SCKickOff >(arena);
  12239. }
  12240. template<> PROTOBUF_NOINLINE ::RemoNet::CSState* Arena::CreateMaybeMessage< ::RemoNet::CSState >(Arena* arena) {
  12241. return Arena::CreateMessageInternal< ::RemoNet::CSState >(arena);
  12242. }
  12243. template<> PROTOBUF_NOINLINE ::RemoNet::SCState* Arena::CreateMaybeMessage< ::RemoNet::SCState >(Arena* arena) {
  12244. return Arena::CreateMessageInternal< ::RemoNet::SCState >(arena);
  12245. }
  12246. template<> PROTOBUF_NOINLINE ::RemoNet::Robot* Arena::CreateMaybeMessage< ::RemoNet::Robot >(Arena* arena) {
  12247. return Arena::CreateMessageInternal< ::RemoNet::Robot >(arena);
  12248. }
  12249. template<> PROTOBUF_NOINLINE ::RemoNet::CSRobot* Arena::CreateMaybeMessage< ::RemoNet::CSRobot >(Arena* arena) {
  12250. return Arena::CreateMessageInternal< ::RemoNet::CSRobot >(arena);
  12251. }
  12252. template<> PROTOBUF_NOINLINE ::RemoNet::SCRobot* Arena::CreateMaybeMessage< ::RemoNet::SCRobot >(Arena* arena) {
  12253. return Arena::CreateMessageInternal< ::RemoNet::SCRobot >(arena);
  12254. }
  12255. template<> PROTOBUF_NOINLINE ::RemoNet::CSSign* Arena::CreateMaybeMessage< ::RemoNet::CSSign >(Arena* arena) {
  12256. return Arena::CreateMessageInternal< ::RemoNet::CSSign >(arena);
  12257. }
  12258. template<> PROTOBUF_NOINLINE ::RemoNet::SCSign* Arena::CreateMaybeMessage< ::RemoNet::SCSign >(Arena* arena) {
  12259. return Arena::CreateMessageInternal< ::RemoNet::SCSign >(arena);
  12260. }
  12261. template<> PROTOBUF_NOINLINE ::RemoNet::CSReq* Arena::CreateMaybeMessage< ::RemoNet::CSReq >(Arena* arena) {
  12262. return Arena::CreateMessageInternal< ::RemoNet::CSReq >(arena);
  12263. }
  12264. template<> PROTOBUF_NOINLINE ::RemoNet::SCReq* Arena::CreateMaybeMessage< ::RemoNet::SCReq >(Arena* arena) {
  12265. return Arena::CreateMessageInternal< ::RemoNet::SCReq >(arena);
  12266. }
  12267. template<> PROTOBUF_NOINLINE ::RemoNet::CSRep* Arena::CreateMaybeMessage< ::RemoNet::CSRep >(Arena* arena) {
  12268. return Arena::CreateMessageInternal< ::RemoNet::CSRep >(arena);
  12269. }
  12270. template<> PROTOBUF_NOINLINE ::RemoNet::SCRep* Arena::CreateMaybeMessage< ::RemoNet::SCRep >(Arena* arena) {
  12271. return Arena::CreateMessageInternal< ::RemoNet::SCRep >(arena);
  12272. }
  12273. template<> PROTOBUF_NOINLINE ::RemoNet::Offer* Arena::CreateMaybeMessage< ::RemoNet::Offer >(Arena* arena) {
  12274. return Arena::CreateMessageInternal< ::RemoNet::Offer >(arena);
  12275. }
  12276. template<> PROTOBUF_NOINLINE ::RemoNet::Answer* Arena::CreateMaybeMessage< ::RemoNet::Answer >(Arena* arena) {
  12277. return Arena::CreateMessageInternal< ::RemoNet::Answer >(arena);
  12278. }
  12279. template<> PROTOBUF_NOINLINE ::RemoNet::Candidate* Arena::CreateMaybeMessage< ::RemoNet::Candidate >(Arena* arena) {
  12280. return Arena::CreateMessageInternal< ::RemoNet::Candidate >(arena);
  12281. }
  12282. template<> PROTOBUF_NOINLINE ::RemoNet::Leave* Arena::CreateMaybeMessage< ::RemoNet::Leave >(Arena* arena) {
  12283. return Arena::CreateMessageInternal< ::RemoNet::Leave >(arena);
  12284. }
  12285. template<> PROTOBUF_NOINLINE ::RemoNet::Close* Arena::CreateMaybeMessage< ::RemoNet::Close >(Arena* arena) {
  12286. return Arena::CreateMessageInternal< ::RemoNet::Close >(arena);
  12287. }
  12288. template<> PROTOBUF_NOINLINE ::RemoNet::TestTextReq* Arena::CreateMaybeMessage< ::RemoNet::TestTextReq >(Arena* arena) {
  12289. return Arena::CreateMessageInternal< ::RemoNet::TestTextReq >(arena);
  12290. }
  12291. template<> PROTOBUF_NOINLINE ::RemoNet::SyncTime* Arena::CreateMaybeMessage< ::RemoNet::SyncTime >(Arena* arena) {
  12292. return Arena::CreateMessageInternal< ::RemoNet::SyncTime >(arena);
  12293. }
  12294. template<> PROTOBUF_NOINLINE ::RemoNet::CCAskDataChannel* Arena::CreateMaybeMessage< ::RemoNet::CCAskDataChannel >(Arena* arena) {
  12295. return Arena::CreateMessageInternal< ::RemoNet::CCAskDataChannel >(arena);
  12296. }
  12297. template<> PROTOBUF_NOINLINE ::RemoNet::IMuMessage* Arena::CreateMaybeMessage< ::RemoNet::IMuMessage >(Arena* arena) {
  12298. return Arena::CreateMessageInternal< ::RemoNet::IMuMessage >(arena);
  12299. }
  12300. template<> PROTOBUF_NOINLINE ::RemoNet::CCPing* Arena::CreateMaybeMessage< ::RemoNet::CCPing >(Arena* arena) {
  12301. return Arena::CreateMessageInternal< ::RemoNet::CCPing >(arena);
  12302. }
  12303. template<> PROTOBUF_NOINLINE ::RemoNet::radar_node* Arena::CreateMaybeMessage< ::RemoNet::radar_node >(Arena* arena) {
  12304. return Arena::CreateMessageInternal< ::RemoNet::radar_node >(arena);
  12305. }
  12306. template<> PROTOBUF_NOINLINE ::RemoNet::CCRadarMessage* Arena::CreateMaybeMessage< ::RemoNet::CCRadarMessage >(Arena* arena) {
  12307. return Arena::CreateMessageInternal< ::RemoNet::CCRadarMessage >(arena);
  12308. }
  12309. template<> PROTOBUF_NOINLINE ::RemoNet::CCSensor* Arena::CreateMaybeMessage< ::RemoNet::CCSensor >(Arena* arena) {
  12310. return Arena::CreateMessageInternal< ::RemoNet::CCSensor >(arena);
  12311. }
  12312. template<> PROTOBUF_NOINLINE ::RemoNet::CCSwitch* Arena::CreateMaybeMessage< ::RemoNet::CCSwitch >(Arena* arena) {
  12313. return Arena::CreateMessageInternal< ::RemoNet::CCSwitch >(arena);
  12314. }
  12315. template<> PROTOBUF_NOINLINE ::RemoNet::State* Arena::CreateMaybeMessage< ::RemoNet::State >(Arena* arena) {
  12316. return Arena::CreateMessageInternal< ::RemoNet::State >(arena);
  12317. }
  12318. template<> PROTOBUF_NOINLINE ::RemoNet::LidarPoint* Arena::CreateMaybeMessage< ::RemoNet::LidarPoint >(Arena* arena) {
  12319. return Arena::CreateMessageInternal< ::RemoNet::LidarPoint >(arena);
  12320. }
  12321. template<> PROTOBUF_NOINLINE ::RemoNet::SensorStop* Arena::CreateMaybeMessage< ::RemoNet::SensorStop >(Arena* arena) {
  12322. return Arena::CreateMessageInternal< ::RemoNet::SensorStop >(arena);
  12323. }
  12324. template<> PROTOBUF_NOINLINE ::RemoNet::StopAck* Arena::CreateMaybeMessage< ::RemoNet::StopAck >(Arena* arena) {
  12325. return Arena::CreateMessageInternal< ::RemoNet::StopAck >(arena);
  12326. }
  12327. template<> PROTOBUF_NOINLINE ::RemoNet::can_net_frame* Arena::CreateMaybeMessage< ::RemoNet::can_net_frame >(Arena* arena) {
  12328. return Arena::CreateMessageInternal< ::RemoNet::can_net_frame >(arena);
  12329. }
  12330. template<> PROTOBUF_NOINLINE ::RemoNet::CCCanMsg* Arena::CreateMaybeMessage< ::RemoNet::CCCanMsg >(Arena* arena) {
  12331. return Arena::CreateMessageInternal< ::RemoNet::CCCanMsg >(arena);
  12332. }
  12333. template<> PROTOBUF_NOINLINE ::RemoNet::SCAddRobot* Arena::CreateMaybeMessage< ::RemoNet::SCAddRobot >(Arena* arena) {
  12334. return Arena::CreateMessageInternal< ::RemoNet::SCAddRobot >(arena);
  12335. }
  12336. template<> PROTOBUF_NOINLINE ::RemoNet::SCDelRobot* Arena::CreateMaybeMessage< ::RemoNet::SCDelRobot >(Arena* arena) {
  12337. return Arena::CreateMessageInternal< ::RemoNet::SCDelRobot >(arena);
  12338. }
  12339. PROTOBUF_NAMESPACE_CLOSE
  12340. // @@protoc_insertion_point(global_scope)
  12341. #include <google/protobuf/port_undef.inc>